/* ==================================================
   SOBECHIP — 3ᵉ Congrès · Feuille de style unique
   (aucune dépendance : ni Tailwind, ni Alpine)
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    --green: #087b3b;
    --green-deep: #06552d;
    --green-ink: #043d20;
    --green-soft: #eaf4ed;
    --navy: #10264e;
    --navy-deep: #0b1a33;
    --ink: #18263a;
    --muted: #5b6878;
    --gold: #e0b84f;
    --gold-soft: #f6ecd0;
    --red: #e8112d;
    --flag-yellow: #fcd116;
    --flag-green: #008751;
    --paper: #f6f8f5;
    --line: #e1e8e2;
    --white: #fff;
    --radius: 22px;
    --shadow: 0 24px 60px -18px rgb(16 38 78 / 22%);
    --shadow-soft: 0 10px 30px -12px rgb(16 38 78 / 18%);
    --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

    /* === ÉCHELLE TYPOGRAPHIQUE UNIFIÉE === */
    --fs-micro: 11px;
    --fs-small: 13px;
    --fs-body: 15px;
    --fs-lead: 17px;
    --fs-h4: 20px;
    --fs-h3: 24px;
    --fs-h2: 32px;
    --fs-h1: 44px;
    --fs-display: 56px;
    --fs-display-xl: 68px;

    /* Clamps responsive */
    --fs-h2-clamp: clamp(28px, 3.5vw, 32px);
    --fs-display-clamp: clamp(36px, 5vw, 44px);
    --fs-hero-clamp: clamp(40px, 6vw, 56px);

    /* Line-heights */
    --lh-tight: 1.05;
    --lh-snug: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.6;
    --lh-loose: 1.7;

    /* Letter-spacings */
    --ls-tight: -.02em;
    --ls-normal: -.01em;
    --ls-wide: .04em;
    --ls-wider: .12em;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--navy); }

.shell { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }

.section { padding-block: 76px; position: relative; }
.section-soft { background: var(--paper); }
.muted { color: var(--muted); }
.small-note { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--flag-green) 0 33%, var(--flag-yellow) 33% 66%, var(--red) 66%);
}

.section-title {
    color: var(--navy);
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.06;
    text-wrap: balance;
}
.section-title em, .hero h1 em {
    color: var(--green);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
}
.section-heading { max-width: 720px; margin-bottom: 34px; }

.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 300;
    padding: 10px 16px; border-radius: 8px;
    background: var(--navy); color: #fff;
    transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

/* ==================================================
   DRAPEAU DU BÉNIN (version design)
================================================== */

.flag-line {
    position: relative;
    display: flex;
    height: 4px;
    overflow: hidden;
}
.flag-line span { flex: 1; }
.flag-line span:nth-child(1) { background: var(--flag-green); }
.flag-line span:nth-child(2) { background: var(--flag-yellow); }
.flag-line span:nth-child(3) { background: var(--red); }
.flag-line::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 75%), transparent);
    animation: flag-shine 4.5s var(--ease) infinite;
}
@keyframes flag-shine {
    0% { transform: translateX(-120%); }
    60%, 100% { transform: translateX(440%); }
}

/* Emblème drapeau : vert vertical, jaune & rouge horizontaux, ondulation douce */
.flag-mark {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 30px;
    height: 20px;
    overflow: hidden;
    border-radius: 4px;
    background:
        linear-gradient(var(--flag-green), var(--flag-green)) left / 40% 100% no-repeat,
        linear-gradient(var(--flag-yellow) 50%, var(--red) 50%);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 6%), 0 3px 8px -3px rgb(0 0 0 / 30%);
    animation: flag-wave 3.2s ease-in-out infinite;
    transform-origin: left center;
}
.flag-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 45%) 40%, transparent 55%, rgb(0 0 0 / 12%) 75%, transparent 90%);
    background-size: 220% 100%;
    animation: flag-ripple 3.2s linear infinite;
}
@keyframes flag-wave {
    0%, 100% { transform: perspective(80px) rotateY(0deg) skewY(0deg); }
    50% { transform: perspective(80px) rotateY(-14deg) skewY(-2deg); }
}
@keyframes flag-ripple {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}
.flag-mark-lg { width: 54px; height: 36px; border-radius: 6px; }

/* ==================================================
   BANDE D'ANNONCE DÉFILANTE
================================================== */

.announce-bar {
    position: relative;
    z-index: 101;
    overflow: hidden;
    background: var(--navy-deep);
    color: #dbe4f0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.announce-bar::before, .announce-bar::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    z-index: 2;
    width: 80px;
    pointer-events: none;
}
.announce-bar::before { left: 0; background: linear-gradient(90deg, var(--navy-deep), transparent); }
.announce-bar::after { right: 0; background: linear-gradient(-90deg, var(--navy-deep), transparent); }

.announce-track {
    display: flex;
    width: max-content;
    animation: announce-scroll 42s linear infinite;
}
.announce-bar:hover .announce-track,
.announce-bar:focus-within .announce-track { animation-play-state: paused; }

.announce-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 22px;
    padding: 9px 11px;
}
.announce-group > span { white-space: nowrap; }
.announce-group b { color: #fff; font-weight: 700; }
.announce-group a { color: var(--gold); font-weight: 700; }
.announce-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce-sep {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}
.announce-live {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 10.5px;
    font-weight: 800;
}
.announce-live::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 0 0 rgb(61 220 132 / 60%);
    animation: pulse-dot 2s infinite;
}
@keyframes announce-scroll { to { transform: translateX(-50%); } }
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgb(61 220 132 / 55%); }
    70%, 100% { box-shadow: 0 0 0 8px rgb(61 220 132 / 0%); }
}

