@font-face {
  font-family: "Ubuntu";
  src: url("fonts/ubuntu.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --navy: #0d1f3c;
  --navy-2: #142b52;
  --bleu: #1f4fa3;
  --red: #e0482a;
  --ink: #16191f;
  --text: #4a4f58;
  --line: #d9dbe0;
  --grey: #f2f2f0;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font:
    400 17px/1.6 "Ubuntu",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: #fff;
}

a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: #c23a1f;
}
.btn--small {
  padding: 8px 14px;
  font-size: 15px;
}

/* Titres : un sérif classique. */
.serif {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}
.serif em {
  font-style: italic;
  font-weight: 400;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.brand {
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
}
.brand small {
  font-size: inherit;
  font-weight: 400;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.nav__links a {
  color: var(--text);
  text-decoration: none;
}
.nav__links a:hover {
  color: var(--ink);
}

/* En-tête : fond marine, grands cercles, Marianne en médaillon. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 72px 0 80px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--navy-2);
}
.hero::before {
  width: 720px;
  height: 720px;
  top: -320px;
  left: -260px;
}
.hero::after {
  width: 900px;
  height: 900px;
  right: -360px;
  bottom: -520px;
  opacity: 0.7;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.08;
}
h1 em {
  color: #9db8ec;
}
.hero__lead {
  margin: 24px 0 36px;
  max-width: 30em;
  font-size: 20px;
  font-weight: 300;
  color: #c9d1de;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
}
.link-light {
  color: #fff;
  font-weight: 500;
  text-underline-offset: 4px;
}

/* Sections */
.section {
  padding: 96px 0;
}
.section--grey {
  background: var(--grey);
}
h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  margin-bottom: 40px;
}
.section__lead {
  max-width: 44em;
  margin: -16px 0 48px;
  font-size: 19px;
  color: var(--text);
}
.section__note {
  max-width: 52em;
  margin: 32px 0 0;
  color: var(--text);
}

/* Grilles à filets */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  border-top: 2px solid var(--ink);
}
.grid--4 {
  --cols: 4;
}
.grid--2 {
  --cols: 2;
}
.grid--spaced {
  margin-top: 56px;
}
.grid > div {
  padding: 28px 28px 32px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.grid > div:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}
.grid--4 > div:nth-child(n),
.grid--2 > div:nth-child(n) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.grid--4 > div:first-child,
.grid--2 > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.grid h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.grid h3.hot {
  color: var(--red);
}
.grid p {
  margin: 0;
  color: var(--text);
}

/* Cas d'usage par direction : même grille à filets, sur deux colonnes. */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--ink);
}
.cases article {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: start;
  column-gap: 20px;
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--line);
}
.cases article:nth-child(2n) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.cases article > :not(.picto) {
  grid-column: 2;
}
.cases .picto {
  grid-row: 1 / span 4;
}
.cases h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}
.cases__issue {
  margin: 0 0 12px;
  color: var(--text);
}
.cases ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.cases li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.cases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--red);
}
.cases__gain {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--bleu);
  background: #f2f5fb;
  font-size: 15px;
  color: var(--ink);
}
.cases__gain strong {
  color: var(--bleu);
}
.cases__more {
  max-width: 52em;
  margin: 32px 0 0;
  color: var(--text);
}

.picto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.picto svg {
  width: 28px;
  height: 28px;
}
.picto--sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.picto--sm svg {
  width: 18px;
  height: 18px;
}
.picto--blue {
  color: var(--bleu);
  background: #e6edf9;
}
.picto--red {
  color: var(--red);
  background: #fde8e3;
}
.picto--navy {
  color: var(--navy);
  background: #e7eaf0;
}
.picto--green {
  color: #2f7d5b;
  background: #e3f1ea;
}
.picto--plum {
  color: #8a2f5c;
  background: #f6e8ef;
}
.picto--ochre {
  color: #b07a10;
  background: #fbf1dc;
}

/* Trois gestes et démonstration */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 28px 64px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -4px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.steps h3 {
  font-size: 21px;
  margin-bottom: 4px;
}
.steps p {
  margin: 0;
  color: var(--text);
}

.demo {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(13, 31, 60, 0.1);
  overflow: hidden;
  font-size: 15px;
}
.demo__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.demo__model {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e8eef9;
  color: var(--bleu);
  font-size: 13px;
  font-weight: 500;
}
.demo__msg {
  margin: 16px 18px;
  line-height: 1.5;
}
.demo__msg--user {
  margin-left: 64px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--grey);
}
.demo__msg--bot p {
  margin: 0 0 8px;
}
.demo table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.demo th,
.demo td {
  padding: 6px 8px;
  border: 1px solid var(--line);
  text-align: left;
}
.demo th {
  background: var(--grey);
  font-weight: 500;
}

