/* ==========================================================================
   AdminIT — feuille de styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices hébergées sur le site (aucune requête vers Google).
   Licence SIL Open Font License : voir assets/fonts/OFL-*.txt
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-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;
}

:root {
  /* Couleurs */
  --accent: #0E7C70;            /* vert du logo */
  --accent-rgb: 14, 124, 112;
  --accent-hover: #0B6A60;
  --accent-on-dark: #7ED3C6;    /* accent lisible sur fond sombre */
  --ink: #0B0D10;
  --ink-rgb: 11, 13, 16;
  --ink-soft: #2A2F36;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --muted: #4A4E55;
  --placeholder: #6E7279;
  --line: #E4E4E0;
  --line-soft: #EEEEEA;
  --line-strong: #CFCFCA;
  --ok: #16804A;
  --ok-rgb: 22, 128, 74;
  --danger: #B42318;
  --danger-rgb: 180, 35, 24;
  --dark-line: #2A2E35;
  --dark-muted: #B4B8BF;
  --navy: #121A29;              /* bleu nuit de la vidéo et du logo */
  --yellow: #FDCE45;            /* surligneur de la vidéo */
  --mint: #EAF3EF;              /* fond vert très pâle */
  --illu-bg: #F7F8F5;           /* fond des illustrations et de la vidéo */

  /* Typographie */
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-h1: clamp(40px, 5.4vw, 70px);
  --fs-h2: clamp(32px, 3.8vw, 48px);
  --fs-lead: clamp(17px, 1.5vw, 20px);

  /* Espacements */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 104px);
  --gap-columns: clamp(40px, 6vw, 80px);
  --nav-top: 14px;
  --nav-h: 60px;
  --header-space: calc(var(--nav-top) + var(--nav-h));

  /* Rayons */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Verre liquide : réservé à la barre de navigation */
  --glass-tint: rgba(255, 255, 255, 0.6);
  --glass-filter: blur(18px) saturate(180%);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 14px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(var(--ink-rgb), 0.07),
    0 1px 2px rgba(var(--ink-rgb), 0.04),
    0 18px 40px -20px rgba(var(--ink-rgb), 0.24);

  /* Ombres */
  --shadow-card: 0 1px 2px rgba(var(--ink-rgb), 0.04), 0 24px 60px -30px rgba(var(--ink-rgb), 0.18);

  /* Mouvement */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-draw: cubic-bezier(.4, 0, .2, 1);
  --ease-liquid: cubic-bezier(.32, 1.25, .5, 1);   /* léger rebond */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-space) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

input, textarea, button { font: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }
.skip-link:focus,
.skip-link:hover { color: var(--bg); }

/* Typographie partagée */
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}

.text-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Surligneur jaune repris de la vidéo : il se dessine quand le texte apparaît */
.mark {
  white-space: nowrap;
  padding: 0 .1em;
  margin: 0 -.03em;
  border-radius: .14em;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 60%;
  background-size: 100% 76%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .reveal .mark { background-size: 0% 76%; transition: background-size .7s var(--ease-out) .75s; }
.js .reveal.is-visible .mark { background-size: 100% 76%; }

.nowrap { white-space: nowrap; }

/* Couleurs d'accent des pictogrammes */
.ico-accent { stroke: var(--accent); }
.ico-accent-fill { fill: var(--accent); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-dark {
  padding: 11px 18px;
  font-size: 15px;
  background-color: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px -10px rgba(var(--ink-rgb), 0.7);
}
.btn-dark:hover { color: var(--bg); background-color: #1C2027; }

.btn-accent { background-color: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background-color: var(--accent-hover); color: #FFFFFF; }

.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.4); color: var(--bg); }
.btn-outline-light:hover { border-color: var(--bg); color: var(--bg); }

.btn-light { background-color: #FFFFFF; color: var(--accent-hover); }
.btn-light:hover { background-color: var(--mint); color: var(--accent-hover); }

.btn-lg { padding: 15px 24px; font-size: 16px; }

.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   En-tête : barre de navigation flottante en verre
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: var(--nav-top);
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: clamp(12px, 3vw, 24px);
  pointer-events: none;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 8px 0 22px;
  border-radius: var(--radius-pill);
  pointer-events: auto;
  transition: max-width .7s var(--ease-out);
}

/* La matière en verre est portée par un pseudo-élément : le menu mobile,
   enfant de .nav-shell, peut ainsi flouter la page avec son propre verre. */
.nav-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-shadow);
  transition: background-color .4s ease, box-shadow .4s ease;
}

/* Liseré lumineux : plus marqué en haut à gauche et en bas à droite */
.nav-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.2) 28%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.2) 72%,
    rgba(255, 255, 255, 0.8) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-shell > * { position: relative; }

.site-header.is-scrolled .nav-shell::before {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--glass-shadow), 0 26px 50px -26px rgba(var(--ink-rgb), 0.32);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .25s ease;
}
.nav-links a:hover,
.nav-links a.is-current { color: var(--ink); }

/* Goutte qui glisse sous le lien survolé ou la section en cours */
.nav-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 0px);
  border-radius: var(--radius-pill);
  background: rgba(var(--ink-rgb), 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 0 0 1px rgba(var(--ink-rgb), 0.04);
  opacity: 0;
  transform: translateX(var(--x, 0px));
  transition: transform .5s var(--ease-liquid), width .5s var(--ease-liquid), opacity .25s ease;
  pointer-events: none;
}
.nav-indicator.is-visible { opacity: 1; }
.nav-indicator.is-instant { transition: none; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s ease;
}
.nav-toggle:hover { background: rgba(var(--ink-rgb), 0.08); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease-out);
}

.site-header.is-open .nav-toggle-bar:first-child { transform: translateY(3.3px) rotate(45deg); }
.site-header.is-open .nav-toggle-bar:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* La pastille se resserre légèrement une fois la page défilée */
@media (min-width: 960px) {
  .site-header.is-scrolled .nav-shell { max-width: 920px; }
}

