/* ===== Polices autohébergées ===== */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ===== Jetons de design (identité MDP) ===== */
:root {
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Marque */
  --navy-950: #050F20;
  --navy-900: #081A34;
  --navy-800: #0B2447;
  --navy-700: #0B2D5B;
  --navy-600: #0F3768;
  --navy-500: #1B4C8C;
  --gold: #D4AF37;
  --gold-light: #E8C85A;
  --gold-deep: #8A6A0C;
  --cream: #F1ECDD;
  --success: #1F9D6B;

  /* Échelle d'espacement et formes */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 72px;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-fast: .18s; --t-med: .32s;
}

/* ===== Thème clair ===== */
:root, [data-theme='light'] {
  color-scheme: light;
  --bg: #F5F5F7;
  --bg-alt: #ECEEF3;
  --surface: #FFFFFF;
  --surface-2: #F3F4F8;
  --text: #0E1A33;
  --text-2: #3A4764;
  --muted: #62708A;
  --line: rgba(11, 45, 91, .12);
  --line-strong: rgba(11, 45, 91, .28);
  --accent-text: #8A6A0C;
  --btn-primary-bg: var(--navy-700);
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: var(--navy-500);
  --shadow-sm: 0 1px 2px rgba(11, 45, 91, .06), 0 4px 14px rgba(11, 45, 91, .05);
  --shadow-md: 0 2px 4px rgba(11, 45, 91, .06), 0 12px 32px rgba(11, 45, 91, .10);
  --shadow-lg: 0 4px 8px rgba(11, 45, 91, .06), 0 24px 60px rgba(11, 45, 91, .16);
  --glass: rgba(245, 245, 247, .74);
}

/* ===== Thème sombre ===== */
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #071326;
  --bg-alt: #0A1B34;
  --surface: #0F2240;
  --surface-2: #132A4E;
  --text: #EAF0FA;
  --text-2: #C4D0E4;
  --muted: #93A3BF;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .26);
  --accent-text: #E8C85A;
  --btn-primary-bg: var(--gold);
  --btn-primary-text: #08183A;
  --btn-primary-hover: var(--gold-light);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .22);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .32);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 28px 64px rgba(0, 0, 0, .46);
  --glass: rgba(7, 19, 38, .72);
}

/* Surfaces toujours marine (hero, bandeaux, pied de page) : variables locales */
.on-navy,
.hero, .page-hero, .cta-band, .site-footer, .section--dark, .proc--main, .motto-card, .zone-card, .card--blue {
  --text: #EAF0FA;
  --text-2: #C9D4E8;
  --muted: #9DB0CD;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .32);
  --accent-text: var(--gold-light);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--navy-900); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600; transition: top var(--t-fast); }
