/* ═══════════════════════════════════════════════════════════════
   ADVICENTIS — Design System
   Thème : Navy & Gold, professionnel et chaleureux
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --navy: #0A1628;
    --navy-light: #132240;
    --navy-medium: #1B3A5C;
    --gold: #C8962A;
    --gold-light: #E8B84A;
    --gold-dark: #A07820;
    --blue: #1A5FAB;
    --blue-light: #2D7DD2;
    --green: #28A745;
    --red: #DC3545;
    --orange: #FD7E14;

    --bg: #F8F9FB;
    --bg-card: #FFFFFF;
    --bg-alt: #EEF1F6;
    --text: #1A1A2E;
    --text-light: #5A6478;
    --text-muted: #8E99A9;
    --border: #DDE2EA;
    --border-light: #EEF1F6;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-condensed: 'Barlow Condensed', sans-serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
    --shadow: 0 2px 8px rgba(10,22,40,0.08);
    --shadow-md: 0 4px 16px rgba(10,22,40,0.1);
    --shadow-lg: 0 8px 32px rgba(10,22,40,0.12);

    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
    --header-h: 70px;
    --sidebar-w: 260px;
    --max-w: 1200px;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
    --bg: #0D1B2A;
    --bg-card: #132240;
    --bg-alt: #1B3A5C;
    --text: #E8ECF2;
    --text-light: #A0ADBF;
    --text-muted: #6B7A90;
    --border: #1E3A5F;
    --border-light: #1B3050;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); font-weight: 700; line-height: 1.2; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--gold-light); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

/* ── Header ── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.3rem; font-family: var(--font-display); font-weight: 700; }
.logo-icon { font-size: 1.6rem; }
.logo:hover { color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: rgba(255,255,255,0.8); padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; transition: all var(--transition);
    font-family: var(--font-condensed); letter-spacing: 0.3px; text-transform: uppercase;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav a.active { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-only-badge { display: none !important; }

.mobile-menu-btn {
    display: none; background: none; border: none; color: #fff; font-size: 1.3rem; padding: 8px;
}

/* ── Mobile Menu ── */
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
    position: absolute; right: 0; top: 0; bottom: 0; width: 280px;
    background: var(--navy); padding: 24px; overflow-y: auto;
}
.mobile-menu-close { background: none; border: none; color: #fff; font-size: 1.5rem; position: absolute; top: 16px; right: 16px; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.mobile-nav a {
    color: rgba(255,255,255,0.8); padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 500; display: block;
}
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.mobile-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }

/* ── Main Content ── */
.main-content { min-height: calc(100vh - var(--header-h) - 200px); padding-top: var(--header-h); }
.page { max-width: var(--max-w); margin: 0 auto; padding: 32px 24px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Sidebar Layout (Dashboard) ── */
.layout-sidebar {
    display: grid; grid-template-columns: var(--sidebar-w) 1fr;
    gap: 0; min-height: calc(100vh - var(--header-h));
}
.sidebar {
    background: var(--bg-card); border-right: 1px solid var(--border);
    padding: 24px 0; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.sidebar-greeting { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sidebar-greeting h3 { font-size: 1rem; color: var(--text); margin-bottom: 2px; }
.sidebar-greeting .greeting-name { color: var(--gold); }
.sidebar-greeting p { font-size: 0.82rem; color: var(--text-muted); }

.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; color: var(--text-light);
    font-size: 0.9rem; font-weight: 500; transition: all var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: var(--text); background: var(--bg-alt); }
.sidebar-nav a.active { color: var(--gold); background: var(--bg-alt); border-left-color: var(--gold); font-weight: 600; }
.sidebar-nav a i { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-nav .badge-count {
    margin-left: auto; background: var(--red); color: #fff;
    font-size: 0.7rem; padding: 2px 7px; border-radius: 10px; font-weight: 600;
}

.sidebar-section-title {
    padding: 16px 20px 6px; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
}

.main-panel { padding: 32px; overflow-y: auto; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.9rem; border: 2px solid transparent;
    transition: all var(--transition); line-height: 1.4;
    font-family: var(--font-condensed); letter-spacing: 0.3px; text-transform: uppercase;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy-light); border-color: var(--navy-light); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    transform: translateY(-1px);
}

/* FAQ cards hover */
.faq-card:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 4px 16px rgba(200,150,42,0.12) !important;
}
.faq-card:hover .faq-icon { color: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--text-light); border: none; padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); background: var(--bg-alt); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Cards ── */
.card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
    transition: all var(--transition); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); font-weight: 600; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); background: var(--bg-alt); }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 20px;
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    display: flex; align-items: flex-start; gap: 16px;
}
.kpi-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.kpi-icon.gold { background: rgba(200,150,42,0.1); color: var(--gold); }
.kpi-icon.blue { background: rgba(26,95,171,0.1); color: var(--blue); }
.kpi-icon.green { background: rgba(40,167,69,0.1); color: var(--green); }
.kpi-icon.red { background: rgba(220,53,69,0.1); color: var(--red); }
.kpi-value { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; }
.kpi-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--text); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text);
    font-size: 0.95rem; transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,150,42,0.15);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 20px; font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    font-family: var(--font-condensed);
}
.badge-gold { background: rgba(200,150,42,0.12); color: var(--gold-dark); }
.badge-blue { background: rgba(26,95,171,0.12); color: var(--blue); }
.badge-green { background: rgba(40,167,69,0.12); color: var(--green); }
.badge-red { background: rgba(220,53,69,0.12); color: var(--red); }
.badge-gray  { background: var(--bg-alt); color: var(--text-muted); }
.badge-muted { background: var(--bg-alt); color: var(--text-muted); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.table th { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.table tr:hover td { background: var(--bg-alt); }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
    padding: 10px 20px; background: none; border: none; color: var(--text-muted);
    font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all var(--transition); cursor: pointer;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Toast Notifications ── */
.toast-container { position: fixed; top: 90px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 14px 20px; border-radius: var(--radius); color: #fff;
    font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease; min-width: 280px; max-width: 400px;
    display: flex; align-items: center; gap: 10px;
}
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
.toast-info { background: var(--blue); }
.toast-warning { background: var(--orange); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 250;
    background: rgba(10,22,40,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; animation: fadeIn 0.2s ease;
}
.modal-content {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); max-width: 560px; width: 100%;
    max-height: 85vh; overflow-y: auto; padding: 32px;
}
.modal-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ── Spinner ── */
.spinner {
    width: 36px; height: 36px; border: 3px solid var(--border);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-sm { width: 22px; height: 22px; border-width: 2.5px; }
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; gap: 16px; color: var(--text-muted); }
/* ── Scroll infini sentinelle ── */
.catalog-infinite-sentinel { display: flex; justify-content: center; align-items: center; padding: 28px 0 12px 0; min-height: 48px; }

/* ── Skeleton Loading ── */
.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Landing / Hero ── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    padding: 80px 24px; text-align: center; color: #fff;
    margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 80px);
    min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; max-width: 700px; }
