/* ==========================================================================
   Square Web Lausanne — feuille de style
   Toute la charte (couleurs, police, rayons) est dans :root.
   Pour appliquer la future charte : modifier uniquement ces variables.
   ========================================================================== */

/* Police hébergée sur le site (pas d'appel à Google) — licence : assets/fonts/OFL.txt */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-tight-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Couleurs de marque */
  --c-accent: #533afd;          /* boutons, liens, icônes */
  --c-accent-hover: #7389ff;
  --c-accent-soft: #e8e9ff;     /* fonds teintés, étiquettes */
  --c-accent-line: #b9b9f9;     /* bordure des boutons secondaires */
  --c-accent-line-2: #d6d9fc;
  --c-deep: #182659;

  /* Texte */
  --c-ink: #061b31;
  --c-slate: #64748d;
  --c-steel: #50617a;
  --c-smoke: #839bc8;

  /* Surfaces */
  --c-bg: #ffffff;
  --c-band: #f8fafd;
  --c-line: #e5edf5;

  /* Police */
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;

  /* Formes et mise en page */
  --radius-xs: 4px;      /* petits détails : cases à cocher, logo, maquettes */
  --radius: 6px;         /* boutons, champs, étiquettes, icônes */
  --radius-card: 12px;   /* cartes */
  --radius-panel: 16px;  /* grands panneaux (maintenance, formulaire) */
  --max: 1240px;
  --gutter: 24px;
  --section: 128px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--w-light);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  background: var(--c-bg);
  font-feature-settings: "ss01" on, "tnum" on;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--w-light); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--c-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: var(--radius); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.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 { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); transition: top .2s; }
.skip:focus { top: 12px; }

/* Éléments encore à confirmer : ajouter ?tbd à l'adresse pour les surligner */
.show-tbd .tbd { outline: 2px dashed #f59e0b; outline-offset: 2px; background: rgba(245, 158, 11, .12); }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: var(--w-regular);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; transform-origin: left; transition: transform .9s var(--ease) .2s; }
.eyebrow.reveal:not(.is-in)::before { transform: scaleX(0); }

.display { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.028em; max-width: 18ch; }
.h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--c-steel); max-width: 40ch; }
.muted { color: var(--c-slate); }
.grad-text {
  background: linear-gradient(100deg, var(--c-accent) 0%, var(--c-accent-hover) 45%, var(--c-accent) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: -200% 0; } }

