@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/*==============================
Variables CSS
==============================*/
:root {
    --primary-color: #C4B4FF;        /* Boutons principaux */
    --secondary-color: #A684FF;      /* Hover / accents */
    --background-color: #030712;     /* Fond général */
    --container-bg: #0F172B;         /* Fond des conteneurs */
    --text-color: #FFFFFF;           /* Texte classique */
    --error-color: #e74c3c;          /* Erreurs */
    --success-color: #28b463;        /* Succès */
    --input-border: #dcdcdc;         /* Bordures input */
    --neon-color: #772EFF;           /* Couleur néon / glow */
    --info-color: #3498db;
    --warning-color: #f1c40f;
    --primary-soft: rgba(187, 143, 206, 0.08);
    --secondary-soft: rgba(155, 89, 182, 0.25);
    --secondary-softer: rgba(155, 89, 182, 0.15);
    --text-muted: rgba(255,255,255,0.75);
    --text-soft: rgba(255,255,255,0.85);
    --row-alt: rgba(255,255,255,0.03);
}

/*==============================
Styles globaux
==============================*/
* {
    box-sizing: border-box;
}
body {
    font-family: 'Funnel Display', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    height: 100%;
}


/* Textes généraux */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin: 10px 0;
    font-weight: 500;
}

p, span, label {
    color: var(--text-color);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: transparent;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    transition: all 0.3s ease;
}

a:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 8px var(--neon-color);
}

.error {
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 10px;
}

.success {
    color: var(--success-color);
    font-size: 0.9em;
    margin-top: 10px;
}

span.role-badge {
    font-weight: bold;
    background-color: white;
    border-radius: 5px;
    padding: 3px 8px;
    border: 1px solid white;
    display: inline-block;
}




div.section {
    padding: 20px;
    border-radius: 10px;
    background-color: var(--container-bg);
    margin: 20px;
}


/*==============================
Tous les boutons
==============================*/
button {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;

    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));

    box-shadow: none;
    transition: all 0.3s ease;
}

button:hover,
button:focus {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));

    box-shadow: 0 0 15px var(--neon-color), 0 0 25px var(--secondary-color);
    transform: scale(1.05);
}

/*==============================
Tous les input
==============================*/
input[type="text"],input[type="password"],input[type="number"],input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 25px; /* coins arrondis */
    border: 1px solid var(--input-border);
    background-color: #0f172b;
    color: var(--text-color);
    outline: none;
    font-weight: 600; /* police plus grasse */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,input[type="password"]:focus,input[type="number"]:focus,input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--neon-color);
}

textarea {
    padding: 12px;
    border-radius: 25px; /* coins arrondis */
    border: 1px solid white !important;
    background-color: #0f172b;
    color: var(--text-color);
    outline: none;
    font-weight: 600; /* police plus grasse */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--neon-color);
}

/*==============================
Login container
==============================*/
/* Parent pour centrer le login-container */
.login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh; /* s'assure que ça prend toute la hauteur de la fenêtre */
}

/* Login container */
.login-container {
    background-color: var(--container-bg);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 0 50px var(--neon-color);
    text-align: center;
    width: 350px;
}

/* Logo */
.login-logo {
    width: 200px;
    margin-bottom: 20px;
}

/*==============================
Tableaux stylés
==============================*/
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: 'Funnel Display', Arial, sans-serif;
    background-color: var(--container-bg);
    border-radius: 10px;
    overflow: hidden; /* pour arrondir les coins du tableau */
    box-shadow: 0 0 20px var(--neon-color);
}
table * {
    border: none;
}

thead {
    background-color: var(--primary-color);
    color: #fff;
}

thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(155, 89, 182, 0.1);
    transform: scale(1.01);
}

tbody td {
    padding: 12px 15px;
    color: var(--text-color);
}

tfoot {
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 500;
}

tfoot td {
    padding: 10px 15px;
}

/* ==============================
FORMULAIRES – STYLE VISUEL
============================== */

form legend,
form strong {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Labels */
form label {
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

form label:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 6px var(--neon-color);
}

/* ==============================
CHECKBOX & RADIO – STYLE DOUX
============================== */

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary-color);
}

/* ==============================
SELECT
============================== */

select {
    background-color: var(--container-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    border-radius: 25px;
    padding: 10px 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--neon-color);
    outline: none;
}

/* ==============================
PLACEHOLDER
============================== */

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* ==============================
TABLE – STYLE VISUEL RENFORCÉ
============================== */

table caption {
    color: var(--secondary-color);
    padding: 8px;
    font-size: 0.9em;
}

/* Ligne inactive / vide */
tbody tr td[colspan] {
    text-align: center;
    font-style: italic;
    opacity: 0.6;
}

/* ==============================
BOUTONS SECONDAIRES (ex: Load more)
============================== */

button.secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

button.secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Container des notifications */
/* Container pour les notifications */
.notif-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column-reverse; /* les nouvelles notif vont en bas */
    gap: 10px;
    z-index: 9999;
}

/* Notification de base */
.notif {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    min-width: 250px;
    max-width: 350px;
    color: var(--text-color, #fff);
    background-color: var(--container-bg, #0F172B);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    font-weight: 500;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* pour que ::before suive bien les coins */
}

.notif::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}
/* Icône à gauche */
.notif i {
    font-style: normal;
    font-weight: bold;
    font-size: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Apparition */
.notif.show {
    opacity: 1;
    transform: translateX(0);
}

.notif.PRECISION i { color: var(--primary-color, #bb8fce); }
.notif.INFORMATION i { color: var(--info-color, #3498db); }
.notif.WARNING i { color: var(--warning-color, #f1c40f); }
.notif.SUCCESS i { color: var(--success-color, #28b463); }
.notif.ERROR i { color: var(--error-color, #e74c3c); }

/* Transition de suppression */
.notif.hide {
    opacity: 0;
    transform: translateX(120%);
}