/* ═══════════════════════════════════════════════════════════════
   CyberAcadémie — Feuille de styles principale (index.html)
   Pour modifier les couleurs des modules, cherchez les variables
   --m1, --m2, --m3, --m4 dans la section :root ci-dessous.
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1. VARIABLES CSS (tout personnaliser ici)
   ────────────────────────────────────────────────────────────── */
:root {
    /* Fonds */
    --bg-base:        #0f0f1a;
    --bg-card:        #16213e;
    --bg-card-hover:  #1a274f;
    --bg-overlay:     rgba(15, 15, 26, 0.9);

    /* Textes */
    --text-primary:   #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    /* Bordures & ombres */
    --border:         rgba(255, 255, 255, 0.08);
    --border-hover:   rgba(255, 255, 255, 0.18);
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.55);
    --shadow-hover:   0 10px 48px rgba(0, 0, 0, 0.75);
    --shadow-glow:    0 0 40px rgba(88, 166, 255, 0.15);

    /* Accentuation globale */
    --accent:         #58a6ff;
    --success:        #22c55e;
    --warning:        #f59e0b;
    --danger:         #ef4444;

    /* ── Couleurs par module ──
       Modifier ici pour changer le thème couleur d'un module */

    /* Module 1 : Mots de passe (bleu cyan) */
    --m1:      #06b6d4;
    --m1-dark: #0e7490;
    --m1-glow: rgba(6, 182, 212, 0.3);
    --m1-bg:   rgba(6, 182, 212, 0.1);

    /* Module 2 : Sites sécurisés (vert) */
    --m2:      #22c55e;
    --m2-dark: #15803d;
    --m2-glow: rgba(34, 197, 94, 0.3);
    --m2-bg:   rgba(34, 197, 94, 0.1);

    /* Module 3 : Phishing (orange) */
    --m3:      #f97316;
    --m3-dark: #c2410c;
    --m3-glow: rgba(249, 115, 22, 0.3);
    --m3-bg:   rgba(249, 115, 22, 0.1);

    /* Module 4 : Escape game (violet) */
    --m4:      #a855f7;
    --m4-dark: #7e22ce;
    --m4-glow: rgba(168, 85, 247, 0.3);
    --m4-bg:   rgba(168, 85, 247, 0.1);

    /* Module 5 : Chiffrement (ambre) */
    --m5:      #f59e0b;
    --m5-dark: #b45309;
    --m5-glow: rgba(245, 158, 11, 0.3);
    --m5-bg:   rgba(245, 158, 11, 0.1);

    /* Rayons de bordure */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Transitions */
    --t-fast:   0.15s ease;
    --t-normal: 0.25s ease;
    --t-slow:   0.45s cubic-bezier(0.4, 0, 0.2, 1);

    /* Anneau SVG : circumférence pour r=24 → 2π×24 ≈ 150.8 */
    --ring-circ: 150.796;
}

/* ──────────────────────────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ──────────────────────────────────────────────────────────────
   3. FOND ANIMÉ
   ────────────────────────────────────────────────────────────── */

/* Grille cyber en arrière-plan */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: var(--bg-base);
    background-image:
        linear-gradient(rgba(88, 166, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* Conteneur pour les particules binaires générées en JS */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Chaque particule (span) reçoit l'animation "float" */
@keyframes float-up {
    0%   { transform: translateY(0)     rotate(0deg);   opacity: 0;    }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(20deg); opacity: 0;    }
}

/* ──────────────────────────────────────────────────────────────
   4. MODAL DE BIENVENUE
   ────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--r-xl);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(88, 166, 255, 0.1);
    animation: slide-up 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.5));
    animation: pulse-shield 2s ease-in-out infinite;
}

@keyframes pulse-shield {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.08); }
}

.modal-box h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-form input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}

.modal-form input::placeholder { color: var(--text-muted); }

.modal-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.btn-primary {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    border: none;
    border-radius: var(--r-md);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 166, 255, 0.6);
    filter: brightness(1.1);
}

.btn-primary:active { transform: translateY(0); }

.modal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────
   5. EN-TÊTE
   ────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    transition: opacity var(--t-fast);
}
.header-logo:hover { opacity: 0.85; }

.logo-shield { font-size: 1.6rem; }

.logo-text {
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.logo-text strong { color: var(--accent); }

/* Barre de progression globale */
.header-progress-area {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #22c55e);
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Infos élève */
.header-student {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.student-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

/* ──────────────────────────────────────────────────────────────
   6. SECTION HÉROS
   ────────────────────────────────────────────────────────────── */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-tag {
    display: inline-block;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.25);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent), #a855f7, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Stats récapitulatifs */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.75rem 1.25rem;
    min-width: 80px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.stat-sep {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Bouclier décoratif */
.hero-graphic {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shield-emoji {
    font-size: 6rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(88, 166, 255, 0.6));
    animation: shield-float 3s ease-in-out infinite;
}

@keyframes shield-float {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-10px); }
}

.shield-glow {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.2), transparent 70%);
}

