/* ==========================================================================
   Scooba — site vitrine
   Mobile first. Palette et typographies de la charte Scooba.
   ========================================================================== */

/* ---------- Polices (auto-hébergées, aucune requête externe) ---------- */
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --abyss: #001219;
  --deep: #003140;
  --teal: #005f73;
  --sea: #94d2bd;
  --coral: #e76f51;
  --sand: #e9d8a6;
  --white: #ffffff;
  --ink: #0b1a20;
  --grey: #6b7a80;
  --line: rgba(255, 255, 255, 0.16);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --m: 20px;           /* marge latérale */
  --section: 96px;     /* espacement vertical des sections */
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { :root { --m: 40px; --section: 128px; } }
@media (min-width: 1100px) { :root { --m: 64px; --section: 160px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
::selection { background: var(--coral); color: var(--white); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 100; background: var(--white); color: var(--abyss); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); max-width: 1440px; margin-inline: auto; }
.section { padding-block: var(--section); }

/* ---------- Typographie ---------- */
.display, .h1, .h2, .h3, .quote { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
.h1 { font-size: clamp(3rem, 9.2vw, 8.25rem); line-height: 0.95; letter-spacing: -0.035em; }
.h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1; }
.h3 { font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.04; }
.h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.01em; }
.lead { font-family: var(--serif); font-size: clamp(1.55rem, 3.2vw, 2.9rem); line-height: 1.22; letter-spacing: -0.02em; }
.quote { font-size: clamp(1.7rem, 3.9vw, 3.5rem); line-height: 1.18; }
.muted { color: rgba(255, 255, 255, 0.7); }
.small { font-size: 0.875rem; }

/* Titre de section discret (nom de la section, en serif) */
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; }
.step-count { font-size: 0.95rem; color: var(--sea); }

/* Blocs de section : alternance clair / sombre pour bien les délimiter */
.section--light { background: #f5eedc; color: var(--abyss); }
.section--deep { background: var(--deep); }
.section--light .muted,
.section--light .fact p,
.section--light .value p,
.section--light .process p { color: rgba(0, 18, 25, 0.7); }
.section--light .fact,
.section--light .value { border-top-color: rgba(0, 18, 25, 0.2); }
.section--light .process li > span { color: var(--teal); }
.section--light .btn--line { box-shadow: inset 0 0 0 1px rgba(0, 18, 25, 0.4); }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 24px; border-radius: var(--radius);
  background: var(--coral); color: var(--white);
  font-weight: 500; font-size: 0.95rem; line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover { background: #d65f42; }
.btn:hover svg { transform: translateX(4px); }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn--line:hover { background: rgba(255, 255, 255, 0.08); }
.btn--small { padding: 12px 18px; font-size: 0.875rem; }

.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size 0.4s var(--ease); }
.link:hover { background-size: 30% 1px; }
.link svg { width: 15px; height: 15px; }

.tag-example { display: inline-block; padding: 5px 10px; border-radius: var(--radius); background: rgba(0, 18, 25, 0.75); color: var(--sand); font-size: 0.75rem; font-weight: 500; }
.tag-example--soft { background: rgba(233, 216, 166, 0.16); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--m);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), transform 0.4s var(--ease);
}
.nav.is-scrolled { background: rgba(0, 18, 25, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: none; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__cta { display: none; padding: 11px 18px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); font-size: 0.875rem; font-weight: 500; transition: background 0.25s; }
.nav__cta:hover { background: rgba(255, 255, 255, 0.1); }
.nav__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.nav__burger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav[data-open="true"] .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav[data-open="true"] .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--abyss);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 96px var(--m) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.menu a { font-family: var(--serif); font-size: 2.4rem; line-height: 1.25; }
.menu .btn { margin-top: 28px; align-self: flex-start; font-family: var(--sans); font-size: 0.95rem; }
.nav[data-open="true"] + .menu { opacity: 1; visibility: visible; }

