/* ==========================================================================
   Coverfield — feuille de style unique
   1. Polices  2. Variables  3. Base  4. Mise en page  5. Typographie
   6. Boutons et liens  7. En-tête et pied de page  8. Composants  9. Pages
   ========================================================================== */

/* 1. Polices (auto-hébergées) ------------------------------------------- */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/raleway-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/raleway-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/raleway-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/raleway-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/raleway-latin-800-normal.woff2") format("woff2"); }

/* 2. Variables ------------------------------------------------------------ */
:root {
  /* Couleurs de marque */
  --navy: #334659;
  --navy-deep: #2A3A4B;
  --slate: #5B6F84;
  --coral: #F26B65;
  --coral-ink: #C9483F;   /* corail lisible sur fond clair (texte, boutons) */
  --orange: #F8AF46;
  --orange-ink: #A9660B;
  --yellow: #FAD961;
  --yellow-ink: #8A6D00;
  --white: #FFFFFF;
  --sand: #F7F5F2;
  --paper: #FAF8F5;
  --line: #E6E9ED;
  --line-strong: #D5DBE2;
  --mist: #E6E9ED;        /* texte secondaire sur fond marine */
  --fog: #C7CFD8;         /* texte tertiaire sur fond marine */

  /* Jetons de thème : les composants n'utilisent que ceux-ci pour les fonds, textes et bordures.
     Les valeurs sombres sont définies plus bas (« Thème sombre »). */
  color-scheme: light;
  --bg: #FFFFFF;              /* fond de page */
  --bg-alt: #F7F5F2;          /* sections alternées */
  --surface: #FFFFFF;         /* cartes posées sur une section */
  --surface-alt: #F7F5F2;     /* cartes « sable » posées sur fond blanc */
  --surface-muted: #ECEFF3;   /* pastilles et étapes neutres */
  --text: var(--navy);
  --text-muted: var(--slate);
  --accent: var(--coral-ink); /* liens, sur-titres, pictos */
  --border: var(--line);
  --border-strong: var(--line-strong);
  --block: var(--navy);       /* sections et cartes « marine » */
  --block-deep: var(--navy-deep);
  --btn-strong-bg: var(--navy);
  --btn-strong-hover: var(--navy-deep);
  --btn-strong-text: #FFFFFF;
  --figure-bg: var(--paper);
  --shadow: rgba(42, 58, 75, 0.12);
  --logo-filter: none;
  --show-light: block;       /* visuels déclinés par thème (.cf-when-light / .cf-when-dark) */
  --show-dark: none;

  /* Mise en page */
  --container: 1200px;
  --gutter: 32px;
  --section-y: clamp(44px, 6.5vw, 76px);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 20px;
  --pill: 999px;

  /* Typographie fluide */
  --fs-display-xl: clamp(46px, 7vw, 76px);
  --fs-display: clamp(38px, 5.4vw, 58px);
  --fs-h2: clamp(30px, 3.8vw, 42px);
  --fs-h3: clamp(20px, 2vw, 22px);
  --fs-lead: clamp(17px, 1.6vw, 19px);
  --fs-stat: clamp(36px, 4vw, 44px);
}

/* Tons : chaque composant coloré lit --tone (fond vif), --tone-ink (texte sur clair),
   --tone-bg (fond pâle) et --tone-on (texte posé sur --tone). */