@media (max-width: 959px) {
  .nav-shell { height: 56px; padding: 0 6px 0 18px; }
  .brand img { height: 24px; }

  /* Sans JavaScript, les liens restent visibles et passent à la ligne */
  html:not(.js) .nav-shell { height: auto; flex-wrap: wrap; padding: 12px 18px; border-radius: 28px; }
  html:not(.js) .site-nav,
  html:not(.js) .nav-links { flex-wrap: wrap; margin: 0; }

  /* Menu burger (uniquement si JavaScript est actif) */
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
  }

  .js .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .45s var(--ease-liquid), visibility 0s;
  }

  .js .nav-links { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .js .nav-links a { padding: 14px 16px; font-size: 17px; border-radius: 18px; }
  .js .nav-links a:hover { background: rgba(var(--ink-rgb), 0.05); }
  .js .nav-indicator { display: none; }
  .js .nav-cta { padding: 15px 18px; font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Hero : titre sur toute la largeur, puis la vidéo de présentation
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 44px);
  padding-block: calc(var(--header-space) + clamp(40px, 6vw, 80px)) clamp(48px, 6vw, 80px);
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; }

.hero-title {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}

.hero .hero-title {
  max-width: 980px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-lead {
  margin: 0;
  max-width: 520px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.hero .hero-lead { max-width: 540px; }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 56px;
}

.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.hero-call svg { color: var(--accent); }
.hero-call strong { font-weight: 500; color: var(--ink); white-space: nowrap; transition: color .25s ease; }
.hero-call:hover { color: var(--muted); }
.hero-call:hover strong { color: var(--accent); }

.hero-video { margin-top: clamp(4px, 1.5vw, 16px); }

@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-side { align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Certifications
   -------------------------------------------------------------------------- */

.certs {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.certs-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 32px;
}

.certs-intro { display: flex; flex-direction: column; gap: 6px; max-width: 340px; }

.certs-title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.certs-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.certs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  transition: border-color .25s ease, transform .25s ease;
}
.cert:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-1px); }

.cert-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

/* Pastille « validé » en bas à droite de l'icône */
.cert-icon::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.cert-body { display: flex; flex-direction: column; gap: 1px; }
.cert-label { font-size: 12px; font-weight: 500; color: var(--accent); }
.cert-name { font-size: 15px; font-weight: 500; }

@media (max-width: 560px) {
  .certs-list { flex-direction: column; width: 100%; }
}

/* --------------------------------------------------------------------------
   Vidéo de présentation (dans le hero)
   -------------------------------------------------------------------------- */

/* La carte reste entièrement visible à l'écran, même sur un écran bas */
.video-card {
  margin: 0 auto;
  max-width: max(320px, calc((100vh - 110px) * 16 / 9));
  max-width: max(320px, calc((100svh - 110px) * 16 / 9));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.04), 0 40px 80px -40px rgba(var(--ink-rgb), 0.28);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--illu-bg);
}

/* Sur téléphone : version verticale (même seuil que l'attribut media des <source>) */
@media (max-width: 599px) {
  .video-card {
    max-width: max(240px, calc((100vh - 110px) * 9 / 16));
    max-width: max(240px, calc((100svh - 110px) * 9 / 16));
  }
  .video-frame { aspect-ratio: 9 / 16; }
}

.video-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js .video-media { cursor: pointer; }

/* Sans JavaScript, la vidéo garde les commandes du navigateur */
html:not(.js) .video-play,
html:not(.js) .video-controls,
html:not(.js) .video-progress { display: none; }

/* Bouton « Regarder la vidéo », visible avant la lecture et à la fin */
.video-play {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(16px, 7%, 44px);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin-inline: auto;
  padding: 6px 20px 6px 6px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 36px -18px rgba(var(--ink-rgb), 0.6);
  transition: opacity .3s ease, transform .3s var(--ease-out), visibility 0s;
}
.video-play:hover { transform: translateY(-1px); }

.video-play-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  transition: transform .3s var(--ease-out);
}
.video-play:hover .video-play-icon { transform: scale(1.06); }

.video-play-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-muted);
}

.video-frame.is-started .video-play {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
}

/* Commandes pendant la lecture */
.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  padding: 14px 14px 17px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.video-frame.is-started .video-controls {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s;
}

/* Avec le son, les commandes s'effacent tant que la souris est ailleurs
   (elles restent visibles pendant la navigation au clavier) */
@media (hover: hover) {
  .video-frame.is-started.is-playing:not(.is-muted):not(:hover):not(:has(:focus-visible)) .video-controls { opacity: 0; }
}

.video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(var(--ink-rgb), 0.78);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color .25s ease;
}
.video-btn:hover { background: var(--ink); }
.video-btn--icon { width: 40px; padding: 0; }

.video-frame.is-playing .ico-play,
.video-frame:not(.is-playing) .ico-pause,
.video-frame.is-muted .ico-sound-on,
.video-frame:not(.is-muted) .ico-sound-off { display: none; }

.video-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(var(--ink-rgb), 0.08);
  opacity: 0;
  transition: opacity .3s ease;
}
.video-frame.is-started .video-progress { opacity: 1; }

.video-progress-bar {
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Références
   -------------------------------------------------------------------------- */

.trust { border-block: 1px solid var(--line); }

/* Séparateur utilisé tant que le bandeau de références est masqué */
.section-divider { margin: 0; border: 0; border-top: 1px solid var(--line); }

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 28px;
}

.trust-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-logo {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Situations du quotidien : une carte par service, avec un mini-écran
   qui montre le problème tel qu'on le voit sur son ordinateur
   -------------------------------------------------------------------------- */

.situations-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 20px;
}

@media (min-width: 640px) { .situations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .situations-grid { grid-template-columns: repeat(4, 1fr); } }

.situation { display: flex; }

.situation-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius-lg);
  color: var(--ink);
}
.situation-link:hover { color: var(--ink); }

/* Fond coloré : un ton de la vidéo par carte */
.situation-media {
  container-type: inline-size;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 0 10%;
  border-radius: var(--radius-lg);
  background: var(--tile, var(--mint));
}
/* Quatre colonnes : tuiles plus étroites, donc un peu plus hautes */
@media (min-width: 1100px) { .situation-media { aspect-ratio: 5 / 4; } }

