/* =========================================================================
   CCI France-Estonie — feuille de style de la refonte
   Charte conservée : marine #004773, framboise #EC1E4F (logo), anthracite #3F444B,
   titres Trebuchet MS, chiffres et étiquettes en Scout Black, texte courant Noto Sans.
   Concept de mise en page : grille 12 colonnes à larges marges ; le « C » du logo
   sert de cadre photo et de motif ; photos en bichromie marine, couleur au survol.
   ========================================================================= */

/* Noto Sans auto-hébergée (OFL, @fontsource-variable/noto-sans 5.3.0) : latin + latin étendu (š, ž de l'estonien) */
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}


:root {
  color-scheme: light;
  /* Couleurs de la charte */
  --marine: #004773;
  --marine-deep: #002c48;
  --marine-ink: #00395c;
  --framboise: #ec1e4f;
  --framboise-text: #cd2653;
  --framboise-fond: #cd2653; /* fond des textes blancs : 5,25:1 (WCAG 1.4.3) ; --framboise reste pour le décor */
  --anthracite: #3f444b;
  --ardoise: #5a636e; /* 5,46:1 sur brume, ≈ 6,3:1 sur blanc */
  --brume: #eef3f7;
  --papier: #f9fafa;
  --blanc: #ffffff;
  --trait: #dfe5ea;
  --trait-fort: #c9d3db;
  --trait-champ: #7d8893; /* bordure des contrôles de formulaire : 3,6:1 sur blanc, 3,45:1 sur papier (WCAG 1.4.11) */
  --or: #c9a227;
  --argent: #9aa3ad;
  --platine: #5d7387;

  /* Typographies de la charte */
  --f-titre: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", system-ui, sans-serif;
  --f-chiffre: "Scout", "Trebuchet MS", "Arial Narrow", sans-serif;
  --f-texte: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Échelle typographique (1,25) */
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --t-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  --t-3xl: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem);

  --gouttiere: clamp(1rem, .5rem + 2.6vw, 2.5rem);
  --largeur: 1240px;
  --rayon: 14px;
  --rayon-s: 8px;
  --ombre: 0 1px 2px rgba(0, 44, 72, .06), 0 8px 28px -12px rgba(0, 44, 72, .22);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --barre-mobile: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; scroll-padding-bottom: calc(var(--barre-mobile) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--anthracite);
  font: 400 var(--t-m)/1.65 var(--f-texte);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--barre-mobile);
}
img { max-width: 100%; display: block; height: auto; }
sup { line-height: 0; font-size: .62em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--framboise); outline-offset: 3px; border-radius: 4px; }
/* Anneau de focus blanc sur fonds sombres : framboise/marine = 2,26:1, insuffisant (WCAG 1.4.11) ; blanc/marine ≈ 9,8:1 */
.on-dark :focus-visible { outline-color: #fff; }
::selection { background: var(--marine); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--marine); color: #fff; padding: .7rem 1rem; border-radius: var(--rayon-s); }
.skip:focus { top: 1rem; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--marine); margin: 0; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: var(--t-3xl); letter-spacing: -.022em; }
h2 { font-size: var(--t-2xl); letter-spacing: -.018em; }
h3 { font-size: var(--t-l); line-height: 1.25; }
h4 { font-size: var(--t-m); }
p { margin: 0; max-width: 64ch; }
.lead { font-size: var(--t-l); line-height: 1.55; color: var(--anthracite); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .14em; text-transform: uppercase; color: var(--framboise-text);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; background: var(--framboise); border-radius: 2px; }
.on-dark .eyebrow { color: #ff9db4; }
.chiffre { font-family: var(--f-chiffre); font-weight: 900; letter-spacing: .01em; line-height: .95; font-variant-numeric: tabular-nums; }
.muted { color: var(--ardoise); }
.small { font-size: var(--t-s); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--marine); --fg: #fff; --bd: var(--marine);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: 999px;
  font: 700 var(--t-s)/1.1 var(--f-titre); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0, 44, 72, .55); }
