/* ==========================================================================
   AFFEL GROUP — feuille de style principale
   Concept « papier à en-tête » : marge de registre, filets marine de 1 px,
   titres Cormorant italiques, étiquettes Manrope en capitales espacées.
   Aucune couleur hors charte, aucun dégradé, aucune ombre portée.
   ========================================================================== */

/* ---- Polices auto-hébergées ------------------------------------------- */
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.9b8a16c9964e.woff2") format("woff2"); 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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-500-italic.9ee79c50a32b.woff2") format("woff2"); 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; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.8e2daeb2e7cb.woff2") format("woff2"); 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: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-600-italic.85778007deb5.woff2") format("woff2"); 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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.f95b8f975304.woff2") format("woff2"); 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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-ext-500-normal.8230a231d5bf.woff2") format("woff2"); 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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.58d382c3e448.woff2") format("woff2"); 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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-ext-600-normal.3b48de0765e1.woff2") format("woff2"); 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; }

/* ---- Jetons ------------------------------------------------------------ */
:root {
  --navy: #0B2545;
  --ink: #111111;
  --steel: #8C97A8;
  --slate: #5B6472;
  --ivory: #F5F4F0;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-text: "Manrope", "Segoe UI", system-ui, sans-serif;

  --gutter: 16px;
  --container: 1280px;
  --index-col: 0px;            /* colonne de la marge de registre (desktop) */
  --header-h: 72px;
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --rule: 1px solid var(--navy);
  --rule-soft: 1px solid var(--steel);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-reveal: 500ms;
  --t-ui: 220ms;
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --index-col: 168px; --header-h: 88px; } }

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: var(--rule); margin: 0; }
::selection { background: var(--navy); color: var(--white); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .nav-panel :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Typographie ------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-style: italic; color: var(--navy); margin: 0; text-wrap: balance; }
h1, .h1 { font-weight: 600; font-size: clamp(2.6rem, 1.55rem + 4.6vw, 5.6rem); line-height: 1.02; letter-spacing: -.012em; }
h2, .h2 { font-weight: 500; font-size: clamp(2.05rem, 1.45rem + 2.5vw, 3.5rem); line-height: 1.06; letter-spacing: -.006em; }
h3, .h3 { font-weight: 500; font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); line-height: 1.15; }
h4 { font-weight: 500; font-size: 1.3rem; line-height: 1.2; }

.label {
  font-family: var(--font-text); font-style: normal; font-weight: 600;
  font-size: .72rem; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase;
  color: var(--slate);
}
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--slate); max-width: 38em; }
.muted { color: var(--slate); }

/* ---- Mise en page ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * .6); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .label, .section--navy .muted, .section--navy .lead { color: var(--steel); }
.section--white + .section--white, .section--ivory + .section--ivory { padding-top: 0; }

/* Marge de registre : un filet vertical marine accompagne la lecture */
.register { position: relative; }
@media (min-width: 1024px) {
  .register::before {
    content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; width: 1px; background: var(--navy);
    left: max(calc(var(--gutter) + var(--index-col) - 1px), calc((100% - var(--container)) / 2 + var(--gutter) + var(--index-col) - 1px));
  }
  .register > .section--navy, .register > .band, .register > .hero { position: relative; z-index: 3; }
}

/* Une section = un index dans la marge + un contenu */
.sheet { display: grid; gap: 1.5rem; position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .sheet { grid-template-columns: var(--index-col) minmax(0, 1fr); gap: 0; }
  .sheet > .sheet__body { padding-left: clamp(2rem, 4vw, 4.5rem); }
}
.sheet__index { display: flex; align-items: baseline; gap: .75rem; }
.sheet__index .num { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--navy); }
.section--navy .sheet__index .num { color: var(--white); }
@media (min-width: 1024px) {
  .sheet__index { flex-direction: column; gap: .35rem; padding-top: .55rem; padding-right: 1.5rem; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .sheet__index::after { content: ""; width: 28px; height: 1px; background: currentColor; margin-top: .5rem; color: var(--navy); }
  .section--navy .sheet__index::after { color: var(--steel); }
}

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 52rem; }
.section-head--split { max-width: none; }
.section-head--top { align-items: start !important; margin-bottom: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
}