.skip:focus { top: 1rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ico { flex: none; }

/* ===== Typographie éditoriale ===== */
.display {
  font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -.012em;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem); color: var(--text); text-wrap: balance;
}
.display em { font-style: italic; font-weight: 500; color: var(--accent-text); }
.display--md { font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.15; }
.display--lg { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.display--xl { font-size: clamp(2.7rem, 6.4vw, 4.9rem); }
.display--hero { font-size: clamp(3.4rem, 10vw, 7.6rem); line-height: .96; letter-spacing: -.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow--light { color: var(--gold-light); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 62ch; margin-top: 1.1rem; }
.lead--light { color: #CBD6EA; }
.body-lg { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-2); margin-top: 1.1rem; max-width: 60ch; }
.note { color: #CBD6EA; max-width: 70ch; margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--gold); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-weight: 600; color: var(--accent-text); border-bottom: 1px solid transparent; transition: gap var(--t-fast), border-color var(--t-fast); }
.link-arrow:hover { gap: .8rem; border-color: currentColor; }
.link-arrow--light { color: var(--gold-light); }

p.muted { margin-top: 1rem; }
.split p:has(> .btn), .center:has(> .btn) { margin-top: 1.8rem; }

/* ===== En-tête (verre dépoli, façon barre de menu macOS) ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med), box-shadow var(--t-med), background-color var(--t-med);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(5, 15, 32, .08); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.brand__name em { font-style: italic; color: var(--accent-text); }
.brand__tag { margin-top: .22rem; font-size: .6rem; font-weight: 600; letter-spacing: .34em; color: var(--muted); }
.crest { flex: none; transition: transform .6s var(--ease); }
.brand:hover .crest { transform: rotate(-8deg) scale(1.05); }

.nav { display: none; align-items: center; gap: .15rem; margin-inline: auto; }
.nav a { position: relative; white-space: nowrap; padding: .5rem .8rem; font-size: .88rem; font-weight: 500; color: var(--text-2); border-radius: var(--r-sm); transition: color var(--t-fast), background-color var(--t-fast); }
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--gold); }
.site-header__tools { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.site-header .nav-member { display: none; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 40px; height: 40px; padding: 0 .55rem; border-radius: var(--r-md); color: var(--text-2); font-size: .8rem; font-weight: 600; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.theme-btn { position: relative; width: 40px; padding: 0; overflow: hidden; }
.theme-btn__sun, .theme-btn__moon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .45s var(--ease), opacity .3s; }
[data-theme='light'] .theme-btn__moon { transform: translateY(120%) rotate(40deg); opacity: 0; }
[data-theme='dark'] .theme-btn__sun { transform: translateY(-120%) rotate(-40deg); opacity: 0; }

/* Menu de langue */
.lang { position: relative; }
.lang__btn { padding: 0 .7rem; }
.lang[open] .lang__btn { background: color-mix(in srgb, var(--text) 8%, transparent); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  animation: pop .22s var(--ease);
}
.lang__list a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--r-sm); font-size: .9rem; }
.lang__list a:hover { background: var(--surface-2); }
.lang__list a[aria-current='true'] { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.lang__short { width: 1.9rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* Tiroir mobile */
.burger { display: inline-flex; }
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(26px); backdrop-filter: saturate(1.6) blur(26px); overflow-y: auto; }
.drawer.is-open { animation: drawer-in .35s var(--ease); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.drawer__inner { padding-block: 1.2rem 3rem; display: grid; gap: 1.6rem; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 1rem .2rem; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; }
.drawer__nav a[aria-current='page'] { color: var(--accent-text); }
.drawer__cta { display: grid; gap: .7rem; }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .burger, .drawer { display: none !important; }
  .site-header .nav-member { display: inline-flex; }
}
@media (min-width: 1080px) and (max-width: 1240px) { .nav a { padding-inline: .6rem; font-size: .84rem; } }

/* Au sommet de page, l'en-tête est transparent et clair sur le bandeau marine */
.site-header:not(.is-scrolled):not(.menu-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header:not(.is-scrolled):not(.menu-open) :is(.brand, .nav, .icon-btn, .nav-member) {
  --text: #EAF0FA; --text-2: #D3DDF0; --muted: #A9B8D2; --accent-text: var(--gold-light); color: #EAF0FA;
}

/* ===== Sections génériques ===== */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: radial-gradient(1200px 600px at 85% -10%, rgba(27, 76, 140, .55), transparent 60%), linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
.split--center { align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; } }
.center-block { display: grid; place-items: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }

/* ===== Pied de page ===== */
.site-footer { background: var(--navy-950); padding-top: clamp(3rem, 7vw, 5rem); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.site-footer .brand__tag { color: var(--muted); }
.site-footer__brand p { color: var(--muted); max-width: 38ch; margin-top: 1rem; font-size: .93rem; }
.site-footer__slogan { font-family: var(--font-display); font-style: italic; font-size: 1.25rem !important; color: var(--gold-light) !important; }
.site-footer__title { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1rem; }
.site-footer__list { display: grid; gap: .6rem; font-size: .93rem; }
.site-footer__list a, .site-footer__zone { color: #C9D4E8; display: inline-flex; align-items: center; gap: .6rem; transition: color var(--t-fast); }
.site-footer__list a:hover { color: var(--gold-light); }
.site-footer__legal { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow-md); transition: transform var(--t-fast), opacity var(--t-med); }
.to-top:hover { transform: translateY(-3px); }

/* Petits écrans : en-tête compact (aucun débordement à 360–390 px) */
@media (max-width: 480px) {
  .site-header__bar { gap: .4rem; }
  .brand { gap: .5rem; }
  .brand .crest { width: 34px; height: 34px; }
  .brand__name { font-size: 1.28rem; }
  .site-header__tools { gap: .1rem; }
  .lang__btn { padding: 0 .4rem; }
  .lang__btn .ico:last-child { display: none; }
}

/* ===== Boutons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .7rem 1.35rem; border-radius: var(--r-md); font-size: .95rem; font-weight: 600; letter-spacing: .005em; border: 1px solid transparent; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-med); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { transition: transform var(--t-fast) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .85rem; }
.btn--lg { min-height: 54px; padding: .85rem 1.7rem; font-size: 1rem; }
.btn--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #08183A; box-shadow: 0 6px 20px rgba(212, 175, 55, .28); }
.btn--gold:hover { box-shadow: 0 10px 28px rgba(212, 175, 55, .4); }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--btn-primary-hover); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.btn--outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--outline-light:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, .07); }
.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.btn--text-light { color: #E3EAF7; padding-inline: .6rem; }
.btn--text-light:hover { color: var(--gold-light); }

/* ===== Cartes ===== */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin-bottom: .6rem; color: var(--text); }
.card p { color: var(--text-2); }
.card--num { padding-top: 4rem; }
.card__num { position: absolute; top: 1rem; left: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--accent-text); opacity: .9; }
.card--top { border-top: 3px solid var(--gold); }
.card--gold { background: linear-gradient(160deg, #E8C85A, #D4AF37); border-color: transparent; }
.card--gold, .card--gold p, .card--gold .card__title, .card--gold .card__num { color: #08183A; }
.card--blue { background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); border-color: rgba(255, 255, 255, .1); }
.card--blue p, .card--blue .card__title { color: #fff; }
.card--blue p { color: #D2DCEE; }

.verse { margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 760px; text-align: center; padding: 2rem 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verse blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.3; color: var(--text); }
.verse figcaption { margin-top: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); }
.verse-line { margin: 2.4rem auto 0; max-width: 760px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.8rem); color: var(--text-2); }

.check-list { display: grid; gap: .6rem; margin-top: 1rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-2); }
.check-list .ico { margin-top: .2rem; color: var(--accent-text); }
.check-list--lg { gap: 1rem; margin-top: 1.5rem; font-size: 1.1rem; }

/* ===== Accordéon FAQ ===== */
.faq { display: grid; gap: .8rem; max-width: 860px; margin-inline: auto; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--t-med), box-shadow var(--t-med); }
.qa[open] { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--shadow-sm); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.02rem; }
.qa summary .ico { color: var(--accent-text); transition: transform var(--t-med) var(--ease); }
.qa[open] summary .ico { transform: rotate(180deg); }
.qa__a { padding: 0 1.4rem 1.3rem; color: var(--text-2); }
.qa[open] .qa__a { animation: fade-down .35s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-more { max-width: 860px; margin: 3rem auto 0; padding: 2rem; border-radius: var(--r-lg); background: var(--surface-2); text-align: center; display: grid; gap: .8rem; justify-items: center; }
.faq-more p { color: var(--text-2); }

/* ===== Tableau ===== */
.table-wrap { margin-top: 2.4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); }
.table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.table th, .table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.table tbody th { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }

