/* ============================================================
   PLONGEE-SUIVI — Feuille de style centralisée
   Pour changer le thème couleur, modifiez uniquement les
   variables dans :root ci-dessous.
   ============================================================ */

:root {
    /* ═══ Univers « Vague × Profondeur » ═══
       Fond dégradé océan, cartes en verre dépoli, lueurs cyan.
       Les anciens noms de variables sont conservés : toutes les vues
       existantes héritent du thème sans modification. */

    /* Profondeurs */
    --navy:           #041C2C;   /* abysse — fonds sombres */
    --navy-dark:      #030F1A;
    --navy-mid:       #06304A;
    --navy-light:     rgba(143,190,214,.12);  /* surfaces subtiles */
    --navy-lighter:   rgba(4,28,44,.45);      /* fonds d'inputs */
    --ocean:          #22D3EE;   /* cyan lumineux — accent principal */
    --ocean-light:    #67E8F9;
    --ocean-muted:    #8FBED6;
    --ocean-pale:     rgba(143,190,214,.45);

    /* Validé / succès */
    --teal:           #34D399;
    --teal-dark:      #6EE7B7;
    --teal-light:     rgba(52,211,153,.14);
    --teal-text:      #A7F3D0;
    --teal-border:    rgba(52,211,153,.4);

    /* Prévalidé / attention */
    --amber:          #FBBF24;
    --amber-dark:     #FCD34D;
    --amber-light:    rgba(251,191,36,.13);
    --amber-text:     #FDE68A;

    /* Danger */
    --red:            #F87171;
    --red-dark:       #FCA5A5;
    --red-light:      rgba(248,113,113,.13);
    --red-border:     rgba(248,113,113,.4);

    /* Neutres */
    --gray:           #8FBED6;
    --gray-light:     rgba(143,190,214,.10);
    --gray-text:      #A8CBDD;

    /* Violet (admin) */
    --purple:         #C4B5FD;
    --purple-light:   rgba(167,139,250,.15);

    /* Fond & texte — noms historiques, sens inversé (thème sombre) */
    --sand:           #052538;                 /* fond de page (sous gradient) */
    --white:          rgba(9,58,88,.60);       /* surface de carte (verre) */
    --text-main:      #EAF6FC;
    --text-muted:     #8FBED6;
    --border:         rgba(143,190,214,.28);
    --border-light:   rgba(143,190,214,.16);

    /* Rayons — plus généreux */
    --radius-sm:      12px;
    --radius-md:      14px;
    --radius-lg:      18px;
    --radius-xl:      20px;
    --radius-2xl:     24px;

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #0A5A82 0%, #06304A 38%, #041C2C 100%) fixed;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    padding-bottom: 60px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.page-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 16px;
    border-top: 0.5px solid var(--border);
    background: var(--white);
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-success {
    background: var(--teal-light);
    color: var(--teal-text);
    border: 0.5px solid var(--teal-border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin: 12px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.flash-error {
    background: var(--red-light);
    color: var(--red-dark);
    border: 0.5px solid var(--red);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin: 12px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: inherit;
    opacity: .6;
    flex-shrink: 0;
}

/* Toast avec action d'annulation (micro-confirmation, non bloquante) */
.flash-toast { transition: opacity .4s ease; }
.flash-undo {
    background: none; border: 1px solid currentColor; color: inherit;
    border-radius: 8px; padding: 4px 12px; font-size: 12.5px; font-weight: 700;
    cursor: pointer; flex-shrink: 0; font-family: inherit; opacity: .9;
}
.flash-undo:hover { opacity: 1; background: rgba(255,255,255,.1); }

/* ============================================================
   NAVIGATION — topbar (desktop) + bottom nav (mobile)
   ============================================================ */
.topnav {
    position: sticky; top: 0; z-index: 90;
    background: rgba(4,28,44,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 20px;
    height: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-main); font-size: 15px; font-weight: 700;
    text-decoration: none; letter-spacing: .01em;
}
.nav-brand-icon {
    width: 32px; height: 32px; border-radius: 12px;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.35), transparent 55%), var(--navy-mid);
    border: 1px solid var(--border);
    color: var(--ocean);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.topnav-links { display: none; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.topnav-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 12px;
    font-size: 13.5px; font-weight: 600; color: var(--ocean-muted);
    text-decoration: none; position: relative;
    transition: background .12s, color .12s;
}
.topnav-link:hover { background: var(--navy-light); color: var(--text-main); }
.topnav-link.active { background: var(--ocean); color: #04222F; }
.topnav-link.active i { color: #04222F; }
.topnav-right { display: flex; align-items: center; gap: 8px; }
.topnav-avatar {
    width: 38px; height: 38px; border-radius: 14px;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.25), transparent 55%), var(--navy-mid);
    border: 1px solid var(--border);
    color: var(--ocean); font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.topnav-logout {
    background: none; border: none; cursor: pointer;
    color: var(--ocean-muted); font-size: 17px;
    padding: 8px; border-radius: 12px;
    display: none;
}
.topnav-logout:hover { background: var(--red-light); color: var(--red); }

.nav-badge {
    min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px;
    background: var(--amber); color: #3A2A00;
    font-size: 10px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.topnav-link .nav-badge { margin-left: 2px; }

/* Bottom nav — mobile */
.bottomnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: rgba(4,28,44,.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-around;
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
}
.bottomnav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; color: var(--ocean-muted);
    text-decoration: none; flex: 1; max-width: 76px; position: relative;
    background: none; border: none; cursor: pointer; font-family: inherit;
}
.bottomnav-item i { font-size: 19px; line-height: 1; }
.bottomnav-item.active { color: var(--ocean); }
.bottomnav-item .nav-badge { position: absolute; top: -3px; right: 13px; }

@media (min-width: 1024px) {
    .bottomnav { display: none; }
    .topnav-links { display: flex; }
    .topnav-logout { display: block; }
    body { padding-bottom: 60px; }
    .page-content { max-width: 900px; }
}
@media (max-width: 1023px) {
    body { padding-bottom: 90px; }
    .page-footer { display: none; }
}

/* ============================================================
   COMPOSANTS COMMUNS
   ============================================================ */

/* En-tête de page */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-title { font-size: 24px; font-weight: 800; color: var(--text-main); margin: 0; letter-spacing: -.01em; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.section-label {
    font-size: 11px; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em; margin: 20px 0 8px 4px;
}
.section-label:first-child { margin-top: 0; }

/* Bouton ajouter — navigation vers un formulaire de création : plat/outline
   (le dégradé est réservé aux actions qui engagent des données : Enregistrer,
   Créer, Valider en lot — voir .btn-submit / .swipe-save / .queue-validate-bar) */
.btn-add {
    background: rgba(34,211,238,.1); color: var(--ocean);
    border: 1px solid rgba(34,211,238,.35);
    border-radius: var(--radius-md); padding: 9px 16px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background .12s;
}
.btn-add:hover { background: rgba(34,211,238,.22); color: var(--ocean-light); }

/* Boutons actions */
.btn-edit {
    background: var(--navy-light); color: var(--ocean); border: none;
    border-radius: var(--radius-sm); padding: 6px 12px;
    font-size: 12px; font-weight: 500; text-decoration: none;
}
.btn-edit:hover { background: var(--ocean-pale); color: var(--navy-dark); }
.btn-del {
    background: var(--red-light); color: var(--red-dark); border: none;
    border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12px; cursor: pointer;
}
.btn-del:hover { background: var(--red-border); }
/* Désaturé plutôt que juste translucide : un « rouge pâle » se lit encore
   comme actionnable au scan rapide — le gris signale sans ambiguïté un
   état verrouillé (historique lié, cf. tooltip). */
.btn-del:disabled {
    background: transparent; color: var(--gray-text);
    border: 1px solid var(--border-light); opacity: 1; cursor: not-allowed;
}
.btn-del:disabled:hover { background: transparent; }
.btn-teal {
    background: var(--teal); color: var(--text-main); border: none;
    border-radius: var(--radius-sm); padding: 9px 16px;
    font-size: 13px; font-weight: 500; cursor: pointer;
}
.btn-teal:hover { background: var(--teal-dark); }
.btn-xs {
    border: 0.5px solid currentColor; background: transparent;
    border-radius: 6px; padding: 3px 8px; font-size: 11px; cursor: pointer; line-height: 1.4;
}
.btn-xs-blue { color: var(--ocean); }
.btn-xs-blue:hover { background: var(--navy-light); }
.btn-xs-red { color: var(--red-dark); }
.btn-xs-red:hover { background: var(--red-light); }
.btn-xs-amber { color: var(--amber-dark); }
.btn-xs-amber:hover { background: var(--amber-light); }

/* Avatar */
.avatar {
    border-radius: 50%; background: var(--navy-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 500; color: var(--ocean); flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 38px; height: 38px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }

/* Cards de liste */
.list-card {
    background: var(--white); border: 0.5px solid var(--border);
    border-radius: var(--radius-lg); padding: 12px 16px;
    margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
}
.list-card-link {
    background: var(--white); border: 0.5px solid var(--border);
    border-radius: var(--radius-lg); padding: 12px 16px;
    margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
    text-decoration: none; transition: border-color .15s;
}
.list-card-link:hover { border-color: var(--ocean-light); background: var(--navy-lighter); }

/* Badges de statut */
.s-badge { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.s-validated   { background: var(--teal-light);  color: var(--teal-text); }
.s-prevalidated{ background: var(--amber-light);   color: var(--amber); }
.s-tried       { background: var(--amber-light);  color: var(--amber-text); }
.s-none        { background: transparent; color: var(--gray-text); border: 1px solid var(--border-light); }
.s-active      { background: var(--teal-light);   color: var(--teal-text); }
.s-inactive    { background: var(--gray-light);   color: var(--gray-text); }

/* Formulaires */
.form-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-2xl); overflow: hidden; }
.form-card-header {
    background: var(--navy); padding: 16px 20px;
    display: flex; align-items: center; gap: 10px;
}
.form-card-title { font-size: 16px; font-weight: 500; color: var(--text-main); margin: 0; }
.form-card-subtitle { font-size: 12px; color: var(--ocean-muted); margin: 2px 0 0; }
.form-card-body { padding: 20px; }
.form-section-title {
    font-size: 11px; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
    margin: 20px 0 12px; padding-top: 16px; border-top: 0.5px solid var(--border-light);
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:480px){ .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.form-label-required { color: var(--red); margin-left: 2px; }
.form-input {
    width: 100%; padding: 10px 14px;
    border: 0.5px solid var(--border); border-radius: var(--radius-md);
    font-size: 14px; background: var(--navy-lighter); color: var(--text-main);
}
.form-input:focus { outline: none; border-color: var(--ocean-light); background: var(--white); }
.form-input.is-invalid { border-color: var(--red); }
.form-error { font-size: 12px; color: var(--red-dark); margin-top: 4px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-actions {
    display: flex; gap: 10px;
    margin-top: 24px; padding-top: 16px; border-top: 0.5px solid var(--border-light);
}
.btn-submit {
    flex: 1; background: linear-gradient(135deg, #22D3EE, #0E7490); color: #04222F; border: none;
    border-radius: var(--radius-2xl); padding: 13px;
    font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-submit:hover { background: var(--ocean); }
.btn-cancel {
    background: transparent; border: 0.5px solid var(--border); color: var(--text-muted);
    border-radius: var(--radius-2xl); padding: 13px 20px;
    font-size: 14px; text-decoration: none; white-space: nowrap;
}
.btn-cancel:hover { background: var(--navy-lighter); }

/* Checkboxes visuelles */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border: 0.5px solid var(--border);
    border-radius: var(--radius-md); background: var(--navy-lighter); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.checkbox-item:hover { background: var(--navy-light); border-color: var(--ocean-light); }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--ocean); cursor: pointer; flex-shrink: 0; }
.checkbox-item-label { font-size: 13px; color: var(--text-main); cursor: pointer; }
.checkbox-item-sub { font-size: 11px; color: var(--text-muted); }

/* Toggle actif/inactif */
.toggle-wrap {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border: 0.5px solid var(--border);
    border-radius: var(--radius-md); background: var(--navy-lighter); cursor: pointer;
}
.toggle-wrap input { width: 16px; height: 16px; accent-color: var(--ocean); cursor: pointer; }
.toggle-label { font-size: 13px; color: var(--text-main); cursor: pointer; }

/* Statut dot */
.dot-active   { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 4px; }
.dot-inactive { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ocean-pale); margin-right: 4px; }

/* Empty state */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-icon { font-size: 40px; color: var(--ocean-pale); margin-bottom: 12px; }

/* Stats cards (dashboard) */
.stat-card {
    background: var(--white); border: 0.5px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px 16px;
}
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-main); line-height: 1; }
.stat-sub { font-size: 11px; color: var(--ocean-light); margin-top: 3px; }

/* Action cards (dashboard) */
.action-card {
    background: var(--white); border: 0.5px solid var(--border);
    border-radius: var(--radius-xl); padding: 16px; text-decoration: none;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    transition: border-color .15s, background .15s;
}
.action-card:hover { background: var(--navy-light); border-color: var(--ocean-light); }
.action-card.disabled { opacity: .5; pointer-events: none; }
.action-icon {
    width: 38px; height: 38px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.action-icon.blue   { background: var(--navy-light);   color: var(--ocean); }
.action-icon.teal   { background: var(--teal-light);   color: var(--teal); }
.action-icon.amber  { background: var(--amber-light);  color: var(--amber-dark); }
.action-icon.purple { background: var(--purple-light); color: var(--purple); }
.action-icon.gray   { background: var(--gray-light);   color: var(--gray-text); }
.action-name { font-size: 13px; font-weight: 600; color: var(--text-main); line-height: 1.3; }
.action-desc { font-size: 11px; color: var(--text-muted); }
.wip-badge {
    font-size: 10px; background: var(--amber-light); color: var(--amber-dark);
    border-radius: var(--radius-full); padding: 1px 8px;
}

/* Entête marine (tracking, levelskills) */
.marine-header {
    background: var(--navy);
    margin: -1.5rem -1rem 0;
    padding: 1rem 1rem 0;
}
.marine-header-back { font-size: 13px; color: var(--ocean-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.marine-header-back:hover { color: var(--text-main); }
.marine-header-title { font-size: 20px; font-weight: 500; color: var(--text-main); margin: 0 0 2px; }
.marine-header-sub { font-size: 13px; color: var(--ocean-muted); margin: 0; }
.marine-progress-bar { background: var(--navy-dark); padding: 14px 1rem; display: flex; align-items: center; gap: 12px; }
.marine-progress-track { flex: 1; height: 8px; background: var(--navy); border-radius: 4px; overflow: hidden; }
.marine-progress-fill { height: 100%; background: var(--teal); border-radius: 4px; }
.marine-progress-label { font-size: 13px; color: var(--ocean-muted); white-space: nowrap; }

@media(min-width:768px){
    .marine-header { margin: -1.5rem -12px 0; }
}

/* ============================================================
   AUTH (login, forgot-password, reset-password)
   ============================================================ */
.auth-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 400px; background: var(--white); border: 0.5px solid var(--border); border-radius: 20px; overflow: hidden; }
.auth-header { background: var(--navy); padding: 24px; text-align: center; }
.auth-logo { width: 48px; height: 48px; background: var(--ocean); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 22px; color: var(--text-main); }
.auth-club { font-size: 16px; font-weight: 500; color: var(--text-main); margin: 0 0 2px; }
.auth-sub { font-size: 12px; color: var(--ocean-muted); margin: 0; }
.auth-body { padding: 24px; }
.auth-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin: 0 0 8px; }
.auth-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }
.auth-status { background: var(--teal-light); color: var(--teal-text); border: 0.5px solid var(--teal-border); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.auth-back { display: block; text-align: center; font-size: 13px; color: var(--ocean-light); text-decoration: none; margin-top: 16px; }
.auth-back:hover { color: var(--text-main); }

/* Login spécifique */
.login-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.login-card { width: 100%; max-width: 400px; background: var(--white); border: 0.5px solid var(--border); border-radius: 20px; overflow: hidden; }
.login-header { background: var(--navy); padding: 28px 24px 24px; text-align: center; }
.login-logo { width: 52px; height: 52px; background: var(--ocean); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 24px; color: var(--text-main); }
.login-club-name { font-size: 17px; font-weight: 500; color: var(--text-main); margin: 0 0 3px; }
.login-club-sub { font-size: 12px; color: var(--ocean-muted); margin: 0; }
.login-body { padding: 24px; }
.login-title { font-size: 16px; font-weight: 600; color: var(--text-main); margin: 0 0 20px; text-align: center; }
.login-field { margin-bottom: 14px; }
.login-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.login-input { width: 100%; padding: 11px 14px; border: 0.5px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--navy-lighter); color: var(--text-main); transition: border-color .15s; }
.login-input:focus { outline: none; border-color: var(--ocean-light); background: var(--white); }
.login-input.is-invalid { border-color: var(--red); background: var(--red-light); }
.login-error { font-size: 12px; color: var(--red-dark); margin-top: 4px; }
.login-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; cursor: pointer; }
.login-remember input { width: 16px; height: 16px; accent-color: var(--ocean); cursor: pointer; }
.login-submit { width: 100%; background: linear-gradient(135deg, #22D3EE, #0E7490); color: #04222F; border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s; }
.login-submit:hover { background: var(--ocean); }
.login-forgot { display: block; text-align: center; font-size: 13px; color: var(--ocean-light); text-decoration: none; margin-top: 14px; }
.login-forgot:hover { color: var(--text-main); }
.login-status { background: var(--teal-light); color: var(--teal-text); border: 0.5px solid var(--teal-border); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

/* Guest layout */
.guest-card { width: 100%; max-width: 400px; background: var(--white); border-radius: 20px; overflow: hidden; }
.guest-header { background: var(--navy); padding: 24px; text-align: center; }
.guest-logo { width: 48px; height: 48px; background: var(--ocean); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 22px; color: var(--text-main); }
.guest-title { font-size: 16px; font-weight: 500; color: var(--text-main); margin: 0 0 2px; }
.guest-sub { font-size: 12px; color: var(--ocean-muted); margin: 0; }
.guest-body { padding: 24px; }
.guest-link { display: block; text-align: center; font-size: 13px; color: var(--ocean-light); text-decoration: none; margin-top: 14px; }
.guest-link:hover { color: var(--text-main); }
.error-msg { font-size: 12px; color: var(--red-dark); margin: -10px 0 10px; }
.status-msg { background: var(--teal-light); color: var(--teal-text); border: 0.5px solid var(--teal-border); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.btn-primary-full { width: 100%; background: linear-gradient(135deg, #22D3EE, #0E7490); color: #04222F; border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 4px; }
.btn-primary-full:hover { background: var(--ocean); }

/* ============================================================
   DASHBOARDS
   ============================================================ */
.db-greeting { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.db-title { font-size: 22px; font-weight: 700; color: var(--text-main); margin: 0 0 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media(min-width:480px){ .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media(min-width:480px){ .action-grid { grid-template-columns: repeat(3, 1fr); } }

/* Dashboard élève */
.enroll-card { background: var(--white); border: 0.5px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 12px; text-decoration: none; display: block; transition: border-color .15s; }
.enroll-card:hover { border-color: var(--ocean-light); }
.enroll-top { padding: 14px 16px 10px; }
.enroll-level { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 2px; }
.enroll-section { font-size: 12px; color: var(--text-muted); }
.enroll-bottom { padding: 10px 16px 14px; border-top: 0.5px solid var(--navy-light); display: flex; align-items: center; gap: 12px; }
.enroll-bar-wrap { flex: 1; }
.enroll-bar-track { height: 7px; background: var(--navy-light); border-radius: 4px; overflow: hidden; }
.enroll-bar-fill { height: 100%; border-radius: 4px; }
.enroll-bar-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.enroll-status { font-size: 11px; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.enroll-active   { background: var(--teal-light); color: var(--teal-text); }
.enroll-inactive { background: var(--gray-light); color: var(--gray-text); }

/* Dashboard moniteur */
.search-bar { display: flex; gap: 8px; margin-bottom: 20px; }
.search-bar input { flex: 1; padding: 10px 14px; border: 0.5px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--white); color: var(--text-main); }
.search-bar input:focus { outline: none; border-color: var(--ocean-light); }
.search-bar button {
    background: rgba(34,211,238,.1); color: var(--ocean);
    border: 1px solid rgba(34,211,238,.35);
    border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: background .12s;
}
.search-bar button:hover { background: rgba(34,211,238,.22); color: var(--ocean-light); }
.level-block { background: var(--white); border: 0.5px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.level-header { background: var(--navy); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.level-header-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.level-header-right { display: flex; align-items: center; gap: 8px; }
.level-count { font-size: 12px; color: var(--ocean-muted); }
.level-chevron { font-size: 12px; color: var(--ocean-muted); transition: transform .2s; display: inline-block; }
.level-chevron.open { transform: rotate(180deg); }
.level-body { display: none; }
.level-body.open { display: block; }
.eleve-row { padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 0.5px solid var(--navy-light); }
.eleve-row:last-child { border-bottom: none; }
.eleve-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-light); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--ocean); flex-shrink: 0; }
.eleve-info { flex: 1; min-width: 0; }
.eleve-name { font-size: 13px; font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eleve-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; display: flex; gap: 8px; flex-wrap: wrap; }
.eleve-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.prog-ring { position: relative; width: 40px; height: 40px; }
.prog-ring svg { transform: rotate(-90deg); }
.prog-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; color: var(--navy); }
.btn-voir { background: var(--navy-light); color: var(--ocean); border: none; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-voir:hover { background: var(--border); color: var(--navy-dark); }
.empty-level { padding: 14px 16px; font-size: 13px; color: var(--text-muted); font-style: italic; }
.results-title { font-size: 13px; font-weight: 700; color: var(--text-main); margin: 20px 0 10px; }
.mini-badge { font-size: 10px; padding: 1px 7px; border-radius: 20px; }
.mb-prev { background: var(--navy-light); color: var(--navy); }
.mb-tried { background: var(--amber-light); color: var(--amber-text); }

/* ============================================================
   TRACKING
   ============================================================ */
.enroll-count { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.enroll-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-light); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--ocean); flex-shrink: 0; }
.enroll-info { flex: 1; min-width: 0; }
.enroll-name { font-size: 14px; font-weight: 500; color: var(--text-main); }
.enroll-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; display: flex; gap: 8px; flex-wrap: wrap; }
.enroll-right { flex-shrink: 0; }
.status-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.status-active   { background: var(--teal-light); color: var(--teal-text); }
.status-inactive { background: var(--gray-light); color: var(--gray-text); }

/* Fiche de suivi */
.trk-header { background: var(--navy); margin: -1.5rem -1rem 0; padding: 1rem 1rem 1.25rem; }
.trk-back { font-size: 13px; color: var(--ocean-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.trk-back:hover { color: var(--text-main); }
.trk-head-main { display: flex; align-items: center; gap: 18px; }
.trk-head-info { min-width: 0; flex: 1; }
.trk-name { font-size: 20px; font-weight: 600; color: var(--text-main); margin: 0; }
.trk-level { font-size: 13px; color: var(--ocean-muted); margin: 4px 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trk-level-badge {
    font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(55,138,221,.25); color: var(--ocean-pale);
    padding: 2px 9px; border-radius: 20px;
}
.trk-since { font-size: 12px; }
.trk-progress-wrap { margin: 4px 0 14px; }
.trk-progress-wrap .progress-stack-label { color: var(--ocean-muted); }
.trk-progress-wrap .progress-stack-pct { color: var(--text-main); }
.trk-progress-wrap .progress-stack-track { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
.trk-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.trk-stat {
    background: rgba(255,255,255,.07); border: 0.5px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: 6px 12px; text-align: center; min-width: 64px;
}
.trk-stat-val { display: block; font-size: 18px; font-weight: 600; color: var(--text-main); line-height: 1.1; font-variant-numeric: tabular-nums; }
.trk-stat-lbl { display: block; font-size: 10px; color: var(--ocean-muted); margin-top: 2px; letter-spacing: .03em; }
@media (max-width: 480px) {
    .trk-head-main { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.trk-body { padding: 1rem 0; }
.qualif-block { margin-bottom: 12px; border: 0.5px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); }
.qualif-toggle { width: 100%; background: var(--navy-light); border: none; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; }
.qualif-toggle-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.qualif-toggle-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qualif-badge { font-size: 11px; font-weight: 700; font-family: ui-monospace, monospace; background: rgba(143,190,214,.14); color: var(--ocean-muted); border-radius: 20px; padding: 2px 10px; }
.qualif-badge.done { background: var(--teal-light); color: var(--teal); }
.qualif-chevron { font-size: 12px; color: var(--ocean-light); transition: transform .2s; display: inline-block; }
.qualif-chevron.open { transform: rotate(180deg); }

.theme-block { border-top: 0.5px solid var(--border); }
.theme-toggle { width: 100%; background: var(--navy-lighter); border: none; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; }
.theme-toggle-left { display: flex; flex-direction: column; gap: 2px; }
.theme-title { font-size: 13px; font-weight: 500; color: var(--ocean); }
.theme-criteria { font-size: 11px; color: var(--text-muted); font-style: italic; }
.theme-toggle-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-mini-track { width: 50px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.theme-mini-fill { height: 100%; border-radius: 3px; }
.theme-mini-label { font-size: 11px; }
.theme-chevron { font-size: 11px; color: var(--ocean-light); transition: transform .2s; display: inline-block; }
.theme-chevron.open { transform: rotate(180deg); }

.skill-item { border-top: 0.5px solid var(--navy-light); }
.skill-header { padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 8px; }
.skill-header:active { background: var(--navy-light); }
.skill-left { flex: 1; min-width: 0; }
.skill-name { font-size: 13px; color: var(--text-main); font-weight: 500; }
.skill-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.skill-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.skill-chevron { font-size: 11px; color: var(--border); transition: transform .2s; display: inline-block; }
.skill-chevron.open { transform: rotate(180deg); }
.cat-badge { font-size: 10px; padding: 1px 7px; border-radius: 20px; background: rgba(143,190,214,.14); color: var(--ocean-muted); margin-left: 4px; }
.skill-detail { background: var(--navy-lighter); border-top: 0.5px solid var(--navy-light); }
.skill-detail .collapse-inner > :first-child { margin-top: 10px; }
.skill-detail .collapse-inner { padding: 0 16px; }
.skill-detail.open .collapse-inner { padding: 10px 16px; }
.hist-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 0.5px solid var(--navy-light); font-size: 12px; color: var(--text-main); }
.hist-entry:last-of-type { border-bottom: none; }
.hist-date { font-weight: 500; color: var(--ocean); }
.hist-meta { color: var(--text-muted); }
.hist-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; width: 100%; }
.trk-btn { border: 0.5px solid currentColor; background: transparent; border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer; line-height: 1.4; }
.trk-btn-validate { color: var(--teal-text); border-color: var(--teal-border); }
.trk-btn-validate:hover { background: var(--teal-light); }
.trk-btn-invalidate { color: var(--red-dark); border-color: var(--red); }
.trk-btn-invalidate:hover { background: var(--red-light); }
.trk-btn-edit { color: var(--ocean); border-color: var(--ocean-light); }
.trk-btn-edit:hover { background: var(--navy-light); }
.trk-btn-delete { color: var(--red-dark); border-color: var(--red); }
.trk-btn-delete:hover { background: var(--red-light); }
.add-form { display: none; margin-top: 10px; padding: 12px; background: var(--white); border: 0.5px solid var(--border); border-radius: 10px; }
.add-form.open { display: block; }
.add-form-title { font-size: 12px; font-weight: 500; color: var(--ocean); margin-bottom: 8px; }
.add-form .field { margin-bottom: 8px; }
.add-form label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 3px; }
.add-form input[type=date], .add-form input[type=text] { width: 100%; padding: 8px 10px; border: 0.5px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--navy-lighter); color: var(--text-main); }
.add-form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ocean); margin-bottom: 10px; }
.add-form-actions { display: flex; gap: 8px; }
.btn-add-try { flex: 1; background: linear-gradient(135deg, #22D3EE, #0E7490); color: #04222F; border: none; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-add-try:active { opacity: .85; }
.btn-cancel-try { background: transparent; border: 0.5px solid var(--border); color: var(--text-muted); border-radius: 10px; padding: 10px 14px; font-size: 13px; cursor: pointer; }
.add-toggle-btn { width: 100%; background: transparent; border: 0.5px dashed var(--ocean-light); border-radius: 10px; color: var(--ocean); font-size: 12px; padding: 8px; margin-top: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.add-toggle-btn:hover { background: var(--navy-light); }
.trk-no-try { font-size: 12px; color: var(--text-muted); font-style: italic; padding: 4px 0 8px; }
.hist-more-btn {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 11.5px; color: var(--ocean-muted); padding: 6px 0; width: 100%;
}
.hist-more-btn:hover { color: var(--ocean); }
.hist-more-btn i { font-size: 10px; transition: transform .15s; }
.hist-more-btn i.open { transform: rotate(180deg); }
.hist-older { display: none; }
.hist-older.open { display: block; }
@media(min-width:768px) {
    .trk-header { margin: -1.5rem -12px 0; }
    .add-form-row { display: flex; gap: 8px; }
    .add-form-row .field { flex: 1; margin-bottom: 0; }
}

/* ============================================================
   LEVELSKILLS
   ============================================================ */
.level-card { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.level-icon { width: 38px; height: 38px; background: var(--navy-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ocean); flex-shrink: 0; font-weight: 500; }
.level-info { flex: 1; min-width: 0; }
.level-name { font-size: 14px; font-weight: 500; color: var(--text-main); }
.level-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.level-code { display: inline-block; font-size: 10px; background: rgba(143,190,214,.14); color: var(--ocean-muted); border-radius: 6px; padding: 1px 7px; margin-right: 6px; }
.level-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-skills { background: var(--teal-light); color: var(--teal-text); border: none; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn-skills:hover { background: var(--teal-light); color: var(--teal-dark); }

/* Skills page */
.sk-header { background: var(--navy); margin: -1.5rem -1rem 0; padding: 16px 1rem 12px; }
.sk-back { font-size: 13px; color: var(--ocean-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.sk-back:hover { color: var(--text-main); }
.sk-title { font-size: 20px; font-weight: 500; color: var(--text-main); margin: 0 0 2px; }
.sk-subtitle { font-size: 13px; color: var(--ocean-muted); margin: 0; }
.sk-body { padding: 1rem 0; }
.resp-block { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.resp-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.resp-row { display: flex; align-items: center; gap: 10px; }
.resp-name { flex: 1; font-size: 13px; color: var(--text-main); }
.resp-email { font-size: 11px; color: var(--text-muted); }
.btn-sm-del { background: var(--red-light); color: var(--red-dark); border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; }
.btn-sm-del:hover { background: var(--red-border); }
.resp-add-form { display: flex; gap: 8px; margin-top: 8px; }
.resp-add-form select { flex: 1; padding: 8px 12px; border: 0.5px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--navy-lighter); color: var(--text-main); }
.resp-add-form button { background: linear-gradient(135deg, #22D3EE, #0E7490); color: #04222F; border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.resp-add-form button:hover { background: var(--ocean); }
.add-theme-block { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.add-theme-toggle { width: 100%; background: transparent; border: none; padding: 12px 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ocean); }
.add-theme-toggle:hover { background: var(--navy-lighter); }
.add-theme-form { display: none; padding: 0 16px 16px; border-top: 0.5px solid var(--navy-light); }
.add-theme-form.open { display: block; }
.ft-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media(max-width:480px){ .ft-row { grid-template-columns: 1fr; } }
.ft-input { width: 100%; padding: 9px 12px; border: 0.5px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--navy-lighter); color: var(--text-main); }
.ft-input:focus { outline: none; border-color: var(--ocean-light); background: var(--white); }
.ft-label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.qualif-header { background: var(--navy-light); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; }
.qualif-name { font-size: 13px; font-weight: 700; color: var(--text-main); }
.qualif-count { font-size: 11px; color: var(--ocean-light); }
.theme-edit-form { padding: 12px 16px; background: var(--navy-lighter); border-top: 0.5px solid var(--border); display: none; }
.theme-edit-form.open { display: block; }
.te-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media(max-width:480px){ .te-row { grid-template-columns: 1fr; } }
.skill-row { padding: 9px 16px; display: flex; align-items: center; gap: 10px; border-top: 0.5px solid var(--navy-light); }
.skill-info { flex: 1; min-width: 0; }
.skill-cat { font-size: 10px; background: rgba(143,190,214,.14); color: var(--ocean-muted); border-radius: 20px; padding: 1px 7px; margin-left: 6px; }
.skill-inactive { font-size: 10px; background: var(--gray-light); color: var(--gray-text); border-radius: 20px; padding: 1px 7px; margin-left: 4px; }
.skill-actions { display: flex; gap: 6px; flex-shrink: 0; }
.add-skill-toggle { width: calc(100% - 32px); background: transparent; border: 0.5px dashed var(--ocean-light); border-radius: 8px; color: var(--ocean); font-size: 12px; padding: 8px; margin: 10px 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.add-skill-toggle:hover { background: var(--navy-light); }
.add-skill-form { display: none; padding: 12px 16px; background: var(--navy-lighter); border-top: 0.5px solid var(--navy-light); }
.add-skill-form.open { display: block; }
.as-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media(max-width:480px){ .as-row { grid-template-columns: 1fr; } }
@media(min-width:768px){ .sk-header { margin: -1.5rem -12px 0; } }

/* ============================================================
   USERS & USERMANAGEMENT
   ============================================================ */
.user-card { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-light); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--ocean); flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 14px; font-weight: 500; color: var(--text-main); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-email { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-login { font-size: 11px; color: var(--border); margin-top: 1px; }
.user-roles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.role-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; background: rgba(143,190,214,.14); color: var(--ocean-muted); }
.role-section { margin-bottom: 16px; }
.role-label { font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; margin-bottom: 8px; }
.user-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rbadge { font-size: 10px; padding: 2px 8px; border-radius: 20px; margin-right: 4px; }
.rb-admin { background: var(--purple-light); color: var(--purple); }
.rb-rt    { background: var(--navy-light); color: var(--navy); }
.rb-mr    { background: var(--teal-light); color: var(--teal-text); }
.rb-mo    { background: var(--teal-light); color: var(--teal-dark); }
.rb-el    { background: var(--amber-light); color: var(--amber-text); }
.rb-def   { background: var(--gray-light); color: var(--gray-text); }
.role-item { border: 0.5px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--navy-lighter); }
.role-item-top { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.role-item-top input { width: 16px; height: 16px; accent-color: var(--ocean); cursor: pointer; flex-shrink: 0; }
.role-item-label { font-size: 13px; color: var(--text-main); cursor: pointer; flex: 1; }
.role-section-select { margin-top: 10px; padding-top: 10px; border-top: 0.5px solid var(--navy-light); display: none; }
.role-section-select.visible { display: block; }
.role-section-select label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; display: block; }
.form-select { width: 100%; padding: 8px 12px; border: 0.5px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--white); color: var(--text-main); }
.form-select:focus { outline: none; border-color: var(--ocean-light); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-card { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.section-icon { width: 36px; height: 36px; background: var(--navy-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ocean); font-size: 16px; flex-shrink: 0; }
.section-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-main); }
.section-actions { display: flex; gap: 6px; }

/* ============================================================
   PROFIL
   ============================================================ */
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-light); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; color: var(--ocean); margin: 0 auto 12px; }
.profile-name { font-size: 18px; font-weight: 700; color: var(--text-main); text-align: center; margin: 0 0 4px; }
.profile-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 24px; }
.danger-zone { background: var(--white); border: 0.5px solid var(--red-border); border-radius: 16px; overflow: hidden; margin-top: 24px; }
.danger-header { background: var(--red-light); padding: 14px 20px; }
.danger-title { font-size: 14px; font-weight: 500; color: var(--red-dark); margin: 0 0 2px; }
.danger-desc { font-size: 12px; color: var(--red-dark); opacity: .8; margin: 0; }
.danger-body { padding: 20px; }
.btn-danger { width: 100%; background: transparent; border: 0.5px solid var(--red); color: var(--red-dark); border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-danger:hover { background: var(--red-light); }
.confirm-overlay { display: none; position: fixed; inset: 0; background: rgba(10,46,74,.5); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
.confirm-overlay.open { display: flex; }
.confirm-card { background: var(--white); border-radius: 16px; padding: 24px; width: 100%; max-width: 380px; }
.confirm-title { font-size: 16px; font-weight: 500; color: var(--red-dark); margin: 0 0 8px; }
.confirm-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.confirm-actions { display: flex; gap: 10px; }
.btn-confirm-del { flex: 1; background: var(--red-dark); color: var(--text-main); border: none; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-confirm-del:hover { background: var(--red-dark); }
.btn-confirm-cancel { flex: 1; background: transparent; border: 0.5px solid var(--border); color: var(--text-muted); border-radius: 10px; padding: 12px; font-size: 14px; cursor: pointer; }
.btn-confirm-cancel:hover { background: var(--navy-lighter); }

/* ============================================================
   FILIGRANE LOGO CLUB
   ============================================================ */
.dashboard-wrap {
    position: relative;
}
.dashboard-wrap::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background-image: url('/images/logo-club.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   CARTES ÉLÈVES (tableau moniteur)
   ============================================================ */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 4px 0 8px;
}
.student-card {
    background: var(--white);
    border: 0.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: 0 1px 6px rgba(12, 58, 94, .06);
    display: flex; flex-direction: column; gap: 10px;
}
.student-card-head { display: flex; align-items: center; gap: 10px; }
.student-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.student-card-id { min-width: 0; }
.student-card-name {
    font-size: 14px; font-weight: 600; color: var(--text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.student-card-meta { font-size: 11.5px; color: var(--text-muted); }
.student-card-prog-row {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 4px; font-size: 12px;
}
.student-card-prog-label { color: var(--text-muted); }
.student-card-prog-val { font-weight: 600; color: var(--text-main); font-variant-numeric: tabular-nums; }
.student-card-bar {
    height: 5px; background: var(--navy-light); border-radius: 3px; overflow: hidden;
}
.student-card-bar-fill { height: 100%; border-radius: 3px; }
.student-card-tags { display: flex; gap: 5px; flex-wrap: wrap; min-height: 20px; }
.tag {
    font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
}
.tag-ready { background: var(--teal-light); color: var(--teal-dark); font-weight: 700; }
.tag-prev  { background: var(--amber-light); color: var(--amber-dark); }
.tag-tried { background: var(--navy-light); color: var(--ocean); }
.tag-none  { background: transparent; color: var(--gray-text); border: 1px solid var(--border-light); }
.student-card-btn {
    display: block; text-align: center; padding: 8px;
    background: var(--navy-lighter); border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 500; color: var(--ocean);
    text-decoration: none; transition: background .12s;
}
.student-card-btn:hover { background: var(--navy-light); color: var(--ocean); }
.empty-inline {
    font-size: 13px; color: var(--text-muted); font-style: italic; margin: 8px 0 16px;
}

/* ============================================================
   SÉANCE — disposition deux colonnes sur desktop
   ============================================================ */
.session-layout { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 900px) {
    .session-layout { grid-template-columns: 1fr 1fr; align-items: start; }
    .page-content:has(.session-layout) { max-width: 1100px; }
}


/* ============================================================
   VERRE DÉPOLI — appliqué aux surfaces principales
   ============================================================ */
.form-card, .level-block, .student-card, .list-card, .stat-card,
.action-card, .enroll-card, .user-card, .section-card, .level-card,
.aide-card, .qualif-block, .resp-block, .theme-block {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
}

/* Chiffres façon ordinateur de plongée */
.trk-stat-val, .student-card-prog-val, .prog-ring-label,
.vp-mono, .stat-value, .trk-progress-label {
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace;
}

/* ============================================================
   FILE « À VALIDER »
   ============================================================ */
.queue-count {
    font-family: ui-monospace, monospace; font-size: 12px; color: var(--amber);
    border: 1px solid rgba(251,191,36,.35); background: var(--amber-light);
    border-radius: 10px; padding: 5px 12px; display: inline-block;
    letter-spacing: .05em; margin-top: 4px;
}
.queue-group { margin-top: 18px; }
.queue-group-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; font-weight: 700; margin-bottom: 8px;
}
.queue-group-title em { font-style: normal; color: var(--text-muted); font-weight: 500; font-size: 12px; }
.queue-mini-av {
    width: 30px; height: 30px; border-radius: 11px; flex-shrink: 0;
    background: var(--navy-mid); border: 1px solid var(--border);
    color: var(--ocean); font-size: 10.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.queue-row {
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 8px;
    backdrop-filter: blur(8px);
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
/* Ligne cochée = sera incluse dans la validation en lot : renforcé visuellement,
   pas seulement par l'état de la case (lisible même en scan rapide). */
.queue-row:has(.queue-check:checked) {
    background: var(--teal-light); border-color: var(--teal-border);
}
.queue-check {
    width: 22px; height: 22px; border-radius: 8px; flex-shrink: 0;
    border: 1.5px solid var(--ocean-muted); background: transparent;
    appearance: none; cursor: pointer; margin: 0;
}
.queue-check:checked {
    background: var(--ocean); border-color: var(--ocean);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23052330' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.queue-skill-name { font-size: 13.5px; font-weight: 650; color: var(--text-main); }
.queue-skill-meta { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--text-muted); }
.queue-validate-bar {
    position: fixed; left: 14px; right: 14px; z-index: 96;
    bottom: calc(86px + env(safe-area-inset-bottom));
    background: linear-gradient(135deg, #34D399, #059669);
    border: none; border-radius: 18px; padding: 15px 22px;
    display: none; align-items: center; justify-content: space-between;
    color: #032117; font-weight: 800; font-size: 15px; font-family: inherit;
    box-shadow: 0 12px 34px rgba(52,211,153,.35);
    cursor: pointer; width: calc(100% - 28px);
}
.queue-validate-bar.visible { display: flex; }
@media (min-width: 1024px) {
    .queue-validate-bar { max-width: 560px; left: 50%; transform: translateX(-50%); bottom: 24px; }
}

/* ============================================================
   PANNEAU D'ACTION RAPIDE (bottom sheet)
   ============================================================ */
.sheet-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(2,14,22,.68);
    display: none;
}
.sheet-overlay.open { display: block; }
.action-sheet {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 201;
    background: linear-gradient(180deg, #0A3A57, #04202F);
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(143,190,214,.28);
    box-shadow: 0 -20px 60px rgba(2,14,22,.5);
    padding: 12px 20px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform .26s cubic-bezier(.22,.61,.36,1);
    max-width: 560px; margin: 0 auto;
}
.action-sheet.open { transform: translateY(0); }
.sheet-handle { width: 44px; height: 4px; border-radius: 2px; background: var(--ocean-muted); opacity: .35; margin: 0 auto 14px; }
.sheet-head { margin-bottom: 16px; }
.sheet-skill { font-size: 18px; font-weight: 800; color: var(--text-main); letter-spacing: -.01em; line-height: 1.25; }
.sheet-student { font-size: 12px; color: var(--ocean-muted); margin-top: 3px; }

.sheet-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-field label { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; }
.sheet-field input {
    width: 100%; padding: 11px 13px; font-size: 14px; font-family: inherit;
    background: rgba(2,14,22,.5); color: var(--text-main);
    border: 1px solid var(--border-light); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.sheet-field input:focus {
    outline: none; border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.sheet-comment { grid-column: 1 / -1; }

.sheet-label {
    font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ocean-muted); margin: 18px 2px 10px;
    display: flex; align-items: center; gap: 10px;
}
.sheet-label::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }

.sheet-actions { display: grid; gap: 9px; }
.sheet-action {
    display: flex; align-items: center; gap: 13px; width: 100%;
    border-radius: 16px; padding: 13px 15px; text-align: left;
    border: 1px solid var(--border-light); background: rgba(10,74,110,.35);
    cursor: pointer; font-family: inherit; color: var(--text-main);
    transition: transform .12s, border-color .15s, background .15s;
}
.sheet-action:hover { border-color: var(--ocean-pale); background: rgba(10,74,110,.55); }
.sheet-action:active { transform: scale(.98); }
.sheet-action-ico {
    width: 42px; height: 42px; border-radius: 13px; font-size: 19px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy-light); color: var(--ocean-muted);
}
.sheet-action-txt { flex: 1; min-width: 0; }
.sheet-action-txt b { display: block; font-size: 14.5px; font-weight: 700; }
.sheet-action-txt span { font-size: 11.5px; color: var(--text-muted); line-height: 1.3; }
.sheet-action-go { color: var(--ocean-muted); font-size: 17px; flex-shrink: 0; opacity: .5; transition: opacity .15s, transform .15s; }
.sheet-action:hover .sheet-action-go { opacity: 1; transform: translateX(2px); }
.sheet-action.preval .sheet-action-ico { background: var(--amber-light); color: var(--amber); }
.sheet-action.valid { background: var(--teal-light); border-color: var(--teal-border); }
.sheet-action.valid .sheet-action-ico { background: rgba(52,211,153,.22); color: var(--teal); }
.sheet-action.valid .sheet-action-txt b { color: var(--teal); }
.sheet-action.valid .sheet-action-go { color: var(--teal); }

/* Halo bref sur la compétence à laquelle on revient après action */
@keyframes trk-flash-fade {
    0%, 35% { background: rgba(34,211,238,.14); box-shadow: 0 0 0 1px rgba(34,211,238,.4); }
    100% { background: transparent; box-shadow: 0 0 0 1px transparent; }
}
.skill-item.trk-flash { animation: trk-flash-fade 2.2s ease-out; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .skill-item.trk-flash { animation: none; } }

/* ============================================================
   FLUX CODEP — vitrine : héro, frise lumineuse, cartes actus
   ============================================================ */
.flux-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(10,74,110,.5));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 26px 22px;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}
.flux-hero-bubbles span {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(160,220,245,.25);
}
.flux-hero-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text-main); margin: 0; }
.flux-hero-sub {
    font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ocean-muted); margin: 4px 0 14px;
}
.flux-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.flux-hero-stat {
    font-size: 12px; color: var(--text-muted);
    background: rgba(4,28,44,.5); border: 1px solid var(--border-light);
    border-radius: 20px; padding: 5px 14px;
}
.flux-hero-stat b { color: var(--ocean); font-family: ui-monospace, monospace; font-size: 14px; }

.flux-month {
    font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ocean-muted); margin: 22px 0 10px 2px;
    display: flex; align-items: center; gap: 12px;
}
.flux-month::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }

.flux-timeline { position: relative; }
.flux-tl-item { display: flex; gap: 0; }
.flux-tl-rail {
    width: 26px; flex-shrink: 0; position: relative;
}
.flux-tl-rail::before {
    content: ""; position: absolute; left: 8px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(180deg, var(--border-light), rgba(34,211,238,.25), var(--border-light));
}
.flux-tl-item:first-child .flux-tl-rail::before { top: 22px; }
.flux-tl-item:last-child .flux-tl-rail::before { bottom: calc(100% - 30px); }
.flux-tl-dot {
    position: absolute; left: 3px; top: 20px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--dot, var(--ocean));
    box-shadow: 0 0 10px var(--dot, var(--ocean));
    border: 2px solid var(--navy-mid);
}
.flux-tl-dot.today { animation: flux-pulse 2s ease-in-out infinite; }
@keyframes flux-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--dot); }
    50% { box-shadow: 0 0 20px var(--dot), 0 0 34px var(--dot); }
}
@media (prefers-reduced-motion: reduce) { .flux-tl-dot.today { animation: none; } }

.flux-tl-card {
    flex: 1; min-width: 0;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 13px 16px; margin-bottom: 10px;
    backdrop-filter: blur(8px);
    transition: border-color .15s, transform .15s;
}
.flux-tl-card:hover { border-color: var(--ocean-pale); transform: translateX(2px); }
.flux-tl-when {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
    font-family: ui-monospace, monospace; font-size: 11px; color: var(--ocean);
}
.flux-tl-day { font-weight: 700; text-transform: capitalize; }
.flux-tl-hour { color: var(--text-muted); }
.flux-now, .flux-soon {
    font-family: inherit;
    font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 10px;
}
.flux-now { background: rgba(34,211,238,.18); color: var(--ocean); }
.flux-soon { background: var(--amber-light); color: var(--amber); }
.flux-tl-title { font-size: 15px; font-weight: 750; color: var(--text-main); line-height: 1.3; }
.flux-tl-meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted); margin: 4px 0 9px;
}
.flux-tl-meta i { font-size: 11px; margin-right: 3px; color: var(--ocean-muted); }
.flux-tl-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.flux-cat {
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px;
    border: 1px solid transparent;
}
.flux-cat-dim { background: var(--navy-light); color: var(--text-muted); border-color: var(--border-light); }
.flux-ics-btn {
    margin-left: auto;
    font-size: 11px; font-weight: 700; color: var(--ocean);
    text-decoration: none; padding: 4px 12px; border-radius: 12px;
    border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.08);
    display: inline-flex; align-items: center; gap: 5px;
}
.flux-ics-btn:hover { background: rgba(34,211,238,.18); }

/* Cartes actus */
.flux-news-grid {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 640px) { .flux-news-grid { grid-template-columns: 1fr 1fr; } }
.flux-news-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-xl); overflow: hidden;
    text-decoration: none; backdrop-filter: blur(8px);
    transition: border-color .15s, transform .15s;
}
.flux-news-card:hover { border-color: var(--ocean-pale); transform: translateY(-2px); }
.flux-news-cover {
    height: 110px; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border-light);
}
.flux-news-initial {
    font-family: ui-monospace, monospace;
    font-size: 44px; font-weight: 800; opacity: .8;
}
.flux-news-content { padding: 13px 16px 14px; flex: 1; display: flex; flex-direction: column; }
.flux-news-title { font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.35; flex: 1; }
.flux-news-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.flux-news-date { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--text-muted); }
.flux-news-cta { font-size: 11px; font-weight: 700; color: var(--ocean); }