/* Contact */
.cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--navy);
  color: #fff;
}
.cta::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  bottom: -320px;
  border-radius: 50%;
  background: var(--navy-2);
  animation: drift 22s ease-in-out infinite alternate;
}
.cta .wrap {
  position: relative;
}
.cta h2 {
  margin-bottom: 12px;
}
.cta__lead {
  margin: 0 0 32px;
  font-size: 19px;
  color: #c9d1de;
}

@media (max-width: 960px) {
  .hero__inner,
  .steps-layout {
    grid-template-columns: 1fr;
  }
  .grid,
  .grid--4 {
    --cols: 2;
  }
  .grid > div:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }
  .cases {
    grid-template-columns: 1fr;
  }
  .cases article:nth-child(n) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}
@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
  .nav .btn--small {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 56px;
  }
  .section {
    padding: 72px 0;
  }
  h2 {
    margin-bottom: 32px;
  }
  .grid,
  .grid--4,
  .grid--2 {
    --cols: 1;
  }
  .grid > div {
    padding-right: 0;
  }
  .cases article {
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
  }
  .cases .picto {
    width: 44px;
    height: 44px;
  }
  .demo__msg--user {
    margin-left: 18px;
  }
}
@media (max-width: 480px) {
  .nav .btn--small {
    display: none;
  }
}

/* Navigation : page courante, ombre au défilement */
.nav {
  transition: box-shadow 0.25s ease;
}
.nav--scrolled {
  box-shadow: 0 6px 20px rgba(13, 31, 60, 0.08);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav__links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}
.btn {
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(224, 72, 42, 0.28);
}

/* Bandeau des pages intérieures */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background: var(--navy);
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  top: -340px;
  right: -180px;
  border-radius: 50%;
  background: var(--navy-2);
  animation: drift 18s ease-in-out infinite alternate;
}
.page-hero .wrap {
  position: relative;
}
.page-hero h1 {
  max-width: 18em;
}

/* Les trois axes, en page d'accueil */
.axes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.axes__item {
  position: relative;
  display: block;
  padding: 32px 28px 36px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.25s ease;
}
.axes__item:first-child {
  padding-left: 0;
  border-left: 0;
}
.axes__item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.axes__item:hover::before {
  transform: scaleX(1);
}
.axes__item h3 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 10px;
}
.axes__item p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--text);
}
.axes__more {
  font-weight: 500;
  color: var(--bleu);
}
.axes__more::after {
  content: " →";
  display: inline-block;
  transition: transform 0.25s ease;
}
.axes__item:hover .axes__more::after {
  transform: translateX(4px);
}

/* Survols */
.grid > div,
.cases article {
  position: relative;
}
.grid > div::before,
.cases article::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.grid > div:hover::before,
.cases article:hover::before {
  transform: scaleX(1);
}
.picto {
  transition: transform 0.25s ease;
}
/* Au survol d'une carte, son pictogramme s'anime : l'icône oscille et un halo
   de sa couleur se diffuse autour du carré. */