.t-coral  { --tone: var(--coral);  --tone-ink: var(--coral-ink);  --tone-bg: #FDECEB; --tone-on: var(--navy);  --tone-light: #FFD7A8; }
.t-orange { --tone: var(--orange); --tone-ink: var(--orange-ink); --tone-bg: #FEF3E0; --tone-on: var(--navy);  --tone-light: #FCE7A6; }
.t-yellow { --tone: var(--yellow); --tone-ink: var(--yellow-ink); --tone-bg: #FDF6D8; --tone-on: var(--navy);  --tone-light: #FFF3C4; }
.t-slate  { --tone: var(--slate);  --tone-ink: var(--slate);      --tone-bg: #ECEFF3; --tone-on: var(--white);  --tone-light: #C9D4E0; }
.t-navy   { --tone: var(--navy);   --tone-ink: var(--navy);       --tone-bg: #E3E7EC; --tone-on: var(--white);  --tone-light: #8A9BAE; }
.t-deep   { --tone: var(--navy-deep); --tone-ink: var(--navy-deep); --tone-bg: #E3E7EC; --tone-on: var(--yellow);  --tone-light: #5B6F84; }


/* Thème sombre --------------------------------------------------------------
   Appliqué si l'utilisateur choisit « Sombre », ou si son système est en mode sombre
   et qu'il n'a pas forcé « Clair ». Les deux blocs sont identiques : les garder synchronisés. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121A23;
  --bg-alt: #17212C;
  --surface: #1E2A37;
  --surface-alt: #1E2A37;
  --surface-muted: #2A3846;
  --text: #E8ECF1;
  --text-muted: #A7B4C2;
  --accent: #FF8A80;
  --border: #2B3948;
  --border-strong: #3B4B5D;
  --block: #213145;
  --block-deep: #0C131A;
  --btn-strong-bg: #E8ECF1;
  --btn-strong-hover: #FFFFFF;
  --btn-strong-text: #16202B;
  --figure-bg: #F2F0EC;
  --shadow: rgba(0, 0, 0, 0.45);
  --logo-filter: brightness(0) invert(0.78);
  --show-light: none;
  --show-dark: block;
}
:root[data-theme="dark"] .t-coral { --tone-bg: rgba(242, 107, 101, 0.16); --tone-ink: #FF8A80; }
:root[data-theme="dark"] .t-orange { --tone-bg: rgba(248, 175, 70, 0.16); --tone-ink: #F8AF46; }
:root[data-theme="dark"] .t-yellow { --tone-bg: rgba(250, 217, 97, 0.14); --tone-ink: #FAD961; }
:root[data-theme="dark"] .t-slate { --tone-bg: rgba(167, 180, 194, 0.14); --tone-ink: #A7B4C2; }
:root[data-theme="dark"] .t-navy { --tone: #3E536A; --tone-bg: rgba(167, 180, 194, 0.12); --tone-ink: #C7CFD8; }
:root[data-theme="dark"] .t-deep { --tone: #2A3B4E; --tone-bg: rgba(167, 180, 194, 0.12); --tone-ink: #C7CFD8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121A23;
    --bg-alt: #17212C;
    --surface: #1E2A37;
    --surface-alt: #1E2A37;
    --surface-muted: #2A3846;
    --text: #E8ECF1;
    --text-muted: #A7B4C2;
    --accent: #FF8A80;
    --border: #2B3948;
    --border-strong: #3B4B5D;
    --block: #213145;
    --block-deep: #0C131A;
    --btn-strong-bg: #E8ECF1;
    --btn-strong-hover: #FFFFFF;
    --btn-strong-text: #16202B;
    --figure-bg: #F2F0EC;
    --shadow: rgba(0, 0, 0, 0.45);
    --logo-filter: brightness(0) invert(0.78);
  --show-light: none;
  --show-dark: block;
  }
  :root:not([data-theme="light"]) .t-coral { --tone-bg: rgba(242, 107, 101, 0.16); --tone-ink: #FF8A80; }
  :root:not([data-theme="light"]) .t-orange { --tone-bg: rgba(248, 175, 70, 0.16); --tone-ink: #F8AF46; }
  :root:not([data-theme="light"]) .t-yellow { --tone-bg: rgba(250, 217, 97, 0.14); --tone-ink: #FAD961; }
  :root:not([data-theme="light"]) .t-slate { --tone-bg: rgba(167, 180, 194, 0.14); --tone-ink: #A7B4C2; }
  :root:not([data-theme="light"]) .t-navy { --tone: #3E536A; --tone-bg: rgba(167, 180, 194, 0.12); --tone-ink: #C7CFD8; }
  :root:not([data-theme="light"]) .t-deep { --tone: #2A3B4E; --tone-bg: rgba(167, 180, 194, 0.12); --tone-ink: #C7CFD8; }
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }

.cf-skip { position: absolute; left: 16px; top: -60px; background: var(--block); color: var(--white); padding: 12px 18px; border-radius: 8px; z-index: 20; }
.cf-skip:focus { top: 12px; color: var(--white); }

/* 4. Mise en page --------------------------------------------------------- */
.cf-section { padding-block: var(--section-y); background: var(--bg); }
.cf-section--sand { background: var(--bg-alt); }
.cf-section--navy { background: var(--block); color: var(--white); }
.cf-section--tight { padding-block: clamp(32px, 4.5vw, 44px); }
.cf-section--hero { padding-block: clamp(40px, 6vw, 72px) clamp(44px, 6vw, 64px); }

.cf-container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.cf-container--narrow { max-width: 900px; }
.cf-container--text { max-width: 820px; }

.cf-stack { display: flex; flex-direction: column; gap: 18px; }
.cf-stack--xs { gap: 8px; }
.cf-stack--s { gap: 12px; }
.cf-stack--m { gap: 16px; }
.cf-stack--l { gap: 28px; }
.cf-stack--xl { gap: 36px; }
.cf-start { align-self: flex-start; }
.cf-push { margin-top: auto; }

.cf-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cf-row--between { justify-content: space-between; align-items: flex-end; gap: 16px; }
.cf-row--links { gap: 4px 24px; }

/* Grille auto : les colonnes ne descendent jamais sous --min */
.cf-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); }
.cf-grid--2 { --min: 440px; gap: 20px; }
.cf-grid--3 { --min: 300px; }
.cf-grid--4 { --min: 220px; gap: 14px; }
.cf-grid--5 { --min: 200px; gap: 16px; }
.cf-grid--stats { --min: 150px; gap: 20px 28px; }
.cf-grid--airy { gap: 24px; }
.cf-grid--mini { --min: 160px; gap: 16px; }
.cf-grid--books { --min: 340px; gap: 20px; }
.cf-grid--stats-2 { --min: 200px; gap: 28px 32px; }
.cf-grid--stats-l { --min: 300px; gap: 28px 24px; }

/* Deux colonnes qui passent l'une sous l'autre */
.cf-split { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px); align-items: center; }
.cf-split--top { align-items: flex-start; }
.cf-split--bottom { align-items: flex-end; }
.cf-split > * { flex: 1 1 440px; min-width: 0; }
.cf-split > .cf-split__wide { flex-basis: 560px; }
.cf-split > .cf-split__narrow { flex-basis: 360px; }

.cf-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.cf-head--wide { max-width: 820px; }
.cf-center { align-items: center; text-align: center; }
.cf-plain { margin: 0; padding: 0; list-style: none; }

/* 5. Typographie ---------------------------------------------------------- */
.cf-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cf-eyebrow--muted { color: var(--text-muted); font-size: 13px; letter-spacing: 0.14em; }
.cf-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.cf-meta { font-size: 14px; font-weight: 700; }
.cf-measure { max-width: 420px; }
.cf-measure-xl { max-width: 1000px; }

.cf-display { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.01em; }
.cf-display--xl { font-size: var(--fs-display-xl); line-height: 1.02; letter-spacing: -0.015em; }
.cf-h2 { font-size: var(--fs-h2); line-height: 1.12; }
.cf-h2--s { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; }
.cf-h3 { font-size: var(--fs-h3); line-height: 1.3; }
.cf-h3--l { font-size: clamp(24px, 2.6vw, 32px); }
.cf-h3--m { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.25; }
.cf-subtitle { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 300; max-width: 900px; }

.cf-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); max-width: 640px; }
.cf-lead--wide { max-width: 820px; }
.cf-lead--strong { color: var(--text); }
.cf-bullets { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.55; color: var(--text-muted); }
.cf-text { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.cf-text--s { font-size: 15px; line-height: 1.55; }
.cf-note { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* Sur fond marine */
.cf-section--navy .cf-eyebrow, .cf-card--navy .cf-eyebrow { color: var(--orange); }
.cf-section--navy .cf-lead, .cf-section--navy .cf-text, .cf-card--navy .cf-text { color: var(--mist); }
.cf-section--navy .cf-note, .cf-section--navy .cf-label, .cf-card--navy .cf-label { color: var(--fog); }

/* Mention colorée (doit venir après les variantes sur fond marine) */
.cf-label.cf-label--accent { color: var(--orange); }

/* 6. Boutons et liens ----------------------------------------------------- */
.cf-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 13px 24px; border-radius: var(--pill); border: 2px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.cf-btn:hover { transform: translateY(-1px); }
.cf-btn--coral { background: var(--coral-ink); color: var(--white); }
.cf-btn--coral:hover { background: #B23C34; color: var(--white); }
.cf-btn--navy { background: var(--btn-strong-bg); color: var(--btn-strong-text); }
.cf-btn--navy:hover { background: var(--btn-strong-hover); color: var(--btn-strong-text); }
.cf-btn--orange { background: var(--orange); color: var(--navy); font-weight: 800; }
.cf-btn--orange:hover { background: var(--yellow); color: var(--navy); }
.cf-btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.cf-btn--outline:hover { background: var(--text); color: var(--bg); }
.cf-btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.cf-btn--outline-light:hover { background: var(--white); color: var(--navy); }
.cf-btn svg, .cf-link .cf-icon { flex: none; color: currentColor; }

.cf-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-right: 1.35em; font-weight: 700; color: var(--accent); }
/* Flèche sortie du flux (position absolue) : le soulignement du lien ne s'y propage pas */
.cf-link::after { content: "→"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); transition: transform .15s ease; }
.cf-link:hover::after { transform: translate(3px, -50%); }
.cf-link--plain { padding-right: 0; }
.cf-link--plain::after { content: none; }
.cf-link.cf-link--ext::after { content: "↗"; } /* lien externe */
.cf-link.cf-link--ext:hover::after { transform: translate(2px, calc(-50% - 2px)); }
.cf-section--navy .cf-link, .cf-card--navy .cf-link, .cf-link--light { color: var(--orange); }
.cf-section--navy .cf-link:hover, .cf-card--navy .cf-link:hover, .cf-link--light:hover { color: var(--white); }
.cf-highlight { color: var(--yellow); }
.cf-section--navy a:not([class]) { color: var(--yellow); }
.cf-section--navy a:not([class]):hover { color: var(--white); }

/* 7. En-tête --------------------------------------------------------------- */
.cf-header { position: relative; border-bottom: 1px solid var(--border); background: var(--bg); z-index: 10; }
.cf-header__inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cf-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.cf-logo:hover { color: var(--text); }
.cf-logo__icon { flex: none; width: 27px; height: 50px; }
.cf-logo__text { display: inline-grid; grid-template-columns: min-content; row-gap: 3px; }
.cf-logo__name { white-space: nowrap; }
/* Même dessin que le logotype : Raleway Bold, approche resserrée */
.cf-logo__name { font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -0.056em; }
.cf-logo__rule { display: block; height: 3px; width: 100%; background: linear-gradient(90deg, var(--coral), var(--orange), var(--yellow)); border-radius: 2px; }
/* Le sous-titre s’étire sur la largeur du nom (et donc du filet) */
.cf-logo__tag { width: 0; min-width: 100%; white-space: nowrap; text-align: justify; text-align-last: justify; font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }

.cf-nav { display: flex; align-items: center; gap: 8px 28px; margin-left: auto; font-size: 15px; font-weight: 600; }
.cf-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.cf-nav__list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.cf-nav__list a:hover, .cf-nav__list a[aria-current] { color: var(--accent); }
.cf-nav__list a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cf-nav .cf-btn { padding: 12px 20px; font-size: 15px; }
.cf-menu-btn { display: none; }
.cf-header__tools { display: flex; align-items: center; gap: 10px; }

/* Sélecteur de thème (clair / sombre / système) */
.cf-theme { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--surface-muted); }
.cf-theme__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cf-theme__btn .cf-icon { color: currentColor; }
.cf-theme__btn:hover { color: var(--text); }
.cf-theme__btn[aria-checked="true"] { background: var(--bg); color: var(--accent); box-shadow: 0 1px 3px var(--shadow); }
.cf-theme__btn[data-theme-choice="light"][aria-checked="true"] { color: #E8890C; } /* soleil en orange (plus soutenu que --orange pour rester lisible sur fond clair) */

@media (max-width: 960px) {
  .cf-menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
    font: inherit; font-size: 15px; font-weight: 700; color: var(--text);
    background: var(--bg); border: 2px solid var(--border-strong); border-radius: var(--pill); cursor: pointer;
  }
  .cf-menu-btn__bars, .cf-menu-btn__bars::before, .cf-menu-btn__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
  }
  .cf-menu-btn__bars { position: relative; }
  .cf-menu-btn__bars::before, .cf-menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .cf-menu-btn__bars::before { top: -6px; }
  .cf-menu-btn__bars::after { top: 6px; }
  .cf-menu-btn[aria-expanded="true"] .cf-menu-btn__bars { background: transparent; }
  .cf-menu-btn[aria-expanded="true"] .cf-menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .cf-menu-btn[aria-expanded="true"] .cf-menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .cf-nav { display: none; }
  .js .cf-nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 28px; background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px var(--shadow);
  }
  .js .cf-nav.is-open .cf-nav__list { flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
  .js .cf-nav.is-open .cf-nav__list a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .js .cf-nav.is-open .cf-btn { justify-content: center; }
  /* Sans JavaScript, le menu reste visible sous le logo */
  html:not(.js) .cf-header__inner { flex-wrap: wrap; }
  html:not(.js) .cf-nav { flex-wrap: wrap; }
}