.hero h1 .gold { color: var(--gold-light); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   HERO SCROLL-DRIVEN style foaster.ai
   - Le hero outer fait 220vh (buffer pour l'animation au scroll)
   - .hero-sticky est pinné en top:0 pendant tout le buffer
   - --hero-progress (0→1) est calculé en JS au scroll
   - Chaque .hero-word révèle quand son seuil --start..--end est traversé
   ══════════════════════════════════════════════════════════════ */
.hero-scroll {
    --hero-progress: 0;
    position: relative;
    display: block !important;        /* override .hero flex pour permettre le sticky */
    min-height: 220vh !important;     /* override les media queries qui imposent 60-70vh */
    background: transparent;
    margin-top: calc(-1 * var(--header-h));
    padding: 0 !important;            /* override .hero padding */
    color: #fff;
}
.hero-scroll .hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, var(--navy-medium) 0%, var(--navy) 55%, #050D1A 100%);
    padding: 0 24px;
}
/* Overlay très subtil pour profondeur — pas d'assombrissement progressif ici */
.hero-scroll .hero-bg-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.25) 90%);
    z-index: 0;
}
.hero-scroll .hero-content {
    position: relative; z-index: 1;
    width: 100%;
    max-width: 820px;
    text-align: center;
    color: #fff;
}
.hero-scroll .hero-badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    border: 1px solid rgba(201,162,39,0.3);
    color: var(--gold);
    padding: 5px 16px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 24px;
    /* Le badge se révèle au tout début */
    opacity: clamp(0, calc(var(--hero-progress) * 8 + 0.1), 1);
    transition: opacity 0.1s linear;
}

/* ── Titre découpé en mots, chacun avec ses seuils --start / --end ── */
.hero-scroll .hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.18;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto; margin-right: auto;
}
.hero-word {
    display: inline-block;
    margin-right: 0.28em;
    /* reveal = clamp(0, (progress - start) / (end - start), 1) */
    --reveal: clamp(0, calc((var(--hero-progress) - var(--start)) / (var(--end) - var(--start))), 1);
    opacity: calc(0.08 + var(--reveal) * 0.92);
    filter: blur(calc((1 - var(--reveal)) * 10px));
    transform: translateY(calc((1 - var(--reveal)) * 14px));
    transition: opacity 0.08s linear, filter 0.08s linear, transform 0.08s linear;
    color: #fff;
}
.hero-word.gold-word { color: var(--gold-light); }

/* ── Paragraphe + boutons : se révèlent quand le titre est presque entièrement clair ── */
.hero-scroll .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.7;
    /* reveal entre 70% et 88% du progress */
    --rev: clamp(0, calc((var(--hero-progress) - 0.70) / 0.18), 1);
    opacity: var(--rev);
    transform: translateY(calc((1 - var(--rev)) * 14px));
    filter: blur(calc((1 - var(--rev)) * 6px));
}
.hero-scroll .hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    /* reveal entre 80% et 96% */
    --rev: clamp(0, calc((var(--hero-progress) - 0.80) / 0.16), 1);
    opacity: var(--rev);
    transform: translateY(calc((1 - var(--rev)) * 14px));
}