.shield-pulse {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(88, 166, 255, 0.3);
    animation: ring-expand 3s ease-out infinite;
}
.shield-pulse.ring-1 { inset: 0;     animation-delay: 0s;   }
.shield-pulse.ring-2 { inset: -20px; animation-delay: 1.5s; }

@keyframes ring-expand {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0;   }
}

/* ──────────────────────────────────────────────────────────────
   7. SECTION MODULES
   ────────────────────────────────────────────────────────────── */
.modules-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, var(--accent), #a855f7);
    border-radius: 2px;
}

/* Grille 2×2 sur desktop, 1 colonne sur mobile */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
    gap: 1.5rem;
}

/* ──────────────────────────────────────────────────────────────
   8. CARTES DE MODULE
   ────────────────────────────────────────────────────────────── */
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

/* Module 4 : légère mise en valeur (carte spéciale) */
.module-card-special {
    background: linear-gradient(160deg, #16213e 0%, #1a1535 100%);
}
.module-card-special:hover {
    box-shadow: var(--shadow-hover), 0 0 40px var(--m4-glow);
    border-color: rgba(168, 85, 247, 0.3);
}

/* En-tête de carte */
.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Fond dégradé par module */
.module-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    transition: opacity var(--t-normal);
}
.module-card:hover .module-header::before { opacity: 0.14; }

.mod1::before { background: linear-gradient(135deg, var(--m1), var(--m1-dark)); }
.mod2::before { background: linear-gradient(135deg, var(--m2), var(--m2-dark)); }
.mod3::before { background: linear-gradient(135deg, var(--m3), var(--m3-dark)); }
.mod4::before { background: linear-gradient(135deg, var(--m4), var(--m4-dark)); }
.mod5::before { background: linear-gradient(135deg, var(--m5), var(--m5-dark)); }

/* Bordure colorée en haut */
.module-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}
.mod1::after { background: linear-gradient(90deg, var(--m1-dark), var(--m1)); }
.mod2::after { background: linear-gradient(90deg, var(--m2-dark), var(--m2)); }
.mod3::after { background: linear-gradient(90deg, var(--m3-dark), var(--m3)); }
.mod4::after { background: linear-gradient(90deg, var(--m4-dark), var(--m4)); }
.mod5::after { background: linear-gradient(90deg, var(--m5-dark), var(--m5)); }

/* Icône du module */
.module-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}
.mod1 .module-icon-wrap { background: var(--m1-bg); border: 1px solid var(--m1-glow); }
.mod2 .module-icon-wrap { background: var(--m2-bg); border: 1px solid var(--m2-glow); }
.mod3 .module-icon-wrap { background: var(--m3-bg); border: 1px solid var(--m3-glow); }
.mod4 .module-icon-wrap { background: var(--m4-bg); border: 1px solid var(--m4-glow); }
.mod5 .module-icon-wrap { background: var(--m5-bg); border: 1px solid var(--m5-glow); }

/* Méta-informations */
.module-meta {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.module-badge-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    margin-bottom: 0.3rem;
}
.mod1 .module-badge-label { background: var(--m1-bg); color: var(--m1); }
.mod2 .module-badge-label { background: var(--m2-bg); color: var(--m2); }
.mod3 .module-badge-label { background: var(--m3-bg); color: var(--m3); }
.mod4 .module-badge-label { background: var(--m4-bg); color: var(--m4); }
.mod5 .module-badge-label { background: var(--m5-bg); color: var(--m5); }

.module-title {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ──────────────────────────────────────────────────────────────
   9. ANNEAUX DE PROGRESSION SVG
   ────────────────────────────────────────────────────────────── */
.module-ring-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.ring-svg { display: block; overflow: visible; }

/* Fond de l'anneau */
.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 5;
}