/* Boutons à libellé long : retour à la ligne plutôt que débordement */
.btn { max-width: 100%; }
@media (max-width: 520px) {
  .btn--lg { white-space: normal; text-align: center; line-height: 1.25; padding-block: .8rem; }
  .btn-row > .btn { width: 100%; justify-content: center; }
}

/* ===== Hero (accueil) ===== */
.hero { position: relative; overflow: hidden; isolation: isolate; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
  min-height: min(100svh, 900px); display: flex; align-items: center;
  background: radial-gradient(900px 600px at 82% 30%, rgba(27, 76, 140, .55), transparent 62%), linear-gradient(165deg, #0B2447 0%, #081A34 55%, #050F20 100%); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__rings { position: absolute; right: clamp(-340px, -14vw, -80px); top: 50%; width: min(86vw, 860px); aspect-ratio: 1; transform: translateY(-50%); }
.hero__rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(232, 200, 90, .22); }
.hero__rings i:nth-child(2) { inset: 9%; border-color: rgba(232, 200, 90, .16); }
.hero__rings i:nth-child(3) { inset: 19%; border-color: rgba(232, 200, 90, .12); border-style: dashed; }
.hero__rings i:nth-child(4) { inset: 31%; border-color: rgba(255, 255, 255, .08); }
.hero__rings i:nth-child(1)::after { content: ''; position: absolute; top: 85.4%; left: 14.6%; margin: -4px 0 0 -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px 4px rgba(212, 175, 55, .55); }
.hero__glow { position: absolute; left: -10%; bottom: -30%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(212, 175, 55, .10), transparent 65%); }
.hero__church { position: absolute; right: clamp(0px, 4vw, 70px); bottom: 6%; width: min(52vw, 560px); color: var(--gold-light); opacity: .5; }
.hero__inner { position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 9vw, 7rem); }
.hero__inner > * { max-width: 760px; }
.hero__slogan { margin-top: 1.3rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.8vw, 2.1rem); color: var(--gold-light); }
.hero .lead { max-width: 56ch; }
.hero__motto { margin-top: 2.6rem; font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .hero__church { opacity: .22; width: 90vw; right: -10vw; } }

