/* Helmo, site vitrine v2. Charte v1 : pétrole, encre, Bricolage Grotesque, Inter. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-latin.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --petrol: #0E7C7B;
  --petrol-deep: #0A5C5C;
  --petrol-mist: #E6F4F3;
  --ink: #101828;
  --ink-soft: #56666B;
  --white: #FFFFFF;
  --sail: #5FD0C4;
  --petrol-3: #9FD3CF;
  --night: #0B2E33;
  --line: #E6ECEE;
  --wash: #F6F9F9;
  --todo: #DC6803;
  --todo-text: #B54708;
  --todo-bg: #FFFAEB;
  --todo-border: #FEDF89;
  --ok: #067647;
  --ok-bg: #ECFDF3;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --gutter: 24px;
  --grad: linear-gradient(140deg, #0A4C4C 0%, #0A5C5C 45%, #0E7C7B 100%);
  --shadow-pop: 0 12px 30px rgba(16, 24, 40, .16);
  --shadow-frame: 0 30px 80px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  --ease-boat: cubic-bezier(.45, .05, .25, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-wrap: balance; }
a { color: var(--petrol-deep); }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .btn--solid:focus-visible { outline-color: var(--sail); }
.btn--solid:focus-visible { outline-color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px;
  background: var(--ink); color: var(--white); border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
main { overflow-x: clip; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 16px; position: relative;
}
.brand { display: inline-flex; flex: none; }
.brand img { display: block; height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--solid { background: var(--petrol); color: var(--white); }
.btn--solid:hover { background: var(--petrol-deep); color: var(--white); }
.btn--line { background: var(--white); color: var(--ink); border-color: #CBD9DB; }
.btn--line:hover { border-color: var(--petrol); color: var(--petrol-deep); }
.btn--small { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Sections */
.section { padding: 96px 0 24px; }
.eyebrow {
  font: 600 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase;
  color: var(--petrol-deep); margin-bottom: 12px;
}
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-top: 16px; }
.head { max-width: 680px; }

