@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #eef2f6;
  --paper-deep: #e2e8ef;
  --plate: #ffffff;
  --ink: #0e1a33;
  --ink-soft: #46526b;
  --signal: #0a8fcc;
  --signal-text: #006fa3;
  --line: #c3ceda;
  --beacon: #ffb81c;
  --beacon-strong: #d48b00;
  --screen: #0b1630;
  --screen-text: #e6edf6;
  --panel: #0e1a33;
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 16v8M16 20h8' stroke='%23d3dbe4' stroke-width='1'/%3E%3C/svg%3E");

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.66rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);

  --gutter: clamp(24px, 6vw, 40px);
  --radius-plate: 6px;
  --radius-ui: 4px;
  --shadow-plate: 0 1px 0 rgba(14, 26, 51, 0.06), 0 10px 30px -18px rgba(14, 26, 51, 0.35);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1a33;
    --paper-deep: #0a1428;
    --plate: #16244a;
    --ink: #e8eef5;
    --ink-soft: #a7b3c8;
    --signal: #09aff4;
    --signal-text: #5fcdfb;
    --line: #2b3b62;
    --screen: #061024;
    --panel: #15274f;
    --beacon-strong: #ffc94d;
    --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 16v8M16 20h8' stroke='%231c2b50' stroke-width='1'/%3E%3C/svg%3E");
    --shadow-plate: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1a33;
  --paper-deep: #0a1428;
  --plate: #16244a;
  --ink: #e8eef5;
  --ink-soft: #a7b3c8;
  --signal: #09aff4;
  --signal-text: #5fcdfb;
  --line: #2b3b62;
  --screen: #061024;
  --panel: #15274f;
  --beacon-strong: #ffc94d;
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 16v8M16 20h8' stroke='%231c2b50' stroke-width='1'/%3E%3C/svg%3E");
  --shadow-plate: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fond fixe : halos de la couleur de marque, puis trame de « + » qui s'estompe vers le bas */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(70% 60% at 88% 0%, color-mix(in srgb, var(--signal) 13%, transparent), transparent 70%),
    radial-gradient(60% 55% at 0% 100%, color-mix(in srgb, var(--signal) 8%, transparent), transparent 70%);
}
/* Lucioles (site.js) : entre la trame et le contenu */
.fireflies {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
body::after {
  z-index: -1;
  background-image: var(--grid);
  -webkit-mask-image: radial-gradient(130% 90% at 65% 0%, #000 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.18) 100%);
  mask-image: radial-gradient(130% 90% at 65% 0%, #000 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.18) 100%);
}

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

a {
  color: var(--signal-text);
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-ui);
  font: 600 var(--step-0) / 1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--beacon);
  border-color: var(--beacon);
  color: #0e1a33;
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
/* Bouton central « Parler de mon projet » : halo qui tourne lentement autour */
@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
/* Le halo passe derrière le bouton : le contexte d'empilement est porté par le parent */
.hero-actions {
  isolation: isolate;
}
.hero-cta {
  position: relative;
}
.hero-cta::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  /* Halo tout autour, qui se décale doucement en cercle : plus marqué d'un côté puis de l'autre */
  background: linear-gradient(var(--glow-angle), rgba(255, 184, 28, 0.85), rgba(255, 184, 28, 0.55) 60%, rgba(9, 175, 244, 0.45));
  transform: translate(calc(cos(var(--glow-angle)) * 5px), calc(sin(var(--glow-angle)) * 4px));
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cta::before {
    animation: cta-glow-spin 6s linear infinite;
  }
}
@keyframes cta-glow-spin {
  to { --glow-angle: 360deg; }
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--plate);
}
.btn .plus {
  width: 0.8em;
  height: 0.8em;
  flex: none;
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}
.brand {
  color: var(--ink);
  margin-right: auto;
}
.brand svg {
  width: clamp(150px, 18vw, 190px);
  height: auto;
}
.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--signal-text);
}
.header-cta {
  padding: 0.65rem 1rem;
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .header-inner {
    gap: 1rem;
  }
  .header-cta .long {
    display: none;
  }
}
@media (min-width: 761px) {
  .header-cta .short {
    display: none;
  }
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero h1 .thin {
  display: block;
  max-width: 22ch;
  margin-top: 0.45em;
  font-size: max(0.56em, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    max-width: 18ch;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-block: 1.5rem 2.25rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10.5vw, 2.8rem);
  }
  .hero h1 .thin {
    max-width: none;
    font-size: 1.4rem;
  }
  .hero-lead {
    margin-top: 1.1rem;
    font-size: 1.1rem;
  }
  .hero-actions {
    margin-top: 1.5rem;
    gap: 0.6rem;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
    padding-block: 0.95rem;
  }
  .board-mark {
    display: none;
  }
}

