/* ==========================================================================
   Mission Évangélique Disciple Accompli — feuille de style du site public
   Palette tirée du logo : noir profond, or, ivoire.
   ========================================================================== */

:root {
    --ink: #0e0d0b;
    --ink-2: #1a1814;
    --ink-3: #2a2620;
    --ivory: #faf7f0;
    --ivory-2: #f3eee2;
    --paper: #ffffff;
    --gold: #c9a13b;
    --gold-light: #ecd28a;
    --gold-dark: #8f6b1a;
    --gold-grad: linear-gradient(135deg, #f1d98f 0%, #c9a13b 45%, #8f6b1a 100%);
    --text: #24211c;
    --muted: #6d665a;
    --line: #e7e0cf;
    --success: #2f7a4b;
    --danger: #b03a2e;

    --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(14, 13, 11, .06);
    --shadow: 0 14px 40px -12px rgba(14, 13, 11, .18);
    --shadow-gold: 0 14px 34px -10px rgba(201, 161, 59, .55);
    --container: 1180px;
    --header-h: 78px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink); font-weight: 700; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 1000;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .9em 1.7em; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .92rem/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold-grad); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-gold:hover { color: var(--ink); box-shadow: 0 18px 40px -10px rgba(201, 161, 59, .75); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: var(--gold-light); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-block { width: 100%; }
.btn-sm { padding: .65em 1.2em; font-size: .78rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4em;
    font-weight: 600; font-size: .9rem; letter-spacing: .03em; color: var(--gold-dark);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    position: relative; padding: 10px 14px; color: var(--ink);
    font-weight: 500; font-size: .92rem; border-radius: 8px;
}
.main-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { font-weight: 600; }
.main-nav .btn { margin-left: 10px; padding: .75em 1.4em; }
.main-nav .btn::after { display: none; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
    border-radius: 10px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s; content: "";
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Héros ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--ink); color: #f4efe3;
    padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 160px);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(201, 161, 59, .28), transparent 60%),
        radial-gradient(40% 50% at 10% 100%, rgba(201, 161, 59, .12), transparent 70%),
        linear-gradient(180deg, #0e0d0b 0%, #17140f 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
/* Héros de l'accueil : illustration « formation de disciples » en fond */
.hero-scene { background: var(--ink) url("../../img/hero-disciples.svg?v=5") no-repeat 70% center / cover; }
.hero-scene::before {
    background:
        linear-gradient(90deg, rgba(14, 13, 11, .97) 0%, rgba(14, 13, 11, .88) 34%, rgba(14, 13, 11, .35) 62%, rgba(14, 13, 11, 0) 80%),
        linear-gradient(0deg, rgba(14, 13, 11, .6) 0%, transparent 30%);
}
.hero-scene::after { opacity: .15; }
.hero-text { max-width: 640px; }

.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d8d0bd; max-width: 40em; margin-bottom: 2.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-flame { position: relative; display: flex; justify-content: center; }
.hero-flame img {
    width: min(300px, 70%); filter: drop-shadow(0 30px 60px rgba(201, 161, 59, .45));
    animation: flicker 6s ease-in-out infinite;
}
.hero-flame::before {
    content: ""; position: absolute; width: 120%; aspect-ratio: 1; top: 50%; left: 50%;
    transform: translate(-50%, -50%); border-radius: 50%;
    border: 1px solid rgba(236, 210, 138, .18);
    box-shadow: inset 0 0 0 40px rgba(236, 210, 138, .03), inset 0 0 0 90px rgba(236, 210, 138, .02);
}
@keyframes flicker {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark);
    margin-bottom: 1.1em;
}
.kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--gold-grad); }
.hero .kicker, .on-dark .kicker { color: var(--gold-light); }

.hero-stats {
    display: flex; flex-wrap: wrap; gap: 36px; margin-top: 3.2em; padding-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-stats strong { display: block; font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold-light); line-height: 1; }
