/* ==========================================================================
   Cabinet ASSO — « Éditorial raffiné »
   Fonts: Bodoni Moda and Instrument Sans, self-hosted (SIL Open Font License).
   Layout concept: paper and ink. A 12-column magazine grid used asymmetrically
   (8/4, 5/7, 7/5), hairline rules instead of boxes, Didone display type, and the
   hand-drawn mountain set large like an etched plate.
   One stylesheet, no framework, no build step. Mobile-first.
   ========================================================================== */

/* 0. Fonts (self-hosted: no request to Google Fonts)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/bodoni-moda-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/bodoni-moda-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-normal-latin.woff2") format("woff2");
}

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #072161;          /* brand navy: headings, buttons, links          */
  --navy-700: #0d2f80;      /* hover state of navy surfaces                  */
  --navy-deep: #051848;     /* footer ground                                 */
  --gold: #d4a024;          /* brand gold: hairlines, ornaments, text on navy */
  --gold-300: #e4bb55;      /* hover state of the gold button                */
  --gold-600: #a87d1c;      /* bronze: display text >= 24px on paper only     */
  --gold-700: #85621a;      /* small gold text (labels) on paper             */

  /* Neutrals (warm paper, navy-biased ink) */
  --paper: #fbf8f1;
  --paper-2: #f4eee2;
  --card: #fffdf8;
  --ink: #1f2440;
  --muted: #565c75;
  --rule: #e4ddce;          /* decorative hairline on paper                  */
  --rule-strong: #cfc6b4;
  --field-border: #7a8096;  /* form control border, >= 3:1 on card/paper     */
  --on-navy: #f6f0e4;
  --on-navy-muted: #b9c1d9;
  --rule-on-navy: rgba(246, 240, 228, 0.16);
  --selection: #ebd9a8;
  --error: #a3271f;
  --success: #2e6b3f;

  /* Type */
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "GFS Didot", "Bodoni MT", Georgia, serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --fs-xs: clamp(0.7812rem, 0.7696rem + 0.048vw, 0.8125rem);   /* 12.5 → 13   */
  --fs-sm: clamp(0.9062rem, 0.883rem + 0.095vw, 0.9688rem);    /* 14.5 → 15.5 */
  --fs-base: clamp(1.0625rem, 1.0393rem + 0.095vw, 1.125rem);  /* 17 → 18     */
  --fs-md: clamp(1.1562rem, 1.1098rem + 0.19vw, 1.2812rem);    /* 18.5 → 20.5 */
  --fs-lg: clamp(1.3125rem, 1.2196rem + 0.381vw, 1.5625rem);   /* 21 → 25     */
  --fs-xl: clamp(1.5625rem, 1.3536rem + 0.857vw, 2.125rem);    /* 25 → 34     */
  --fs-2xl: clamp(2rem, 1.5357rem + 1.905vw, 3.25rem);         /* 32 → 52     */
  --fs-3xl: clamp(2.375rem, 1.5393rem + 3.429vw, 4.625rem);    /* 38 → 74     */
  --fs-hero: clamp(2.625rem, 1.3rem + 5.2vw, 5.75rem);         /* 42 → 92     */

  --lh-tight: 1.02;
  --lh-heading: 1.12;
  --lh-body: 1.68;
  --tracking-label: 0.18em;

  /* Space (4px base) */
  --space-1: 0.25rem;  /*   4 */
  --space-2: 0.5rem;   /*   8 */
  --space-3: 0.75rem;  /*  12 */
  --space-4: 1rem;     /*  16 */
  --space-5: 1.5rem;   /*  24 */
  --space-6: 2rem;     /*  32 */
  --space-7: 3rem;     /*  48 */
  --space-8: 4rem;     /*  64 */
  --space-9: 6rem;     /*  96 */
  --space-10: 8rem;    /* 128 */
  --section-y: clamp(4rem, 2.5143rem + 6.095vw, 8rem);
  --gutter: clamp(1.25rem, 0.2286rem + 4.19vw, 4rem);
  --col-gap: clamp(1rem, 0.6286rem + 1.524vw, 2rem);
  --container: 82rem;  /* 1312px of content */
  --measure: 37.5rem; /* ≈ 70 characters of Instrument Sans at 18px */
  --header-h: 4rem;

  /* Shape */
  --radius-1: 2px;
  --radius-2: 4px;
  --shadow-1: 0 1px 0 rgba(7, 33, 97, 0.04), 0 14px 32px -20px rgba(7, 33, 97, 0.32);
  --shadow-2: 0 2px 6px rgba(7, 33, 97, 0.05), 0 28px 56px -24px rgba(7, 33, 97, 0.34);
  --shadow-header: 0 10px 30px -22px rgba(7, 33, 97, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;

  color-scheme: light;
}

