/* =============================================================================
 *  Lycée Manarapenitra — Site public
 *  Design system moderne (refonte complète)
 *  assets/site/css/site.css
 * ============================================================================= */

/* -----------------------------------------------------------------------------
 *  1. Jetons de design (tokens)
 * -------------------------------------------------------------------------- */
:root {
    --brand:        #0b3d91;
    --brand-600:    #0d47a1;
    --brand-500:    #1565c0;
    --brand-100:    #e8f0fe;
    --accent:       #f4a300;
    --accent-600:   #d98c00;
    --accent-100:   #fff4e0;

    --ink:          #0e1a2b;
    --ink-2:        #24344a;
    --muted:        #5b6b7f;
    --line:         #e4e9f0;
    --bg:           #f5f7fb;
    --surface:      #ffffff;
    --surface-2:    #f8fafc;

    --ok:           #15803d;
    --danger:       #dc2626;

    --radius-sm:    10px;
    --radius:       16px;
    --radius-lg:    24px;
    --radius-pill:  999px;

    --shadow-sm:    0 1px 2px rgba(15, 26, 43, .06), 0 1px 3px rgba(15, 26, 43, .08);
    --shadow:       0 10px 30px -12px rgba(15, 26, 43, .18);
    --shadow-lg:    0 24px 60px -20px rgba(11, 61, 145, .35);

    --container:    1200px;
    --header-h:     74px;

    --font:         "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head:    "Poppins", "Inter", system-ui, sans-serif;
    --ease:         cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
    --ink:      #eaf0fa;
    --ink-2:    #c7d3e6;
    --muted:    #93a4bd;
    --line:     #24344a;
    --bg:       #0b1220;
    --surface:  #111a2e;
    --surface-2:#0e1626;
    --brand-100:#12224a;
    --accent-100:#2a2110;
    --shadow:   0 14px 34px -14px rgba(0, 0, 0, .7);
    --shadow-lg:0 28px 70px -24px rgba(0, 0, 0, .8);
}

/* -----------------------------------------------------------------------------
 *  2. Base
 * -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Icônes SVG inline : taille de base (surchargée au besoin selon le contexte) */
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
a { color: var(--brand-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }
.section--alt { background: var(--surface-2); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* En-tête de section */
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-500); background: var(--brand-100);
    padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.eyebrow.accent { color: var(--accent-600); background: var(--accent-100); }
[data-theme="dark"] .eyebrow.accent { color: var(--accent); }
.section-head p { color: var(--muted); margin: 0; }

/* -----------------------------------------------------------------------------
 *  3. Boutons
 * -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    padding: 12px 24px; border-radius: var(--radius-pill); border: 1px solid transparent;
    cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(11,61,145,.9); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: #241a00; }
.btn-accent:hover { background: var(--accent-600); color: #1c1400; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-500); background: var(--brand-100); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* -----------------------------------------------------------------------------
 *  4. Barre supérieure + navigation
 * -------------------------------------------------------------------------- */
.topbar {
    background: var(--ink); color: #cdd8e8; font-size: .82rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #cdd8e8; }
.topbar a:hover { color: #fff; }
.topbar__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar__meta span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__meta svg { width: 15px; height: 15px; opacity: .8; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social svg { width: 16px; height: 16px; }

.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-family: var(--font-head); font-size: 1.02rem; }
.brand__text span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.menu { display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu a.link {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .93rem;
}
.menu a.link svg { width: 15px; height: 15px; transition: transform .2s; }
.menu a.link:hover, .menu a.link.active { color: var(--brand-500); background: var(--brand-100); }
.menu li:hover > a.link svg.chev { transform: rotate(180deg); }
.submenu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; z-index: 20;
}
.menu li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.submenu a:hover { background: var(--brand-100); color: var(--brand-500); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-2); cursor: pointer; transition: .2s var(--ease);
}
.icon-btn:hover { border-color: var(--brand-500); color: var(--brand-500); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; }

/* Tiroir mobile */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(4,10,20,.55); opacity: 0; visibility: hidden; transition: .3s; z-index: 80; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 340px);
    background: var(--surface); z-index: 90; transform: translateX(100%); transition: transform .35s var(--ease);
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__body { padding: 12px 14px; overflow-y: auto; }
.drawer__body a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.drawer__body a:hover { background: var(--brand-100); color: var(--brand-500); }
.drawer__body .sub a { padding-left: 28px; font-weight: 500; font-size: .9rem; color: var(--muted); }
.drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); }