/* Pied de page ------------------------------------------------------------- */
.cf-footer { background: var(--block-deep); color: var(--fog); font-size: 14px; }
.cf-footer a { color: var(--fog); text-decoration: none; }
.cf-footer a:hover { color: var(--white); }
.cf-footer__inner { max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; }
.cf-footer__nav { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; margin: 0; padding: 0; list-style: none; }
.cf-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.cf-footer__legal { margin: 0; }
/* Lien externe : petite flèche ↗ */
.cf-ext::after { content: "↗"; display: inline-block; margin-left: 3px; font-size: 0.9em; text-decoration: none; transition: transform .15s ease; }
.cf-ext:hover::after { transform: translate(1px, -1px); }

/* 8. Composants ------------------------------------------------------------ */

/* Cartes */
.cf-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: var(--radius-l); padding: clamp(20px, 2.8vw, 32px); min-width: 0; }
.cf-card--sand { background: var(--surface-alt); }
.cf-card--navy { background: var(--block); color: var(--white); }
.cf-card--outline { border: 1px solid var(--border); }
.cf-card--s { border-radius: var(--radius-m); padding: clamp(18px, 2vw, 24px); gap: 10px; }
.cf-card--l { padding: clamp(20px, 3vw, 36px); gap: 16px; }
.cf-card--top { border-top: 6px solid var(--tone); }
.cf-card--tinted { background: var(--tone-bg); }

