/* ==================================================================
   Cauxweb — feuille de style (thème clair)
   ================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #172033;
  --ink-soft: #5b6476;
  --ink-mute: #646c7e;
  --line-strong: #868ea0;
  --line: #e6e9f0;
  --accent: #2f5bea;
  --accent-ink: #2148c9;
  --accent-soft: #edf2ff;
  --rose: #fde9e5;
  --sun: #fdf2cc;
  --sky: #e3ecff;
  --leaf: #e0f3e6;
  --green: #137a46;

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 12px 32px -12px rgba(23, 32, 51, .12);
  --shadow-lg: 0 2px 4px rgba(23, 32, 51, .04), 0 30px 60px -24px rgba(23, 32, 51, .22);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 700; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 16px/1.1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--accent { --bg: var(--accent); box-shadow: 0 8px 22px -8px rgba(47, 91, 234, .55); }
.btn--accent:hover { --bg: var(--accent-ink); }
.btn--ghost { --bg: #fff; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.btn--sm { padding: .65em 1.1em; font-size: 15px; }
.btn--lg { padding: 1em 1.6em; font-size: 17px; }
.btn--block { width: 100%; }
.btn.is-soon { --bg: transparent; --fg: var(--ink-soft); border-color: var(--line); border-style: dashed; box-shadow: none; cursor: default; transform: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav.is-scrolled, .nav.is-open { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; font: italic 400 26px/1 var(--serif); transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg); }
.brand__dot { color: var(--accent); }
.brand__name em { font-family: var(--serif); font-weight: 400; font-size: 1.1em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav.is-open .nav__burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 20px; transform: rotate(-45deg); }
.menu { padding: 8px var(--gutter) 24px; display: grid; gap: 4px; }
.menu[hidden] { display: none; }
.menu a:not(.btn) { text-decoration: none; font-size: 20px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 16vh, 170px) 0 clamp(70px, 10vh, 120px);
  min-height: 100svh; display: flex; align-items: center;
  background: linear-gradient(180deg, #fbfcff 0%, #fff 100%);
}
.hero__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 82% 22%, rgba(47, 91, 234, .12), transparent 65%),
    radial-gradient(460px 380px at 70% 85%, rgba(253, 160, 140, .16), transparent 65%),
    radial-gradient(420px 360px at 5% 10%, rgba(120, 200, 160, .10), transparent 65%);
}
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(23,32,51,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,32,51,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero__title { font-size: clamp(40px, 6vw, 80px); margin: 26px 0 24px; font-weight: 800; letter-spacing: -0.04em; }
.hero__title em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); font-size: 1.08em; letter-spacing: -0.01em; }
.scribble { position: relative; white-space: nowrap; isolation: isolate; }
.scribble::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .34em; z-index: -1; border-radius: 4px;
  background: #ffe28a; transform-origin: left; transform: scaleX(0) skewX(-8deg); transition: transform .9s .6s var(--ease); }
.hero__title.is-in .scribble::after { transform: scaleX(1) skewX(-8deg); }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 560px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.hero__proof { display: flex; gap: clamp(20px, 4vw, 44px); list-style: none; padding: 26px 0 0; margin: 0; border-top: 1px solid var(--line); }
.hero__proof li { display: grid; }
.hero__proof b { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.hero__proof span { font-size: 14px; color: var(--ink-mute); }

/* visuel flottant */
.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 620px; justify-self: end; width: 100%; }
.float { position: absolute; transition: translate .6s var(--ease); }
.float > * { animation: bob 7s ease-in-out infinite; }
.float--a { top: 4%; left: 0; width: 80%; }
.float--a > * { transform: rotate(-3deg); }
.float--b { top: 38%; right: -4%; width: 76%; }
.float--b > * { transform: rotate(2deg); animation-delay: -2s; }
.float--c { bottom: -2%; left: 6%; width: 26%; }
.float--c > * { transform: rotate(-5deg); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.sticker { position: absolute; top: -2%; right: 4%; width: 120px; height: 120px; display: grid; place-items: center; transition: translate .6s var(--ease); }
.sticker::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.sticker svg { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.sticker text { font: 600 10.5px var(--font); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-soft); }
.sticker span { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Mockups ---------- */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(23,32,51,.06); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f4f5f8; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dce4; }
.browser__bar span { margin: 0 auto; transform: translateX(-20px); font: 400 11.5px var(--mono); color: var(--ink-mute); background: #fff; border: 1px solid var(--line); padding: 3px 14px; border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.phone { border-radius: 30px; padding: 6px; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(23,32,51,.08); }
.phone img { border-radius: 24px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }

/* ---------- Marquee ---------- */
.marquee { background: #fff; color: var(--ink); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.marquee__viewport { overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.marquee span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); color: var(--accent); }
.marquee i { font-style: normal; font-size: 14px; color: var(--ink-mute); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 68px); }
.section__head h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; }
.section__head h2 em { color: var(--accent); }
.section__lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 620px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

/* ---------- Cartes « pour qui » ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { --c: var(--rose); position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card--sun { --c: var(--sun); }
.card--sky { --c: var(--sky); }
.card--leaf { --c: var(--leaf); }
.card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: var(--c); margin-bottom: 22px; transition: transform .4s var(--ease); }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card ul { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.card li { padding-left: 24px; position: relative; }
.card li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }

/* ---------- Études de cas ---------- */
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.case + .case { margin-top: clamp(90px, 12vw, 140px); }
.case--flip .case__media { order: 2; }
.case__media { position: relative; }
.browser--big { transition: transform .5s var(--ease); transform-style: preserve-3d; }
.slides { position: relative; aspect-ratio: 16 / 10; }
.slides img { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .8s ease, transform 1.2s var(--ease); transform: scale(1.03); }
.slides img.is-active { opacity: 1; transform: none; }
.slides__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(23,32,51,.55); backdrop-filter: blur(6px); }
.slides__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.slides__dots button.is-active { width: 22px; background: #fff; }
.phone--case { position: absolute; width: 24%; right: -5%; bottom: -12%; transform: rotate(4deg); }
.case__body .case__tag { display: inline-block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; color: var(--ink); margin-bottom: 18px; }
.tag--rose { background: var(--rose); }
.tag--sun { background: var(--sun); }
.case__body h3 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 16px; }
.case__body > p { color: var(--ink-soft); font-size: 17px; }
.feat { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.feat li { padding-left: 30px; position: relative; color: var(--ink-soft); font-size: 16px; }
.feat li::before { content: ''; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5bea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.feat b { color: var(--ink); font-weight: 600; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.stack span { font: 400 12.5px/1 var(--mono); padding: 7px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.case__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Méthode ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); font: italic 400 26px/1 var(--serif); color: var(--accent); margin-bottom: 20px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Offres ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 30px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 26px; }
.plan__for { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.plan__price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; margin: 22px 0 20px; line-height: 1; }
.plan__price small { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.8; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.plan ul { list-style: none; padding: 20px 0 0; margin: 0 0 30px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15.5px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5bea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.plan--featured { border: 2px solid var(--accent); box-shadow: 0 30px 60px -30px rgba(47, 91, 234, .45); transform: translateY(-10px); }
.plan--featured:hover { transform: translateY(-16px); }
.plan__badge { position: absolute; top: -14px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; border-radius: 999px; }

/* ---------- Sécurité & maintenance ---------- */
.care__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.care .section__head { margin-bottom: 40px; }
.care__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.care__list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.care__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--green); background: var(--leaf); }
.care__list b { display: block; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px; }
.care__list span { color: var(--ink-soft); font-size: 16px; }
.term { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f4f5f8; border-bottom: 1px solid var(--line); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dce4; }
.term__bar span { margin-left: 10px; font: 400 12px var(--mono); color: var(--ink-mute); }
.term__body { margin: 0; padding: 26px 24px; font: 400 clamp(12.5px, 1.1vw, 14.5px)/1.9 var(--mono); color: var(--ink); overflow-x: auto; }
.t-dim { color: var(--ink-mute); }
.t-ok { color: var(--green); }
.t-warn { color: #d97706; font-weight: 700; }
.t-cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term figcaption { padding: 0 24px 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }

/* ---------- Pourquoi moi ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.why__quote p { font: 400 clamp(30px, 3.4vw, 44px)/1.18 var(--serif); letter-spacing: -0.01em; }
.why__quote em { color: var(--accent); }
.why__quote span { display: block; margin-top: 24px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why__list li { display: grid; gap: 4px; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.why__list b { font-size: 18px; letter-spacing: -0.01em; }
.why__list span { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq .section__head { position: sticky; top: 110px; margin: 0; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font-size: clamp(16.5px, 1.5vw, 18px); font-weight: 600; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -200px; top: -240px; background: radial-gradient(circle, rgba(47,91,234,.12), transparent 65%); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact h2 { font-size: clamp(42px, 5.6vw, 76px); margin-bottom: 22px; letter-spacing: -0.04em; }
.contact h2 em { color: var(--accent); }
.contact__copy > p:not(.kicker) { color: var(--ink-soft); font-size: 18px; max-width: 440px; }
.contact__mail { display: inline-block; margin-top: 32px; font: italic 400 clamp(24px, 2.6vw, 32px) var(--serif); text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 4px; transition: color .2s; word-break: break-all; }
.contact__mail:hover { color: var(--accent); }
.form { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; align-content: start; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input:not([type=radio]), .form textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical; }
.form select { width: 100%; font: 500 16px/1.4 var(--font); color: var(--ink); background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6476' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat; border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 44px 13px 15px; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.form select:focus { outline: none; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.form .is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 40% { border-color: var(--accent); background-color: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-mute); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.form.was-validated :invalid { border-color: #e5484d; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips label { display: inline-flex; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 500; color: var(--ink-soft); background: #fff; transition: background .2s, border-color .2s, color .2s; }
.chips label:hover span { border-color: var(--ink-mute); }
.chips input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__note { font-size: 13.5px; color: var(--ink-mute); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #fff; color: var(--ink-soft); border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand--light { color: var(--ink); font-size: 18px; }
.brand--light .brand__mark { width: 30px; height: 30px; font-size: 21px; border-radius: 9px; }
.footer a { text-decoration: none; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer a:hover { color: var(--accent); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__visual .float { animation: drop 1.2s var(--ease) both; }
.hero__visual .float--b { animation-delay: .15s; }
.hero__visual .float--c { animation-delay: .3s; }
.hero__visual .sticker { animation: drop 1.2s .45s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(50px) scale(.96); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 520px; margin-top: 10px; }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
  .phone--case { right: -2%; bottom: -10%; width: 22%; }
  .case__body { margin-top: 20px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
  .why__grid, .faq, .contact__grid, .care__grid { grid-template-columns: 1fr; }
  .faq .section__head { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__inner { height: 66px; }
  .hero__actions .btn { width: 100%; }
  .hero__proof { gap: 18px; justify-content: space-between; }
  .hero__proof span { font-size: 12.5px; }
  .sticker { width: 92px; height: 92px; right: 0; }
  .sticker span { width: 38px; height: 38px; font-size: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .term__body { font-size: 11.5px; padding: 22px 16px; }
  .term figcaption { padding: 0 16px 16px; }
  .browser__bar span { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .scribble::after { transform: skewX(-8deg); }
}

/* ---------- Formulaire : états ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note[data-state="ok"] { color: var(--green); font-weight: 600; }
.form__note[data-state="error"] { color: #d33a3f; font-weight: 500; }
.form__note[data-state="warn"] { color: #b45309; font-weight: 500; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }

/* ---------- Réalisations : besoin & parcours ---------- */
.case__body > p.need { color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-size: 16px; }
.need b { color: var(--accent); font-weight: 700; }
.journey { list-style: none; padding: 0; margin: 22px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.journey li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.journey li span { padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.journey li + li::before { content: ''; width: 14px; height: 1.5px; background: var(--line); }
.journey li.is-done span { background: var(--leaf); border-color: transparent; color: var(--green); }
.journey li.is-done span::before { content: '✓ '; }
.journey li.is-next span { background: var(--sun); border-color: transparent; color: #8a5a00; }

/* ---------- Formulaire : confirmation ---------- */
.form.is-sent > :not(.form-success) { display: none; }
.form-success { text-align: center; padding: 24px 8px 12px; display: grid; justify-items: center; gap: 12px; outline: none; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 104px; height: 104px; margin-bottom: 6px; }
.form-success__icon .ring { fill: var(--leaf); stroke: var(--green); stroke-width: 4; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .7s var(--ease) forwards; }
.form-success__icon .tick { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 28px; }
.form-success p { color: var(--ink-soft); max-width: 380px; }
.form-success b { color: var(--ink); font-weight: 600; word-break: break-all; }
.form-success .btn { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .form-success__icon .ring, .form-success__icon .tick { stroke-dashoffset: 0; }
}

/* ---------- Près de chez vous ---------- */
.local__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.local .section__head { margin-bottom: 36px; }
.local .section__lead strong { color: var(--ink); }
.local__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.local__list li { display: grid; gap: 2px; padding-left: 22px; border-left: 2px solid var(--accent-soft); }
.local__list b { font-size: 18px; letter-spacing: -0.01em; }
.local__list span { color: var(--ink-soft); font-size: 16px; }
.area { position: relative; padding: 32px 30px 28px; border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--line); text-align: center; overflow: hidden; }
.area__map { position: relative; height: 200px; display: grid; place-items: center; margin-bottom: 6px; }
.area__ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(47, 91, 234, .28); }
.area__ring--1 { width: 90px; height: 90px; background: rgba(47, 91, 234, .06); }
.area__ring--2 { width: 150px; height: 150px; }
.area__ring--3 { width: 196px; height: 196px; border-style: solid; border-color: rgba(47, 91, 234, .1); }
.area__pin { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(47, 91, 234, .6); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 91, 234, .35), 0 10px 24px -8px rgba(47, 91, 234, .6); } 70%, 100% { box-shadow: 0 0 0 26px rgba(47, 91, 234, 0), 0 10px 24px -8px rgba(47, 91, 234, .6); } }
.area__home { display: grid; gap: 2px; margin-bottom: 22px; }
.area__home b { font-size: 22px; letter-spacing: -0.02em; }
.area__home span { font-size: 14px; color: var(--ink-mute); }
.area__label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.area__towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.area__towns li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.area__far { margin-top: 18px; font: italic 400 20px var(--serif); color: var(--accent); }
.contact--white { background: var(--bg); }
@media (max-width: 900px) { .local__grid { grid-template-columns: 1fr; } }

/* ---------- Page mentions légales ---------- */
.legal-top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.legal-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); background: linear-gradient(180deg, #fbfcff 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); }
.legal-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 360px at 85% 20%, rgba(47, 91, 234, .12), transparent 65%), radial-gradient(420px 320px at 60% 110%, rgba(253, 160, 140, .14), transparent 65%); }
.legal-hero .wrap { position: relative; max-width: 1100px; }
.legal-hero h1 { font-size: clamp(42px, 7vw, 76px); margin-top: 22px; }
.legal-hero h1 em { color: var(--accent); }
.legal-hero__lead { margin-top: 16px; max-width: 560px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); }
.legal__updated { margin-top: 18px; color: var(--ink-mute); font-size: 14px; }