/* -----------------------------------------------------------------------------
 *  5. Héros
 * -------------------------------------------------------------------------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(120deg, #072a63 0%, var(--brand) 45%, #1565c0 100%);
}
.hero--image::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: var(--hero-img); background-size: cover; background-position: center;
    opacity: .28; mix-blend-mode: luminosity;
}
.hero__inner { padding: clamp(70px, 12vw, 140px) 0 clamp(90px, 12vw, 150px); max-width: 720px; }
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.88); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: -1; }

.page-hero { position: relative; color: #fff; background: linear-gradient(120deg, #072a63, var(--brand) 60%, var(--brand-500)); overflow: hidden; }
.page-hero__inner { padding: clamp(48px, 7vw, 84px) 0; position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero .crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.8); }
.page-hero .crumbs a { color: rgba(255,255,255,.9); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,163,0,.35), transparent 70%); }

/* -----------------------------------------------------------------------------
 *  6. Grilles & cartes
 * -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
    display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand-500) 30%, var(--line)); }
.card__media { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--brand-100); }
.card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.12rem; margin: 0; }
.card__text { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.card__meta svg { width: 14px; height: 14px; }
.card__foot { margin-top: auto; padding-top: 6px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--brand-100); color: var(--brand-500); }
.chip.accent { background: var(--accent-100); color: var(--accent-600); }
.chip.ok { background: #dcfce7; color: var(--ok); }
.chip.muted { background: var(--surface-2); color: var(--muted); }
.tag { display: inline-block; font-size: .76rem; padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--muted); }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
    flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-100); color: var(--brand-500);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature.accent .feature__icon { background: var(--accent-100); color: var(--accent-600); }
.feature h3 { font-size: 1.05rem; margin: 0 0 4px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat__num { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand); line-height: 1; }
.stat__num .suffix { color: var(--accent); }
.stat__label { margin-top: 8px; color: var(--muted); font-size: .88rem; }

/* Bandeau CTA */
.cta-band { background: linear-gradient(120deg, #072a63, var(--brand) 60%, var(--brand-500)); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 560px; }

/* -----------------------------------------------------------------------------
 *  7. Accordéon (formations / FAQ)
 * -------------------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion__trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.accordion__trigger .chev { transition: transform .3s var(--ease); color: var(--muted); flex: none; }
.accordion__item.open .accordion__trigger .chev { transform: rotate(180deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion__inner { padding: 0 22px 20px; color: var(--muted); }

/* -----------------------------------------------------------------------------
 *  8. Chronologie (agenda / parcours)
 * -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 30px; }
.timeline__dot { position: absolute; left: -34px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-100); border: 2px solid var(--brand-500); display: grid; place-items: center; color: var(--brand-500); }
.timeline__dot svg { width: 12px; height: 12px; }
.timeline__date { font-size: .8rem; font-weight: 700; color: var(--accent-600); text-transform: uppercase; letter-spacing: .06em; }

/* -----------------------------------------------------------------------------
 *  9. Galerie + lightbox
 * -------------------------------------------------------------------------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery__item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; inset: auto 0 0; padding: 26px 16px 14px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(4,10,20,.8)); }

.lightbox { position: fixed; inset: 0; background: rgba(3,8,16,.92); z-index: 200; display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* -----------------------------------------------------------------------------
 *  10. Formulaires & contact
 * -------------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, .select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 16px; border: 1px solid transparent; }
.alert.ok { background: #dcfce7; color: var(--ok); border-color: #bbf7d0; }
.alert.error { background: #fee2e2; color: var(--danger); border-color: #fecaca; }

.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.info-card__icon { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--brand-100); color: var(--brand-500); display: grid; place-items: center; }
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin: 0 0 3px; }
.info-card p, .info-card a { margin: 0; color: var(--muted); font-size: .92rem; word-break: break-word; }

.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* -----------------------------------------------------------------------------
 *  11. Pied de page
 * -------------------------------------------------------------------------- */
.footer { background: #071424; color: #a9b8cf; margin-top: 0; }
[data-theme="dark"] .footer { background: #060c17; }
.footer__top { padding: clamp(48px, 7vw, 76px) 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer a { color: #a9b8cf; }
.footer a:hover { color: #fff; }
.footer p { color: #93a4bd; font-size: .9rem; }
.footer ul li { margin-bottom: 9px; font-size: .9rem; }
.footer ul li > svg { width: 16px; height: 16px; }
.footer ul a { display: inline-flex; align-items: center; gap: 8px; }
.footer ul a svg { width: 15px; height: 15px; opacity: .8; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff; }
.footer__brand b { color: #fff; font-family: var(--font-head); }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.footer__social a:hover { background: var(--brand-500); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; padding: 11px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; }
.newsletter input::placeholder { color: #7d8ca6; }
.newsletter button { border: 0; border-radius: var(--radius-pill); background: var(--accent); color: #241a00; padding: 0 20px; font-weight: 700; cursor: pointer; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .83rem; color: #7d8ca6; }

/* Bouton retour en haut */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); z-index: 70; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* -----------------------------------------------------------------------------
 *  12. Animations d'apparition (progressive enhancement : visibles sans JS)
 * -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Espace pour le header collant lors des ancres */
:target { scroll-margin-top: 96px; }

/* -----------------------------------------------------------------------------
 *  13. États vides
 * -------------------------------------------------------------------------- */
.empty { text-align: center; padding: 46px 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.empty svg { width: 40px; height: 40px; opacity: .5; margin-bottom: 10px; }

/* -----------------------------------------------------------------------------
 *  14. Responsive
 * -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .gallery { columns: 2; }
}
@media (max-width: 860px) {
    .menu, .nav__actions .btn-desktop { display: none; }
    .burger { display: inline-flex; }
    .topbar__meta span.hide-sm { display: none; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .gallery { columns: 1; }
    .topbar__meta .hide-xs { display: none; }
    .cta-band { text-align: center; justify-content: center; }
}