@media (min-width: 1100px) {
  :root { --header-h: 5rem; }
}

/* 2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--navy);
  text-wrap: balance;
}

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

a { color: inherit; }

::selection { background: var(--selection); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: var(--radius-1);
}

button, input, select, textarea { font: inherit; color: inherit; }

sup { font-size: 0.62em; line-height: 0; vertical-align: 0.5em; }

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -6rem;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-1);
}
.skip-link:focus { top: var(--space-3); }

/* 3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* 4. Typographic roles
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 1px;
  background: var(--gold);
}
.eyebrow--light { color: var(--gold); }

.h2 {
  font-size: var(--fs-2xl);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: var(--fs-xl);
  line-height: 1.12;
}

.lede {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.label {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-700);
}

.label--light { color: var(--gold); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--on-navy);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0 1.625rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-1);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover { --btn-bg: var(--navy-700); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--navy); }
.btn--ghost:hover { --btn-bg: var(--navy); --btn-fg: var(--on-navy); --btn-border: var(--navy); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); }
.btn--gold:hover { --btn-bg: var(--gold-300); }

.btn--sm { min-height: 2.75rem; padding: 0 1.125rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

/* 6. Header, brand, navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
}
.brand__mark {
  width: 2.75rem;
  height: auto;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand__text { display: grid; gap: 0.3125rem; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand__asso { letter-spacing: 0.08em; }
.brand__person {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700);
  white-space: nowrap;
}

/* Desktop navigation (disclosure dropdowns) */
.main-nav { display: none; }

.main-nav__list,
.main-nav__panel ul { list-style: none; margin: 0; padding: 0; }

.main-nav__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.875rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.main-nav__toggle .icon { width: 0.75rem; height: 0.75rem; stroke-width: 2; transition: transform var(--dur) var(--ease); }
.main-nav__toggle::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.main-nav__toggle:hover::after,
.main-nav__toggle[aria-expanded="true"]::after,
.main-nav__item.is-current > .main-nav__toggle::after { transform: scaleX(1); }
.main-nav__toggle[aria-expanded="true"] { color: var(--navy); }
.main-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.main-nav__item { position: relative; }

.main-nav__panel {
  position: absolute;
  top: calc(100% + (var(--header-h) - 2.5rem) / 2);
  left: 0;
  width: 27rem;
  padding: 0.625rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-2) var(--radius-2);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
}
/* invisible bridge so the pointer can travel from the button to the panel */
.main-nav__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc((var(--header-h) - 2.5rem) / 2 + 2px);
}
.main-nav__toggle[aria-expanded="true"] + .main-nav__panel,
.no-js .main-nav__item:hover > .main-nav__panel,
.no-js .main-nav__item:focus-within > .main-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s;
}

.nav-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--space-4);
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-1);
  text-decoration: none;
}
.nav-card + .nav-card { border-top: 0; }
.nav-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
}
.nav-card__desc {
  grid-column: 1;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
.nav-card .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--navy);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-card:hover,
.nav-card:focus-visible { background: var(--paper-2); }
.nav-card:hover .icon,
.nav-card:focus-visible .icon { opacity: 1; transform: none; }
.nav-card[aria-current="page"] { background: var(--paper-2); }
.nav-card[aria-current="page"] .nav-card__title { font-style: italic; }
.nav-card[aria-current="page"] .nav-card__title::after {
  content: "";
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

/* Header actions */
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { color: var(--gold-700); }
.header-phone:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }

.header-cta { display: none; }
.header-cta[aria-current="page"] { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--navy); }

.icon-btn,
.menu-toggle,
.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-1);
  background: transparent;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.menu-toggle,
.menu-link { padding: 0 0.75rem 0 0.875rem; }
.icon-btn:hover,
.menu-toggle:hover,
.menu-link:hover { border-color: var(--navy); }
.menu-toggle .icon { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }
.no-js .menu-toggle,
.js .menu-link { display: none; }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__inner {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-7);
}