/* ===== Bandeau des pages intérieures ===== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3rem, 7vw, 5rem);
  background: radial-gradient(800px 420px at 88% 20%, rgba(27, 76, 140, .5), transparent 62%), linear-gradient(170deg, #0B2447, #081A34 70%, #060F20); }
.page-hero__rings { position: absolute; right: -12%; top: -40%; width: min(70vw, 640px); aspect-ratio: 1; z-index: -1; pointer-events: none; }
.page-hero__rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(232, 200, 90, .2); }
.page-hero__rings i:nth-child(2) { inset: 14%; border-color: rgba(232, 200, 90, .14); border-style: dashed; }
.page-hero__rings i:nth-child(3) { inset: 30%; border-color: rgba(255, 255, 255, .08); }
.page-hero__inner { position: relative; }
.crumbs { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.6rem; font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.crumbs a:hover { color: var(--gold-light); }
.crumbs [aria-current] { color: var(--gold-light); }
.page-hero .display { max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero--404 { min-height: 70svh; display: grid; align-items: center; }

/* ===== Chiffres clés ===== */
.stats { position: relative; z-index: 2; margin-top: -2.6rem; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 860px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(1.3rem, 3vw, 2rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 860px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
.stat__value { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: .6rem; font-size: .86rem; color: var(--muted); max-width: 22ch; }

/* ===== Intro / carte devise ===== */
.motto-card { position: relative; overflow: hidden; padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); border-left: 3px solid var(--gold); box-shadow: var(--shadow-lg); }
.motto-card blockquote { color: #fff; }
.motto-card__num { position: absolute; right: 1.2rem; bottom: -1.4rem; font-family: var(--font-display); font-style: italic; font-size: 7rem; line-height: 1; color: rgba(232, 200, 90, .14); }
.zone-card { padding: clamp(1.8rem, 4vw, 2.4rem); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); box-shadow: var(--shadow-lg); }
.zone-card .display { color: #fff; margin-bottom: .8rem; }
.zone-card p:last-child { color: #CBD6EA; }
.future { margin-top: 1.25rem; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--r-lg); background: var(--surface-2); border-left: 3px solid var(--gold); }
.future .display { margin-top: .4rem; font-style: italic; color: var(--text-2); }

/* ===== Structure 5 / 25 / 125 ===== */
.bars { display: grid; gap: .9rem; }
.bar { position: relative; width: 100%; max-width: max(var(--w), 360px); min-height: 84px; border-radius: var(--r-md); overflow: hidden; background: #F1ECDD; color: var(--navy-900); }
.bar--blue { background: var(--navy-500); color: #fff; }
.bar--gold { background: linear-gradient(90deg, #E8C85A, #D4AF37); color: #08183A; }
.bar__content { position: relative; display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.4rem; }
.bar__value { font-family: var(--font-display); font-style: italic; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; min-width: 2.2ch; }
.bar__text { display: grid; line-height: 1.3; }
.bar__text strong { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.bar__text small { font-size: .9rem; opacity: .85; }

/* ===== Instances ===== */
.instances { display: grid; gap: 1rem; }
.instance { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.instance__n { font-family: var(--font-display); font-style: italic; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--accent-text); min-width: 2.2ch; }
.instance p { color: var(--text-2); }

/* ===== Contribuer ===== */
.amount { text-align: left; max-width: 480px; padding: clamp(1.6rem, 4vw, 2.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.amount__big { display: flex; align-items: baseline; gap: .6rem; line-height: .9; }
.amount__num { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(5.5rem, 14vw, 8.5rem); color: var(--accent-text); }
.amount__unit { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 5vw, 3rem); color: var(--text); }
.amount__text { margin-top: .6rem; color: var(--text-2); }
.amount__group { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .2rem; }
.amount__group strong { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.procs { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .procs { grid-template-columns: 1.35fr 1fr; } }
.proc { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--r-lg); }
.proc--main { background: linear-gradient(160deg, var(--navy-600), var(--navy-900)); border-left: 3px solid var(--gold); box-shadow: var(--shadow-md); }
.proc--main .display { color: #fff; }
.proc--side { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; align-content: start; gap: 1rem; }
.proc--side p { color: var(--text-2); }
.proc__quote { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--accent-text) !important; }
.steps-list { display: grid; gap: 1rem; margin-top: 1.6rem; counter-reset: s; }
.steps-list li { display: flex; gap: 1rem; align-items: flex-start; color: #D2DCEE; }
.steps-num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-weight: 600; font-size: .85rem; }
.proc__foot { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--gold-light); font-weight: 600; }

/* ===== Chantiers ===== */
.tiers { display: grid; gap: 1.25rem; }
@media (min-width: 940px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tier--2 { border-top-color: var(--navy-500); }
.tier--3 { border-top-color: var(--accent-text); }
.tier__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.tier__n { font-family: var(--font-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--accent-text); }
.tier__badge { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .4rem .7rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--accent-text); text-align: right; }
.tier__name { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; }
.tier__summary { margin-top: .7rem; color: var(--text-2); }
.tier__cond { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md); background: var(--surface-2); display: grid; gap: .15rem; }
.tier__cond small { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tier__cond strong { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 2.6rem; line-height: 1.05; color: var(--text); }
.tier__cond span { font-size: .88rem; color: var(--text-2); }
.tier__points { margin-top: 1.4rem; display: grid; gap: 1rem; }
.tier__points dt { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .2rem; }
.tier__points dd { color: var(--text-2); font-size: .95rem; }
.ongoing { display: grid; gap: 2.5rem; align-items: center; padding: clamp(1.8rem, 5vw, 3.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
@media (min-width: 860px) { .ongoing { grid-template-columns: 1.2fr 1fr; } }
.ongoing .btn { margin-top: 1.6rem; }
.ongoing__art { display: grid; gap: 1rem; }
.ongoing__bar { height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ongoing__bar i { display: block; height: 100%; width: var(--p); border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; }

/* ===== Transparence ===== */
.chain-wrap { margin-top: clamp(2.5rem, 6vw, 4rem); }
.chain-wrap .eyebrow { margin-bottom: 1.6rem; }
.chain { display: grid; gap: 1.1rem; position: relative; }
.chain li { display: flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.chain__dot { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--gold); color: var(--accent-text); font-family: var(--font-body); font-size: .85rem; font-weight: 600; position: relative; z-index: 1; }
@media (min-width: 900px) {
  .chain { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .chain::before { content: ''; position: absolute; left: 20px; right: calc(20% - 20px); top: 20px; height: 1px; background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 30%, transparent)); }
  .chain li { flex-direction: column; align-items: flex-start; gap: .9rem; font-size: 1.25rem; }
}
.reports { display: flex; gap: 1.6rem; align-items: center; max-width: 820px; margin-inline: auto; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.reports__icon { flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--accent-text); }
@media (max-width: 640px) { .reports { flex-direction: column; text-align: center; } }

/* ===== Rejoindre ===== */
.why { margin-bottom: clamp(3rem, 7vw, 5rem); max-width: 760px; }
.steps { display: grid; gap: 1.1rem; counter-reset: st; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 3.4rem 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy-500); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step--gold { background: linear-gradient(160deg, #E8C85A, #D4AF37); border-top-color: transparent; }
.step--gold .card__title, .step--gold p, .step--gold .step__n { color: #08183A; }
.step__n { position: absolute; top: .9rem; left: 1.4rem; font-family: var(--font-display); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--accent-text); }
.step p { color: var(--text-2); }
.steps + .btn-row { justify-content: center; margin-top: 2.6rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: grid; align-content: start; gap: .5rem; justify-items: start; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card p { color: var(--text-2); }
.contact-card .btn { margin-top: .8rem; }
.contact-card__ico { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: .6rem; border-radius: 16px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--accent-text); }
.phone-list { display: grid; gap: .6rem; margin-top: .6rem; width: 100%; }
.phone-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--surface-2); }
.phone-list a:first-child { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.phone-list a:first-child:hover { color: var(--accent-text); }
.chip { font-size: .72rem; font-weight: 600; letter-spacing: .06em; padding: .3rem .7rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.chip:hover { background: var(--success); color: #fff; }

/* ===== Bandeau d'appel à l'action ===== */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4rem, 9vw, 7rem); text-align: center;
  background: radial-gradient(900px 400px at 50% 0%, rgba(27, 76, 140, .55), transparent 65%), linear-gradient(170deg, #0B2447, #050F20); }
.cta-band__art { position: absolute; left: 50%; bottom: -6%; width: min(90vw, 700px); transform: translateX(-50%); color: var(--gold-light); opacity: .13; z-index: -1; }
.cta-band__inner .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .display { max-width: 16ch; margin-inline: auto; }

.tiers + p { margin-top: 2.6rem; text-align: center; }

/* ===== Animations (désactivées si l'utilisateur le demande) ===== */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .bar { opacity: 1; transform: none; }
.js .bar[data-reveal] { clip-path: inset(0 100% 0 0 round var(--r-md)); transition: clip-path 1.1s var(--ease), opacity .6s; transition-delay: var(--d, 0ms); opacity: 1; }
.js .bar[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-md)); }
.js .ongoing__bar i { transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.js .ongoing.is-in .ongoing__bar i { transform: scaleX(1); }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes spin-plain { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__rings { animation: spin 140s linear infinite; }
.hero__rings i:nth-child(3) { animation: spin-plain 90s linear infinite reverse; }
.page-hero__rings { animation: spin-plain 160s linear infinite; }
.hero__church { animation: drift 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .bar[data-reveal] { opacity: 1; transform: none; clip-path: none; }
}

/* Transition douce lors du changement de thème */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, fill .35s ease, stroke .35s ease !important;
}