/* Arc de progression */
.ring-fill {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 150.796;
    stroke-dashoffset: 150.796;    /* 0% par défaut */
    transform: rotate(-90deg);
    transform-origin: 30px 30px;  /* Centre du cercle (cx=30, cy=30) */
    transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.3s ease;
}

/* Couleurs des anneaux par module */
.mod1-ring { stroke: var(--m1); filter: drop-shadow(0 0 4px var(--m1)); }
.mod2-ring { stroke: var(--m2); filter: drop-shadow(0 0 4px var(--m2)); }
.mod3-ring { stroke: var(--m3); filter: drop-shadow(0 0 4px var(--m3)); }
.mod4-ring { stroke: var(--m4); filter: drop-shadow(0 0 4px var(--m4)); }
.mod5-ring { stroke: var(--m5); filter: drop-shadow(0 0 4px var(--m5)); }

/* Texte centré dans l'anneau */
.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   10. LISTE D'ACTIVITÉS
   ────────────────────────────────────────────────────────────── */
.activities-list {
    padding: 0.5rem 0 0.5rem;
}

.activities-list li {
    border-top: 1px solid var(--border);
}
.activities-list li:first-child { border-top: none; }

/* Lien d'activité */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
    transition: background var(--t-fast);
    position: relative;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Numéro de l'activité */
.act-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.mod1-num { background: var(--m1-bg); color: var(--m1); }
.mod2-num { background: var(--m2-bg); color: var(--m2); }
.mod3-num { background: var(--m3-bg); color: var(--m3); }
.mod4-num { background: var(--m4-bg); color: var(--m4); }
.mod5-num { background: var(--m5-bg); color: var(--m5); }

/* Informations de l'activité */
.act-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.act-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge de statut (⏳ / ✅) */
.act-status {
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: transform var(--t-normal);
}
.activity-item:hover .act-status { transform: scale(1.2); }

/* État "complété" : fond légèrement vert */
.activity-item.completed {
    background: rgba(34, 197, 94, 0.04);
}
.activity-item.completed .act-title { color: var(--success); }

/* État "verrouillé" : grisé + curseur interdit */
.activity-item.locked {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   11. BANDEAU DE VERROU (Module 4)
   ────────────────────────────────────────────────────────────── */
.lock-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(168, 85, 247, 0.07);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.lock-icon { font-size: 1.5rem; flex-shrink: 0; }

.lock-text { flex: 1; }
.lock-text strong { font-size: 0.9rem; color: var(--m4); }
.lock-text p { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Points indicateurs des modules 1-2-3 */
.lock-dots {
    display: flex;
    gap: 0.4rem;
}

.lock-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: background var(--t-normal), color var(--t-normal), border-color var(--t-normal);
}

/* Quand le module correspondant est terminé */
.lock-dot.done {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-color: var(--success);
}

/* ──────────────────────────────────────────────────────────────
   12. PIED DE PAGE
   ────────────────────────────────────────────────────────────── */
.site-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
}

.footer-nav a,
.footer-link-btn {
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    transition: opacity var(--t-fast);
}
.footer-nav a:hover,
.footer-link-btn:hover { opacity: 0.75; text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────
   13. RESPONSIVE
   ────────────────────────────────────────────────────────────── */

/* Tablette et petit desktop */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-stats { justify-content: center; }
    .hero-graphic { width: 140px; height: 140px; }
    .shield-emoji { font-size: 4.5rem; }
}

/* Mobile */
@media (max-width: 640px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.6rem 1rem;
    }
    .header-progress-area {
        order: 3;
        flex-basis: 100%;
    }
    .hero-graphic { display: none; }
    .hero-section { padding-top: 2rem; }
    .module-header { padding: 1rem; gap: 0.75rem; }
    .activity-item { padding: 0.75rem 1rem; gap: 0.75rem; }
    .module-desc { display: none; }
    .act-desc  { display: none; }
    .lock-notice { flex-wrap: wrap; }
}

@media (max-width: 400px) {
    .hero-stats { gap: 0.5rem; }
    .hero-stat  { padding: 0.5rem 0.75rem; }
    .stat-number { font-size: 1.4rem; }
}

/* ──────────────────────────────────────────────────────────────
   14. ÉTATS DE FOCUS (accessibilité clavier)
   ────────────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* ──────────────────────────────────────────────────────────────
   15. SCROLLBAR personnalisée (navigateurs Webkit)
   ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 8px; }
::-webkit-scrollbar-track    { background: var(--bg-base); }
::-webkit-scrollbar-thumb    { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
