/* ==========================================================================
   Paris Design : feuille de style commune à toutes les pages
   Police : Archivo (SIL Open Font License 1.1), hébergée sur le site.
   Icônes : Tabler Icons (licence MIT), intégrées en SVG.
   Aucun appel à un service externe : pas de cookie, pas de traceur.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

/* ---------- Jetons de design ---------- */
:root {
  --bg: #f2f2ef;
  --bg-soft: #e7e7e2;
  --surface: #fafaf8;
  --ink: #15161a;
  --ink-soft: #4a4c55;
  --line: rgba(21, 22, 26, 0.14);
  --accent: #2442d6;
  --accent-hover: #1b34b8;
  --on-accent: #fbfbff;
  --todo: #b3261e;
  --todo-bg: #fdecea;

  /* Formes : boutons en pilule, cartes 28px, cadres 16px */
  --radius-card: 28px;
  --radius-frame: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  --fs-display: clamp(2.5rem, 1.2rem + 3.9vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem);

  /* Échelle des plans (z-index) */
  --z-menu: 40;
  --z-header: 50;
  --z-grain: 60;

  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain très léger, fixe et non interactif */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sur téléphone et tablette, ce voile plein écran ralentit le défilement : il est retiré */
@media (hover: none), (pointer: coarse) {
  body::after {
    display: none;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.nowrap {
  white-space: nowrap;
}

/* Rang dans une cascade d'animation (remplace les styles écrits dans les balises,
   interdits par la politique de sécurité du site) */
.d0 { --i: 0; }
.d1 { --i: 1; }
.d2 { --i: 2; }
.d3 { --i: 3; }
.d4 { --i: 4; }
.d5 { --i: 5; }
.d6 { --i: 6; }
.d7 { --i: 7; }
.d8 { --i: 8; }
.d9 { --i: 9; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Emplacements à compléter (visibles en rouge) ---------- */
.todo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--todo);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  background: repeating-linear-gradient(-45deg, var(--todo-bg) 0 12px, #fbe1de 12px 24px);
  outline: 2px dashed var(--todo);
  outline-offset: -10px;
}

.todo small {
  font-weight: 500;
  font-size: 0.85rem;
}

.todo-inline {
  color: var(--todo);
  background: var(--todo-bg);
  outline: 1.5px dashed var(--todo);
  outline-offset: 1px;
  padding: 0 0.35em;
  border-radius: 4px;
  font-weight: 600;
  font-style: normal;
}

/* ---------- Boutons ---------- */
.btn {
  --mx: 0px;
  --my: 0px;
  --s: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--mx), var(--my)) scale(var(--s));
  transition:
    transform 0.5s var(--ease),
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn:active {
  --s: 0.97;
}

.btn .icon {
  transition: transform 0.45s var(--ease);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 14px 30px -14px rgba(36, 66, 214, 0.7);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-light {
  background: var(--on-accent);
  color: var(--accent);
}

.btn-light:hover {
  background: #fff;
  color: var(--accent-hover);
}

.btn-outline-light {
  border-color: rgba(251, 251, 255, 0.6);
  color: var(--on-accent);
}

.btn-outline-light:hover {
  background: rgba(251, 251, 255, 0.12);
  border-color: var(--on-accent);
}

.btn-sm {
  padding: 0.7em 1.25em;
  font-size: 0.95rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
  padding-bottom: 0.2em;
  transition: background-size 0.5s var(--ease), color 0.3s ease;
}

.link-arrow:hover {
  color: var(--accent);
  background-size: 0% 1.5px;
  background-position: right bottom;
}

.link-arrow .icon {
  transition: transform 0.45s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ---------- En-tête ---------- */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  view-transition-name: site-header;
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(242, 242, 239, 0.86);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.menu-open .site-header {
  background: var(--bg);
  box-shadow: none;
}

/* Sur téléphone et tablette, le flou recalculé à chaque image de défilement est remplacé
   par un fond presque opaque (même rendu à l'œil, bien plus léger) */
@media (hover: none), (pointer: coarse) {
  .site-header.is-scrolled,
  .menu-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.is-scrolled {
    background: rgba(242, 242, 239, 0.97);
  }

  .menu-open .site-header {
    background: var(--bg);
  }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  margin-right: auto;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

/* Symbole du logo (le « P » en orbite) : traits de la couleur du texte, points en cobalt */
.logo-mark {
  flex: none;
  width: 0.96em;
  height: 1.24em;
}

.logo-point {
  fill: var(--accent);
}

.main-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.burger {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.45s var(--ease),
    top 0.45s var(--ease);
}

.burger span:first-child {
  top: 0;
}

.burger span:last-child {
  top: 10px;
}

.menu-toggle[aria-expanded="true"] .burger span:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger span:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  background: var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.6s var(--ease),
    visibility 0s linear 0.6s;
}

.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 0.6s var(--ease),
    visibility 0s linear 0s;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.mobile-menu ul a {
  display: block;
  padding: 0.2rem 0;
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.7s var(--ease),
    color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}

.mobile-menu ul a[aria-current="page"] {
  color: var(--accent);
}

.mobile-menu.is-open ul a {
  opacity: 1;
  transform: none;
}

.menu-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 1001px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section-title {
  font-size: var(--fs-h2);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 20ch;
}

.section-intro {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Accueil : hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--header-h));
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero h1 {
  font-size: var(--fs-display);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.line > span {
  display: inline-block;
}

.hero-lead {
  max-width: 36ch;
  margin: 1.75rem 0 2.25rem;
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    max-width: 520px;
  }
}

/* Carte de la zone d'intervention */
.radar {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--on-accent);
  background: radial-gradient(circle at 50% 50%, #3453e4 0%, var(--accent) 62%);
  box-shadow: 0 50px 90px -45px rgba(36, 66, 214, 0.75);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s var(--ease);
}

.radar svg {
  position: relative;
  width: 100%;
  height: 100%;
}

.radar-ring {
  fill: none;
  stroke: rgba(251, 251, 255, 0.22);
  stroke-width: 1;
}

/* Ondes du radar : éléments HTML (et non cercles SVG) pour que l'animation reste fluide,
   sans redessiner la carte à chaque image. Même cercle que r=175 dans le repère 400×400. */
.radar-pulse {
  position: absolute;
  top: 6.25%;
  left: 6.25%;
  width: 87.5%;
  height: 87.5%;
  border: 1.5px solid rgba(251, 251, 255, 0.55);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: radar-pulse 5s var(--ease) infinite;
}

.radar-pulse + .radar-pulse {
  animation-delay: 2.5s;
}

.radar-link {
  stroke: rgba(251, 251, 255, 0.4);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease) forwards;
  animation-delay: calc(0.9s + var(--i, 0) * 0.12s);
}

.radar-town {
  opacity: 0;
  animation: pop 0.8s var(--ease) forwards;
  animation-delay: calc(1.2s + var(--i, 0) * 0.12s);
}

.radar-town circle {
  fill: var(--on-accent);
}

.radar-town text,
.radar-center text {
  paint-order: stroke;
  stroke: #2d4cdf;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.radar-town text {
  fill: var(--on-accent);
  font-size: 12.5px;
  font-weight: 500;
}

.radar-center text {
  fill: var(--on-accent);
  font-size: 16px;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}

.radar-center .core {
  fill: var(--on-accent);
}

.radar-center .halo {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 1.5;
}

@media (max-width: 600px) {
  .radar-town text {
    font-size: 13.5px;
  }
}

.radar-legend {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  font-size: 0.8rem;
  color: rgba(251, 251, 255, 0.75);
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.05);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Accueil : prestations en deux tuiles ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 27rem;
  padding: clamp(1.75rem, 3.2vw, 3rem);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.7s var(--ease);
}

.tile:hover {
  transform: translateY(-6px);
}

.tile-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.tile-ink {
  background: var(--ink);
  color: var(--bg);
}

.tile-kicker {
  font-size: 1rem;
  opacity: 0.75;
}

.tile h3 {
  margin: 0.35rem 0 1rem;
  font-size: var(--fs-h3);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tile > p:not(.tile-kicker) {
  max-width: 34ch;
  opacity: 0.88;
}

.tile-motif {
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -18%;
  width: 70%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.22;
  transition: transform 1.2s var(--ease), opacity 0.6s ease;
}

.tile:hover .tile-motif {
  opacity: 0.32;
}

.tile-accent:hover .tile-motif {
  transform: scale(1.08) rotate(8deg);
}

.tile-ink .tile-motif rect {
  transition: transform 1s var(--ease);
}

.tile-ink:hover .tile-motif rect:nth-child(2) {
  transform: translate(10px, -10px);
}

.tile-ink:hover .tile-motif rect:nth-child(3) {
  transform: translate(20px, -20px);
}

.checklist {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: auto 0 0;
  padding: 2rem 0 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
}

.checklist .icon {
  margin-top: 0.2em;
}

.services-more {
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile {
    min-height: 0;
  }
}

/* ---------- Accueil : étapes ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 2.75rem 0 0;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.steps::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease);
}

.steps.is-in::after {
  transform: scaleX(1);
}

.step {
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: -2.75rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.4s ease;
  transition-delay: calc(0.3s + var(--i, 0) * 0.35s);
}

.steps.is-in .step::before {
  background: var(--accent);
}

.step h3 {
  font-size: 1.25rem;
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.step p {
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding: 0 0 0 2.75rem;
  }

  .steps::before,
  .steps::after {
    top: 0;
    bottom: 0;
    left: 0.55rem;
    right: auto;
    width: 2px;
    height: auto;
  }

  .steps::after {
    transform: scaleY(0);
    transform-origin: top;
  }

  .steps.is-in::after {
    transform: scaleY(1);
  }

  .step::before {
    top: 0.2rem;
    left: -2.75rem;
  }
}

/* ---------- Réalisations : cadres de navigateur ---------- */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.work-grid > :nth-child(2) {
  margin-top: clamp(2rem, 8vw, 6rem);
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.frame {
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 70px -40px rgba(21, 22, 26, 0.45);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}

.work-card:hover .frame {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow:
    0 0 0 1px var(--line),
    0 55px 90px -40px rgba(21, 22, 26, 0.5);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding-inline: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line);
}

.frame-shot {
  aspect-ratio: 16 / 10;
}

.work-caption {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}

.work-caption strong {
  font-size: 1.1rem;
  font-stretch: 112%;
}

.work-caption span {
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-grid > :nth-child(2) {
    margin-top: 0;
  }
}

/* ---------- Appel à l'action final ---------- */
.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--on-accent);
}