.picto {
  position: relative;
  isolation: isolate;
}
.picto::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
  z-index: -1;
}
.cases article:hover .picto,
.story__panel:hover .picto {
  transform: translateY(-4px);
}
.cases article:hover .picto svg,
.story__panel:hover .picto svg {
  animation: icon-wiggle 0.7s ease;
}
.cases article:hover .picto::after,
.story__panel:hover .picto::after {
  animation: icon-halo 0.9s ease-out;
}
@keyframes icon-wiggle {
  0% {
    transform: none;
  }
  25% {
    transform: rotate(-14deg) scale(1.15);
  }
  50% {
    transform: rotate(10deg) scale(1.15);
  }
  75% {
    transform: rotate(-5deg) scale(1.08);
  }
  100% {
    transform: none;
  }
}
@keyframes icon-halo {
  from {
    opacity: 0.45;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

/* En-tête animé */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(40px, 30px);
  }
}
@keyframes sweep {
  from {
    opacity: 0;
    transform: rotate(-24deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes zoom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.hero::before {
  animation: drift 20s ease-in-out infinite alternate;
}
.hero::after {
  animation: drift 26s ease-in-out -8s infinite alternate-reverse;
}
.hero__text > *,
.page-hero .wrap > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__text > :nth-child(2),
.page-hero .wrap > :nth-child(2) {
  animation-delay: 0.1s;
}
.hero__text > :nth-child(3),
.page-hero .wrap > :nth-child(3) {
  animation-delay: 0.2s;
}
.hero__text > :nth-child(4) {
  animation-delay: 0.3s;
}

/* Apparition au défilement (seulement si le script tourne) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* La conversation d'exemple se joue quand elle arrive à l'écran. */
.js .demo--pending .demo__msg,
.js .demo--pending tbody tr {
  opacity: 0;
  transform: translateY(10px);
}
.demo--play .demo__msg,
.demo--play tbody tr {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.js .demo--play .demo__msg--user {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.js .demo--play .demo__msg--bot {
  opacity: 1;
  transform: none;
  transition-delay: 1.6s;
}
.js .demo--play tbody tr {
  opacity: 1;
  transform: none;
}
.js .demo--play tbody tr:nth-child(1) {
  transition-delay: 2.1s;
}
.js .demo--play tbody tr:nth-child(2) {
  transition-delay: 2.4s;
}
.demo__msg--user {
  position: relative;
}
/* Trois points sous le message de l'agent, le temps que la réponse arrive. */
.js .demo__msg--user::after {
  content: "";
  position: absolute;
  left: -46px;
  bottom: -26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow:
    10px 0 0 var(--text),
    20px 0 0 var(--text);
  opacity: 0;
}
.js .demo--play .demo__msg--user::after {
  animation: typing 1.2s ease 0.5s 1;
}
@keyframes typing {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  80% {
    opacity: 0.6;
  }
}

@media (max-width: 960px) {
  .axes {
    grid-template-columns: 1fr;
  }
  .axes__item:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Chiffres clés : une carte posée à cheval sur l'en-tête. */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -72px;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(13, 31, 60, 0.04),
    0 24px 60px rgba(13, 31, 60, 0.16);
  overflow: hidden;
}
.stats__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  padding: 32px 32px 30px;
  transition:
    background 0.3s ease,
    translate 0.3s ease;
}
.stats__item + .stats__item {
  border-left: 1px solid var(--line);
}
.stats__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stats__item:hover {
  background: #f7f9fc;
}
.stats__item:hover::after {
  transform: scaleX(1);
}
.stats__item--blue {
  --accent: var(--bleu);
}
.stats__item--red {
  --accent: var(--red);
}
.stats__item--green {
  --accent: #2f7d5b;
}
.stats__item .picto {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.stats__item .picto svg {
  width: 26px;
  height: 26px;
}
.stats__item strong {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stats__label {
  grid-column: 2;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

/* Étapes reliées par un filet qui se trace à l'apparition. */
.pipeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: p;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  /* Stops at the last dot: one column, less half a dot, from the right edge. */
  right: calc((100% - 84px) / 4 - 22px);
  height: 2px;
  background: var(--navy);
  transform-origin: left;
}
.pipeline li {
  counter-increment: p;
  position: relative;
  padding-top: 64px;
}
.pipeline li::before {
  content: counter(p);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grey);
  border: 2px solid var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.section--grey .pipeline li::before {
  background: var(--grey);
}
.section:not(.section--grey) .pipeline li::before {
  background: #fff;
}
.pipeline h3 {
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 6px;
}
.pipeline p {
  margin: 0;
  color: var(--text);
}
.js .pipeline.reveal::before {
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.6, 0, 0.2, 1) 0.2s;
}
.js .pipeline.reveal.is-in::before {
  transform: scaleX(1);
}
.js .pipeline.reveal {
  opacity: 1;
  transform: none;
}
.js .pipeline.reveal li {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .pipeline.reveal.is-in li {
  opacity: 1;
  transform: none;
}
.js .pipeline.reveal.is-in li:nth-child(2) {
  transition-delay: 0.35s;
}
.js .pipeline.reveal.is-in li:nth-child(3) {
  transition-delay: 0.7s;
}
.js .pipeline.reveal.is-in li:nth-child(4) {
  transition-delay: 1.05s;
}

/* Pictogrammes qui s'installent avec un léger rebond. */
@keyframes pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.js .reveal .picto {
  opacity: 0;
}
.js .reveal.is-in .picto {
  opacity: 1;
  animation: pop 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms + 0.15s) backwards;
}

/* Parallaxe discrète des cercles de l'en-tête, pilotée par anim.js. */
.hero__inner {
  transform: translateY(calc(var(--scroll, 0) * -0.06px));
}
.hero::before {
  translate: 0 calc(var(--scroll, 0) * 0.18px);
}
.hero::after {
  translate: 0 calc(var(--scroll, 0) * -0.12px);
}

/* Fondu entre les pages, là où le navigateur sait le faire. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 0.25s ease both fade-out;
}
::view-transition-new(root) {
  animation: 0.35s ease both fade-in;
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .stats__inner {
    grid-template-columns: 1fr;
  }
  .stats__item + .stats__item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .pipeline::before {
    display: none;
  }
}
@media (max-width: 640px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
  .stats__item strong {
    font-size: 44px;
  }
  .stats {
    margin-top: -40px;
  }
}

/* Barre de progression de lecture, sous la navigation (créée par anim.js). */
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--red);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* Halo qui suit la souris dans l'en-tête. */
.hero,
.page-hero {
  --mx: 70%;
  --my: 40%;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(157, 184, 236, 0.16),
    transparent 60%
  );
  transition: opacity 0.4s ease;
}

/* Titres dévoilés par un rideau. */
.js .title-reveal {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  transition:
    clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .title-reveal.is-in {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* Les cas d'usage arrivent du côté de leur colonne. */
.js .cases article.reveal {
  transform: translateX(calc(var(--dir, 1) * 48px));
}
.js .cases article.reveal.is-in {
  transform: none;
}
.js .axes__item.reveal,
.js .stats__item.reveal {
  transform: translateY(32px) scale(0.97);
}
.js .axes__item.reveal.is-in,
.js .stats__item.reveal.is-in {
  transform: none;
}

/* Les trois enjeux : colonne gauche épinglée, panneaux qui défilent. */
.story__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}
.story__aside {
  position: sticky;
  top: 120px;
  align-self: start;
}
.story__aside h2 {
  margin-bottom: 24px;
}
.story__numeral {
  position: relative;
  height: 180px;
  font-family: var(--serif);
  font-size: 180px;
  font-weight: 700;
  line-height: 1;
}
.story__numeral span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.story__numeral span:nth-child(1) {
  color: var(--bleu);
}
.story__numeral span:nth-child(2) {
  color: var(--red);
}
.story__numeral span:nth-child(3) {
  color: #2f8a5f;
}
.story__numeral span.is-active {
  opacity: 1;
  transform: none;
}
.story__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 320px;
  margin-top: 28px;
}
.story__progress i {
  height: 4px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.story__progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
.story__progress i:nth-child(1)::after {
  background: var(--bleu);
}
.story__progress i:nth-child(2)::after {
  background: var(--red);
}
.story__progress i:nth-child(3)::after {
  background: #2f8a5f;
}
.story__progress i.is-done::after {
  transform: scaleX(1);
}
.story__panels {
  display: grid;
  gap: 24px;
}
.story__panel {
  display: block;
  min-height: 62vh;
  padding: 40px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
/* Dimmed until current, only while the script drives the section. */
.js:not(.no-motion) .story__panel {
  opacity: 0.4;
  transform: scale(0.97);
}
.js:not(.no-motion) .story__panel.is-active {
  opacity: 1;
  transform: none;
  box-shadow: 0 24px 50px rgba(13, 31, 60, 0.1);
}
html:not(.js) .story__numeral,
html:not(.js) .story__progress,
.no-motion .story__numeral,
.no-motion .story__progress {
  display: none;
}
.js:not(.no-motion) .story__panel--blue.is-active,
html:not(.js) .story__panel--blue,
.no-motion .story__panel--blue {
  border-top-color: var(--bleu);
}
.js:not(.no-motion) .story__panel--red.is-active,
html:not(.js) .story__panel--red,
.no-motion .story__panel--red {
  border-top-color: var(--red);
}
.js:not(.no-motion) .story__panel--green.is-active,
html:not(.js) .story__panel--green,
.no-motion .story__panel--green {
  border-top-color: #2f8a5f;
}
.story__panel h3 {
  margin: 24px 0 12px;
  line-height: 1.15;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--navy);
}
.story__panel p {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--text);
}
.story__panel ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.story__panel li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line);
}
.story__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 10px;
  height: 2px;
  background: var(--red);
}

