@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0b1b2b;
  --navy: #0a2540;
  --navy-2: #0f3157;
  --azur: #186eac;
  --lagoon: #2cc4d4;
  --sand: #f5eee2;
  --paper: #fcfaf6;
  --coral: #ff6f59;
  --muted: #5a6b7d;
  --line: rgba(11, 27, 43, .1);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 12px 32px -12px rgba(10, 37, 64, .18);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 40px); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--azur);
  color: #fff;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 24px -10px rgba(24, 110, 172, .7);
}
.btn:hover { transform: translateY(-2px); background: #135d93; }
.btn--ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
/* texte foncé sur corail : le blanc n'y serait pas lisible (contraste 2,7) */
.btn--coral { background: var(--coral); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(255, 111, 89, .8); }
.btn--coral:hover { background: #ff8a78; }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.nav.is-solid {
  background: rgba(252, 250, 246, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--display); letter-spacing: -.01em; }
.logo em { font-style: italic; color: var(--lagoon); }
.nav.is-solid .logo em { color: var(--azur); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo--footer .logo__mark { width: 30px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--azur); margin-bottom: 14px; }
.eyebrow--light { color: var(--lagoon); }

/* ---------- Le quai : le bandeau à l'heure bleue (quai.js) ---------- */
/* La section est haute (hero.js lui donne sa longueur) ; la vue reste collée en haut
   pendant que la caméra longe le quai. Sans WebGL : une capture de la scène, et le texte. */
.quai { position: relative; color: #fff; background: #0c1632; }
.quai__vue {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  background: #0c1632 url("decor/quai.jpg") center / cover no-repeat;
}
@media (orientation: portrait) and (max-width: 900px) {
  .quai__vue { background-image: url("decor/quai-portrait.jpg"); }
}
.quai__canvas, .quai__css { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.quai__canvas { display: block; }
.quai__css { pointer-events: none; }
.quai__css .vitrine { pointer-events: auto; }
.quai__canvas.is-ready, .quai__css.is-ready { opacity: 1; }
.quai__voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 14, 32, .55) 0%, rgba(6, 14, 32, 0) 22%),
    linear-gradient(90deg, rgba(6, 14, 32, .75) 0%, rgba(6, 14, 32, .42) 40%, rgba(6, 14, 32, 0) 66%);
}
.quai__texte {
  position: relative; z-index: 2; min-height: 100%;
  display: flex; flex-direction: column; justify-content: center; padding: 110px 0 90px;
}
.quai h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 84px);
  letter-spacing: -.025em;
  max-width: 13ch;
  text-wrap: balance;
}
.accent { font-style: italic; color: var(--lagoon); }
.hero__lead { max-width: 52ch; margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__hint { margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 8px; }
.quai:not(.is-3d) .quai__invite { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lagoon); box-shadow: 0 0 0 0 rgba(44, 196, 212, .7); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(44, 196, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(44, 196, 212, 0); } }