.hero-stats span { font-size: .82rem; color: #b4ab98; letter-spacing: .04em; }

/* En-tête des pages intérieures */
.page-hero {
    position: relative; overflow: hidden; background: var(--ink); color: #e9e2d1;
    padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 8vw, 90px);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(50% 90% at 85% 10%, rgba(201, 161, 59, .25), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .2em; }
.page-hero p { max-width: 42em; color: #cfc6b2; font-size: 1.1rem; margin: 0; }
.page-hero-intro p + p { margin-top: .9em; }

/* Bandeau illustré de la page Vision et valeurs */
.page-hero-vision {
    padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
    background: var(--ink) url("../../img/vision-valeurs.svg?v=1") right center / cover no-repeat;
}
.page-hero-vision::before {
    background: linear-gradient(90deg, rgba(14, 13, 11, .96) 0%, rgba(14, 13, 11, .85) 35%, rgba(14, 13, 11, .25) 62%, rgba(14, 13, 11, 0) 80%);
}
.page-hero-vision .container > * { max-width: 620px; }
.page-hero-vision .page-hero-intro p { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-style: italic; line-height: 1.45; color: #efe6d2; }
@media (max-width: 920px) {
    .page-hero-vision { background-position: 70% center; }
    .page-hero-vision::before { background: linear-gradient(180deg, rgba(14, 13, 11, .9) 0%, rgba(14, 13, 11, .72) 60%, rgba(14, 13, 11, .5) 100%); }
}
.page-hero-intro p:last-child:not(:first-child) { color: var(--gold-light); font-weight: 600; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; margin-bottom: 1.4em; color: #a59c88; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-sm { padding: clamp(50px, 6vw, 80px) 0; }
.section-white { background: var(--paper); }
.section-dark { background: var(--ink); color: #d9d1be; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head .kicker::after { content: ""; width: 34px; height: 1.5px; background: var(--gold-grad); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #b9b09c; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head.left .kicker { justify-content: flex-start; }
.section-head.left .kicker::after { display: none; }

.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }

/* Citation / identité */
.quote-block { position: relative; padding-left: 28px; border-left: 3px solid var(--gold); }
.quote-block blockquote {
    margin: 0; font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.35; font-style: italic; color: var(--ink);
}
.quote-block cite { display: block; margin-top: 14px; font-style: normal; font-size: .86rem; color: var(--muted); letter-spacing: .05em; }

.identity-card {
    position: relative; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg);
    background: var(--ink); color: #d8d0bd; overflow: hidden;
}
.identity-card::before {
    content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 161, 59, .35), transparent 70%);
}
.identity-card h3 { color: var(--gold-light); font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; }
.identity-card .big-number { font-family: var(--font-serif); font-size: 5.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.identity-card p:last-child { margin: 0; }

/* Les trois axes de la vision */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
    position: relative; padding: 40px 32px 36px; background: var(--paper); border-radius: var(--radius-lg);
    border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
    overflow: hidden;
}
.pillar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar:hover::after { transform: scaleX(1); }
.pillar-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(241, 217, 143, .35), rgba(201, 161, 59, .12)); color: var(--gold-dark);
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-serif); font-size: 2.4rem; color: var(--ivory-2); font-weight: 600; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--muted); margin: 0; }
.section-dark .pillar { background: var(--ink-2); border-color: rgba(255, 255, 255, .07); }
.section-dark .pillar p { color: #b2a994; }
.section-dark .pillar-num { color: rgba(255, 255, 255, .06); }

/* ---------- Formations ---------- */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.formation-card {
    display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg);
    border: 1px solid var(--line); padding: 32px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
    color: inherit;
}
.formation-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201, 161, 59, .5); color: inherit; }
.formation-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.formation-card h3 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; margin-bottom: .35em; }
.formation-card p { color: var(--muted); flex: 1; }
.formation-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 8px; }
.formation-card .duration { font-size: .86rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.formation-card .duration svg { width: 16px; height: 16px; color: var(--gold); }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    background: var(--ivory-2); color: var(--ink-3);
}
.badge-gold { background: var(--gold-grad); color: var(--ink); }
.badge-dark { background: var(--ink); color: var(--gold-light); }

/* Parcours de discipolat en niveaux */
.levels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: level; }
.levels::before {
    content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); opacity: .5;
}
.level { position: relative; text-align: center; }
.level-dot {
    position: relative; z-index: 1; width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%;
    display: grid; place-items: center; background: var(--ink); color: var(--gold-light);
    font-family: var(--font-serif); font-size: 2rem; font-weight: 600;
    box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px rgba(201, 161, 59, .45);
}
.section-white .level-dot { box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px rgba(201, 161, 59, .45); }
.level .formation-card { text-align: left; height: calc(100% - 112px); }