.situation:nth-child(1) { --tile: #CFE3DD; }
.situation:nth-child(2) { --tile: #DCE1EA; }
.situation:nth-child(3) { --tile: #F3E3C3; }
.situation:nth-child(4) { --tile: #E4DDEC; }

/* --- Mini-écran ---
   Tailles en em : tout le contenu suit la largeur de la carte */
.screen {
  width: 100%;
  max-width: 17em;
  display: flex;
  flex-direction: column;
  gap: .9em;
  padding: 1.1em 1.15em 1.15em;
  font-size: clamp(11.5px, 5cqi, 13.5px);
  line-height: 1.35;
  color: var(--ink);
  background: var(--surface);
  border-radius: 1em;
  box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.06), 0 18px 36px -18px rgba(var(--ink-rgb), 0.28);
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.situation-link:hover .screen {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.06), 0 26px 44px -20px rgba(var(--ink-rgb), 0.32);
}

.screen ul { list-style: none; margin: 0; padding: 0; }
.screen p { margin: 0; }
.screen b { font-weight: 500; }
.screen .is-danger { color: var(--danger); }

.screen-head {
  display: flex;
  align-items: center;
  gap: .7em;
}
.screen-head strong {
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: .6em;
  color: var(--navy);
  background: var(--illu-bg);
}
.screen-icon svg { width: 1.2em; height: 1.2em; }
.screen-icon.is-danger { color: var(--danger); background: rgba(var(--danger-rgb), 0.09); }

.screen-pill {
  margin-left: auto;
  flex: none;
  padding: .2em .65em;
  font-size: .85em;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: rgba(var(--danger-rgb), 0.09);
}

.screen-row,
.screen-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.screen-row { padding-top: .8em; border-top: 1px solid var(--line-soft); }
.screen-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.screen-field {
  padding: .6em .8em;
  border: 1px solid var(--line);
  border-radius: .6em;
}
.screen-dots { letter-spacing: .14em; }

.screen-btn {
  align-self: flex-start;
  padding: .5em 1.1em;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.screen-foot { font-size: .9em; color: var(--muted); }

/* Courrier indésirable : votre devis, coincé avec un vrai spam, surligné comme les titres */
.screen-mails {
  display: flex;
  flex-direction: column;
  gap: .25em;
}
.screen-mails li {
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .5em .55em;
  border-radius: .6em;
  color: var(--muted);
}
.screen-mails li > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-mails li.is-ours { font-weight: 500; color: var(--ink); background: rgba(253, 206, 69, 0.32); }
.screen-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  font-size: .9em;
  font-weight: 600;
  color: var(--muted);
  background: var(--line-soft);
  border-radius: 50%;
}
.screen-mails li.is-ours .screen-avatar { color: #fff; background: var(--accent); }

/* Recherche : votre site en page 4 */
.screen-search {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .6em .9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.screen-search svg { flex: none; width: 1.1em; height: 1.1em; color: var(--muted); }
.screen-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.screen-pager {
  display: flex;
  align-items: center;
  gap: .35em;
}
.screen-pager span {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  color: var(--muted);
  border-radius: .5em;
}
.screen-pager span.is-ours { font-weight: 600; color: var(--ink); background: var(--yellow); }
.screen-pager small { margin-left: .3em; font-size: .9em; font-weight: 500; }

.situation-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px 4px 0;
}

.situation-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.situation-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.situation-link .svc-more { padding-top: 8px; }
.situation-link:hover .svc-more { color: var(--accent); }
.situation-link:hover .arr { transform: translateX(4px); }

/* Grand bandeau vert, comme l'écran « On s'en occupe. » de la vidéo */
.pitch {
  display: grid;
  /* Le titre ne descend jamais sous la largeur de « occupe. » : c'est le texte qui se resserre */
  grid-template-columns: minmax(min-content, 1fr) minmax(0, 480px);
  align-items: end;
  gap: 28px 56px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #FFFFFF;
}

.pitch-title {
  margin: 0;
  font-size: clamp(52px, 8.4vw, 120px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -0.05em;
}

.pitch-text {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
}

.pitch-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pitch .btn-outline-light { border-color: rgba(255, 255, 255, 0.55); }
.pitch .btn-outline-light:hover { border-color: #FFFFFF; }

@media (max-width: 860px) {
  .pitch { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pitch-actions .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-title { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

.section-intro {
  margin: 0;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.svc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
}
.svc:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.svc-top {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--mint);
}

.svc-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.svc-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.svc-more {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color .25s ease;
}
.svc:hover .svc-more { color: var(--accent); }

.arr { transition: transform .3s var(--ease-out); }
.svc:hover .arr { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Approche
   -------------------------------------------------------------------------- */

.approach-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--gap-columns);
}

.approach-intro { display: flex; flex-direction: column; gap: 16px; }
.approach-intro .text-lead { max-width: 380px; }

/* Sur grand écran, l'intro reste visible pendant la lecture des étapes */
@media (min-width: 900px) {
  .approach-intro { position: sticky; top: calc(var(--header-space) + 48px); align-self: start; }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.step-body { display: flex; flex-direction: column; gap: 8px; }

.step-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 480px) {
  .step { grid-template-columns: 40px 1fr; gap: 12px; }
}

/* --------------------------------------------------------------------------
   Approche de la page d'accueil : trois étapes en lignes sur fond vert pâle
   -------------------------------------------------------------------------- */

.process {
  --process-line: rgba(var(--accent-rgb), 0.22);
  background: var(--mint);
}

/* Le vert du logo est un peu juste sur ce fond (4,49:1) : on prend le plus foncé */
.process .eyebrow { color: var(--accent-hover); }
.process .section-title { max-width: 820px; }

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--process-line);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: baseline;
  padding: 28px 0;
}

/* Trait de séparation, tracé de gauche à droite à l'apparition */
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--process-line);
  transform-origin: left;
}
.js .process-step.reveal::before {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-draw) var(--reveal-delay, 0s);
}
.js .process-step.reveal.is-visible::before { transform: scaleX(1); }

.process-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.process-title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.process-text {
  grid-column: 2;
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Grand écran : numéro, phrase, détail sur une seule ligne */
@media (min-width: 900px) {
  .process-step {
    grid-template-columns: 32px minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 12px 16px;
    padding: 40px 0;
  }
  .process-text { grid-column: 3; margin-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .process-step.reveal::before { transform: none; transition: none; }
}

/* Pour qui n'a besoin que d'un dépannage : pas d'audit ni de contrat obligatoire */
.process-aside {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 1.5;
}
.process-aside a {
  font-weight: 500;
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.process-aside a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Contrats : configurateur et tableau détaillé
   -------------------------------------------------------------------------- */

/* Les questions à gauche, le contrat conseillé à droite */
.config {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.config-q {
  display: flex;
  flex-direction: column;
  justify-content: center; /* une seule question : centrée face au contrat conseillé */
  gap: 48px;
  padding: clamp(28px, 3.6vw, 52px);
}

.q-titre {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.postes { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.postes-num { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.postes-num output {
  font-size: clamp(76px, 7.6vw, 116px);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.postes-num span { font-size: 19px; color: var(--muted); }

.postes-btns { display: flex; gap: 8px; }
.postes-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, scale .15s ease;
}
.postes-btn:hover { border-color: var(--ink); }
.postes-btn:active { scale: .92; }

/* Curseur : la partie remplie suit --p, mis à jour par script.js */
.postes-range {
  --p: 47%;
  width: 100%;
  height: 36px;
  margin: 26px 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.postes-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--p) 100% no-repeat, var(--line);
}
.postes-range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--line); }
.postes-range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--accent); }
.postes-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent), 0 8px 16px -4px rgba(var(--ink-rgb), 0.35);
  transition: scale .2s ease;
}
.postes-range::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); }
.postes-range:active::-webkit-slider-thumb { scale: 1.12; }
.postes-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