/* Badges et pastilles */
.cf-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--pill); background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.cf-badge--orange { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.cf-badge--tone { background: var(--tone-bg); color: var(--tone-ink); border-color: transparent; }
.cf-badge--navy { background: var(--block); color: var(--white); border-color: var(--block); }
.cf-badge--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.cf-feature .cf-stat__value { color: var(--orange); }
.cf-feature .cf-stat__label { color: var(--mist); }
.cf-badge--soft { background: var(--surface-muted); border-color: transparent; }
.cf-badge--case { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 7px 13px; }

.cf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.cf-pills li { padding: 7px 13px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border-strong); }
.cf-badges { gap: 10px; }
.cf-pills--sand li { background: var(--surface-alt); border-color: transparent; }
.cf-pills--l { gap: 14px; font-size: 16px; font-weight: 700; }
.cf-pills--l li { padding: 14px 20px; border-radius: 14px; border: 0; }

/* Chiffres clés */
.cf-stat { display: flex; flex-direction: column; gap: 6px; }
.cf-stat__head { display: flex; align-items: center; gap: 12px; }
.cf-stat__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tone-bg, #FDECEB); }
.cf-stat__icon .cf-icon { color: var(--accent); }
.cf-section--navy .cf-stat__icon, .cf-feature .cf-stat__icon { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(248, 175, 70, 0.5); }
.cf-section--navy .cf-stat__icon .cf-icon, .cf-feature .cf-stat__icon .cf-icon { color: var(--orange); }
.cf-stat__value { font-size: var(--fs-stat); font-weight: 800; line-height: 1.1; color: var(--text); }
.cf-stat__label { font-size: 15px; line-height: 1.45; color: var(--text-muted); }
.cf-stat--l .cf-stat__value { font-size: clamp(40px, 4.6vw, 50px); }
.cf-stat--l .cf-stat__label { font-size: 16px; }
.cf-stat--s .cf-stat__value { font-size: 36px; }
.cf-stat--s .cf-stat__label { font-size: 14px; }
.cf-stat--s .cf-stat__icon { display: none; } /* chiffres compacts : pas d'icône */
/* Chiffres compacts (Catena) : le libellé s'aligne sous les chiffres, pas sous le signe + ou ~ */
.cf-stat--s.cf-stat--signed .cf-stat__label { padding-left: 15px; } /* largeur du « + » à 36 px */
.cf-section--navy .cf-stat__value, .cf-stat--box .cf-stat__value { color: var(--orange); }
.cf-section--navy .cf-stat__label, .cf-stat--box .cf-stat__label { color: var(--mist); }
.cf-stat--box { gap: 4px; background: var(--block); border-radius: 14px; padding: 18px 20px; }
.cf-stat--box .cf-stat__value { font-size: 28px; }
.cf-stat--box .cf-stat__label { font-size: 14px; }
.cf-stat__link { align-self: flex-start; min-height: 32px; margin-top: 2px; font-size: 14px; }
.cf-profile__title a { color: var(--accent); text-underline-offset: 3px; }
.cf-profile__title a:hover { color: var(--text); }
.cf-stats-inline { display: flex; flex-wrap: wrap; gap: 24px; }
.cf-stats-inline .cf-stat { gap: 0; }

/* Grand numéro coloré */
.cf-num { font-size: 40px; font-weight: 800; line-height: 1; color: var(--tone-ink); }
.cf-num--xl { font-size: 56px; }
.cf-bar { height: 8px; border-radius: 4px; background: var(--tone); }