.mobile-menu__group { display: grid; }
.mobile-menu__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}
.mobile-menu__label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.mobile-menu__group ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.25;
  color: var(--navy);
  text-decoration: none;
}
.mobile-menu__group li:last-child .mobile-menu__link { border-bottom: 0; }
.mobile-menu__link .icon { color: var(--gold-700); }

.mobile-menu__contact {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--paper-2);
  border-top: 2px solid var(--gold);
}
.mobile-menu__lines { display: grid; gap: var(--space-2); }
.mobile-menu__lines a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu__lines .icon { color: var(--gold-700); }
.mobile-menu__note { font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }

@media (min-width: 40em) {
  .header-cta { display: inline-flex; }
}

/* Small phones (iPhone mini/SE, compact Android): compress the header */
@media (max-width: 399.98px) {
  .site-header__inner { gap: var(--space-2); }
  .brand { gap: 0.625rem; min-width: 0; }
  .brand__mark { width: 2.25rem; }
  .brand__name { font-size: 1.125rem; }
  .brand__person { letter-spacing: 0.16em; }
  .site-header__actions { gap: 0.375rem; flex: none; }
  .menu-toggle, .menu-link { padding: 0 0.625rem; }
}
@media (max-width: 349.98px) {
  .menu-toggle { padding: 0; }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 1099.98px) {
  .menu-open, .menu-open body { overflow: hidden; }
}

@media (min-width: 1100px) {
  .brand__mark { width: 3.5rem; }
  .brand__name { font-size: 1.4375rem; }
  .main-nav { display: block; }
  .main-nav__list { display: flex; gap: 0.125rem; }
  .icon-btn, .menu-toggle, .menu-link, .mobile-menu { display: none !important; }
  .site-header__inner { gap: var(--space-5); }
}

@media (min-width: 1280px) {
  .header-phone { display: inline-flex; }
}

/* 7. Mountain etching (vector trace of the original drawing, decorative)
   The SVG is used as a mask, so the drawing takes the current text colour.
   -------------------------------------------------------------------------- */
.etching {
  display: block;
  aspect-ratio: 796 / 306;
  color: var(--navy);
  background-color: currentColor;
  -webkit-mask: url("../img/montagnes.svg") center / 100% 100% no-repeat;
  mask: url("../img/montagnes.svg") center / 100% 100% no-repeat;
  pointer-events: none;
  user-select: none;
}
.hero__etching,
.page-head__etching,
.contact-etching { opacity: 0.86; }
.cta-band__etching { color: var(--on-navy); }

/* 8. Home — hero with the ASSO acrostic
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 1.4rem + 4.5vw, 5.5rem);
}

.hero__grid { display: grid; gap: var(--space-6); position: relative; z-index: 1; }
.hero__head { display: grid; gap: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem); }

.asso {
  font-size: min(var(--fs-hero), calc((100vw - 2 * var(--gutter)) / 8.35));
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--navy);
}
.asso__line { display: block; }
.asso__word { display: block; }
.asso__i {
  color: var(--gold-600);
  font-weight: 600;
  margin-right: -0.01em;
}

.hero__intro { display: grid; gap: var(--space-4); max-width: 30rem; }
.hero__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.1;
  color: var(--navy);
}
.hero__lede { font-size: var(--fs-md); line-height: 1.5; color: var(--ink); }
.hero__actions { display: grid; gap: var(--space-3); margin-top: var(--space-2); }

.hero__etching {
  position: relative;
  width: 150%;
  max-width: none;
  margin-top: var(--space-6);
  margin-left: -16%;
}
.hero__rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0 4.5rem, var(--rule) 4.5rem);
}

@media (min-width: 40em) {
  .asso__word { display: inline; }
  .asso { font-size: min(var(--fs-hero), calc((100vw - 2 * var(--gutter)) / 9.1)); }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__etching { width: 118%; margin-left: -6%; }
}

@media (min-width: 1100px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
  }
  .hero__head { grid-column: 1 / -1; grid-row: 1; }
  .asso { font-size: min(var(--fs-hero), 7.15vw); }
  .hero__intro { grid-column: 9 / -1; grid-row: 1; align-self: end; padding-bottom: 0.4rem; }
  .hero__actions { display: grid; }
  .hero__etching {
    width: min(100%, 76rem);
    margin: clamp(-4.5rem, -3.2vw, -2rem) 0 0 auto;
  }
}

/* 9. Home — « Vous êtes parents ? »
   -------------------------------------------------------------------------- */