/* ==================================================
   BOUTONS
================================================== */

.button, .nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 22px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.button .arrow, .nav-cta .arrow {
    display: inline-grid;
    place-items: center;
    width: 24px; height: 24px;
    margin-right: -8px;
    border-radius: 50%;
    background: rgb(255 255 255 / 18%);
    font-size: 12px;
    transition: transform .35s var(--ease);
}
.button:hover, .nav-cta:hover { transform: translateY(-2px); }
.button:hover .arrow, .nav-cta:hover .arrow { transform: translate(2px, -2px) rotate(0deg); }
.button::before, .nav-cta::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 28%) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .7s var(--ease);
}
.button:hover::before, .nav-cta:hover::before { transform: translateX(110%); }

.button-primary, .nav-cta { background: var(--green); color: #fff; }
.button-primary:hover, .nav-cta:hover { background: var(--green-deep); box-shadow: 0 14px 30px -10px rgb(8 123 59 / 55%); }

.button-secondary { border-color: #cfdcd2; background: #fff; color: var(--green-deep); }
.button-secondary .arrow { background: var(--green-soft); }
.button-secondary:hover { border-color: var(--green); box-shadow: var(--shadow-soft); }

.button-gold { background: var(--gold); color: var(--navy); }
.button-gold .arrow { background: rgb(16 38 78 / 12%); }
.button-gold:hover { background: #ebc768; box-shadow: 0 14px 30px -10px rgb(224 184 79 / 55%); }

.button-ghost-light { border-color: rgb(255 255 255 / 28%); color: #fff; }
.button-ghost-light:hover { background: rgb(255 255 255 / 8%); }

/* ==================================================
   HEADER
================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(255 255 255 / 92%);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgb(255 255 255 / 97%); box-shadow: 0 10px 30px -14px rgb(16 38 78 / 22%); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
    transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgb(16 38 78 / 35%);
    transition: transform .5s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.04); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo .logo-fallback {
    display: none;
    width: 100%; height: 100%;
    place-items: center;
    background: radial-gradient(circle at 30% 25%, #12a050, var(--green-deep));
    color: #fff;
    font-family: var(--serif);
    font-size: 26px;
    font-style: italic;
}
.brand-logo.is-missing img { display: none; }
.brand-logo.is-missing .logo-fallback { display: grid; }
.site-header.is-scrolled .brand-logo { width: 44px; height: 44px; }

.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--green); font-size: 19px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.35; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgb(246 248 245 / 80%); }
.nav-links a {
    position: relative;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color .25s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.is-active { color: #fff; }
.nav-indicator {
    position: absolute;
    top: 5px; left: 0;
    z-index: 0;
    height: calc(100% - 10px);
    width: 0;
    border-radius: 999px;
    background: var(--navy);
    opacity: 0;
    transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav-indicator.is-visible { opacity: 1; }

.nav-meta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    margin-inline: 14px 10px;
    line-height: 1.2;
}
.nav-meta b { color: var(--navy); font-size: 13px; font-weight: 800; }
.nav-meta small { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.nav-cta { min-height: 44px; padding: 10px 20px; font-size: 13px; }

.menu-toggle { display: none; }

/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 88% 10%, rgb(8 123 59 / 9%), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgb(224 184 79 / 10%), transparent 60%),
        #fff;
}
.hero::before {
    /* trame fine institutionnelle */
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgb(16 38 78 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(16 38 78 / 4%) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}


/* ==================================================
   HERO — Fond Palais + Déchirure
================================================== */





/* Déchirure verticale oblique (desktop) */






/* S'assurer que le contenu passe au-dessus */
.hero-grid {
    position: relative;
    z-index: 3;
}

/* Responsive : sur mobile, on empile et on ajuste */
@media (max-width: 1024px) {
    
    
    
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 56px;
    padding-block: 52px 64px;
}

.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 8px;
    border: 1px solid #d5e7da;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
}
.eyebrow-num {
    display: grid; place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 11px;
}
.country-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 6px 13px 6px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 700;
}
.country-chip .flag-mark { width: 24px; height: 16px; border-radius: 3px; }

.hero-institution {
    margin-top: 22px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1 {
    margin-block: 10px 22px;
    color: var(--navy);
    font-size: clamp(44px, 5.4vw, 74px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
}
.hero h1 em { display: block; margin-top: 4px; font-size: 1.08em; line-height: .95; }
.hero h1 .word { display: inline-block; }

.hero-theme {
    position: relative;
    max-width: 560px;
    padding: 14px 18px 14px 20px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--gold-soft), rgb(246 236 208 / 0%));
}
.hero-theme::before {
    content: "";
    position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 3px; border-radius: 3px;
    background: var(--gold);
}
.hero-theme .label { display: block; margin-bottom: 4px; color: #9a7a22; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-theme p { color: var(--navy); font-size: 17px; font-weight: 650; line-height: 1.4; text-wrap: pretty; }

.hero-description { max-width: 500px; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Visuel */
.hero-art { position: relative; padding: 18px 20px 18px 36px; }
.hero-photo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.7;
    border-radius: 200px 200px 28px 28px;
    background: var(--green-deep);
    box-shadow: var(--shadow);
}
.hero-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: ken-burns 18s ease-in-out infinite alternate;
}
@keyframes ken-burns { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-photo-wrap::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgb(4 40 22 / 72%));
    pointer-events: none;
}
.hero-photo-caption {
    position: absolute; inset: auto 0 22px;
    z-index: 2;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-align: center;
    text-transform: uppercase;
}
/* Image manquante : diagnostic visuel au lieu d'un trou blanc */
.photo-fallback {
    position: absolute; inset: 0;
    display: none;
    place-items: center;
    padding: 40px;
    background:
        radial-gradient(circle at 50% 35%, rgb(255 255 255 / 14%), transparent 45%),
        repeating-radial-gradient(circle at 50% 120%, rgb(255 255 255 / 5%) 0 2px, transparent 2px 26px),
        linear-gradient(160deg, #0d8a45, var(--green-ink));
    color: rgb(255 255 255 / 82%);
    font-size: 12px;
    text-align: center;
}
.photo-fallback code { display: block; margin-top: 6px; color: var(--gold); font-size: 12px; }
.hero-photo-wrap.is-missing .hero-photo { display: none; }
.hero-photo-wrap.is-missing .photo-fallback { display: grid; }

/* Orbite décorative */
.hero-orbit {
    position: absolute;
    inset: -2% -4% 6% 8%;
    border: 1px dashed rgb(8 123 59 / 28%);
    border-radius: 50%;
    animation: spin 60s linear infinite;
    pointer-events: none;
}
.hero-orbit::before {
    content: "";
    position: absolute; top: 12%; left: 9%;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgb(224 184 79 / 22%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cartes flottantes */
.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 18px;
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    color: var(--navy);
    animation: float-y 6s ease-in-out infinite;
    transition: box-shadow .35s var(--ease);
    will-change: transform;
}
.float-card:hover { box-shadow: 0 30px 60px -18px rgb(16 38 78 / 35%); }
.float-card .fc-icon {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
}
.float-card strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.float-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }

.float-card.fc-dates { top: 12%; right: -4px; animation-delay: -1.2s; }
.float-card.fc-venue { bottom: 18%; right: -16px; animation-delay: -3.4s; animation-duration: 7s; }
.float-card.fc-venue .fc-icon { background: var(--gold-soft); color: #9a7a22; }

.edition-card {
    position: absolute;
    bottom: 8%;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 124px; height: 124px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #12a050, var(--green-deep));
    color: #fff;
    box-shadow: 0 18px 40px -12px rgb(6 85 45 / 55%);
    animation: float-y 6.5s ease-in-out infinite;
    animation-delay: -2s;
}
.edition-card strong { font-family: var(--serif); font-size: 54px; font-weight: 400; letter-spacing: -.02em; line-height: .9; }
.edition-card span { margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.edition-card::before {
    content: "";
    position: absolute; inset: -14px;
    border: 1px solid rgb(8 123 59 / 25%);
    border-radius: 50%;
    animation: ring 3.2s ease-out infinite;
}
@keyframes ring {
    0% { transform: scale(.88); opacity: 1; }
    100% { transform: scale(1.18); opacity: 0; }
}
@keyframes float-y {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* Entrée du hero */
.hero-enter > * { animation: hero-in .9s var(--ease) both; }
.hero-enter > *:nth-child(2) { animation-delay: .08s; }
.hero-enter > *:nth-child(3) { animation-delay: .16s; }
.hero-enter > *:nth-child(4) { animation-delay: .24s; }
.hero-enter > *:nth-child(5) { animation-delay: .32s; }
.hero-enter > *:nth-child(6) { animation-delay: .4s; }
.hero-art { animation: hero-art-in 1.2s var(--ease) .15s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-art-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ==================================================
   BARRE D'INFOS + COMPTE À REBOURS
================================================== */

.event-bar { position: relative; z-index: 4; margin-top: -30px; }
.event-bar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.event-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid var(--line);
    transition: background-color .3s;
}
.event-detail:hover { background: var(--paper); }
.detail-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 14px;
    background: var(--green-soft);
    color: var(--green);
}
.detail-icon svg { width: 20px; height: 20px; }
.event-detail strong { display: block; color: var(--navy); font-size: 14.5px; font-weight: 800; }
.event-detail span { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }

.countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: var(--navy);
    color: #fff;
}
.countdown-label { max-width: 110px; color: #b9c6d8; font-size: 11px; font-weight: 600; line-height: 1.35; }
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown-units > span {
    min-width: 54px;
    padding: 7px 6px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
    background: rgb(255 255 255 / 5%);
    text-align: center;
}
.countdown b { display: block; color: #fff; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { display: block; margin-top: 2px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.countdown b.tick { animation: tick .4s var(--ease); }
@keyframes tick { from { transform: translateY(-4px); opacity: .4; } }

/* ==================================================
   PRÉSENTATION
================================================== */

.intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; }
.intro-text { color: var(--muted); font-size: 15px; }
.intro-text p + p { margin-top: 14px; }
.lead { color: var(--navy); font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }

.key-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
}
.key-figures > div {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.key-figures > div:hover { transform: translateY(-4px); border-color: #c4dccb; box-shadow: var(--shadow-soft); }
.key-figures b { display: block; color: var(--green); font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1; }
.key-figures span { display: block; margin-top: 4px; color: var(--navy); font-size: 12.5px; font-weight: 700; }

/* ==================================================
   THÉMATIQUES
================================================== */

.themes-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.themes-copy { position: sticky; top: calc(var(--header-h) + 30px); }
.themes-copy .muted { max-width: 360px; margin-top: 18px; font-size: 15px; }

.theme-list { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.theme-list li {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr 28px;
    align-items: center;
    gap: 16px;
    padding: 18px 20px 18px 16px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    border-radius: 14px;
    transition: color .35s;
    isolation: isolate;
}
.theme-list li:first-child { border-top: 1px solid var(--line); }
.theme-list li::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background: var(--green-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .55s var(--ease);
}
.theme-list li:hover::before { transform: scaleX(1); }
.theme-number {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    transition: background-color .35s, border-color .35s, color .35s;
}
.theme-list h3 { color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; transition: color .35s; }
.theme-arrow { color: var(--green); font-size: 18px; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s var(--ease), color .35s; }
.theme-list li:hover h3 { color: #fff; }
.theme-list li:hover .theme-number { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.theme-list li:hover .theme-arrow { opacity: 1; transform: none; color: var(--gold); }

/* ==================================================
   FORMATS — cartes animées
================================================== */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transform-style: preserve-3d;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
    isolation: isolate;
}
.feature-card::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--flag-green) 0 33.3%, var(--flag-yellow) 33.3% 66.6%, var(--red) 66.6%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease);
}
.feature-card::after {
    /* halo qui suit le curseur (variables posées en JS) */
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgb(8 123 59 / 9%), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}
.feature-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; }

.feature-head { display: flex; align-items: center; justify-content: space-between; }
.feature-number { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.feature-icon {
    display: grid; place-items: center;
    width: 50px; height: 50px;
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--green);
    transition: transform .6s var(--ease), background-color .3s, color .3s;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); background: var(--green); color: #fff; }
.feature-card h3 { margin-block: auto 10px; padding-top: 34px; color: var(--navy); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.feature-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.feature-card-dark { border-color: var(--green-deep); background: var(--green-deep); }
.feature-card-dark::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 12%), transparent 60%); }
.feature-card-dark h3 { color: #fff; }
.feature-card-dark p { color: #cfe6d7; }
.feature-card-dark .feature-number { color: var(--gold); }
.feature-card-dark .feature-icon { background: rgb(255 255 255 / 12%); color: var(--gold); }
.feature-card-dark:hover .feature-icon { background: var(--gold); color: var(--navy); }

.section-note {
    display: flex; align-items: center; gap: 10px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}
.section-note::before { content: "i"; display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 13px; font-style: italic; }

/* ==================================================
   ABSTRACTS
================================================== */

.abstract-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.abstract-panel .muted { max-width: 420px; margin-top: 18px; font-size: 15px; }
.abstract-details {
    position: relative;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.abstract-details h3, .fees-card h3 { color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.requirements { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.requirements li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 650;
}
.requirements li::before { content: "✓"; color: var(--green); font-weight: 800; }
.deadline-note {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: #6d5718;
    font-size: 13px;
}
.deadline-note strong { color: var(--navy); }

/* ==================================================
   PARTICIPATION
================================================== */

.participation-section {
    overflow: hidden;
    background:
        radial-gradient(700px 400px at 100% 0%, rgb(224 184 79 / 16%), transparent 60%),
        radial-gradient(600px 500px at 0% 100%, rgb(255 255 255 / 6%), transparent 60%),
        var(--green-deep);
    color: #fff;
}
.participation-section::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, #000, transparent 60%);
    pointer-events: none;
}
.participation-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.participation-section .kicker { color: var(--gold); }
.participation-section .section-title { color: #fff; }
.participation-section .section-title em { color: var(--gold); }
.participation-copy > p { max-width: 440px; margin-top: 18px; color: #d3e8da; font-size: 15px; }
.participation-copy .hero-actions { margin-top: 24px; }

.fees-card {
    padding: 30px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 70px -20px rgb(0 0 0 / 40%);
}
.fees-list { margin: 14px 0 22px; }
.fees-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
    transition: background-color .3s, padding .4s var(--ease);
}
.fees-list > div:hover { background: var(--paper); padding-inline: 16px; }
.fees-list dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.fees-list dd { color: var(--navy); font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fees-list dd small { margin-left: 3px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.fees-card .button { width: 100%; }

/* ==================================================
   FOOTER (compact)
================================================== */

/* (bloc footer remplacé ci-dessous) */

/* ==================================================
   APPARITIONS AU DÉFILEMENT
   (contenu visible si le JS ne se charge pas)
================================================== */

.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1180px) {
    .nav-meta { display: none; }
    .nav-links a { padding: 8px 11px; }
    .footer-main { grid-template-columns: 1fr 1fr 1fr; }
    .footer-map-col { grid-column: 1 / -1; }
    .footer-map-card { display: grid; grid-template-columns: 1.4fr 1fr; }
    .footer-map-body { flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 1020px) {
    :root { --header-h: 70px; }
    .shell { width: calc(100% - 44px); }

    .site-header.nav-ready .menu-toggle {
        display: inline-flex; align-items: center; gap: 10px;
        min-height: 44px; padding: 8px 10px 8px 16px;
        border: 1px solid var(--line); border-radius: 999px;
        background: #fff; color: var(--navy);
        font-size: 13px; font-weight: 750;
    }
    .menu-bars { position: relative; display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); }
    .menu-bars i { position: absolute; left: 8px; width: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
    .menu-bars i:first-child { top: 10px; }
    .menu-bars i:last-child { top: 16px; }
    .is-menu-open .menu-bars i:first-child { top: 13px; transform: rotate(45deg); }
    .is-menu-open .menu-bars i:last-child { top: 13px; transform: rotate(-45deg); }

    .site-header.nav-ready .primary-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 18px 22px 24px;
        border-top: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 30px 40px -20px rgb(16 38 78 / 25%);
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        transition: clip-path .5s var(--ease), visibility 0s .5s;
    }
    .site-header.nav-ready.is-menu-open .primary-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }

    .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; background: none; counter-reset: nav; }
    .nav-indicator { display: none; }
    .nav-links a {
        display: flex; align-items: center; gap: 14px;
        padding: 14px 6px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font-size: 19px; font-weight: 750; letter-spacing: -.02em;
    }
    .nav-links a::before { counter-increment: nav; content: "0" counter(nav); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
    .nav-links a.is-active { color: var(--green); }
    .nav-cta { min-height: 52px; }

    .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 40px 60px; }
    .float-card.fc-venue { right: -6px; }

    .event-bar-grid { grid-template-columns: 1fr 1fr; }
    .countdown { grid-column: 1 / -1; }
    .event-detail:nth-child(2) { border-right: 0; }

    .intro-grid, .themes-layout, .abstract-panel, .participation-grid { gap: 40px; }
    .feature-card { padding: 24px; }
}

@media (max-width: 760px) {
    .shell { width: calc(100% - 32px); }
    .section { padding-block: 60px; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-copy strong { font-size: 17px; }

    .hero-grid, .intro-grid, .themes-layout, .abstract-panel, .participation-grid { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 30px 56px; }
    .hero h1 { font-size: clamp(40px, 11vw, 58px); }
    .hero-art { width: min(100%, 440px); margin-inline: auto; padding: 10px 10px 10px 24px; }
    .float-card.fc-dates { right: 0; }
    .float-card.fc-venue { right: 0; }
    .edition-card { width: 100px; height: 100px; }
    .edition-card strong { font-size: 44px; }
    .themes-copy { position: static; }

    .event-bar-grid { grid-template-columns: 1fr; }
    .event-detail { border-right: 0; border-bottom: 1px solid var(--line); }
    .countdown { flex-direction: column; align-items: stretch; text-align: center; }
    .countdown-label { max-width: none; }

    .key-figures { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .key-figures > div { padding: 12px; }
    .key-figures b { font-size: 34px; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 0; }
    .theme-list li { grid-template-columns: 44px 1fr; padding-inline: 8px; }
    .theme-arrow { display: none; }
    .abstract-details, .fees-card { padding: 22px; }

    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 40px 30px; }
    .footer-identity, .footer-map-col { grid-column: 1 / -1; }
    .footer-map-card { display: block; }
    .footer-map-body { flex-direction: row; align-items: center; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .announce-bar::before, .announce-bar::after { width: 30px; }
}

@media (max-width: 400px) {
    .hero-actions .button { width: 100%; }
    .menu-toggle [data-menu-label] { display: none; }
    .site-header.nav-ready .menu-toggle { padding: 8px; }
    .fees-list > div { flex-direction: column; align-items: flex-start; gap: 2px; }
    .footer-main { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ==================================================
   FOOTER — Version resserrée (5 colonnes)
================================================== */

.site-footer {
    position: relative;
    background: var(--navy-deep);
    color: #b9c6d8;
    font-size: 13.5px;
}

/* Grille principale : 5 colonnes alignées sur la même ligne */
.footer-main {
    display: grid;
    grid-template-columns: 1.15fr 0.65fr 0.8fr 0.8fr 1.2fr;
    gap: 28px;
    padding-block: 40px 32px;
    align-items: start;
}

/* --- Identité --- */
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: #9fb0c6; }
.footer-identity > p {
    max-width: 260px;
    margin-top: 14px;
    line-height: 1.55;
    font-size: 12.5px;
}
.footer-edition {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 999px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
}
.footer-edition .flag-mark { width: 20px; height: 13px; border-radius: 3px; }

/* --- Colonnes nav et contact --- */
.footer-col h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-links,
.footer-col address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    font-style: normal;
    font-size: 12.5px;
}

.footer-links a,
.footer-col address a {
    position: relative;
    transition: color .2s, transform .25s;
    line-height: 1.4;
}
.footer-links a:hover,
.footer-col address a:hover {
    color: #fff;
    transform: translateX(3px);
}
.footer-col address a { overflow-wrap: anywhere; }
.footer-col address p {
    margin-top: 4px;
    color: #8fa1b8;
    font-size: 12px;
    line-height: 1.5;
}

/* --- Carte : compacte, alignée sur la même ligne --- */
.footer-map-card {
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 12px;
    background: rgb(255 255 255 / 4%);
}
.footer-map {
    position: relative;
    height: 100px;
    overflow: hidden;
    background:
        linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 20px 20px,
        #13284a;
}
.footer-map::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(28deg, transparent 47%, rgb(224 184 79 / 30%) 47.5% 49%, transparent 49.5%),
        linear-gradient(-14deg, transparent 58%, rgb(255 255 255 / 14%) 58.5% 60%, transparent 60.5%),
        linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 10%) 30.5% 31.5%, transparent 32%);
}
.map-pin {
    position: absolute; left: 50%; top: 48%;
    width: 14px; height: 14px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--red);
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 0 4px 10px rgb(0 0 0 / 35%);
    animation: pin-bounce 2.4s var(--ease) infinite;
}
.map-pin::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    background: rgb(232 17 45 / 35%);
    transform: rotate(45deg);
    animation: ring 2.4s ease-out infinite;
    z-index: -1;
}
@keyframes pin-bounce {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -4px; }
}
.footer-map button.map-load {
    position: absolute; right: 8px; bottom: 8px;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s;
}
.footer-map button.map-load:hover { transform: translateY(-1px); }
.footer-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(.85);
}