/* Table de montage du hero */

.board {
  position: relative;
  aspect-ratio: 10 / 9;
  --px: 0;
  --py: 0;
}
.board-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.board-links path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.25;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}
.board-links .node {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.board-hub {
  position: absolute;
  left: 57%;
  top: 58%;
  width: clamp(40px, 9%, 64px);
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--ink);
  z-index: 1;
}
.board-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
}
.board-mark.tl { left: -9px; top: -9px; }
.board-mark.tr { right: -9px; top: -9px; }
.board-mark.bl { left: -9px; bottom: -9px; }
.board-mark.br { right: -9px; bottom: -9px; }

.frag {
  position: absolute;
  transform: translate3d(calc(var(--px) * var(--depth, 1) * 12px), calc(var(--py) * var(--depth, 1) * 12px), 0);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.frag svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 16px 22px rgba(14, 26, 51, 0.16));
}
.frag-tv { left: 0; top: 2%; width: 60%; --depth: 0.6; }
.frag-meter { right: 0; top: 0; width: 37%; --depth: 1.2; }
.frag-recipe { left: 4%; top: 52%; width: 42%; --depth: 1; }
.frag-story { right: 3%; top: 41%; width: 27%; --depth: 1.5; }
.frag-tree { left: 48%; top: 75%; width: 19%; --depth: 0.8; }

/* Éléments des interfaces dessinées */