.cta-panel h2 {
  font-size: var(--fs-display);
}

.cta-panel p {
  margin: 1.5rem 0 2.25rem;
  max-width: 42ch;
  font-size: 1.15rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-panel .todo-inline {
  background: #fff;
}

@media (max-width: 480px) {
  .cta-panel {
    padding: 2.25rem 1.25rem;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* Cercles concentriques (rayons 60, 110, 155 et 195 dans un carré de 400) :
   éléments HTML animés sans redessin, pour un défilement fluide */
.cta-motif {
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -45%;
  width: min(70%, 640px);
  aspect-ratio: 1;
  color: var(--on-accent);
  opacity: 0.2;
}

.cta-motif span {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: breathe 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.2s);
}

.cta-motif .d0 {
  inset: 35%;
}

.cta-motif .d1 {
  inset: 22.5%;
}

.cta-motif .d2 {
  inset: 11.25%;
}

.cta-motif .d3 {
  inset: 1.25%;
}

@keyframes breathe {
  50% {
    transform: scale(1.06);
  }
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 32ch;
  color: var(--ink-soft);
}

.footer-col h2 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a,
.footer-col li {
  color: var(--ink-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Pages intérieures : en-tête de page ---------- */
[id] {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-title {
  font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.25rem);
  max-width: 17ch;
}

.page-lead {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
}

.page-hero-motif {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -6%;
  width: min(44vw, 540px);
  transform: translateY(-50%);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.35;
  pointer-events: none;
}

.page-hero-motif circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--i, 0) * 0.15s);
}

.page-hero-motif .dot {
  fill: var(--accent);
  stroke: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: pop 0.8s var(--ease) 0.9s both;
}

@media (max-width: 700px) {
  .page-hero-motif {
    right: -40%;
    width: 90vw;
    opacity: 0.16;
  }
}

.icon-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  transition: transform 0.6s var(--ease);
}