.btn:active { transform: translateY(0); }
.btn--rose { --bg: var(--framboise-fond); --bd: var(--framboise-fond); }
.btn--rose:hover { --bg: #ad1a43; --bd: #ad1a43; }
.btn--ghost { --bg: transparent; --fg: var(--marine); --bd: var(--trait-fort); }
.btn--ghost:hover { --bd: var(--marine); }
.on-dark .btn--ghost { --fg: #fff; --bd: rgba(255, 255, 255, .45); }
.on-dark .btn--ghost:hover { --bd: #fff; --bg: rgba(255, 255, 255, .06); }
.btn--blanc { --bg: #fff; --fg: var(--marine); --bd: #fff; }
.btn--s { min-height: 40px; padding: .5rem 1rem; font-size: var(--t-xs); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.lien-fleche { display: inline-flex; align-items: center; gap: .45rem; font: 700 var(--t-s)/1.2 var(--f-titre); color: var(--marine); text-decoration: none; }
.lien-fleche svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.lien-fleche:hover svg { transform: translateX(4px); }
.lien-fleche:hover { color: var(--framboise-text); }
.on-dark .lien-fleche { color: #fff; }

/* ---------- Barre utilitaire + en-tête ---------- */
.utilbar { background: var(--marine-deep); color: rgba(255, 255, 255, .82); font-size: var(--t-xs); }
.utilbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.utilbar a { color: #fff; text-decoration: none; }
.utilbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Page courante dans la barre utilitaire (Actualités, Contact) : repère par soulignement épais, pas par la seule couleur (WCAG 1.4.1) */
.utilbar a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.utilbar__reseau { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.utilbar__reseau span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utilbar__droite { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.langues { display: flex; gap: .15rem; }
.langues a { padding: .2rem .45rem; border-radius: 4px; font-weight: 600; letter-spacing: .04em; }
.langues a[aria-current="true"] { background: rgba(255, 255, 255, .14); }
@media (max-width: 720px) { .utilbar__reseau { display: none; } .utilbar .wrap { justify-content: flex-end; } }

/* Bloc d'en-tête fixe : barre des langues + menu restent visibles pendant le défilement */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; }
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur .header deviendrait le bloc conteneur du menu mobile fixe */
.header { position: relative; isolation: isolate; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header.is-scrolled { border-bottom-color: var(--trait); box-shadow: 0 6px 24px -18px rgba(0, 44, 72, .5); }
.header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 84px; transition: min-height .3s var(--ease); }
.header.is-scrolled .wrap { min-height: 68px; }
.logo { display: block; flex: none; }
.logo img { width: 218px; height: auto; transition: width .3s var(--ease); }
.header.is-scrolled .logo img { width: 190px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .55rem .8rem; border-radius: 999px; text-decoration: none; font: 700 var(--t-s)/1.2 var(--f-titre); color: var(--marine); transition: background .2s; }
.nav a:hover { background: var(--brume); }
.nav a[aria-current="page"] { color: var(--framboise-text); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 3px; width: 16px; margin: 4px auto -7px; background: var(--framboise); border-radius: 2px; }
.nav__extra { display: none; }
.header__cta { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--trait); border-radius: 50%; background: #fff; cursor: pointer; align-items: center; justify-content: center; flex: none; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--marine); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  /* Menu replié masqué par clip-path : rien ne dépasse de l'écran (pas d'élargissement de la page sur mobile) */
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: #fff; padding: calc(8.5rem + env(safe-area-inset-top, 0px)) 1.5rem 2rem; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s; box-shadow: -20px 0 60px -30px rgba(0, 44, 72, .5); overflow-y: auto; z-index: 41; }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav ul { flex-direction: column; gap: .2rem; }
  .nav a { font-size: var(--t-l); padding: .9rem 1rem; border-radius: var(--rayon-s); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__extra { display: grid; gap: .6rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--trait); }
  /* Les boutons du menu gardent leur style de bouton (la règle .nav a ne doit pas les écraser) */
  .nav .nav__extra .btn { display: flex; width: 100%; padding: .75rem 1.35rem; border-radius: 999px; font: 700 var(--t-s)/1.1 var(--f-titre); color: var(--fg); justify-content: center; }
  .nav__langues { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: 1rem; }
  .nav .nav__langues a { padding: .6rem .4rem; text-align: center; font-size: var(--t-s); border: 1.5px solid var(--trait-fort); border-radius: var(--rayon-s); }
  .nav .nav__langues a[aria-current="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
  body.menu-ouvert { overflow: hidden; }
  body.menu-ouvert .barre-mobile { display: none; }
  .burger { display: inline-flex; position: relative; z-index: 42; }
  .header__cta .btn--ghost { display: none; }
  .header .wrap { gap: 1rem; }
  .header__cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .logo img, .header.is-scrolled .logo img { width: 168px; }
  .header__cta .btn--rose { display: none; }
}

/* Barre d'action mobile */
.barre-mobile { display: none; }
@media (max-width: 560px) {
  :root { --barre-mobile: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .barre-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--trait); }
  .barre-mobile .btn { min-height: 48px; padding-inline: .6rem; font-size: var(--t-xs); white-space: normal; text-align: center; line-height: 1.2; }
}
/* Très petits écrans ou fenêtres basses (panneau d'aperçu, téléphone en paysage) */
@media (max-width: 360px) {
  .btn { white-space: normal; text-align: center; }
  .barre-mobile .btn { padding-inline: .4rem; font-size: .75rem; }
  .logo img, .header.is-scrolled .logo img { width: 148px; }
}
@media (max-height: 520px) {
  :root { --barre-mobile: 0px; }
  .barre-mobile { display: none; }
  .utilbar .wrap { min-height: 32px; }
  .header .wrap, .header.is-scrolled .wrap { min-height: 60px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); }
.section--serre { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--papier { background: var(--papier); }
.section--brume { background: var(--brume); }
.section--marine { background: var(--marine); color: rgba(255, 255, 255, .86); }
.section--nuit { background: var(--marine-deep); color: rgba(255, 255, 255, .86); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .muted { color: rgba(255, 255, 255, .66); }
.on-dark .lead { color: rgba(255, 255, 255, .86); }
.tete { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.6rem); max-width: 760px; }
.tete--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 1.2rem 4rem; }
.tete--split > * { min-width: 0; }
.tete--split > div { display: grid; gap: 1.1rem; }
@media (max-width: 860px) { .tete--split { grid-template-columns: 1fr; } }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--marine); color: rgba(255, 255, 255, .88); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .09), transparent 60%),
  linear-gradient(180deg, var(--marine) 0%, var(--marine-ink) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem) clamp(4rem, 2rem + 6vw, 7rem); }
.hero__txt { min-width: 0; }
.hero h1 { color: #fff; margin-top: 1.4rem; }
.hero h1 em { font-style: normal; color: #fff; background: linear-gradient(transparent 68%, rgba(236, 30, 79, .9) 68%, rgba(236, 30, 79, .9) 90%, transparent 90%); padding-inline: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { margin-top: 1.4rem; color: rgba(255, 255, 255, .84); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero__preuve { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--t-s); }
.hero__preuve div { display: flex; align-items: baseline; gap: .45rem; }
.hero__preuve strong { font: 900 1.6rem/1 var(--f-chiffre); color: #fff; }
.hero__visuel { position: relative; min-width: 0; }
.hero__visuel svg { width: 100%; height: auto; overflow: visible; }
.hero__legende { position: absolute; left: 0; bottom: 4%; max-width: 64%; background: #fff; color: var(--anthracite); padding: .85rem 1.05rem; border-radius: var(--rayon-s); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); font-size: var(--t-xs); line-height: 1.45; }
.hero__legende b { display: block; color: var(--marine); font: 700 var(--t-s)/1.3 var(--f-titre); margin-bottom: .15rem; }
.hero__arcs { position: absolute; z-index: -1; right: -22vw; top: -30vw; width: 78vw; max-width: 1200px; opacity: .08; pointer-events: none; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__visuel { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* Héros de page intérieure */
.page-hero { position: relative; overflow: hidden; background: var(--marine); color: rgba(255, 255, 255, .86); isolation: isolate; }
.page-hero .wrap { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem 4rem; align-items: end; }
.page-hero .wrap > * { min-width: 0; }
.page-hero h1 { color: #fff; margin-top: 1.2rem; font-size: var(--t-2xl); }
.page-hero .lead { margin-top: 1.1rem; color: rgba(255, 255, 255, .86); }
.page-hero__photo { position: absolute; inset: 0; z-index: -2; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .6; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 57, 92, .97) 0%, rgba(0, 71, 115, .9) 48%, rgba(0, 71, 115, .6) 100%); }
.fil { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--t-xs); color: rgba(255, 255, 255, .7); list-style: none; margin: 0 0 1.6rem; padding: 0; }
.fil li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.fil a { color: #fff; text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.page-hero__aside { display: grid; gap: .7rem; justify-items: start; }
.page-hero__aside .btn { width: 100%; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero__aside .btn { width: auto; } }

/* ---------- Bandeau logos ---------- */
.logos { padding-block: 2.2rem; border-bottom: 1px solid var(--trait); background: #fff; }
.logos .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.logos__titre { font: 900 var(--t-xs)/1.6 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); width: 170px; }
.logos__titre a { display: inline-block; margin-top: .3rem; }
.logos__titre a { color: var(--marine); }
.defile { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* Écart final égal au gap : la piste vaut deux moitiés identiques, -50 % retombe exactement sur la copie (boucle sans saut) */
.defile__piste { --defile-gap: 3.2rem; display: flex; align-items: center; gap: var(--defile-gap); padding-right: var(--defile-gap); width: max-content; animation: defile 52s linear infinite; }
.defile:hover .defile__piste { animation-play-state: paused; }
/* Pause explicite (bouton, visible seulement avec JS) et pause au focus (WCAG 2.2.2) */
.defile.is-pause .defile__piste, .defile:focus-within .defile__piste { animation-play-state: paused; }
.defile__pause { display: none; }
.js .defile__pause { display: inline-flex; align-items: center; min-height: 32px; margin-top: .6rem; padding: .3rem .8rem; border: 1.5px solid var(--trait-champ); border-radius: 999px; background: #fff; color: var(--marine); font: 700 var(--t-xs)/1.2 var(--f-titre); letter-spacing: normal; text-transform: none; cursor: pointer; }
.defile__pause:hover { border-color: var(--marine); }
.defile__pause[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.defile img { height: 54px; width: 150px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.defile img:hover { filter: none; opacity: 1; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .defile__pause { display: none !important; } .defile__piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-right: 0; } .defile__piste [aria-hidden="true"] { display: none; } .defile { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 720px) { .logos .wrap { grid-template-columns: 1fr; gap: 1rem; } .logos__titre { width: auto; } .defile img { height: 46px; width: 128px; } }

/* ---------- Cartes « pour qui » ---------- */
.profils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.profil { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.8rem 1.8rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); min-width: 0; }
.profil:hover { border-color: var(--marine); transform: translateY(-4px); box-shadow: var(--ombre); }
.profil__trajet { display: flex; align-items: center; gap: .6rem; font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; color: var(--marine); }
.drapeau { display: inline-block; width: 26px; height: 18px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.drapeau--fr { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.drapeau--ee { background: linear-gradient(180deg, #0072ce 33.3%, #000 33.3% 66.6%, #fff 66.6%); }
.drapeau--fx { background: linear-gradient(135deg, var(--marine) 50%, var(--framboise) 50%); }
.profil__trajet svg { width: 16px; height: 16px; color: var(--framboise); flex: none; }
.profil p { font-size: var(--t-s); color: var(--ardoise); }
.profil ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: var(--t-s); }
.profil li { display: flex; gap: .6rem; align-items: baseline; }
.profil li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--framboise); transform: translateY(-2px); }
.profil .lien-fleche { margin-top: auto; padding-top: .6rem; }
.profil .lien-fleche::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (max-width: 960px) { .profils { grid-template-columns: 1fr; } }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .16); }
.chiffres > div { padding: 2rem 1.5rem 0 0; display: grid; gap: .7rem; align-content: start; min-width: 0; }
.chiffres > div + div { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .16); }
.chiffres .chiffre { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); color: #fff; white-space: nowrap; }
.chiffres .chiffre sup { font-size: .45em; color: var(--framboise); vertical-align: .9em; margin-left: .05em; }
.chiffres p { font-size: var(--t-s); color: rgba(255, 255, 255, .74); }
.chiffres--2 { grid-template-columns: 1fr 1fr; }
.chiffres--2 > div:nth-child(3) { padding-left: 0; border-left: 0; }
.chiffres--2 > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 1.5rem; }
.source { margin-top: 1.8rem; font-size: var(--t-xs); color: rgba(255, 255, 255, .72); }
@media (max-width: 860px) {
  .chiffres { grid-template-columns: 1fr 1fr; }
  .chiffres > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .chiffres > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 1.5rem; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--trait); }
.service { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; padding: 1.8rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--trait); text-decoration: none; min-width: 0; }
.service:nth-child(odd) { padding-right: 2.4rem; }
.service:nth-child(even) { padding-left: 2.4rem; border-left: 1px solid var(--trait); }
.service__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--brume); color: var(--marine); display: grid; place-items: center; transition: background .3s, color .3s; }
.service__ico svg { width: 24px; height: 24px; }
.service h3 { font-size: var(--t-l); transition: color .3s; }
.service p { margin-top: .4rem; font-size: var(--t-s); color: var(--ardoise); }
.service__fleche { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--trait-fort); display: grid; place-items: center; color: var(--marine); transition: all .3s var(--ease); }
.service__fleche svg { width: 18px; height: 18px; }
.service:hover .service__ico { background: var(--marine); color: #fff; }
.service:hover .service__fleche { background: var(--framboise); border-color: var(--framboise); color: #fff; transform: rotate(-45deg); }
.service:hover h3 { color: var(--framboise-text); }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) { padding: 1.5rem 0; border-left: 0; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 1rem; }
  .service__ico { width: 44px; height: 44px; }
}

/* ---------- Offres d'adhésion ---------- */
.offres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.offre { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.8rem 1.5rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); min-width: 0; }
.offre__niveau { display: flex; align-items: center; gap: .55rem; font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .14em; text-transform: uppercase; color: var(--ardoise); }
.offre__niveau i { width: 12px; height: 12px; border-radius: 50%; background: var(--trait-fort); }
.offre--silver .offre__niveau i { background: linear-gradient(135deg, #e3e7ea, var(--argent)); }
.offre--gold .offre__niveau i { background: linear-gradient(135deg, #f3dd8a, var(--or)); }
.offre--platinum .offre__niveau i { background: linear-gradient(135deg, #b8c6d2, var(--platine)); }
.offre__prix { display: flex; align-items: baseline; gap: .35rem; color: var(--marine); }
.offre__prix .chiffre { font-size: 3.1rem; }
.offre__prix small { font-size: var(--t-xs); color: var(--ardoise); }
.offre__pour { font-size: var(--t-s); color: var(--anthracite); font-weight: 600; min-height: 3.2em; }
.offre ul { list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--trait); display: grid; gap: .55rem; font-size: var(--t-s); }
.offre li { display: grid; grid-template-columns: 18px 1fr; gap: .55rem; align-items: start; }
.offre li svg { width: 18px; height: 18px; color: var(--framboise); margin-top: .2rem; }
.offre .btn { margin-top: auto; }
.offre--vedette { background: var(--marine); border-color: var(--marine); color: rgba(255, 255, 255, .86); box-shadow: 0 30px 60px -36px rgba(0, 44, 72, .9); }
.offre--vedette .offre__prix, .offre--vedette .offre__pour { color: #fff; }
.offre--vedette .offre__niveau, .offre--vedette .offre__prix small { color: rgba(255, 255, 255, .7); }
.offre--vedette ul { border-top-color: rgba(255, 255, 255, .18); }
.offre__badge { position: absolute; top: -12px; right: 1.2rem; background: var(--framboise-fond); color: #fff; font: 900 .7rem/1 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; }
.offres--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1060px) { .offres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .offres { grid-template-columns: 1fr; } }

/* ---------- Calculateur de cotisation ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); background: #fff; border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 4px); overflow: hidden; box-shadow: var(--ombre); }
.calc__form { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); display: grid; gap: 1.8rem; min-width: 0; align-content: start; }
.calc__res { background: var(--marine); color: rgba(255, 255, 255, .86); padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); display: grid; gap: 1.2rem; align-content: start; min-width: 0; position: relative; overflow: hidden; isolation: isolate; }
.calc__res .arc-deco { position: absolute; right: -90px; bottom: -110px; width: 300px; opacity: .14; z-index: -1; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { font: 700 var(--t-m)/1.3 var(--f-titre); color: var(--marine); margin-bottom: .8rem; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choix span { display: inline-flex; flex-direction: column; gap: .1rem; padding: .7rem 1rem; border: 1.5px solid var(--trait-champ); border-radius: var(--rayon-s); font-size: var(--t-s); line-height: 1.25; transition: all .2s; min-width: 96px; }
.choix span small { color: var(--ardoise); font-size: var(--t-xs); }
.choix label:hover span { border-color: var(--marine); }
.choix input:checked + span { border-color: var(--marine); background: var(--brume); box-shadow: inset 0 0 0 1px var(--marine); color: var(--marine); font-weight: 600; }
.choix input:focus-visible + span { outline: 3px solid var(--framboise); outline-offset: 2px; }
.calc select { width: 100%; max-width: 340px; min-height: 48px; padding: .6rem 2.4rem .6rem .9rem; border: 1.5px solid var(--trait-champ); border-radius: var(--rayon-s); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23004773' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px; -webkit-appearance: none; appearance: none; }
.calc__niveau { font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .14em; text-transform: uppercase; color: #ff9db4; }
.calc__prix { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.calc__prix .chiffre { font-size: clamp(3.4rem, 2.4rem + 3vw, 4.8rem); color: #fff; }
.calc__prix s { color: rgba(255, 255, 255, .72); font-size: var(--t-l); }
.calc__prix small { color: rgba(255, 255, 255, .7); font-size: var(--t-s); }
.calc__details { display: grid; gap: .5rem; font-size: var(--t-s); margin: 0; }
.calc__details div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calc__details dt { color: rgba(255, 255, 255, .7); }
.calc__details dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.calc__note { font-size: var(--t-xs); color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Photos en bichromie (DA historique) ---------- */
.duo { position: relative; overflow: hidden; background: var(--marine); isolation: isolate; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.92); mix-blend-mode: luminosity; transition: filter .6s var(--ease), transform .8s var(--ease); }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 44, 72, 0) 35%, rgba(0, 44, 72, .88) 100%); z-index: 1; pointer-events: none; }
a:hover .duo img, a:focus-visible .duo img { filter: none; mix-blend-mode: normal; transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .duo img { transition: none; } a:hover .duo img { transform: none; } }

/* ---------- Événements ---------- */
.mosaique { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.evt { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: #fff; min-height: 280px; min-width: 0; }
.evt .duo { position: absolute; inset: 0; }
.evt__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.4rem 1.4rem 1.3rem; display: grid; gap: .4rem; }
.evt__date { font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; color: #ff9db4; }
.evt h3 { color: #fff; font-size: var(--t-l); }
.evt--a { grid-column: span 7; min-height: 420px; }
.evt--b { grid-column: span 5; min-height: 420px; }
.evt--c, .evt--d, .evt--e { grid-column: span 4; }
.evt--a h3 { font-size: var(--t-xl); }
@media (max-width: 900px) { .evt--a, .evt--b, .evt--c, .evt--d, .evt--e { grid-column: span 12; min-height: 300px; } }

.annee { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--marine); }
.annee > div { padding: 1.4rem 1.2rem 0 0; position: relative; min-width: 0; }
.annee > div::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--framboise); }
.annee__mois { font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .14em; text-transform: uppercase; color: var(--framboise-text); }
.annee h3 { margin-top: .6rem; font-size: var(--t-m); line-height: 1.12; }
.annee p { margin-top: .35rem; font-size: var(--t-xs); color: var(--ardoise); }
/* Mots longs (estonien : « Konjakidegustatsioon ») : césure si le navigateur la connaît, sinon coupure, jamais de débordement */
.annee h3, .annee p { overflow-wrap: anywhere; hyphens: auto; }
.on-dark .annee { border-top-color: rgba(255, 255, 255, .5); }
.on-dark .annee > div::before { background: var(--marine-deep); }
.on-dark .annee__mois { color: #ff9db4; }
.on-dark .annee p { color: rgba(255, 255, 255, .62); }
.annee--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .annee { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; } .annee--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .annee { grid-template-columns: 1fr 1fr; } .annee--4 { grid-template-columns: 1fr; } }

/* Prochain événement (état vide assumé) */
.prochain { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2rem; align-items: center; padding: 1.6rem 1.8rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff; }
.prochain__date { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--brume); color: var(--marine); font: 900 var(--t-xs)/1.15 var(--f-chiffre); letter-spacing: .1em; text-transform: uppercase; }
.prochain h3 { font-size: var(--t-l); }
.prochain p { margin-top: .3rem; font-size: var(--t-s); color: var(--ardoise); }
/* Colonne formulaire bornée : la phrase d'information revient à la ligne au lieu d'élargir la colonne */
.prochain { grid-template-columns: auto minmax(0, 1fr) minmax(300px, 380px); }
.prochain__inscription { min-width: 0; }
@media (max-width: 1100px) {
  .prochain { grid-template-columns: auto minmax(0, 1fr); }
  .prochain__inscription { grid-column: 1 / -1; } /* formulaire sur toute la largeur, sous le texte */
}
@media (max-width: 760px) { .prochain { grid-template-columns: 1fr; } }

/* ---------- Bloc récit (bienvenue membre) ---------- */
.recit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.recit > * { min-width: 0; }
.recit__photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.recit__photo img { width: 100%; height: 100%; object-fit: cover; }
.recit blockquote { margin: 1.2rem 0 0; font: 700 var(--t-xl)/1.25 var(--f-titre); color: var(--marine); letter-spacing: -.012em; text-wrap: balance; }
.recit blockquote::before { content: "“"; display: block; font: 900 4.5rem/.6 var(--f-chiffre); color: var(--framboise); margin-bottom: .6rem; }
.recit__meta { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; font-size: var(--t-s); flex-wrap: wrap; }
.recit__meta img { width: 130px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 860px) { .recit { grid-template-columns: 1fr; } }

/* ---------- Bandeau d'appel final ---------- */
.appel { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--rayon) + 6px); background: var(--marine); color: rgba(255, 255, 255, .86); padding: clamp(2rem, 1rem + 4vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem 4rem; align-items: center; }
.appel > * { min-width: 0; }
.appel .arc-deco { position: absolute; z-index: -1; right: -140px; top: -170px; width: 540px; opacity: .14; }
.appel h2 { color: #fff; }
.appel p { margin-top: 1rem; }
.appel__actions { display: grid; gap: .75rem; }
.appel__actions .btn { width: 100%; }
.appel__contact { font-size: var(--t-s); color: rgba(255, 255, 255, .72); text-align: center; }
.appel__contact a { color: #fff; }
@media (max-width: 860px) { .appel { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.form .plein { grid-column: 1 / -1; }
.champ { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.champ label { font: 700 var(--t-s)/1.3 var(--f-titre); color: var(--marine); }
.champ label small { font: 400 var(--t-xs) var(--f-texte); color: var(--ardoise); margin-left: .3rem; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 50px; padding: .75rem .95rem; border: 1.5px solid var(--trait-champ); border-radius: var(--rayon-s); background: #fff; transition: border-color .2s, box-shadow .2s; }
.champ textarea { min-height: 130px; resize: vertical; }
.champ select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23004773' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center / 16px; padding-right: 2.6rem; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--marine); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--marine); box-shadow: 0 0 0 4px rgba(0, 71, 115, .14); }
.champ [aria-invalid="true"] { border-color: var(--framboise); }
.champ__err { font-size: var(--t-xs); color: var(--framboise-text); min-height: 1.2em; }
.coche { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: var(--t-s); color: var(--anthracite); }
.coche input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--marine); }
.form__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__pied p { font-size: var(--t-xs); color: var(--ardoise); max-width: 44ch; }
.merci { display: none; padding: 2rem; border-radius: var(--rayon); background: var(--brume); border: 1px solid var(--trait); gap: .7rem; }
.merci.is-visible { display: grid; }
/* L'attribut hidden l'emporte toujours sur les display des composants (étapes, panneaux de démonstration) */
[hidden] { display: none !important; }
.merci h3, .facture-demo h3 { display: flex; align-items: center; gap: .6rem; }
.merci h3 svg, .facture-demo h3 svg { width: 28px; height: 28px; color: var(--framboise); flex: none; }
.demo { display: inline-block; justify-self: start; margin-top: .4rem; font-size: var(--t-xs); color: var(--ardoise); background: #fff; border: 1px dashed var(--trait-fort); padding: .35rem .6rem; border-radius: 6px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: .7rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .14); }
.newsletter--clair input { border-color: var(--trait-champ); background: #fff; color: var(--anthracite); }
.newsletter--clair input::placeholder { color: var(--ardoise); }
.newsletter--clair input:focus { border-color: var(--marine); background: #fff; box-shadow: 0 0 0 4px rgba(0, 71, 115, .14); }
.newsletter__ok { display: none; font-size: var(--t-s); margin-top: .6rem; }
.newsletter__ok.is-visible { display: block; }
/* T1-20 : mentions RGPD discrètes sous les formulaires (ardoise 6,3:1 sur blanc, 5,46:1 sur brume ; ≈ 8,5:1 en pied de page) */
.form__pied .form__rgpd { flex: 1 0 100%; max-width: none; margin: 0; }
p.newsletter__info { margin-top: .6rem; font-size: var(--t-xs); color: var(--ardoise); }
.footer .newsletter__info { color: rgba(255, 255, 255, .74); }
.form__rgpd small, .newsletter__info small { font-size: inherit; }
.form__rgpd a, .newsletter__info a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Étapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: etape; list-style: none; margin: 0; padding: 0; }
.etapes li { position: relative; padding: 1.8rem 1.6rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--trait); counter-increment: etape; min-width: 0; }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font: 900 2.6rem/1 var(--f-chiffre); color: var(--framboise); margin-bottom: 1rem; }
.etapes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.formats li::before { display: none; }
.etapes h3 { font-size: var(--t-l); }
.etapes p { margin-top: .5rem; font-size: var(--t-s); color: var(--ardoise); }
@media (max-width: 960px) { .etapes, .etapes--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .etapes, .etapes--4 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font: 700 var(--t-m)/1.35 var(--f-titre); color: var(--marine); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--trait-fort); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23004773' stroke-width='2'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E") no-repeat center / 14px; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brume); }
.faq summary:hover { color: var(--framboise-text); }
.faq details > div { padding: 0 3rem 1.4rem 0; color: var(--anthracite); }
.faq details > div p + p { margin-top: .7rem; }

/* ---------- Tableau ---------- */
.tableau { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff; }
.tableau:focus-visible { outline-offset: 2px; }
.tableau table { width: 100%; border-collapse: collapse; font-size: var(--t-s); font-variant-numeric: tabular-nums; min-width: 560px; }
.tableau th, .tableau td { padding: .85rem .9rem; text-align: left; border-bottom: 1px solid var(--trait); }
.tableau td + td { white-space: nowrap; }
.tableau thead th { font: 900 var(--t-xs)/1.2 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); background: var(--papier); }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr.is-actif { background: var(--brume); }
.tableau tbody tr.is-actif td:first-child { box-shadow: inset 3px 0 0 var(--framboise); font-weight: 600; color: var(--marine); }

/* ---------- Board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1.5rem; }
.membre-board { display: grid; gap: .8rem; min-width: 0; align-content: start; }
.membre-board__photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; width: min(200px, 100%); position: relative; margin-bottom: .4rem; }
.membre-board__photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px var(--trait); }
.membre-board__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s var(--ease); }
.membre-board:hover img { filter: none; }
.membre-board__role { font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; color: var(--framboise-text); min-height: 1em; }
.membre-board p { font-size: var(--t-s); color: var(--ardoise); }
@media (max-width: 860px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .board { grid-template-columns: 1fr; } }

/* ---------- Chronologie ---------- */
.chrono { list-style: none; margin: 0; padding: 0; display: grid; }
.chrono li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--trait); }
.chrono__date { font: 900 var(--t-m)/1.25 var(--f-chiffre); letter-spacing: .04em; color: var(--marine); }
.chrono h3 { font-size: var(--t-l); }
.chrono p { margin-top: .4rem; font-size: var(--t-s); color: var(--ardoise); }
@media (max-width: 640px) { .chrono li { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Annuaire ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filtres__boutons { display: flex; flex-wrap: wrap; gap: .4rem; }
.puce { min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--trait-fort); background: #fff; cursor: pointer; font: 700 var(--t-xs)/1 var(--f-titre); color: var(--marine); transition: all .2s; }
.puce:hover { border-color: var(--marine); }
.puce[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.puce span { margin-left: .25rem; font-weight: 400; }
.recherche { position: relative; flex: 1 1 260px; max-width: 360px; }
.recherche input { width: 100%; min-height: 44px; padding: .6rem 1rem .6rem 2.6rem; border-radius: 999px; border: 1.5px solid var(--trait-champ); }
.recherche input:focus { outline: none; border-color: var(--marine); box-shadow: 0 0 0 4px rgba(0, 71, 115, .14); }
.recherche svg { position: absolute; left: .95rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ardoise); pointer-events: none; }
.annuaire { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 1rem; }
.fiche { display: grid; grid-template-rows: 124px auto; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; background: #fff; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; min-width: 0; }
.fiche:hover { border-color: var(--marine); transform: translateY(-3px); box-shadow: var(--ombre); }
.fiche[hidden] { display: none; }
.fiche__logo { display: grid; place-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--trait); background: #fff; }
.fiche__logo img { max-height: 66px; width: auto; max-width: 82%; mix-blend-mode: multiply; }
.fiche__initiales { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brume); color: var(--marine); font: 900 1.35rem/1 var(--f-chiffre); letter-spacing: .03em; }
.fiche__txt { padding: .9rem 1rem 1rem; display: grid; gap: .35rem; }
.fiche__nom { font: 700 var(--t-s)/1.3 var(--f-titre); color: var(--marine); }
.fiche__niveau { display: inline-flex; align-items: center; gap: .4rem; font: 900 .68rem/1 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); }
.fiche__niveau i { width: 9px; height: 9px; border-radius: 50%; background: var(--trait-fort); }
.fiche[data-niveau="platinum"] .fiche__niveau i { background: var(--platine); }
.fiche[data-niveau="gold"] .fiche__niveau i { background: var(--or); }
.fiche[data-niveau="silver"] .fiche__niveau i { background: var(--argent); }
.annuaire__vide { display: none; padding: 2rem; text-align: center; color: var(--ardoise); border: 1px dashed var(--trait-fort); border-radius: var(--rayon); }
.annuaire__vide.is-visible { display: block; }
.compteur { font-size: var(--t-s); color: var(--ardoise); margin-bottom: 1rem; }

/* ---------- Contact / prise de rendez-vous ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.carte { background: #fff; border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 4px); padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); box-shadow: var(--ombre); min-width: 0; }
.carte > h2 { font-size: var(--t-xl); }
.rdv__jours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; margin-top: 1.2rem; }
.jour { position: relative; display: grid; gap: .25rem; justify-items: center; padding: .75rem .2rem; border-radius: var(--rayon-s); border: 1.5px solid var(--trait-fort); background: #fff; cursor: pointer; transition: all .2s; font-size: var(--t-xs); min-width: 0; }
.jour b { font: 900 1.45rem/1 var(--f-chiffre); color: var(--marine); }
.jour span { color: var(--ardoise); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.jour:hover { border-color: var(--marine); }
.jour[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); }
.jour[aria-pressed="true"] b, .jour[aria-pressed="true"] span { color: #fff; }
.rdv__heures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: 1rem; }
.heure { min-height: 44px; border-radius: var(--rayon-s); border: 1.5px solid var(--trait-fort); background: #fff; cursor: pointer; font: 700 var(--t-s)/1 var(--f-titre); color: var(--marine); transition: all .2s; }
.heure:hover { border-color: var(--marine); }
.heure[aria-pressed="true"] { background: var(--framboise-fond); border-color: var(--framboise-fond); color: #fff; }
.rdv__resume { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: var(--rayon-s); background: var(--brume); font-size: var(--t-s); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rdv__resume b { color: var(--marine); }
.coord { display: grid; gap: 1.2rem; }
.coord > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: center; }
.coord__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--brume); color: var(--marine); display: grid; place-items: center; }
.coord__ico svg { width: 20px; height: 20px; }
.coord small { display: block; color: var(--ardoise); font-size: var(--t-xs); }
.coord a { color: var(--marine); font-weight: 600; text-decoration: none; }
.coord a:hover { text-decoration: underline; }
.copie { margin-left: .4rem; border: 0; background: none; color: var(--ardoise); cursor: pointer; font-size: var(--t-xs); text-decoration: underline; padding: .2rem; }
@media (max-width: 960px) { .contact-grille { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .rdv__jours { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Mise en page générique ---------- */
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.deux > * { min-width: 0; }
.deux--centre { align-items: center; }
.deux--large { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
@media (max-width: 860px) { .deux, .deux--large { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1.1rem; }
.prose h2 { margin-top: 1.2rem; font-size: var(--t-xl); }
.prose h3 { margin-top: .6rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose li::marker { color: var(--framboise); }
.liste-coche { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.liste-coche li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; align-items: start; }
.liste-coche svg { width: 22px; height: 22px; color: var(--framboise); margin-top: .15rem; }
.encart { padding: 1.6rem; border-radius: var(--rayon); background: var(--brume); display: grid; gap: .8rem; }
.encart h3 { font-size: var(--t-l); }
.encart--sticky { position: sticky; top: 150px; }
.arc-photo { width: 100%; height: auto; overflow: visible; display: block; }
/* Photo en arc : <img> différée, découpée par le clipPath (objectBoundingBox) du SVG décoratif voisin */
.arc-photo--img { position: relative; aspect-ratio: 1; }
.arc-photo--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--marine); }
.arc-photo__deco { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.liens-utiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.liens-utiles > div { min-width: 0; }
.liens-utiles h3 { font-size: var(--t-m); margin-bottom: .7rem; }
.liens-utiles ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; font-size: var(--t-s); }
.liens-utiles a { color: var(--anthracite); text-decoration: none; border-bottom: 1px solid var(--trait-fort); }
.liens-utiles a:hover { color: var(--marine); border-color: var(--marine); }
@media (max-width: 860px) { .liens-utiles { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1rem; }
.stack-l { display: grid; gap: 1.6rem; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.reseau { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.reseau > * { min-width: 0; }
@media (max-width: 860px) { .reseau { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--marine-deep); color: rgba(255, 255, 255, .74); font-size: var(--t-s); position: relative; overflow: hidden; isolation: isolate; }
.footer .arc-deco { position: absolute; z-index: -1; left: -160px; bottom: -240px; width: 600px; opacity: .06; }
.footer__haut { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, .7fr)) minmax(0, 1.25fr); gap: 2.5rem 2rem; padding-block: 4.5rem 3rem; }
.footer__haut > * { min-width: 0; }
.footer__logo img { width: 210px; }
.footer__affil { margin-top: 1.2rem; max-width: 34ch; }
.footer h2 { font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Liens insérés dans une phrase du pied de page : soulignés en permanence (WCAG 1.4.1, ne pas se fier à la seule couleur) */
.footer .newsletter__info a, .footer p.mt-s a { text-decoration: underline; text-underline-offset: 2px; }
.footer__news p { margin-bottom: 1rem; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.footer__social a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bas { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); color: rgba(255, 255, 255, .55); }
.footer__bas nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
/* T1-65 : liens légaux (nav) et choix de langue (groupe) côte à côte */
.footer__liens { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.footer__langues { margin: 0; }
/* Élément sans destination connue (ex. espace membre) : visible mais non cliquable, en attendant l'URL fournie par la CCIFE */
/* État lisible sans baisse de contraste (une opacité de .6 descendrait sous 4,5:1 sur le fond marine) : pointillés au lieu d'un trait plein */
.est-indisponible { cursor: not-allowed; }
.est-indisponible:not(.btn) { text-decoration: underline dotted; text-underline-offset: 3px; }
.btn.est-indisponible { border-style: dashed; }
.btn.est-indisponible:hover { transform: none; box-shadow: none; --bd: var(--trait-fort); }
.on-dark .btn.est-indisponible:hover { --bd: rgba(255, 255, 255, .45); --bg: transparent; }
/* Pages légales : valeur à fournir par la CCIFE, bien visible (refusée par le build de production) */
.a-confirmer { background: #fff1b8; color: var(--anthracite); padding: 0 .25em; border-radius: 3px; }
/* Pied de page : lien de la page légale affichée */
.footer a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1080px) { .footer__haut { grid-template-columns: 1fr 1fr 1fr; } .footer__marque, .footer__news { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__haut { grid-template-columns: 1fr 1fr; } }

/* ---------- Apparition au défilement (état de repos visible sans JS) ---------- */
/* Seuls les blocs sous la ligne de flottaison reçoivent .reveal-attente (ajoutée par le script) */
/* Glissement seul : le contenu reste lisible même si l'animation ne se déclenche jamais */
.reveal-attente { transform: translateY(22px); }
.reveal-attente.is-in { transform: none; transition: transform .9s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal-attente { transform: none; } }

/* ---------- Arguments « pourquoi nous » ---------- */
.atouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
/* Variante à trois cartes (page Partenariats) ; les media queries suivantes la ramènent à 2 puis 1 colonne */
.atouts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atout { display: grid; gap: .8rem; align-content: start; padding: 1.8rem 1.5rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--trait); min-width: 0; }
.atout h3 { font-size: var(--t-l); }
.atout p { font-size: var(--t-s); color: var(--ardoise); }
.on-dark .atout { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.on-dark .atout p { color: rgba(255, 255, 255, .74); }
.on-dark .atout .service__ico { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 1060px) { .atouts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .atouts { grid-template-columns: 1fr; } }
/* En deux colonnes, la troisième carte seule occupe toute la ligne */
@media (max-width: 1060px) and (min-width: 601px) { .atouts--3 > .atout:last-child { grid-column: 1 / -1; } }

/* ---------- Études de cas ---------- */
.cas-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cas-mini article { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--trait); min-width: 0; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.cas-mini article:hover { border-color: var(--marine); transform: translateY(-4px); box-shadow: var(--ombre); }
.cas-mini img { height: 44px; width: 150px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.cas-mini h3 { font-size: var(--t-l); }
.cas-mini p { font-size: var(--t-s); color: var(--ardoise); }
.cas-mini .lien-fleche { margin-top: auto; }
.cas-mini .lien-fleche::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (max-width: 960px) { .cas-mini { grid-template-columns: 1fr; } }
.etiquette { display: inline-flex; align-items: center; gap: .5rem; font: 900 var(--t-xs)/1 var(--f-chiffre); letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); }
.etiquette i { width: 9px; height: 9px; border-radius: 50%; background: var(--framboise); }

.cas { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--trait); scroll-margin-top: 140px; }
.cas:first-child { border-top: 0; padding-top: 0; }
.cas > * { min-width: 0; }
.cas__fiche { display: grid; gap: 1.2rem; align-content: start; }
.cas__logo { height: 64px; width: 200px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.cas__chiffres { display: grid; gap: 1rem; border-top: 2px solid var(--marine); padding-top: 1rem; }
.cas__chiffres div { display: grid; gap: .2rem; }
.cas__chiffres .chiffre { font-size: 2.4rem; color: var(--marine); }
.cas__chiffres span:last-child { font-size: var(--t-s); color: var(--ardoise); }
.cas__texte { display: grid; gap: 1.1rem; align-content: start; }
.cas__texte h2 { font-size: var(--t-xl); }
.cas__role { padding: 1.1rem 1.3rem; border-radius: var(--rayon-s); background: var(--brume); font-size: var(--t-s); }
.cas__role b { color: var(--marine); }
@media (max-width: 860px) { .cas { grid-template-columns: 1fr; } }

.citation { margin: 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--framboise); background: #fff; border-radius: 0 var(--rayon-s) var(--rayon-s) 0; box-shadow: var(--ombre); }
.citation p { font: 700 var(--t-l)/1.4 var(--f-titre); color: var(--marine); max-width: none; }
.citation footer { margin-top: .8rem; font-size: var(--t-s); color: var(--ardoise); background: none; padding: 0; }
.citation footer b { color: var(--anthracite); }
.source-note { font-size: var(--t-xs); color: var(--ardoise); }

/* ---------- Menu à six entrées : le contact passe dans la barre du haut sur grand écran ---------- */
.nav__mobile { display: none; }
.nav a { white-space: nowrap; }
@media (max-width: 1500px) { .header__cta .btn--ghost { display: none; } .nav a { padding-inline: .6rem; } }
/* Dans le menu mobile, « Contact » reprend sa place dans la liste */
@media (max-width: 1180px) { .nav__mobile { display: block; } .nav a { padding-inline: 1rem; } }
/* Sans JavaScript (classe js absente) : le menu reste visible sous l'en-tête et le burger, inerte, est masqué */
@media (max-width: 1180px) {
  html:not(.js) .burger { display: none; }
  html:not(.js) .header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { position: static; order: 3; flex: 1 0 100%; width: 100%; margin: 0; padding: 0 0 1rem; clip-path: none; visibility: visible; box-shadow: none; background: none; overflow: visible; transition: none; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: .2rem; }
  html:not(.js) .nav a { font-size: var(--t-s); padding: .5rem .8rem; }
  html:not(.js) .nav__extra { margin-top: .6rem; padding-top: .6rem; }
  /* site.js seul bloqué ou en échec : la classe js est posée par le script en ligne, mais pas js-ok (posée par site.js
     une fois le menu branché). Le même repli s'applique alors au bout de 4 s, par animation retardée : au chargement
     normal, rien ne bouge (aucun décalage de mise en page) ; si site.js arrive en retard, js-ok annule le repli. */
  html.js:not(.js-ok) .burger { animation: repli-burger 0s 4s forwards; }
  html.js:not(.js-ok) .header .wrap { animation: repli-entete 0s 4s forwards; }
  html.js:not(.js-ok) .nav { animation: repli-nav 0s 4s forwards; }
  html.js:not(.js-ok) .nav > ul { animation: repli-liste 0s 4s forwards; }
  html.js:not(.js-ok) .nav > ul a { animation: repli-lien 0s 4s forwards; }
  html.js:not(.js-ok) .nav__extra { animation: repli-extra 0s 4s forwards; }
}
@keyframes repli-burger { to { display: none; } }
@keyframes repli-entete { to { flex-wrap: wrap; } }
@keyframes repli-nav { to { position: static; order: 3; flex: 1 0 100%; width: 100%; margin: 0; padding: 0 0 1rem; clip-path: none; visibility: visible; box-shadow: none; background: none; overflow: visible; } }
@keyframes repli-liste { to { flex-direction: row; flex-wrap: wrap; gap: .2rem; } }
@keyframes repli-lien { to { font-size: var(--t-s); padding: .5rem .8rem; } }
@keyframes repli-extra { to { margin-top: .6rem; padding-top: .6rem; } }
/* site.js bloqué ou en échec alors que JS est actif (hors @media, contrairement au repli du menu) : les boutons des formulaires
   restent désactivés, on explique pourquoi au bout de 4 s par le même mécanisme d’animation retardée ; js-ok annule le repli.
   Pas de display:none au départ : un élément sans boîte n’exécute aucune animation, le message ne s’afficherait jamais.
   On le masque donc par visibility:hidden (hors de l’arbre d’accessibilité) et hauteur nulle (aucun décalage au chargement). */
.repli-js { display: block; visibility: hidden; height: 0; margin: 0; overflow: hidden; }
html.js:not(.js-ok) .repli-js { animation: repli-affiche 0s 4s forwards; }
@keyframes repli-affiche { to { visibility: visible; height: auto; margin: 1rem 0 0; overflow: visible; } }

/* Actualités : cartes reprenant .cas-mini, pastille colorée par thème */
.actus .actu { gap: .75rem; }
.actu[hidden] { display: none; }
.actu time { font-size: var(--t-xs); color: var(--ardoise); font-variant-numeric: tabular-nums; }
.actu h3 { font-size: var(--t-m); }
.actu[data-cat="voix"] .etiquette i { background: var(--marine); }
.actu[data-cat="eclairage"] .etiquette i { background: var(--or); }
.actu[data-cat="enquete"] .etiquette i { background: var(--ardoise); }
@media (min-width: 601px) and (max-width: 960px) { .actus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .masque-mobile { display: none; } }

/* Candidature en quatre étapes : progression, questions à choix, récapitulatif, paiement et facture de démonstration */
.etapes-form { list-style: none; margin: 1.6rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.etapes-form li { display: flex; align-items: center; gap: .55rem; padding-top: .7rem; border-top: 3px solid var(--trait); font: 700 var(--t-xs)/1.2 var(--f-titre); color: var(--ardoise); min-width: 0; }
.etapes-form li b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--trait-fort); font-size: var(--t-xs); }
.etapes-form li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etapes-form li[aria-current="step"] { border-top-color: var(--framboise); color: var(--marine); }
.etapes-form li[aria-current="step"] b { border-color: var(--framboise-fond); background: var(--framboise-fond); color: #fff; }
.etapes-form li.fait { border-top-color: var(--marine); color: var(--marine); }
.etapes-form li.fait b { border-color: var(--marine); background: var(--marine); color: #fff; }
.etape { display: grid; gap: 1rem; }
.etape__titre { font-size: var(--t-l); }
.etape__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: .5rem; }
.etape__nav .btn--rose { margin-left: auto; }
.groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.groupe legend { padding: 0; margin-bottom: .6rem; font: 700 var(--t-s)/1.35 var(--f-titre); color: var(--marine); }
.groupe legend small { font: 400 var(--t-xs) var(--f-texte); color: var(--ardoise); margin-left: .3rem; }
.groupe .choix span { min-width: 0; }
.recap__montant { padding: 1rem 1.2rem; border-radius: var(--rayon-s); background: var(--brume); color: var(--marine); }
.recap__montant s { color: var(--ardoise); margin-right: .25rem; }
.recap__montant strong { font-size: 1.15em; }
.recap__titre { font-size: var(--t-m); margin-top: .5rem; }
.recap { display: grid; gap: 1rem; }
.recap section { display: grid; gap: .4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--trait); }
.recap header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font: 700 var(--t-s)/1.2 var(--f-titre); color: var(--marine); }
.recap header button { border: 0; background: none; padding: 0; color: var(--framboise-text); font: 700 var(--t-xs) var(--f-titre); text-decoration: underline; cursor: pointer; }
.recap dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: .35rem 1rem; font-size: var(--t-s); }
.recap dt { color: var(--ardoise); }
.recap dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.suite { padding: 1.1rem 1.2rem; border-radius: var(--rayon-s); border: 1px solid var(--trait); display: grid; gap: .5rem; }
.suite h4 { font-size: var(--t-m); }
.suite ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: var(--t-s); }
.demo-boite { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: var(--rayon-s); border: 1.5px dashed var(--trait-fort); display: grid; gap: .6rem; justify-items: start; }
.paiement-demo, .facture-demo { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--trait); display: grid; gap: .8rem; outline: none; }
.paiement-demo__montant { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--rayon-s); background: var(--brume); color: var(--marine); }
.paiement-demo__montant strong { font: 900 1.6rem/1 var(--f-chiffre); }
.paiement-demo__choix { display: flex; flex-wrap: wrap; gap: .6rem; }
.paiement-demo__choix small { font-weight: 400; opacity: .75; margin-left: .3rem; }
.facture { border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 1.3rem; display: grid; gap: 1rem; font-size: var(--t-s); background: #fff; }
/* Bandeau « Spécimen » dans le cadre de la facture de démonstration (texte en --framboise-text : 5,25:1 sur blanc ; --framboise seule ≈ 4:1) */
.facture__specimen { margin: 0; max-width: none; padding: .45rem .8rem; border: 1.5px dashed var(--framboise); border-radius: var(--rayon-s); color: var(--framboise-text); font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .04em; font-size: var(--t-xs); }
.facture__tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.facture__tete dl { margin: 0; display: grid; gap: .25rem; text-align: right; }
.facture__tete dt { display: inline; color: var(--ardoise); margin-right: .4rem; }
.facture__tete dd { display: inline; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.facture__client { display: grid; gap: .15rem; white-space: pre-line; }
.facture table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.facture th, .facture td { padding: .55rem 0; border-bottom: 1px solid var(--trait); text-align: left; }
.facture th:last-child, .facture td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.facture th { font: 700 var(--t-xs) var(--f-titre); color: var(--ardoise); text-transform: uppercase; letter-spacing: .05em; }
.facture__total td { font-weight: 700; color: var(--marine); border-bottom: 0; font-size: 1.05em; }
.facture__paye { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.pastille-payee { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: #e3f3ea; color: #1b6e4a; font-weight: 700; font-size: var(--t-xs); }
.pastille-payee svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .etapes-form li span { display: none; }
  .etapes-form li[aria-current="step"] span { display: inline; }
  .etapes-form { display: flex; }
  .etapes-form li { flex: none; }
  .etapes-form li[aria-current="step"] { flex: 1 1 auto; }
  .recap dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .recap dd { margin-bottom: .5rem; }
}

/* Contraste forcé (Windows) : les états sélectionnés ne reposent plus seulement sur le fond et l'ombre */
@media (forced-colors: active) {
  .choix input:checked + span,
  .puce[aria-pressed="true"],
  .jour[aria-pressed="true"],
  .heure[aria-pressed="true"],
  .defile__pause[aria-pressed="true"],
  .etapes-form li[aria-current="step"] b,
  .etapes-form li.fait b { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .choix input:checked + span small,
  .puce[aria-pressed="true"] span,
  .jour[aria-pressed="true"] b,
  .jour[aria-pressed="true"] span { color: HighlightText; }
  .choix input:focus-visible + span { outline: 3px solid CanvasText; }
  .etapes-form li[aria-current="step"] { border-top-width: 6px; }
  .etapes-form li[aria-current="step"] span { text-decoration: underline; text-underline-offset: .2em; }
}

/* Impression : la démonstration accord / paiement / facture n'est jamais imprimée (pas de fausse facture sur papier) */
@media print { .demo-boite, .paiement-demo, .facture-demo { display: none !important; } }
