@charset "utf-8";

/* ==========================================================================
   Godefroy Fils - Sotteville-lès-Rouen
   Maquette Meriova. Direction "plan-de-fluides".
   Encre marine et citron acide repris du logo officiel (#004289 / #CAD400).
   Papier froid, blocs techniques, double bezel. Light + dark.
   Aucune dépendance distante, aucun tracking, aucun script tiers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices (auto-hébergées, licences OFL dans assets/fonts/)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/schibsted-latin.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: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/schibsted-latin-ext.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plexmono-latin.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plexmono-latin-ext.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plexmono-500-latin.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;
}

/* --------------------------------------------------------------------------
   2. Jetons
   Échelle de rayons verrouillée : coques 24px, coeurs 18px, champs 12px,
   éléments interactifs en pilule. Aucune autre valeur sur le site.
   -------------------------------------------------------------------------- */

:root {
  --paper: #e6eaee;
  --paper-2: #eef1f4;
  --surface: #fafcfd;
  --surface-tint-lime: #f0f3d9;
  --surface-tint-navy: #e3eaf3;

  --ink: #08203d;
  --ink-soft: #3e5164;
  --navy: #004289;
  --lime: #cad400;
  --on-lime: #08203d;

  --hair: rgba(8, 32, 61, 0.13);
  --hair-strong: rgba(8, 32, 61, 0.26);
  --shade: 0 22px 48px -32px rgba(8, 32, 61, 0.55);
  --shade-lift: 0 30px 60px -30px rgba(8, 32, 61, 0.5);

  --footer-bg: #08203d;
  --footer-ink: #e7edf3;
  --footer-soft: #9db2c6;
  --footer-hair: rgba(231, 237, 243, 0.16);

  --r-shell: 24px;
  --r-core: 18px;
  --r-field: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --pad-y: clamp(4.5rem, 8vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 1280px;

  --z-bar: 60;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #08141f;
    --paper-2: #0d1d2b;
    --surface: #122536;
    --surface-tint-lime: #1d2a1c;
    --surface-tint-navy: #10243a;

    --ink: #e8eef3;
    --ink-soft: #a3b6c7;
    --navy: #4f92dd;
    --lime: #cad400;
    --on-lime: #08203d;

    --hair: rgba(232, 238, 243, 0.13);
    --hair-strong: rgba(232, 238, 243, 0.28);
    --shade: 0 22px 48px -32px rgba(0, 0, 0, 0.85);
    --shade-lift: 0 30px 60px -30px rgba(0, 0, 0, 0.8);

    --footer-bg: #050e17;
    --footer-ink: #e7edf3;
    --footer-soft: #93a9bd;
    --footer-hair: rgba(231, 237, 243, 0.14);
  }
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--lime);
  color: var(--on-lime);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: calc(var(--z-bar) + 1);
  background: var(--lime);
  color: var(--on-lime);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-field);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --------------------------------------------------------------------------
   4. Typographie
   -------------------------------------------------------------------------- */

.mono {
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--lime);
}

/* Pas de text-wrap: balance ici : l'équilibrage casse le titre du héros en
   trois lignes. La largeur de colonne est calée pour deux lignes au desktop. */
.h-display {
  font-size: clamp(2.35rem, 4.3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 700;
}

.h-section {
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.026em;
  font-weight: 700;
  text-wrap: balance;
}

.h-card {
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 46ch;
}

.body {
  color: var(--ink-soft);
  max-width: 62ch;
}

.body--tight {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. Bandeau de démonstration Meriova
   -------------------------------------------------------------------------- */

.preview-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-bar);
  background: var(--lime);
  color: var(--on-lime);
  border-bottom: 1px solid rgba(8, 32, 61, 0.22);
  backdrop-filter: saturate(140%);
}

.preview-bar__inner {
  padding-block: 0.55rem;
}

.preview-bar__text {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.66rem, 1.9vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-wrap: balance;
}

.preview-bar__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.4s var(--ease);
}