.footer-map-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
}
.footer-map-body strong {
    display: block;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}
.footer-map-body span {
    display: block;
    color: #8fa1b8;
    font-size: 10.5px;
    margin-top: 2px;
    line-height: 1.2;
}
.footer-map-body a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    font-size: 13px;
    transition: transform .3s;
}
.footer-map-body a:hover { transform: rotate(-45deg) scale(1.08); }

/* --- Bas de footer --- */
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 8%); }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
    font-size: 11.5px;
    color: #8fa1b8;
}
.to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}
.to-top span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgb(255 255 255 / 8%);
    transition: transform .3s, background-color .2s;
}
.to-top:hover span {
    transform: translateY(-2px);
    background: var(--green);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: 1.1fr 0.7fr 0.9fr 0.9fr 1.1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding-block: 36px 28px;
    }
    .footer-identity,
    .footer-map-col {
        grid-column: 1 / -1;
    }
    .footer-map { height: 140px; }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ==================================================
   HERO — Fond Palais + Overlay
================================================== */




/* Le contenu passe au-dessus */
.hero-grid {
    position: relative;
    z-index: 3;
}

/* Responsive mobile : fond palais visible en haut */
@media (max-width: 1024px) {
    
    
}

/* ==================================================
   HERO — Déchirure horizontale (mobile/tablette)
================================================== */
.hero-tear-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .hero-tear-mobile {
        display: block;
        width: 100%;
        height: 40px;
        background: #fff;
        position: relative;
        z-index: 10;
        margin-top: -10px;
        margin-bottom: -10px;
        /* Forme de déchirure irrégulière */
        clip-path: polygon(
            0% 60%, 4% 40%, 8% 55%, 12% 35%, 16% 50%, 20% 30%, 24% 45%, 28% 25%, 32% 40%, 
            36% 20%, 40% 35%, 44% 15%, 48% 30%, 52% 10%, 56% 25%, 60% 15%, 64% 35%, 68% 20%, 
            72% 45%, 76% 30%, 80% 55%, 84% 40%, 88% 60%, 92% 45%, 96% 65%, 100% 50%, 
            100% 100%, 0% 100%
        );
        filter: drop-shadow(0 -4px 8px rgba(0,0,0,0.08));
    }

    /* Ajuster les marges des blocs */
    .hero-copy {
        padding-bottom: 20px;
    }
    .hero-art {
        padding-top: 20px;
    }

    /* Masquer la déchirure verticale sur mobile */
    
}