.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--c-line); }
.section-head { display: grid; gap: 20px; margin-bottom: 64px; }
.section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--c-accent); --fg: #fff; --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 15px; font-weight: var(--w-regular); line-height: 1; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), color .3s, border-color .3s, background-color .3s;
  will-change: transform;
}
.btn::before { /* vague de couleur qui remplit le bouton au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-accent-hover);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path .55s var(--ease);
}
.btn:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.btn .arrow { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn .arrow path:last-child { stroke-dasharray: 10; stroke-dashoffset: 10; transition: stroke-dashoffset .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow path:last-child { stroke-dashoffset: 0; }

.btn--ghost { --bg: transparent; --fg: var(--c-accent); --bd: var(--c-accent-line); }
.btn--ghost::before { background: var(--c-accent-soft); }
.btn--ghost:hover { --bd: var(--c-accent); }
.btn--light { --bg: #fff; --fg: var(--c-accent); }
.btn--light::before { background: var(--c-accent-soft); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--c-accent); font-weight: var(--w-regular); }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Barre de progression + en-tête
   -------------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-hover)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .45s var(--ease);
}
.header.is-scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-color: var(--c-line); }
.header .container { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
/* Logo en 3D : chaque lettre est un empilement de couches (.ly) — la face dessinée
   devant, des copies plus sombres derrière qui forment l'épaisseur de la « boîte ». */
.brand-mark { --logo-h: 36px; position: relative; flex: none; display: block; height: var(--logo-h); width: calc(var(--logo-h) * 1.3413); }
.brand-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.brand-mark .sw-defs { width: 0; height: 0; }
/* Vue légèrement plongeante, pour voir le dessus des lettres couchées */
.brand-mark .lt { position: absolute; inset: 0; perspective: calc(var(--logo-h) * 4); perspective-origin: 50% -120%; }
.brand-mark .tb { position: absolute; inset: 0; transform-style: preserve-3d; }
.brand-mark .ly:not(.ly-front) { opacity: 0; filter: brightness(.5) saturate(1.2); transition: opacity .2s; }
.brand-mark.is-tumbling .ly { opacity: 1; }

/* À l'ouverture : le W arrive, puis le S tombe et vient s'appuyer contre lui */
.lt-w { transform-origin: 61% 84%; animation: logoW .8s var(--ease) .15s both; }
.lt-s { transform-origin: 41% 83%; animation: logoS 1.1s var(--ease) .45s both; }
.sw-shadow { transform-origin: 50% 76%; animation: logoShadow 1.2s var(--ease) .15s both; }
@keyframes logoW { from { opacity: 0; transform: translate(9px, -6px) rotate(10deg); } }
@keyframes logoS {
  0% { opacity: 0; transform: translate(-11px, -16px) rotate(-35deg); }
  45% { opacity: 1; transform: rotate(9deg); }
  70% { transform: rotate(-3deg); }
  100% { transform: none; }
}
@keyframes logoShadow { from { opacity: 0; transform: scaleX(.2); } }

/* Au survol (classe ajoutée par main.js) : le W bascule en arrière autour de l'arête
   arrière de son pied, lentement d'abord puis de plus en plus vite, et claque au sol ;
   le S, privé d'appui, tombe ensuite, de travers, à moitié sur le W et à moitié au sol.
   Les lettres se relèvent ensuite dans l'ordre inverse. */
@property --fx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }   /* bascule en arrière */
@property --ry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }   /* de travers */
@property --rz { syntax: "<angle>"; inherits: false; initial-value: 0deg; }   /* inclinaison */
@property --depth { syntax: "<length>"; inherits: true; initial-value: 0px; } /* épaisseur */
.brand-mark .tb { transform: rotateZ(var(--rz)) rotateY(var(--ry)) rotateX(var(--fx)); }
.lt-w .tb { --depth: 7px; transform-origin: 61% 84% -7px; }  /* arête arrière du pied du W */
.lt-s .tb { --depth: 6px; transform-origin: 24% 83% -6px; }  /* arête arrière du pied du S */
.brand-mark .ly { transform: translateZ(calc(var(--depth) * var(--i, 0) * -1)); }
.brand-mark.is-tumbling .lt-w .tb { animation: tumbleW 2.8s both; }
.brand-mark.is-tumbling .lt-s .tb { animation: tumbleS 2.8s both; }
.brand-mark.is-tumbling .sw-shadow { animation: tumbleShadow 2.8s both; }
@keyframes tumbleW {
  0% { --fx: 0deg; animation-timing-function: cubic-bezier(.45, 0, 1, .7); }
  12% { --fx: 7deg; animation-timing-function: cubic-bezier(.5, .3, 1, 1); }     /* déséquilibre, lent */
  27% { --fx: 90deg; animation-timing-function: cubic-bezier(0, 0, .3, 1); }    /* impact */
  30% { --fx: 82deg; animation-timing-function: cubic-bezier(.7, 0, 1, 1); }
  33% { --fx: 90deg; animation-timing-function: cubic-bezier(0, 0, .3, 1); }
  34.5% { --fx: 87.5deg; animation-timing-function: cubic-bezier(.7, 0, 1, 1); }
  36% { --fx: 90deg; }
  45% { --fx: 90deg; animation-timing-function: cubic-bezier(0, 0, .3, 1); }
  46.5% { --fx: 88deg; animation-timing-function: cubic-bezier(.7, 0, 1, 1); }  /* le S lui tombe dessus */
  48% { --fx: 90deg; }
  84% { --fx: 90deg; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  96% { --fx: -2deg; animation-timing-function: ease-in-out; }
  100% { --fx: 0deg; }
}
@keyframes tumbleS {
  0% { --fx: 0deg; --ry: 0deg; --rz: 0deg; animation-timing-function: cubic-bezier(.45, 0, 1, .7); }
  14% { --rz: 4deg; --fx: 2deg; animation-timing-function: cubic-bezier(.4, 0, .8, .6); }   /* suit le W qui part */
  25% { --rz: 8deg; --fx: 7deg; --ry: 0deg; animation-timing-function: cubic-bezier(.5, .25, 1, 1); }
  44% { --rz: -13deg; --fx: 64deg; --ry: -20deg; animation-timing-function: cubic-bezier(0, 0, .3, 1); } /* impact */
  47% { --rz: -11deg; --fx: 58deg; animation-timing-function: cubic-bezier(.7, 0, 1, 1); }
  50% { --rz: -13deg; --fx: 64deg; animation-timing-function: cubic-bezier(0, 0, .3, 1); }
  51.5% { --fx: 62deg; animation-timing-function: cubic-bezier(.7, 0, 1, 1); }
  53% { --fx: 64deg; }
  78% { --fx: 64deg; --ry: -20deg; --rz: -13deg; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  90% { --fx: -2deg; --ry: 0deg; --rz: 0deg; animation-timing-function: ease-in-out; }
  100% { --fx: 0deg; --ry: 0deg; --rz: 0deg; }
}
@keyframes tumbleShadow {
  10%, 96% { opacity: 1; transform: none; }
  28%, 84% { opacity: .6; transform: scaleX(1.15); }
}
.brand-text { display: grid; gap: 4px; line-height: 1; }
.brand-name { font-size: 18px; font-weight: var(--w-medium); letter-spacing: -0.03em; color: var(--c-ink); }
.brand-city { font-size: 9px; font-weight: var(--w-medium); letter-spacing: .3em; text-transform: uppercase; color: var(--c-slate); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: var(--w-regular); color: var(--c-ink); border-radius: var(--radius); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--c-accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--c-accent); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { margin-left: 12px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; margin-left: 4px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--c-ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Apparition au scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--scale { transform: scale(.94) translateY(24px); }
.reveal--left { transform: translateX(-40px); }

/* Titres découpés en mots */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); }
.split.is-in .w > span { transform: none; }

/* --------------------------------------------------------------------------
   Accroche
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 72px) 0 72px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -20% -10% auto -10%; height: 110%; z-index: -1; transform: skewY(-8deg); transform-origin: top left; overflow: hidden; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 40%, #fff 96%); }
.blob { position: absolute; border-radius: 50%; will-change: transform; mix-blend-mode: multiply; }
.blob-wrap { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.blob--1 { width: 62vw; height: 62vw; left: 38%; top: -20%; background: radial-gradient(circle, rgba(83,58,253,.55) 0%, rgba(83,58,253,0) 62%); animation: drift1 18s ease-in-out infinite alternate; }
.blob--2 { width: 50vw; height: 50vw; left: 62%; top: 18%; background: radial-gradient(circle, rgba(115,137,255,.6) 0%, rgba(115,137,255,0) 62%); animation: drift2 22s ease-in-out infinite alternate; }
.blob--3 { width: 46vw; height: 46vw; left: 20%; top: 5%; background: radial-gradient(circle, rgba(185,185,249,.7) 0%, rgba(185,185,249,0) 62%); animation: drift3 16s ease-in-out infinite alternate; }
.blob--4 { width: 36vw; height: 36vw; left: 80%; top: -10%; background: radial-gradient(circle, rgba(24,38,89,.35) 0%, rgba(24,38,89,0) 62%); animation: drift2 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-18vw, -6vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vw, 12vh) scale(1.2); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero .lead { color: var(--c-steel); max-width: 34ch; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; }

.args { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.arg { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: var(--w-regular); color: var(--c-deep); }
.arg-ico { flex: none; width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent); transition: transform .5s var(--ease-spring), background-color .3s, color .3s; }
.arg:hover .arg-ico { transform: rotate(-8deg) scale(1.1); background: var(--c-accent); color: #fff; }
.arg-ico svg { width: 18px; height: 18px; }

/* Maquette animée « site en construction » */
.builder { position: relative; perspective: 1400px; }
.browser { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card); overflow: hidden; transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; transition: transform 1s var(--ease); box-shadow: 0 40px 80px -30px rgba(24,38,89,.35); }
.builder:hover .browser { transform: rotateY(-4deg) rotateX(2deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--c-line); background: var(--c-band); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); }
.browser-url { margin-left: 10px; flex: 1; font-size: 11px; color: var(--c-slate); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-xs); padding: 3px 8px; font-weight: var(--w-regular); }
.browser-url::after { content: "|"; animation: blink 1s steps(1) infinite; color: var(--c-accent); }
@keyframes blink { 50% { opacity: 0; } }
.browser-body { padding: 18px; display: grid; gap: 14px; }
.sk { border-radius: 3px; background: var(--c-line); }
.b-nav { display: flex; justify-content: space-between; align-items: center; }
.b-nav .sk:first-child { width: 70px; height: 10px; background: var(--c-ink); }
.b-nav div { display: flex; gap: 8px; }
.b-nav div .sk { width: 28px; height: 6px; }
.b-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: center; }
.b-lines { display: grid; gap: 8px; }
.b-lines .sk { height: 12px; }
.b-lines .sk:nth-child(1) { width: 95%; background: var(--c-ink); }
.b-lines .sk:nth-child(2) { width: 70%; background: var(--c-ink); }
.b-lines .sk:nth-child(3) { width: 85%; height: 6px; margin-top: 4px; }
.b-lines .sk:nth-child(4) { width: 60%; height: 6px; }
.b-btn { width: 64px; height: 18px; border-radius: 3px; background: var(--c-accent); margin-top: 6px; }
.b-img { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(135deg, var(--c-accent-soft), var(--c-accent-line)); position: relative; overflow: hidden; }
.b-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 2.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b-card { padding: 10px; border: 1px solid var(--c-line); border-radius: 4px; display: grid; gap: 6px; }
.b-card .sk:first-child { width: 18px; height: 18px; background: var(--c-accent-soft); }
.b-card .sk:nth-child(2) { height: 6px; width: 80%; background: var(--c-ink); opacity: .7; }
.b-card .sk:nth-child(3) { height: 5px; width: 60%; }