/* ── Indicateur "Scroll" en bas, disparaît une fois le hero révélé ── */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.72rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    z-index: 2;
    /* visible tant que progress < 0.85, puis fade out */
    opacity: clamp(0, calc((0.85 - var(--hero-progress)) * 4), 1);
    pointer-events: none;
}
.hero-scroll-hint i { font-size: 1.2rem; animation: heroBounce 1.6s ease-in-out infinite; }
@keyframes heroBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}
.hero-scroll .hero-badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    border: 1px solid rgba(201,162,39,0.3);
    color: var(--gold);
    padding: 5px 16px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-scroll-hint {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(calc(var(--hero-progress) * 30px));
    color: rgba(255,255,255,0.5);
    font-size: 1.4rem; z-index: 2;
    opacity: calc(1 - var(--hero-progress) * 2);
    animation: heroBounce 1.8s cubic-bezier(0.4,0,0.6,1) infinite;
    pointer-events: none;
}
@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS RÉVÉLATION GÉNÉRIQUE — fade-in + slide-up
   Appliquer la classe .reveal-up à tout élément à révéler.
   Utiliser l'inline `--reveal-delay` pour staggered.
   ══════════════════════════════════════════════════════════════ */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.reveal-up.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   SECTION "NOUVEAUX THÈMES" — animations
   - Badge "Nouveau" avec pulse + glow continu
   - Cartes avec bordure animée gradient + sheen périodique
   - Ruban "NEW" qui flotte
   ══════════════════════════════════════════════════════════════ */
.badge-new-pulse {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #E8B84B);
    color: #0A1628;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 18px; border-radius: 20px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 0 0 0 rgba(200, 150, 42, 0.5);
    animation: badgePulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 150, 42, 0.45),
                    0 0 12px 0 rgba(200, 150, 42, 0.25);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 12px rgba(200, 150, 42, 0),
                    0 0 28px 6px rgba(200, 150, 42, 0.45);
    }
}

/* ── Cartes "card-new" : bordure animée + sheen + flottement ── */
.card-new {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    animation: cardFloat 5s ease-in-out infinite;
}
.card-new:nth-of-type(2) { animation-delay: -2.5s; }   /* déphasage entre les 2 cartes */

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Bordure animée via conic-gradient qui tourne (effet aurore) */
.card-new::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0deg,
        var(--accent, var(--gold)) 60deg,
        transparent 120deg,
        transparent 360deg
    );
    z-index: -1;
    animation: borderRotate 4.5s linear infinite;
    opacity: 0.85;
}
.card-new::after {
    /* Masque qui ne laisse voir le gradient qu'en bordure (1px) */
    content: '';
    position: absolute; inset: 0;
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: -1;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes borderRotate {
    to { --angle: 360deg; }
}
/* Fallback navigateurs sans @property : on cible sur ::before transform rotate */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .card-new::before { animation: none; }
}