@media (min-width: 1100px) {
  .nav { padding-block: 26px; }
  .nav__logo img { height: 44px; }
  .nav__links { display: flex; gap: 34px; font-size: 0.875rem; }
  .nav__links a { opacity: 0.82; transition: opacity 0.2s; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
  .nav__cta { display: inline-block; }
  .nav__burger, .menu { display: none; }
  .nav__insta { font-size: 0.875rem; opacity: 0.82; }
}
.nav__insta { display: none; }
@media (min-width: 1100px) { .nav__insta { display: inline; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 120px var(--m) 40px; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__scene { position: absolute; left: 0; top: 0; width: 100%; height: 115%; }
.hero__scene img, .hero__fish { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scene img { object-fit: cover; object-position: 72% 30%; }
.hero__fish { opacity: 0; transition: opacity 1.6s ease; }
.hero__fish.is-on { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 18, 25, 0.78) 0%, rgba(0, 18, 25, 0.15) 55%, rgba(0, 18, 25, 0) 100%),
    linear-gradient(180deg, rgba(0, 18, 25, 0.55) 0%, rgba(0, 18, 25, 0) 22%, rgba(0, 18, 25, 0.15) 62%, var(--abyss) 100%);
}
/* Lumière qui traverse l'eau et bulles qui remontent (décor, au-dessus du dégradé) */
.hero__rays, .hero__bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__rays { mix-blend-mode: screen; }
.hero__rays i {
  position: absolute; top: -12%; height: 105%; width: var(--w, 9%); left: var(--x, 60%);
  background: linear-gradient(180deg, rgba(190, 236, 255, 0.34) 0%, rgba(150, 215, 240, 0.12) 45%, rgba(150, 215, 240, 0) 80%);
  filter: blur(14px); transform-origin: 50% 0; rotate: var(--r, 12deg);
  animation: ray var(--d, 9s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s);
}
.hero__rays i:nth-child(1) { --x: 48%; --w: 7%;  --r: 16deg; --d: 8s; }
.hero__rays i:nth-child(2) { --x: 58%; --w: 12%; --r: 11deg; --d: 11s; --dl: -3s; }
.hero__rays i:nth-child(3) { --x: 66%; --w: 6%;  --r: 7deg;  --d: 7s;  --dl: -5s; }
.hero__rays i:nth-child(4) { --x: 73%; --w: 10%; --r: 3deg;  --d: 12s; --dl: -2s; }
.hero__rays i:nth-child(5) { --x: 82%; --w: 5%;  --r: -2deg; --d: 9s;  --dl: -7s; }
@keyframes ray {
  0% { opacity: 0.35; transform: rotate(-3deg) scaleX(0.8); }
  50% { opacity: 1; }
  100% { opacity: 0.55; transform: rotate(3deg) scaleX(1.25); }
}
.hero__bubbles span {
  position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  border: 1px solid rgba(220, 245, 255, 0.55);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.7) 0 14%, rgba(255, 255, 255, 0.08) 30%, transparent 62%);
  opacity: 0; animation: hero-bubble var(--d) linear infinite; animation-delay: var(--dl);
}
@keyframes hero-bubble {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: 0.85; }
  25% { transform: translate3d(var(--sw), -25vh, 0); }
  50% { transform: translate3d(calc(var(--sw) * -1), -50vh, 0); }
  75% { transform: translate3d(var(--sw), -75vh, 0); }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translate3d(0, -100vh, 0); }
}
.hero.is-paused .hero__rays i, .hero.is-paused .hero__bubbles span { animation-play-state: paused; }
/* Avant l'entrée animée, le texte attend (uniquement si les animations sont autorisées) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title, .js .hero__foot, .js .hero__rays { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__rays i { animation: none; opacity: 0.6; }
  .hero__bubbles { display: none; }
}
.hero__title { max-width: 13ch; }
.hero__foot { display: grid; gap: 28px; margin-top: 40px; }
.hero__meta { font-size: 0.95rem; line-height: 1.6; opacity: 0.75; }
.hero__pitch { display: grid; gap: 24px; justify-items: start; }
.hero__pitch p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.86); max-width: 34ch; }
@media (min-width: 900px) {
  .hero { padding-bottom: 56px; }
  .hero__title { max-width: 22ch; font-size: clamp(3rem, 7.4vw, 7.25rem); }
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; }
  .hero__pitch { grid-auto-flow: column; align-items: center; gap: 48px; }
}

/* ---------- Le concept (manifeste) ---------- */
.manifesto { display: grid; gap: 32px; }
.facts { display: grid; gap: 28px; margin-top: 48px; }
.fact { padding-top: 20px; border-top: 1px solid var(--line); }
.fact h3 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.fact p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.65); max-width: 30ch; }
@media (min-width: 900px) {
  .manifesto { grid-template-columns: 300px 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* ---------- Démo interactive ---------- */
.demo-head { display: grid; gap: 28px; padding-top: var(--section); padding-bottom: 56px; }
.demo-head p { max-width: 36ch; }
@media (min-width: 900px) { .demo-head { grid-template-columns: 1fr auto; align-items: end; } }

.demo { position: relative; overflow: hidden; isolation: isolate; background: var(--abyss); }
.demo__bg { position: absolute; inset: 0; z-index: -2; transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.demo__bg img { width: 100%; height: 100%; object-fit: cover; }
.demo__bg--beach::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 18, 25, 0.85) 0%, rgba(0, 18, 25, 0.2) 45%, rgba(0, 18, 25, 0) 70%),
    linear-gradient(180deg, rgba(0, 18, 25, 0.35) 0%, rgba(0, 18, 25, 0) 40%, rgba(0, 18, 25, 0.35) 75%, rgba(0, 18, 25, 0.92) 100%);
  transition: background 0.8s;
}
.demo[data-step="2"] .demo__bg--beach::after,
.demo[data-step="3"] .demo__bg--beach::after,
.demo[data-step="5"] .demo__bg--beach::after { background: linear-gradient(90deg, rgba(0, 18, 25, 0.85) 0%, rgba(0, 18, 25, 0.35) 45%, rgba(0, 18, 25, 0.45) 100%), linear-gradient(180deg, rgba(0, 18, 25, 0.3), rgba(0, 18, 25, 0.92)); }
.demo__bg--under { opacity: 0; transform: scale(1.08); }
.demo__bg--under::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 18, 25, 0.8) 0%, rgba(0, 18, 25, 0.15) 55%, rgba(0, 18, 25, 0) 100%), linear-gradient(180deg, rgba(0, 18, 25, 0) 60%, rgba(0, 18, 25, 0.95) 100%); }
.demo[data-step="4"] .demo__bg--under { opacity: 1; transform: scale(1); }
.demo[data-step="4"] .demo__bg--beach { opacity: 0; transform: translateY(-6%); }