.icon-badge .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.h2 {
  font-size: var(--fs-h2);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ---------- Prestations ---------- */
.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--bg);
}

.service-panel .tile-kicker {
  opacity: 0.7;
}

.service-panel .h2 {
  margin-top: 0.4rem;
}

.service-panel .service-lead {
  margin-top: 1.25rem;
  max-width: 40ch;
  opacity: 0.85;
  font-size: 1.1rem;
}

.price-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 239, 0.25);
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}

/* Cartes internes : rayon 20px */
.feature {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(242, 242, 239, 0.06);
  border: 1px solid rgba(242, 242, 239, 0.12);
  transition:
    background-color 0.4s ease,
    transform 0.6s var(--ease);
}

.feature:hover {
  background: rgba(242, 242, 239, 0.1);
  transform: translateY(-4px);
}

.feature:hover .icon-badge {
  transform: rotate(-8deg) scale(1.06);
}

.feature h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.15rem;
  font-stretch: 112%;
  font-weight: 700;
}

.feature p {
  font-size: 0.98rem;
  opacity: 0.8;
}

.row-list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
}

.row-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1.5rem;
  padding-block: 2rem;
}

.row-item + .row-item {
  border-top: 1px solid var(--line);
}

.row-item h3 {
  font-size: var(--fs-h3);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.3s ease;
}