/* ============================================================
   MODE SWIPE — suivi rapide au geste
   ============================================================ */
.swipe-wrap { max-width: 460px; margin: 0 auto; }
.swipe-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.swipe-back { font-size: 13px; color: var(--ocean-muted); text-decoration: none; white-space: nowrap; }
.swipe-back:hover { color: var(--ocean); }
.swipe-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.swipe-mode { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); }
.swipe-settings-btn {
    background: var(--white); border: 1px solid var(--border-light); color: var(--ocean-muted);
    width: 38px; height: 38px; border-radius: 12px; cursor: pointer; font-size: 16px; flex-shrink: 0;
}
.swipe-settings-btn:hover { color: var(--ocean); border-color: var(--ocean-pale); }

.swipe-settings {
    display: none; background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 14px; margin-bottom: 14px; backdrop-filter: blur(8px);
}
.swipe-settings.open { display: block; }
.swipe-settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.swipe-field label { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 4px; letter-spacing: .05em; text-transform: uppercase; }
.swipe-field input {
    width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
    background: var(--navy-lighter); color: var(--text-main);
    border: 1px solid var(--border-light); border-radius: 10px;
}
.swipe-field input:focus { outline: none; border-color: var(--ocean); }
.swipe-settings-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.swipe-progress {
    text-align: center; font-family: ui-monospace, monospace; font-size: 12px;
    color: var(--ocean-muted); margin-bottom: 10px;
}
.swipe-progress span { color: var(--text-main); font-weight: 700; }