.grid { display: grid; gap: 1px; }
@media (min-width: 700px)  { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid--gap { gap: clamp(1.25rem, 1rem + 1vw, 2rem); }

/* ---- Boutons et liens -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 52px; padding: .9rem 1.6rem; border: 1px solid var(--navy);
  background: var(--navy); color: var(--white); text-decoration: none; cursor: pointer;
  font-family: var(--font-text); font-weight: 600; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-dark .btn, .section--navy .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.on-dark .btn:hover, .section--navy .btn:hover { background: transparent; color: var(--white); }
.on-dark .btn--ghost, .section--navy .btn--ghost { background: transparent; color: var(--white); border-color: var(--steel); }
.on-dark .btn--ghost:hover, .section--navy .btn--ghost:hover { border-color: var(--white); }
.btn .arrow, .link-arrow .arrow { display: inline-block; transition: transform var(--t-ui) var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow, .card:hover .link-arrow .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none;
  font-weight: 600; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  padding-block: .4rem; border-bottom: var(--rule);
}
.section--navy .link-arrow { color: var(--white); border-color: var(--steel); }

/* ---- En-tête ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease);
}
.site-header.is-compact { border-bottom-color: var(--navy); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); transition: height 300ms var(--ease); }
.site-header.is-compact .site-header__inner { height: 64px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; transition: height 300ms var(--ease); }
@media (min-width: 1024px) { .brand img { height: 50px; } }
.site-header.is-compact .brand img { height: 36px; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.main-nav a {
  position: relative; display: inline-block; padding-block: .5rem; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.header-cta { display: none; }

.lang-switch { display: flex; align-items: center; gap: .15rem; font-weight: 600; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.lang-switch a, .lang-switch span { padding: .5rem .35rem; text-decoration: none; }
.lang-switch [aria-current="true"] { color: var(--navy); border-bottom: var(--rule); padding-bottom: .3rem; }
.lang-switch a { color: var(--slate); }
.lang-switch a:hover { color: var(--navy); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0 .25rem; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--navy);
}
.nav-toggle__bars { position: relative; width: 22px; height: 9px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform var(--t-ui) var(--ease); }
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1024px) {
  .main-nav, .header-cta { display: block; }
  .header-tools > .nav-toggle { display: none; }
}

/* Menu mobile plein écran marine */
.nav-panel {
  position: fixed; inset: 0; z-index: 60; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 2rem; overflow-y: auto;
}
.nav-panel[hidden] { display: none; }
.nav-panel__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--steel); }
.nav-panel__top img { height: 40px; width: auto; }
.nav-panel .nav-toggle { color: var(--white); }
.nav-panel ul { list-style: none; margin-top: 2rem; }
.nav-panel li { border-bottom: 1px solid var(--slate); }
.nav-panel li a { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; text-decoration: none; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1.15; }
.nav-panel li a span { font-family: var(--font-text); font-style: normal; font-weight: 600; font-size: .7rem; letter-spacing: .22em; color: var(--steel); }
.nav-panel__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 1.25rem; }
.nav-panel__foot .lang-switch a { color: var(--steel); }
.nav-panel__foot .lang-switch [aria-current="true"] { color: var(--white); border-color: var(--white); }
.nav-panel__foot .muted { color: var(--steel); }
body.nav-is-open { overflow: hidden; }