.row-item p {
  color: var(--ink-soft);
  font-size: 1.075rem;
}

.row-item:hover h3 {
  color: var(--accent);
}

.row-item:hover .icon-badge {
  transform: rotate(-8deg) scale(1.08);
}

@media (max-width: 860px) {
  .service-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .row-item {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.75rem 1.25rem;
  }

  .row-item p {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Réalisations ---------- */
.project-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem 3rem;
  margin-top: 1.75rem;
}

.project-info h2,
.project-card h2 {
  font-size: var(--fs-h3);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project-meta {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.project-text {
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tag {
  padding: 0.35em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-link {
  margin-top: 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.project-card .frame {
  margin-bottom: 1.5rem;
}

.project-card .project-text {
  margin-top: 0.75rem;
}

@media (max-width: 800px) {
  .project-info,
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Méthode : frise verticale ---------- */
.method {
  --rail: 3.5rem;
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0;
  padding: 0 0 0 var(--rail);
  list-style: none;
}

.method::before,
.method::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.6rem;
  width: 2px;
  background: var(--line);
}

/* La ligne bleue se remplit au fil du défilement (navigateurs compatibles) */
.method::after {
  background: var(--accent);
  transform-origin: top;
}

@supports (animation-timeline: view()) {
  .method::after {
    animation: rail-fill linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 65%;
  }
}

@keyframes rail-fill {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

.method-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
}

.method-step::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: calc(var(--rail) * -1 + 0.6rem + 1px - 0.7rem);
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.5s ease 0.3s;
}

.method-step.is-in::before {
  background: var(--accent);
}

.method-title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.method-text {
  margin-top: 1rem;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.method-details {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.method-box {
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.method-box h3 {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.method-box p {
  color: var(--ink-soft);
}

.method-box.is-accent {
  background: var(--accent);
  box-shadow: none;
  color: var(--on-accent);
}

.method-box.is-accent p {
  color: var(--on-accent);
  opacity: 0.9;
}

@media (max-width: 800px) {
  .method {
    --rail: 2.75rem;
  }

  .method-step {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- À propos ---------- */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.portrait-wrap {
  position: relative;
  isolation: isolate;
  margin-right: 1rem;
}

/* Aplat bleu décalé derrière la photo */
.portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: var(--radius-card);
  background: var(--accent);
  transform: translate(1rem, 1rem);
  transition: transform 1.2s var(--ease) 0.2s;
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-soft);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 1.6s var(--ease);
}

.js .portrait-wrap:not(.is-in)::before {
  transform: translate(0, 0);
}

.js .portrait-wrap:not(.is-in) img {
  transform: scale(1.08);
}

.portrait-wrap:hover img {
  transform: scale(1.03);
}

.prose {
  max-width: 62ch;
  font-size: 1.125rem;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose .h2 {
  margin-bottom: 1.5rem;
}

.values {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  transition: transform 0.7s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
}

.value-card:first-child {
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 22rem;
  background: var(--accent);
  color: var(--on-accent);
}

.value-card:nth-child(2) {
  background: var(--ink);
  color: var(--bg);
}

.value-card:nth-child(3) {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.value-card h3 {
  font-size: var(--fs-h3);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.value-card p {
  opacity: 0.85;
}

.value-card:first-child .icon-badge {
  background: var(--on-accent);
  color: var(--accent);
  margin-bottom: auto;
}

@media (max-width: 800px) {
  .about-split,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait-wrap {
    max-width: 400px;
  }

  .value-card:first-child {
    grid-row: auto;
    min-height: 0;
  }

  .value-card:first-child .icon-badge {
    margin-bottom: 1rem;
  }
}

/* ---------- Avis clients ---------- */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.rating-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.rating-score .big {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.rating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--accent);
}

.stars svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.stars .is-empty {
  color: var(--line);
}

.reviews-grid {
  columns: 2 320px;
  column-gap: 1.25rem;
  margin-top: 1.25rem;
}

.review-card {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  padding: 1.75rem;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.review-card blockquote {
  margin: 1rem 0 1.25rem;
  font-size: 1.075rem;
}

.review-card figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.review-card figcaption span {
  color: var(--ink-soft);
}

.info-box {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 20px;
  background: var(--bg-soft);
}

.info-box h2 {
  font-size: 1.35rem;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.info-box ul {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.7s var(--ease);
}

a.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card .icon-badge {
  margin-bottom: 1.25rem;
  transition: transform 0.6s var(--ease);
}

a.contact-card:hover .icon-badge {
  transform: rotate(-10deg) scale(1.08);
}

.contact-card .label {
  font-size: 0.95rem;
  opacity: 0.75;
}

.contact-card .value {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-card .hint {
  font-size: 0.95rem;
  opacity: 0.8;
}

.contact-card.is-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.contact-card.is-accent .icon-badge,
.contact-card.is-ink .icon-badge {
  background: var(--on-accent);
  color: var(--accent);
}

.contact-card.is-ink {
  background: var(--ink);
  color: var(--bg);
}

.mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.mail-actions .btn {
  gap: 0.5em;
}

.mail-actions .btn:hover .icon {
  transform: none;
}

.contact-card .webmail a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}

.contact-card .webmail a:hover {
  text-decoration-thickness: 2px;
}

/* Bouton email adapté à l'appareil : Gmail sur ordinateur, application Mail sur écran tactile */
.only-touch {
  display: none !important;
}

@media (hover: none) and (pointer: coarse) {
  .only-desktop {
    display: none !important;
  }

  .btn.only-touch {
    display: inline-flex !important;
  }

  p.only-touch {
    display: block !important;
  }
}

/* Sans JavaScript, le bouton « Copier » ne servirait à rien : on le cache */
html:not(.js) [data-copy] {
  display: none;
}

.contact-card.is-plain {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.quote-tips {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.quote-tips ol {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
}

.quote-tips li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 1.1rem;
  counter-increment: tip;
}

.quote-tips li::before {
  content: counter(tip);
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(0.35rem);
}

.privacy-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 70ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.privacy-note a {
  color: var(--accent);
}

@media (max-width: 800px) {
  .contact-grid,
  .quote-tips {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Pages légales ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.toc p {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.toc ol {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: var(--accent);
}

.legal {
  max-width: 75ch;
}

.legal h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal p,
.legal li,
.legal dd {
  color: var(--ink-soft);
}

.legal p + p {
  margin-top: 0.9rem;
}

.legal ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.9rem 0;
  padding-left: 1.2rem;
}

.legal dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.6rem 1.5rem;
  margin: 1rem 0;
}

.legal dt {
  font-weight: 600;
}

.legal dd {
  margin: 0;
}

.legal a {
  color: var(--accent);
}

.legal-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--bg-soft);
  }
}

@media (max-width: 560px) {
  .legal dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .legal dd {
    margin-bottom: 0.75rem;
  }
}

/* ---------- Page introuvable ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h));
  padding-block: 3rem;
  text-align: center;
}

.error-code {
  font-size: clamp(6rem, 22vw, 15rem);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--accent);
}

.error-page .page-title,
.error-page .page-lead {
  margin-inline: auto;
}

.error-page .hero-actions {
  justify-content: center;
  margin-top: 2.25rem;
}

/* ---------- Animations d'entrée ---------- */
.js :is(.hero, .page-hero, .error-page) .line > span {
  transform: translateY(108%);
  animation: line-up 0.9s var(--ease) forwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.1s);
}

.js [data-hero-fade] {
  opacity: 0;
  animation: fade-up 0.8s var(--ease) forwards;
  animation-delay: calc(0.3s + var(--i, 0) * 0.1s);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* La frise des étapes garde son propre mouvement */
.js .steps[data-reveal] {
  transform: none;
}

@keyframes line-up {
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Transitions entre les pages ---------- */
@view-transition {
  navigation: auto;
}

/* Fondu court et léger : la nouvelle page s'affiche presque aussitôt */
::view-transition-old(root) {
  animation: page-out 0.18s ease-out both;
}

::view-transition-new(root) {
  animation: page-in 0.32s var(--ease) both;
}

@keyframes page-out {
  to {
    opacity: 0;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Impression : tout le contenu reste visible ---------- */
@media print {
  .js [data-reveal],
  .js [data-hero-fade],
  .js .line > span {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .site-header,
  .mobile-menu,
  .skip-link,
  body::after {
    display: none !important;
  }
}

/* ---------- Réduction des animations (réglage du visiteur) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .radar-pulse {
    display: none;
  }

  .method::after {
    animation: none !important;
    transform: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