.preview-bar__link:hover {
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   6. Navigation (une seule ligne au desktop, jamais collée au bord)
   -------------------------------------------------------------------------- */

.nav {
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo {
  width: clamp(132px, 17vw, 176px);
  height: auto;
}

@media (prefers-color-scheme: dark) {
  .nav__logo,
  .footer__logo {
    filter: brightness(0) invert(1);
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.9rem);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

/* Spécificité volontaire : .nav__links a (0,1,1) l'emporterait sur .btn et
   .btn--primary (0,1,0), pour l'affichage comme pour la couleur du libellé. */
.nav__links .nav__tel {
  display: none;
  color: var(--on-lime);
}

@media (min-width: 900px) {
  .nav__links .nav__tel {
    display: inline-flex;
  }
}

.nav__links .nav__tel:hover {
  color: var(--on-lime);
}

@media (max-width: 719px) {
  .nav__inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-block: 0.9rem;
  }

  .nav__links {
    width: 100%;
    gap: 1.1rem;
    flex-wrap: wrap;
  }

  .nav__links a {
    font-size: 0.86rem;
  }
}

/* --------------------------------------------------------------------------
   7. Boutons (pilule, icône imbriquée dans son propre cercle)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.72rem 0.72rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.5s var(--ease-soft), background-color 0.5s var(--ease),
    border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.btn__pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.5s var(--ease-soft), background-color 0.5s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: var(--shade);
}

.btn--primary .btn__pip {
  background: rgba(8, 32, 61, 0.14);
}

.btn--primary:hover {
  box-shadow: var(--shade-lift);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}

.btn--ghost .btn__pip {
  background: var(--hair);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--onfoot {
  background: var(--lime);
  color: var(--on-lime);
}

.btn--onfoot .btn__pip {
  background: rgba(8, 32, 61, 0.14);
}

.btn:hover .btn__pip {
  transform: translate(2px, -1px) scale(1.06);
}

.btn:active {
  transform: scale(0.98);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   8. Héros (split éditorial : type à gauche, photo à droite)
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(2.5rem, 5vw, 6rem);
  padding-bottom: var(--pad-y);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__title {
  margin-top: 1.5rem;
}

.hero__lede {
  margin-top: 1.35rem;
}

.hero__cta {
  margin-top: 2.1rem;
}

.hero__figure {
  position: relative;
}

/* Coque double bezel : plateau extérieur + coeur intérieur concentrique. */
.shell {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-shell);
  padding: 6px;
  box-shadow: var(--shade);
}

.shell__core {
  border-radius: var(--r-core);
  overflow: hidden;
  background: var(--surface);
}

.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero__img {
    aspect-ratio: 5 / 4;
  }
}

.hero__caption {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Bandeau coordonnées sous le héros
   -------------------------------------------------------------------------- */

.strip {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper-2);
}

.strip__inner {
  display: grid;
  gap: 1.6rem;
  padding-block: 1.9rem;
}

@media (min-width: 760px) {
  .strip__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.strip__label {
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.4rem;
}

.strip__value {
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.4;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 0.4s var(--ease);
}

a.strip__value:hover {
  border-bottom-color: var(--lime);
}

/* --------------------------------------------------------------------------
   10. Section générique
   -------------------------------------------------------------------------- */

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

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section__head .h-section {
  margin-top: 1.1rem;
}

.section__head .body {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   11. Bento des métiers (7 cellules, 7 contenus)
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .bento__cell--a {
    grid-column: span 7;
  }
  .bento__cell--b {
    grid-column: span 5;
  }
  .bento__cell--c {
    grid-column: span 8;
  }
  .bento__cell--d {
    grid-column: span 4;
  }
  .bento__cell--e {
    grid-column: span 4;
  }
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-shell);
  padding: 6px;
  height: 100%;
  transition: transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shade-lift);
}