/* Deck */
.swipe-deck { position: relative; height: 360px; margin-bottom: 18px; touch-action: none; user-select: none; }
.swipe-card {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(10,74,110,.6), rgba(4,28,44,.7));
    border: 1px solid var(--accent, var(--border));
    border-radius: 22px; padding: 26px 24px;
    box-shadow: 0 14px 40px rgba(2,14,22,.45);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
    opacity: 0; transform: scale(.94) translateY(14px); pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    overflow: hidden;
}
.swipe-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent);
}
.swipe-card.is-next { opacity: .5; transform: scale(.96) translateY(8px); }
.swipe-card.is-top { opacity: 1; transform: none; pointer-events: auto; cursor: grab; z-index: 3; }
.swipe-card.is-top:active { cursor: grabbing; }
.swipe-card.gone { display: none; }
.swipe-card-theme {
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.swipe-card-title { font-size: 24px; font-weight: 800; color: var(--text-main); line-height: 1.15; letter-spacing: -.01em; }
.swipe-card-desc { font-size: 14.5px; color: var(--ocean-muted); line-height: 1.5; margin-top: 12px; }
.swipe-card-stamp {
    position: absolute; top: 20px; right: 20px;
    font-family: ui-monospace, monospace; font-size: 15px; font-weight: 800; letter-spacing: .06em;
    padding: 6px 12px; border-radius: 10px; border: 2px solid; opacity: 0; transform: rotate(8deg);
    transition: opacity .1s;
}
.swipe-card-stamp.show { opacity: 1; }
.stamp-pass  { color: var(--ocean-muted); border-color: var(--ocean-muted); }
.stamp-essai { color: var(--ocean); border-color: var(--ocean); }
.stamp-prev  { color: var(--amber); border-color: var(--amber); }
.stamp-valid { color: var(--teal); border-color: var(--teal); }

/* Indices directionnels */
.swipe-hint {
    position: absolute; z-index: 5; font-size: 12px; font-weight: 800; letter-spacing: .05em;
    padding: 6px 12px; border-radius: 20px; opacity: 0; transition: opacity .1s; pointer-events: none;
    background: rgba(4,28,44,.85);
}
.swipe-hint-left  { left: 10px; top: 50%; transform: translateY(-50%); color: var(--ocean-muted); }
.swipe-hint-right { right: 10px; top: 50%; transform: translateY(-50%); color: var(--ocean); }
.swipe-hint-up    { top: 10px; left: 50%; transform: translateX(-50%); color: var(--amber); }
.swipe-hint-down  { bottom: 10px; left: 50%; transform: translateX(-50%); color: var(--teal); }

/* Boutons d'action */
.swipe-actions { display: flex; gap: 8px; justify-content: center; }
.swipe-act {
    flex: 1; max-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--white); border: 1px solid var(--border-light); border-radius: 16px;
    padding: 12px 6px; cursor: pointer; font-family: inherit; transition: transform .12s, border-color .15s;
}
.swipe-act:active { transform: scale(.94); }
.swipe-act-ico { font-size: 22px; line-height: 1; }
.swipe-act-lbl { font-size: 10.5px; font-weight: 700; color: var(--text-muted); }
.sw-left  .swipe-act-ico { color: var(--ocean-muted); }
.sw-right .swipe-act-ico { color: var(--ocean); }
.sw-up    .swipe-act-ico { color: var(--amber); }
.sw-down  .swipe-act-ico { color: var(--teal); }
.sw-left:hover  { border-color: var(--ocean-muted); }
.sw-right:hover { border-color: var(--ocean); }
.sw-up:hover    { border-color: var(--amber); }
.sw-down:hover  { border-color: var(--teal); }