/* Les blocs se construisent en boucle */
.build { animation: build 9s var(--ease) infinite both; animation-delay: calc(var(--s) * .35s); }
@keyframes build {
  0% { opacity: 0; transform: translateY(12px) scale(.96); }
  8%, 82% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-6px); }
}
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card); font-size: 13px; font-weight: var(--w-regular); color: var(--c-ink); box-shadow: 0 18px 40px -18px rgba(24,38,89,.35); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip small { display: block; color: var(--c-slate); font-size: 11px; font-weight: var(--w-light); }
.chip-ico { width: 30px; height: 30px; border-radius: var(--radius); display: grid; place-items: center; background: var(--c-accent); color: #fff; }
.chip-ico svg { width: 15px; height: 15px; }
.chip--a { left: -36px; bottom: 18%; }
.chip--b { right: -18px; top: 8%; animation-delay: -3s; }
.chip--b .chip-ico { background: #22c55e; }
@keyframes float { 50% { transform: translateY(-12px); } }


/* --------------------------------------------------------------------------
   Bandeau défilant des régions
   -------------------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--c-line); background: var(--c-band); overflow: hidden; padding: 22px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--c-band), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--c-band), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--c-smoke); white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--c-accent); }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent-line); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Cartes génériques avec spot lumineux + inclinaison 3D
   -------------------------------------------------------------------------- */
.spot { position: relative; isolation: isolate; }
.spot::before { /* halo qui suit la souris */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(83,58,253,.10), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot::after { /* bordure qui s'illumine sous la souris */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--c-accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; transition: transform .6s var(--ease), opacity 1s var(--ease); will-change: transform; }

/* --------------------------------------------------------------------------
   Pourquoi un site
   -------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { padding: 36px 32px 40px; border: 1px solid var(--c-line); border-radius: var(--radius-card); background: #fff; display: grid; gap: 16px; align-content: start; }
.why-num { font-size: 13px; color: var(--c-smoke); font-weight: var(--w-regular); }
.why-ico { width: 52px; height: 52px; margin: 8px 0 12px; color: var(--c-accent); }
.why-ico svg { width: 100%; height: 100%; overflow: visible; }
.why-ico .draw { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.why-card.is-in .draw { stroke-dashoffset: 0; }
.why-card:hover .why-ico { animation: wiggle .7s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(5deg) scale(1.04); } }
.why-card p { color: var(--c-steel); }

/* Faits clés */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; margin-top: 96px; }
.fact { display: grid; gap: 8px; align-content: start; }
/* Petit trait violet au-dessus de chaque chiffre, qui se dessine à l'apparition */
.fact::before { content: ""; width: 32px; height: 3px; margin-bottom: 20px; border-radius: 2px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-hover)); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) calc(var(--d, 0) * 90ms + .3s); }
.fact.is-in::before { transform: scaleX(1); }
.fact-num { font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -0.04em; }
.fact-num sup { font-size: .4em; vertical-align: top; position: relative; top: .3em; margin-left: 4px; color: var(--c-accent); letter-spacing: -0.01em; }
.fact p { font-size: 15px; color: var(--c-slate); }