.card__core {
  background: var(--surface);
  border-radius: var(--r-core);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__core--lime {
  background: var(--surface-tint-lime);
}

.card__core--navy {
  background: var(--surface-tint-navy);
}

.card__media {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
}

.bento__cell--a .card__media {
  aspect-ratio: 16 / 8;
}

.card__body {
  padding: clamp(1.15rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card__body .body {
  font-size: 0.94rem;
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
   12. Bande "types de projets" (bloc accent citron, pleine largeur)
   -------------------------------------------------------------------------- */

.band {
  background: var(--lime);
  color: var(--on-lime);
  padding-block: var(--pad-y);
}

.band__head {
  max-width: 60ch;
}

.band__head .h-section {
  color: var(--on-lime);
}

.band__note {
  margin-top: 1rem;
  color: rgba(8, 32, 61, 0.78);
  max-width: 58ch;
}

.band__grid {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  gap: 1px;
  background: rgba(8, 32, 61, 0.22);
  border: 1px solid rgba(8, 32, 61, 0.22);
  border-radius: var(--r-shell);
  overflow: hidden;
}

@media (min-width: 620px) {
  .band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .band__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.band__item {
  background: var(--lime);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 8.5rem;
}

.band__item h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.band__item p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(8, 32, 61, 0.76);
  margin: 0;
}

.band__modes {
  margin-top: 1.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(8, 32, 61, 0.82);
}

/* --------------------------------------------------------------------------
   13. Zone d'intervention (liste typographique, sans faux rayon)
   -------------------------------------------------------------------------- */

.zone__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .zone__grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.zone__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.zone__sep {
  color: var(--lime);
  font-weight: 400;
}

@media (prefers-color-scheme: dark) {
  .zone__sep {
    color: var(--lime);
  }
}

.zone__note {
  margin-top: 1.9rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-field);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   14. Contact (aucun formulaire, liens tel: et mailto: uniquement)
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.contact__panel {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-shell);
  padding: 6px;
}

.contact__panel-core {
  background: var(--surface);
  border-radius: var(--r-core);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.6rem;
}

.contact__row {
  display: grid;
  gap: 0.35rem;
}

.contact__row .mono {
  color: var(--ink-soft);
}

.contact__big {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  justify-self: start;
  transition: border-color 0.4s var(--ease);
}

a.contact__big:hover {
  border-bottom-color: var(--lime);
}

.contact__addr {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.45;
}

.contact__cta {
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */

.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 820px) {
  .footer__grid {
    grid-template-columns: 1.15fr 0.85fr 1fr;
    gap: 3rem;
  }
}

.footer__logo {
  width: 168px;
  filter: brightness(0) invert(1);
}

.footer__legal {
  margin-top: 1.1rem;
  color: var(--footer-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer h2 {
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-soft);
  margin-bottom: 0.85rem;
}

.footer__list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.footer__list a {
  color: var(--footer-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  justify-self: start;
  transition: border-color 0.4s var(--ease);
}

.footer__list a:hover {
  border-bottom-color: var(--lime);
}

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-hair);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  color: var(--footer-soft);
  font-size: 0.8rem;
  line-height: 1.55;
}

.footer__bottom a {
  color: var(--footer-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   16. Pages secondaires (avant/après, mentions légales)
   -------------------------------------------------------------------------- */

.page-head {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hair);
}

.page-head .h-display {
  margin-top: 1.2rem;
}

.page-head .body {
  margin-top: 1.2rem;
}

.compare {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 900px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare__figure {
  margin: 0;
}

.compare__frame {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-shell);
  padding: 6px;
  box-shadow: var(--shade);
}

.compare__frame-core {
  border-radius: var(--r-core);
  overflow: hidden;
  background: var(--surface);
}

.compare__shot {
  width: 100%;
  height: auto;
}

.compare__caption {
  margin-top: 0.95rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.compare__caption strong {
  color: var(--ink);
  font-weight: 650;
}

.gains {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

@media (min-width: 820px) {
  .gains {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gain {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-shell);
  padding: 6px;
}

.gain__core {
  background: var(--surface);
  border-radius: var(--r-core);
  padding: clamp(1.25rem, 2.2vw, 1.7rem);
  height: 100%;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.gain h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

.gain p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.58;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin-top: 2.6rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.prose li {
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.65;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.45rem;
  height: 2px;
  background: var(--lime);
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-field);
  padding: 1.2rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.callout strong {
  color: var(--ink);
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   17. Révélation au défilement
   Activée seulement si le script local a posé data-motion="on".
   Rien ne dépend de JS pour lire le contenu.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  html[data-motion="on"] [data-reveal].is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .preview-bar,
  .nav {
    position: static;
  }
}
