/* ==========================================================================
   Hidev — feuille de style
   Palette issue du logo C1 : encre (marine), lien (orange), brume (gris clair)
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2-variations"),
       url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2-variations"),
       url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0F2A44;          /* marine du logo : titres, boutons */
  --ink-2: #16365A;        /* marine un peu plus claire, survols */
  --link: #F26B3A;         /* orange du logo : la « connexion » */
  --link-text: #B84A1C;    /* orange lisible pour du texte sur fond blanc */
  --mist: #F3F5F8;         /* gris clair du logo : fonds de section */
  --mist-2: #E9EDF2;
  --slate: #4A5565;        /* texte secondaire */
  --line: #DCE3EB;         /* filets */
  --white: #FFFFFF;
  --on-ink: #C9D3DF;       /* texte secondaire sur fond marine */
  --error: #B42318;

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 0.4vw + 1.15rem, 1.5rem);
  --step-3: clamp(1.75rem, 1.8vw + 1.2rem, 2.625rem);
  --step-4: clamp(2.25rem, 3.6vw + 1.2rem, 4rem);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;   /* même proportion que la tuile du logo (14/64) */

  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 4.5rem;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--link-text); }

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

::selection { background: #FBD3C2; color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink); color: var(--white);
  font-family: var(--sans);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: var(--white); }

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

.lead {
  font-size: clamp(1.1875rem, 0.6vw + 1.05rem, 1.375rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 36em;
}

.muted { color: var(--slate); }
.small { font-size: var(--step-0); }
.sans { font-family: var(--sans); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  text-align: center;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }

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

.btn--accent { background: var(--link); border-color: var(--link); color: var(--ink); }
.btn--accent:hover { background: #F5845A; border-color: #F5845A; color: var(--ink); }

.btn--on-ink { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--on-ink:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--white); }

.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--step--1); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.text-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-0);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* ----- En-tête --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 2.125rem; height: 2.125rem; flex: none; }
.brand__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.16em;
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}
.nav__link:hover { background: var(--mist); color: var(--ink); }
.nav__link[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.menu-toggle__icon { width: 18px; height: 12px; position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--white);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a:not(.btn) {
  display: block;
  padding: 1rem 0;
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--link-text); }
.mobile-nav .btn { width: 100%; }

body.menu-open { overflow: hidden; }

@media (min-width: 64rem) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ----- Sections ---------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section + .section:not(.section--mist):not(.section--ink) { border-top: 1px solid var(--line); }
.section--mist + .section { border-top: 0; }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 44rem;
}
.section-head p { color: var(--slate); }

.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* En-tête des pages intérieures */
.page-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { max-width: 16ch; margin-bottom: 1.25rem; }
.page-hero .lead { margin-bottom: 0; }

/* ----- Accueil : hero + démo -------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 6.5rem);
}

.hero__grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.hero__grid > *, .split > *, .configurator > *, .contact-grid > * { min-width: 0; }
.chat { width: 100%; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; }
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 15ch;
  font-size: clamp(2.25rem, 2.4vw + 1.35rem, 3.625rem);
}
.hero .lead { margin-bottom: 2rem; }
.hero__note {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--slate);
}

/* Le motif « connexion » du logo : deux nœuds reliés */
.link-motif {
  display: inline-flex;
  align-items: center;
  width: 3.25rem;
  height: 0.75rem;
  margin-bottom: 1.5rem;
}
.link-motif::before, .link-motif::after {
  content: "";
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--link);
  flex: none;
}
.link-motif span {
  flex: 1;
  height: 3px;
  background: var(--link);
  transform-origin: left center;
}

