/* =========================================================
   IFPP-CI — Site public · thème premium sombre
   ========================================================= */
:root {
    --bg: #070B09;
    --bg-2: #0B120E;
    --bg-3: #101914;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --text: #F4EFE4;
    --muted: #A3ACA5;
    --gold: #E2B864;
    --gold-2: #C8953A;
    --gold-3: #F6DCA0;
    --green: #22A862;
    --green-deep: #0B6B3A;
    --orange: #E07B24;
    --blue: #4A73D6;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1240px;
    --gold-grad: linear-gradient(120deg, #F6DCA0 0%, #E2B864 35%, #C8953A 70%, #F0CF85 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
h1, h2 { font-family: var(--serif); font-optical-sizing: auto; }
h1 em, h2 em, .hero-title em, .cta h2 em {
    font-style: italic;
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    padding-right: .06em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.serif { font-family: var(--serif); font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
::selection { background: var(--gold); color: #1a1205; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container.narrow, .narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }

/* Grain */
.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Boutons ---------- */
.btn {
    --bx: 0px; --by: 0px;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
    font: 600 .95rem/1 var(--sans); cursor: pointer; white-space: nowrap;
    transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
    transform: translate(var(--bx), var(--by));
}
.btn-sm { padding: .65em 1.15em; font-size: .88rem; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold {
    background: var(--gold-grad); background-size: 200% 100%; color: #1B1306;
    box-shadow: 0 10px 30px -10px rgba(226, 184, 100, .55), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 16px 40px -10px rgba(226, 184, 100, .75), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(226,184,100,.5); }
.btn-dark { background: #0A0F0C; color: var(--gold-3); }
.btn-dark:hover { background: #000; }
.btn-outline-dark { border-color: rgba(10,15,12,.35); color: #120d04; }
.btn-outline-dark:hover { background: rgba(10,15,12,.08); }

.round-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
    background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; transition: .3s var(--ease);
}
.round-btn:hover { background: var(--gold); color: #1b1306; border-color: var(--gold); }

.pill {
    display: inline-flex; align-items: center; gap: .6em; padding: .5em 1em .5em .8em;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
    font-size: .85rem; color: var(--gold-3); backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,168,98,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,168,98,0); } 100% { box-shadow: 0 0 0 0 rgba(34,168,98,0); } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1rem;
    font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 640px; }
.link-arrow { color: var(--gold); font-weight: 600; font-size: .95rem; transition: color .3s; }
.link-arrow:hover { color: var(--gold-3); }

.glass {
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    border: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip-glass { background: rgba(7,11,9,.55); border: 1px solid rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(10px); }

/* ---------- Bandeau d'annonce ---------- */
.announce {
    position: relative; z-index: 60;
    display: flex; gap: .8em; align-items: center; justify-content: center; flex-wrap: wrap;
    padding: .6em 20px; font-size: .86rem; text-align: center;
    background: linear-gradient(90deg, rgba(11,107,58,.35), rgba(200,149,58,.25), rgba(11,107,58,.35));
    border-bottom: 1px solid var(--line);
}
.announce a { color: var(--gold-3); font-weight: 600; }
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid transparent; transition: border-color .4s;
}
/* fond flouté sur un pseudo-élément : le menu mobile en position fixe reste plein écran */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background .4s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.scrolled::before {
    background: rgba(7, 11, 9, .72);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.brand, .header-actions { position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
    position: relative; padding: .55em 1em; border-radius: 999px; font-size: .93rem; font-weight: 500; color: rgba(244,239,228,.78);
    transition: color .3s, background .3s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.main-nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .3s; }
.header-phone:hover { color: var(--gold); }
.header-phone svg { width: 16px; height: 16px; fill: var(--gold); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Aurora ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(11,107,58,.9), transparent 65%); }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; right: -10vw; top: -6vw; background: radial-gradient(circle, rgba(200,149,58,.55), transparent 65%); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 36vw; height: 36vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, rgba(36,72,154,.55), transparent 65%); animation-delay: -12s; }
.aurora.soft i { opacity: .35; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw, 3vw) scale(1.08); } 100% { transform: translate(-3vw, 5vw) scale(.95); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 78px); display: flex; align-items: center; padding: 40px 0 90px; overflow: hidden; isolation: isolate; }
.hero::after { /* halo qui suit la souris */
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(226,184,100,.10), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -.035em; margin: .45em 0 .35em; font-weight: 400; }
.hero-title em { display: inline; }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 2.4rem; }
.hero-ctas.center { justify-content: center; }
.hero-trust { display: flex; align-items: center; gap: 16px; }
.hero-trust p { margin: 0; font-size: .92rem; line-height: 1.4; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }

.hero-visual { position: relative; height: min(640px, 72vh); --px: 0; --py: 0; }
.hv { position: absolute; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line-2); transition: transform .8s var(--ease); }
.hv img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.hv:hover img { transform: scale(1.12); }
.hv-1 { inset: 6% 18% 22% 0; transform: translate(calc(var(--px) * -10px), calc(var(--py) * -10px)); }
.hv-2 { width: 40%; height: 46%; right: 0; top: 0; border-radius: 200px 200px 28px 28px; transform: translate(calc(var(--px) * 18px), calc(var(--py) * 14px)); }
.hv-3 { width: 46%; height: 40%; right: 6%; bottom: 0; transform: translate(calc(var(--px) * 24px), calc(var(--py) * 20px)); }
.float-card { background: rgba(10,16,13,.78) !important; position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; z-index: 2; }
.float-card strong { display: block; font-size: .95rem; }
.float-card small { display: block; font-size: .78rem; color: var(--muted); }
.fc-1 { left: -4%; bottom: 14%; }
.fc-2 { left: -6%; top: 8%; animation-delay: -3s; }
.fc-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-grad); color: #1b1306; font-size: 1.1rem; }
.fc-num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes float { 50% { transform: translateY(-12px); } }
.orbit { position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: -20%; border: 1px dashed rgba(226,184,100,.14); border-radius: 50%; z-index: -1; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 20px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee span { font: italic 400 clamp(1.5rem, 3vw, 2.4rem)/1 var(--serif); color: rgba(244,239,228,.85); white-space: nowrap; }
.marquee b { color: var(--gold); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 70px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head.row h2 { margin: 0; }

/* Chiffres */
.stats-section { padding-block: 70px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 36px 28px; display: flex; flex-direction: column; gap: 6px; }
.stat-value { font: 400 clamp(2.8rem, 5vw, 4.2rem)/1 var(--serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .95rem; }

/* Bento filières */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 260px; gap: 18px; }
.bento-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); isolation: isolate; }
.b1 { grid-column: span 3; grid-row: span 2; }
.b2 { grid-column: span 3; }
.b3 { grid-column: span 3; }
.b4 { grid-column: span 3; }
.b5 { grid-column: span 3; }
.bento-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.bento-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,9,.05) 0%, rgba(7,11,9,.55) 45%, rgba(7,11,9,.95) 100%); transition: background .6s; }
.bento-body { position: absolute; inset: auto 0 0 0; padding: 26px 28px; }
.bento-count { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.bento-card h3 { font: 500 clamp(1.4rem, 2.2vw, 2rem)/1.1 var(--serif); margin-bottom: 6px; }
.b1 h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.bento-card p { color: rgba(244,239,228,.75); font-size: .95rem; margin: 0; max-width: 420px; }
.bento-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.b1 .bento-list { max-height: 200px; opacity: 1; }
.bento-list li { font-size: .78rem; padding: .35em .8em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.bento-go { position: absolute; right: 22px; top: -40px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0b0b0b; font-size: 1.2rem; font-weight: 700; transform: scale(.6) rotate(-45deg); opacity: 0; transition: .5s var(--ease); }
.bento-card:hover img { transform: scale(1.08); filter: saturate(1.1); }
.bento-card:hover .bento-list { max-height: 200px; opacity: 1; }
.bento-card:hover .bento-go { transform: none; opacity: 1; }
.bento-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .5s; }
.bento-card:hover::after { box-shadow: inset 0 0 0 1px var(--accent); }

/* Pourquoi */
.why { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why-visual { position: relative; }
.why-visual img { border-radius: 260px 260px var(--radius) var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; border: 1px solid var(--line-2); }
.why-badge { background: rgba(10,16,13,.82) !important; position: absolute; right: -20px; bottom: 40px; padding: 18px 22px; border-radius: 18px; max-width: 230px; box-shadow: var(--shadow); }
.why-badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-3); font-weight: 500; }
.why-badge span { font-size: .85rem; color: var(--muted); }
.features { display: grid; gap: 4px; margin-top: 2rem; }
.feature { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-n { font: italic 400 1.1rem/1.5 var(--serif); color: var(--gold); min-width: 30px; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); }