/* ═══════════════════════════════════════════════════════════
   HERO IMMERSIF — Palais plein écran + Bébé superposé
═══════════════════════════════════════════════════════════ */

/* ══════════════════ MOBILE (design actuel conservé) ══════════════════ */
.hero { background: #fff; }

.hero-bg-palais {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: saturate(0.7) brightness(0.85);
    pointer-events: none;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45vh;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(10, 28, 74, 0.5) 0%,
        rgba(10, 28, 74, 0.3) 40%,
        rgba(246, 248, 245, 0.85) 75%,
        rgba(246, 248, 245, 1) 100%);
    pointer-events: none;
}

.hero-tear-divider {
    display: none;
}

/* ══════════════════ DESKTOP (design immersif) ══════════════════ */
@media (min-width: 1025px) {
    .hero {
        background: #0A1C4A;
        min-height: 100vh;
    }

    .hero-bg-palais {
        height: 100%;
        filter: saturate(0.85) brightness(0.6);
    }

    .hero-bg-overlay {
        height: 100%;
        background:
            linear-gradient(90deg,
                rgba(10, 28, 74, 0.9) 0%,
                rgba(10, 28, 74, 0.72) 30%,
                rgba(10, 28, 74, 0.45) 55%,
                rgba(10, 28, 74, 0.2) 100%),
            linear-gradient(180deg,
                rgba(10, 28, 74, 0.3) 0%,
                transparent 40%,
                transparent 60%,
                rgba(10, 28, 74, 0.4) 100%);
    }

    /* Textes blancs sur fond palais */
    .hero-institution {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .hero h1 {
        color: #ffffff !important;
        text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .hero h1 em {
        color: #E9B52B !important;
        text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    }

    .hero-description {
        color: rgba(255, 255, 255, 0.82) !important;
    }

    .hero-location {
        color: rgba(255, 255, 255, 0.65) !important;
    }

    /* Halo doré "breathe" derrière la photo bébé */
    .hero-art {
        position: relative;
        z-index: 3;
    }

    .hero-art::before {
        content: "";
        position: absolute;
        inset: -30px;
        background: radial-gradient(ellipse at center,
            rgba(233, 181, 43, 0.4) 0%,
            rgba(233, 181, 43, 0.15) 40%,
            transparent 72%);
        filter: blur(50px);
        z-index: 0;
        pointer-events: none;
        animation: halo-breathe 8s ease-in-out infinite;
    }

    @keyframes halo-breathe {
        0%, 100% { opacity: 0.75; transform: scale(1); }
        50%      { opacity: 1;    transform: scale(1.06); }
    }

    /* Ombre profonde pour la photo */
    .hero-photo-wrap {
        box-shadow:
            0 40px 100px -25px rgba(0, 0, 0, 0.75),
            0 20px 50px -15px rgba(0, 0, 0, 0.4) !important;
    }

    /* Masquer la déchirure mobile sur desktop */
    .hero-tear-mobile {
        display: none;
    }

    /* Adapter les badges */
    .hero-badges {
        gap: 12px;
    }

    .eyebrow {
        background: rgba(234, 244, 237, 0.95);
        backdrop-filter: blur(10px);
    }

    .country-chip {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    /* Le thème garde son fond beige mais devient plus lumineux */
    .hero-theme {
        background: linear-gradient(90deg,
            rgba(246, 236, 208, 0.98) 0%,
            rgba(246, 236, 208, 0.6) 80%,
            rgba(246, 236, 208, 0) 100%);
        backdrop-filter: blur(4px);
        border-radius: 12px;
        padding: 16px 20px;
    }
}

/* ══════════════════ TABLETTE (768-1024) ══════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Garder le design mobile mais avec palais plus visible */
    .hero-bg-palais {
        height: 55vh;
        filter: saturate(0.75) brightness(0.75);
    }
    .hero-bg-overlay {
        height: 55vh;
    }
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDESHOW — 100% CSS, 4 slides, cycle 24s (6s/slide)
═══════════════════════════════════════════════════════════ */

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0A1C4A;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    will-change: opacity, transform;
}

/* Chaque slide a son propre décalage */
.hero-slide-1 { animation-name: slide-show-1; }
.hero-slide-2 { animation-name: slide-show-2; }
.hero-slide-3 { animation-name: slide-show-3; }
.hero-slide-4 { animation-name: slide-show-4; }

/* Cycle 24s : visible 0-21% (5s), fade 21-25% (1s), invisible 25-100% */
@keyframes slide-show-1 {
    0%, 21%   { opacity: 1; transform: scale(1.04); }
    25%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes slide-show-2 {
    0%, 21%   { opacity: 0; transform: scale(1); }
    25%, 46%  { opacity: 1; transform: scale(1.04); }
    50%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes slide-show-3 {
    0%, 46%   { opacity: 0; transform: scale(1); }
    50%, 71%  { opacity: 1; transform: scale(1.04); }
    75%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes slide-show-4 {
    0%, 71%   { opacity: 0; transform: scale(1); }
    75%, 96%  { opacity: 1; transform: scale(1.04); }
    100%      { opacity: 0; transform: scale(1); }
}

/* Overlay au-dessus des slides */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* ────────── MOBILE ────────── */
@media (max-width: 1024px) {
    .hero-slideshow {
        inset: 0 0 auto 0;
        height: 45vh;
    }
    .hero-bg-overlay {
        background: linear-gradient(180deg,
            rgba(10, 28, 74, 0.5) 0%,
            rgba(10, 28, 74, 0.3) 40%,
            rgba(246, 248, 245, 0.85) 75%,
            rgba(246, 248, 245, 1) 100%);
    }
    .hero-slide {
        filter: saturate(0.75) brightness(0.9);
    }
}

/* ────────── DESKTOP ────────── */
@media (min-width: 1025px) {
    .hero {
        background: #0A1C4A;
        min-height: 100vh;
    }
    .hero-slideshow {
        inset: 0;
        height: 100%;
    }
    .hero-slide {
        filter: saturate(0.85) brightness(0.6);
    }
    .hero-bg-overlay {
        background:
            linear-gradient(90deg,
                rgba(10, 28, 74, 0.9) 0%,
                rgba(10, 28, 74, 0.72) 30%,
                rgba(10, 28, 74, 0.45) 55%,
                rgba(10, 28, 74, 0.2) 100%),
            linear-gradient(180deg,
                rgba(10, 28, 74, 0.3) 0%,
                transparent 40%,
                transparent 60%,
                rgba(10, 28, 74, 0.4) 100%);
    }
    .hero-institution { color: rgba(255, 255, 255, 0.75) !important; }
    .hero h1 {
        color: #ffffff !important;
        text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .hero h1 em {
        color: #E9B52B !important;
        text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    }
    .hero-description { color: rgba(255, 255, 255, 0.82) !important; }
    .hero-location { color: rgba(255, 255, 255, 0.65) !important; }

    .hero-art { position: relative; z-index: 3; }
    .hero-art::before {
        content: "";
        position: absolute;
        inset: -30px;
        background: radial-gradient(ellipse at center,
            rgba(233, 181, 43, 0.35) 0%,
            rgba(233, 181, 43, 0.12) 40%,
            transparent 72%);
        filter: blur(50px);
        z-index: 0;
        pointer-events: none;
        animation: halo-breathe 8s ease-in-out infinite;
    }
    @keyframes halo-breathe {
        0%, 100% { opacity: 0.75; transform: scale(1); }
        50%      { opacity: 1;    transform: scale(1.06); }
    }
    .hero-photo-wrap {
        box-shadow:
            0 40px 100px -25px rgba(0, 0, 0, 0.75),
            0 20px 50px -15px rgba(0, 0, 0, 0.4) !important;
    }
    .hero-tear-mobile { display: none; }
    .eyebrow { background: rgba(234, 244, 237, 0.95); backdrop-filter: blur(10px); }
    .country-chip { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); }
    .hero-theme {
        background: linear-gradient(90deg,
            rgba(246, 236, 208, 0.98) 0%,
            rgba(246, 236, 208, 0.6) 80%,
            rgba(246, 236, 208, 0) 100%);
        backdrop-filter: blur(4px);
        border-radius: 12px;
        padding: 16px 20px;
    }
}

/* ────────── TABLETTE ────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-slideshow { height: 55vh; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDESHOW CSS PUR — namespace .hero-slide-new
   (n'écrase pas l'ancien .hero-slide, laissé orphelin mais inoffensif)
   4 slides / cycle 24 s (6 s de visibilité, 1 s de fondu)
═══════════════════════════════════════════════════════════ */

/* Conteneur — règles défensives additives */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide-new {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    will-change: opacity, transform;
}

.hero-slide-new-1 { animation-name: newSlide1; }
.hero-slide-new-2 { animation-name: newSlide2; }
.hero-slide-new-3 { animation-name: newSlide3; }
.hero-slide-new-4 { animation-name: newSlide4; }

@keyframes newSlide1 {
    0%, 21%   { opacity: 1; transform: scale(1.04); }
    25%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes newSlide2 {
    0%, 21%   { opacity: 0; transform: scale(1); }
    25%, 46%  { opacity: 1; transform: scale(1.04); }
    50%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes newSlide3 {
    0%, 46%   { opacity: 0; transform: scale(1); }
    50%, 71%  { opacity: 1; transform: scale(1.04); }
    75%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes newSlide4 {
    0%, 71%   { opacity: 0; transform: scale(1); }
    75%, 96%  { opacity: 1; transform: scale(1.04); }
    100%      { opacity: 0; transform: scale(1); }
}

/* Filtres responsive — additions uniquement */
@media (max-width: 1024px) {
    .hero-slide-new {
        filter: saturate(0.75) brightness(0.9);
    }
}
@media (min-width: 1025px) {
    .hero-slide-new {
        filter: saturate(0.85) brightness(0.6);
    }
}


/* ═══════════════════════════════════════════════════════════
   CORRECTION — Le slideshow remplace le fond statique
   .hero-bg-palais était un div résiduel (postérieur dans le DOM,
   z-index auto) qui recouvrait le slideshow. On le masque.
═══════════════════════════════════════════════════════════ */
.hero-bg-palais {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   RÉGLAGE — Allègement du voile bleu sur les slides
   (les règles précédentes sont écrasées par !important)
═══════════════════════════════════════════════════════════ */

/* Desktop : slides plus lumineuses + overlay plus transparent */
@media (min-width: 1025px) {
    .hero-slide-new {
        filter: saturate(0.9) brightness(0.85) !important;   /* était 0.6 */
    }
    .hero-bg-overlay {
        background:
            linear-gradient(90deg,
                rgba(10, 28, 74, 0.65) 0%,     /* était 0.9 */
                rgba(10, 28, 74, 0.45) 35%,    /* était 0.72 */
                rgba(10, 28, 74, 0.20) 60%,    /* était 0.45 */
                rgba(10, 28, 74, 0.05) 100%),  /* était 0.2 */
            linear-gradient(180deg,
                rgba(10, 28, 74, 0.15) 0%,
                transparent 40%,
                transparent 65%,
                rgba(10, 28, 74, 0.25) 100%) !important;
    }
}

/* Mobile / tablette : slides presque naturelles */
@media (max-width: 1024px) {
    .hero-slide-new {
        filter: saturate(0.85) brightness(0.95) !important;  /* était 0.9 */
    }
    .hero-bg-overlay {
        background: linear-gradient(180deg,
            rgba(10, 28, 74, 0.30) 0%,     /* était 0.5 */
            rgba(10, 28, 74, 0.15) 40%,    /* était 0.3 */
            rgba(246, 248, 245, 0.75) 75%,
            rgba(246, 248, 245, 1) 100%) !important;
    }
}

/* FORCE L'ESPACE SOUS LE MENU SUR TOUTES LES PAGES */
main > section:first-of-type, 
main > div:first-of-type,
.part-hero, 
.ip-hero, 
.rc-hero, 
.net-section {
}

/* CORRECTION GLOBALE : Le header est dans le flux. On réduit le padding. */
main > section:first-of-type, 
main > div:first-of-type,
.part-hero, 
.ip-hero, 
.rc-hero, 
.net-section {
    padding-top: 40px !important; /* Un petit espace de 40px, plus de vide géant */
    margin-top: 0 !important;
}
/* FORCE L'ESPACE SOUS LE MENU SUR TOUTES LES PAGES */
main > section:first-of-type, 
main > div:first-of-type,
.part-hero, 
.ip-hero, 
.rc-hero, 
.net-section {
    padding-top: 40px !important;
    margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   MENU MOBILE : GRILLE 2x4 (STYLE APPLICATION)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
    /* 1. On supprime définitivement la numérotation */
    .nav-links a::before {
        display: none !important;
        content: none !important;
    }

    /* 2. On transforme la liste en Grille (2 colonnes) */
    .nav-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colonnes de largeur égale */
        gap: 12px !important; /* Espace entre les cases */
        padding: 16px 0 !important;
        background: transparent !important;
        border: none !important;
    }

    /* 3. Le design de chaque case (lien) */
    .nav-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Texte aligné à gauche */
        padding: 14px 16px !important;
        background: #F8FAFC !important; /* Fond gris très clair */
        border: 1px solid #E5E7EB !important;
        border-radius: 12px !important; /* Coins arrondis */
        font-family: var(--sans) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: var(--navy, #10264e) !important;
        text-transform: capitalize !important;
        text-align: left !important;
        line-height: 1.2 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
        transition: all 0.2s ease !important;
    }

    /* 4. Effet au toucher (mobile) */
    .nav-links a:active, .nav-links a:hover {
        background: #eaf4ed !important; /* Vert clair */
        border-color: #087b3b !important;
        color: #087b3b !important;
        transform: scale(0.98) !important; /* Petit effet d'enfoncement */
    }

    /* 5. Le bouton "Accéder" en bas (sur 2 colonnes) */
    .site-header .nav-account {
        grid-column: 1 / -1 !important; /* Prend toute la largeur de la grille */
        margin-top: 12px !important;
        width: 100% !important;
    }
    
    .site-header .nav-account summary {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 6. Le conteneur global du menu */
    .site-header.nav-ready .primary-nav {
        padding: 16px 20px 32px !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
        border-top: 1px solid #E5E7EB !important;
    }
}