/* Séquence d'ouverture (unique animation non déclenchée par le visiteur) */
@media (prefers-reduced-motion: no-preference) {
  .intro .link-motif span { animation: draw 0.7s 0.15s cubic-bezier(.2,.7,.2,1) both; }
  .intro [data-intro] { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .intro [data-intro="2"] { animation-delay: 0.12s; }
  .intro [data-intro="3"] { animation-delay: 0.24s; }
  .intro [data-intro="4"] { animation-delay: 0.36s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ----- Démonstration : la fenêtre de conversation ----------------------- */

.chat {
  display: flex;
  flex-direction: column;
  height: min(36rem, 78vh);
  min-height: 28rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(15, 42, 68, 0.45), 0 2px 6px rgba(15, 42, 68, 0.06);
  font-family: var(--sans);
}
.chat--page { height: min(42rem, 82vh); }

.chat__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem 0.875rem 1.125rem;
  background: var(--ink);
  color: var(--white);
}
.chat__avatar { width: 2.25rem; height: 2.25rem; flex: none; }
.chat__avatar rect:first-child { fill: #1D4166; }
.chat__title { line-height: 1.25; min-width: 0; }
.chat__title strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.chat__title span { display: block; font-size: 0.8125rem; color: var(--on-ink); }
.chat__badge {
  margin-left: auto;
  flex: none;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--link);
  border-radius: 999px;
}
.chat__reset {
  flex: none;
  padding: 0.375rem 0.625rem;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--on-ink);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  cursor: pointer;
}
.chat__reset:hover { color: var(--white); border-color: var(--white); }

.chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #F8FAFC;
  overscroll-behavior: contain;
}

.msg {
  max-width: 85%;
  padding: 0.75rem 0.95rem;
  font-size: 0.9875rem;
  line-height: 1.5;
  border-radius: 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.msg--agent {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  color: var(--ink);
}
.msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--white);
  border-bottom-right-radius: 6px;
}
.msg--notice {
  align-self: stretch;
  max-width: none;
  background: var(--mist);
  border: 1px dashed #B9C4D1;
  color: var(--slate);
  font-size: 0.9375rem;
}
.msg--notice a { color: var(--ink); }
.msg--error {
  align-self: stretch;
  max-width: none;
  background: #FEF3F2;
  border: 1px solid #F5C2BD;
  color: var(--error);
  font-size: 0.9375rem;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.35;
}
@media (prefers-reduced-motion: no-preference) {
  .typing span { animation: blink 1.2s infinite both; }
  .typing span:nth-child(2) { animation-delay: 0.2s; }
  .typing span:nth-child(3) { animation-delay: 0.4s; }
  .msg--enter { animation: rise 0.3s ease-out both; }
}
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }

.chat__next {
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  background: var(--white);
}
.chat__next[hidden] { display: none; }
.chat__next p { font-size: 0.875rem; color: var(--slate); margin-bottom: 0.25rem; }
.chat__next ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.chat__next a { font-size: 0.9375rem; font-weight: 600; }

.chat__suggestions {
  display: flex;
  gap: 0.5rem;
  padding: 0.625rem 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.chat__suggestions::-webkit-scrollbar { display: none; }
.chat__suggestions[hidden] { display: none; }

.chip {
  flex: none;
  padding: 0.5rem 0.875rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[disabled] { opacity: 0.5; cursor: not-allowed; }

.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  background: var(--white);
}
.chat__input {
  flex: 1;
  min-height: 2.75rem;
  max-height: 8rem;
  padding: 0.65rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;   /* 16px minimum : évite le zoom automatique sur iPhone */
  line-height: 1.4;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 14px;
  resize: none;
}
.chat__input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.chat__input:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.chat__input:disabled { cursor: not-allowed; }
.chat__send {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.chat__send:hover { background: var(--ink-2); }
.chat__send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat__send svg { width: 20px; height: 20px; }

.chat__foot {
  padding: 0 1rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--slate);
  background: var(--white);
}

/* ----- Listes à nœuds (capacités, avantages) ------------------------------ */

.node-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
}
.node-list > li {
  position: relative;
  padding: 1.5rem 0 1.5rem 2rem;
  border-top: 1px solid var(--line);
}
.node-list > li:last-child { border-bottom: 1px solid var(--line); }
.node-list > li::before {
  content: "";
  position: absolute;
  left: 0; top: 2.05rem;
  width: 0.625rem; height: 0.625rem;
  border-radius: 50%;
  background: var(--link);
}
.node-list h3 { font-size: 1.1875rem; margin-bottom: 0.375rem; }
.node-list p { color: var(--slate); font-size: 1.0625rem; }

.grid-2 { display: grid; gap: 0 3rem; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2 > li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}