/* Couleur du gradient par carte */
.card-new-gold { --accent: #C8962A; }
.card-new-blue { --accent: #1A5FAB; }

/* Sheen : reflet brillant qui balaie la carte périodiquement */
.card-new .feature-icon {
    position: relative;
    z-index: 1;
}
.card-new > h3, .card-new > p, .card-new > div { position: relative; z-index: 1; }

.card-new::after {
    /* Override : sheen + bg */
    background:
        linear-gradient(120deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.55) 50%,
            transparent 60%,
            transparent 100%) no-repeat,
        var(--bg-card);
    background-size: 200% 100%, 100% 100%;
    background-position: -100% 0, 0 0;
    animation: cardSheen 5.5s ease-in-out infinite;
    border-radius: calc(var(--radius-lg) - 2px);
}
.card-new-blue::after {
    /* léger délai sur la 2e carte pour alterner */
    animation-delay: 2.7s;
}
@keyframes cardSheen {
    0%, 65%   { background-position: -100% 0, 0 0; }
    80%, 100% { background-position: 200% 0, 0 0; }
}

/* Ruban "NEW" en haut à droite de chaque carte */
.card-new-ribbon {
    position: absolute;
    top: 14px; right: -36px;
    background: linear-gradient(135deg, var(--gold), #E8B84B);
    color: #0A1628;
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.15em;
    padding: 4px 40px;
    transform: rotate(38deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 2;
    pointer-events: none;
}
.card-new-blue .card-new-ribbon {
    background: linear-gradient(135deg, #1A5FAB, #2D7DD2);
    color: #fff;
}

/* Sur hover, ralentir/maintenir le float pour la lisibilité */
.card-new:hover {
    animation-play-state: paused;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .badge-new-pulse,
    .card-new,
    .card-new::before,
    .card-new::after { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   SECTION "ILS FONT CONFIANCE" — strip de logos clients (fond clair)
   ══════════════════════════════════════════════════════════════ */
.trust-section {
    padding: 56px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.trust-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.trust-eyebrow {
    display: inline-block;
    font-family: var(--font-condensed, var(--font-body));
    font-size: 0.78rem; font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.16em; text-transform: uppercase;
    padding-bottom: 4px;
}
.trust-logos {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: 56px;
}
.trust-logos img {
    height: 44px; max-width: 170px;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}
.trust-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .trust-logos { gap: 32px; }
    .trust-logos img { height: 34px; max-width: 130px; }
}

/* ══════════════════════════════════════════════════════════════
   SECTION TÉMOIGNAGES (fond clair)
   ══════════════════════════════════════════════════════════════ */
.testimonials-section {
    padding: 80px 24px;
    background: var(--bg);
}
.testimonials-inner { max-width: 1160px; margin: 0 auto; }
.testimonials-section h2 { color: var(--navy); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: start;
}
@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
}
.testimonial-card {
    position: relative;
    padding: 48px 44px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(10,22,40,0.08);
}
.testimonial-quote-mark {
    position: absolute;
    top: -10px; left: 28px;
    font-family: var(--font-display);
    font-size: 7rem;
    color: var(--gold);
    line-height: 1;
    opacity: 0.7;
    pointer-events: none;
}
.testimonial-card blockquote {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
    quotes: none;
}
.testimonial-card blockquote strong { color: var(--navy); font-weight: 600; }
.testimonial-card figcaption { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.testimonial-author {
    display: flex; align-items: center; gap: 14px;
}
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #E8B84B);
    color: #0A1628;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 4px rgba(201,162,39,0.12);
}
.testimonial-name {
    font-weight: 600; color: var(--text); font-size: 0.98rem;
}
.testimonial-role {
    font-size: 0.82rem; color: var(--text-muted);
    margin-top: 2px;
}
@media (max-width: 600px) {
    .testimonial-card { padding: 36px 24px 28px; }
    .testimonial-quote-mark { font-size: 5rem; left: 16px; }
    .testimonial-card blockquote { font-size: 1.02rem; }
}

.features-section { padding: 64px 24px; max-width: var(--max-w); margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.feature-card {
    padding: 32px; border-radius: var(--radius-lg); background: var(--bg-card);
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    text-align: center; transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); }

/* ── Auth Pages ── */
.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
.auth-card {
    background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: 48px; max-width: 480px; width: 100%;
}
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

/* ── Onboarding Steps ── */
.onboarding-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.onboarding-step {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700; border: 2px solid var(--border);
    color: var(--text-muted); background: var(--bg); transition: all var(--transition);
}
.onboarding-step.active { border-color: var(--gold); background: var(--gold); color: #fff; }
.onboarding-step.done { border-color: var(--green); background: var(--green); color: #fff; }

/* ── Catalogue ── */
.catalog-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.catalog-header-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.catalog-header-controls #catalog-search { width: 220px; }
.catalog-header-controls #catalog-level { width: 160px; }
.catalog-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.filter-chip {
    padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
    border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-light);
    cursor: pointer; transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(200,150,42,0.06); }

.elearning-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.elearning-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.elearning-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.elearning-thumb {
    height: 180px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
    overflow: hidden; background-size: cover; background-position: center;
}
.elearning-thumb .thumb-icon {
    font-size: 2.4rem; opacity: 0.85; color: #fff; position: relative; z-index: 1;
    text-shadow: 0 2px 16px rgba(0,0,0,.5), 0 0 40px rgba(0,0,0,.3);
    background: rgba(10,22,40,.35); width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
/* ── Variante logo de marque (Microsoft Office, etc.) ── */
.elearning-thumb-logo .thumb-logo-img {
    position: relative; z-index: 1;
    max-width: 45%; max-height: 60%;
    width: auto; height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.35));
}
@media (max-width: 768px) {
    .elearning-thumb-logo .thumb-logo-img { max-width: 38%; max-height: 55%; }
}
@media (max-width: 768px) {
    .elearning-thumb { height: 150px; }
    .elearning-thumb .thumb-icon { font-size: 2rem; width: 50px; height: 50px; }
}
@media (max-width: 480px) {
    .elearning-thumb { height: 130px; }
    .elearning-thumb .thumb-icon { font-size: 1.6rem; width: 42px; height: 42px; }
}
.elearning-thumb .level-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.level-debutant { background: rgba(40,167,69,0.9); color: #fff; }
.level-operationnel { background: rgba(26,95,171,0.9); color: #fff; }
.level-expert { background: rgba(200,150,42,0.9); color: #fff; }

.elearning-info { padding: 20px; }
.elearning-themes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.elearning-title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.elearning-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.elearning-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); }
.elearning-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Formation Viewer ── */
.viewer-container { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); }
.viewer-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; background: var(--bg-card); border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.viewer-toolbar h3 { font-size: 1rem; }
.viewer-progress-bar { height: 4px; background: var(--border); border-radius: 2px; flex: 1; margin: 0 24px; max-width: 300px; }
.viewer-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.3s ease; }
.viewer-iframe { flex: 1; border: none; width: 100%; }
.viewer-nav { display: flex; gap: 8px; }

/* ── Quiz ── */
.quiz-container { max-width: 700px; margin: 0 auto; padding: 40px 24px; }
.quiz-question { margin-bottom: 32px; }
.quiz-question h3 { font-size: 1.1rem; margin-bottom: 16px; }
.quiz-option {
    display: block; width: 100%; text-align: left; padding: 14px 18px;
    border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); margin-bottom: 10px; font-size: 0.95rem;
    cursor: pointer; transition: all var(--transition);
}
.quiz-option:hover { border-color: var(--gold); background: rgba(200,150,42,0.04); }
.quiz-option.selected { border-color: var(--gold); background: rgba(200,150,42,0.08); color: var(--gold-dark); font-weight: 600; }
.quiz-option.correct { border-color: var(--green); background: rgba(40,167,69,0.08); }
.quiz-option.wrong { border-color: var(--red); background: rgba(220,53,69,0.08); }

.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 0.9rem; color: var(--text-muted); }
.quiz-progress-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; }
.quiz-progress-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.3s ease; }