/* --------------------------------------------------------------------------
   Offres
   -------------------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; padding: 40px 32px 32px; border: 1px solid var(--c-line); border-radius: var(--radius-card); background: #fff; display: flex; flex-direction: column; gap: 24px; }
.plan-name { font-size: 15px; font-weight: var(--w-regular); color: var(--c-accent); letter-spacing: .02em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .cur { font-size: 18px; color: var(--c-slate); font-weight: var(--w-regular); }
.plan-price .amt { font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.plan-sub { font-size: 15px; color: var(--c-slate); }
.plan ul { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--c-line); flex: 1; }
.plan li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.4; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-accent); }

.plan--featured { background: var(--c-ink); color: #fff; border-color: transparent; translate: 0 -12px; }
.plan--featured::before { /* bordure dégradée tournante */
  content: ""; position: absolute; inset: -1.5px; border-radius: calc(var(--radius-card) + 1.5px); z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--c-accent), var(--c-accent-hover), #fff, var(--c-accent), var(--c-deep), var(--c-accent));
  animation: spin 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.plan--featured .plan-bg { position: absolute; inset: 0; border-radius: var(--radius-card); overflow: hidden; z-index: -1; background: var(--c-ink); }
.plan--featured .plan-bg::after { content: ""; position: absolute; width: 140%; height: 70%; left: -20%; top: -30%; background: radial-gradient(closest-side, rgba(83,58,253,.55), transparent); animation: drift3 10s ease-in-out infinite alternate; }
.plan--featured .plan-name { color: var(--c-accent-line); }
.plan--featured .plan-sub, .plan--featured .plan-price .cur { color: var(--c-smoke); }
.plan--featured ul { border-color: rgba(255,255,255,.12); }
.plan--featured li svg { color: var(--c-accent-hover); }
.plan-flag { position: absolute; top: -13px; left: 32px; padding: 5px 12px; border-radius: var(--radius); background: var(--c-accent); color: #fff; font-size: 12.5px; font-weight: var(--w-regular); letter-spacing: .02em; }
.plan-flag::before { content: "★ "; }

.plans-note { margin-top: 32px; color: var(--c-steel); font-size: 15.5px; }
.price-note { margin-top: 20px; font-size: 14px; color: var(--c-slate); }

/* Maintenance : bande sombre pleine largeur, comme la carte Vitrine */
.maint { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0; background: var(--c-ink); color: #fff; }
.maint-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.maint-bg .blob { mix-blend-mode: screen; opacity: .45; }
.maint-pulse { position: absolute; left: 0; top: 92px; width: 100%; height: 120px; z-index: -1; pointer-events: none; fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.maint-pulse .base { stroke: rgba(255,255,255,.07); }
.maint-pulse .beam { stroke: var(--c-accent-hover); stroke-dasharray: 140 860; stroke-dashoffset: 1000; animation: beam 3.6s linear infinite; filter: drop-shadow(0 0 6px rgba(115,137,255,.9)); }
@keyframes beam { to { stroke-dashoffset: 0; } }

.maint-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: end; margin-bottom: 44px; }
.maint-head .eyebrow { color: var(--c-accent-line); margin-bottom: 16px; }
.maint-title { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.028em; }
.maint-head p { color: var(--c-smoke); font-size: 18px; max-width: 40ch; }
.maint-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.maint-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius); font-size: 13.5px; font-weight: var(--w-regular); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background-color .3s, border-color .3s; }
.maint-tags li:hover { background: rgba(83,58,253,.35); border-color: var(--c-accent-hover); }