.swipe-undo {
    display: block; margin: 12px auto 0; background: none; border: none; cursor: pointer;
    font-size: 12.5px; color: var(--ocean-muted); font-family: inherit;
}
.swipe-undo:disabled { opacity: .35; cursor: default; }
.swipe-undo:not(:disabled):hover { color: var(--ocean); }

/* Écran de fin */
.swipe-done {
    display: none; text-align: center; padding: 30px 20px;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl); backdrop-filter: blur(10px); margin-top: 6px;
}
.swipe-done.show { display: block; animation: swipe-done-in .3s ease; }
@keyframes swipe-done-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.swipe-done-icon { font-size: 40px; }
.swipe-done-title { font-size: 20px; font-weight: 800; color: var(--text-main); margin: 8px 0 12px; }
.swipe-done-summary { font-size: 14px; color: var(--ocean-muted); margin-bottom: 22px; line-height: 1.8; }
.swipe-done-summary b { font-family: ui-monospace, monospace; }
.swipe-done-summary .sm-valid { color: var(--teal); }
.swipe-done-summary .sm-prev { color: var(--amber); }
.swipe-done-summary .sm-essai { color: var(--ocean); }
.swipe-done-summary .sm-pass { color: var(--ocean-muted); }
.swipe-save {
    width: 100%; padding: 14px; border: none; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, #22D3EE, #0E7490); color: #04222F;
    font-size: 15px; font-weight: 800; font-family: inherit;
}
.swipe-save:disabled { opacity: .4; cursor: default; }
.swipe-restart {
    display: block; margin: 12px auto 0; background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--ocean-muted); font-family: inherit;
}