/* Liste numérotée simple (01, 02, 03 / tirets) */
.cf-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.cf-list li { display: flex; gap: 12px; align-items: baseline; }
.cf-list__mark { flex: none; font-weight: 800; color: var(--accent); }
.cf-card--navy .cf-list__mark { color: var(--orange); }
.cf-list--arrows li { line-height: 1.5; }
.cf-list--arrows .cf-list__mark { color: var(--tone-ink); }

/* Escalier de l'accueil */
.cf-stairs { display: flex; align-items: flex-end; gap: 10px; height: 320px; margin: 0; padding: 0; list-style: none; }
.cf-stairs li {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  padding: 12px 8px 14px; border-radius: 10px 10px 4px 4px; background: var(--tone); color: var(--tone-on);
}
.cf-stairs li:nth-child(1) { height: 32%; }
.cf-stairs li:nth-child(2) { height: 47%; }
.cf-stairs li:nth-child(3) { height: 62%; }
.cf-stairs li:nth-child(4) { height: 80%; }
.cf-stairs li:nth-child(5) { height: 100%; }
.cf-stairs li:nth-child(5) .cf-stairs__n { color: var(--orange); }
.cf-stairs__n { font-size: 30px; font-weight: 800; line-height: 1; text-align: center; opacity: 0.9; }
.cf-stairs__t { font-size: 14px; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; }
@media (max-width: 720px) {
  .cf-stairs { flex-direction: column-reverse; align-items: flex-start; height: auto; gap: 8px; }
  .cf-stairs li { flex: none; height: auto !important; min-height: 52px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 10px 14px; }
  .cf-stairs__n { font-size: 24px; min-width: 20px; }
  .cf-stairs li:nth-child(1) { width: 52%; }
  .cf-stairs li:nth-child(2) { width: 64%; }
  .cf-stairs li:nth-child(3) { width: 76%; }
  .cf-stairs li:nth-child(4) { width: 88%; }
  .cf-stairs li:nth-child(5) { width: 100%; }
}

/* Petites étapes (accueil) */
.cf-step { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; background: var(--tone-bg); }
.cf-step__n { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tone-ink); }
.cf-step__t { font-size: 18px; font-weight: 800; line-height: 1.3; }
.cf-step.t-navy { background: var(--block); color: var(--white); }
.cf-step.t-navy .cf-step__n { color: var(--orange); }
.cf-step.t-navy .cf-text { color: var(--mist); }

/* Étapes et phases détaillées (lignes en 3 colonnes) */
.cf-row-card { display: flex; flex-wrap: wrap; gap: 18px 28px; background: var(--surface); border-radius: 18px; padding: clamp(20px, 2.8vw, 28px); }
.cf-row-card > * { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-row-card > .cf-row-card__main { gap: 8px; flex-basis: 240px; }
.cf-row-card > .cf-row-card__wide { flex-basis: 520px; }
.cf-row-card__n { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tone-ink); }
.cf-row-card__n--case { text-transform: none; letter-spacing: 0; font-size: 15px; }
.cf-row-card.t-navy { background: var(--block); color: var(--white); }
.cf-row-card.t-navy .cf-row-card__n, .cf-row-card.t-navy .cf-list__mark { color: var(--orange); }
.cf-row-card.t-navy .cf-text { color: var(--mist); }
.cf-row-card.t-navy .cf-label { color: var(--fog); }

/* Frise (accueil) */
.cf-timeline { margin: 0; padding: 0; list-style: none; }
.cf-timeline li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cf-timeline li:last-child { border-bottom: 0; }
.cf-timeline__date { flex: 0 0 120px; font-size: 15px; font-weight: 800; color: var(--tone-ink); }
.cf-timeline__text { flex: 1 1 260px; font-size: 17px; font-weight: 600; }

/* Liste à pictos (situations) */
.cf-checklist { margin: 0; padding: 0; list-style: none; }
.cf-checklist li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 18px; line-height: 1.5; }
.cf-checklist li:last-child { border-bottom: 0; }
.cf-checklist svg { flex: none; margin-top: 1px; color: var(--accent); }

/* Comparaison démarche classique / Pragmatic Process */
.cf-compare__steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.cf-compare__steps li { counter-increment: etape; padding: 14px 18px; border-radius: var(--radius-s); background: var(--surface-muted); font-weight: 700; }
.cf-compare__steps li::before { content: counter(etape) " · "; }
.cf-card--navy .cf-compare__steps li { color: var(--navy); font-weight: 800; }
.cf-card--navy .cf-compare__steps li:nth-child(1) { background: var(--coral); }
.cf-card--navy .cf-compare__steps li:nth-child(2) { background: var(--orange); }
.cf-card--navy .cf-compare__steps li:nth-child(3) { background: var(--yellow); }

/* Pictogrammes */
.cf-icon { flex: none; color: var(--accent); }