/* ---- Hero d'accueil ---------------------------------------------------- */
.hero { position: relative; border-bottom: var(--rule); overflow-x: clip; }
.hero__grid { display: grid; }
.hero__text { padding-block: clamp(3rem, 2rem + 6vw, 7.5rem) clamp(2.5rem, 2rem + 3vw, 5rem); position: relative; z-index: 1; }
.hero__eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--navy); }
.hero h1 { max-width: 11.5em; }
.hero__subtitle { margin-top: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.hero .actions { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.hero__panel {
  position: relative; background: var(--navy); color: var(--white);
  display: grid; grid-template-rows: 1fr auto; min-height: 260px;
  margin-inline: calc(var(--gutter) * -1); padding: 2rem var(--gutter);
}
.hero__mono { align-self: center; justify-self: center; width: min(52vw, 220px); }
.hero__caption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--slate); }
.hero__caption .label { color: var(--steel); }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); min-height: min(80vh, 760px); }
  .hero__text { padding-left: calc(var(--index-col) + clamp(2rem, 4vw, 4.5rem)); padding-right: 3rem; align-self: center; }
  /* le panneau marine déborde jusqu'au bord droit de la fenêtre (rogné par .hero) */
  .hero__panel { margin: 0 calc(var(--gutter) * -1 - max(0px, (100vw - var(--container)) / 2)) 0 0; padding: 3rem clamp(2rem, 4vw, 4rem); min-height: 100%; }
  .hero__mono { width: min(70%, 300px); }
}

/* Monogramme : les deux lettres glissent l'une vers l'autre (600 ms) */
.mono-f, .mono-l, .mono-dot { transform-box: view-box; }
.motion .animate-mono .mono-f { animation: mono-f 600ms var(--ease) both; }
.motion .animate-mono .mono-l { animation: mono-l 600ms var(--ease) both; }
.motion .animate-mono .mono-dot { animation: mono-dot 300ms 450ms var(--ease) both; }
@keyframes mono-f { from { transform: translateX(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mono-l { from { transform: translateX(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mono-dot { from { opacity: 0; } to { opacity: 1; } }

/* ---- En-tête de page intérieure --------------------------------------- */
.page-hero { border-bottom: var(--rule); padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { max-width: 14em; }
.page-hero .lead { margin-top: 1.5rem; }

/* ---- Pages d'erreur ------------------------------------------------------ */
.error-page { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 6vw, 8rem); }
.error-page .sheet__index { color: var(--navy); }
.error-code {
  margin: 0 0 clamp(1rem, .5rem + 2vw, 2rem);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(6.5rem, 4rem + 12vw, 13rem); line-height: .8; letter-spacing: -.02em;
  font-variant-numeric: lining-nums; color: var(--navy);
}
.error-page h1 { max-width: 14em; }
.error-page .lead { margin-top: 1.25rem; }
.error-links { margin-top: clamp(3rem, 2rem + 4vw, 5rem); padding-top: 1.5rem; border-top: var(--rule); max-width: 46rem; }
.error-links ul { list-style: none; display: grid; column-gap: 2.5rem; }
@media (min-width: 640px) { .error-links ul { grid-template-columns: 1fr 1fr; } }
.error-links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--steel); text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--navy);
}
.error-links a:hover { border-bottom-color: var(--navy); }
.error-links .arrow { display: inline-block; font-family: var(--font-text); font-style: normal; font-size: 1rem; transition: transform var(--t-ui) var(--ease); }
.error-links a:hover .arrow { transform: translateX(4px); }
.error-minimal .site-header { border-bottom-color: var(--navy); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.breadcrumb li { display: flex; gap: .5rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--steel); }
.breadcrumb a { text-decoration: none; color: var(--slate); }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* ---- Cartes ------------------------------------------------------------ */
.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; height: 100%;
  background: var(--white); border: var(--rule-soft); padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
  text-decoration: none; color: inherit;
}
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-reveal) var(--ease);
}
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card__num { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--navy); }
.card__icon { width: 40px; height: 40px; color: var(--navy); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
.card p { color: var(--slate); margin: 0; }
.card__foot { margin-top: auto; padding-top: 1rem; }
.card__media { margin: calc(clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem) * -1) calc(clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem) * -1) .5rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ivory); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card:hover .card__media img { transform: scale(1.025); }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