.ui-plate { fill: var(--plate); }
.ui-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ui-screen { fill: var(--screen); }
.ui-text { fill: var(--ink); font-family: var(--font-text); }
.ui-soft { fill: var(--ink-soft); font-family: var(--font-text); }
.ui-title { fill: var(--ink); font-family: var(--font-display); font-weight: 700; }
.ui-light { fill: var(--screen-text); font-family: var(--font-text); }
.ui-light-title { fill: #ffffff; font-family: var(--font-display); font-weight: 650; }
.ui-signal { fill: var(--signal); }
.ui-signal-stroke { fill: none; stroke: var(--signal); stroke-width: 6; stroke-linecap: round; }
.ui-track { fill: none; stroke: var(--paper-deep); stroke-width: 6; }
.ui-tile { fill: #17284d; }
.ui-tile-on { fill: var(--signal); }
.ui-bar { fill: var(--paper-deep); }
.ui-rule { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ui-beacon { fill: var(--beacon); }
.ui-choice { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.ui-choice-on { fill: var(--signal); }
.ui-node { fill: var(--plate); stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.ui-node-on { fill: var(--signal); stroke: var(--signal); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.ui-edge { fill: none; stroke: var(--ink-soft); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.ui-edge-on { fill: none; stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Séquence d'assemblage : seulement avec JS, et sans préférence de mouvement réduit */

@media (prefers-reduced-motion: no-preference) {
  .js .board .trace {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .js .board .fill,
  .js .board .board-links,
  .js .board .board-hub,
  .js .board .board-mark {
    opacity: 0;
  }
  .js .board.is-running .trace {
    animation: trace 1s cubic-bezier(0.6, 0, 0.3, 1) var(--d, 0s) forwards;
  }
  .js .board.is-running .fill {
    animation: fill-in 0.6s ease-out calc(var(--d, 0s) + 0.65s) forwards;
  }
  .js .board.is-running .board-mark {
    animation: fade 0.5s ease-out forwards;
  }
  .js .board.is-running .board-hub {
    animation: hub-in 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 1.35s forwards;
  }
  .js .board.is-running .board-links {
    animation: fade 0.8s ease-out 1.5s forwards;
  }
  .js .board.is-running .grow {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: grow 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) calc(var(--d, 0s) + 0.9s) both;
  }
  .js .board.is-running .sweep {
    animation: sweep 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) calc(var(--d, 0s) + 0.9s) both;
  }
}

@keyframes trace {
  to { stroke-dashoffset: 0; }
}
@keyframes fill-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  to { opacity: 1; }
}
@keyframes grow {
  from { transform: scaleY(0); }
}
@keyframes sweep {
  from { stroke-dasharray: 0 100; }
}
@keyframes hub-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Sections */

.section {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 {
  font-size: var(--step-3);
  font-weight: 720;
  text-wrap: balance;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .section-head p,
  .place .place-text p {
    font-size: 1.1rem;
  }
}

/* Bande de logos */

.clients-band {
  padding-block: 0 clamp(3rem, 6vw, 4.5rem);
}
.clients-band h2 {
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}
.carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}
.carousel-btn {
  display: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink-soft);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.15s;
}
.js .carousel-btn {
  display: grid;
}
.carousel-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-btn:hover:not(:disabled) {
  opacity: 0.9;
}
.carousel-btn:disabled {
  opacity: 0;
  cursor: default;
}
.plates {
  --visible: 7;
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 4px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel.is-auto .plates {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.plates::-webkit-scrollbar {
  display: none;
}
.plates li {
  flex: 0 0 calc((100% - (var(--visible) - 1) * 0.75rem) / var(--visible));
  scroll-snap-align: start;
}
.plate {
  display: grid;
  place-items: center;
  height: 5.25rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: var(--radius-plate);
  box-shadow: var(--shadow-plate);
  position: relative;
}
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}
.plate::before { left: 6px; }
.plate::after { right: 6px; }
.plate img {
  max-height: 2.4rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.plate img.logo-tall {
  max-height: 3.25rem;
}
a.plate:hover img,
a.plate:focus-visible img {
  filter: none;
  opacity: 1;
}
@media (max-width: 960px) {
  .plates {
    --visible: 4;
  }
}
@media (max-width: 560px) {
  /* Mobile : deux rangées de logos qui défilent ensemble */
  .plates {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc((100% - 2 * 0.5rem) / 3);
    gap: 0.5rem;
  }
  .plate {
    height: 4rem;
    padding: 0.6rem;
  }
  .plate img {
    max-height: 1.8rem;
  }
  .plate img.logo-tall {
    max-height: 2.5rem;
  }
  .carousel {
    gap: 0.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plates {
    scroll-behavior: auto;
  }
}

/* Savoir-faire */

.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  gap: 0 clamp(1rem, 2.5vw, 1.5rem);
}
/* Subgrid : visuels, titres, textes et listes alignés d'une carte à l'autre */
.way {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--plate);
  border-radius: var(--radius-plate);
  box-shadow: var(--shadow-plate);
}
.way-visual {
  margin-bottom: 1.5rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--paper);
  border-radius: var(--radius-ui);
}
.way-visual svg {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}
.way h3 {
  font-size: var(--step-2);
  font-weight: 700;
}
.way > p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}
.way-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.way-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border-radius: var(--radius-ui);
  font-size: 0.95rem;
  line-height: 1.3;
}
.way-points svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-sketch { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 4 4; }
.sv-arrow { fill: none; stroke: var(--beacon-strong); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sv-app { fill: var(--screen); }
.sv-app-text { fill: var(--screen-text); }
.sv-app-media { fill: var(--signal); }
.sv-app-cta { fill: var(--beacon); }
.sv-app-new { fill: none; stroke: var(--beacon); stroke-width: 1.5; }
.sv-old { fill: var(--paper-deep); stroke: var(--line); stroke-width: 1.5; }
.sv-old-block { fill: var(--line); }
.sv-badge { fill: var(--beacon); }
.sv-badge-plus { stroke: #0e1a33; stroke-width: 2.5; stroke-linecap: round; }

/* Forme finale visible par défaut ; l'animation la rejoue une fois au défilement */
@media (prefers-reduced-motion: no-preference) {
  .way-visual.is-visible .sv-from {
    animation: fill-in 0.5s ease-out both;
  }
  .way-visual.is-visible .sv-arrow {
    animation: sv-trace 0.4s ease-out 0.5s both;
  }
  .way-visual.is-visible .sv-to {
    transform-box: fill-box;
    transform-origin: center;
    animation: sv-pop-in 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 0.85s both;
  }
  .way-visual.is-visible .sv-grow {
    transform-box: fill-box;
    transform-origin: left center;
    animation: sv-grow 0.4s ease-out var(--d) both;
  }
  .way-visual.is-visible .sv-pop {
    transform-box: fill-box;
    transform-origin: center;
    animation: pin-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 2.1s both;
  }
}
/* Points des savoir-faire : glissent depuis les côtés à leur arrivée à l'écran */
@media (prefers-reduced-motion: no-preference) {
  .js .way-points li {
    opacity: 0;
    transform: translateX(-2rem);
    transition: opacity 0.6s ease-out var(--delay, 0s), transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) var(--delay, 0s);
  }
  .js .way-points li:nth-child(even) {
    transform: translateX(2rem);
  }
  .js .way-points li.is-visible {
    opacity: 1;
    transform: none;
  }
}

@keyframes sv-trace {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes sv-pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes sv-grow {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .ways {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .way {
    display: block;
  }
}
@media (max-width: 480px) {
  .way-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Réalisations */

.clients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.client {
  background: var(--plate);
  border-radius: var(--radius-plate);
  box-shadow: var(--shadow-plate);
}
.client-heading {
  font: inherit;
  margin: 0;
}
.client-toggle {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
  background: none;
  border: 0;
  border-radius: var(--radius-plate);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.client-logo {
  display: grid;
  place-items: center;
  height: 4.25rem;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: var(--radius-ui);
}
.client-logo img {
  max-height: 2.3rem;
  width: auto;
}
.client-logo img.logo-tall {
  max-height: 3rem;
}
.client-logo img.app-icon {
  max-height: 3rem;
  border-radius: 22%;
}
.client-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.1;
}
.client-sector {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: var(--step-0);
}
.toggle-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), background-color 0.2s, color 0.2s;
}
.toggle-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}
.client-toggle:hover .toggle-icon {
  background: var(--beacon);
  border-color: var(--beacon);
  color: #0e1a33;
}
.store-link a {
  font-size: var(--step--1);
  font-weight: 600;
}
.client.is-open .toggle-icon {
  transform: rotate(45deg);
}
.client-body {
  display: grid;
  grid-template-rows: 1fr;
}
.js .client-body {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .client.is-open .client-body {
  grid-template-rows: 1fr;
}
.client-body-inner {
  overflow: hidden;
  min-height: 0;
}
.projects {
  border-top: 1px solid var(--line);
  margin: 0 clamp(1rem, 3vw, 1.75rem);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}
.project + .project {
  border-top: 1px dashed var(--line);
}
.project.no-visual {
  grid-template-columns: minmax(0, 1fr);
}
.project h4 {
  font-size: var(--step-2);
  font-weight: 680;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.tags li {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.tags li.kind {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.tags li.kind.creation {
  background: var(--beacon);
  border-color: var(--beacon);
  color: #0e1a33;
}
.tags li.kind.reprise {
  background: var(--signal);
  border-color: var(--signal);
  color: #0e1a33;
}
.project-text > p {
  margin-top: 1rem;
  max-width: 40rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 1.5rem 0 0;
}
.facts div {
  display: grid;
}
.facts dt {
  order: 2;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
}
.stack {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.stack strong {
  color: var(--ink);
  font-weight: 600;
}
.project-visual {
  align-self: center;
}
.project-visual img {
  border-radius: var(--radius-ui);
}
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.shots img {
  border-radius: 10px;
  border: 3px solid var(--ink);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.visual-frame {
  padding: 1.25rem;
  background: var(--paper) var(--grid);
  border-radius: var(--radius-ui);
}
.visual-frame svg {
  width: 100%;
  height: auto;
}
.visual-frame.has-inset {
  position: relative;
  padding-block: 1.75rem;
}
.visual-frame.has-inset svg {
  max-width: 280px;
  margin-left: auto;
  margin-right: 4%;
}
.project-visual .visual-inset {
  position: absolute;
  left: 5%;
  bottom: 8%;
  width: 26%;
  max-width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: #ffffff;
  box-shadow: var(--shadow-plate);
  z-index: 1;
}

@media (max-width: 860px) {
  .client-toggle {
    grid-template-columns: minmax(0, 1fr) 2.5rem;
    grid-template-areas:
      "logo icon"
      "text text";
    row-gap: 1rem;
  }
  .client-logo {
    grid-area: logo;
    justify-self: start;
    width: 10rem;
  }
  .client-text { grid-area: text; }
  .toggle-icon { grid-area: icon; }
  .project {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Méthode */

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.value {
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
}
.value-key {
  border-top: 4px solid var(--beacon);
  padding-top: calc(1.25rem - 2.5px);
}
.value-icon {
  display: block;
  width: 8rem;
  height: 8rem;
  margin-bottom: 1.25rem;
  padding: 1.3rem;
  background: var(--plate);
  border-radius: var(--radius-plate);
  box-shadow: var(--shadow-plate);
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-icon .vi-accent {
  stroke: var(--beacon-strong);
}
.value-icon .vi-dot {
  stroke-width: 3.6;
}
.value h3 {
  font-size: var(--step-1);
  font-weight: 700;
}
.value p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .values {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Une colonne : l'icône passe à gauche du titre et du texte */
  .value {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 1rem;
  }
  .value-icon {
    grid-row: span 2;
    width: 6.25rem;
    height: 6.25rem;
    margin-bottom: 0;
    padding: 1rem;
  }
}

/* À la pointe de la tech */

.techs-panel {
  --ink: #e8eef5;
  --ink-soft: #a7b3c8;
  --line: #34466f;
  padding: clamp(1.75rem, 5vw, 4rem);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 184, 28, 0.12), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(9, 175, 244, 0.16), transparent 60%),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-plate);
  color: var(--ink);
}
.techs-panel .section-head h2 {
  font-size: var(--step-4);
  font-weight: 760;
  letter-spacing: -0.015em;
}
.flow {
  --cycle: 9s;
  --data: #09aff4;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 3rem minmax(0, 1.3fr) 3rem minmax(0, 1fr);
  align-items: start;
}
.flow-visual {
  height: 13rem;
}
.flow-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: var(--font-text);
}
.flow-step h3 {
  margin-top: 1.75rem;
  font-size: var(--step-1);
  font-weight: 700;
}
.flow-core h3 {
  color: var(--beacon);
}
.flow-step p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.flow-step .tech-chips {
  margin-top: 1rem;
}
.flow-wire {
  position: relative;
  height: 2px;
  margin-top: 6.5rem;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
/* Le point lumineux se déplace en translatant un calque de la taille du fil */
.flow-pulse {
  --x: -1;
  --y: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
}
.flow-pulse::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--data);
  box-shadow: 0 0 14px 4px rgba(9, 175, 244, 0.65);
}

.fv-body { fill: #13254a; stroke: var(--line); stroke-width: 1.5; }
.fv-screen { fill: #0b1630; stroke: var(--line); stroke-width: 1.5; }
.fv-text { fill: var(--ink); }
.fv-soft { fill: var(--ink-soft); }
.fv-antenna { stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.fv-beacon { fill: var(--data); }
.fv-wave { fill: none; stroke: var(--data); stroke-width: 2; stroke-linecap: round; opacity: 0.6; }
.fv-link { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 3; }
.fv-pins { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.fv-led { fill: var(--data); }
.fv-live { fill: var(--data); }
.fv-data { fill: none; stroke: var(--data); stroke-width: 2; stroke-linejoin: round; }
.fv-spike { fill: none; stroke: var(--beacon); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fv-spike-dot { fill: var(--beacon); }
.fv-ai { fill: #212731; stroke: rgba(255, 184, 28, 0.55); stroke-width: 1.5; }
.fv-ai-icon { fill: rgba(255, 184, 28, 0.2); stroke: var(--beacon); stroke-width: 1.6; stroke-linejoin: round; }
.fv-ai-label { fill: var(--beacon); font-weight: 600; }
.fv-cover { fill: #212731; transform-box: fill-box; transform-origin: right center; transform: scaleX(0); }
.fv-rule { stroke: var(--line); }
.fv-dot { fill: var(--line); }
.fv-tile { fill: #13254a; stroke: var(--line); }
.fv-skel { fill: var(--line); }
.fv-skel-strong { fill: var(--ink-soft); }
.fv-bar { fill: rgba(9, 175, 244, 0.45); }
.fv-bar-alert { fill: var(--beacon); }
.fv-phone { fill: #13254a; stroke: var(--ink-soft); stroke-width: 1.5; }
.fv-notif > rect:first-child { fill: var(--ink); }
.fv-notif-line { fill: #0e1a33; }
.fv-notif-soft { fill: #8793a8; }

@media (prefers-reduced-motion: no-preference) {
  .js .flow-pulse { animation: flow-hop var(--cycle) linear infinite; }
  .js .flow-pulse-2 { animation-name: flow-hop-2; }
  .js .fv-wave { animation: flow-wave 1.8s ease-out infinite; }
  .js .fv-wave:nth-child(2) { animation-delay: 0.3s; }
  .js .fv-wave:nth-child(3) { animation-delay: 0.6s; }
  .js .fv-led,
  .js .fv-live { animation: flow-blink 1.2s ease-in-out infinite alternate; }
  .js .fv-led-2 { animation-delay: 0.4s; }
  .js .fv-led-3 { animation-delay: 0.8s; }
  .js .fv-spike { stroke-dasharray: 1; animation: flow-spike var(--cycle) ease-out infinite; }
  .js .fv-spike-dot { animation: flow-spike-dot var(--cycle) infinite; }
  .js .fv-message { animation: flow-message var(--cycle) infinite; }
  .js .fv-cover-1 { animation: flow-type-1 var(--cycle) infinite; }
  .js .fv-cover-2 { animation: flow-type-2 var(--cycle) infinite; }
  .js .fv-bar-alert { animation: flow-alert var(--cycle) infinite; }
  .js .fv-notif { transform-box: fill-box; animation: flow-notif var(--cycle) ease-out infinite; }
  .js .flow:not(.is-playing) * { animation-play-state: paused; }
}
@keyframes flow-hop {
  0%, 8% { opacity: 0; transform: none; }
  10% { opacity: 1; }
  20% { opacity: 1; transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%)); }
  22%, 100% { opacity: 0; transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%)); }
}
@keyframes flow-hop-2 {
  0%, 48% { opacity: 0; transform: none; }
  50% { opacity: 1; }
  60% { opacity: 1; transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%)); }
  62%, 100% { opacity: 0; transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%)); }
}
@keyframes flow-wave {
  0% { opacity: 0; }
  30% { opacity: 0.9; }
  100% { opacity: 0; }
}
@keyframes flow-blink {
  to { opacity: 0.25; }
}
@keyframes flow-spike {
  0%, 22% { stroke-dashoffset: 1; opacity: 1; }
  30%, 92% { stroke-dashoffset: 0; opacity: 1; }
  97%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes flow-spike-dot {
  0%, 29% { opacity: 0; }
  31%, 92% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes flow-message {
  0%, 90% { opacity: 1; }
  95%, 97% { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes flow-type-1 {
  0%, 32% { transform: scaleX(1); animation-timing-function: steps(18); }
  39%, 96% { transform: scaleX(0); }
  97%, 100% { transform: scaleX(1); }
}
@keyframes flow-type-2 {
  0%, 39% { transform: scaleX(1); animation-timing-function: steps(34); }
  47%, 96% { transform: scaleX(0); }
  97%, 100% { transform: scaleX(1); }
}
@keyframes flow-alert {
  0%, 60% { fill: rgba(9, 175, 244, 0.45); }
  62%, 92% { fill: var(--beacon); }
  96%, 100% { fill: rgba(9, 175, 244, 0.45); }
}
@keyframes flow-notif {
  0%, 62% { opacity: 0; transform: translateY(-12px); }
  66%, 92% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(-12px); }
}

@media (max-width: 860px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }
  .flow-visual {
    height: 11rem;
  }
  .flow-wire {
    justify-self: center;
    width: 2px;
    height: 3.5rem;
    margin: 1.5rem 0;
    background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px);
  }
  .flow-pulse {
    --x: 0;
    --y: -1;
  }
  .flow-pulse::before {
    left: 50%;
    top: 100%;
  }
}
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tech-chips li {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--ink);
}

/* Made in Montpellier */

.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.place-text h2 {
  font-size: var(--step-4);
  font-weight: 760;
  letter-spacing: -0.025em;
}
.place-text p {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}
.map {
  margin: 0;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.map svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.map-land {
  fill: var(--plate);
}
.map-plus {
  stroke: var(--line);
  stroke-width: 1;
}
.map-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.map-arrow {
  fill: none;
  stroke: var(--beacon-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.map-label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 720;
}
.map-pin-plate {
  fill: var(--plate);
  stroke: var(--ink);
  stroke-width: 2;
}
.map-pin-plus {
  stroke: var(--signal);
  stroke-width: 4;
}
.map-pulse {
  fill: var(--signal);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .map .map-outline,
  .js .map .map-arrow {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .js .map .map-land,
  .js .map .map-land-grid,
  .js .map .map-label,
  .js .map .map-pin {
    opacity: 0;
  }
  .js .map.is-visible .map-outline {
    animation: trace 1.8s cubic-bezier(0.5, 0, 0.3, 1) forwards;
  }
  .js .map.is-visible .map-land,
  .js .map.is-visible .map-land-grid {
    animation: fade 0.8s ease-out 1.1s forwards;
  }
  .js .map.is-visible .map-pin {
    transform-box: fill-box;
    transform-origin: center;
    animation: pin-in 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 1.6s forwards;
  }
  .js .map.is-visible .map-arrow {
    animation: trace 0.7s ease-out 2s forwards;
  }
  .js .map.is-visible .map-arrow-head {
    animation-delay: 2.6s;
    animation-duration: 0.25s;
  }
  .js .map.is-visible .map-label {
    animation: fade 0.5s ease-out 2.1s forwards;
  }
  .js .map.is-visible .map-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 2.4s ease-out 2.4s infinite;
  }
}
@keyframes pin-in {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  from { opacity: 0.35; transform: scale(1); }
  to { opacity: 0; transform: scale(3); }
}
@media (max-width: 860px) {
  .place-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */

.contact {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}
.contact-panel {
  --paper: #0e1a33;
  --plate: #16244a;
  --ink: #e8eef5;
  --ink-soft: #a7b3c8;
  --line: #34466f;
  --signal-text: #5fcdfb;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 5vw, 4rem);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(9, 175, 244, 0.16), transparent 65%),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: var(--radius-plate);
  color-scheme: dark;
}
.contact-intro h2 {
  font-size: var(--step-3);
  font-weight: 720;
}
.contact-intro p {
  margin-top: 1rem;
  color: var(--ink-soft);
}
.contact-direct {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.contact-direct a {
  font-weight: 600;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}
.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.field.full {
  grid-column: 1 / -1;
}
.field label,
.field legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
}
.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  font: inherit;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--beacon);
  outline-offset: 1px;
  border-color: transparent;
}
.field [aria-invalid="true"] {
  border-color: #ff8a7a;
}
.field-error {
  color: #ffb3a8;
  font-size: var(--step--1);
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.choices label {
  position: relative;
  font-weight: 500;
}
.choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choices span {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.choices input:checked + span {
  background: var(--signal);
  border-color: var(--signal);
  color: #0e1a33;
}
.choices input:focus-visible + span {
  outline: 3px solid var(--beacon);
  outline-offset: 2px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 4px;
  --altcha-color-base: #16244a;
  --altcha-color-border: #34466f;
  --altcha-color-text: #e8eef5;
  --altcha-color-border-focus: #ffc21a;
  --altcha-color-error-text: #ffb3a8;
  --altcha-color-footer-bg: #0e1a33;
  --altcha-max-width: 300px;
}
.contact-panel .btn-primary {
  background: var(--beacon);
  border-color: var(--beacon);
  color: #0e1a33;
}
.contact-panel .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}
.contact-panel .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.form-legal {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.form-status {
  grid-column: 1 / -1;
  min-height: 1.6em;
  font-weight: 500;
}
.form-status.is-success {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--beacon);
  background: var(--plate);
}
.form-status.is-error {
  color: #ffb3a8;
}
@media (max-width: 860px) {
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pied de page */

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-brand {
  color: var(--ink);
}
.footer-brand svg {
  width: 150px;
  height: auto;
  margin-bottom: 0.6rem;
}
.footer-slogan {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 500;
}
.footer-legal {
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--ink);
}

/* Page simple (mentions légales) */

.page {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.prose {
  max-width: 44rem;
}
.prose h1 {
  font-size: var(--step-4);
  font-weight: 740;
}
.prose h2 {
  margin-top: 2.5rem;
  font-size: var(--step-2);
  font-weight: 700;
}
.prose p,
.prose ul {
  margin-top: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .frag {
    transform: none;
  }
}