/* ── Certificate ── */
.certificate-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    border-radius: var(--radius-lg); padding: 40px; color: #fff; text-align: center;
    border: 2px solid var(--gold); position: relative; overflow: hidden;
}
.certificate-card::before {
    content: ''; position: absolute; inset: 8px; border: 1px solid rgba(200,150,42,0.3);
    border-radius: var(--radius); pointer-events: none;
}
.certificate-card h2 { color: var(--gold-light); margin-bottom: 8px; }
.certificate-score { font-size: 2rem; font-weight: 700; color: var(--gold-light); }

/* ── Messages ── */
.message-list { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.message-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 20px;
    border-bottom: 1px solid var(--border-light); cursor: pointer;
    transition: background var(--transition);
}
.message-item:last-child { border-bottom: none; }
.message-item:hover { background: var(--bg-alt); }
.message-item.unread { background: rgba(200,150,42,0.04); font-weight: 600; }
.message-item.unread::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
}
.message-sender { font-size: 0.9rem; color: var(--text); min-width: 140px; }
.message-subject { font-size: 0.9rem; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-date { font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; }

/* ── Progress Bar (in cards) ── */
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.progress-fill.gold { background: var(--gold); }
.progress-fill.green { background: var(--green); }
.progress-fill.blue { background: var(--blue); }

/* ── Theme Toggle ── */
.theme-toggle {
    background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.1rem;
    padding: 6px; cursor: pointer; transition: color var(--transition);
}
.theme-toggle:hover { color: var(--gold-light); }

/* ── User Avatar ── */
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; font-family: var(--font-condensed);
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-light); font-size: 0.85rem;
    cursor: pointer; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 1rem; }