/* Cadre navigateur */
.browser {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-frame);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--wash); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DEE0; display: block; }
.browser__url { margin-left: 14px; font-size: 12px; color: var(--ink-soft); }
.browser img { display: block; width: 100%; height: auto; }
.browser--fit img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* Haut de page */
.hero { position: relative; padding: 56px var(--gutter) 24px; overflow-x: clip; }
.halo { position: absolute; z-index: 0; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.halo--a { top: -180px; right: -160px; width: 760px; height: 620px; background: radial-gradient(closest-side, rgba(14, 124, 123, .24), rgba(14, 124, 123, 0)); }
.halo--b { top: 120px; left: -220px; width: 620px; height: 520px; background: radial-gradient(closest-side, rgba(95, 208, 196, .30), rgba(95, 208, 196, 0)); }
.halo--c { top: 360px; right: 18%; width: 420px; height: 360px; background: radial-gradient(closest-side, rgba(159, 211, 207, .45), rgba(159, 211, 207, 0)); }
.hero__copy { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.hero__sub { margin: 22px auto 0; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.actions .btn { padding: 14px 22px; }
.hero__stage { position: relative; z-index: 2; max-width: 1080px; margin: 64px auto 0; }
.hero__boat { position: absolute; z-index: 4; top: -104px; right: 64px; pointer-events: none; }
.toasts { position: absolute; display: flex; flex-direction: column; gap: 12px; z-index: 3; }
.toasts--left { left: -28px; top: 64px; width: 280px; }
.toasts--right { right: -28px; bottom: 70px; width: 290px; }
.toast {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop);
  opacity: 0; animation: toast-cycle 10s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.toast__icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.toast__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast__icon--ok { background: var(--ok-bg); color: var(--ok); }
.toast__icon--doc { background: var(--petrol-mist); color: var(--petrol-deep); }
.toast__icon--todo { background: var(--todo-bg); color: var(--todo-text); }
.toast__text { font-size: 13px; line-height: 1.35; display: block; }
.toast__text strong { font-weight: 600; display: block; }
.toast__text span { color: var(--ink-soft); }

/* Tout est relié */
.link-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.actors { display: flex; flex-direction: column; gap: 14px; }
.actor { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.actor strong { display: block; font-size: 15px; font-weight: 600; }
.actor span { font-size: 14px; color: var(--ink-soft); }
.hub {
  position: relative; border-radius: 20px; padding: 28px; color: var(--white); background: var(--grad);
  display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden;
}
.hub__title { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 22px/1.2 var(--font-display); color: var(--white); }
.hub__title img { height: 26px; width: auto; display: block; }
.hub__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.hub__list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.hub__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sail); flex: none; }
.overview { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: var(--wash); display: flex; flex-direction: column; }
.overview__head { padding: 18px 20px 8px; }
.overview__head strong { font-size: 15px; font-weight: 600; }
.overview__head p { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.overview img { display: block; width: 100%; height: 280px; object-fit: cover; object-position: top left; margin-top: auto; }

/* Parcours */
.journey { margin-top: 96px; padding: 110px 0; background: linear-gradient(180deg, #fff 0%, #EDF6F5 18%, #EDF6F5 82%, #fff 100%); }
.route { position: relative; height: 118px; margin-top: 36px; --f: 0; }
.route__line { position: absolute; left: 45px; right: 45px; bottom: 18px; border-top: 2px dashed #A9CFCB; }
.route__wake {
  position: absolute; left: 45px; bottom: 17px; height: 4px; width: calc(100% - 90px); border-radius: 2px;
  background: linear-gradient(90deg, var(--petrol-3), var(--petrol)); transform-origin: 0 50%;
  transform: scaleX(var(--f)); transition: transform .9s var(--ease-boat);
}
.route__dot {
  position: absolute; bottom: 11px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--white); border: 2px solid #A9CFCB;
  left: calc(45px + (100% - 90px) * var(--i) / 6); transition: background-color .4s ease, border-color .4s ease;
}
.route__dot.is-done { background: var(--petrol); border: 3px solid var(--sail); }
.route__mover {
  position: absolute; left: 0; bottom: 24px; height: 1px; width: calc(100% - 90px);
  transform: translateX(calc(var(--f) * 100%)); transition: transform .9s var(--ease-boat); pointer-events: none;
}
.route__mover .boat { position: absolute; left: 45px; bottom: 0; margin-left: calc(var(--size) / -2); }

.steps { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.step-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; min-height: 44px; border-radius: 999px;
  cursor: pointer; font: 500 14px/1 var(--font-text); background: var(--white); color: var(--ink);
  border: 1px solid #C9D9DB; white-space: nowrap; transition: background-color .2s ease, color .2s ease;
}
.step-tab:hover { border-color: var(--petrol); }
.step-tab__n {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; background: var(--petrol-mist); color: var(--petrol-deep);
}
.step-tab[aria-selected="true"] { background: var(--petrol-deep); color: var(--white); border-color: var(--petrol-deep); }
.step-tab[aria-selected="true"] .step-tab__n { background: var(--sail); color: var(--ink); }

.step-panel { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 28px; align-items: stretch; }
.step-card { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.chip { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--petrol-mist); color: var(--petrol-deep); }
.step-card h3 { font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.step-card > p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.autos { padding: 16px; border-radius: 14px; background: var(--petrol-mist); border: 1px solid #CBE6E4; }
.autos__title { font-size: 13px; font-weight: 600; color: var(--petrol-deep); margin-bottom: 10px; }
.autos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.autos li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.autos svg, .check-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--petrol); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.step-nav { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.step-panel .browser, .role-panel .browser { box-shadow: 0 24px 60px rgba(16, 24, 40, .12); border-radius: 20px; align-self: start; }
.step-panel .browser img, .role-panel figure img { animation: fade-up .4s ease-out; }

/* Parcours au défilement : la section reste à l'écran et le défilement fait avancer les étapes.
   Activé par main.js seulement quand tout tient dans la hauteur de l'écran. */
.journey.is-scrolly .journey__pin {
  position: sticky; top: var(--pin-top, 0px); min-height: var(--pin-h, 100vh);
  display: flex; flex-direction: column; justify-content: center; padding-block: 16px;
}
.journey.is-scrolly .route { height: 92px; margin-top: 0; }
.journey.is-scrolly .step-panel { margin-top: 18px; }
.journey.is-scrolly .step-panel .browser--fit img { aspect-ratio: auto; height: var(--shot-h, auto); }
@media (max-height: 820px) {
  .journey.is-scrolly .journey__pin { padding-block: 10px; }
  .journey.is-scrolly .route { height: 76px; }
  .journey.is-scrolly .steps { margin-top: 10px; }
  .journey.is-scrolly .step-panel { margin-top: 14px; }
  .journey.is-scrolly .step-card { padding: 22px 24px; gap: 12px; }
  .journey.is-scrolly .step-card h3 { font-size: 24px; }
  .journey.is-scrolly .step-card > p { font-size: 15px; line-height: 1.5; }
  .journey.is-scrolly .autos { padding: 12px 14px; }
}

/* Chiffres */
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat { padding: 26px; border-radius: 18px; background: var(--wash); border: 1px solid var(--line); }
.stat--feature { background: var(--grad); border-color: transparent; color: var(--white); }
.stat__n { font: 700 52px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.stat--feature p { color: rgba(255, 255, 255, .9); }
.note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* Onglets par utilisateur */
.roles-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.role-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: #EEF3F3; flex-wrap: wrap; }
.role-tab { min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer; font: 600 14px var(--font-text); background: transparent; color: var(--ink-soft); }
.role-tab:hover { color: var(--ink); }
.role-tab[aria-selected="true"] { background: var(--white); color: var(--petrol-deep); box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.role-panel {
  margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 28px; align-items: center;
  padding: 28px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 100% 0%, #D4EEEB 0%, #F1F9F8 45%, #fff 100%);
}
.role-panel__text { display: flex; flex-direction: column; gap: 18px; }
.role-panel h3 { font-size: 26px; line-height: 1.15; }
.role-panel h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--petrol-deep); }
.role-panel p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.role-panel .device { font-size: 13px; }
.role-panel figure { margin: 0; display: flex; justify-content: center; min-width: 0; }
.role-panel figure .browser { width: 100%; }
.phone { width: min(300px, 100%); padding: 10px; border-radius: 40px; background: var(--night); box-shadow: 0 30px 60px rgba(16, 24, 40, .25); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1000; object-fit: cover; object-position: top; border-radius: 30px; }

/* Outils */
.tools { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.tools__intro { flex: 1 1 320px; min-width: 0; }
.ratio { margin-top: 26px; display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-radius: 16px; background: var(--petrol-deep); color: var(--white); }
.ratio strong { font: 700 40px/1 var(--font-display); color: var(--white); }
.ratio span { font-size: 14px; color: rgba(255, 255, 255, .9); }
.table-wrap { flex: 999 1 560px; min-width: 0; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th { padding: 12px 20px; background: var(--wash); font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; text-align: left; }
.table-wrap th:last-child, .table-wrap td:last-child { text-align: center; width: 90px; }
.table-wrap td { padding: 13px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.table-wrap td:first-child { font-weight: 500; }
.table-wrap td:nth-child(2) { color: var(--ink-soft); }
.tick { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--petrol); align-items: center; justify-content: center; vertical-align: middle; }
.tick svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Tarif */
.price {
  border-radius: 28px; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line);
  background: radial-gradient(90% 140% at 0% 0%, rgba(159, 211, 207, .5) 0%, rgba(159, 211, 207, 0) 45%),
    radial-gradient(90% 140% at 100% 100%, rgba(95, 208, 196, .35) 0%, rgba(95, 208, 196, 0) 50%), var(--wash);
}
.price__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.price__intro { flex: 1 1 340px; min-width: 0; }
.calc { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.calc__slider, .calc__row { padding: 16px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.calc__slider { display: flex; flex-direction: column; gap: 10px; }
.calc__slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc__slider label { font-size: 14px; color: var(--ink-soft); }
.calc__amount { font: 700 26px/1 var(--font-display); white-space: nowrap; }
.calc input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--petrol); cursor: pointer; }
.calc__row-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc__row-top span { font-size: 15px; color: var(--ink); }
.calc__row-top strong { font-size: 20px; color: var(--todo-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--todo-bg); margin-top: 8px; overflow: hidden; border: 1px solid var(--todo-border); border-width: 0; box-shadow: inset 0 0 0 1px var(--todo-border); }
.bar i { display: block; height: 100%; width: 100%; background: var(--todo); transform-origin: 0 50%; transition: transform .2s ease; }
.calc__helmo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; border-radius: 14px; background: var(--petrol-deep); color: var(--white); }
.calc__helmo span { font-size: 16px; font-weight: 600; }
.calc__helmo strong { font: 700 26px/1 var(--font-display); white-space: nowrap; }
.calc__source { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* Données */
.data-title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin-bottom: 28px; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.data-card { padding: 22px; border-radius: 16px; border: 1px solid var(--line); }
.data-card__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--petrol-mist); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.data-card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--petrol-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.data-card strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.data-card span { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* Pilote */
.pilot-section { padding: 100px var(--gutter) 96px; }
.pilot { max-width: 1100px; margin: 0 auto; border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; background: var(--grad); color: var(--white); }
.pilot__left { flex: 1 1 360px; min-width: 0; padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.pilot h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.02em; color: var(--white); }
.pilot__left > p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.perks { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.perk { display: flex; align-items: baseline; gap: 12px; }
.perk strong { font: 700 22px/1 var(--font-display); color: var(--sail); min-width: 76px; }
.perk span { font-size: 15px; }
.pilot__boat { align-self: center; margin-top: auto; padding-top: 10px; pointer-events: none; }
.form {
  flex: 1 1 380px; min-width: 0; margin: 14px; padding: clamp(20px, 3vw, 40px); border-radius: 20px;
  background: var(--white); color: var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  padding: 12px; min-height: 46px; border-radius: 10px; border: 1px solid #B8C7CA; background: var(--white);
  font: 400 15px/1.4 var(--font-text); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #6F7E82; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.field [aria-invalid="true"] { border-color: #C01048; }
.field small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; padding: 14px; font-size: 15px; }
.form__msg { grid-column: 1 / -1; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.form__msg--err { background: #FFF1F3; color: #C01048; border: 1px solid #FECDD6; }
.form__legal { grid-column: 1 / -1; font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.thanks {
  flex: 1 1 380px; min-width: 0; margin: 14px; padding: clamp(24px, 3vw, 40px); border-radius: 20px; background: var(--white);
  color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px;
}
.thanks h3 { font-size: 26px; line-height: 1.15; }
.thanks svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--ok-bg); fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); }
.footer__inner { max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.footer img { display: block; height: 28px; width: auto; }
.footer__links { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }

/* Pages juridiques */
.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal__banner { padding: 14px 16px; border-radius: 12px; background: var(--todo-bg); border: 1px solid var(--todo-border); color: var(--todo-text); font-weight: 600; margin-bottom: 28px; }
.legal mark { background: var(--todo-bg); color: var(--todo-text); padding: 0 4px; border-radius: 4px; }

/* Bateau */
.boat { position: relative; display: block; width: var(--size, 130px); pointer-events: none; }
.boat svg { display: block; width: 100%; height: auto; overflow: visible; }
.boat__float { display: block; transform-origin: 50% 100%; animation: bob var(--period, 4s) ease-in-out infinite; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tick { opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .3s ease; }
.js .table-wrap.is-in .tick { opacity: 1; transform: none; transition-delay: calc(var(--i) * 80ms); }

@keyframes toast-cycle {
  0%, 6% { opacity: 0; transform: translateY(10px) scale(.97); }
  12%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tablette et téléphone */
@media (max-width: 1100px) {
  .toasts--left { width: 240px; }
  .toasts--right { width: 250px; }
}
@media (max-width: 900px) {
  .step-panel, .role-panel { grid-template-columns: minmax(0, 1fr); }
  .toasts { position: static; width: auto !important; margin-top: 12px; }
  .hero__stage { display: block; }
  .section { padding-top: 72px; }
  .journey { margin-top: 72px; padding: 80px 0; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px; margin: 0; background: var(--white);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 16px; border-radius: 8px; }
  .nav a:hover { background: var(--wash); }
  .menu-btn { display: inline-flex; }
  .topbar__inner .btn--small { margin-left: auto; }
  .topbar__inner { gap: 10px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero__boat { display: none; }
  .hero { padding-top: 32px; }
  .hero__stage { margin-top: 36px; }
  .actions .btn { width: 100%; }
  .step-card { padding: 22px; }
  .step-card h3 { font-size: 24px; }
  .steps { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .step-tab { flex: none; }
  .role-panel { padding: 18px; }
  .role-tabs { width: 100%; }
  .role-tab { flex: 1 1 auto; padding-inline: 10px; }
  .form { grid-template-columns: minmax(0, 1fr); margin: 10px; }
  .thanks { margin: 10px; }
  .pilot-section { padding-bottom: 64px; }
  .table-wrap th, .table-wrap td { padding-inline: 12px; }
  .table-wrap th:last-child, .table-wrap td:last-child { width: 64px; }
  .table-wrap td { font-size: 14px; }
  .stat__n { font-size: 44px; }
  .brand img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .toast { opacity: 1; transform: none; }
  .js .reveal, .js .tick { opacity: 1; transform: none; }
}