/* Légende de la boutique devant laquelle on s'est arrêté */
.quai__legende {
  position: absolute; z-index: 3; left: max(20px, calc((100% - 1160px) / 2)); bottom: 32px;
  display: grid; gap: 4px; max-width: 360px; padding: 18px 22px 16px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 18, 38, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.quai__legende.is-on { opacity: 1; transform: none; pointer-events: auto; }
.quai__tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); }
.quai__nom { font: 600 26px/1.15 var(--display); }
.quai__metier { font-size: 14px; color: rgba(255, 255, 255, .75); }
.quai__lien { margin-top: 8px; font-size: 15px; font-weight: 600; color: #ffd9a0; text-decoration: none; }
.quai__lien:hover { text-decoration: underline; }
.quai__etapes {
  position: absolute; z-index: 3; right: 22px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 14px; opacity: 0; transition: opacity .4s ease;
}
.quai__etapes.is-on { opacity: 1; }
.quai__etapes button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .7); background: transparent;
}
.quai__etapes button[aria-current="true"] { background: #ffd9a0; border-color: #ffd9a0; box-shadow: 0 0 12px rgba(255, 200, 130, .8); }
.quai__passer {
  position: absolute; z-index: 3; right: 22px; bottom: 22px;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: rgba(10, 37, 64, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.quai__passer::after { content: " ↓"; }
.quai__passer:hover { background: rgba(10, 37, 64, .75); }
.quai:not(.is-3d) .quai__passer, .quai:not(.is-3d) .quai__etapes { display: none; }

/* ---------- Les vitrines du quai : un site derrière le verre, éclairé de l'intérieur ---------- */
.vitrine {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  background: #f3e6cf; color: var(--ink);
}
.vitrine img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.vitrine::after {                                              /* verre : reflets, cadre sombre */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, .09) 66%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, rgba(255, 214, 160, .1), rgba(40, 20, 0, .16));
  box-shadow: inset 0 0 0 12px #17120f, inset 0 0 60px rgba(0, 0, 0, .4);
}
.vitrine:hover img, .vitrine:hover .vit { filter: brightness(1.07); }
.vitrine--maquette { padding: 40px 48px; background: #efe3cf; }
.vitrine--vin .vitrine__titre {
  position: absolute; left: 60px; bottom: 60px; color: #1d2c4c;
  font: 400 76px/1.04 var(--display); letter-spacing: -.02em;
}
.vitrine--vin .vitrine__titre em { font-style: normal; color: #c9546a; }
.vitrine--libre {
  display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 20%, #1f4f82 0%, #0c2340 70%);
}
.libre__petit { font-size: 22px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--lagoon); }
.libre__titre { font: 600 118px/.95 var(--display); letter-spacing: -.03em; }
.libre__titre em { color: #ffd9a0; }
.libre__btn { padding: 18px 36px; border-radius: 999px; background: var(--azur); font-size: 26px; font-weight: 600; }

/* Enseignes peintes à la main sur la devanture */
.enseigne {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: 600 70px/1 var(--display); letter-spacing: .01em; color: #f4e2b4;
  text-shadow: 0 1px 0 #9c7d40, 0 0 18px rgba(255, 210, 140, .45);
}
.enseigne small {
  margin-bottom: 12px; font: 600 19px/1 var(--body); letter-spacing: .3em; text-transform: uppercase;
  color: rgba(244, 226, 180, .78); text-shadow: none;
}

/* Maquettes de sites (dans les vitrines) */
.vit {
  width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden;
  background: var(--paper); color: var(--ink);
  font-size: 15px;
  box-shadow: 0 20px 40px -20px rgba(2, 16, 30, .5), 0 0 0 1px rgba(0, 0, 0, .06);
}
.vit[data-dark] { background: #0d2238; color: #fff; }
.vit--a { right: 4%;   top: 32%; width: 35%; }
.vit--b { right: 9%;   top: 63%; width: 28%; }
.vit--c { right: 31%;  top: 6%;  width: 25%; opacity: .85; }
.vit__bar { display: flex; align-items: center; gap: .5em; padding: .8em 1em; background: #eef2f6; }
.vit[data-dark] .vit__bar { background: #162f4b; }
.vit__bar i { width: .85em; height: .85em; border-radius: 50%; background: #ff6f59; }
.vit__bar i:nth-child(2) { background: #ffc46b; }
.vit__bar i:nth-child(3) { background: #5ad28c; }
.vit__bar span { flex: 1; height: 1.6em; border-radius: .8em; background: #fff; margin-left: .6em; }
.vit[data-dark] .vit__bar span { background: rgba(255, 255, 255, .1); }
.vit__body { padding: 1.6em 1.8em 1.8em; }
.vit__head { display: flex; align-items: center; gap: .8em; }
.vit__head strong { font: 600 2.2em/1 var(--display); }
.vit__head em { flex: 1; height: .8em; border-radius: .4em; background: currentColor; opacity: .12; }
.vit__head b { width: 5em; height: 2.4em; border-radius: 1.2em; background: var(--acc); }
.vit__cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.6em; align-items: center; margin-top: 1.6em; }
.vit__title { font: 600 2.6em/1.08 var(--display); letter-spacing: -.02em; }
.vit__lines { display: grid; gap: .6em; margin: 1.2em 0 1.4em; }
.vit__lines i { height: .8em; border-radius: .4em; background: currentColor; opacity: .12; }
.vit__lines i:last-child { width: 60%; }
.vit__btn { display: inline-block; padding: .9em 1.6em; border-radius: 2em; background: var(--acc); color: #fff; font-weight: 600; }
.vit__img { aspect-ratio: 4 / 3; border-radius: 1em; position: relative; overflow: hidden; background: linear-gradient(160deg, #c9e9f8, var(--acc)); }
.vit__img span { position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .8); right: 18%; top: 16%; }
.vit__img::after { content: ""; position: absolute; inset: auto -10% -30%; height: 60%; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.vit__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin-top: 1.6em; }
.vit__cards i { height: 4.4em; border-radius: .8em; background: currentColor; opacity: .07; }

/* ---------- Réalisations ---------- */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.work {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.work:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(10, 37, 64, .45); }
.work__shot { aspect-ratio: 16 / 10; position: relative; overflow: hidden; font-size: clamp(7px, .8vw, 11px); }
.work__shot--plomberie { background: var(--paper); }
.ws-title { font: 600 2.9em/1.06 var(--display); letter-spacing: -.02em; }
.work__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__shot--vin { background: #f6d4d2; }
.ws-title--vin { position: absolute; left: 1.6em; bottom: 1.3em; color: #1d2c4c; font-weight: 400; font-size: 2.8em; }
.ws-title--vin em { font-style: normal; color: #c9546a; }
.work__txt { padding: 26px 28px 28px; display: grid; gap: 10px; }
.work__tag { justify-self: start; padding: 5px 12px; border-radius: 99px; background: #e3f2fc; color: var(--azur); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.work__tag--coral { background: rgba(255, 111, 89, .16); color: #bf3b1d; }
.work__txt h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.work__txt p { color: var(--muted); font-size: 15.5px; }
.work__link { color: var(--azur); font-weight: 600; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--sand { background: var(--sand); }
.section--navy { background: radial-gradient(120% 90% at 85% 0%, #14487d 0%, var(--navy) 55%); color: #fff; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.02em; max-width: 20ch; text-wrap: balance; }
.lead { margin-top: 18px; max-width: 60ch; font-size: 18px; color: var(--muted); }
.lead small { font-size: 14px; }
.section--navy .lead { color: rgba(255, 255, 255, .75); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e6f4fd, #d6f5f7); }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--azur); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Compare ---------- */
.compare {
  position: relative; margin-top: 44px;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; max-height: 620px; width: 100%;
  box-shadow: 0 30px 60px -30px rgba(10, 37, 64, .45);
  user-select: none;
}
.mock { position: absolute; inset: 0; }
.mock--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.mock--before { background: #c0c0c0 repeating-linear-gradient(45deg, #c8c8c8 0 6px, #bdbdbd 6px 12px); font-family: "Times New Roman", Times, serif; color: #000; padding: 2%; }
.mb-table { width: 100%; height: 100%; border: 3px outset #eee; background: #fffbe0; border-collapse: collapse; font-size: clamp(9px, 1.25vw, 16px); }
.mb-table td { border: 2px solid #999; vertical-align: top; padding: 1.2%; }
.mb-title { background: #000080; color: #ffff00; text-align: center; font: bold clamp(11px, 1.8vw, 24px) "Comic Sans MS", "Comic Sans", cursive; height: 1%; }
.mb-side { width: 22%; background: #d0e0ff; }
.mb-side a { display: block; color: #0000ee; text-decoration: underline; margin-bottom: 6%; }
.mb-counter { margin-top: 12%; font: clamp(8px, 1vw, 13px) "Courier New", monospace; background: #000; color: #0f0; padding: 4%; text-align: center; }
.mb-main p { margin-bottom: 1.6%; }
.mb-img { width: 42%; aspect-ratio: 4 / 3; margin: 2% 0; border: 2px inset #ccc; display: grid; place-items: center; color: #777; font-size: .8em; background: #eee; }
.mb-blink { color: #f00; font-weight: bold; animation: blink 1s steps(2) infinite; }
.mb-small { font-size: .7em; color: #666; }
@keyframes blink { 50% { opacity: 0; } }

/* Le volet « après » reprend trait pour trait la maquette du site de
   démonstration Martin Plomberie : mêmes couleurs, mêmes blocs. */
.mock--after { background: #fff; font-family: var(--body); color: #10212e; display: flex; flex-direction: column; font-size: clamp(8px, 1.1vw, 15px); }
.ma-nav { display: flex; align-items: center; gap: 2em; padding: 2% 4%; border-bottom: 1px solid rgba(16, 33, 46, .12); }
.ma-nav strong { font-family: var(--display); font-size: 1.45em; font-weight: 600; }
.ma-nav strong span { color: #0d6cb8; font-style: italic; }
.ma-links { display: flex; gap: 1.4em; margin-left: auto; }
.ma-links i { width: 3.4em; height: .5em; border-radius: 4px; background: #d3dee7; }
.ma-call { background: #f4722a; color: #fff; font-weight: 700; padding: .65em 1.2em; border-radius: 99px; white-space: nowrap; }
.ma-hero { flex: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 4%; align-items: center;
  padding: 3.4% 4%; background: linear-gradient(170deg, #eaf3fa, #fff 72%); }
.ma-urg { display: inline-flex; align-items: center; gap: .5em; background: #fde8dd; color: #c1440e; font-weight: 700; font-size: .85em; padding: .45em 1em; border-radius: 99px; }
.ma-urg::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #e0501a; }
.ma-title { font-family: var(--display); font-weight: 600; font-size: 2.8em; line-height: 1.04; margin: .35em 0 .3em; letter-spacing: -.02em; }
.ma-text { color: #5d6e7c; max-width: 32ch; }
.ma-btns { display: flex; flex-wrap: wrap; gap: .7em; margin-top: 1.3em; }
.ma-btn { background: #f4722a; color: #fff; padding: .85em 1.5em; border-radius: 99px; font-weight: 700; }
.ma-btn--g { background: #fff; color: #10212e; box-shadow: inset 0 0 0 1.5px rgba(16, 33, 46, .14); }
.ma-pts { display: flex; flex-wrap: wrap; gap: 1.2em; margin-top: 1.4em; color: #5d6e7c; font-size: .95em; }
.ma-pts i { font-style: normal; display: flex; align-items: center; gap: .4em; }
.ma-pts i::before { content: "✓"; color: #0d6cb8; font-weight: 700; }
.ma-photo { align-self: stretch; margin: 2% 0; border-radius: 1.6em; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #9cd0ee, #0d6cb8 60%, #08476f); box-shadow: 0 2em 4em -2.4em rgba(8, 71, 111, .6); }
.ma-photo::after { content: ""; position: absolute; inset: auto -10% -35%; height: 70%; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ma-photo b { position: absolute; left: 1.2em; right: 1.2em; bottom: 1.2em; background: rgba(255, 255, 255, .95); border-radius: 1em; padding: .9em 1.1em; font-size: .95em; }
.ma-photo b em { display: block; color: #5d6e7c; font-style: normal; font-weight: 400; font-size: .92em; }
.ma-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; padding: 0 4% 3.4%; }
.ma-row span { background: #fff; border: 1px solid rgba(16, 33, 46, .12); border-radius: 1em; padding: 1em 1.1em; font-weight: 600; display: flex; align-items: center; gap: .7em; }
.ma-row span i { font-style: normal; width: 2.2em; height: 2.2em; border-radius: .6em; background: #e3f0fa; display: grid; place-items: center; }

.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .3); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 700; letter-spacing: 2px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 99px; background: rgba(10, 37, 64, .8); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan--dark { background: radial-gradient(130% 80% at 100% 0%, #1b5a95 0%, var(--navy) 60%); color: #fff; border-color: transparent; }
.plan__badge { display: inline-block; padding: 5px 12px; border-radius: 99px; background: #e3f2fc; color: var(--azur); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.plan__badge--coral { background: rgba(255, 111, 89, .18); color: #ff9a88; }
.plan h3 { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.plan__desc { margin-top: 10px; color: var(--muted); }
.plan--dark .plan__desc { color: rgba(255, 255, 255, .72); }
.plan__price { margin: 28px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); min-height: 118px; }
.plan--dark .plan__price { border-color: rgba(255, 255, 255, .14); }
.plan__amount { font: 600 clamp(48px, 6vw, 64px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__unit { font-size: 18px; font-weight: 600; margin-left: 6px; opacity: .7; }
.plan__monthly { margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 1.6em; }
.plan--dark .plan__monthly { color: rgba(255, 255, 255, .7); }
.plan__monthly b { color: var(--azur); }
.plan--dark .plan__monthly b { color: var(--lagoon); }
.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateY(-4px); opacity: .6; } }

.plan__toggles { display: grid; gap: 12px; margin-bottom: 24px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 14px; border-radius: 14px; background: #f3f7fb; transition: background .2s; }
.plan--dark .switch { background: rgba(255, 255, 255, .07); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: none; width: 44px; height: 26px; border-radius: 99px; background: #c9d5e1; position: relative; transition: background .2s; }
.plan--dark .switch__ui { background: rgba(255, 255, 255, .22); }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + .switch__ui { background: var(--azur); }
.plan--dark .switch input:checked + .switch__ui { background: var(--coral); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.switch__txt { font-size: 15px; font-weight: 500; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; flex: 1; }
.switch__txt b { font-weight: 600; opacity: .7; white-space: nowrap; }

.plan__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15.5px; }
.plan__list li { position: relative; padding-left: 30px; transition: opacity .25s, color .25s; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: #e0f1fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23186eac' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan--dark .plan__list li::before { background-color: rgba(44, 196, 212, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232cc4d4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan__list li.is-off { opacity: .6; text-decoration: line-through; text-decoration-thickness: 1px; }
.plan__list li.is-off::before { background-image: none; background-color: rgba(128, 128, 128, .15); }
.plan__delay { font-size: 14px; color: var(--muted); margin: auto 0 14px; }
.plan--dark .plan__delay { color: rgba(255, 255, 255, .6); }

.recap { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 24px; }
.recap summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.table-scroll { overflow-x: auto; padding-bottom: 16px; }
.recap__table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.recap__table th, .recap__table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.recap__table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.recap__table td:nth-child(n+4) { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.recap__table .yes { color: var(--azur); }
.recap__table .no { color: var(--muted); }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 80ch; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.step__n { font: italic 600 40px/1 var(--display); color: var(--lagoon); }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: rgba(255, 255, 255, .72); font-size: 15.5px; }

/* ---------- Pledges ---------- */
.pledges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.pledge { padding: 24px 0 0; border-top: 2px solid var(--azur); display: grid; gap: 8px; }
.pledge strong { font-family: var(--display); font-size: 22px; font-weight: 600; }
.pledge span { color: var(--muted); font-size: 15.5px; }

/* ---------- Apporteurs d'affaires ---------- */
.referral__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.referral .lead strong { color: #fff; }
.referral__steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.referral__steps li { display: flex; gap: 16px; align-items: flex-start; }
.referral__steps span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(44, 196, 212, .16); color: var(--lagoon); font: italic 600 18px/1 var(--display); }
.referral__steps strong { display: block; font-size: 17px; }
.referral__steps div { color: rgba(255, 255, 255, .72); font-size: 15.5px; }
.referral__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; padding: 32px; backdrop-filter: blur(8px); }
.referral__label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); }
.referral__list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 4px; }
.referral__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.referral__list li span { color: rgba(255, 255, 255, .75); font-size: 15px; }
.referral__list li small { display: block; color: rgba(255, 255, 255, .5); font-size: 13px; }
.referral__list li b { font: 600 32px/1 var(--display); color: var(--coral); white-space: nowrap; font-variant-numeric: tabular-nums; }
.referral__fine { font-size: 13.5px; color: rgba(255, 255, 255, .6); }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; padding: 0 24px; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--body); color: var(--azur); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--paper), #eaf5fc); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__info { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__info li { display: grid; gap: 2px; }
.contact__info span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__info a { font-size: 20px; font-weight: 600; text-decoration: none; color: var(--navy); }
.form { background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--body); color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d6e0ea; background: #fbfdff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--azur); box-shadow: 0 0 0 4px rgba(24, 110, 172, .15); }
.form .is-invalid { border-color: var(--coral); }
.form .switch { display: flex; font-weight: 500; }
.form label[hidden] { display: none; }
.form__legal { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 32px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.logo--footer { color: #fff; font-size: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pricing, .contact__grid, .referral__grid, .works { grid-template-columns: 1fr; }
  .steps, .pledges { grid-template-columns: 1fr 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .contact__grid { gap: 36px; }
}
@media (max-width: 760px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(252, 250, 246, .98); color: var(--ink); padding: 8px 20px 20px;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links .btn { margin-top: 14px; }
  .nav.menu-open { background: rgba(252, 250, 246, .98); color: var(--ink); }
  .quai__voile { background: linear-gradient(180deg, rgba(6, 14, 32, .6) 0%, rgba(6, 14, 32, .45) 45%, rgba(6, 14, 32, .7) 100%); }
  .quai__legende { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .quai__etapes { right: 10px; }
  .quai__passer { top: 84px; bottom: auto; right: 16px; }
  .compare { aspect-ratio: 3 / 4; }
  .ma-hero { grid-template-columns: 1fr; }
  .ma-visual { height: auto; min-height: 30%; order: -1; }
  .ma-links { display: none; }
  .mb-side { width: 30%; }
  .plan { padding: 26px 22px; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps, .pledges { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .wrap { width: calc(100% - 32px); }
}

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