/* Sélecteur de mode sur la fiche de suivi */
.trk-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.trk-mode-fast, .trk-mode-bulk {
    font-size: 12.5px; font-weight: 600; cursor: pointer;
    border-radius: 10px; padding: 9px 14px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
    border: 1px solid var(--border-light);
}
.trk-mode-fast {
    background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(14,116,144,.18));
    border-color: rgba(34,211,238,.4); color: var(--ocean);
}
.trk-mode-fast:hover { background: linear-gradient(135deg, rgba(34,211,238,.3), rgba(14,116,144,.28)); color: var(--ocean-light); }
.trk-mode-go { opacity: .6; transition: transform .15s, opacity .15s; }
.trk-mode-fast:hover .trk-mode-go { opacity: 1; transform: translateX(2px); }
.trk-mode-bulk { background: var(--navy-light); color: var(--ocean-muted); margin-left: auto; }
.trk-mode-bulk:hover { color: var(--ocean); border-color: var(--ocean-pale); }

/* Session terminée : on masque le deck et les commandes, seul l'écran de fin reste */
.swipe-wrap.done .swipe-deck,
.swipe-wrap.done .swipe-actions,
.swipe-wrap.done .swipe-undo,
.swipe-wrap.done .swipe-progress { display: none; }

/* ============================================================
   INSCRIPTION RAPIDE (bouton niveau + panneau)
   ============================================================ */