/* Offre : deux modes d'intervention comparés ligne à ligne (sous-grille) */
.cf-offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cf-offer__mode {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
  border-radius: var(--radius-l); padding: clamp(20px, 2.8vw, 32px); min-width: 0;
}
.cf-offer__mode--conseil { background: var(--block); color: var(--white); }
.cf-offer__mode--regie { background: var(--surface-alt); }
.cf-offer__head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.cf-offer__badge { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--pill); }
.cf-offer__mode--conseil .cf-offer__badge { background: var(--orange); color: var(--navy); }
.cf-offer__mode--regie .cf-offer__badge { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.cf-offer__pitch { font-size: 18px; line-height: 1.5; font-weight: 600; }
.cf-offer__row, .cf-offer__extra { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--border-strong); }
.cf-offer__mode--conseil .cf-offer__row, .cf-offer__mode--conseil .cf-offer__extra { border-top-color: rgba(255, 255, 255, 0.16); }
.cf-offer__row p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.cf-offer__mode--conseil .cf-offer__row p { color: var(--mist); }
.cf-offer__label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.cf-offer__mode--conseil .cf-offer__label { color: var(--orange); }
.cf-offer__mode > .cf-link { align-self: end; margin-top: 8px; }
.cf-offer__mode--conseil .cf-link { color: var(--orange); }
.cf-offer__mode--conseil .cf-link:hover { color: var(--white); }
.cf-offer__steps { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.cf-offer__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--tone); color: var(--tone-on); font-weight: 700; font-size: 15px; }
.cf-offer__steps li.t-navy { background: var(--block-deep); }
.cf-offer__steps li > span { font-weight: 800; }
.cf-offer__people { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.cf-offer__people li { display: flex; align-items: center; gap: 14px; }
.cf-offer__people strong { display: block; font-size: 16px; }
.cf-offer__role { display: block; font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.cf-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; object-position: center 10%; background: var(--tone); color: var(--tone-on); font-weight: 800; font-size: 18px; }
img.cf-avatar { background: linear-gradient(165deg, var(--tone-light), var(--tone)); }
@media (max-width: 860px) {
  .cf-offer { grid-template-columns: minmax(0, 1fr); }
}

/* Emplacements de contenus à fournir */
.cf-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  border-radius: 18px; background: var(--tone-bg, var(--bg-alt)); color: var(--tone-ink, var(--text-muted));
  font-size: 15px; font-weight: 700; border: 2px dashed currentColor;
}
.cf-ratio-portrait { aspect-ratio: 4 / 5; }
.cf-ratio-wide { aspect-ratio: 16 / 10; }
.cf-ratio-video { aspect-ratio: 16 / 9; }
/* Portrait détouré intégré à un fond « studio » :
   - fond : dégradé du ton + zone plus claire derrière le sujet (comme un spot sur une toile de fond)
   - photo : ombre portée douce sur le fond
   - par-dessus l'ensemble : teinte du ton en lumière douce, vignettage et grain communs,
     pour que photo et fond partagent la même lumière et la même texture */
.cf-photo-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 70%),
    linear-gradient(165deg, var(--tone-light, var(--sand)) 0%, var(--tone, var(--slate)) 100%);
  box-shadow: 0 24px 48px -24px rgba(42, 58, 75, 0.45);
}
.cf-photo-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 25%, rgba(0, 0, 0, 0) 55%, rgba(20, 28, 40, 0.35) 100%),
    linear-gradient(165deg, var(--tone-light, var(--sand)) 0%, var(--tone, var(--slate)) 100%);
  mix-blend-mode: soft-light; opacity: 0.55;
}
.cf-photo-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  /* grain photo très léger, commun au fond et au sujet */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: 0.35;
}
.cf-photo-frame img {
  position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: drop-shadow(0 14px 22px rgba(20, 28, 40, 0.28));
}
.cf-photo-frame--empty { display: flex; align-items: center; justify-content: center; color: var(--tone-on, var(--white)); font-size: 15px; font-weight: 700; }
.cf-photo-frame__initial { font-size: clamp(96px, 12vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.9); text-shadow: 0 8px 24px rgba(42, 58, 75, 0.18); }

/* Visuel décliné en version claire et sombre */
.cf-when-light { display: var(--show-light); }
.cf-when-dark { display: var(--show-dark); }
.cf-visual { width: 100%; height: auto; }

/* Figures (schémas) */
.cf-figure { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border); background: var(--figure-bg); }
.cf-figure__img { width: 100%; height: auto; }
/* Schéma agrandissable : loupe au survol, ouverture en plein écran (lightbox.js) */
.cf-figure__img--zoomable { cursor: zoom-in; }
.cf-figure__img--zoomable:focus-visible { outline-offset: -4px; }
.cf-no-scroll { overflow: hidden; }
.cf-lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(15, 22, 30, 0.94); display: none; align-items: center; justify-content: center;
}
.cf-lightbox[open] { display: flex; }
.cf-lightbox::backdrop { background: rgba(15, 22, 30, 0.94); }
.cf-lightbox__img {
  max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); width: auto; height: auto;
  object-fit: contain; border-radius: 8px; background: #FAF8F5; touch-action: pinch-zoom;
}
.cf-lightbox__close {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--navy);
  font: inherit; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Onglets et filtres */
.cf-tabs, .cf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-tab, .cf-chip {
  font: inherit; font-size: 15px; font-weight: 700; padding: 11px 18px; min-height: 44px;
  border-radius: var(--pill); cursor: pointer; background: var(--surface); color: var(--text); border: 2px solid var(--border-strong);
}
.cf-tab:hover, .cf-chip:hover { border-color: var(--text); }
.cf-tab[aria-selected="true"], .cf-chip[aria-pressed="true"] { background: var(--btn-strong-bg); color: var(--btn-strong-text); border-color: var(--btn-strong-bg); }
/* Galerie des schémas : barre précédent / suivant (mobile uniquement) */
.cf-gallery-nav { display: none; }
@media (max-width: 720px) {
  /* Onglets sur une seule ligne qui défile au doigt, plus compacts */
  .cf-tabs--gallery { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); gap: 8px; }
  .cf-tabs--gallery::-webkit-scrollbar { display: none; }
  .cf-tabs--gallery .cf-tab { flex: none; scroll-snap-align: center; white-space: nowrap; font-size: 14px; padding: 8px 14px; min-height: 40px; }
  .cf-gallery-nav:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; }
  .cf-gallery-nav__btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
  .cf-gallery-nav__btn:hover { border-color: var(--text); }
  .cf-gallery-nav__status { margin: 0; text-align: center; font-size: 14px; line-height: 1.3; color: var(--text-muted); }
  .cf-gallery-nav__count { display: block; font-weight: 800; color: var(--text); }
}