.parents__grid { display: grid; gap: var(--space-7); }
.parents__intro { display: grid; gap: var(--space-5); align-content: start; }
.parents__needs { display: grid; gap: var(--space-5); }

.needs-title {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-700);
}

.needs { list-style: none; padding: 0; display: grid; }
.needs li {
  position: relative;
  padding: var(--space-5) 0 var(--space-6);
  border-top: 1px solid var(--rule-strong);
  color: var(--ink);
}
.needs li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}
.needs__verb {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.1;
  color: var(--navy);
}

@media (min-width: 40em) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
}

@media (min-width: 1000px) {
  .parents__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .parents__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }
  .parents__needs { grid-column: 7 / -1; }
}

/* 10. Home — services « sommaire »
   -------------------------------------------------------------------------- */
.services { background: var(--paper-2); border-block: 1px solid var(--rule); }

.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); max-width: 46rem; }
.section-head__intro { color: var(--muted); max-width: 40rem; }

.services__grid { display: grid; gap: var(--space-8); }

.service-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
}
.service-group__initial {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 4vw, 6.75rem);
  font-weight: 500;
  line-height: 0.78;
  color: var(--gold-600);
  min-width: 0.9em;
}
.service-group__title { font-size: var(--fs-xl); line-height: 1.1; padding-top: 0.15em; }
.service-group__intro { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; margin-top: var(--space-2); }
.service-list {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  border-bottom: 1px solid var(--rule-strong);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-4);
  row-gap: 0.125rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--rule-strong);
  text-decoration: none;
}
.service-row__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dur) var(--ease);
}
.service-row__desc { grid-column: 1; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.service-row .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--navy);
  transition: transform var(--dur) var(--ease);
}
.service-row:hover .service-row__title { text-decoration-color: var(--gold); }
.service-row:focus-visible,
.aside-nav a:focus-visible,
.mobile-menu__link:focus-visible { outline-offset: 6px; }
.service-row:hover .icon { transform: translateX(4px); }

@media (min-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "a o" "e o";
    column-gap: clamp(3rem, 7vw, 8rem);
    row-gap: var(--space-8);
    align-items: start;
  }
  .service-group--a { grid-area: a; }
  .service-group--o { grid-area: o; }
  .service-group--e { grid-area: e; }
  .service-group { column-gap: var(--space-5); }
  .service-list { grid-column: 2; }
}

/* 11. Home — about
   -------------------------------------------------------------------------- */
.about__grid { display: grid; gap: var(--space-7); }

.about__figure { display: grid; gap: var(--space-4); align-content: start; max-width: 22rem; }
.about__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(7rem, 5rem + 9vw, 13.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--gold-600);
}
.about__caption {
  display: block;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gold);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

.about__body { display: grid; gap: var(--space-5); }
.about__text { display: grid; gap: var(--space-4); max-width: var(--measure); }
.about__text p:first-child {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--navy);
}

.signature {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.1;
  color: var(--navy);
}
.signature::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold); }

.triad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) 0.625rem;
  list-style: none;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
  line-height: 1.3;
  color: var(--navy);
}
.triad li { display: flex; align-items: center; gap: 0.625rem; }
.triad li + li::before { content: ""; width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--gold); }

@media (min-width: 960px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .about__figure { grid-column: 1 / span 4; }
  .about__body { grid-column: 6 / -1; }
}