/* Liste « registre » : lignes séparées par des filets */
.ledger { list-style: none; border-top: var(--rule); }
.ledger > li { border-bottom: var(--rule-soft); }
.ledger__row { display: grid; gap: .5rem 2rem; padding-block: 1.5rem; text-decoration: none; }
@media (min-width: 800px) { .ledger__row { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: baseline; } }

/* ---- Chiffres ---------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; border-top: var(--rule); padding-top: 1.25rem; }
.stat dd { order: -1; margin: 0; }
.section--navy .stat { border-top-color: var(--steel); }
.stat__value { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem); line-height: 1; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.section--navy .stat__value { color: var(--white); }
.stat__label { display: block; margin-top: .75rem; }

/* ---- Piliers / étapes -------------------------------------------------- */
.pillars { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--steel); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pillars--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar { padding: 2rem 0; border-bottom: 1px solid var(--slate); }
@media (min-width: 800px) {
  .pillar { padding: 2.25rem 2rem 2.5rem 0; }
  .pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--slate); }
  .pillars:not(.pillars--4) .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (min-width: 1100px) { .pillars--4 .pillar:nth-child(odd) { padding-left: 2rem; border-left: 1px solid var(--slate); } .pillars--4 .pillar:first-child { padding-left: 0; border-left: 0; } }
@media (min-width: 1100px) {
  .pillars.pillars--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars.pillars--3 .pillar:nth-child(n) { padding-left: 2rem; border-left: 1px solid var(--slate); }
  .pillars.pillars--3 .pillar:nth-child(3n+1) { padding-left: 0; border-left: 0; }
}
.pillar__num { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--steel); }
.pillar h3 { margin-bottom: .75rem; }
.pillar p { margin: 0; color: var(--steel); }
.section--ivory .pillar p, .section--white .pillar p { color: var(--slate); }

/* ---- Bandeau d'appel --------------------------------------------------- */
.band { background: var(--navy); color: var(--white); padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.band__inner { display: grid; gap: 2rem; }
.band h2 { color: var(--white); max-width: 16em; }
.band .lead { color: var(--steel); }
.section--navy + .band { border-top: 1px solid var(--slate); }
@media (min-width: 900px) { .band__inner { grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 4rem; } }

/* ---- Texte riche ------------------------------------------------------- */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1em; }
.prose > p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); margin-top: 2em; }
.prose h3 { margin-top: 1.8em; }
.prose a { color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.25rem; }
/* Étapes numérotées (« Notre démarche ») : numéros en Cormorant, filet fin */
.prose ol { list-style: none; padding-left: 0; counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 3rem; }
.prose ol > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.05em;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.3rem; color: var(--navy);
  font-variant-numeric: lining-nums;
}

/* Page À propos */
.statement {
  margin: 0; max-width: 24em;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3.1rem); line-height: 1.18; color: var(--white);
}
.values-title { margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.25rem; color: var(--steel); }
.founder { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 4.5rem; align-items: start; } }
.founder__media { aspect-ratio: 4 / 5; max-width: 22rem; background: var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.founder__media img { width: 100%; height: 100%; object-fit: cover; }
.founder__mono { width: 46%; height: auto; }

/* Questions fréquentes : <details> natif, accessible au clavier sans JavaScript */
.faq { max-width: 52rem; border-top: var(--rule); }
.faq__item { border-bottom: var(--rule-soft); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.05rem; line-height: 1.45; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: 0 0 auto; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--navy);
  transition: transform var(--t-ui) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--navy); }
.faq__answer { padding: 0 3rem 1.4rem 0; color: var(--slate); max-width: 44rem; }
.faq__answer p { margin: 0; }
.faq__answer p + p { margin-top: .8em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 2em 0; padding: .25rem 0 .25rem 1.5rem; border-left: var(--rule); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--navy); }
.prose img { margin-block: 2em; }
.prose hr { margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: var(--rule-soft); }
.prose pre, .prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--white); }
.prose pre { padding: 1rem; overflow-x: auto; border: var(--rule-soft); }