/* ── Alert Banner (usage limit) ── */
.alert-banner {
    padding: 12px 20px; border-radius: var(--radius); font-size: 0.9rem;
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.alert-banner.warning { background: rgba(253,126,20,0.1); color: var(--orange); border: 1px solid rgba(253,126,20,0.2); }
.alert-banner.danger { background: rgba(220,53,69,0.1); color: var(--red); border: 1px solid rgba(220,53,69,0.2); }
.alert-banner.info { background: rgba(26,95,171,0.1); color: var(--blue); border: 1px solid rgba(26,95,171,0.2); }

/* ── Legal Pages ── */
.legal-page { max-width: 800px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.legal-page p { margin-bottom: 12px; color: var(--text-light); line-height: 1.7; }
.legal-page ul { margin: 12px 0 12px 24px; color: var(--text-light); }
.legal-page li { margin-bottom: 6px; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 40px 24px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.footer-tagline { font-size: 0.85rem; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .sidebar {
        position: relative;
        top: auto;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-greeting {
        display: none;
    }
    .sidebar-section-title {
        display: none;
    }
    /* Navigation principale en barre horizontale */
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 0;
        white-space: nowrap;
    }
    .sidebar-nav a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 14px 16px;
        font-size: 0.82rem;
        gap: 6px;
        flex-shrink: 0;
    }
    .sidebar-nav a.active {
        border-left-color: transparent;
        border-bottom-color: var(--gold);
    }
    .sidebar-nav a i {
        font-size: 0.9rem;
    }
    /* Masquer seulement la section Légal et les titres de section sur mobile */
    .sidebar-hide-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    .nav { display: none; }
    .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-only-badge { display: inline-block !important; }
    .hero { padding: 60px 20px; padding-top: calc(var(--header-h) + 60px); min-height: 60vh; }
    .hero h1 { font-size: 2rem; }
    .page { padding: 24px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
    .pricing-card.featured { transform: none; }
    /* Tablette portrait (600–768px) : 2 colonnes pour mieux exploiter l'espace */
    .elearning-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    /* Famille étendue : sub-cards aussi en 2 col à cette largeur */
    .family-sub-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .catalog-header { flex-direction: column; align-items: stretch; }
    /* ── Suppression overflow horizontal mobile ── */
    body, .page { overflow-x: hidden; }
    .page { max-width: 100%; }
    /* ── Contrôles du header : recherche + niveau sur toute la largeur ── */
    .catalog-header-controls { width: 100%; gap: 8px; }
    .catalog-header-controls #catalog-search,
    .catalog-header-controls #catalog-level { width: auto; flex: 1 1 140px; min-width: 0; }
    /* ── Pagination masquée sur mobile (scroll infini à la place) ── */
    .pagination { display: none !important; }
    /* ── Filter chips : rail scrollable horizontal ── */
    .catalog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 16px 8px 16px;
        margin-left: -16px;
        margin-right: -16px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    }
    .catalog-filters::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .filter-chip {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 7px 14px;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    .main-panel { padding: 20px 16px; }
    .sidebar-nav a {
        padding: 12px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .kpi-grid { grid-template-columns: 1fr; }
    .sidebar-nav a span:not(.badge-count) {
        /* Sur très petit écran, on garde icône + texte mais réduit */
    }
    .sidebar-nav a {
        padding: 12px 10px;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS — Navigation, transitions de page, landing reveals
   ═══════════════════════════════════════════════════════════════ */

/* ── Page transition (in) ── */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}
.page-entering { animation: pageIn 0.35s cubic-bezier(0.22,1,0.36,1) both; }
.page-leaving  { animation: pageOut 0.18s ease-in both; pointer-events: none; }

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-left.visible,
.reveal-right.visible { transform: translateX(0); }

/* ── Nav links — underline slide ── */
.nav a {
    position: relative;
    overflow: hidden;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%;
    width: 0; height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.22,1,0.36,1),
                left   0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav a:hover::after,
.nav a.active::after {
    width: 60%; left: 20%;
}

/* ── Mobile menu — slide from right ── */
.mobile-menu {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}
.mobile-menu-inner {
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
    will-change: transform;
}
.mobile-menu.open {
    visibility: visible;
    pointer-events: auto;
}
.mobile-menu.open .mobile-menu-inner {
    transform: translateX(0);
}
/* overlay fade */
.mobile-menu::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-menu.open::before {
    opacity: 1;
}

/* ── Mobile nav link — slide in stagger ── */
.mobile-menu.open .mobile-nav a {
    animation: mobileNavIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.mobile-menu.open .mobile-nav a:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.open .mobile-nav a:nth-child(2) { animation-delay: 0.13s; }
.mobile-menu.open .mobile-nav a:nth-child(3) { animation-delay: 0.18s; }
.mobile-menu.open .mobile-nav a:nth-child(4) { animation-delay: 0.23s; }
.mobile-menu.open .mobile-nav a:nth-child(5) { animation-delay: 0.28s; }
@keyframes mobileNavIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Sidebar nav hover ── */
.sidebar-nav a {
    transition: all 0.2s cubic-bezier(0.22,1,0.36,1);
}
.sidebar-nav a:hover {
    padding-left: 26px;
}
.sidebar-nav a.active {
    padding-left: 26px;
}

/* ── Buttons — ripple + press ── */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.55s linear;
    pointer-events: none;
}
@keyframes ripple {
    to { transform: scale(3.5); opacity: 0; }
}
.btn:active { transform: translateY(1px) scale(0.98); }

/* ── Feature card hover ── */
.feature-card {
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.3s cubic-bezier(0.22,1,0.36,1),
                border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(10,22,40,0.12);
    border-color: rgba(200,150,42,0.2);
}

/* ── Header — scroll shadow ── */
.header { transition: box-shadow 0.3s ease; }
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

/* ── Hero badge tags — pop-in ── */
@keyframes badgePop {
    from { opacity: 0; transform: scale(0.8) translateY(6px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.hero-badge-anim {
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ── Stat counter ── */
.stat-num {
    transition: transform 0.1s ease;
}
.stat-num.bump {
    transform: scale(1.15);
}

/* ── Elearning card hover ── */
.elearning-card {
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.3s cubic-bezier(0.22,1,0.36,1),
                opacity 0.4s ease !important;
}
.elearning-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 40px rgba(10,22,40,0.13) !important;
}

/* ── Logo hover ── */
.logo { transition: opacity 0.2s ease; }
.logo:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════════
   CATALOGUE PROGRAMMES — Design groupé avec expand pleine largeur
   ══════════════════════════════════════════════════════════════ */

/* Grille 3 colonnes fixes sur desktop */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 960px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .program-grid { grid-template-columns: 1fr; }
    /* Mobile (< 600px) : 1 colonne pleine largeur */
    .elearning-grid { grid-template-columns: 1fr !important; }
    .family-sub-grid { grid-template-columns: 1fr !important; }
}

/* Carte programme (état normal) */
.program-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
    position: relative;
}
.program-card:hover {
    border-color: rgba(201,162,39,.5);
    box-shadow: 0 8px 28px rgba(10,22,40,.18);
    transform: translateY(-3px);
}

/* Carte expanded : pleine largeur sur desktop */
.program-card.expanded {
    grid-column: 1 / -1;
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(201,162,39,.15);
    transform: none;
}

/* En-tête de la carte (zone cliquable) */
.program-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    user-select: none;
}
.program-card-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201,162,39,.18) 0%, rgba(201,162,39,.06) 100%);
    border: 1px solid rgba(201,162,39,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: var(--gold);
}
.program-card-info {
    flex: 1;
    min-width: 0;
}
.program-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    /* Pas d'overflow hidden — le titre doit être lisible en entier */
    word-break: break-word;
}
.program-card-subtitle {
    font-size: 0.76rem;
    color: var(--text-light);
    margin-top: 3px;
    line-height: 1.4;
}
.program-card-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.program-card-badge .lvl-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(201,162,39,.12);
    color: var(--gold);
    border: 1px solid rgba(201,162,39,.3);
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.program-card-chevron {
    color: var(--text-light);
    font-size: 0.85rem;
    transition: transform 0.25s;
}
.program-card.expanded .program-card-chevron {
    transform: rotate(180deg);
}

/* Zone expansion */
.program-card-body {
    display: none;
    padding: 0 20px 20px;
    animation: slideDown 0.22s ease;
}
.program-card.expanded .program-card-body {
    display: block;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Niveaux en row sur desktop, stack sur mobile */
.level-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .level-panels { grid-template-columns: 1fr; }
}
/* Formation bureautique single */
.level-panels.single-panel {
    grid-template-columns: minmax(0, 380px);
}

.level-panel {
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid;
}
.level-panel.lp-debutant {
    background: rgba(26,122,78,.07);
    border-color: rgba(26,122,78,.25);
}
.level-panel.lp-operationnel {
    background: rgba(26,95,171,.07);
    border-color: rgba(26,95,171,.25);
}
.level-panel.lp-expert {
    background: rgba(201,162,39,.07);
    border-color: rgba(201,162,39,.25);
}
.level-panel.lp-single {
    background: rgba(26,95,171,.07);
    border-color: rgba(26,95,171,.25);
}

.level-panel-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.lp-debutant .level-panel-label     { color: #1A7A4E; }
.lp-operationnel .level-panel-label { color: #1A5FAB; }
.lp-expert .level-panel-label       { color: var(--gold); }
.lp-single .level-panel-label       { color: #1A5FAB; }

.level-panel-meta {
    font-size: 0.76rem;
    color: var(--text-light);
}

.level-panel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Bouton Aperçu */
.btn-apercu {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.78rem; font-weight: 500;
    padding: 6px 13px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}
.btn-apercu:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,162,39,.06);
}

/* Bouton Démarrer */
.btn-demarrer {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.78rem; font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}
.lp-debutant .btn-demarrer {
    background: rgba(26,122,78,.12); border-color: rgba(26,122,78,.4); color: #1A7A4E;
}
.lp-debutant .btn-demarrer:hover {
    background: rgba(26,122,78,.22); color: #fff;
}
.lp-operationnel .btn-demarrer {
    background: rgba(26,95,171,.12); border-color: rgba(26,95,171,.4); color: #1A5FAB;
}
.lp-operationnel .btn-demarrer:hover {
    background: rgba(26,95,171,.22); color: #fff;
}
.lp-expert .btn-demarrer {
    background: rgba(201,162,39,.12); border-color: rgba(201,162,39,.4); color: var(--gold);
}
.lp-expert .btn-demarrer:hover {
    background: rgba(201,162,39,.22); color: var(--navy);
}
.lp-single .btn-demarrer {
    background: rgba(26,95,171,.12); border-color: rgba(26,95,171,.4); color: #1A5FAB;
}
.lp-single .btn-demarrer:hover {
    background: rgba(26,95,171,.22); color: #fff;
}

/* Modal aperçu GIF */
.apercu-modal-overlay {
    position: fixed; inset: 0; z-index: 9900;
    background: rgba(10,22,40,.85);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.apercu-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    max-width: 760px; width: 92%;
    position: relative;
}
.apercu-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: none; border: none; cursor: pointer;
    color: var(--text-light); font-size: 1.1rem;
    padding: 6px; border-radius: 6px;
    transition: color 0.15s;
}
.apercu-modal-close:hover { color: var(--text); }
.apercu-modal img {
    width: 100%; border-radius: 8px; display: block;
}
.apercu-modal h4 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 600;
}
.apercu-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0A1628;
    background-size: cover;
    background-position: center;
    width: 100%;
    /* aspect-ratio fallback via padding-top pour iOS < 14.4 */
    padding-top: 56.25%;     /* 16:9 ratio */
    height: 0;
}
/* Image GIF — TOUJOURS visible (le spinner se superpose juste par-dessus) */
.apercu-media img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
}