.maint-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcard { position: relative; padding: 28px; border-radius: var(--radius-card); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .6s var(--ease), opacity 1s var(--ease), background-color .4s; }
.mcard:hover { background: rgba(255,255,255,.07); }
.mcard.spot::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(115,137,255,.22), transparent 50%); }
.mcard.spot::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--c-accent-hover), transparent 60%); }
.mcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mcard-name { font-size: 15px; font-weight: var(--w-regular); color: var(--c-accent-line); letter-spacing: .02em; }
.level { display: flex; gap: 4px; }
.level i { position: relative; overflow: hidden; width: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.level i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-hover)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(var(--n) * 200ms + var(--d, 0) * 90ms + .5s); }
.mcard.is-in .level i.on::after { transform: scaleX(1); }
.mcard:hover .level i.on { box-shadow: 0 0 10px rgba(115,137,255,.8); }
.mcard-price { display: flex; align-items: baseline; gap: 8px; }
.mcard-price .cur { font-size: 16px; color: var(--c-smoke); font-weight: var(--w-regular); }
.mcard-price .amt { font-size: 48px; line-height: 1; letter-spacing: -0.04em; }
.mcard-price .per { font-size: 15px; color: var(--c-smoke); }
.mcard-month { margin-top: 8px; font-size: 14px; color: var(--c-smoke); }
.mcard ul { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); flex: 1; }
.mcard li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.mcard li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-accent-hover); }
.mcard li.plus { color: var(--c-accent-line); }
.maint .price-note { margin-top: 28px; color: var(--c-smoke); }

/* --------------------------------------------------------------------------
   Inclus
   -------------------------------------------------------------------------- */