.level-enroll-btn {
    font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer;
    color: var(--ocean); background: rgba(34,211,238,.1);
    border: 1px solid rgba(34,211,238,.35); border-radius: 10px;
    padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px;
    transition: background .12s;
}
.level-enroll-btn:hover { background: rgba(34,211,238,.22); }
.enroll-search {
    width: 100%; padding: 11px 13px; font-size: 14px; font-family: inherit;
    background: rgba(2,14,22,.5); color: var(--text-main);
    border: 1px solid var(--border-light); border-radius: 12px;
    margin-bottom: 10px;
}
.enroll-search:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.enroll-list { max-height: 42vh; overflow-y: auto; }
.enroll-row { margin-bottom: 6px; }
.enroll-row-name { font-size: 14px; font-weight: 600; color: var(--text-main); }
.enroll-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 18px 6px; line-height: 1.7; }
.enroll-empty a { color: var(--ocean); }

/* Bloc d'aide contextuelle dans un formulaire */
.form-hint-block {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 12.5px; color: var(--text-muted); line-height: 1.5;
    background: var(--navy-lighter); border: 1px solid var(--border-light);
    border-radius: 10px; padding: 10px 13px; margin-bottom: 16px;
}
.form-hint-block i { color: var(--ocean-muted); font-size: 14px; margin-top: 1px; flex-shrink: 0; }
.form-hint-block b { color: var(--text-main); font-weight: 600; }