/* Spinner overlay pendant le chargement */
.apercu-spinner {
    position: absolute; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 14px;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    color: #fff;
}
.apercu-media.is-loading .apercu-spinner { display: flex; }
.apercu-spinner p {
    margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.85);
}
.spinner-ring {
    width: 38px; height: 38px;
    border: 3px solid rgba(255,255,255,0.18);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spinnerSpin 0.9s linear infinite;
}
@keyframes spinnerSpin {
    to { transform: rotate(360deg); }
}

/* État fallback : si le GIF n'a pas pu charger (réseau lent, format rejeté…),
   on affiche un overlay informatif sur le thumbnail Unsplash en fond */
.apercu-media.is-fallback::after {
    content: '▶  Aperçu indisponible — démarrez la formation pour la voir';
    position: absolute;
    bottom: 16px; left: 16px; right: 16px;
    text-align: center;
    background: rgba(10, 22, 40, 0.85);
    color: #fff;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Boutons d'action sous le GIF ── */
.apercu-actions {
    display: flex; gap: 12px; margin-top: 16px; justify-content: center; flex-wrap: wrap;
}
.apercu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 24px;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none; border: none;
}
.apercu-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(10,22,40,.15); }
.apercu-btn-replay {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    color: var(--text);
}
.apercu-btn-replay:hover { background: var(--bg-card); border-color: var(--gold); color: var(--gold-dark); }
.apercu-btn-start {
    background: var(--gold); color: var(--navy);
}
.apercu-btn-start:hover { background: var(--gold-dark); color: var(--navy); }
.apercu-placeholder {
    min-height: 260px; border-radius: 8px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.apercu-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(10,22,40,.72); backdrop-filter: blur(2px);
}
.apercu-placeholder-inner {
    position: relative; z-index: 1; text-align: center; padding: 24px;
}
.apercu-placeholder-inner i {
    font-size: 2.4rem; color: var(--gold); opacity: .85; display: block; margin-bottom: 12px;
}
.apercu-placeholder-inner p {
    color: #fff; font-size: 0.95rem; margin: 0 0 6px; font-weight: 500;
}
.apercu-placeholder-inner span {
    color: rgba(255,255,255,.55); font-size: 0.8rem;
}