/* Bandeau photo en parallaxe. */
.band {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #050a14;
}
.band__img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  object-position: 60% center;
  transform: translateY(var(--parallax, 0px)) scale(1.05);
  will-change: transform;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 10, 20, 0.88) 0%,
    rgba(5, 10, 20, 0.55) 45%,
    transparent 75%
  );
}
.band__text {
  position: relative;
  z-index: 1;
  width: 100%;
}
.band__text h2 {
  max-width: 13em;
  margin-bottom: 20px;
}
.band__text p {
  max-width: 30em;
  margin: 0;
  font-size: 19px;
  color: #d5dbe6;
}

/* Bandeau de mots qui glisse avec le défilement. */
.marquee {
  overflow: hidden;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  transform: translateX(var(--shift, 0px));
  will-change: transform;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
}
.marquee__track span:nth-child(3n + 2) {
  color: var(--navy);
  -webkit-text-stroke: 0;
}

/* La roue de l'en-tête tourne légèrement au défilement. */

@media (max-width: 960px) {
  .story__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story__aside {
    position: static;
  }
  .story__numeral,
  .story__progress {
    display: none;
  }
  .story__panel,
  .js:not(.no-motion) .story__panel {
    min-height: 0;
    opacity: 1;
    transform: none;
  }
  .band {
    min-height: 460px;
  }
  .band::after {
    background: rgba(5, 10, 20, 0.7);
  }
}
@media (max-width: 640px) {
  .story__panel {
    padding: 28px 24px;
  }
}