/* Zones sous le curseur : leur largeur suit le nombre de paliers de chaque contrat (5, 8, 4 et 1) */
.zones { display: flex; gap: 3px; margin-top: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.zones span { flex: 1 1 0; min-width: 0; padding-top: 8px; border-top: 2px solid var(--line); transition: color .25s ease, border-color .25s ease; }
.zones span:nth-child(1) { flex-grow: 5; }
.zones span:nth-child(2) { flex-grow: 6; }
.zones span:nth-child(3) { flex-grow: 6; }
.zones span:nth-child(4) { flex-grow: 1; }
.zones span.is-on { color: var(--accent); border-top-color: var(--accent); font-weight: 600; }
/* « 50+ » est plus large que sa zone : il déborde vers la gauche, jamais hors de la carte */
.zones span:last-child { display: flex; justify-content: flex-end; }

/* Contrat conseillé : panneau sombre */
.config-r {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 52px);
  background: var(--ink);
  color: var(--bg);
}
.r-raison { min-height: 1.6em; margin: 0; font-size: 16px; line-height: 1.5; color: var(--dark-muted); }
.r-nom {
  margin: 10px 0 14px;
  overflow: hidden;
  padding-bottom: .06em;
  font-size: clamp(60px, 6.8vw, 104px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.05em;
}
.r-nom span { display: inline-block; }
.r-pour { max-width: 44ch; margin: 0; font-size: 16px; line-height: 1.6; color: var(--dark-muted); }

/* Prix du contrat conseillé : total du mois, calculé par script.js */
.r-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 26px 0 0; }
.r-prix-total {
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--bg);
}
.r-prix-unite { font-size: 16px; color: var(--dark-muted); }
.r-prix-detail { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--dark-muted); }

.section-intro a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section-intro a:hover { color: var(--ink); }

.r-chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 20px;
  margin: 32px 0;
  padding: 24px 0;
  border-block: 1px solid var(--dark-line);
}
.r-chiffres dt { margin-bottom: 8px; font-size: 13px; line-height: 1.3; color: var(--dark-muted); }
.r-chiffres dd {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--accent-on-dark);
}
.r-chiffres dd small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--dark-muted); }

/* Prestations : celles du contrat conseillé s'allument (délai posé par script.js) */
.r-liste {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 28px;
  font-size: 15px;
  line-height: 1.4;
}
/* Prestations non incluses : atténuées, mais toujours lisibles (contraste 5,6:1) */
.r-liste li { display: flex; gap: 10px; color: rgba(250, 250, 248, 0.5); transition: color .35s ease; }
.r-liste li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color .35s ease;
  transition-delay: inherit;
}
.r-liste li.is-on { color: var(--bg); }
.r-liste li.is-on::before { background: var(--accent-on-dark); }