.legal { max-width: 1100px; display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 10vw, 120px); }
.legal__toc { position: sticky; top: 108px; }
.legal__toc-title { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 2px solid var(--line); }
.legal__toc li { counter-increment: toc; }
.legal .legal__toc a { display: flex; gap: 10px; margin-left: -2px; padding: 8px 14px; border-left: 2px solid transparent; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s, border-color .2s; }
.legal__toc a::before { flex-shrink: 0; content: counter(toc, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--ink-mute); }
.legal .legal__toc a:hover { color: var(--ink); border-color: var(--accent); }

.legal__body { display: grid; gap: 20px; min-width: 0; }
.legal__card { position: relative; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.legal__num { display: inline-block; font: 500 13px/1 var(--mono); color: var(--accent); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.legal h3 { font-size: 17px; letter-spacing: -0.01em; margin: 30px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(47, 91, 234, .35); text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color .2s; }
.legal a:hover { text-decoration-color: currentColor; }
.legal strong { color: var(--ink); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; }
.facts > div { padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); min-width: 0; }
.facts__wide { grid-column: 1 / -1; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.facts--rows { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts--rows > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; border: 0; border-radius: 0; background: #fff; }
.facts--rows > div + div { border-top: 1px solid var(--line); }
.facts--rows dt { margin: 3px 0 0; }
.facts--rows dd { color: var(--ink-soft); }

.legal__notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-mute); }
.legal__notes li { position: relative; padding-left: 18px; }
.legal__notes li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); opacity: .5; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__toc ol { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .legal .legal__toc a { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; }
  .legal .legal__toc a:hover { border-color: var(--accent); }
}
@media (max-width: 640px) {
  .legal-top__inner { height: 66px; }
  .facts { grid-template-columns: 1fr; }
  .facts--rows > div { grid-template-columns: 1fr; gap: 2px; }
}
.todo { background: var(--sun); color: #7a5b00; font-weight: 600; padding: 1px 6px; border-radius: 6px; }

/* ---------- Accessibilité ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Sans JavaScript, les blocs restent visibles */
html:not(.js) .reveal { opacity: 1; transform: none; }
/* Boutons pause des animations */
.anim-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.anim-toggle:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.anim-toggle svg { width: 14px; height: 14px; }
.anim-toggle .i-play, .anim-toggle[aria-pressed="true"] .i-pause { display: none; }
.anim-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee__toggle { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--line); right: 16px; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.slides__dots { align-items: center; }
.slides__dots .anim-toggle { width: 22px; height: 22px; border: 0; background: transparent; color: #fff; margin-right: 2px; }
.slides__dots .anim-toggle:hover { background: rgba(255, 255, 255, .2); }
.slides__dots .anim-toggle svg { width: 10px; height: 10px; }
.slides__dots button:not(.anim-toggle) { position: relative; }
.slides__dots button:not(.anim-toggle)::before { content: ''; position: absolute; inset: -8px -3px; }
@media (prefers-reduced-motion: reduce) { .anim-toggle { display: none; } }
/* Formulaire : champs obligatoires et erreurs */
.req { color: #c0352f; font-weight: 700; }
.form__legend { font-size: 13.5px; color: var(--ink-soft); margin-top: -6px; }
.form [aria-invalid="true"] { border-color: #c0352f !important; box-shadow: 0 0 0 3px rgba(192, 53, 47, .12); }
.field-error { font-size: 13.5px; font-weight: 600; color: #c0352f; }
.field-error:empty { display: none; }