/* Le parcours d'une demande : un cycle de 10 s, rejoué tant qu'il est visible. */
@property --t {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.flow {
  --cycle: 10s;
  display: grid;
  grid-template-columns: 1fr 110px 1.35fr 110px 1fr;
  align-items: center;
  margin-top: 8px;
}
.flow__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.flow__node strong {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
}
.flow__sub {
  color: var(--text);
  font-size: 15px;
}
.flow__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.flow__badge svg {
  width: 14px;
  height: 14px;
}
.flow__sent {
  background: #fde8e3;
  color: var(--red);
}
.flow__received {
  background: #e3efe8;
  color: #2f7d5b;
}
.flow__checks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  width: 100%;
}
.flow__checks li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.flow__checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #2f7d5b;
}
.flow__audit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}
.flow__audit svg {
  width: 16px;
  height: 16px;
}
.flow__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flow__chips span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8eef9;
  color: var(--bleu);
  font-size: 13px;
  font-weight: 500;
}
.flow__thinking {
  display: flex;
  gap: 5px;
  height: 8px;
}
.flow__thinking i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bleu);
  opacity: 0.25;
}
.flow__link {
  position: relative;
  height: 2px;
  margin: 0 8px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 12px);
}
.flow__dot {
  position: absolute;
  top: 50%;
  left: calc(var(--t) * 100%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  opacity: 0;
}
.flow__dot--out {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(224, 72, 42, 0.2);
}
.flow__dot--back {
  background: #2f8a5f;
  box-shadow: 0 0 0 5px rgba(47, 138, 95, 0.2);
}
.flow__caption {
  position: relative;
  height: 1.6em;
  margin: 36px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--bleu);
  text-align: center;
}
.flow__caption span {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
}

/* Sans animation : tout est allumé, les points et la légende s'effacent. */
.js:not(.no-motion) .flow:not(.is-in) .flow__checks li::before,
.js:not(.no-motion) .flow.is-in .flow__checks li::before {
  background: var(--line);
}
html:not(.js) .flow__caption,
.no-motion .flow__caption,
html:not(.js) .flow__badge,
.no-motion .flow__badge {
  display: none;
}
html:not(.js) .flow__caption span:first-child,
.no-motion .flow__caption span:first-child {
  opacity: 1;
}

/* Le cycle : chaque élément a sa fenêtre dans les 10 s. */
.flow.is-in .flow__agent {
  animation: flow-agent var(--cycle) linear infinite;
}
.flow.is-in .flow__portal {
  animation: flow-portal var(--cycle) linear infinite;
}
.flow.is-in .flow__model {
  animation: flow-model var(--cycle) linear infinite;
}
.flow.is-in .flow__sent {
  animation: flow-sent var(--cycle) linear infinite;
}
.flow.is-in .flow__received {
  animation: flow-received var(--cycle) linear infinite;
}
.flow__sent,
.flow__received {
  opacity: 0;
}
html:not(.js) .flow__sent,
.no-motion .flow__sent {
  opacity: 1;
}
.flow.is-in .flow__checks li::before {
  animation: flow-check var(--cycle) linear infinite;
}
.flow.is-in .flow__checks li:nth-child(1)::before {
  animation-name: flow-check-1;
}
.flow.is-in .flow__checks li:nth-child(2)::before {
  animation-name: flow-check-2;
}
.flow.is-in .flow__checks li:nth-child(3)::before {
  animation-name: flow-check-3;
}
.flow.is-in .flow__checks li:nth-child(4)::before {
  animation-name: flow-check-4;
}
.flow.is-in .flow__audit {
  animation: flow-audit var(--cycle) linear infinite;
}
.flow.is-in .flow__thinking i {
  animation: flow-think var(--cycle) linear infinite;
}
.flow.is-in .flow__thinking i:nth-child(2) {
  animation-name: flow-think-2;
}
.flow.is-in .flow__thinking i:nth-child(3) {
  animation-name: flow-think-3;
}
.flow.is-in .flow__link:not(.flow__link--model) .flow__dot--out {
  animation: flow-out-1 var(--cycle) linear infinite;
}
.flow.is-in .flow__link--model .flow__dot--out {
  animation: flow-out-2 var(--cycle) linear infinite;
}
.flow.is-in .flow__link--model .flow__dot--back {
  animation: flow-back-2 var(--cycle) linear infinite;
}
.flow.is-in .flow__link:not(.flow__link--model) .flow__dot--back {
  animation: flow-back-1 var(--cycle) linear infinite;
}
.flow.is-in .flow__caption span:nth-child(1) {
  animation: flow-cap-1 var(--cycle) linear infinite;
}
.flow.is-in .flow__caption span:nth-child(2) {
  animation: flow-cap-2 var(--cycle) linear infinite;
}
.flow.is-in .flow__caption span:nth-child(3) {
  animation: flow-cap-3 var(--cycle) linear infinite;
}
.flow.is-in .flow__caption span:nth-child(4) {
  animation: flow-cap-4 var(--cycle) linear infinite;
}