/* ── Bouton Aperçu sur vignette (visible au survol) ── */
.card-apercu-btn {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%) translateY(6px);
    background: rgba(10,22,40,.78); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.18); color: #fff;
    padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
    cursor: pointer; white-space: nowrap; opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex; align-items: center; gap: 6px;
}
.card-apercu-btn:hover { background: rgba(200,150,42,.85); border-color: var(--gold); }
.elearning-card:hover .card-apercu-btn,
.family-sub-card:hover .card-apercu-btn,
.family-sub-card .card-apercu-btn { /* visible en permanence sur les sous-cartes */
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   CATALOGUE FAMILLES — Cards groupées avec expand pleine largeur
   ══════════════════════════════════════════════════════════════ */

/* ── Animation de scroll bidirectionnelle ──
   Les cartes ne sont visibles QUE lorsqu'elles sont dans le viewport.
   Elles apparaissent en entrant et disparaissent en sortant (haut ou bas).
   ──────────────────────────────────────────────────────────────────────── */

/* Transition définie sur l'élément de base — s'applique dans LES DEUX sens */
#catalog-grid .elearning-card {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* État : dans le viewport */
.elearning-card.card-in {
    opacity: 1;
    transform: translateY(0);
}

/* État : sous le viewport (pas encore scrollé jusqu'ici) */
.elearning-card.card-out-below {
    opacity: 0;
    transform: translateY(32px);
    pointer-events: none;
}

/* État : au-dessus du viewport (déjà scrollé au-delà) */
/* Magnitude alignée sur card-out-below pour que disparition = inverse de l'apparition */
.elearning-card.card-out-above {
    opacity: 0;
    transform: translateY(-32px);
    pointer-events: none;
}

/* ── Animation d'ouverture du panel sous-cartes ── */
@keyframes familyExpand {
    from { opacity: 0; transform: translateY(-10px); max-height: 0; }
    to   { opacity: 1; transform: translateY(0);      max-height: 1200px; }
}
.family-sub-grid {
    animation: familyExpand 0.38s cubic-bezier(0.22,1,0.36,1) both;
    overflow: hidden;
}

/* ── Animation d'entrée des sous-cartes ── */
.family-sub-card {
    animation: subCardIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
.family-sub-card:nth-child(1) { animation-delay: 0.04s; }
.family-sub-card:nth-child(2) { animation-delay: 0.1s; }
.family-sub-card:nth-child(3) { animation-delay: 0.16s; }
.family-sub-card:nth-child(4) { animation-delay: 0.22s; }
.family-sub-card:nth-child(5) { animation-delay: 0.28s; }
@keyframes subCardIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* La carte famille est cliquable */
.family-card { cursor: pointer; }
.family-card.expanded { grid-column: 1 / -1; cursor: default; }

/* Header = zone cliquable */
.family-card-header { cursor: pointer; }
.family-card.expanded .family-card-header { cursor: pointer; }

/* Badge "3 niveaux" / "5 formations" sur la vignette */
.family-count-badge {
    position: absolute; top: 10px; left: 12px;
    background: rgba(10,22,40,.75); backdrop-filter: blur(4px);
    color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; letter-spacing: .3px;
    border: 1px solid rgba(255,255,255,.15);
}

/* Chevron en bas à droite de la vignette */
.family-expand-hint {
    position: absolute; bottom: 10px; right: 12px;
    background: rgba(10,22,40,.65); backdrop-filter: blur(4px);
    color: rgba(255,255,255,.85); border-radius: 50%;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: .75rem; transition: background 0.2s;
    border: 1px solid rgba(255,255,255,.15);
}
.family-card:hover .family-expand-hint { background: rgba(200,150,42,.8); }

/* Grille des sous-cartes (niveaux ou outils) */
.family-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
@media (max-width: 960px) { .family-sub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .family-card.expanded { grid-column: auto; }
    .family-sub-grid { grid-template-columns: 1fr; }
}

/* Sous-carte individuelle (niveau ou outil) */
.family-sub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.family-sub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.family-sub-thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
/* Pastille niveau en haut à droite, comme l'ancienne carte du catalogue */
.family-sub-thumb .level-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 5px 12px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #fff;
}
.family-sub-info {
    padding: 14px 16px 16px;
}
.family-sub-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: var(--text); line-height: 1.3; }
.family-sub-desc { font-size: 0.78rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Meta : durée · slides · quiz avec icônes */
.family-sub-meta {
    font-size: 0.78rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
    flex-wrap: wrap;
}
.family-sub-meta span { display: inline-flex; align-items: center; gap: 5px; }
.family-sub-meta i { font-size: 0.85rem; color: var(--text-muted); }

.family-sub-btn { font-size: 0.78rem !important; padding: 5px 14px !important; border-radius: 16px !important; display: inline-flex; align-items: center; gap: 5px; }

/* Catalogue header subtitle */
.catalog-subtitle {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-top: 4px;
    margin-bottom: 20px;
}