.demo__inner { position: relative; display: grid; gap: 28px; padding: 28px var(--m) 24px; min-height: 100svh; grid-template-rows: auto 1fr auto; }
.demo__badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 12px; border-radius: var(--radius); background: rgba(0, 18, 25, 0.6); font-size: 0.8rem; }
.demo__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }

.demo__body { position: relative; display: grid; gap: 28px; align-content: start; }
.demo__copy { display: none; gap: 18px; max-width: 420px; }
.demo__copy.is-active { display: grid; animation: rise 0.7s var(--ease) both; }
.demo__copy .h4 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.demo__copy--big .h4 { font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: 0.94; letter-spacing: -0.035em; }
.demo__copy p { color: rgba(255, 255, 255, 0.82); max-width: 38ch; }
.demo__copy .btn { justify-self: start; margin-top: 8px; }

.demo__visual { position: relative; display: grid; place-items: center; min-height: 340px; }

/* Casier */
.casier { position: relative; width: min(56vw, 280px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.casier img { width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45)) sepia(0.08) saturate(1.05) brightness(0.97); }
.casier::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -3%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); z-index: -1; }
.casier__light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background: linear-gradient(90deg, rgba(10, 25, 40, 0.42), rgba(120, 90, 60, 0.08) 60%, rgba(255, 170, 90, 0.25)); -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.qr {
  position: absolute; left: 41.2%; top: 38%; width: 30%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 6px;
}
.qr::before, .qr::after { content: ""; position: absolute; inset: -18%; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; animation: pulse 2.2s var(--ease) infinite; }
.qr::after { animation-delay: 1.1s; }
.qr:hover::before, .qr:focus-visible::before { opacity: 1; }
.demo:not([data-step="1"]) .qr { pointer-events: none; }
.demo:not([data-step="1"]) .qr::before, .demo:not([data-step="1"]) .qr::after, .demo:not([data-step="1"]) .qr__tip { display: none; }
.qr__tip {
  position: absolute; left: 100%; top: 50%; translate: 28px -50%;
  display: flex; align-items: center; gap: 10px; width: max-content;
  padding: 12px 16px; border-radius: var(--radius); background: var(--white); color: var(--abyss);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); text-align: left; font-size: 0.85rem; line-height: 1.35;
}
.qr__tip::before { content: ""; position: absolute; right: 100%; top: 50%; width: 26px; height: 1px; background: rgba(255, 255, 255, 0.8); }
.qr__tip strong { display: block; font-weight: 600; }
.qr__tip i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: var(--white); flex: none; }
.qr__tip i svg { width: 14px; height: 14px; }