/* Citation */
.cf-quote { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; border-radius: 18px; background: var(--block-deep); }
.cf-quote p { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; font-style: italic; }
.cf-quote footer { font-size: 15px; font-weight: 700; color: var(--orange); }
.cf-testimonial { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cf-testimonial svg { color: var(--coral); }
.cf-testimonial p { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; font-weight: 500; }
.cf-testimonial footer { font-size: 16px; font-weight: 700; color: var(--text-muted); }
.cf-testimonials { display: grid; gap: clamp(28px, 4vw, 48px); }
.cf-testimonials--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.cf-testimonials--2 .cf-testimonial p { font-size: clamp(19px, 1.9vw, 22px); }

/* Convictions (bordure haute colorée) */
.cf-conviction { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--tone); }
.cf-conviction .cf-text { color: var(--fog); }

/* Équipe : carte courte (accueil) et profil détaillé */
.cf-person { display: flex; flex-direction: column; gap: 16px; }
.cf-person__role { font-size: 15px; font-weight: 700; color: var(--tone-ink); }
.cf-profile { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 44px); }
.cf-profile__aside { flex: 0 1 340px; min-width: 260px; display: flex; flex-direction: column; gap: 18px; }
.cf-profile__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cf-profile__kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tone-ink); }
.cf-profile__title { font-size: 19px; font-weight: 600; line-height: 1.45; }

/* Étapes d'une mission en régie */
.cf-process { margin: 0; padding: 0; list-style: none; }
.cf-process li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 4px solid var(--tone); }
.cf-process .cf-num { font-size: 32px; }

/* Articles */
.cf-article { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.cf-article__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #FFFFFF; } /* fond blanc quel que soit le thème : PNG transparents et JPEG à fond blanc s'alignent */
.cf-article .cf-placeholder { border-radius: 0; border: 0; aspect-ratio: 16 / 9; }
.cf-article__body { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.cf-article__source { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tone-ink); }
.cf-article__title { font-size: 19px; line-height: 1.35; }

/* Grille « bento » des missions : tailles et styles variés pour rompre la monotonie */
.cf-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.cf-bento__item {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: clamp(18px, 2vw, 24px); border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--border);
}
.cf-bento__item--large { grid-column: span 2; }
.cf-bento__item--xl { grid-column: span 2; grid-row: span 2; padding: clamp(22px, 3vw, 36px); gap: 14px; }
.cf-bento__item--teinte { background: var(--tone-bg); border-color: transparent; }
.cf-bento__item--marine { background: radial-gradient(90% 70% at 100% 0%, rgba(248, 175, 70, 0.22), rgba(248, 175, 70, 0) 60%), radial-gradient(70% 60% at 0% 100%, rgba(242, 107, 101, 0.16), rgba(242, 107, 101, 0) 60%), var(--block); border-color: transparent; color: var(--white); }
.cf-bento__item--marine .cf-article__source { color: var(--orange); }
.cf-bento__item--marine .cf-text { color: var(--mist); }
.cf-bento__title { font-size: 18px; line-height: 1.35; }
.cf-bento__item--xl .cf-bento__title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.cf-bento__item--xl .cf-text { font-size: 16px; }
.cf-bento__figure { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* Chiffre « surligné au feutre » : texte marine, trait de surligneur de la couleur de la mission */
.cf-bento__value {
  align-self: flex-start; margin-left: -6px; padding: 0 6px;
  font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; line-height: 1.05; color: var(--text);
  --marker: var(--tone-bg);
  --marker: color-mix(in srgb, var(--tone) 55%, transparent);
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.cf-bento__label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cf-bento__item--xl .cf-bento__value { font-size: clamp(56px, 6vw, 84px); }
.cf-bento__item--marine.cf-bento__item--xl .cf-bento__value { color: var(--orange); }
.cf-bento__item--marine .cf-bento__label { color: var(--fog); }
.cf-bento__figure + .cf-bento__title { margin-top: 4px; }
.cf-bento__link { align-self: flex-start; margin-top: auto; min-height: 36px; }
.cf-bento__details + .cf-bento__link { margin-top: 6px; }
/* Niveau de détail selon la largeur de la carte (pas de l'écran) : chaque carte est un conteneur */
.cf-bento__item { container-type: inline-size; }
.cf-bento__details { display: none; margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.cf-bento__details li { position: relative; padding-left: 18px; }
.cf-bento__details li + li { margin-top: 6px; }
.cf-bento__details li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.cf-bento__item--marine .cf-bento__details { color: var(--mist); border-top-color: rgba(255, 255, 255, 0.16); }
.cf-bento__item--marine .cf-bento__details li::before { background: var(--orange); }
.cf-bento__details.cf-details-always { display: block; margin-top: 4px; }
@container (min-width: 440px) {
  .cf-bento__details { display: block; }
}
@media (max-width: 960px) {
  .cf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-bento__item--xl { grid-row: auto; }
}
@media (max-width: 600px) {
  .cf-bento { grid-template-columns: minmax(0, 1fr); }
  .cf-bento__item--large, .cf-bento__item--xl { grid-column: auto; }
}

/* Étapes en lignes (page Catena) : 3 colonnes alignées d'une ligne à l'autre (sous-grille) */
.cf-steps { display: grid; grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.3fr) minmax(0, 1.6fr); column-gap: clamp(20px, 3vw, 40px); }
.cf-steps__row {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: start;
  padding: 22px 0 22px 18px; border-top: 1px solid var(--border); border-left: 4px solid var(--tone);
}
.cf-steps__row:last-child { border-bottom: 1px solid var(--border); }
.cf-steps__head { display: flex; align-items: baseline; gap: 12px; }
.cf-steps__n { font-size: 34px; font-weight: 800; line-height: 1; color: var(--tone-ink); }
.cf-steps__text { margin: 0; }
.cf-steps .cf-steps__points { margin: 0; padding-top: 0; border-top: 0; }
@media (max-width: 860px) {
  .cf-steps { grid-template-columns: minmax(0, 1fr); }
  .cf-steps__row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
}

/* Clients */
.cf-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; width: 100%; margin: 0; padding: 0; list-style: none; font-size: 22px; font-weight: 700; color: var(--text-muted); }
.cf-logos li { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 64px; }
.cf-logos__img { height: 28px; width: auto; max-width: 132px; object-fit: contain; opacity: 0.85; filter: var(--logo-filter); }
.cf-logos__img--carre { height: 50px; }
.cf-logos__name { font-size: 20px; }
.cf-logos .cf-logos__break { flex: 0 0 100%; min-height: 0; height: 0; margin-top: -12px; } /* saut de ligne posé par logos.js (annule l'écart vertical) */

/* Contact */
.cf-contact-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 17px; font-weight: 600; }
.cf-contact-list li, .cf-contact-list a { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; }
.cf-contact-list a { color: var(--text); text-decoration: none; }
.cf-contact-list a:hover { color: var(--accent); }