/* Écran de confirmation après création de séance */
.session-done { text-align: center; padding: 20px 0 26px; }
.session-done-icon { font-size: 40px; }
.session-done-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin: 10px 0 6px; }
.session-done-sub { font-size: 13.5px; color: var(--ocean-muted); }
.session-done-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 12px 14px;
    text-decoration: none; transition: border-color .12s;
}
.session-done-card:hover { border-color: var(--ocean-pale); }

/* ============================================================
   PROGRESSION — composant multi-segments unifié
   (cartes élève, espace élève, en-tête de fiche)
   ============================================================ */
.progress-stack-label {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 5px; font-size: 12px; color: var(--text-muted);
}
.progress-stack-pct { font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; }
.progress-stack-track {
    display: flex; height: 6px; border-radius: 4px; overflow: hidden;
    background: var(--navy-light); border: 1px solid var(--border-light);
}
.progress-stack-seg { height: 100%; flex-shrink: 0; transition: width .3s ease; }
.seg-validated    { background: var(--teal); }
.seg-prevalidated { background: var(--amber); }
.seg-tried         { background: var(--ocean-muted); }

.progress-stack-lg .progress-stack-track { height: 9px; border-radius: 5px; }
.progress-stack-lg .progress-stack-label { font-size: 13px; }
.progress-stack-lg .progress-stack-pct { font-size: 15px; }

/* Légende, rappelée une fois en haut de la fiche de suivi */
.progress-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.progress-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ocean-muted); }
.progress-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.progress-legend-dot.seg-validated    { background: var(--teal); }
.progress-legend-dot.seg-prevalidated { background: var(--amber); }
.progress-legend-dot.seg-tried         { background: var(--ocean-muted); }
.progress-legend-dot.seg-todo          { background: transparent; border: 1.5px solid var(--border); }

/* ============================================================
   AVATAR AVEC PASTILLE DE RÔLE — composant unifié
   ============================================================ */