/* ----- Étapes (une vraie séquence : numérotation justifiée) -------------- */

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 2.5rem 3.75rem;
  counter-increment: step;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.2rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  z-index: 1;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: calc(1.25rem - 1.5px);
  top: 2.3rem; bottom: 0.1rem;
  width: 3px;
  background: var(--link);
}
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--slate); font-size: 1.0625rem; max-width: 34em; }

.section--mist .steps > li::before { background: var(--mist); }

@media (min-width: 60rem) {
  .steps--row { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps--row > li { padding: 3.75rem 0 0 0; }
  .steps--row > li::before { top: 0; }
  .steps--row > li::after {
    left: 2.6rem; right: -1.9rem;
    top: calc(1.25rem - 1.5px); bottom: auto;
    width: auto; height: 3px;
  }
}

/* ----- Schéma « agent IA en clair » ------------------------------------- */

.flow {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1rem;
}
.flow li {
  padding: 1.25rem 1.375rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.flow strong { display: block; font-family: var(--sans); font-weight: 600; margin-bottom: 0.25rem; }
.flow span { color: var(--slate); font-size: 1.0625rem; }
.flow li + li { position: relative; }
.flow li + li::before {
  content: "";
  position: absolute;
  left: 50%; top: -1rem;
  width: 3px; height: 1rem;
  transform: translateX(-50%);
  background: var(--link);
}
@media (min-width: 60rem) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .flow li + li::before { left: -2rem; top: 50%; width: 2rem; height: 3px; transform: translateY(-50%); }
}

/* ----- Offres : configurateur en deux étapes ------------------------------ */

.configurator {
  display: grid;
  gap: 3rem;
}
@media (min-width: 64rem) {
  .configurator { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3.5rem; align-items: start; }
}

.config-step { border: 0; margin: 0 0 3rem; padding: 0; min-width: 0; }
.config-step:last-child { margin-bottom: 0; }
.config-step legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-size: var(--step-2);
  font-weight: 600;
}
.config-step__hint { color: var(--slate); margin-bottom: 1.25rem; font-size: 1.0625rem; }

.choices { display: grid; gap: 1rem; }
@media (min-width: 40rem) {
  .choices--2 { grid-template-columns: 1fr 1fr; }
  .choices--3 { grid-template-columns: repeat(3, 1fr); }
}

.choice {
  position: relative;
  display: block;
  height: 100%;
  padding: 1.375rem 1.375rem 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.choice:hover { border-color: #9FB0C3; }
.choice input {
  position: absolute;
  top: 1.375rem; right: 1.25rem;
  width: 1.375rem; height: 1.375rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #9FB0C3;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.choice input:checked {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--link) 0 45%, var(--white) 50%);
}
.choice input:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice__title {
  display: block;
  padding-right: 2.25rem;
  margin-bottom: 0.375rem;
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 600;
}
.choice__desc { display: block; color: var(--slate); font-size: 1.0625rem; line-height: 1.5; }
.choice ul {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 1rem;
  color: var(--ink);
}
.choice li { position: relative; padding-left: 1.125rem; margin-bottom: 0.375rem; }
.choice li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--link);
}

.choice--compact { padding: 1.125rem 1.25rem; }
.choice--compact input { top: 1.125rem; }
.choice__big {
  display: block;
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.summary {
  padding: 1.75rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-l);
}
@media (min-width: 64rem) {
  .summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.summary h2 { color: var(--white); font-size: 1.375rem; margin-bottom: 1.25rem; }
.summary__pair { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.summary__pair li {
  position: relative;
  padding-left: 1.75rem;
  font-family: var(--sans);
}
.summary__pair li + li { margin-top: 1.25rem; }
.summary__pair li::before {
  content: "";
  position: absolute; left: 0; top: 0.4rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--link);
}
.summary__pair li + li::after {
  content: "";
  position: absolute;
  left: calc(0.375rem - 1.5px);
  top: -1.1rem; height: 1.5rem;
  width: 3px; background: var(--link);
}
.summary__label { display: block; font-size: 0.8125rem; color: var(--on-ink); }
.summary__value { display: block; font-size: 1.0625rem; font-weight: 600; }
.summary__price {
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  font-family: var(--sans);
}
.summary__price span { display: block; font-size: 0.8125rem; color: var(--on-ink); }
.summary__price strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.summary .btn { width: 100%; }
.summary .btn + .btn { margin-top: 0.75rem; }
.summary__note { margin-top: 1rem; font-size: 0.9375rem; color: var(--on-ink); }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 1.0625rem;
}
.compare th, .compare td {
  padding: 1rem 1rem 1rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}