@keyframes flow-agent {
  0%,
  6%,
  86%,
  96% {
    border-color: var(--navy);
    box-shadow: 0 12px 30px rgba(13, 31, 60, 0.14);
  }
  12%,
  80%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
}
@keyframes flow-portal {
  0%,
  14%,
  54%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  18%,
  48% {
    border-color: var(--red);
    box-shadow: 0 12px 30px rgba(224, 72, 42, 0.18);
  }
}
@keyframes flow-model {
  0%,
  50%,
  68%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  54%,
  64% {
    border-color: var(--bleu);
    box-shadow: 0 12px 30px rgba(31, 79, 163, 0.18);
  }
}
@keyframes flow-sent {
  0%,
  14% {
    opacity: 1;
  }
  18%,
  100% {
    opacity: 0;
  }
}
@keyframes flow-received {
  0%,
  84% {
    opacity: 0;
  }
  88%,
  97% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes flow-check-1 {
  0%,
  19% {
    background: var(--line);
  }
  21%,
  92% {
    background: #2f7d5b;
  }
  96%,
  100% {
    background: var(--line);
  }
}
@keyframes flow-check-2 {
  0%,
  25% {
    background: var(--line);
  }
  27%,
  92% {
    background: #2f7d5b;
  }
  96%,
  100% {
    background: var(--line);
  }
}
@keyframes flow-check-3 {
  0%,
  31% {
    background: var(--line);
  }
  33%,
  92% {
    background: #2f7d5b;
  }
  96%,
  100% {
    background: var(--line);
  }
}
@keyframes flow-check-4 {
  0%,
  37% {
    background: var(--line);
  }
  39%,
  92% {
    background: #2f7d5b;
  }
  96%,
  100% {
    background: var(--line);
  }
}
@keyframes flow-audit {
  0%,
  72%,
  86%,
  100% {
    border-color: var(--line);
    background: transparent;
  }
  76%,
  82% {
    border-color: var(--navy);
    background: #eef1f6;
  }
}
@keyframes flow-think {
  0%,
  52%,
  66%,
  100% {
    opacity: 0.25;
  }
  55%,
  59%,
  63% {
    opacity: 1;
  }
  57%,
  61% {
    opacity: 0.25;
  }
}
@keyframes flow-think-2 {
  0%,
  53%,
  66%,
  100% {
    opacity: 0.25;
  }
  56%,
  60%,
  64% {
    opacity: 1;
  }
  58%,
  62% {
    opacity: 0.25;
  }
}
@keyframes flow-think-3 {
  0%,
  54%,
  66%,
  100% {
    opacity: 0.25;
  }
  57%,
  61%,
  65% {
    opacity: 1;
  }
  59%,
  63% {
    opacity: 0.25;
  }
}
@keyframes flow-out-1 {
  0%,
  4% {
    --t: 0;
    opacity: 0;
  }
  5% {
    --t: 0;
    opacity: 1;
  }
  15% {
    --t: 1;
    opacity: 1;
  }
  16%,
  100% {
    --t: 1;
    opacity: 0;
  }
}
@keyframes flow-out-2 {
  0%,
  40% {
    --t: 0;
    opacity: 0;
  }
  41% {
    --t: 0;
    opacity: 1;
  }
  51% {
    --t: 1;
    opacity: 1;
  }
  52%,
  100% {
    --t: 1;
    opacity: 0;
  }
}
@keyframes flow-back-2 {
  0%,
  65% {
    --t: 1;
    opacity: 0;
  }
  66% {
    --t: 1;
    opacity: 1;
  }
  74% {
    --t: 0;
    opacity: 1;
  }
  75%,
  100% {
    --t: 0;
    opacity: 0;
  }
}
@keyframes flow-back-1 {
  0%,
  76% {
    --t: 1;
    opacity: 0;
  }
  77% {
    --t: 1;
    opacity: 1;
  }
  85% {
    --t: 0;
    opacity: 1;
  }
  86%,
  100% {
    --t: 0;
    opacity: 0;
  }
}
@keyframes flow-cap-1 {
  0%,
  15% {
    opacity: 1;
  }
  17%,
  100% {
    opacity: 0;
  }
}
@keyframes flow-cap-2 {
  0%,
  16% {
    opacity: 0;
  }
  18%,
  39% {
    opacity: 1;
  }
  41%,
  100% {
    opacity: 0;
  }
}
@keyframes flow-cap-3 {
  0%,
  40% {
    opacity: 0;
  }
  42%,
  64% {
    opacity: 1;
  }
  66%,
  100% {
    opacity: 0;
  }
}
@keyframes flow-cap-4 {
  0%,
  65% {
    opacity: 0;
  }
  67%,
  98% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .flow {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .flow__link {
    width: 2px;
    height: 56px;
    margin: 8px auto;
    background: repeating-linear-gradient(180deg, var(--navy) 0 6px, transparent 6px 12px);
  }
  .flow__dot {
    top: calc(var(--t) * 100%);
    left: 50%;
  }
  .flow__caption {
    font-size: 18px;
    text-align: left;
  }
}

/* Formulaire de contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form,
.contact-done {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
}
.contact-form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}
.contact-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.contact-optional {
  font-weight: 400;
  color: var(--text);
}
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-pill input {
  position: absolute;
  opacity: 0;
}
.contact-pill span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.contact-pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.contact-pill input:focus-visible + span {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-field {
  margin-bottom: 22px;
}
.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c4c8d0;
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(31, 79, 163, 0.15);
}
.contact-field textarea {
  resize: vertical;
}
.contact-error {
  display: none;
  margin: 6px 0 0;
  font-size: 14px;
  color: #c23a1f;
}
.contact-field.is-invalid .contact-error {
  display: block;
}
.contact-field.is-invalid input,
.contact-field.is-invalid textarea {
  border-color: #c23a1f;
}
.contact-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.contact-consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
.contact-actions .btn {
  border: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.contact-actions .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.contact-status {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}
.contact-status.is-error {
  color: #c23a1f;
}
.contact-done h2 {
  margin-bottom: 12px;
}
.contact-done p {
  margin: 0;
  color: var(--text);
}
.contact-aside h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--navy);
}
.contact-aside ul {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.contact-aside li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.contact-aside p a {
  color: var(--bleu);
  font-weight: 500;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .contact-form,
  .contact-done {
    padding: 28px 20px;
  }
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Pied de page */
.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a172d;
  color: #c9d1de;
  font-size: 15px;
}
.foot a {
  color: #c9d1de;
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot a:hover {
  color: #fff;
}
.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.foot__logo {
  font-size: 20px;
  font-weight: 700;
}
.foot .foot__logo {
  color: #fff;
}
.foot__logo small {
  font-size: inherit;
  font-weight: 400;
  color: #9aa6ba;
}
.foot__brand p {
  max-width: 24em;
  margin: 16px 0 20px;
  line-height: 1.6;
}
.foot__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.foot__social svg {
  width: 20px;
  height: 20px;
}
.foot__social:hover {
  border-color: #fff;
}
.foot__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot__col h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.foot__col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.foot__col svg {
  width: 16px;
  height: 16px;
}
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* Mentions légales */
.legal {
  max-width: 820px;
}
.legal h2 {
  margin: 48px 0 16px;
  font-size: 28px;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal p,
.legal li {
  color: var(--text);
}
.legal a {
  color: var(--bleu);
}
.legal__todo {
  padding: 12px 16px;
  border-left: 4px solid var(--red);
  background: #fdf0ec;
}

@media (max-width: 960px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .foot__grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .foot__bottom {
    flex-direction: column;
  }
}

/* Carte de France, page Souveraineté. */
.france-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.france {
  display: block;
  width: 100%;
  max-width: 460px;
  overflow: visible;
}
.france__land {
  fill: #e8eef9;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.france__dot {
  fill: var(--red);
  stroke: #fff;
  stroke-width: 3;
}
.france__ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  opacity: 0;
}
.france__label rect {
  fill: var(--navy);
}
.france__label text {
  fill: #fff;
  font:
    500 15px "Ubuntu",
    system-ui,
    sans-serif;
}
.grid--stack {
  --cols: 1;
}
.grid--stack > div:nth-child(n) {
  padding-left: 0;
  border-left: 0;
}

/* Le contour se trace, puis la France se remplit et le repère se pose. */
.js:not(.no-motion) .france .france__land {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill-opacity: 0;
}
.js:not(.no-motion) .france .france__pin,
.js:not(.no-motion) .france .france__label {
  opacity: 0;
}
.france.is-in .france__land {
  animation:
    france-draw 1.8s cubic-bezier(0.6, 0, 0.2, 1) forwards,
    france-fill 0.8s ease 1.4s forwards;
}
.france.is-in .france__pin {
  animation: france-pin 0.6s cubic-bezier(0.2, 0.7, 0.2, 1.4) 2s forwards;
}
.france.is-in .france__label {
  animation: france-label 0.5s ease 2.4s forwards;
}
.france.is-in .france__ring {
  animation: france-ring 2.4s ease-out 2.6s infinite;
}
.france.is-in .france__ring--late {
  animation-delay: 3.8s;
}
@keyframes france-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes france-fill {
  to {
    fill-opacity: 1;
  }
}
@keyframes france-pin {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes france-label {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes france-ring {
  from {
    opacity: 0.7;
    r: 10;
  }
  to {
    opacity: 0;
    r: 46;
  }
}

@media (max-width: 960px) {
  .france-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .france {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Questions fréquentes */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq {
  border-top: 2px solid var(--ink);
  interpolate-size: allow-keywords;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  background: var(--navy);
  color: #fff;
}
.faq__item summary:hover {
  color: var(--bleu);
}
.faq__answer p {
  margin: 0 0 24px;
  max-width: 44em;
  color: var(--text);
}
/* Ouverture en douceur, là où le navigateur sait animer un <details>. */
.faq__item::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.35s ease,
    content-visibility 0.35s allow-discrete;
}
.faq__item[open]::details-content {
  height: auto;
}

@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* En-tête : le Sénat dans une arche, trois étiquettes qui flottent autour. */
.hero__visual {
  position: relative;
  height: 520px;
}
.hero__halo {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 111, 209, 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(224, 72, 42, 0.35), transparent 55%);
  filter: blur(40px);
  animation: halo-turn 24s linear infinite;
}
.hero__arch {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 330px;
  height: 430px;
  margin: -215px 0 0 -165px;
  border-radius: 165px 165px 14px 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 0 12px rgba(255, 255, 255, 0.06),
    0 30px 70px rgba(0, 0, 0, 0.45);
}
.hero__arch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__chip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(13, 31, 60, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  color: #fff;
  text-decoration: none;
  translate: 0 calc(var(--scroll, 0) * var(--depth, 0) * 1px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    scale 0.25s ease;
}
.hero__chip:hover {
  background: rgba(13, 31, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
  scale: 1.04;
}
.hero__chip strong {
  display: block;
  font-size: 15px;
}
.hero__chip small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #c9d1de;
}
.hero__chip .picto {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.hero__chip--1 {
  top: 6%;
  left: -2%;
  --depth: -0.12;
}
.hero__chip--2 {
  top: 44%;
  right: -6%;
  --depth: -0.2;
}
.hero__chip--3 {
  bottom: 6%;
  left: 2%;
  --depth: -0.08;
}

@keyframes halo-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes arch-open {
  from {
    clip-path: inset(100% 0 0 0 round 165px 165px 14px 14px);
  }
  to {
    clip-path: inset(0 0 0 0 round 165px 165px 14px 14px);
  }
}
@keyframes arch-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
@keyframes chip-in {
  from {
    opacity: 0;
    filter: blur(8px);
    scale: 0.9;
  }
}
@keyframes chip-float {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(6px);
  }
}
.hero__arch {
  animation: arch-open 1.2s cubic-bezier(0.7, 0, 0.2, 1) 0.2s backwards;
}
.hero__arch img {
  animation: arch-zoom 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
}
.hero__chip {
  animation:
    chip-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    chip-float 5s ease-in-out infinite alternate;
}
.hero__chip--1 {
  animation-delay: 1s, 0s;
}
.hero__chip--2 {
  animation-delay:
    1.2s,
    -1.6s;
  animation-duration: 0.8s, 6s;
}
.hero__chip--3 {
  animation-delay:
    1.4s,
    -3s;
  animation-duration: 0.8s, 5.5s;
}

@media (max-width: 960px) {
  .hero__visual {
    height: auto;
    display: grid;
    gap: 12px;
    justify-items: center;
  }
  .hero__halo {
    inset: 0;
  }
  .hero__arch {
    position: relative;
    left: auto;
    top: auto;
    width: 260px;
    height: 330px;
    margin: 0 0 12px;
  }
  .hero__chip {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 360px;
    translate: none;
  }
}

/* Variante A : la photo du Sénat occupe tout l'en-tête. */
.hero--photo {
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 120px 0 140px;
  background: #0a172d;
}
.hero--photo::before {
  display: none;
}
.hero--photo::after {
  inset: 0;
  width: auto;
  height: auto;
  right: 0;
  bottom: 0;
  border-radius: 0;
  opacity: 1;
  translate: none;
  animation: none;
  background: linear-gradient(
    90deg,
    rgba(10, 23, 45, 0.96) 0%,
    rgba(10, 23, 45, 0.88) 38%,
    rgba(10, 23, 45, 0.45) 62%,
    rgba(10, 23, 45, 0.12) 100%
  );
}
.hero__bg {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 72% 40%;
  translate: 0 calc(var(--scroll, 0) * 0.25px);
  animation: hero-zoom 3.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes hero-zoom {
  from {
    scale: 1.12;
    opacity: 0.4;
  }
}
.hero--photo .hero__inner {
  z-index: 2;
  width: 100%;
  grid-template-columns: minmax(0, 620px);
}
.hero__caption {
  position: absolute;
  right: 24px;
  bottom: 92px;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Variante B : l'arche seule, cernée d'un filet qui se trace. */
.hero__visual--arch {
  position: relative;
  height: 540px;
}
.hero__arch--solo {
  width: 360px;
  height: 470px;
  margin: -235px 0 0 -180px;
  border-radius: 180px 180px 14px 14px;
  animation: arch-open-solo 1.3s cubic-bezier(0.7, 0, 0.2, 1) 0.2s backwards;
}
@keyframes arch-open-solo {
  from {
    clip-path: inset(100% 0 0 0 round 180px 180px 14px 14px);
  }
  to {
    clip-path: inset(0 0 0 0 round 180px 180px 14px 14px);
  }
}
.hero__arch--solo img {
  animation: arch-zoom 3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
}
.hero__outline {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 520px;
  margin: -260px 0 0 -200px;
  overflow: visible;
}
.hero__outline path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: outline-draw 2.4s cubic-bezier(0.6, 0, 0.2, 1) 0.9s forwards;
}
@keyframes outline-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 960px) {
  .hero--photo {
    min-height: 0;
    padding: 72px 0 96px;
  }
  .hero--photo::after {
    background: rgba(10, 23, 45, 0.78);
  }
  .hero__caption {
    bottom: 52px;
  }
  .hero__visual--arch {
    height: auto;
  }
  .hero__arch--solo {
    position: relative;
    left: auto;
    top: auto;
    width: 260px;
    height: 340px;
    margin: 0 auto;
  }
  .hero__outline {
    display: none;
  }
}

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