/* Cartes formation */
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc((100vw - var(--container)) / 2)) 30px; scroll-padding-inline: max(20px, calc((100vw - var(--container)) / 2)); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .f-card { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 10px; }
.f-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; height: 100%; }
.f-card:hover { transform: translateY(-6px); border-color: rgba(226,184,100,.45); box-shadow: 0 30px 60px -30px rgba(226,184,100,.25); }
.f-card-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.f-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.f-card:hover .f-card-media img { transform: scale(1.07); }
.f-card-media .chip { position: absolute; left: 14px; top: 14px; }
.f-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.f-card-kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.f-card h3 { font: 500 1.35rem/1.15 var(--serif); margin-bottom: 8px; }
.f-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.f-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 700; font-size: .92rem; color: var(--gold-3); }
.go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: .4s var(--ease); }
.f-card:hover .go { background: var(--gold); color: #1b1306; border-color: var(--gold); transform: rotate(-45deg); }
.card-more { flex: 0 0 220px; scroll-snap-align: start; border-radius: var(--radius); border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-family: var(--serif); font-size: 1.4rem; transition: .4s; }
.card-more b { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1b1306; font-family: var(--sans); }
.card-more:hover { border-color: var(--gold); background: var(--surface); }
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity: .5; }
.step { position: relative; padding: 0 10px; text-align: center; }
.step-n { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold-2); font: 500 1.6rem var(--serif); color: var(--gold-3); box-shadow: 0 0 0 8px var(--bg), 0 0 40px rgba(226,184,100,.25); }
.step p { color: var(--muted); font-size: .95rem; }