.compare tbody th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--slate);
  width: 28%;
}

/* ----- À propos ----------------------------------------------------------- */

.founder {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 48rem) {
  .founder { grid-template-columns: 16rem 1fr; gap: 3.5rem; }
}
.founder__portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 16rem;
  border-radius: var(--radius-l);
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}
.founder__portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder__portrait svg { width: 4.5rem; height: 4.5rem; margin: 0 auto 0.75rem; }

.placeholder {
  padding: 0.125rem 0.375rem;
  background: #FFF4EE;
  border: 1px dashed var(--link);
  border-radius: 6px;
  color: var(--link-text);
  font-family: var(--sans);
  font-size: 0.9em;
}

.values {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) { .values { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; } }
.values li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.values h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.values p { color: var(--slate); font-size: 1.0625rem; }

.prose { max-width: 40rem; }
.prose h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.375rem; }
.prose li::marker { color: var(--link); }

/* ----- FAQ ---------------------------------------------------------------- */

.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.375rem 3rem 1.375rem 0;
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem; top: 50%;
  width: 16px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--ink-2); }
.faq .faq__answer { padding: 0 0 1.5rem; color: var(--slate); max-width: 40em; }
.faq .faq__answer p { color: var(--slate); }

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

.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 64rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4.5rem; }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.panel--mist { background: var(--mist); border-color: transparent; }

.booking { display: grid; gap: 1rem; }
.booking__frame {
  width: 100%;
  height: 44rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
}

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label, .field .label {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
}
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color 0.15s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F2A44' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FB0C3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-family: var(--sans); font-size: 0.875rem; color: var(--error); }
.field__error:empty { display: none; }

.form__legal { font-size: 0.9375rem; color: var(--slate); }
.form__status { font-family: var(--sans); font-size: 0.9375rem; }
.form__status--error { color: var(--error); }

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

.confirmation {
  padding: 2rem;
  border-radius: var(--radius-l);
  background: var(--mist);
}
.confirmation h3 { margin-bottom: 0.5rem; }

.coords { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 1rem; }
.coords li { padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.coords li:first-child { padding-top: 0; }
.coords span { display: block; font-size: 0.8125rem; color: var(--slate); }

/* ----- Bandeau d'appel final + pied de page ------------------------------ */

.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2 { color: var(--white); }
.section--ink p { color: var(--on-ink); }

.cta-band { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 60rem) { .cta-band { grid-template-columns: 1.2fr 1fr; } }
.cta-band h2 { max-width: 16ch; margin-bottom: 1rem; }
.cta-band .actions { justify-content: flex-start; }
@media (min-width: 60rem) { .cta-band .actions { justify-content: flex-end; } }

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  padding-block: 3.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.site-footer a { color: var(--white); text-decoration-color: rgba(242,107,58,0.8); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--link); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand__mark rect:first-child { fill: #1D4166; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.footer-title { font-size: 0.875rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.875rem;
}
.footer-bottom button {
  font: inherit; color: var(--white);
  background: none; border: 0; padding: 0;
  text-decoration: underline; text-decoration-color: rgba(242,107,58,0.8);
  text-underline-offset: 0.22em; cursor: pointer;
}

/* ----- Bandeau de consentement (seulement si des statistiques sont activées) */

.consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 60;
  max-width: 34rem;
  padding: 1.25rem 1.25rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 50px -20px rgba(15,42,68,0.4);
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.consent[hidden] { display: none; }
.consent p { margin-bottom: 1rem; color: var(--slate); }

/* ----- Divers ------------------------------------------------------------- */

.notice {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--link);
  background: var(--mist);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 1.0625rem;
  color: var(--slate);
}

.kicker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.center-404 { min-height: 60vh; display: grid; align-content: center; }

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

@media print {
  .site-header, .site-footer, .chat, .consent, .mobile-nav { display: none !important; }
}

/* Boutons à l'apparence de lien (recommencer, renvoyer) */
.linklike {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  font-weight: 600;
}
.chat__foot .linklike { color: var(--ink); }