/* Détail d'une formation */
.formation-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.prose { font-size: 1.06rem; }
.prose p { color: var(--text); }
.prose h2 { font-size: 2rem; margin-top: 1.2em; }
.modules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: mod; }
.modules li {
    counter-increment: mod; display: flex; gap: 16px; align-items: center;
    padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    font-weight: 500;
}
.modules li::before {
    content: counter(mod, decimal-leading-zero); flex: none; width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center; background: var(--ink); color: var(--gold-light);
    font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem;
}
.aside-card {
    position: sticky; top: calc(var(--header-h) + 24px);
    padding: 32px; border-radius: var(--radius-lg); background: var(--ink); color: #d4ccb8;
}
.aside-card h3 { color: #fff; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; }
.aside-card dl { margin: 0 0 26px; display: grid; gap: 14px; }
.aside-card dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.aside-card dd { margin: 2px 0 0; color: #f1ead9; font-weight: 500; }
.aside-card .free { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(201, 161, 59, .12); color: var(--gold-light); font-size: .9rem; margin-bottom: 20px; }

/* ---------- Valeurs ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.value { background: var(--paper); padding: 40px 34px; transition: background .3s; }
.value:hover { background: var(--ivory); }
.value-num { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.value h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; margin: 10px 0 8px; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- À propos / chronologie ---------- */
.founder { display: grid; grid-template-columns: 380px 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.founder-card {
    position: sticky; top: calc(var(--header-h) + 24px);
    background: var(--ink); color: #d6cebb; border-radius: var(--radius-lg); padding: 36px; overflow: hidden;
}
.founder-card .monogram {
    width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
    background: var(--gold-grad); color: var(--ink); font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600;
}
/* Portrait du fondateur : arche dorée, halo et fondu dans la carte */
.founder-portrait {
    position: relative; margin: -8px -8px 26px; padding: 3px; aspect-ratio: 476 / 494;
    border-radius: 200px 200px 22px 22px; background: var(--gold-grad);
    box-shadow: 0 30px 60px -25px rgba(201, 161, 59, .55);
}
.founder-portrait::before {
    content: ""; position: absolute; inset: 3px; border-radius: inherit; z-index: 0;
    background: radial-gradient(70% 55% at 50% 38%, rgba(242, 181, 68, .38), transparent 70%), #000;
}
.founder-portrait img {
    position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top;
    border-radius: 197px 197px 19px 19px;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    transition: transform .8s var(--ease);
}
.founder-card:hover .founder-portrait img { transform: scale(1.03); }
.founder-portrait::after {
    content: "Fondateur"; position: absolute; z-index: 2; left: 50%; bottom: -14px; transform: translateX(-50%);
    padding: 6px 16px; border-radius: 999px; background: var(--ink); color: var(--gold-light);
    border: 1px solid rgba(236, 210, 138, .45); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}

.founder-card h3 { color: #fff; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; margin-bottom: .15em; }
.founder-card .role { color: var(--gold-light); font-size: .86rem; letter-spacing: .06em; margin-bottom: 1.3em; }
.founder-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.founder-card li { display: flex; gap: 10px; }
.founder-card li::before { content: "✦"; color: var(--gold); }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 26px; padding-bottom: 42px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year {
    position: relative; z-index: 1; justify-self: center; align-self: start;
    padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--gold-light);
    font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem;
}
.timeline h3 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; margin-bottom: .3em; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Photothèque ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.album-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); color: #fff; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.album-card:hover img { transform: scale(1.06); }
.album-card .overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
    background: linear-gradient(180deg, transparent 35%, rgba(14, 13, 11, .88));
}
.album-card h3 { color: #fff; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; margin: 0; }
.album-card span { font-size: .84rem; color: var(--gold-light); }
.album-card:hover { color: #fff; }

.masonry { columns: 3 280px; column-gap: 18px; }
.masonry a { position: relative; display: block; margin-bottom: 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--ivory-2); }
.masonry img { width: 100%; transition: transform .6s var(--ease), filter .4s; }
.masonry a:hover img { transform: scale(1.04); filter: brightness(.85); }
.masonry figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-size: .88rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .3s;
}
.masonry a:hover figcaption, .masonry a:focus-visible figcaption { opacity: 1; }

.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.photo-strip a { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: block; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-strip a:hover img { transform: scale(1.08); }

/* Visionneuse */
.lightbox {
    position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
    background: rgba(8, 7, 6, .95); padding: 60px 70px;
}
.lightbox.open { display: flex; animation: fade .25s ease; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #ddd5c3; text-align: center; font-size: .95rem; }
.lightbox button {
    position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.5rem; cursor: pointer; transition: background .2s;
}
.lightbox button:hover { background: rgba(201, 161, 59, .35); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); color: #a59c88; font-size: .85rem; letter-spacing: .1em; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { position: relative; padding: 36px 30px 28px; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.testimonial::before { content: "“"; position: absolute; top: -6px; left: 24px; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--gold); }
.testimonial p { font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.testimonial footer { font-size: .88rem; color: var(--muted); }
.testimonial footer strong { color: var(--ink); display: block; font-size: .95rem; }
.section-dark .testimonial { background: var(--ink-2); border-color: rgba(255, 255, 255, .07); }
.section-dark .testimonial p, .section-dark .testimonial footer strong { color: #f1ead9; }

/* ---------- Appel à l'action ---------- */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: clamp(44px, 6vw, 80px);
    background: var(--ink); color: #d8d0bd; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(201, 161, 59, .35), transparent 60%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: #c5bca8; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--ivory);
    font: 500 .98rem/1.4 var(--font-sans); color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold); background: var(--paper); box-shadow: 0 0 0 4px rgba(201, 161, 59, .15);
}
.field .error { display: block; margin-top: 6px; color: var(--danger); font-size: .82rem; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .hint { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-dark); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.segmented { display: inline-flex; padding: 5px; background: var(--ivory-2); border-radius: 999px; gap: 4px; margin-bottom: 26px; flex-wrap: wrap; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 10px 20px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.segmented input:checked + span { background: var(--ink); color: var(--gold-light); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; padding: 22px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.info-item .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--gold-light); }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-item a, .info-item span { color: var(--ink); font-weight: 500; word-break: break-word; }

/* Alertes */
.alerts { position: fixed; top: calc(var(--header-h) + 14px); right: 18px; z-index: 300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.alert {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px;
    background: var(--paper); box-shadow: var(--shadow); border-left: 4px solid var(--success); font-size: .92rem;
    animation: slidein .4s var(--ease);
}
.alert-error { border-left-color: var(--danger); }
.alert button { margin-left: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }

.thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.thanks .seal { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); box-shadow: var(--shadow-gold); }
.thanks .seal svg { width: 44px; height: 44px; color: var(--ink); }

.lead-muted { color: var(--muted); font-size: 1.1rem; }
.error-flame { width: 80px; margin: 0 auto 26px; }
.debug { text-align: left; white-space: pre-wrap; font-size: .78rem; background: #fff; border: 1px solid var(--line); padding: 16px; border-radius: 10px; overflow: auto; max-height: 360px; }
.founder-family { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; color: #b9b09c; }
.masonry figure { margin: 0; }

.empty-state { text-align: center; padding: 60px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty-state img { width: 70px; margin: 0 auto 18px; opacity: .8; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #b0a792; padding-top: 80px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.footer-brand img { width: 230px; margin-bottom: 20px; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.3em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfc6b2; }
.site-footer a:hover { color: var(--gold-light); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); transition: all .25s; }
.socials a:hover { background: var(--gold-grad); border-color: transparent; color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input {
    flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05); color: #fff; font: inherit;
}
.newsletter input::placeholder { color: #8d8572; }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.newsletter .btn { padding: .8em 1.2em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #857d6b; }

/* ---------- Page à rubriques (Vision et valeurs) ---------- */
.section-sm-top { padding-top: clamp(50px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 60px); }
.topic, #apercu { scroll-margin-top: calc(var(--header-h) + 64px); }

.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.overview-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.overview-group h3 {
    font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark);
    margin: 4px 6px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.overview-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; color: var(--text);
    transition: background .25s, transform .25s var(--ease);
}
.overview-item + .overview-item { margin-top: 4px; }
.overview-item:hover { background: var(--ivory); color: var(--text); transform: translateX(4px); }
.overview-icon {
    flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(241, 217, 143, .45), rgba(201, 161, 59, .15)); color: var(--gold-dark);
}
.overview-icon svg { width: 22px; height: 22px; }
.overview-text { flex: 1; min-width: 0; }
.overview-text strong { display: block; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.overview-text span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.overview-arrow { color: var(--gold); font-weight: 700; transition: transform .25s var(--ease); }
.overview-item:hover .overview-arrow { transform: translateX(4px); }

.topic-nav {
    position: sticky; top: var(--header-h); z-index: 90;
    background: rgba(255, 252, 244, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-block: 1px solid var(--line);
}
.topic-nav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.topic-nav-inner::-webkit-scrollbar { display: none; }
.topic-nav a {
    flex: none; padding: 8px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted);
    white-space: nowrap; transition: background .2s, color .2s;
}
.topic-nav a:hover { background: var(--ivory-2); color: var(--ink); }
.topic-nav a.active { background: var(--ink); color: var(--gold-light); }

.back-to-top { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.back-to-top svg { width: 15px; height: 15px; }
.back-to-top:hover { color: var(--gold-dark); }
.topic-foot { margin-top: 34px; text-align: center; }
.topic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 26px; }
.split-top { align-items: start; }

.not-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.not-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; }
.not-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(208, 100, 58, .12); color: var(--ember); margin-bottom: 16px; }
.not-icon svg { width: 24px; height: 24px; }
.not-card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.not-card p { color: var(--muted); margin: 0; }
.quote-center { max-width: 760px; margin: 0 auto; }

.flow { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.flow li {
    position: relative; display: flex; gap: 16px; align-items: center; padding: 18px 20px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.flow li + li::before {
    content: ""; position: absolute; left: 43px; top: -15px; width: 2px; height: 14px; background: var(--gold); opacity: .5;
}
.flow li > span { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-light); }
.flow li > span svg { width: 22px; height: 22px; }
.flow strong { display: block; font-size: 1rem; color: var(--ink); }
.flow small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; }

.benefits { background: var(--ink); color: #d8d0bd; border-radius: var(--radius-lg); padding: 32px; }
.benefits h3 { color: var(--gold-light); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.benefits ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: center; font-weight: 500; color: #f1ead9; }
.benefits li svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); }
.benefits p { margin: 0; color: #b9b09c; font-size: .94rem; }

.trio { display: grid; gap: 14px; }
.trio div { padding: 22px 24px; border-radius: var(--radius); background: var(--gold-grad); color: var(--ink); box-shadow: var(--shadow-gold); }
.trio div:nth-child(2) { background: linear-gradient(135deg, #e98a5a, #c4532d); color: #fff; box-shadow: 0 14px 30px -12px #c4532d; }
.trio div:nth-child(3) { background: linear-gradient(135deg, #4aa79b, #25665e); color: #fff; box-shadow: 0 14px 30px -12px #25665e; }
.trio strong { display: block; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.trio span { font-size: .92rem; opacity: .9; }

@media (max-width: 1080px) {
    .overview { grid-template-columns: 1fr 1fr; }
    .overview-group:last-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
    .overview, .not-cards { grid-template-columns: 1fr; }
    .topic-nav { top: var(--header-h); }
}

/* ---------- Infolettre ---------- */
.footer-newsletter { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-newsletter h4 { display: flex; align-items: center; gap: 8px; margin-bottom: .6em; }
.footer-newsletter h4 svg { width: 16px; height: 16px; color: var(--gold-light); }
.footer-newsletter p { font-size: .86rem; margin-bottom: 0; }
.newsletter .btn { padding: .8em 1.2em; font-size: .78rem; }
.footer-newsletter .unsub { display: inline-block; margin-top: 10px; font-size: .78rem; color: #8d8572; text-decoration: underline; }

.newsletter-card {
    display: grid; grid-template-columns: auto 1fr 1.1fr; gap: 32px; align-items: center;
    padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: #fff;
    border: 1px solid rgba(201, 161, 59, .3); box-shadow: 0 24px 50px -30px rgba(143, 107, 26, .55);
    position: relative; overflow: hidden;
}
.newsletter-card::before {
    content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 181, 68, .28), transparent 70%); pointer-events: none;
}
.newsletter-icon {
    width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
    background: linear-gradient(135deg, #4aa79b, #25665e); color: #fff; box-shadow: 0 14px 28px -12px #25665e;
    transform: rotate(-6deg);
}
.newsletter-icon svg { width: 40px; height: 40px; }
.newsletter-text h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: .25em; }
.newsletter-text p { color: var(--muted); margin: 0; }
.newsletter-text .kicker { margin-bottom: .6em; }
.newsletter-action { position: relative; }
.newsletter-action small { display: block; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.newsletter-action small a { text-decoration: underline; }
.newsletter-lg input {
    padding: 15px 20px; border: 1.5px solid var(--line); background: var(--ivory); color: var(--text);
}
.newsletter-lg input::placeholder { color: #9a917f; }
.newsletter-lg .btn { padding: 1em 1.6em; font-size: .85rem; }
.section-sm-tight { padding-top: 0; }

.form-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.notice { padding: 14px 18px; border-radius: 12px; background: var(--honey); color: var(--ink-3); font-size: .92rem; }
.privacy-note { margin: 22px 0 0; font-size: .82rem; color: var(--muted); }

@media (max-width: 920px) {
    .newsletter-card { grid-template-columns: 1fr; text-align: left; gap: 20px; }
    .newsletter-icon { width: 64px; height: 64px; border-radius: 18px; }
    .newsletter-icon svg { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
    .newsletter { flex-direction: column; }
    .newsletter .btn { width: 100%; }
}

.admin-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid rgba(236, 210, 138, .4); color: var(--gold-light) !important; font-weight: 600;
}
.admin-link:hover { background: var(--gold-grad); color: var(--ink) !important; border-color: transparent; }
.admin-link svg { width: 16px; height: 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .formation-layout, .contact-layout { grid-template-columns: 1fr; }
    .aside-card { position: static; }
    .founder { grid-template-columns: 1fr; }
    .founder-card { position: static; }
}

@media (max-width: 920px) {
    :root { --header-h: 68px; }
    .brand img { height: 44px; }
    .nav-toggle { display: block; }
    /* backdrop-filter ferait du header le repère du menu fixe (menu écrasé à sa hauteur) */
    .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 24px; background: var(--paper); overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .nav-open { overflow: hidden; }
    .main-nav a { padding: 16px 6px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--gold-dark); }
    .main-nav .btn { margin: 24px 0 0; padding: 1em; border-bottom: 0; border-radius: 999px; }

    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero-scene { background-position: 72% bottom; background-size: auto 100%; }
    .hero-scene::before {
        background: linear-gradient(180deg, rgba(14, 13, 11, .94) 0%, rgba(14, 13, 11, .82) 55%, rgba(14, 13, 11, .45) 100%);
    }
    .hero-flame { order: -1; }
    .hero-flame img { width: 150px; }
    .hero-flame::before { width: 230px; }
    .pillars, .values { grid-template-columns: 1fr 1fr; }
    .levels { grid-template-columns: 1fr; gap: 50px; }
    .levels::before { display: none; }
    .level .formation-card { height: auto; }
    .cta { grid-template-columns: 1fr; }
    .photo-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
    .container { padding: 0 16px; }
    .pillars, .values, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .btn { white-space: normal; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .timeline::before { left: 34px; }
    .timeline li { grid-template-columns: 68px 1fr; gap: 16px; }
    .timeline .year { font-size: 1rem; padding: 5px 10px; }
    .lightbox { padding: 60px 10px; }
    .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
    .lb-prev { left: calc(50% - 60px); }
    .lb-next { right: calc(50% - 60px); }
    .alerts { left: 16px; right: 16px; max-width: none; }
}

/* ==========================================================================
   Accueil vivant : couleurs chaudes, mouvements doux, sections lumineuses
   ========================================================================== */
:root {
    --sun: #f2b544;
    --ember: #d0643a;
    --teal: #2f7d74;
    --cream: #fff9ec;
    --honey: #fbecc6;
}

/* Héros plus chaud et moins voilé */
.hero-scene::before {
    background:
        linear-gradient(90deg, rgba(20, 14, 8, .92) 0%, rgba(24, 16, 8, .72) 36%, rgba(30, 20, 8, .18) 64%, rgba(30, 20, 8, 0) 82%),
        radial-gradient(60% 80% at 72% 55%, rgba(242, 181, 68, .22), transparent 70%),
        linear-gradient(0deg, rgba(14, 10, 6, .55) 0%, transparent 28%);
    animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: .82; }
}

/* Braises qui s'élèvent */
.embers { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-scene .container { position: relative; z-index: 1; }
.embers span {
    position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%;
    background: radial-gradient(circle, #fff3c4 0%, #f2b544 45%, rgba(208, 100, 58, 0) 70%);
    box-shadow: 0 0 10px 2px rgba(242, 181, 68, .55);
    opacity: 0; animation: rise 9s linear infinite;
}
.embers span:nth-child(1)  { left: 52%; animation-delay: 0s;   animation-duration: 8s; }
.embers span:nth-child(2)  { left: 58%; animation-delay: 1.2s; animation-duration: 10s; width: 4px; height: 4px; }
.embers span:nth-child(3)  { left: 63%; animation-delay: 2.5s; animation-duration: 9s; }
.embers span:nth-child(4)  { left: 67%; animation-delay: .6s;  animation-duration: 11s; width: 8px; height: 8px; }
.embers span:nth-child(5)  { left: 71%; animation-delay: 3.4s; animation-duration: 8.5s; width: 4px; height: 4px; }
.embers span:nth-child(6)  { left: 74%; animation-delay: 1.8s; animation-duration: 10.5s; }
.embers span:nth-child(7)  { left: 78%; animation-delay: 4.2s; animation-duration: 9.5s; width: 5px; height: 5px; }
.embers span:nth-child(8)  { left: 82%; animation-delay: 2.9s; animation-duration: 12s; }
.embers span:nth-child(9)  { left: 86%; animation-delay: .3s;  animation-duration: 9s; width: 4px; height: 4px; }
.embers span:nth-child(10) { left: 90%; animation-delay: 5s;   animation-duration: 10s; width: 7px; height: 7px; }
.embers span:nth-child(11) { left: 45%; animation-delay: 6s;   animation-duration: 11s; width: 3px; height: 3px; }
.embers span:nth-child(12) { left: 69%; animation-delay: 6.8s; animation-duration: 8s; width: 3px; height: 3px; }
.embers span:nth-child(13) { left: 94%; animation-delay: 3.8s; animation-duration: 13s; }
.embers span:nth-child(14) { left: 60%; animation-delay: 7.5s; animation-duration: 10s; width: 5px; height: 5px; }
@keyframes rise {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translate(-24px, -45vh) scale(.85); }
    80%  { opacity: .7; }
    100% { transform: translate(18px, -90vh) scale(.4); opacity: 0; }
}

/* Chiffres clés sur un panneau translucide, lisibles par-dessus l'illustration */
.hero-scene .hero-stats {
    display: inline-flex; gap: 32px; padding: 18px 26px; margin-top: 2.6em;
    border: 1px solid rgba(236, 210, 138, .22); border-radius: 18px;
    background: rgba(20, 14, 8, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Reflet qui balaie le bouton principal */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

/* Bande défilante */
.marquee {
    overflow: hidden; background: var(--gold-grad); color: var(--ink);
    padding: 16px 0; border-block: 1px solid rgba(143, 107, 26, .4);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
    display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
    font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; font-style: italic;
}
.marquee span::after { content: "✦"; font-style: normal; font-size: .8em; color: rgba(14, 13, 11, .55); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections claires et chaleureuses */
.section-glow { position: relative; overflow: hidden; background: var(--cream); }
.section-glow::before, .section-glow::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.section-glow::before { width: 460px; height: 460px; top: -140px; right: -120px; background: rgba(242, 181, 68, .28); animation: drift 16s ease-in-out infinite alternate; }
.section-glow::after { width: 380px; height: 380px; bottom: -160px; left: -120px; background: rgba(208, 100, 58, .14); animation: drift 19s ease-in-out infinite alternate-reverse; }
.section-glow > .container { position: relative; z-index: 1; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.12); } }

.section-warm { background: linear-gradient(180deg, var(--honey) 0%, var(--cream) 100%); }

/* Mot surligné dans un titre */
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after {
    content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .32em; z-index: -1;
    background: linear-gradient(90deg, rgba(242, 181, 68, .55), rgba(208, 100, 58, .35)); border-radius: 4px;
}

/* Carte « 12 » lumineuse */
/* Le texte reste sur l'or en haut, la scène de baptême apparaît en bas */
.identity-card-gold {
    /* l'illustration (ratio 16:9) occupe le bas de la carte, en pleine largeur */
    padding-bottom: calc(56.25% + 8px); color: var(--ink); box-shadow: var(--shadow-gold);
    background:
        url("../../img/bapteme.svg?v=3") center bottom / 100% auto no-repeat,
        linear-gradient(180deg, #f3d682 0%, #e8c468 55%, #e2b452 100%);
}
.identity-card-gold::before { background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 70%); }
.identity-card-gold h3 { color: var(--ink); }
.identity-card-gold .big-number { -webkit-text-stroke: 1.5px var(--ink); opacity: .85; }
.identity-card-gold p { color: rgba(14, 13, 11, .8); }

/* Piliers clairs aux tons variés */
.pillar-light { background: #fff; border-color: rgba(201, 161, 59, .25); box-shadow: 0 10px 30px -18px rgba(143, 107, 26, .45); }
.pillar-icon { transition: transform .35s var(--ease); }
.pillar-light .pillar-icon svg { color: #fff; }
.pillar-light:hover .pillar-icon { transform: rotate(-6deg) scale(1.06); }
.tone-sun .pillar-icon { background: linear-gradient(135deg, #f6c95c, #d9962a); box-shadow: 0 10px 22px -8px #d9962a; }
.tone-ember .pillar-icon { background: linear-gradient(135deg, #e98a5a, #c4532d); box-shadow: 0 10px 22px -8px #c4532d; }
.tone-teal .pillar-icon { background: linear-gradient(135deg, #4aa79b, #25665e); box-shadow: 0 10px 22px -8px #25665e; }
.tone-sun::after { background: linear-gradient(90deg, #f6c95c, #d9962a); }
.tone-ember::after { background: linear-gradient(90deg, #e98a5a, #c4532d); }
.tone-teal::after { background: linear-gradient(90deg, #4aa79b, #25665e); }

/* Parcours en étapes */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.journey::before {
    content: ""; position: absolute; top: 38px; left: 10%; right: 10%; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--sun), var(--ember), var(--teal)); opacity: .55;
}
.journey li { position: relative; text-align: center; padding: 0 6px; }
.journey-dot {
    position: relative; width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--gold-dark);
    border: 3px solid var(--honey); box-shadow: 0 12px 28px -14px rgba(143, 107, 26, .7);
    transition: transform .35s var(--ease), background .35s, color .35s;
}
.journey-dot svg { width: 30px; height: 30px; }
.journey-dot small {
    position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: var(--ink); color: var(--gold-light); font-weight: 700; font-size: .75rem;
}
.journey li:hover .journey-dot { transform: translateY(-6px); background: var(--gold-grad); color: var(--ink); }
.journey li:last-child .journey-dot { background: var(--gold-grad); color: var(--ink); border-color: #f6e3a5; }
.journey h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; margin-bottom: .2em; }
.journey p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Section « Nos formations » : salle de formation en fond, cartes translucides */
.section-training { position: relative; padding-top: 0; background: var(--cream); }
.training-banner {
    height: clamp(260px, 36vw, 540px);
    background: url("../../img/salle-formation.svg?v=1") center 32% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.section-training .section-head {
    position: relative; z-index: 1; margin-top: clamp(-70px, -4vw, -40px);
    padding: 26px 30px; border-radius: var(--radius-lg);
    background: rgba(255, 252, 244, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 14px 40px -24px rgba(143, 107, 26, .6);
}
.section-training .formation-card {
    background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-color: rgba(201, 161, 59, .28);
}
.section-training .formation-card:hover { background: rgba(255, 255, 255, .96); }

/* Cartes de formation : liseré coloré */
.formation-card { position: relative; overflow: hidden; }
.formation-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--sun), var(--ember));
}

/* Appel à l'action doré */
.cta-gold { background: var(--gold-grad); color: var(--ink); box-shadow: var(--shadow-gold); }
.cta-gold::before { background: radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .45), transparent 60%); }
.cta-gold h2 { color: var(--ink); }
.cta-gold p { color: rgba(14, 13, 11, .78); }
.cta-gold .kicker { color: var(--ink); }
.cta-gold .kicker::before { background: var(--ink); }

@media (max-width: 920px) {
    .hero-scene::before {
        background: linear-gradient(180deg, rgba(20, 14, 8, .9) 0%, rgba(24, 16, 8, .74) 55%, rgba(30, 20, 8, .35) 100%);
    }
    .hero-scene { background-position: 80% bottom; }
    .hero-scene .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; padding: 14px 16px; width: 100%; }
    .hero-scene .hero-stats strong { font-size: 1.7rem; }
    .hero-scene .hero-stats span { font-size: .72rem; line-height: 1.3; display: block; }
    .embers span:nth-child(odd) { left: 20%; }
    .embers span:nth-child(3n) { left: 50%; }
    .embers span:nth-child(4n) { left: 80%; }
    .journey { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin: 0 auto; }
    .journey::before { top: 20px; bottom: 20px; left: 38px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--sun), var(--ember), var(--teal)); }
    .journey li { display: grid; grid-template-columns: 78px 1fr; column-gap: 18px; text-align: left; padding: 0 0 26px; }
    .journey-dot { grid-row: span 2; margin: 0; }
    .journey h3 { align-self: end; }
}