.included { background: var(--c-band); }
.inc-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.inc-wrap .section-head { position: sticky; top: calc(var(--header-h) + 48px); margin-bottom: 0; }
.inc-list { display: grid; gap: 0; }
.inc-item { display: flex; align-items: center; gap: 20px; padding: 24px 8px; border-bottom: 1px solid var(--c-line); font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -0.015em; transition: padding .5s var(--ease), color .3s; }
.inc-item:first-child { border-top: 1px solid var(--c-line); }
.inc-item:hover { padding-left: 20px; color: var(--c-accent); }
.check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-accent-line-2); color: var(--c-accent); transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.check svg { width: 16px; height: 16px; }
.check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .7s var(--ease) calc(var(--d, 0) * 90ms + .3s); }
.inc-item.is-in .check path { stroke-dashoffset: 0; }
.inc-item:hover .check { background: var(--c-accent); color: #fff; transform: scale(1.12) rotate(-10deg); }

/* --------------------------------------------------------------------------
   Réalisations
   -------------------------------------------------------------------------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { display: grid; gap: 18px; }
.work-shot { position: relative; border-radius: var(--radius-card); border: 1px solid var(--c-line); overflow: hidden; background: var(--c-band); aspect-ratio: 4 / 3.2; }
.work-shot .browser-bar { padding: 8px 10px; }
.work-shot .browser-bar i { width: 7px; height: 7px; }
.mock-view { position: absolute; inset: 31px 0 0 0; overflow: hidden; }
.mock-page { transition: transform 4s cubic-bezier(.45, 0, .2, 1); }
.work:hover .mock-page { transform: translateY(calc(-100% + 100px)); }
.work-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6,27,49,.0); transition: background-color .4s; pointer-events: none; }
.work-overlay span { opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .4s, transform .5s var(--ease-spring); background: #fff; color: var(--c-accent); padding: 10px 16px; border-radius: var(--radius); font-size: 14px; font-weight: var(--w-regular); }
.work:hover .work-overlay span { opacity: 1; transform: none; transition-delay: .1s; }
.work-meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.work-meta h3 { font-size: 20px; letter-spacing: -0.015em; }
.work-meta p { font-size: 14.5px; color: var(--c-slate); }
.demo-tag { flex: none; display: inline-block; font-size: 12px; font-weight: var(--w-regular); padding: 4px 10px; border-radius: var(--radius); border: 1px dashed var(--c-accent-line); color: var(--c-accent); background: #fff; }

/* Mini-sites de démonstration (dessinés en CSS, aucune image externe) */
.m { padding: 14px; display: grid; gap: 12px; font-size: 10px; line-height: 1.3; }
.m-nav { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 10.5px; }
.m-nav span { display: flex; gap: 8px; font-weight: 400; opacity: .7; font-size: 8.5px; }
.m-hero { border-radius: 4px; padding: 22px 16px; display: grid; gap: 8px; min-height: 120px; align-content: end; }
.m-hero strong { font-size: 18px; line-height: 1.05; font-weight: 400; letter-spacing: -0.02em; max-width: 14ch; }
.m-btn { justify-self: start; padding: 5px 9px; border-radius: 3px; font-size: 8.5px; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-tile { border-radius: 3px; aspect-ratio: 1; }
.m-text { display: grid; gap: 5px; }
.m-text i { display: block; height: 5px; border-radius: 2px; opacity: .2; background: currentColor; }
.m-text i:nth-child(2) { width: 80%; }
.m-text i:nth-child(3) { width: 60%; }
.m-list { display: grid; gap: 6px; }
.m-list div { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 3px; font-size: 9px; }
.m-foot { padding: 14px; border-radius: 3px; font-size: 8.5px; opacity: .85; }

.m--bakery { background: #fbf6ee; color: #3b2a1a; }
.m--bakery .m-hero { background: linear-gradient(160deg, #e9c99b, #b7804a); color: #fff; }
.m--bakery .m-btn { background: #3b2a1a; color: #fbf6ee; }
.m--bakery .m-tile:nth-child(1) { background: #e3c18f; } .m--bakery .m-tile:nth-child(2) { background: #c99a62; } .m--bakery .m-tile:nth-child(3) { background: #8f5f32; }
.m--bakery .m-list div { background: #f2e7d5; }
.m--bakery .m-foot { background: #3b2a1a; color: #fbf6ee; }

.m--salon { background: #111; color: #f4ece9; }
.m--salon .m-hero { background: linear-gradient(160deg, #2b2321, #6d4d47); }
.m--salon .m-btn { background: #e8b9ab; color: #111; }
.m--salon .m-tile:nth-child(1) { background: #3a2f2c; } .m--salon .m-tile:nth-child(2) { background: #e8b9ab; } .m--salon .m-tile:nth-child(3) { background: #6d4d47; }
.m--salon .m-list div { background: #1d1b1a; }
.m--salon .m-foot { background: #e8b9ab; color: #111; }

.m--physio { background: #f3f8f8; color: #0d3b3e; }
.m--physio .m-hero { background: linear-gradient(160deg, #b9e0dc, #3d9a93); color: #fff; }
.m--physio .m-btn { background: #0d3b3e; color: #fff; }
.m--physio .m-tile:nth-child(1) { background: #cfe9e6; } .m--physio .m-tile:nth-child(2) { background: #7cc3bc; } .m--physio .m-tile:nth-child(3) { background: #2f7f79; }
.m--physio .m-list div { background: #e1f0ef; }
.m--physio .m-foot { background: #0d3b3e; color: #fff; }

/* --------------------------------------------------------------------------
   Méthode
   -------------------------------------------------------------------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps-line { position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--c-line); }
.steps-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-hover)); transform-origin: left; transform: scaleX(var(--lp, 0)); }
.step { position: relative; display: grid; gap: 16px; align-content: start; padding-right: 8px; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-line); font-size: 18px; font-weight: var(--w-regular); color: var(--c-slate); transition: background-color .5s, color .5s, border-color .5s, transform .6s var(--ease-spring); }
.step.is-active .step-num { background: var(--c-accent); border-color: var(--c-accent); color: #fff; transform: scale(1.08); }
.step:hover .step-num { transform: scale(1.15) rotate(-6deg); }
.step h3 { margin-top: 8px; }
.step p { color: var(--c-steel); font-size: 16px; }
.step-time { justify-self: start; font-size: 12.5px; font-weight: var(--w-regular); color: var(--c-accent); background: var(--c-accent-soft); padding: 4px 10px; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.member:nth-child(2) { margin-top: 64px; }
.member-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-card); overflow: hidden; background: linear-gradient(160deg, var(--c-accent-soft), var(--c-accent-line)); display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.member-photo .initials { font-size: 64px; letter-spacing: -0.04em; color: var(--c-accent); transition: transform .8s var(--ease); }
.member-photo .ph-note { position: absolute; bottom: 12px; left: 12px; right: 12px; font-size: 12px; color: var(--c-deep); background: rgba(255,255,255,.75); padding: 6px 10px; border-radius: var(--radius); text-align: center; }
.member:hover .member-photo img, .member:hover .initials { transform: scale(1.06); }
.member-name { margin-top: 14px; font-weight: var(--w-regular); }
.member-role { font-size: 14px; color: var(--c-slate); }
.about-copy { display: grid; gap: 28px; }
.about-copy .quote { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; letter-spacing: -0.02em; }
.about-copy .quote em { font-style: normal; color: var(--c-accent); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.about-points div { font-size: 15px; color: var(--c-steel); }
.about-points strong { display: block; color: var(--c-ink); font-weight: var(--w-regular); margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 48px); }
.faq { border-top: 1px solid var(--c-line); }
.qa { border-bottom: 1px solid var(--c-line); }
.qa-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.015em; transition: color .3s; }
.qa-btn:hover { color: var(--c-accent); }
.qa-ico { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c-line); transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .45s var(--ease); }
.qa-ico::after { transform: rotate(90deg); }
.qa-btn:hover .qa-ico { border-color: var(--c-accent); }
.qa.is-open .qa-ico { background: var(--c-accent); border-color: var(--c-accent); color: #fff; transform: rotate(180deg); }
.qa.is-open .qa-ico::after { transform: rotate(0deg); }
.qa-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa.is-open .qa-panel { grid-template-rows: 1fr; }
.qa-panel > div { overflow: hidden; }
.qa-panel p { padding: 0 56px 28px 0; color: var(--c-steel); opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--ease); }
.qa.is-open .qa-panel p { opacity: 1; transform: none; transition-delay: .12s; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { position: relative; overflow: hidden; background: var(--c-ink); color: #fff; }
.contact .eyebrow { color: var(--c-accent-line); }
.contact .h2 { color: #fff; }
.contact .lead { color: var(--c-smoke); }
.contact-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.contact-bg .blob { mix-blend-mode: screen; opacity: .5; }
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-aside { display: grid; gap: 32px; }
.contact-list { display: grid; gap: 4px; margin-top: 16px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 17px; transition: padding .4s var(--ease), color .3s; }
.contact-list a:hover { padding-left: 10px; color: var(--c-accent-line); }
.contact-list small { display: block; font-size: 12.5px; color: var(--c-smoke); }
.contact-list .ci { flex: none; width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--c-accent-line); }
.contact-list .ci svg { width: 18px; height: 18px; }

.form-card { position: relative; background: #fff; color: var(--c-ink); border-radius: var(--radius-panel); padding: 40px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: var(--w-regular); color: var(--c-ink); padding: 0; }
.field .opt { color: var(--c-slate); font-weight: var(--w-light); }
.input { width: 100%; padding: 13px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-band); font-size: 16px; font-weight: var(--w-light); outline: none; transition: border-color .25s, background-color .25s, box-shadow .25s; }
.input:hover { border-color: var(--c-accent-line-2); }
.input:focus { border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(83,58,253,.12); }
.input.is-invalid { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225,29,72,.1); }
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23533afd' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
select.input.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(83,58,253,0); } 30% { box-shadow: 0 0 0 6px rgba(83,58,253,.25); border-color: var(--c-accent); } }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: calc(var(--radius-xs) + 4px); background: var(--c-band); border: 1px solid var(--c-line); justify-self: start; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 22px; border-radius: var(--radius-xs); cursor: pointer; font-size: 15px; font-weight: var(--w-light); transition: background-color .3s, color .3s; }
.seg input:checked + label { background: var(--c-accent); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--c-steel); cursor: pointer; }
.consent input { flex: none; appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--c-accent-line); border-radius: var(--radius-xs); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .25s, border-color .25s; }
.consent input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--ease-spring); }
.consent input:checked { background: var(--c-accent); border-color: var(--c-accent); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent input.is-invalid { border-color: #e11d48; }
.consent a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; font-size: 14px; color: #e11d48; min-height: 1em; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .label { opacity: .0; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.success { display: none; text-align: center; padding: 48px 16px; gap: 20px; justify-items: center; }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .success { display: grid; animation: pop .7s var(--ease-spring); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.success svg { width: 84px; height: 84px; }
.success circle { stroke-dasharray: 230; stroke-dashoffset: 230; animation: dash 1s var(--ease) .1s forwards; }
.success path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: dash .6s var(--ease) .8s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 28px; letter-spacing: -0.02em; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--c-band); border-top: 1px solid var(--c-line); padding: 72px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--c-line); }
.footer-big { font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; color: var(--c-ink); }
.footer-big span { color: var(--c-accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; font-size: 14.5px; color: var(--c-slate); }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a { transition: color .25s; }
.footer-bottom a:hover { color: var(--c-accent); }
.to-top { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-accent-line); display: grid; place-items: center; color: var(--c-accent); transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.to-top:hover { background: var(--c-accent); color: #fff; transform: translateY(-4px); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */
.legal { padding: calc(var(--header-h) + 96px) 0 var(--section); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 48px; }
.legal h2 { font-size: 24px; letter-spacing: -0.015em; margin: 48px 0 14px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.legal p, .legal li { color: var(--c-steel); }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; margin-top: 12px; }
.legal li { padding-left: 22px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--c-accent); }
.legal a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.legal .updated { margin-top: 64px; font-size: 14px; color: var(--c-slate); }
.legal .back { display: inline-flex; margin-top: 32px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--c-line); clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); margin: 0; }
  .nav-open .nav { clip-path: inset(0 0 0 0); }
  .nav a { padding: 16px 0; font-size: 22px; font-weight: var(--w-light); border-bottom: 1px solid var(--c-line); opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .5s var(--ease), color .25s; }
  .nav a::after { display: none; }
  .nav-open .nav a { opacity: 1; transform: none; }
  .nav-open .nav a:nth-child(2) { transition-delay: .04s; } .nav-open .nav a:nth-child(3) { transition-delay: .08s; } .nav-open .nav a:nth-child(4) { transition-delay: .12s; } .nav-open .nav a:nth-child(5) { transition-delay: .16s; }
  .nav-open .header { background: #fff; border-color: var(--c-line); }
  .header-cta { margin-left: auto; }
  .burger { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .builder { max-width: 560px; margin-top: 24px; }
  .maint-head { grid-template-columns: 1fr; align-items: start; }
  .section-head--split, .inc-wrap, .faq-wrap, .contact-grid, .about { grid-template-columns: 1fr; gap: 40px; }
  .inc-wrap .section-head, .faq-wrap .section-head { position: static; }
  .why-grid, .plans, .works { grid-template-columns: 1fr 1fr; }
  .plan--featured { translate: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps-line { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .maint-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 88px; --header-h: 64px; }
  body { font-size: 16px; }
  .brand { gap: 8px; }
  .brand-mark { --logo-h: 30px; }
  .brand-name { font-size: 16px; }
  .brand-city { font-size: 8px; }
  .header .container { gap: 8px; }
  .header-cta { padding: 10px 14px; font-size: 13.5px; }
  .header-cta .arrow { display: none; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .args { grid-template-columns: 1fr; margin-top: 40px; }
  .chip--a { left: -4px; bottom: -18px; }
  .chip--b { right: -4px; top: -18px; }
  .browser { transform: none; }
  .section-head { margin-bottom: 44px; }
  .why-grid, .plans, .works, .steps, .team-points { grid-template-columns: 1fr; }
  .plan-flag { left: 24px; }
  .plan { padding: 36px 24px 24px; }
  .facts { margin-top: 64px; gap: 36px 20px; }
  .maint { padding: 80px 0; }
  .maint-pulse { top: 60px; }
  .mcard { padding: 24px 20px; }
  .about-points { grid-template-columns: 1fr; }
  .member:nth-child(2) { margin-top: 40px; }
  .form-card { padding: 24px 18px; }
  .form { grid-template-columns: 1fr; }
  .qa-panel p { padding-right: 0; }
  .marquee::before, .marquee::after { width: 40px; }
}

@media (max-width: 380px) {
  .brand-mark { --logo-h: 26px; }
  .brand-name { font-size: 15px; }
  .header-cta { padding: 9px 11px; font-size: 13px; }
}

/* Respect des préférences d'accessibilité : pas d'animation si demandé */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .split .w > span { opacity: 1 !important; transform: none !important; }
  .fact::before { transform: none; }
  .build { animation: none; opacity: 1; }
}