/* Téléphone */
.phone {
  width: min(86vw, 340px); padding: 9px; border-radius: 46px; background: #0a0d0f; box-shadow: 0 0 0 2px #3a4247, 0 40px 80px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none;
}
.phone__screen { position: relative; border-radius: 38px; background: var(--white); color: var(--ink); height: 660px; padding: 12px 20px 22px; overflow: hidden; transition: background 0.3s, color 0.3s; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px 12px; font-size: 0.85rem; font-weight: 600; }
.phone__status span:nth-child(2) { width: 86px; height: 25px; border-radius: 13px; background: #000; }
.phone__status span:last-child { width: 38px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, currentColor 0 40%, transparent 40% 52%, currentColor 52%); }
.screen { display: none; gap: 16px; }
.screen.is-active { display: grid; animation: rise 0.5s var(--ease) both; }
.screen__head { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--grey); }
.screen__head img { height: 30px; width: auto; }
.screen h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.field-label { font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; }
.choice { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: grid; gap: 2px; padding: 11px 12px; border-radius: 12px; border: 1px solid #d9dddf; cursor: pointer; font-size: 0.95rem; font-weight: 600; line-height: 1.2; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.choice label small { font-size: 0.72rem; font-weight: 400; color: var(--grey); }
.choice--size input:checked + label { border: 2px solid var(--coral); padding: 10px 11px; background: rgba(231, 111, 81, 0.06); }
.choice--time label { text-align: center; padding-block: 10px; }
.choice--time input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.recap { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid #eceeef; font-size: 0.85rem; }
.recap div { display: flex; justify-content: space-between; color: var(--grey); }
.recap div:last-child { color: var(--ink); font-weight: 600; }
.recap div:last-child output { font-size: 1.15rem; font-weight: 600; }
.caution { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(233, 216, 166, 0.35); font-size: 0.75rem; line-height: 1.5; }
.caution svg { width: 18px; height: 18px; flex: none; color: var(--teal); }
.pay { width: 100%; padding: 15px; border-radius: 14px; background: var(--coral); color: var(--white); font-weight: 600; transition: background 0.2s, transform 0.2s; }
.pay:hover { background: #d65f42; }
.pay:active { transform: scale(0.98); }
.pay-note { text-align: center; font-size: 0.68rem; color: var(--grey); }
.sms-head { display: flex; align-items: center; gap: 10px; }
.sms-head svg { width: 20px; height: 20px; color: var(--teal); }
.sms-head strong { display: block; font-size: 0.95rem; }
.sms-head small { color: var(--grey); font-size: 0.75rem; }
.sms-time { text-align: center; font-size: 0.7rem; color: var(--grey); }
.bubble { justify-self: start; max-width: 86%; padding: 11px 14px; border-radius: 18px; background: #eceeef; font-size: 0.875rem; line-height: 1.4; }
.code-box { display: grid; gap: 12px; justify-items: center; margin-top: 12px; font-size: 0.75rem; color: var(--grey); }
.code { display: flex; gap: 8px; }
.code span { display: grid; place-items: center; width: 50px; height: 60px; border-radius: 12px; background: #f3f1ec; color: var(--ink); font-family: var(--serif); font-size: 1.8rem; }
.next { margin-top: 10px; width: 100%; padding: 14px; border-radius: 14px; background: var(--ink); color: var(--white); font-weight: 600; }

/* Écran caméra (scan du QR code) */
.phone__status { position: relative; z-index: 3; }
.phone__screen.is-dark { background: #000; color: var(--white); }
.screen--cam { position: absolute; inset: 0; }
.screen--cam.is-active { display: block; }
.cam { position: absolute; inset: 0; overflow: hidden; background: #000; }
.cam__img { position: absolute; left: 50%; top: 50%; width: 200%; max-width: none; height: auto; translate: -41.2% -38%; filter: blur(3px) brightness(0.92); }
.cam__frame { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; }
.cam__frame i { position: absolute; width: 22%; height: 22%; border: 3px solid var(--white); transition: border-color 0.3s; }
.cam__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.cam__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.cam__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.cam__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.cam__frame.is-locked i { border-color: #ffd60a; }
.cam__flash { position: absolute; inset: 0; background: var(--white); opacity: 0; pointer-events: none; }
.cam__pill {
  position: absolute; left: 50%; top: calc(50% + 112px); translate: -50% 0; opacity: 0;
  display: flex; align-items: center; gap: 10px; width: max-content; padding: 8px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.78rem; line-height: 1.25;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cam__pill img { width: 36px; height: auto; padding: 4px; border-radius: 8px; background: var(--white); box-shadow: 0 0 0 1px #e3e6e7; }
.cam__pill strong { display: block; font-weight: 600; }
.cam__pill b { margin-left: 6px; padding: 7px 11px; border-radius: 9px; background: var(--ink); color: var(--white); font-weight: 600; }
.cam__mode { position: absolute; left: 0; right: 0; bottom: 104px; text-align: center; color: #ffd60a; font-size: 0.75rem; font-weight: 600; }
.cam::after { content: ""; position: absolute; left: 50%; bottom: 34px; width: 56px; height: 56px; translate: -50% 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--white); }

/* Paiement en cours / accepté */
.screen--center { min-height: 520px; place-content: center; justify-items: center; text-align: center; }
.paid { display: grid; justify-items: center; gap: 14px; }
.paid__ring { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 3px solid #e3e6e7; border-top-color: var(--coral); animation: spin 0.9s linear infinite; transition: background 0.3s, border-color 0.3s; }
.paid__ring svg { width: 30px; height: 30px; color: var(--white); opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.4s var(--ease); }
.paid.is-ok .paid__ring { animation: none; border-color: var(--teal); background: var(--teal); }
.paid.is-ok .paid__ring svg { opacity: 1; transform: none; }
.paid__label { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.paid__ok, .paid.is-ok .paid__wait { display: none; }
.paid.is-ok .paid__ok { display: inline; }
.paid__sub { font-size: 0.78rem; color: var(--grey); }

/* SMS qui arrivent un par un */
.screen [data-sms].is-pending { display: none; }
.screen [data-sms]:not(.is-pending) { animation: rise 0.45s var(--ease) both; }
.bubble--typing { display: none; gap: 4px; padding: 13px 14px; }
.bubble--typing.is-on { display: flex; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa4a8; animation: typing 1s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.3s; }

/* Bouton son */
.demo__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sound { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); background: rgba(0, 18, 25, 0.6); font-size: 0.8rem; transition: background 0.2s; }
.sound:hover { background: rgba(0, 18, 25, 0.85); }
.sound__icon { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__icon i { width: 2px; height: 45%; background: currentColor; transition: height 0.25s var(--ease); }
.sound__icon i:nth-child(2) { height: 100%; }
.sound__icon i:nth-child(3) { height: 70%; }
.sound[aria-pressed="false"] .sound__icon i { height: 2px; }

/* Gros plan sur la station (étapes 3 et 5) */
.locker { grid-area: 1 / 1; display: grid; justify-items: center; }
.locker__view {
  position: relative; width: min(84vw, 460px); aspect-ratio: 1; overflow: hidden; border-radius: 4px;
  background: radial-gradient(120% 90% at 50% 20%, #12323d, #04161d 70%);
  box-shadow: 0 0 0 1px rgba(148, 210, 189, 0.18), 0 40px 80px rgba(0, 0, 0, 0.5);
}
.locker__grid {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  display: grid; grid-template-columns: repeat(4, 260px); grid-template-rows: repeat(5, 220px) 300px; gap: 10px; padding: 14px;
  border-radius: 8px; background: #15191b; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.ldoor { position: relative; perspective: 1100px; border-radius: 3px; }
.ldoor__inside {
  position: absolute; inset: 0; overflow: hidden; border-radius: 3px;
  background: radial-gradient(120% 90% at 50% 0%, #0f4357 0%, #06283a 55%, #031820 100%);
  box-shadow: inset 0 0 0 5px #0b0e10, inset 0 22px 34px rgba(0, 0, 0, 0.65);
}
.ldoor__inside::before { content: ""; position: absolute; left: 14%; right: 14%; top: 9px; z-index: 1; height: 3px; border-radius: 2px; background: #eafcff; box-shadow: 0 0 22px 8px rgba(170, 235, 255, 0.5); opacity: 0; transition: opacity 0.6s var(--ease); }
.ldoor.is-lit .ldoor__inside::before { opacity: 1; }
.ldoor__inside img { position: absolute; left: 50%; top: 52%; width: 86%; max-width: none; translate: -50% -50%; opacity: 0; -webkit-mask: radial-gradient(closest-side, #000 72%, transparent); mask: radial-gradient(closest-side, #000 72%, transparent); }
.ldoor__leaf { position: absolute; inset: 0; transform-origin: 100% 50%; transform-style: preserve-3d; }
.ldoor__front, .ldoor__back { position: absolute; inset: 0; border-radius: 3px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ldoor__front { background: linear-gradient(160deg, #fbfbf9, #e4e6e2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.ldoor__back { background: linear-gradient(200deg, #d6d9d5, #b5b9b4); transform: rotateY(180deg); }
.ldoor__num { position: absolute; left: 14px; top: 10px; color: #111; font-size: 26px; font-weight: 600; line-height: 1; }
.kp { position: absolute; left: 22px; top: 50%; translate: 0 -44%; display: grid; gap: 6px; width: 86px; padding: 7px; border-radius: 7px; background: #111415; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.kp__screen { display: flex; align-items: center; gap: 6px; height: 18px; padding: 0 6px; border-radius: 3px; background: #0a221c; }
.kp__led { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #3b4446; transition: background 0.2s, box-shadow 0.2s; }
.kp.is-ok .kp__led { background: #3ef08a; box-shadow: 0 0 9px 3px rgba(62, 240, 138, 0.75); }
.kp__digits { color: #7dffb5; font: 600 11px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 3px; }
.kp__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.kp__keys span { display: grid; place-items: center; height: 18px; border-radius: 3px; background: #2a2f31; color: #d7dcdd; font-size: 9px; font-weight: 600; line-height: 1; transition: background 0.12s, color 0.12s, transform 0.12s; }
.kp__keys span.is-pressed { background: #5fd1a6; color: var(--abyss); transform: scale(0.88); }
.lqr { grid-column: 2 / 4; grid-row: 3 / 5; display: grid; place-items: center; align-content: center; gap: 16px; border-radius: 3px; background: #fbfbf9; color: #111; }
.lqr svg { width: 230px; height: 230px; }
.lqr p { font-size: 18px; font-weight: 600; }
.lbase { grid-column: 1 / -1; display: grid; align-content: center; gap: 18px; padding: 0 48px; border-radius: 3px; background: #fbfbf9; color: #111; }
.lbase img { width: 150px; height: auto; }
.lbase p { max-width: 20ch; font-size: 38px; font-weight: 600; line-height: 1.12; }

/* Masque (étape 3) */
.mask { position: relative; grid-area: 1 / 1; display: grid; justify-items: center; opacity: 0; visibility: hidden; pointer-events: none; }
.mask.is-shown { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease), visibility 0s; }
.mask img { width: min(84vw, 460px); aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(148, 210, 189, 0.3), 0 30px 70px rgba(0, 0, 0, 0.5); }
.mask figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 16px; text-align: center; font-weight: 500; }

/* Plongée (étape 4) */
.notif { display: flex; gap: 12px; width: min(100%, 380px); padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.9); color: var(--ink); backdrop-filter: blur(20px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); opacity: 0; transform: translateY(-16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.notif.is-shown { opacity: 1; transform: none; }
.notif i { width: 38px; height: 38px; border-radius: 10px; background: var(--teal); flex: none; }
.notif div { display: grid; gap: 2px; font-size: 0.82rem; line-height: 1.4; }
.notif header { display: flex; justify-content: space-between; font-weight: 600; }
.notif header time { font-weight: 400; color: var(--grey); }
.safety { display: grid; gap: 18px; }
.safety li { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.safety strong { display: block; font-weight: 500; }
.safety span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.dive-panel { display: grid; gap: 28px; justify-items: start; }

/* Retour (étape 5, dans la colonne de texte) */
.return { display: grid; gap: 18px; margin-top: 6px; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); opacity: 0.35; transition: opacity 0.5s var(--ease); }
.checklist li.is-done { opacity: 1; }
.checklist i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: rgba(148, 210, 189, 0.2); color: var(--abyss); transition: background 0.4s var(--ease); }
.checklist li.is-done i { background: var(--sea); }
.checklist svg { width: 15px; height: 15px; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.4s var(--ease); }
.checklist li.is-done svg { opacity: 1; transform: none; }
.checklist strong { display: block; font-weight: 500; font-size: 1rem; line-height: 1.35; }
.checklist span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.released { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--sea); color: var(--abyss); opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.released.is-shown { opacity: 1; transform: none; }
.released svg { width: 22px; height: 22px; }
.released strong { display: block; font-weight: 600; }
.released span { font-size: 0.85rem; opacity: 0.75; }
.return__note { font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }
.return__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Visibilité des éléments selon l'étape */
.demo__layer { display: none; }
.demo[data-step="1"] [data-layer~="1"],
.demo[data-step="2"] [data-layer~="2"],
.demo[data-step="3"] [data-layer~="3"],
.demo[data-step="4"] [data-layer~="4"],
.demo[data-step="5"] [data-layer~="5"] { display: grid; }
.demo[data-step="2"] .phone { opacity: 1; transform: none; pointer-events: auto; }

/* Barre de progression */
.rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rail button { display: grid; gap: 10px; text-align: left; font-size: 0.75rem; opacity: 0.55; transition: opacity 0.3s; }
.rail button::before { content: ""; height: 2px; background: rgba(255, 255, 255, 0.25); transition: background 0.4s var(--ease); }
.rail button[disabled] { cursor: default; }
.rail button.is-done, .rail button.is-current { opacity: 1; }
.rail button.is-done::before, .rail button.is-current::before { background: var(--coral); }
.rail span { font-size: 0.7rem; }
.rail button.is-current { font-weight: 600; }

@media (min-width: 640px) { .rail span { font-size: 0.85rem; } }

@media (min-width: 1100px) {
  .demo { margin-inline: 0; }
  .demo__inner { min-height: max(700px, 100svh); padding: 32px var(--m) 28px; gap: 20px; }
  .demo__body { grid-template-columns: 420px 1fr; align-items: center; }
  .demo__visual { min-height: 580px; }
  .casier { width: min(290px, 38svh); }
  .phone { width: 318px; }
  .screen { gap: 13px; }
  .phone { position: absolute; right: 0; top: 50%; translate: 0 -50%; }
  .demo[data-step="2"] .casier { transform: translateX(-26%) scale(0.92); }
  .locker__view, .mask img { width: min(500px, 62svh); }
  .dive-panel { position: absolute; inset: 0; grid-template-rows: auto 1fr auto; justify-items: end; }
  .notif { justify-self: end; }
  .safety { grid-auto-flow: column; gap: 40px; align-self: end; }
  .demo[data-step="5"] .demo__copy .h4 { font-size: clamp(2.2rem, 3.4vw, 2.9rem); }
  .demo[data-step="5"] .demo__copy > p:not(.step-count) { display: none; }
}
/* Écrans d'ordinateur peu hauts : on réduit le téléphone et les textes pour garder la barre d'étapes visible */
@media (min-width: 1100px) and (max-height: 860px) {
  .phone { zoom: 0.84; }
  .demo__copy .h4 { font-size: 3rem; }
  .demo__copy--big .h4 { font-size: 6rem; }
  .return__note { display: none; }
}
/* Sur mobile, on ne montre que l'élément principal de chaque étape */
@media (max-width: 1099px) {
  .demo[data-step="2"] .casier { display: none; }
  .demo__visual { gap: 32px; padding-bottom: 72px; }
  .qr__tip { left: 50%; top: auto; bottom: -18px; translate: -50% 100%; }
  .qr__tip::before { display: none; }
  .demo[data-step="5"] .demo__visual { order: -1; padding-bottom: 0; min-height: 0; }
}

/* ---------- La station ---------- */
.station { display: grid; gap: 48px; align-items: center; }
.station__photo img { width: 100%; max-width: 520px; aspect-ratio: 800 / 1303; object-fit: cover; border-radius: 4px; }
.station__text { display: grid; gap: 36px; }
.guarantees li { padding: 24px 0; border-top: 1px solid var(--line); }
.guarantees strong { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: 4px; }
.guarantees p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.65); }
@media (min-width: 900px) { .station { grid-template-columns: minmax(0, 520px) 1fr; gap: 96px; } }

/* ---------- Nos stations ---------- */
.stations { position: relative; isolation: isolate; overflow: hidden; }
.stations__bg { position: absolute; inset: 0; z-index: -1; }
.stations__bg img { width: 100%; height: 100%; object-fit: cover; }
.stations__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 18, 25, 0.65) 0%, rgba(0, 18, 25, 0.45) 45%, rgba(0, 18, 25, 0.96) 100%); }
.stations--soon { min-height: 82svh; display: flex; align-items: flex-end; }
.soon { display: grid; gap: 36px; width: 100%; }
.soon__side { display: grid; gap: 20px; align-content: start; }
.soon__label { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sand); }
@media (min-width: 900px) { .soon { grid-template-columns: 1fr 360px; align-items: end; } }

.stations-grid { display: grid; gap: 32px; margin-top: 56px; }
.station-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.station-card__body { display: grid; gap: 8px; padding-top: 20px; }
.station-card__top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; }
.station-card__top span:first-child { color: var(--sea); }
.station-card__top .status { color: var(--sea); }
.station-card p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
@media (min-width: 768px) { .stations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stations-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Valeurs ---------- */
.values-head { display: grid; gap: 28px; margin-bottom: 72px; }
.values { display: grid; gap: 40px; }
.value { display: grid; gap: 16px; align-content: start; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.value p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.65); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .values-head { grid-template-columns: 300px 1fr; } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* ---------- Avis ---------- */
.reviews { background: var(--abyss); }
.reviews__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; }
.reviews__ctrl { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.reviews__ctrl button { display: grid; place-items: center; width: 48px; height: 48px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); transition: background 0.2s; }
.reviews__ctrl button:hover { background: rgba(255, 255, 255, 0.08); }
.reviews__ctrl svg { width: 18px; height: 18px; }
.review { display: none; gap: 32px; }
.review.is-active { display: grid; animation: rise 0.6s var(--ease) both; }
.review .quote { max-width: 32ch; }
.review footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); font-weight: 500; }

/* ---------- Bandeau partenaire ---------- */
.partner-band { background: linear-gradient(90deg, var(--teal), var(--deep)); }
.partner-band__inner { display: grid; gap: 36px; }
.partner-band__side { display: grid; gap: 28px; justify-items: start; }
.partner-band__side p { max-width: 38ch; color: rgba(255, 255, 255, 0.85); }
@media (min-width: 1000px) { .partner-band__inner { grid-template-columns: 1fr 400px; align-items: end; } }

/* ---------- Footer ---------- */
.footer { padding: 96px var(--m) 36px; border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: 56px; }
.footer__ask { display: grid; gap: 20px; justify-items: start; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.footer__cols h2 { font-size: 0.875rem; font-weight: 500; opacity: 0.55; margin-bottom: 14px; }
.footer__cols li { margin-bottom: 10px; font-size: 0.95rem; }
.footer__cols a { opacity: 0.85; transition: opacity 0.2s; }
.footer__cols a:hover { opacity: 1; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer__bottom img { height: 34px; width: auto; }
.link-btn { font-weight: inherit; text-align: left; opacity: 0.85; }
.link-btn:hover { opacity: 1; }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1fr auto; align-items: end; }
  .footer__cols { grid-template-columns: repeat(3, auto); gap: 72px; }
}

/* ---------- Page partenaires ---------- */
.page-hero { position: relative; min-height: 86svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; padding: 140px var(--m) 56px; isolation: isolate; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 18, 25, 0.85) 0%, rgba(0, 18, 25, 0.35) 60%, rgba(0, 18, 25, 0.1) 100%), linear-gradient(180deg, rgba(0, 18, 25, 0.45) 0%, rgba(0, 18, 25, 0) 30%, var(--abyss) 100%); }
.page-hero__foot { display: grid; gap: 28px; }
.page-hero__foot p { max-width: 42ch; color: rgba(255, 255, 255, 0.85); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.filters button { padding-bottom: 8px; font-size: 0.95rem; opacity: 0.6; background: linear-gradient(var(--coral), var(--coral)) left bottom / 0 2px no-repeat; transition: opacity 0.2s, background-size 0.3s var(--ease); }
.filters button[aria-pressed="true"] { opacity: 1; font-weight: 500; background-size: 30px 2px; }
@media (min-width: 900px) { .page-hero__foot { grid-template-columns: 1fr auto; align-items: end; } }

.partners { display: grid; gap: 48px; }
.partner__photo { position: relative; aspect-ratio: 4 / 4.2; border-radius: 4px; overflow: hidden; }
.partner__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.partner:hover .partner__photo img { transform: scale(1.04); }
.partner__photo .tag-example { position: absolute; left: 16px; top: 16px; }
.partner__body { display: grid; gap: 10px; padding-top: 22px; }
.partner__top { display: flex; justify-content: space-between; font-size: 0.8rem; }
.partner__top span:first-child { color: var(--sea); }
.partner__top span:last-child { opacity: 0.6; }
.partner p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
.partners-empty { color: rgba(255, 255, 255, 0.7); }
@media (min-width: 768px) { .partners { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(3, 1fr); } }

.join { display: grid; gap: 24px; justify-items: start; margin-top: 64px; padding: 36px 0; border-block: 1px solid var(--line); }
.join__text { display: flex; gap: 24px; align-items: center; }
.join__text > span { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--coral); }
.join p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
@media (min-width: 900px) { .join { grid-template-columns: 1fr auto; align-items: center; } }

.why__head { display: grid; gap: 28px; margin-bottom: 72px; justify-items: start; }
@media (min-width: 1000px) { .why__head { grid-template-columns: 1fr auto; align-items: end; } }
.process { display: grid; gap: 32px; margin-top: 72px; }
.process li { display: flex; gap: 20px; }
.process li > span { font-family: var(--serif); font-size: 2.75rem; line-height: 1; color: var(--sea); }
.process strong { display: block; font-weight: 500; font-size: 1.05rem; margin: 8px 0 4px; }
.process p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); max-width: 32ch; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Modale « Devenir partenaire » ---------- */
.modal { width: min(1040px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 4px; background: var(--abyss); color: var(--white); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(148, 210, 189, 0.25); overflow: auto; }
.modal::backdrop { background: rgba(0, 18, 25, 0.82); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.45s var(--ease) both; }
.modal__grid { display: grid; }
.modal__aside { display: grid; gap: 26px; align-content: start; padding: 36px 24px; background: linear-gradient(180deg, var(--teal), var(--deep)); }
.modal__aside ul { display: grid; gap: 18px; }
.modal__aside li strong { display: block; font-weight: 600; }
.modal__aside li span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
.modal__form { position: relative; display: grid; gap: 18px; padding: 36px 24px; }
.modal__close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.modal__close svg { width: 18px; height: 18px; }
.modal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; padding-right: 48px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.field input, .field textarea { width: 100%; padding: 15px 16px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: var(--white); font: inherit; transition: border-color 0.2s, background 0.2s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sea); background: rgba(255, 255, 255, 0.08); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status.is-ok { color: var(--sea); }
.form-status.is-error { color: var(--coral); }
@media (min-width: 860px) {
  .modal__grid { grid-template-columns: 380px 1fr; }
  .modal__aside, .modal__form { padding: 48px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
.field-row { display: grid; gap: 18px; }

/* ---------- Pages légales ---------- */
.legal { padding: 150px var(--m) var(--section); max-width: 860px; margin-inline: auto; }
.legal h1 { margin-bottom: 16px; }
.legal .intro { color: rgba(255, 255, 255, 0.65); margin-bottom: 56px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 48px 0 14px; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.82); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { padding: 2px 6px; background: rgba(233, 216, 166, 0.16); color: var(--sand); }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(0.75); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(32px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

.bubbles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1s; }
.demo[data-step="4"] .bubbles { opacity: 1; }
.bubbles span { position: absolute; bottom: -20px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); animation: bubble linear infinite; }
@keyframes bubble { to { transform: translate(var(--dx, 20px), -110vh); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .bubbles { display: none; }
}