/* Événements */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.event { display: flex; gap: 22px; padding: 24px; border-radius: var(--radius); transition: border-color .4s, transform .5s var(--ease); }
.event:hover { border-color: rgba(226,184,100,.45); transform: translateY(-4px); }
.event-date { flex-shrink: 0; width: 78px; height: 88px; border-radius: 16px; background: var(--gold-grad); color: #1b1306; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-date .d { font: 500 2.2rem/1 var(--serif); }
.event-date .m { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.event h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.event p { color: var(--muted); font-size: .92rem; margin-bottom: .6em; }
.event-meta { font-size: .8rem; color: var(--gold); font-weight: 600; }

/* Témoignages */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.testimonial { margin: 0; padding: 30px; border-radius: var(--radius); }
.testimonial blockquote { margin: 0 0 22px; font: italic 400 1.2rem/1.5 var(--serif); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial img, .testimonial .initial { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial .initial { display: grid; place-items: center; background: var(--gold-grad); color: #1b1306; font-weight: 700; }
.testimonial figcaption span { display: flex; flex-direction: column; }
.testimonial small { color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 80px); background: var(--gold-grad); color: #150f04; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; isolation: isolate; }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at 15% 20%, rgba(255,255,255,.45), transparent 60%), radial-gradient(400px circle at 90% 100%, rgba(11,107,58,.35), transparent 60%); }
.cta h2 { color: #120d03; margin-bottom: .3em; }
.cta h2 em { background: none; color: var(--green-deep); -webkit-background-clip: initial; background-clip: initial; }
.cta p { font-size: 1.1rem; margin: 0; opacity: .85; max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); overflow: hidden; isolation: isolate; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); font-weight: 400; max-width: 900px; }
.page-hero.compact h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.search-wrap { position: relative; max-width: 560px; margin-top: 28px; }
.search-wrap svg { z-index: 1; position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: var(--muted); }
.search-wrap input { width: 100%; padding: 18px 20px 18px 54px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; backdrop-filter: blur(10px); transition: border-color .3s, background .3s; }
.search-wrap input:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
.filter-bar { position: sticky; top: 78px; z-index: 20; background: rgba(7,11,9,.8); backdrop-filter: blur(16px); border-block: 1px solid var(--line); }
.filter-inner { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.filter-inner::-webkit-scrollbar { display: none; }
.filter { flex-shrink: 0; padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 .88rem var(--sans); cursor: pointer; transition: .3s; }
.filter span { margin-left: 4px; font-size: .75rem; opacity: .7; }
.filter:hover { color: var(--text); border-color: var(--gold-2); }
.filter.active { background: var(--gold); color: #1b1306; border-color: var(--gold); }
.fil-block { margin-bottom: 70px; scroll-margin-top: 160px; }
.fil-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.fil-head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.fil-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 4px; }
.fil-head p { margin: 0; color: var(--muted); max-width: 700px; }
.empty-search, .empty { text-align: center; color: var(--muted); padding: 40px 0; }
.tabs { display: inline-flex; gap: 6px; margin-top: 26px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs a { padding: .55em 1.2em; border-radius: 999px; font-size: .9rem; color: var(--muted); transition: .3s; }
.tabs a.active { background: var(--gold); color: #1b1306; font-weight: 600; }

/* Détail */
.detail-hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; padding: 140px 0 60px; isolation: isolate; overflow: hidden; }
.detail-hero.short { min-height: 56vh; }
.detail-bg { position: absolute; inset: 0; z-index: -1; }
.detail-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: kenburns 20s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.15); } }
.detail-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,9,.35) 0%, rgba(7,11,9,.6) 50%, var(--bg) 100%), linear-gradient(90deg, rgba(7,11,9,.75), transparent 70%); }
.detail-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; max-width: 900px; }
.detail-hero .lead { color: rgba(244,239,228,.85); }
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold); }
.detail-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.detail-aside { position: sticky; top: 100px; }
.aside-card { padding: 28px; border-radius: var(--radius); margin-bottom: 18px; }
.aside-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.aside-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aside-price { display: block; font: 400 2.2rem/1.1 var(--serif); color: var(--gold-3); margin: 4px 0 18px; }
.aside-card dl { margin: 0 0 22px; }
.aside-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.aside-card dt { color: var(--muted); }
.aside-card dd { margin: 0; text-align: right; font-weight: 500; }
.aside-card .btn { margin-bottom: 10px; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin-top: 1.4em; }
.prose p, .prose li { color: rgba(244,239,228,.82); }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.program ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.program li { position: relative; padding: 16px 18px 16px 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); counter-increment: p; }
.program ul { counter-reset: p; }
.program li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 16px; top: 16px; font: italic 500 .95rem var(--serif); color: var(--gold); }
.share { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.sticky-cta { display: none; }

/* Actualités */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(226,184,100,.45); }
.post-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-media .chip { position: absolute; left: 14px; top: 14px; }
.post-body { padding: 24px; }
.post-date { font-size: .8rem; color: var(--gold); font-weight: 600; text-transform: capitalize; }
.post-body h2, .post-body h3 { font: 500 1.4rem/1.2 var(--serif); margin: 8px 0 10px; }
.post-body p { color: var(--muted); font-size: .94rem; }
.post-lead { grid-column: span 3; flex-direction: row; }
.post-lead .post-media { flex: 1.2; aspect-ratio: auto; min-height: 380px; }
.post-lead .post-body { flex: 1; padding: clamp(28px, 4vw, 50px); display: flex; flex-direction: column; justify-content: center; }
.post-lead h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* Formulaires */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.form-aside { position: sticky; top: 100px; }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: 28px; }
.form-card h2 { font-size: 2rem; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend { display: flex; align-items: center; gap: 12px; font: 500 1.35rem var(--serif); margin-bottom: 18px; padding: 0; }
legend span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--sans); background: var(--gold-grad); color: #1b1306; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; color: rgba(244,239,228,.88); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2);
    background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option, .field select optgroup { background: #101914; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(226,184,100,.15); background: rgba(0,0,0,.35); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #F07167; }
.field .err { display: block; color: #F7A39B; font-size: .8rem; margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: .65em 1.2em; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; cursor: pointer; transition: .25s; }
.choice input:checked + span { background: var(--gold); color: #1b1306; border-color: var(--gold); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-errors { padding: 16px 20px; border-radius: 14px; background: rgba(240,113,103,.12); border: 1px solid rgba(240,113,103,.4); margin-bottom: 24px; font-size: .92rem; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.mini-steps { padding-left: 1.2em; margin: 0; color: var(--muted); }
.mini-steps li { margin-bottom: 10px; }
.mini-steps strong { color: var(--text); }
.flash { margin: 20px 0 0; padding: 16px 20px; border-radius: 14px; font-weight: 500; }
.flash-success { background: rgba(34,168,98,.15); border: 1px solid rgba(34,168,98,.45); }
.flash-error { background: rgba(240,113,103,.12); border: 1px solid rgba(240,113,103,.4); }

/* Merci / 404 */
.thanks { min-height: 70vh; display: flex; align-items: center; }
.check-anim svg { width: 90px; height: 90px; margin: 0 auto 24px; display: block; }
.check-anim circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s .2s var(--ease) forwards; }
.check-anim path { fill: none; stroke: var(--gold-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref-box { display: inline-flex; flex-direction: column; padding: 18px 34px; border-radius: 18px; margin: 10px 0 10px; }
.ref-box span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ref-box strong { font: 500 2rem var(--serif); color: var(--gold-3); letter-spacing: .04em; }
.big-404 { display: block; font: italic 400 clamp(6rem, 18vw, 12rem)/1 var(--serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero.thanks .lead { margin-inline: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; transition: border-color .3s, transform .4s var(--ease); }
a.c-card:hover { border-color: rgba(226,184,100,.5); transform: translateX(4px); }
.c-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-grad); color: #1b1306; font-size: 1.3rem; }
.c-card span:last-child { display: flex; flex-direction: column; }
.c-card small { color: var(--muted); font-size: .8rem; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6) contrast(.9); }

/* À propos */
.about-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.about-logo { position: relative; display: grid; place-items: center; }
.about-logo img { position: relative; width: min(360px, 80%); border-radius: 50%; box-shadow: 0 40px 100px -30px rgba(226,184,100,.4); animation: float 7s ease-in-out infinite; }
.logo-halo { position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(226,184,100,.25); animation: spin 60s linear infinite; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 34px; border-radius: var(--radius); }
.value-n { font: italic 400 1rem var(--serif); color: var(--gold); }
.value h3 { font: 500 1.8rem var(--serif); margin: 10px 0; }
.value p { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.g1 { grid-column: span 2; grid-row: span 2; }
.g4 { grid-row: span 2; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); padding: 80px 0 30px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; z-index: 1; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px; }
.site-footer h4 { font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer a { display: block; color: var(--muted); padding: 4px 0; font-size: .94rem; transition: color .3s; }
.site-footer a:hover { color: var(--text); }
.site-footer p { color: var(--muted); font-size: .94rem; margin-bottom: .6em; }
.site-footer p a { display: inline; padding: 0; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.socials a { padding: .45em .9em; border: 1px solid var(--line-2); border-radius: 999px; font-size: .82rem; }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom a { display: inline; }
.footer-word { position: absolute; left: 50%; bottom: -0.28em; transform: translateX(-50%); font: italic 400 clamp(8rem, 26vw, 24rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(226,184,100,.09); pointer-events: none; white-space: nowrap; }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #1FAF5A; color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 30px -10px rgba(31,175,90,.7); transition: transform .4s var(--ease); }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .header-phone { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 480px; }
    .detail-grid, .form-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-aside, .form-aside { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .posts { grid-template-columns: repeat(2, 1fr); }
    .post-lead { grid-column: span 2; }
}
@media (max-width: 900px) {
    .burger { display: block; }
    .header-actions .btn { display: none; }
    .main-nav {
        position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
        padding: 100px 28px 40px; background: rgba(7,11,9,.97); backdrop-filter: blur(20px);
        opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
    }
    .main-nav a { font: 400 2.2rem/1.2 var(--serif); padding: .2em 0; color: var(--text); background: none !important; transform: translateY(20px); transition: transform .5s var(--ease), color .3s; }
    .main-nav a.active { color: var(--gold); }
    .main-nav a.active::after { display: none; }
    .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 24px; font: 600 1rem var(--sans); padding: 1em 1.6em; color: #1b1306; }
    .nav-open .main-nav { opacity: 1; visibility: visible; }
    .nav-open .main-nav a { transform: none; }
    .nav-open { overflow: hidden; }
    .header-inner { height: 68px; }
    .site-header::before { background: rgba(7,11,9,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
    .filter-bar { top: 68px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
    .b1 { grid-column: span 2; grid-row: span 1; height: 340px; }
    .b2, .b3, .b4, .b5 { grid-column: span 1; }
    .bento-list { display: none; }
    .why-grid, .about-hero, .contact-grid { grid-template-columns: 1fr; }
    .why-badge { right: 12px; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .steps::before { display: none; }
    .cta { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .g1 { grid-column: span 2; }
    .program ul { grid-template-columns: 1fr; }
    .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(16,25,20,.92); border: 1px solid var(--line-2); backdrop-filter: blur(16px); }
    .sticky-cta div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
    .sticky-cta strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sticky-cta small { color: var(--gold-3); font-size: .8rem; }
    .page-formation .wa-float { bottom: 86px; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { width: calc(100% - 32px); }
    .brand-text small { display: none; }
    .hero { padding-top: 24px; min-height: auto; }
    .hero-visual { height: 380px; }
    .fc-1 { left: 0; bottom: 6%; }
    .fc-2 { right: auto; left: 30%; top: -2%; }
    .float-card { padding: 10px 14px; }
    .hero-ctas .btn { width: 100%; }
    .scroll-hint { display: none; }
    .stat { padding: 24px 18px; }
    .bento { grid-template-columns: 1fr; grid-auto-rows: 230px; }
    .b1 { grid-column: span 1; height: auto; }
    .b2, .b3, .b4, .b5 { grid-column: span 1; }
    .grid-2 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .posts, .posts.three { grid-template-columns: 1fr; }
    .post-lead { grid-column: span 1; flex-direction: column; }
    .post-lead .post-media { min-height: 220px; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .event { flex-direction: column; }
    .wa-float span { display: none; }
    .wa-float { padding: 14px; }
    .section-head.row .carousel-nav { display: none; }
    .tabs { display: flex; overflow-x: auto; }
    .fil-head img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Barre d'aperçu de thème (administrateur connecté) */
.preview-bar { position: relative; z-index: 90; background: #24489A; color: #fff; text-align: center; font: 600 .85rem/1.4 system-ui, sans-serif; padding: 8px 16px; }
.preview-bar a { color: #FFD9B8; text-decoration: underline; margin: 0 4px; }
@media (max-width: 900px) {
    .main-nav a.nav-cta-mobile { background: var(--gold-grad) !important; color: #1B1306; }
}

/* =========================================================
   Carrousel d'accueil (diaporama géré dans l'admin)
   ========================================================= */
.slider { --slide-bg: #0B120E; --slide-accent: var(--gold); --delay: 6500ms; position: relative; height: clamp(540px, 80vh, 700px); background: var(--slide-bg); color: #fff; overflow: hidden; isolation: isolate; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
.slide-media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--slide-bg) 0%, color-mix(in srgb, var(--slide-bg) 55%, transparent) 22%, transparent 55%); }
.slide-inner { position: relative; height: 100%; display: flex; align-items: center; z-index: 2; padding-bottom: 60px; }
.slide-copy { max-width: min(600px, 52%); }
.slide-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slide-accent); margin-bottom: 18px; }
.slide-kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.slide-title { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.05; color: #fff; margin: 0 0 .4em; }
.slide-text { font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 28px; }
.slide-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light-outline { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.04); }
.btn-light-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
/* Apparition du texte */
.slide-copy > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.is-active .slide-copy > * { opacity: 1; transform: none; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: .22s; }
.slide.is-active .slide-copy > :nth-child(4) { transition-delay: .32s; }
/* Commandes */
.slider-controls { position: absolute; left: 0; right: 0; bottom: 34px; margin: 0 auto; z-index: 3; display: flex; align-items: center; gap: 22px; }
.slider-arrows { display: flex; gap: 8px; }
.slider-btn, .slider-pause { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.18); color: #fff; font-size: 1.05rem; cursor: pointer; transition: .25s; backdrop-filter: blur(6px); }
.slider-btn:hover, .slider-pause:hover { background: #fff; color: #0B120E; border-color: #fff; }
.slider-pause { width: 36px; height: 36px; font-size: .7rem; letter-spacing: -2px; }
.slider-pause.is-paused { letter-spacing: 0; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { position: relative; width: 44px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.slider-dot::before, .slider-dot i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255,255,255,.3); }
.slider-dot i { right: auto; width: 0; background: var(--slide-accent); }
.slider-dot.is-active i { width: 100%; }
.slider.is-playing .slider-dot.is-active i { animation: slide-progress var(--delay) linear forwards; }
@keyframes slide-progress { from { width: 0; } to { width: 100%; } }
.slider-count { font: 600 .9rem var(--sans); color: rgba(255,255,255,.7); }
.slider-count b { color: #fff; }

@media (max-width: 900px) {
    /* Sur mobile, la hauteur s'adapte à la diapositive la plus longue */
    .slider { height: auto; }
    .slides { position: relative; display: grid; }
    .slide { position: relative; inset: auto; grid-area: 1 / 1; }
    .slide-inner { height: auto; }
    .slide-media { width: 100%; height: 300px; bottom: auto; }
    .slide-media::after { background: linear-gradient(180deg, transparent 40%, var(--slide-bg) 100%); }
    .slide-inner { align-items: flex-start; padding-top: 270px; padding-bottom: 100px; }
    .slide-copy { max-width: 100%; }
    .slide-title { font-size: clamp(2rem, 8vw, 2.6rem); }
    .slider-controls { bottom: 22px; gap: 14px; }
    .slider-arrows { display: none; }
}
@media (max-width: 640px) {
    .slide-media { height: 250px; }
    .slide-inner { padding-top: 225px; }
    .slide-ctas .btn { width: 100%; }
    .slider-dot { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .slide-media img { transform: none !important; }
}