.role-avatar {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; flex-shrink: 0; line-height: 1;
}
.role-avatar-sm { width: 26px; height: 26px; font-size: 10px; border-radius: 9px; }
.role-avatar-md { width: 36px; height: 36px; font-size: 13px; border-radius: 12px; }
.role-avatar-lg { width: 44px; height: 44px; font-size: 15px; border-radius: 14px; }
.role-avatar-badge {
    position: absolute; bottom: -3px; right: -3px;
    width: 15px; height: 15px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 800;
    box-shadow: 0 0 0 2px rgba(2,14,22,.7);
}
.role-tier-eleve       { background: var(--navy-light); color: var(--ocean-muted); }
.role-tier-eleve .role-avatar-badge       { background: var(--ocean-muted); color: #04222F; }
.role-tier-moniteur    { background: rgba(34,211,238,.14); color: var(--ocean); }
.role-tier-moniteur .role-avatar-badge    { background: var(--ocean); color: #04222F; }
.role-tier-responsable { background: var(--teal-light); color: var(--teal); }
.role-tier-responsable .role-avatar-badge { background: var(--teal); color: #04222F; }
.role-tier-admin       { background: var(--purple-light); color: var(--purple); }
.role-tier-admin .role-avatar-badge       { background: var(--purple); color: #04222F; }
.role-tier-none        { background: var(--gray-light); color: var(--gray-text); }

/* Retrait d'une formation (carte élève) — action destructive, discrète */
.student-card-remove-form { margin-top: 2px; }
.student-card-remove {
    width: 100%; background: none; border: none; cursor: pointer;
    font-size: 11px; font-family: inherit; color: var(--text-muted);
    padding: 5px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    transition: color .12s, background .12s;
}
.student-card-remove:hover { color: var(--red); background: var(--red-light); }

/* File « À valider » — regroupement par niveau + périmètre */
.queue-scope-toggle {
    font-size: 12px; font-weight: 700; color: var(--ocean); text-decoration: none;
    border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.08);
    border-radius: 12px; padding: 7px 14px;
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.queue-scope-toggle:hover { background: rgba(34,211,238,.18); }
.queue-scope-note { font-size: 12px; color: var(--text-muted); margin: -4px 0 14px; }

.queue-level {
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px;
    backdrop-filter: blur(8px);
}
.queue-level-header {
    background: var(--navy); padding: 12px 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.queue-level-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.queue-level-right { display: flex; align-items: center; gap: 10px; }
.queue-level-selectall {
    font-size: 10.5px; font-weight: 700; font-family: inherit; cursor: pointer;
    color: var(--ocean-muted); background: transparent;
    border: 1px solid var(--border-light); border-radius: 8px; padding: 3px 9px;
}
.queue-level-selectall:hover { color: var(--ocean); border-color: var(--ocean-pale); }
.queue-level-count {
    font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700;
    background: var(--amber-light); color: var(--amber);
    border-radius: 10px; padding: 2px 9px;
}
.queue-level-body { display: none; padding: 6px 12px 12px; }
.queue-level-body.open { display: block; }
.queue-level-body .queue-group { margin-top: 12px; }
.queue-fiche-link {
    margin-left: auto; font-size: 11px; color: var(--ocean-muted); text-decoration: none;
}
.queue-fiche-link:hover { color: var(--ocean); }

/* ============================================================
   « VOIR EN TANT QUE » — bandeau + bouton
   ============================================================ */
.impersonation-banner {
    position: sticky; top: 0; z-index: 300;
    background: linear-gradient(90deg, #B45309, #92400E);
    color: #FEF3C7;
    padding: 9px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 13px; font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.impersonation-banner i { margin-right: 6px; }
.impersonation-stop {
    background: rgba(255,255,255,.15); color: #FEF3C7;
    border: 1px solid rgba(254,243,199,.4); border-radius: 10px;
    padding: 6px 14px; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: inherit; white-space: nowrap;
}
.impersonation-stop:hover { background: rgba(255,255,255,.28); }
.btn-impersonate {
    background: var(--purple-light); color: var(--purple);
    border: 1px solid transparent; border-radius: 10px;
    width: 34px; height: 34px; cursor: pointer; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-impersonate:hover { border-color: var(--purple); }


/* ============================================================
   OUVERTURE ANIMÉE DES SECTIONS (grid 0fr → 1fr)
   ============================================================ */
.collapse-anim {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s cubic-bezier(.4, 0, .2, 1);
}
.collapse-anim.open { grid-template-rows: 1fr; }
.collapse-anim > .collapse-inner {
    overflow: hidden;
    min-height: 0;
}
@media (prefers-reduced-motion: reduce) {
    .collapse-anim { transition: none; }
}
/* rotation douce déjà présente sur .level-chevron ; on aligne les autres */
.qualif-chevron, .theme-chevron, .skill-chevron {
    transition: transform .25s ease; display: inline-block;
}
.qualif-chevron.open, .theme-chevron.open, .skill-chevron.open { transform: rotate(180deg); }

/* ============================================================
   HISTORIQUE DES ESSAIS — cartes + boutons icônes
   ============================================================ */
.hist-entry {
    background: rgba(4,28,44,.35);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 9px 12px;
    margin-bottom: 8px;
}
.hist-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hist-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hist-date {
    font-family: ui-monospace, monospace; font-size: 11.5px;
    color: var(--ocean-muted); white-space: nowrap;
}
.hist-meta { font-size: 12px; color: var(--text-muted); flex: 1; min-width: 0; }
.hist-comment {
    font-size: 12.5px; color: var(--gray-text); font-style: italic;
    margin: 6px 0 0 17px; line-height: 1.45;
}
.hist-actions { display: flex; gap: 5px; margin-left: auto; }
.hist-btn {
    width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; text-decoration: none;
    background: var(--navy-light); color: var(--ocean-muted);
    border: 1px solid transparent;
    transition: color .12s, border-color .12s, background .12s;
}
.hist-btn-validate { background: var(--teal-light); color: var(--teal); }
.hist-btn-validate:hover { border-color: var(--teal); }
.hist-btn-invalidate { background: var(--amber-light); color: var(--amber); }
.hist-btn-invalidate:hover { border-color: var(--amber); }
.hist-btn-edit:hover { color: var(--ocean); border-color: var(--ocean-pale); }
.hist-btn-delete:hover { background: var(--red-light); color: var(--red); border-color: var(--red-border); }

/* ============================================================
   DOC & AIDE
   ============================================================ */
.topnav-help {
    width: 38px; height: 38px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ocean-muted); font-size: 16px; text-decoration: none;
    border: 1px solid var(--border-light);
}
.topnav-help:hover, .topnav-help.active { color: var(--ocean); border-color: var(--ocean-pale); background: var(--navy-light); }
.doc-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
.doc-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-xl); padding: 16px 18px;
    text-decoration: none; backdrop-filter: blur(8px);
    transition: border-color .15s, transform .15s;
}
.doc-card:hover { border-color: var(--ocean-pale); transform: translateY(-2px); }
.doc-card-ico {
    width: 46px; height: 46px; border-radius: 15px; font-size: 21px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
.doc-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.doc-card-cta { font-size: 12px; font-weight: 700; color: var(--ocean); white-space: nowrap; }
.doc-video-wrap {
    border-radius: var(--radius-xl); overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--navy-dark);
}
.doc-video-wrap video { display: block; width: 100%; max-height: 70vh; }
.doc-video-placeholder {
    text-align: center; padding: 36px 20px; color: var(--text-muted);
    background: var(--white); border: 1px dashed var(--border);
    border-radius: var(--radius-xl); backdrop-filter: blur(8px);
}
.doc-video-placeholder p { font-size: 13px; margin-top: 8px; }

/* ============================================================
   INSCRIPTION SUR INVITATION
   ============================================================ */
.reg-intro { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-pwd-rules { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.reg-footer { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.reg-footer a { color: var(--ocean); }
.reg-step-ico { font-size: 44px; margin-bottom: 10px; }

.invite-box {
    background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.35);
    border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px;
    backdrop-filter: blur(8px);
}
.invite-box-title { font-size: 13px; font-weight: 700; color: var(--ocean); margin-bottom: 10px; }
.invite-box-row { display: flex; gap: 8px; }
.invite-box-row input {
    flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: 11.5px;
    padding: 9px 12px; background: rgba(2,14,22,.5); color: var(--text-main);
    border: 1px solid var(--border-light); border-radius: 10px;
}
.invite-box-row button {
    font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    background: linear-gradient(135deg, #22D3EE, #0E7490); color: #04222F;
    border: none; border-radius: 10px; padding: 0 16px; white-space: nowrap;
}
.invite-box-actions { margin-top: 10px; }
.invite-box-actions a {
    font-size: 12.5px; font-weight: 700; color: #34D399; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}

.pending-banner {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--amber-light); border: 1px solid rgba(251,191,36,.4);
    border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px;
    font-size: 13px; color: var(--text-main);
    backdrop-filter: blur(8px);
}
.pending-banner > i { font-size: 20px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.pending-banner-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.pending-banner-list a { color: var(--ocean); font-weight: 600; text-decoration: none; font-size: 12.5px; }
.pending-ok { color: var(--teal); font-weight: 400; font-size: 11px; }
.pending-wait { color: var(--amber); font-weight: 400; font-size: 11px; }
.pending-banner-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   MASQUAGE DES FORMATIONS (tableau moniteur)
   ============================================================ */
.level-eye-btn {
    background: none; border: none; cursor: pointer;
    color: var(--ocean-muted); font-size: 14px; padding: 4px 6px;
    border-radius: 8px; opacity: .6; transition: opacity .12s, color .12s;
}
.level-eye-btn:hover { opacity: 1; color: var(--ocean); }
.level-block.level-hidden { display: none; }
.level-block.level-hidden.level-revealed {
    display: block; opacity: .75;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.hidden-levels-toggle {
    display: block; width: 100%; margin: 4px 0 16px;
    background: none; border: 1px dashed var(--border);
    border-radius: var(--radius-lg); padding: 11px;
    font-family: inherit; font-size: 12.5px; font-weight: 600;
    color: var(--ocean-muted); cursor: pointer;
    transition: color .12s, border-color .12s;
}
.hidden-levels-toggle:hover { color: var(--ocean); border-color: var(--ocean-pale); }

/* ============================================================
   MODE DÉMO — bloc sur la page de connexion + variante de bannière
   ============================================================ */
.demo-block { padding: 0 24px 24px; }
.demo-sep {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 12px;
}
.demo-sep::before, .demo-sep::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }
.demo-intro { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-bottom: 12px; line-height: 1.5; }
.demo-actions { display: flex; flex-direction: column; gap: 8px; }
.demo-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(34,211,238,.1); color: var(--ocean);
    border: 1px solid rgba(34,211,238,.35); border-radius: 12px;
    padding: 11px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: background .12s;
}
.demo-btn:hover { background: rgba(34,211,238,.22); }

.sandbox-banner { background: linear-gradient(90deg, #0E7490, #155E75); color: #E0F7FA; }

/* Éléments d'action non disponibles en mode démo : grisés, non cliquables,
   mais toujours visibles + libellés (accessibilité daltonien : jamais
   uniquement une différence de couleur). */
.btn-disabled-demo,
.nav-disabled-demo {
    opacity: .5;
    cursor: not-allowed;
    filter: grayscale(.6);
    pointer-events: none;
}
.btn-disabled-demo:hover,
.nav-disabled-demo:hover { background: inherit !important; color: inherit !important; }
.search-bar-demo { opacity: .55; cursor: not-allowed; }
.search-bar-demo input,
.search-bar-demo button { cursor: not-allowed; }