.r-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.lien-clair {
  padding-bottom: 2px;
  font-weight: 500;
  color: var(--accent-on-dark);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.lien-clair:hover { color: var(--accent-on-dark); background-size: 0 1.5px; background-position: 100% 100%; }

/* Changement de contrat : le nom et les chiffres remontent */
@media (prefers-reduced-motion: no-preference) {
  .r-nom span.is-new { animation: r-monte .55s var(--ease-out); }
  .r-chiffres dd.is-new { animation: r-monte-court .45s var(--ease-out) both; }
  .r-chiffres div:nth-child(2) dd.is-new { animation-delay: .06s; }
  .r-chiffres div:nth-child(3) dd.is-new { animation-delay: .12s; }
}
@keyframes r-monte { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes r-monte-court { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1000px) {
  /* minmax(0, …) : un contenu large (« 50+ ») ne peut plus élargir la colonne au-delà de la carte */
  .config { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .r-liste { grid-template-columns: 1fr; }
  .r-chiffres { gap: 10px; }
  /* Trois colonnes étroites : « convenir » et « Incluses » doivent y tenir, même sur 320 px */
  .r-chiffres dd { font-size: clamp(17px, 5.4vw, 22px); }
  .postes-btn { width: 46px; height: 46px; }
  .r-actions .btn { flex: 1 1 100%; }
  /* Le mot « postes » passe sous le nombre : « 50+ » et les boutons tiennent sur une ligne */
  .postes { align-items: center; }
  .postes-num { flex-direction: column; align-items: flex-start; gap: 8px; }
  .postes-num output { font-size: clamp(60px, 20vw, 76px); }
  .postes-num span { font-size: 17px; }
  .r-nom { font-size: clamp(44px, 14.5vw, 60px); }
}

/* Tableau détaillé, replié par défaut */
.detail { margin-top: 28px; border-bottom: 1px solid var(--line); }
.detail summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: color .2s ease;
}
.detail summary::-webkit-details-marker { display: none; }
.detail summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: rotate .3s var(--ease-out);
}
.detail[open] summary::after { rotate: 45deg; }
.detail summary:hover { color: var(--accent); }
.detail .compare { margin: 0 0 32px; }

@media (prefers-reduced-motion: no-preference) {
  .detail[open] .compare tbody tr { animation: r-monte-court .4s var(--ease-out) both; }
}

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; }
.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease;
}
.compare tbody th { width: 34%; padding-left: 0; font-weight: 400; }
.compare td { width: 22%; color: var(--muted); }
.compare thead th { padding-top: 28px; padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
.compare thead th:first-child { padding-left: 0; }
.plan-nom { display: block; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.plan-pour { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--muted); }
.plan-tag { display: block; height: 0; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .3s ease, height .3s ease; }
.compare tfoot td { padding-top: 24px; border-bottom: 0; }
/* Titre de chaque groupe de prestations */
.compare .compare-groupe th {
  width: auto;
  padding: 40px 0 12px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.compare .compare-prix td { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.compare-note { max-width: 78ch; margin: -12px 0 32px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Particuliers : deux abonnements, « À domicile » mis en avant */
.abos { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.abo {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.abo--conseil { border-color: rgba(var(--accent-rgb), 0.4); background: var(--mint); box-shadow: var(--shadow-card); }
.abo-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.abo-nom { margin: 0; font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.abo-tag { padding: 6px 13px; border-radius: var(--radius-pill); background: var(--accent); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.abo-pour { max-width: 40ch; margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.abo-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 28px 0 0; }
.abo-montant {
  font-size: clamp(44px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.abo--conseil .abo-montant { color: var(--accent-hover); }
.abo-unite { font-size: 17px; color: var(--muted); }
.abo-annuel { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
/* Texte secondaire sur le fond menthe : teinté de vert plutôt que gris */
.abo--conseil :is(.abo-pour, .abo-unite, .abo-annuel) { color: #3B5550; }
.abo-liste {
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.abo--conseil .abo-liste { border-top-color: rgba(var(--accent-rgb), 0.22); }
.abo-liste li { display: flex; gap: 10px; }
.abo-liste li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.abo-cta { align-self: flex-start; margin-top: auto; }
.abo:not(.abo--conseil) .abo-cta { background: var(--surface); }

.abo-conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 860px) {
  .abos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .abo-cta { align-self: stretch; }
  .abo-conditions { grid-template-columns: 1fr; }
}
.compare tfoot .btn { width: 100%; padding: 13px 14px; font-size: 15px; background: var(--surface); }

/* Colonne conseillée : suit le curseur du nombre de postes */
.compare[data-reco="1"] :is(th, td):nth-child(2),
.compare[data-reco="2"] :is(th, td):nth-child(3),
.compare[data-reco="3"] :is(th, td):nth-child(4) { background: var(--surface); }
.compare[data-reco="1"] thead th:nth-child(2),
.compare[data-reco="2"] thead th:nth-child(3),
.compare[data-reco="3"] thead th:nth-child(4) { border-radius: 16px 16px 0 0; box-shadow: inset 0 3px 0 var(--accent); }
.compare[data-reco="1"] thead th:nth-child(2) .plan-tag,
.compare[data-reco="2"] thead th:nth-child(3) .plan-tag,
.compare[data-reco="3"] thead th:nth-child(4) .plan-tag { height: 1.9em; opacity: 1; }
.compare[data-reco="1"] tfoot td:nth-child(2) .btn,
.compare[data-reco="2"] tfoot td:nth-child(3) .btn,
.compare[data-reco="3"] tfoot td:nth-child(4) .btn { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }

.oui, .non { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }
.oui {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.non { position: relative; }
.non::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; background: var(--line-strong); }

/* Sur téléphone : un contrat affiché à la fois */
.plan-switch { display: none; }

@media (max-width: 700px) {
  .plan-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 12px;
    background: var(--line-soft);
  }
  .plan-switch button {
    height: 44px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
  }
  .plan-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(var(--ink-rgb), 0.14); }
  .compare tbody th { width: 55%; }
  .compare td { width: 45%; }
  .compare th, .compare td { padding-inline: 14px; }
  .compare[data-show="1"] :is(th, td):is(:nth-child(3), :nth-child(4)),
  .compare[data-show="2"] :is(th, td):is(:nth-child(2), :nth-child(4)),
  .compare[data-show="3"] :is(th, td):is(:nth-child(2), :nth-child(3)) { display: none; }
}

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Région : où nous nous déplaçons, sur une vraie carte
   (limites officielles OFS/swisstopo 2022, via le paquet swiss-maps)
   -------------------------------------------------------------------------- */

.region-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px 64px;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: var(--bg);
}

@media (max-width: 900px) {
  .region-panel { grid-template-columns: 1fr; }
}

.region .eyebrow { color: var(--accent-on-dark); }
.region .mark { color: var(--ink); }

.region-text { display: flex; flex-direction: column; gap: 16px; }

.region-places {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.region-places li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
}
/* Même point vert que sur la carte */
.region-places li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-on-dark);
}

.region-note {
  margin: 4px 0 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-muted);
}
.region-note a {
  color: var(--accent-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.region-note a:hover { color: var(--bg); }

/* --- Carte --- */
.region-map {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: #E9EBE4;
}

.map { display: block; width: 100%; height: auto; }

.region-source {
  padding: 0 16px 12px;
  font-size: 11px;
  text-align: right;
  color: var(--muted);
}

.map-out { fill: #E9EBE4; }                 /* hors de Suisse */
.map-ch { fill: #F7F8F5; stroke: #A9ADA4; stroke-width: 1.5; stroke-linejoin: round; }
.map-lake { fill: #CFE2EA; }
.map-cantons { fill: none; stroke: #C9CCC4; stroke-width: 1; stroke-dasharray: 4 4; }
.map-zone {
  fill: rgba(var(--accent-rgb), 0.16);
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linejoin: round;
}

.map-region {
  font: 500 12px var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  fill: #62665F;
}
.map-region--lac { font-style: italic; letter-spacing: .02em; text-transform: none; fill: #3F6573; }

.map-label {
  font: 500 15px var(--font-sans);
  fill: var(--ink);
  paint-order: stroke;
  stroke: #F7F8F5;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map-label--home { font-size: 16px; font-weight: 600; }

.map-dot { fill: var(--accent); stroke: #FFFFFF; stroke-width: 2; }
.map-home { fill: var(--accent); stroke: #FFFFFF; stroke-width: 2.5; }
.map-home-core { fill: #FFFFFF; }

/* Petite onde qui part de La Chaux-de-Fonds */
.map-pulse { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .map-pulse { animation: map-pulse 3.2s var(--ease-out) infinite; }
}
@keyframes map-pulse {
  from { opacity: .35; transform: scale(1); }
  to { opacity: 0; transform: scale(3.6); }
}

/* Sur mobile la carte rétrécit : on grossit les textes pour qu'ils restent lisibles */
@media (max-width: 600px) {
  .map-label { font-size: 24px; stroke-width: 6px; }
  .map-label--home { font-size: 25px; }
  .map-region { font-size: 19px; }
}

.testimonial {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 820px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial blockquote {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.testimonial figcaption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dark-muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--gap-columns);
  align-items: start;
}

.contact-intro { display: flex; flex-direction: column; gap: 20px; }
.contact-intro .text-lead { max-width: 420px; }

/* Le téléphone en grand : pour ceux qui préfèrent appeler */
.contact-call {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 18px 22px 18px 18px;
  border-radius: var(--radius-lg);
  background: var(--mint);
  color: var(--ink);
  transition: background-color .25s ease;
}
.contact-call:hover { color: var(--ink); background: #DDEDE6; }

.contact-call-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #FFFFFF;
  background: var(--accent);
}

.contact-call-text { display: flex; flex-direction: column; gap: 2px; }
.contact-call-label { font-size: 14px; color: var(--muted); }
.contact-call-number {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.contact-list { display: flex; flex-direction: column; margin-top: 4px; }

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }

.contact-row-label { color: var(--muted); }
.contact-row-value { text-align: right; font-style: normal; }

/* --- Carte du formulaire : l'élément principal de la section --- */
.contact-card {
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-form[hidden] { display: none; }

/* Type de demande : un seul choix, en pastilles comme dans le configurateur */
.choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.choices-list { display: flex; flex-wrap: wrap; gap: 8px; }

.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span {
  font-weight: 500;
  color: var(--accent-hover);
  background: var(--mint);
  border-color: var(--accent);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field-opt { margin-left: 4px; font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s ease, background-color .2s ease;
}

.field input { height: 48px; padding: 0 14px; }
.field textarea { min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: #B5B6B0; }

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); opacity: 1; }

.field input:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--surface); }

/* Erreur seulement après que la personne a touché au champ */
.field input:user-invalid,
.field textarea:user-invalid,
.field [aria-invalid="true"] { border-color: var(--danger); }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit { height: 54px; margin-top: 4px; font-size: 16px; }
.form-submit:hover .arr { transform: translateX(4px); }
.form-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: rgba(var(--ok-rgb), 0.08); color: var(--ok); }
.form-status[data-state="error"] { background: rgba(var(--danger-rgb), 0.07); color: var(--danger); }
.form-status a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--accent); }

/* --- Confirmation après envoi --- */
.form-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  outline: none;
}
.form-done[hidden] { display: none; }

.form-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #FFFFFF;
  background: var(--accent);
}

.form-done-title {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.form-done-text {
  margin: 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.form-done-text a { color: var(--ink); font-weight: 500; white-space: nowrap; }

.form-again {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form-again:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .form-done:not([hidden]) { animation: done-in .6s var(--ease-out) both; }
  .form-done:not([hidden]) .form-done-icon { animation: done-pop .5s var(--ease-liquid) .1s both; }
}
@keyframes done-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes done-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------------------------
   Blog : liste des articles, cartes, page d'article, commentaires
   -------------------------------------------------------------------------- */

.blog-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: calc(var(--header-space) + clamp(40px, 6vw, 72px)) clamp(40px, 5vw, 64px);
}
.blog-hero .hero-lead { max-width: 620px; }

/* --- Cartes d'article --- */
.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 20px;
}
@media (min-width: 680px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .posts--three { grid-template-columns: repeat(3, 1fr); } }

.post { display: flex; }

.post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius-lg);
  color: var(--ink);
}
.post-card:hover { color: var(--ink); }

.post-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--tile, var(--mint));
  color: var(--navy);
  overflow: hidden;
}
.post-card-media svg {
  width: clamp(56px, 22%, 88px);
  height: auto;
  transition: transform .5s var(--ease-out);
}
.post-card:hover .post-card-media svg { transform: translateY(-4px) scale(1.04); }

.post-card--vert { --tile: #CFE3DD; }
.post-card--bleu { --tile: #DCE1EA; }
.post-card--sable { --tile: #F3E3C3; }
.post-card--lavande { --tile: #E4DDEC; }

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 18px 4px 0;
}

.post-card-cat { font-size: 13px; font-weight: 500; color: var(--accent-hover); }

.post-card-title {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.post-card:hover .post-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.post-card-excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* À la une : la première carte prend toute la largeur, image à gauche */
@media (min-width: 900px) {
  .post--featured { grid-column: 1 / -1; }
  .post--featured .post-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .post--featured .post-card-body { padding: 0; gap: 12px; }
  .post--featured .post-card-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
  .post--featured .post-card-excerpt { font-size: 17px; max-width: 46ch; }
  .post--featured .post-card-media svg { width: clamp(88px, 22%, 132px); }
}

/* Méta : date, durée de lecture, compteurs */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post-meta > span,
.post-meta > time { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { flex: none; color: var(--placeholder); }
.post-meta sup { font-size: .7em; line-height: 0; }
.post-meta [hidden] { display: none; }

.blog-more { margin-top: 32px; }

.post-card-media .tile-fill { fill: var(--tile, var(--mint)); }

/* --- Page d'article --- */
.article-head,
.article-body,
.article-foot,
.comments {
  width: 100%;
  max-width: calc(720px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.article-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: calc(var(--header-space) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(32px, 4vw, 48px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-hidden] { color: var(--line-strong); }

.article-cat:hover { color: var(--ink); }

.article-cat {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hover);
  background: var(--mint);
  border-radius: var(--radius-pill);
}

.article-title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.article-lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.article-head .post-meta { margin-top: 4px; padding-top: 18px; width: 100%; border-top: 1px solid var(--line); font-size: 14px; }

/* Sommaire : dans la marge gauche, seulement sur grand écran */
.article-layout { position: relative; }
.article-toc { display: none; }

/* Seulement s'il reste au moins 32 px entre le sommaire (240 px) et le texte (720 px) */
@media (min-width: 1360px) {
  .article-toc {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 360px - 32px - 240px);
    display: block;
    width: 240px;
  }
  .article-toc-inner {
    position: sticky;
    top: calc(var(--header-space) + 32px);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}
.article-toc-title { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.article-toc a {
  padding: 6px 0 6px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  border-left: 2px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.article-toc a:hover { color: var(--ink); }
.article-toc a.is-current { color: var(--ink); border-left-color: var(--accent); }

/* Texte de l'article */
.prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  margin: 2.1em 0 .55em;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-space) + 24px);
}
.prose h3 { margin: 1.6em 0 .4em; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose ol li::marker { font-weight: 600; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: .1em .35em; border-radius: var(--radius-xs); background: var(--line-soft); }

/* « En bref » en tête d'article */
.article-summary {
  margin: 0 0 2.2em;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--mint);
}
.prose .article-summary-title { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--accent-hover); }
.prose .article-summary ul { list-style: none; margin: 0; padding: 0; }
.prose .article-summary li {
  position: relative;
  margin: 10px 0 0;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.prose .article-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.2' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Encadré « Bon à savoir » */
.callout {
  margin: 1.6em 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 17px;
}
.callout p:last-child { margin-bottom: 0; }
.prose .callout-title { margin: 0 0 6px; font-weight: 600; color: var(--ink); }

/* Tableau simple dans un article (ex. numéros de mises à jour par version) */
.prose table { width: 100%; margin: .4em 0 1.4em; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.prose caption { margin-bottom: 8px; font-size: 14px; text-align: left; color: var(--muted); }
.prose th,
.prose td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-size: 14px; font-weight: 500; color: var(--muted); border-bottom-color: var(--line-strong); }
.prose td:last-child { padding-right: 0; font-family: var(--font-mono); font-size: 15px; white-space: nowrap; color: var(--ink); }

/* Sources en fin d'article */
.prose .sources { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Checklist à cocher (mémorisée dans le navigateur) */
.prose .checklist { list-style: none; margin: 0 0 1.2em; padding: 0; }
.prose .checklist li { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist label { display: flex; align-items: flex-start; gap: 14px; padding: 14px 4px; cursor: pointer; }
.checklist input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: .2em 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface) center / 14px no-repeat;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.checklist input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.2' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checklist input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist-progress { margin: -.4em 0 1.6em; font-size: 14px; color: var(--muted); }

/* Bas d'article : « j'aime », partage, appel à l'action */
.article-foot { display: flex; flex-direction: column; gap: 40px; padding-top: 16px; }

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.like-btn:hover { border-color: var(--ink); }
.like-btn svg { color: var(--muted); transition: color .2s ease; }
.like-btn .like-heart-fill { opacity: 0; transition: opacity .2s ease; }
.like-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--mint); color: var(--accent-hover); }
.like-btn[aria-pressed="true"] svg { color: var(--accent); }
.like-btn[aria-pressed="true"] .like-heart-fill { opacity: 1; }
.like-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.like-btn[aria-pressed="true"] .like-count { color: var(--accent-hover); }
.like-count:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .like-btn.is-popping svg { animation: like-pop .45s var(--ease-liquid); }
}
@keyframes like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { margin-right: 4px; font-size: 14px; color: var(--muted); }
.share a,
.share button {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.share a:hover,
.share button:hover { color: var(--ink); border-color: var(--ink); }

.article-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: var(--bg);
}
.article-cta .article-cta-title { margin: 0; color: var(--bg); font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.article-cta p { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--dark-muted); }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.article-cta .btn-outline-light { border-color: rgba(255, 255, 255, 0.35); }

/* --- Commentaires --- */
.comments { padding-top: clamp(56px, 7vw, 88px); }
.comments-title { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.comments-count { color: var(--muted); font-weight: 400; }
.comments-intro { margin: 0 0 24px; font-size: 15px; color: var(--muted); }

.comments-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.comment:last-child { border-bottom: 1px solid var(--line); }
.comment-avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent-hover);
  font-weight: 600;
}
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.comment-name { font-weight: 600; }
.comment-date { font-size: 13px; color: var(--muted); }
.comment-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }

.comments-empty { margin: 0 0 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--line-soft); font-size: 15px; color: var(--muted); }

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.comment-form-title { margin: 0; font-size: 18px; font-weight: 500; }
.comment-form .form-submit { align-self: flex-start; height: 50px; padding-inline: 24px; }
.comment-form[hidden],
.comments[hidden],
.like-btn[hidden] { display: none; }

/* --- Articles liés et accueil --- */
.related { padding-top: clamp(64px, 8vw, 104px); }
.related .section-head { margin-bottom: 32px; }

/* --- Modération des commentaires (/admin/) --- */
.admin-wrap { max-width: calc(880px + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-title { margin: 40px 0 24px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.025em; }
.admin-login { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 360px; }
.admin-login[hidden] { display: none; }
.admin-login .field { width: 100%; }
.admin-section { margin-bottom: 48px; }
.admin-subtitle { margin: 0 0 16px; font-size: 22px; font-weight: 500; }
.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.admin-item { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.admin-item p { margin: 0; }
.admin-item-meta { font-size: 13px; color: var(--muted); }
.admin-item-text { font-size: 16px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .btn { padding: 9px 16px; font-size: 14px; }
.admin-article { margin-bottom: 24px; }
.admin-article-title { margin: 0 0 12px; font-size: 16px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Bouton « Appeler » flottant (mobile uniquement)
   -------------------------------------------------------------------------- */

.call-fab { display: none; }

@media (max-width: 700px) {
  .call-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px 0 18px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    background: var(--accent);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(var(--ink-rgb), 0.14), 0 12px 28px -12px rgba(var(--ink-rgb), 0.4);
    transition: transform .35s var(--ease-out), opacity .35s ease, background-color .2s ease;
  }
  .call-fab:hover { color: #FFFFFF; background: var(--accent-hover); }
  .call-fab.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .call-fab { transition: none; }
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

/* Bleu nuit du logo : la page se termine sur la couleur de la marque */
.site-footer { background: var(--navy); color: var(--dark-muted); }
.site-footer :focus-visible { outline-color: var(--accent-on-dark); }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  padding-block: 56px 40px;
}

@media (max-width: 760px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .footer-main { grid-template-columns: 1fr; }
}

.footer-about { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dark-muted); }

.footer-brand img { height: 22px; width: auto; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer-col a,
.footer-col address { color: var(--dark-muted); font-style: normal; line-height: 1.6; }
.footer-col a:hover { color: var(--accent-on-dark); }
.footer-col a[aria-current="page"] { color: var(--bg); }

.footer-title { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--bg); }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 20px 28px;
  font-size: 13px;
  color: var(--dark-muted);
}

/* Filet aligné sur le contenu, sans déborder dans les marges */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--dark-muted); }
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--bg); }

/* --------------------------------------------------------------------------
   Pages de service
   -------------------------------------------------------------------------- */

.service-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block: calc(var(--header-space) + clamp(40px, 6vw, 72px)) clamp(64px, 8vw, 104px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); }

.service-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.service-hero .hero-lead { max-width: 640px; }
.service-hero .hero-actions { margin-top: 4px; }

/* Situations fréquentes : grille de cases séparées par un filet */
.problems {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.problem {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  background: var(--surface);
}

.problem h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.problem p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Prestations : liste à filets, comme les étapes de l'approche */
.offers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.offer:last-child { border-bottom: 1px solid var(--line); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}
.text-link:hover .arr { transform: translateX(3px); }

/* Encadré d'appel à l'action */
.service-cta-wrap { padding-bottom: var(--section-y); }

.service-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: var(--bg);
}

.service-cta-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}

.service-cta-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-muted);
}

.service-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 480px) {
  .service-cta-actions .btn { flex: 1 1 100%; }
}

/* Autres services : trois cartes, une seule colonne avant 900 px */
.services-grid.services-grid--others { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .services-grid.services-grid--others { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */

.legal {
  max-width: calc(760px + 2 * var(--gutter));
  padding-top: calc(var(--header-space) + clamp(48px, 7vw, 88px));
}

.legal-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.legal-title {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.legal-updated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.legal-section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.legal-section:last-child { border-bottom: 1px solid var(--line); }

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li,
.legal-section dd {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-section p { margin: 0; }
.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p { margin-top: 12px; }

.legal-section ul { margin: 0; padding-left: 20px; }
.legal-section li + li { margin-top: 6px; }
.legal-section strong { color: var(--ink); font-weight: 500; }

.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--accent); }

.legal-list {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  margin: 0;
}

.legal-list dt,
.legal-list dd {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.legal-list dt { font-size: 15px; color: var(--ink); padding-right: 16px; }
.legal-list dt:first-of-type,
.legal-list dt:first-of-type + dd { border-top: 0; }

@media (max-width: 560px) {
  .legal-list { grid-template-columns: 1fr; }
  .legal-list dt { padding-bottom: 0; }
  .legal-list dd { border-top: 0; padding-top: 2px; }
}

/* --------------------------------------------------------------------------
   Page 404
   -------------------------------------------------------------------------- */

.not-found { min-height: 70vh; }
.not-found .legal-head { margin-bottom: 32px; }

.not-found-services {
  margin: 40px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.not-found-services a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.not-found-services a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Repli du verre : navigateurs sans flou, ou transparence réduite
   -------------------------------------------------------------------------- */

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav-shell::before,
  .site-header.is-scrolled .nav-shell::before { background-color: rgba(255, 255, 255, 0.95); }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-shell::before,
  .site-header.is-scrolled .nav-shell::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.97);
  }
}

@media (prefers-reduced-transparency: reduce) and (max-width: 959px) {
  .js .site-nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.97);
  }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes up { to { opacity: 1; transform: none; } }

/* Apparition au scroll : l'état masqué n'existe que si JS est actif */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible {
  animation: up .9s var(--ease-out) var(--reveal-delay, 0s) forwards;
}

.d1 { --reveal-delay: .08s; }
.d2 { --reveal-delay: .2s; }
.d3 { --reveal-delay: .32s; }
.d4 { --reveal-delay: .44s; }
.d5 { --reveal-delay: .56s; }
.d6 { --reveal-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible { animation: none; opacity: 1; transform: none; }

  .js .reveal .mark { background-size: 100% 76%; transition: none; }

  .btn:hover,
  .btn:hover .arr,
  .svc:hover,
  .svc:hover .arr,
  .situation-link:hover .arr,
  .situation-link:hover .screen,
  .text-link:hover .arr,
  .cert:hover { transform: none; }

  .video-play:hover,
  .video-frame.is-started .video-play,
  .video-play:hover .video-play-icon { transform: none; }

  .js .site-nav,
  .nav-shell,
  .nav-indicator,
  .nav-toggle-bar { transition: none !important; }
}