/* Bandeau d'appel à l'action */
.cf-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cf-cta > :first-child { flex: 1 1 520px; }

/* FAQ */
.cf-faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.cf-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: 19px; font-weight: 700; cursor: pointer; list-style: none; }
.cf-faq summary::-webkit-details-marker { display: none; }
.cf-faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s ease; }
.cf-faq details[open] summary::after { transform: rotate(45deg); }
.cf-faq p { margin-top: 12px; color: var(--text-muted); }

/* Fil d'Ariane */
.cf-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-muted); }
.cf-breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.cf-breadcrumb a { color: var(--text-muted); }

/* 9. Pages ----------------------------------------------------------------- */

/* Bibliothèque */
.cf-cover {
  flex: 0 0 104px; height: 152px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 12px; border-radius: 4px 10px 10px 4px; background: var(--tone); color: var(--tone-on);
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.12);
}
.cf-cover__title { font-size: 15px; font-weight: 800; line-height: 1.15; overflow-wrap: break-word; }
.cf-cover__author { font-size: 11px; font-weight: 700; }
.cf-cover__theme { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.cf-cover--xl { flex: 0 0 220px; height: 320px; padding: 26px 22px; border-radius: 6px 14px 14px 6px; box-shadow: inset 10px 0 0 rgba(0, 0, 0, 0.12); }
.cf-cover--xl .cf-cover__title { font-size: 30px; line-height: 1.05; }
.cf-cover--xl .cf-cover__author { font-size: 14px; font-weight: 600; }
.cf-bookcover { flex: 0 0 104px; width: 104px; height: 156px; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 6px 16px rgba(42, 58, 75, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.06); background: var(--surface-alt); }
.cf-bookcover--xl { flex: 0 0 220px; width: 220px; height: 334px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.cf-book { display: flex; gap: 18px; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.cf-book__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cf-book__tags { gap: 6px; }
.cf-book__title { font-size: 19px; line-height: 1.3; }
.cf-book__by { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--text-muted); }
@media (max-width: 420px) {
  .cf-book { flex-direction: column; }
  .cf-cover:not(.cf-cover--xl), .cf-bookcover:not(.cf-bookcover--xl) { flex-basis: auto; width: 104px; }
}

/* Mentions légales */
.cf-prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; }
.cf-prose h2 { margin-top: 16px; font-size: 24px; }

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 480px) {
  /* En-tête compact : le bouton Menu devient une icône seule, le sélecteur de thème rétrécit */
  .cf-header__tools { gap: 6px; }
  .cf-menu-btn { width: 44px; justify-content: center; padding: 0; }
  .cf-menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cf-theme__btn { width: 30px; height: 30px; }
  .cf-logo { gap: 9px; }
  .cf-logo__icon { width: 22px; height: 41px; }
}
@media (max-width: 360px) {
  /* Très petits écrans (iPhone SE 1re génération…) */
  .cf-header__inner { gap: 8px; }
  .cf-logo__name { font-size: 23px; }
  .cf-logo__icon { width: 19px; height: 35px; }
  .cf-theme { padding: 2px; }
  .cf-theme__btn { width: 28px; height: 28px; }
  .cf-menu-btn { width: 40px; min-height: 40px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .cf-breadcrumb { display: none; } /* fil d'Ariane masqué sur mobile (cibles trop petites) */
  /* Livre fondateur : couverture centrée et un peu plus petite, sans recadrage */
  .cf-bookcover--xl { flex: 0 0 auto; width: 180px; height: auto; margin-inline: auto; }
  .cf-cover--xl { margin-inline: auto; }
  /* Chiffres des profils : avec un nombre impair, le premier prend toute la largeur */
  .cf-grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-grid--mini > :first-child:nth-last-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
  .cf-grid--mini > :first-child:nth-last-child(odd) .cf-stat__value { flex: none; font-size: 38px; }
  .cf-grid--mini > :first-child:nth-last-child(odd) .cf-stat__label { flex: 1 1 auto; font-size: 15px; }
  .cf-checklist li { font-size: 17px; }
  .cf-quote { padding: 24px; }
}

/* Changement de thème : fondu enchaîné (View Transitions), sinon transition des couleurs */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }
.cf-theme-fade, .cf-theme-fade *, .cf-theme-fade *::before, .cf-theme-fade *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, filter .35s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