/* 12. CTA band (navy)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--navy);
  color: var(--on-navy);
}
.cta-band :focus-visible { outline-color: var(--gold); }
.cta-band__etching {
  position: absolute;
  z-index: -1;
  left: -22%;
  top: calc(100% - 4.25rem);
  width: 150%;
  max-width: none;
  opacity: 0.16;
}
.cta-band__grid { display: grid; gap: var(--space-6); }
.cta-band__text { display: grid; gap: var(--space-5); }
.cta-band__title {
  text-wrap: pretty;
  font-size: var(--fs-xl);
  line-height: 1.22;
  color: var(--on-navy);
  max-width: 34ch;
}
.cta-band__title a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}
.cta-band__title a:hover { text-decoration-thickness: 2px; }
.cta-band__actions { display: grid; gap: var(--space-4); align-content: end; justify-items: start; }
.cta-band__note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--on-navy-muted);
  max-width: 22rem;
}
.cta-band__note .icon { margin-top: 0.1rem; color: var(--gold); }

@media (min-width: 1000px) {
  .cta-band__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .cta-band__text { grid-column: 1 / span 8; }
  .cta-band__title { font-size: clamp(2.125rem, 1.2rem + 1.6vw, 2.875rem); }
  .cta-band__actions { grid-column: 9 / -1; }
  .cta-band__etching { left: -7%; top: calc(100% - 11.25vw); width: 70%; }
}

/* 13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3.5rem, 2.4rem + 4.5vw, 6rem);
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  border-top: 1px solid rgba(212, 160, 36, 0.45);
}
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }

.footer__grid { display: grid; gap: var(--space-7); }
.footer__brand { display: grid; gap: var(--space-5); align-content: start; }
.footer__brand .brand { color: var(--on-navy); }
.footer__brand .brand__person { color: var(--gold); }
.footer__brand a.brand:hover { text-decoration: none; }
.footer__asso {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--on-navy-muted);
  max-width: 16rem;
}
.footer__asso b { font-weight: 600; color: var(--gold); }

.footer__nav { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr)); }
.footer__label {
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__nav li + li { margin-top: 0.375rem; }
@media (max-width: 47.99em) {
  .footer__nav > div:last-child { grid-column: 1 / -1; }
}

.footer__contact { display: grid; gap: var(--space-3); align-content: start; }
.footer__dl { display: grid; gap: var(--space-3); }
.footer__dl dt { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-muted); }
.footer__dl dd { margin: 0; font-family: var(--font-display); font-size: 1.3125rem; line-height: 1.3; }
.footer__contact .link-arrow { color: var(--gold); margin-top: var(--space-2); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-block: var(--space-5);
  border-top: 1px solid var(--rule-on-navy);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }

@media (min-width: 48em) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
  .footer__nav { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: var(--space-6); border-top: 1px solid var(--rule-on-navy); }
}

@media (min-width: 1200px) {
  .footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 3.4fr) minmax(0, 1.25fr); column-gap: clamp(2rem, 4vw, 4rem); }
  .footer__brand { grid-column: 1; grid-row: 1; }
  .footer__nav { grid-column: 2; grid-row: 1; padding-top: 0; border-top: 0; column-gap: var(--col-gap); }
  .footer__contact { grid-column: 3; grid-row: 1; }
}

/* 14. Inner pages — page head, breadcrumb
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.75rem, 1.2rem + 2.2vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.page-head__grid { display: grid; gap: var(--space-5); position: relative; z-index: 1; }
.page-head__text { display: grid; gap: var(--space-5); }
.page-title {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
  max-width: 15ch;
  /* a smaller optical size keeps hyphens and slashes visible at display sizes */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 28;
}
.chapo {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--ink);
  max-width: 38ch;
}
.page-head__etching {
  width: 135%;
  max-width: none;
  margin: var(--space-4) 0 0 -10%;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.625rem; }
.breadcrumb li + li::before { content: "/"; color: var(--gold-600); }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.25em; }
.breadcrumb a:hover { color: var(--navy); text-decoration-color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--ink); text-decoration: none; }

@media (min-width: 1000px) {
  .page-head { padding-bottom: clamp(3rem, 2rem + 3vw, 5.5rem); }
  .page-head__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .page-head__text { grid-column: 1 / span 7; }
  .page-head__etching {
    position: absolute;
    right: -3%;
    bottom: -4%;
    width: min(54rem, 62vw - 7rem);
    margin: 0;
  }
  .chapo { max-width: 32ch; }
}

@media (min-width: 1280px) {
  .chapo { max-width: 38ch; }
}

/* 15. Inner pages — article, steps, callouts
   -------------------------------------------------------------------------- */
.article-layout { display: grid; gap: var(--space-8); padding-block: var(--section-y); }