/* ---- Fiche détail ------------------------------------------------------ */
.detail { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(0, 1fr) 18rem; gap: 5rem; } }
.facts { list-style: none; border-top: var(--rule); align-self: start; }
.facts li { padding: 1rem 0; border-bottom: var(--rule-soft); display: grid; gap: .25rem; }
.facts strong { font-weight: 500; }
@media (min-width: 1024px) { .facts { position: sticky; top: calc(var(--header-h) + 2rem); } }
.deliverables { list-style: none; display: grid; gap: 0; border-top: var(--rule-soft); }
.deliverables li { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: var(--rule-soft); }
.deliverables li::before { content: ""; flex: 0 0 18px; height: 1px; background: var(--navy); margin-top: .85em; }
.cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--white); border: var(--rule-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--rule-soft); }
.gallery figcaption { margin-top: .5rem; font-size: .9rem; color: var(--slate); }

/* ---- Filtres ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; list-style: none; }
.filters a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border: var(--rule-soft); text-decoration: none; background: var(--white);
  font-weight: 600; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--slate);
}
.filters a:hover { border-color: var(--navy); color: var(--navy); }
.filters a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: var(--rule); }

/* ---- Formulaires ------------------------------------------------------- */
.form { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.field { display: grid; gap: .5rem; }
.field label { font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; background: var(--white); border: 1px solid var(--steel); border-radius: 0;
  font-size: 1rem; transition: border-color var(--t-ui) var(--ease);
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.field__error { font-size: .9rem; color: var(--ink); font-weight: 600; display: flex; gap: .5rem; }
.field__error::before { content: "—"; color: var(--navy); }
.field__help { font-size: .9rem; color: var(--slate); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: var(--rule); border-left-width: 4px; background: var(--white); padding: 1.5rem; }
.notice h3 { margin-bottom: .5rem; }
.htmx-request .btn { opacity: .7; pointer-events: none; }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 5rem; } }
.coords { list-style: none; border-top: var(--rule); }
.coords li { padding: 1.25rem 0; border-bottom: var(--rule-soft); display: grid; gap: .3rem; }
.coords a { text-decoration: none; }
address { font-style: normal; }
.coords a:hover { text-decoration: underline; }

/* ---- Pied de page ------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--white); padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 2rem; position: relative; z-index: 1; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .label { color: var(--steel); margin-bottom: 1rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--slate); }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p {
  margin-top: 1.5rem; max-width: 22rem; color: var(--white);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4rem); line-height: 1.35;
}
.footer-col { font-size: .9375rem; line-height: 1.8; }
.footer-col ul { list-style: none; display: grid; gap: .45rem; }
.footer-col address { font-style: normal; color: var(--white); display: grid; justify-items: start; }
.footer-phone {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.5rem, 1.35rem + .6vw, 1.75rem); line-height: 1.2; margin-bottom: .35rem;
  font-variant-numeric: lining-nums;
}
.footer-address { margin-top: .9rem; font-size: .875rem; line-height: 1.7; color: var(--steel); }
/* Colonnes flexibles : la grille s'adapte au nombre de colonnes réellement affichées. */
@media (min-width: 800px) {
  .footer-top { display: flex; gap: 3rem; }
  .footer-top > * { flex: 1 1 0; min-width: 0; }
  .footer-brand { flex-grow: 1.4; }
  .footer-contact { flex-grow: 1.4; }
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: .85rem; color: var(--steel); }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }

/* ---- Animations (activées uniquement via .motion sur <html>) ---------- */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.motion .reveal.is-visible { opacity: 1; transform: none; }
.motion .reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

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

/* ---- Utilitaires ------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.empty { padding: 3rem 0; color: var(--slate); border-top: var(--rule-soft); }

@media print {
  .site-header, .site-footer, .band, .nav-panel { display: none !important; }
  body { background: var(--white); }
}