.prose { max-width: var(--measure); min-width: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 {
  margin-top: 2.4em;
  font-size: var(--fs-xl);
  line-height: 1.15;
}
.prose > h2 + * { margin-top: 0.9em; }
.prose a:not([class]) { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.prose a:not([class]):hover { text-decoration-thickness: 2px; }
.prose__lead-in { font-weight: 600; color: var(--navy); }

.prose ul { list-style: none; padding: 0; }
.prose ul li {
  position: relative;
  padding-left: 1.75rem;
}
.prose ul li + li { margin-top: 0.6em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.95rem;
  height: 0.55rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9'%3E%3Cpath d='M1 8l4-5.5 2.5 2.5L10 1l4 7' fill='none' stroke='%23a87d1c' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  border-top: 1px solid var(--rule-strong);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: var(--space-4);
  padding: 1.25rem 0 1.375rem;
  border-bottom: 1px solid var(--rule-strong);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 0.85;
  color: var(--gold-600);
  /* a text optical size keeps the hairlines of 1 and 4 visible at 36px */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 11;
}

.promise {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  margin-block: 3em;
}
.prose > .promise { margin-top: 3em; }
.promise svg {
  width: 4.5rem;
  fill: none;
  stroke: var(--gold-600);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promise p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.28;
  color: var(--navy);
}

.rdv {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.prose > .rdv { margin-top: 3.5em; }
.rdv__title {
  text-wrap: pretty;
  font-size: var(--fs-lg);
  line-height: 1.4;
  color: var(--navy);
}
.rdv__title a { white-space: nowrap; }
.rdv__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rdv__note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
}
.rdv__note .icon { margin-top: 0.1rem; color: var(--gold-700); }

/* Aside: same section + contact card */
.article-aside { display: grid; gap: var(--space-6); align-content: start; }
.aside-nav ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.aside-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.8125rem 0;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.25;
  color: var(--navy);
  text-decoration: none;
}
.aside-nav a .icon { color: var(--navy); opacity: 0.55; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.aside-nav a:hover .icon { opacity: 1; transform: translateX(3px); }
.aside-nav a[aria-current="page"] { font-style: italic; }
.aside-nav a[aria-current="page"]::after {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--gold);
}

.contact-card {
  display: none;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--navy);
  color: var(--on-navy);
  border-top: 2px solid var(--gold);
}
.contact-card :focus-visible { outline-color: var(--gold); }
.contact-card__phone {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--on-navy);
  text-decoration: none;
  white-space: nowrap;
}
.contact-card__phone:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.contact-card__mail { color: var(--on-navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(212, 160, 36, 0.7); text-underline-offset: 0.25em; }
.contact-card__note { font-size: var(--fs-sm); line-height: 1.5; color: var(--on-navy-muted); }
.contact-card .btn { margin-top: var(--space-3); }

@media (min-width: 1100px) {
  .article-layout {
    /* width of one grid column + gutter: lets numerals hang in column 1 */
    --hang: calc((min(100vw - 2 * var(--gutter), 82rem) + var(--col-gap)) / 12);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }
  .prose { grid-column: 1 / span 7; max-width: none; padding-left: var(--hang); }
  .article-aside { grid-column: 9 / -1; position: sticky; top: calc(var(--header-h) + 2rem); }
  .contact-card { display: grid; }
  .steps { border-top: 0; }
  .steps li {
    grid-template-columns: var(--hang) minmax(0, 1fr);
    column-gap: 0;
    margin-left: calc(-1 * var(--hang));
  }
  .steps li:first-child { border-top: 1px solid var(--rule-strong); }
  .promise {
    grid-template-columns: var(--hang) minmax(0, 1fr);
    column-gap: 0;
    justify-items: stretch;
    margin-left: calc(-1 * var(--hang));
  }
  .promise svg { margin-top: 0.7rem; }
}

/* Related services */
.related { padding-block: var(--section-y); background: var(--paper-2); border-top: 1px solid var(--rule); }
.related__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.related__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-1);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--navy); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.card__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; line-height: 1.2; color: var(--navy); }
.card__desc { font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}
.card__more .icon { transition: transform var(--dur) var(--ease); }
.card:hover .card__more .icon { transform: translateX(3px); }

@media (min-width: 48em) {
  .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
}

/* 16. Contact page and form
   -------------------------------------------------------------------------- */
.contact-page { position: relative; overflow: hidden; }
.contact-grid {
  display: grid;
  gap: var(--space-7);
  padding-top: clamp(1.75rem, 1.2rem + 2.2vw, 3.5rem);
  padding-bottom: var(--section-y);
  position: relative;
  z-index: 1;
}
.contact-intro { display: grid; gap: var(--space-5); align-content: start; }

.contact-details { display: grid; gap: var(--space-5); margin-top: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--rule-strong); }
.contact-details div { display: grid; gap: var(--space-1); }
.contact-details dt { display: flex; align-items: center; gap: 0.5rem; }
.contact-details dt .icon { color: var(--gold-700); }
.contact-details dd { margin: 0; }
.contact-details a {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem);
  line-height: 1.15;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
.contact-details a:hover { text-decoration-thickness: 2px; }

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-4) var(--space-5);
  background: var(--paper-2);
  border-left: 0;
  border-top: 1px solid var(--gold);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink);
}
.contact-note .icon { margin-top: 0.1rem; color: var(--gold-700); }

.contact-etching { width: 140%; max-width: none; margin: 0 0 0 -20%; }

.form-card {
  padding: clamp(1.5rem, 0.9rem + 2.5vw, 3rem);
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-2) var(--radius-2);
  box-shadow: var(--shadow-1);
}
.form { display: grid; gap: var(--space-5); }
.form__head { display: grid; gap: var(--space-2); }
.form__title { font-size: var(--fs-xl); line-height: 1.12; }
.form__hint { font-size: var(--fs-sm); color: var(--muted); }
.form__row { display: grid; gap: var(--space-5); }

.field { display: grid; gap: 0.4375rem; align-content: start; }
.field__label { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.field__optional { font-weight: 400; color: var(--muted); }
.field__help { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }

.field__control {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-1);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field__control:hover { border-color: var(--navy); }
.field__control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy), 0 0 0 4px rgba(212, 160, 36, 0.45);
}
textarea.field__control { min-height: 10rem; resize: vertical; }
select.field__control {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23072161' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}
.field__error[hidden] { display: none; }
.field__error .icon { width: 1rem; height: 1rem; margin-top: 0.05rem; }
.field.is-invalid .field__control { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__legal { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.form__legal a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 0.2em; }

.form__status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-4);
  border: 1px solid var(--success);
  border-radius: var(--radius-1);
  background: #f1f6f0;
  color: var(--success);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.form__status[hidden] { display: none; }

@media (min-width: 40em) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .contact-intro { grid-column: 1 / span 5; }
  .form-card { grid-column: 7 / -1; }
  .contact-etching {
    position: absolute;
    left: -6%;
    bottom: -2%;
    width: min(60rem, 62%);
    margin: 0;
    z-index: 0;
  }
  .contact-grid { padding-bottom: clamp(16rem, 6rem + 14vw, 24rem); }
}

/* 17. Motion — one orchestrated moment on the home page
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .asso__line { animation: rise 700ms var(--ease) both; }
  .asso__line:nth-child(2) { animation-delay: 70ms; }
  .asso__line:nth-child(3) { animation-delay: 140ms; }
  .hero__etching { animation: etch 1100ms var(--ease) 180ms both; }
  .mobile-menu:not([hidden]) .mobile-menu__inner { animation: sheet 260ms var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.22em); } to { opacity: 1; transform: none; } }
@keyframes etch { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* 18. Print — keep the content, drop the chrome
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-menu, .cta-band, .article-aside, .related, .etching, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer { background: none; color: #000; border: 0; }
  .site-footer a { color: #000; }
}

/* ==========================================================================
   19. Additions for the PHP site (components not in the prototype)
   ========================================================================== */

[hidden] { display: none !important; }
main:focus { outline: none; }
.icon { stroke-width: 1.5; }

/* Home — facts strip under the hero (facts taken from the copy only) */
.facts {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts li {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}
.facts__value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.2;
  color: var(--navy);
}
.facts__label { font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
@media (min-width: 40em) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
}
@media (min-width: 1000px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding: var(--space-5) var(--space-5) var(--space-5) 0; border-bottom: 0; }
  .facts li + li { padding-left: var(--space-5); border-left: 1px solid var(--rule); }
}

/* Inner pages — prose extras */
.prose > h3,
.profile > h3 {
  font-size: var(--fs-lg);
  line-height: 1.2;
}
.prose > .profile { margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--rule-strong); position: relative; }
.prose > .profile::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}
.profile > * + * { margin-top: 1em; }
.prose > .callout {
  margin-block: 2.2em;
  padding-left: var(--space-5);
  border-left: 1px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  line-height: 1.35;
  color: var(--navy);
}
.prose > .steps { margin-top: 1.2em; }
.prose code { font-size: 0.9em; }
.todo {
  padding: 0 0.25em;
  background: #fbe9b7;
  color: #6b4d0a;
  font-weight: 600;
}

/* Non-service pages (contact, legal notice, 404): one wide column */
@media (min-width: 1100px) {
  .article-layout--wide .prose { grid-column: 1 / span 8; padding-left: 0; }
}
.page-contact .article-layout--wide .prose { max-width: none; grid-column: 1 / -1; }

/* Notices (contact page, after a submission without JavaScript) */
.notice {
  padding: var(--space-4) var(--space-5);
  border: 1px solid currentColor;
  border-radius: var(--radius-1);
  font-size: var(--fs-sm);
}
.notice--success { color: var(--success); background: #f1f6f0; }
.notice--error { color: var(--error); background: #fbf0ee; }

/* Contact page */
.contact-layout { display: grid; gap: var(--space-7); }
.contact-layout__info { display: grid; gap: var(--space-5); align-content: start; }
.contact-layout__info h2,
.contact-layout__form h2 { font-size: var(--fs-xl); line-height: 1.12; margin-bottom: var(--space-4); }
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0 !important; }
.contact-list li::before { display: none; }
.contact-list .icon { margin-top: 0.3rem; color: var(--gold-700); }
.contact-list a {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.contact-layout__form {
  padding: clamp(1.5rem, 0.9rem + 2.5vw, 3rem);
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-2) var(--radius-2);
  box-shadow: var(--shadow-1);
}
@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .contact-layout__info { grid-column: 1 / span 5; }
  .contact-layout__form { grid-column: 7 / -1; }
}
.prose .form ul li::before, .prose .contact-layout li::before { display: none; }

/* Form states */
.form__captcha:empty { display: none; }
.form__status--error { border-color: var(--error); background: #fbf0ee; color: var(--error); }
.form__status--info { border-color: var(--rule-strong); background: var(--paper-2); color: var(--ink); }
.field__control[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.form__hint a, .form__legal a { color: var(--navy); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.form-success {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--success);
}
.form-success__icon .icon { width: 1.75rem; height: 1.75rem; }
.form-success__message { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.4; color: var(--navy); max-width: 30ch; }

/* Contact dialog */
.contact-dialog {
  width: min(42rem, calc(100% - 2 * var(--space-4)));
  max-height: calc(100dvh - 2 * var(--space-4));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.contact-dialog::backdrop { background: rgba(5, 24, 72, 0.55); backdrop-filter: blur(2px); }
.contact-dialog__panel {
  position: relative;
  display: grid;
  gap: var(--space-4);
  max-height: calc(100dvh - 2 * var(--space-4));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contact-dialog__close { position: absolute; top: var(--space-3); right: var(--space-3); background: var(--card); }
.contact-dialog .form { margin-top: var(--space-2); }
.dialog-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .contact-dialog[open] { animation: sheet 240ms var(--ease) both; }
}

/* Cookie consent banner: both choices equally visible (CNIL) */
.consent {
  position: fixed;
  z-index: 60;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  gap: var(--space-4);
  max-width: 38rem;
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent a { color: var(--navy); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.consent__actions .btn { flex: 1 1 8rem; }
@media (min-width: 40em) { .consent { left: auto; } }

/* Lists of links (404 page) */
.prose .link-list li + li { margin-top: 0.4em; }

@media print {
  .contact-dialog, .consent, .rdv, .facts { display: none !important; }
}
.contact-list li > span { display: grid; gap: 0.15rem; }
.contact-list__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* The service name sits inside the H1 (search engines) but looks like the eyebrow label */
.page-title__kicker { display: flex; margin-bottom: var(--space-5); font-variation-settings: normal; letter-spacing: var(--tracking-label); }

/* Blog link in the main navigation (same look as the dropdown buttons) */
.main-nav__link { text-decoration: none; }
.main-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Footer location line */
.footer__place { font-size: var(--fs-sm); color: var(--on-navy-muted); }

/* Draft notice on unpublished articles */
.notice--draft { color: #6b4d0a; background: #fbe9b7; border-color: #e4bb55; max-width: 46rem; }

/* Blog index */
.prose .post-list li { padding-left: 0; }
.prose .post-list li::before { display: none; }
.post-list__item { padding: var(--space-6) 0; border-top: 1px solid var(--rule-strong); }
.post-list__item + .post-list__item { margin-top: 0 !important; }
.post-list__item > * + * { margin-top: var(--space-3); }
.post-list__title { font-size: var(--fs-xl); line-height: 1.15; }
.post-list__title a { color: var(--navy); text-decoration: none; }
.post-list__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.18em; }

/* Home — where the cabinet works */
.area__grid { display: grid; gap: var(--space-5); max-width: 52rem; }
.area__text { color: var(--ink); }
@media (min-width: 960px) {
  .area__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); max-width: none; align-items: end; }
  .area__head { grid-column: 1 / span 5; }
  .area__body { grid-column: 6 / -1; display: grid; gap: var(--space-5); }
}
