/* tap4Book v2 — page d'accueil.
   Principes : réponse immédiate au toucher, mouvement qui s'arrête de lui-même
   (transform et opacity seulement), matériaux translucides, titres resserrés,
   et un repli propre pour prefers-reduced-motion / -transparency / -contrast. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #059669;
  --brand-dark: #047857;
  --brand-bright: #10b981;
  --brand-tint: #ecfdf5;
  --ink: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f5f7fa;
  --dark: #0b1220;
  --radius: 1.5rem;
  --radius-sm: 0.875rem;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --shadow-float: 0 40px 80px -30px rgba(15, 23, 42, .35);
  --glass: rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .6);
  /* Courbe d'arrivée : décélère comme un ressort critiquement amorti */
  --settle: cubic-bezier(.22, 1, .36, 1);
  --page: min(72rem, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--page); margin-inline: auto; }

/* ---------- Typographie : tracking et interlignage suivent la taille ---------- */
.display {
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-wrap: pretty;
}
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.center { text-align: center; }
.intro { max-width: 46rem; margin-inline: auto; }
.intro .lede { margin-top: 1.25rem; }
.green { color: var(--brand); }
.nowrap { white-space: nowrap; }

/* ---------- Boutons : retour dès l'appui, pas au relâchement ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 0;
  font: 600 1rem/1 Inter, system-ui, sans-serif;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease-out, background-color 200ms, box-shadow 200ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .6); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); padding-inline: .5rem; }
.btn-ghost:hover { color: var(--brand-dark); }
.btn-ghost .arrow { transition: transform 300ms var(--settle); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9375rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }

/* ---------- Navigation : capsule translucide flottante ----------
   Une couche de matière au-dessus du contenu, pas une bande opaque.
   Au défilement, elle s'épaissit (flou et ombre plus forts) au lieu de gagner un filet. */
.nav {
  position: sticky;
  top: .75rem;
  z-index: 50;
  margin: .75rem auto 0;
  width: min(72rem, 100% - 1.5rem);
  height: 3.5rem;
}
.nav-bar {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 .5rem 0 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  transition: background-color 350ms var(--settle), box-shadow 350ms var(--settle), -webkit-backdrop-filter 350ms, backdrop-filter 350ms;
}
.nav.scrolled .nav-bar {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  backdrop-filter: blur(28px) saturate(200%);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -16px rgba(15, 23, 42, .28);
}
.nav-logo { display: flex; align-items: center; align-self: stretch; flex: none; padding-right: 1rem; margin-left: -.25rem; padding-left: .25rem; -webkit-tap-highlight-color: transparent; }
.nav-logo img { height: 1.75rem; width: auto; transition: transform 120ms ease-out; }
.nav-logo:active img { transform: scale(.96); }

.nav-links { display: none; position: relative; align-items: center; gap: .125rem; }
.nav-link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .9rem; border: 0; border-radius: 999px; background: none;
  font: 500 .9375rem/1 Inter, system-ui, sans-serif; letter-spacing: -.003em;
  color: var(--ink); opacity: .72; cursor: pointer; white-space: nowrap;
  transition: opacity 150ms, transform 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link[aria-expanded="true"] { opacity: 1; }
.nav-link:active { transform: scale(.96); }
.nav-link .chev { font-size: .65rem; transition: transform 400ms var(--settle); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* Pastille qui suit le pointeur d'un lien à l'autre ; elle repart de sa position courante */
.nav-pill {
  position: absolute; z-index: 0; left: 0; top: 0; height: 100%;
  border-radius: 999px; background: rgba(15, 23, 42, .06);
  opacity: 0; pointer-events: none;
  transition: transform 450ms var(--settle), width 450ms var(--settle), opacity 200ms;
}
.nav-pill.on { opacity: 1; }
.nav-pill.jump { transition: opacity 200ms; }

.nav-actions { display: flex; align-items: center; gap: .25rem; }
.nav-login { display: none; }
.nav-cta { margin-left: .25rem; }

/* Menu des secteurs : naît du bouton qui l'ouvre et y retourne */
.has-pop { position: relative; display: flex; }
.pop {
  position: absolute; top: calc(100% + .75rem); left: 50%;
  min-width: 17rem; padding: .5rem; border-radius: 1.25rem;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 24px 48px -16px rgba(15, 23, 42, .3);
  transform-origin: 50% 0;
  transform: translateX(-50%) translateY(-6px) scale(.92);
  opacity: 0; visibility: hidden; filter: blur(6px);
  transition: transform 450ms var(--settle), opacity 220ms, filter 350ms, visibility 0s 450ms;
}
.pop.open { transform: translateX(-50%); opacity: 1; visibility: visible; filter: none; transition-delay: 0s; }
.pop a {
  display: flex; flex-direction: column; gap: .15rem; padding: .75rem 1rem; border-radius: .875rem;
  font-weight: 600; font-size: .9375rem; color: var(--ink); line-height: 1.2;
  transition: background-color 120ms, transform 120ms ease-out;
}
.pop a small { font-weight: 400; font-size: .8125rem; color: var(--muted); }
.pop a:hover, .pop a:focus-visible { background: rgba(15, 23, 42, .06); }
.pop a:active { transform: scale(.97); background: rgba(15, 23, 42, .1); }

.nav-toggle {
  width: 2.5rem; height: 2.5rem; border: 0; background: transparent; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: transform 120ms ease-out, background-color 150ms; -webkit-tap-highlight-color: transparent;
}
.nav-toggle:active { transform: scale(.88); background: rgba(15, 23, 42, .08); }
.nav-toggle span, .nav-toggle span::before { display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform 450ms var(--settle); }
.nav-toggle span { position: relative; transform: translateY(-3px); }
.nav-toggle span::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); }

/* Menu mobile : feuille qui descend du haut, se referme par le haut, et se saisit au doigt.
   Le fond s'assombrit pendant qu'elle est ouverte (tâche modale). */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(11, 18, 32, .4);
  opacity: 0; visibility: hidden; transition: visibility 0s 300ms;
}
.scrim.on { visibility: visible; transition-delay: 0s; }
.sheet {
  position: fixed; z-index: 45; left: .75rem; right: .75rem; top: 4.75rem;
  max-height: calc(100vh - 5.5rem); max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 1.25rem max(1.25rem, env(safe-area-inset-bottom)); border-radius: 1.75rem;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 40px 80px -24px rgba(15, 23, 42, .45);
  visibility: hidden; opacity: 0; touch-action: pan-y;
  will-change: transform;
}
.sheet.live { visibility: visible; }
.sheet a { display: block; padding: clamp(.5rem, 2vh, .95rem) 0; font-size: clamp(1.0625rem, 2.6vh, 1.1875rem); font-weight: 600; letter-spacing: -.012em; color: var(--ink); border-bottom: 1px solid var(--line); transition: opacity 150ms; }
.sheet a:active { opacity: .5; }
.sheet .sheet-sub { padding-left: 1rem; font-size: 1.0625rem; font-weight: 500; color: var(--text); }
.sheet .sheet-cta { margin-top: 1rem; border: 0; padding: 1rem; text-align: center; color: #fff; border-radius: 999px; background: var(--brand); }
/* Poignée : zone de prise de 2,25 rem, la feuille se tire par là quand elle défile */
.sheet-grab { position: sticky; top: 0; z-index: 1; display: block; height: 2.25rem; margin: 0 -1.25rem; touch-action: none; cursor: grab; background: transparent; }
.sheet-grab::after { content: ""; position: absolute; left: 50%; top: .7rem; width: 2.25rem; height: 5px; margin-left: -1.125rem; border-radius: 3px; background: rgba(15, 23, 42, .18); }
/* Quand tout tient, toute la feuille peut être tirée */
.sheet.fits { touch-action: none; }
.sheet a:last-of-type { border-bottom: 0; }
/* Les liens entrent l'un après l'autre */
.sheet.live a { animation: rise 600ms var(--settle) backwards; animation-delay: calc(var(--i, 0) * 35ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 72rem) {
  .nav-links { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-login { display: inline-flex; }
  .nav-toggle, .sheet, .scrim { display: none; }
}

/* ---------- Héros ---------- */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 0; text-align: center; overflow: hidden; background: radial-gradient(60rem 28rem at 50% -8rem, var(--brand-tint), transparent 70%); }
.hero .display { max-width: 16ch; margin-inline: auto; }
.hero .lede { max-width: 38rem; margin: 1.75rem auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.25rem; margin-top: 2.25rem; }
.hero-stage { margin-top: clamp(3rem, 6vw, 5rem); perspective: 1600px; }
.hero-shot {
  width: min(64rem, 100%);
  margin-inline: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid rgba(15, 23, 42, .1);
  border-bottom: 0;
  box-shadow: var(--shadow-float);
  background: #fff;
  transform-origin: 50% 100%;
  will-change: transform;
}
.hero-shot img { border-radius: inherit; width: 100%; }

/* ---------- Bandeau de confiance ---------- */
.trust { padding: 3rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.trust-label { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem; }
.trust-logos img { height: 2.25rem; width: auto; filter: grayscale(1); opacity: .6; transition: filter 300ms, opacity 300ms; }
.trust-logos img:hover { filter: none; opacity: 1; }
.trust-logos .sm { height: 1.35rem; }

/* ---------- Sections ---------- */
section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.band { background: var(--surface); }

/* Étapes */
.steps { display: grid; gap: 1rem; margin-top: 3.5rem; counter-reset: s; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-card); border: 1px solid rgba(15, 23, 42, .05);
}
.step-n {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: .6rem; line-height: 1.2; }
.step p { color: var(--muted); font-size: 1rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Vitrine : grandes cartes à visuel */
.showcase { display: grid; gap: 1rem; margin-top: 3.5rem; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  border: 1px solid rgba(15, 23, 42, .05);
  transition: transform 500ms var(--settle), box-shadow 500ms var(--settle);
}
.tile h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -0.028em; line-height: 1.1; color: var(--ink); margin-bottom: .75rem; text-wrap: balance; }
.tile p { color: var(--muted); max-width: 30rem; }
.tile-dark { background: var(--dark); border-color: transparent; }
.tile-dark h3 { color: #fff; }
.tile-dark p { color: #94a3b8; }
.tile-green { background: var(--brand-bright); border-color: transparent; }
.tile-green h3 { color: #04271c; }
.tile-green p { color: #064e3b; }
.tile-visual { display: flex; justify-content: center; align-items: flex-end; margin-bottom: calc(-1 * clamp(1.75rem, 3.5vw, 2.75rem)); }
.tile-visual img { border-radius: 1rem 1rem 0 0; box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .35); max-height: 22rem; width: auto; max-width: 100%; }
.tile-visual.wide img { width: 100%; max-height: none; object-fit: cover; object-position: top left; }
.tile-visual.phone img { box-shadow: none; max-height: 20rem; }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); } }
@media (min-width: 56rem) {
  .showcase { grid-template-columns: repeat(6, 1fr); }
  .tile:nth-child(1) { grid-column: span 4; }
  .tile:nth-child(2) { grid-column: span 2; }
  .tile:nth-child(3) { grid-column: span 2; }
  .tile:nth-child(4) { grid-column: span 4; }
}

/* Fonctionnalités */
.features { display: grid; gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.feature i { width: 2.75rem; height: 2.75rem; border-radius: .875rem; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-size: 1.25rem; }
.feature h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.012em; color: var(--ink); line-height: 1.3; margin-bottom: .25rem; }
.feature p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
@media (min-width: 48rem) {
  .features { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .feature:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 64rem) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Équipes : bande sombre */
.dark { background: var(--dark); color: #cbd5e1; }
.dark .title { color: #fff; }
.dark .lede { color: #94a3b8; }
.dark .eyebrow { color: var(--brand-bright); }
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.checks { margin-top: 2rem; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .75rem; align-items: center; color: #e2e8f0; font-weight: 500; }
.checks i { color: var(--brand-bright); font-size: 1.25rem; }
/* Surface translucide posée sur fond sombre : plus claire que lui, jamais sur une autre surface claire */
.glass {
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top-color: rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.glass .label { color: #cbd5e1; font-weight: 500; font-size: .9375rem; }
.glass .big { font-size: clamp(3.5rem, 2rem + 6vw, 6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: #fff; margin: 1rem 0 .5rem; font-variant-numeric: tabular-nums; }
.glass .delta { color: var(--brand-bright); font-weight: 600; font-size: 1rem; }
.glass .note { color: #94a3b8; font-size: .8125rem; margin-top: 1.5rem; }
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 5rem; margin-top: 1.75rem; }
.bars span { flex: 1; border-radius: .4rem .4rem .15rem .15rem; background: linear-gradient(to top, rgba(16, 185, 129, .35), var(--brand-bright)); transform-origin: bottom; transform: scaleY(0); transition: transform 900ms var(--settle); }
.in .bars span { transform: scaleY(1); }
.bars span:nth-child(2) { transition-delay: 60ms; } .bars span:nth-child(3) { transition-delay: 120ms; }
.bars span:nth-child(4) { transition-delay: 180ms; } .bars span:nth-child(5) { transition-delay: 240ms; }
.bars span:nth-child(6) { transition-delay: 300ms; } .bars span:nth-child(7) { transition-delay: 360ms; }

/* FAQ : la hauteur suit un ressort, et peut être inversée à tout moment */
.faq { max-width: 46rem; margin: 3.5rem auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: 650 1.1875rem/1.35 Inter, system-ui, sans-serif; letter-spacing: -0.015em; color: var(--ink);
  transition: color 150ms; -webkit-tap-highlight-color: transparent;
}
.faq-q:hover { color: var(--brand); }
.faq-q i { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: .9rem; transition: transform 450ms var(--settle), background-color 200ms; }
.faq-q:active i { background: var(--line); }
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); background: var(--brand-tint); color: var(--brand); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--settle); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 3rem 1.5rem 0; color: var(--muted); }
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-a { grid-template-rows: 1fr; }

/* Appel final */
.cta { text-align: center; background: radial-gradient(50rem 24rem at 50% 100%, var(--brand-tint), transparent 70%); }
.cta .hero-cta { margin-top: 2.5rem; }

/* Pied de page : surface claire et calme, hiérarchie par la taille et le poids.
   Sur mobile, les colonnes deviennent des sections repliables (même ressort que la FAQ). */
.foot { background: var(--surface); color: var(--muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .875rem; line-height: 1.5; border-top: 1px solid var(--line); }
.foot-top { display: grid; gap: 2rem; }
.foot-brand img { height: 1.75rem; width: auto; margin-bottom: 1rem; }
.foot-brand p { max-width: 20rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.foot-social { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-top: 1.25rem; margin-left: -.5rem; border-radius: 50%; color: var(--ink); font-size: 1.125rem; transition: background-color 150ms, transform 120ms ease-out; }
.foot-social:hover { background: rgba(15, 23, 42, .06); }
.foot-social:active { transform: scale(.9); }

.foot-cols { display: grid; border-top: 1px solid var(--line); }
.foot-col { border-bottom: 1px solid var(--line); }
.foot-h {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: 600 .9375rem/1.3 Inter, system-ui, sans-serif; letter-spacing: -.005em; color: var(--ink);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.foot-h i { font-size: .75rem; transition: transform 450ms var(--settle); }
.foot-h[aria-expanded="true"] i { transform: rotate(180deg); }
.foot-h:active { opacity: .6; }
.foot-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--settle); }
.foot-h[aria-expanded="true"] + .foot-list { grid-template-rows: 1fr; }
.foot-list > ul { overflow: hidden; }
.foot-list li:last-child { padding-bottom: 1rem; }
.foot-list a, .foot-legal a { display: inline-block; padding: .4rem 0; color: var(--text); transition: color 150ms, transform 120ms ease-out; }
.foot-list a:hover, .foot-legal a:hover { color: var(--brand); }
.foot-list a:active, .foot-legal a:active { transform: scale(.97); }

.foot-legal { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .5rem; font-size: .8125rem; }
.foot-legal nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.foot-legal nav span { color: var(--muted); }

@media (min-width: 48rem) {
  .foot-top { grid-template-columns: 1.4fr 2.6fr; gap: 3rem; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 0; }
  .foot-col { border-bottom: 0; }
  .foot-h { cursor: default; padding: 0 0 .75rem; pointer-events: none; font-size: .8125rem; }
  .foot-h i { display: none; }
  .foot-list { grid-template-rows: 1fr; }
  .foot-list li:last-child { padding-bottom: 0; }
  .foot-legal { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
}
/* ---------- Pages intérieures ---------- */
.nav-link[aria-current="page"], .nav-link[data-current="true"] { opacity: 1; }
.pop a[aria-current="page"] { color: var(--brand); }
.display.md { font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem); }
.title.sm { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.5rem); }
section.tight { padding-top: clamp(1.5rem, 4vw, 3rem); }
.page-hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(1.5rem, 4vw, 3rem); background: radial-gradient(54rem 22rem at 50% -6rem, var(--brand-tint), transparent 70%); }
.page-hero.compact { padding-bottom: clamp(1rem, 3vw, 2rem); }
.page-hero.left { text-align: left; }
.page-hero .lede { margin-top: 1.5rem; }
.hero-cta.left { justify-content: flex-start; }
.btn-soft { background: var(--brand-tint); color: var(--brand-dark); }
.btn-soft:hover { background: #d1fae5; }
.btn.block { display: flex; width: 100%; }
.checks.on-light { margin-top: 1.5rem; }
.checks.on-light li { color: var(--ink); }

/* Fonctionnalités : blocs texte et visuel en alternance */
.row-split { display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem) 0; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-float); border: 1px solid rgba(15, 23, 42, .08); background: #fff; }
.shot img { width: 100%; }
.shot img.narrow { max-width: 22rem; margin-inline: auto; }
.shot:has(img.narrow) { background: var(--surface); padding: 2rem 1.5rem 0; box-shadow: none; }
@media (min-width: 56rem) {
  .row-split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .row-split.rev > :first-child { order: 2; }
}

/* Cartes */
.cards { display: grid; gap: 1rem; margin-top: 3.5rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid rgba(15, 23, 42, .05); box-shadow: var(--shadow-card); transition: transform 500ms var(--settle), box-shadow 500ms var(--settle); }
.card .ico { width: 2.75rem; height: 2.75rem; border-radius: .875rem; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-size: 1.25rem; margin-bottom: 1.1rem; }
.card h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.018em; color: var(--ink); line-height: 1.25; margin-bottom: .45rem; }
.card p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.card.inline { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; padding: 1.5rem; }
.card.inline .ico { margin-bottom: 0; }
.card.inline h3 { font-size: 1.0625rem; }
.card.big { padding: clamp(1.75rem, 4vw, 2.5rem); margin-top: 0; }
.card.big h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.card.big p { font-size: 1rem; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); } }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(4, 1fr); } }
.band .card { box-shadow: var(--shadow-card); }

.integ { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.integ li { display: flex; align-items: center; gap: .6rem; padding: .75rem 1.1rem; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9375rem; }
.integ i { color: var(--brand); font-size: 1.15rem; }
.codebox { margin: 1.25rem 0 0; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--dark); color: #e2e8f0; font: 500 .8125rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }

/* Tarifs */
.plans { display: grid; gap: 1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.25rem); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-float); }
.plan h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.plan .badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); padding: .3rem .85rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan .price { margin: 1rem 0 .25rem; color: var(--ink); line-height: 1.1; }
.plan .price span { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan .price.consult span { font-size: 1.75rem; letter-spacing: -.03em; }
.plan .price small { font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .hook { color: var(--muted); font-size: .9375rem; }
.plan .checks { margin: 1.5rem 0 2rem; flex: 1; gap: .7rem; align-content: start; }
.plan .checks li { font-size: .9375rem; align-items: flex-start; }
.plan .checks i { margin-top: .15rem; font-size: 1.05rem; }
@media (min-width: 56rem) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-areas: "intro" "form" "aside"; }
.contact-intro { grid-area: intro; }
.contact-form { grid-area: form; }
.contact-aside { grid-area: aside; }
@media (min-width: 64rem) {
  .contact-grid { grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; grid-template-areas: "intro form" "aside form"; column-gap: 4rem; align-items: start; }
}
.contact-intro .display { font-size: clamp(2.25rem, 1rem + 3.2vw, 3.5rem); text-wrap: balance; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-float); border: 1px solid rgba(15, 23, 42, .06); scroll-margin-top: 6rem; }
.form-card h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: 1.5rem; }
.fields { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.fields .col-full { grid-column: 1 / -1; }
@media (min-width: 40rem) { .fields { grid-template-columns: 1fr 1fr; } }
.f label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.input {
  width: 100%; display: block; padding: .8rem 1rem; border-radius: .75rem; border: 1px solid #cbd5e1; background: #fff;
  font: 400 1rem/1.4 Inter, system-ui, sans-serif; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color 150ms, box-shadow 200ms var(--settle);
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
textarea.input { resize: vertical; min-height: 7.5rem; }
.input:hover { border-color: #94a3b8; }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.input.is-invalid { border-color: #dc2626; }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.invalid-feedback { display: none; margin-top: .4rem; font-size: .8125rem; color: #dc2626; }
.agree { display: flex; align-items: flex-start; gap: .7rem; }
.agree input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--brand); }
.agree label { margin: 0; font-size: .8125rem; font-weight: 400; line-height: 1.5; color: var(--muted); }
.alert { padding: .9rem 1.1rem; border-radius: .75rem; font-size: .9375rem; line-height: 1.5; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-warning { background: #fffbeb; color: #92400e; }
/* Champ piège pour les robots : hors écran, jamais vu ni atteint au clavier */
.contact-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* intl-tel-input v18 : le sélecteur de pays enveloppe le champ ; le message d'erreur reste dehors */
.iti { display: block; width: 100%; }
.iti .input { padding-left: 4.5rem; }
/* ALTCHA v1 : rendu dans le DOM de la page */
altcha-widget { display: block; border: 0; text-align: left; --altcha-max-width: 100%; --altcha-border-radius: .75rem; --altcha-color-base: #fff; --altcha-color-border: #cbd5e1; --altcha-color-border-focus: #059669; --altcha-color-text: #334155; --altcha-color-error-text: #dc2626; }
altcha-widget input[type="checkbox"] { width: auto; margin: 0; padding: 0; accent-color: #059669; }
.contact-details { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.contact-details li { display: flex; align-items: center; gap: 1rem; }
.contact-details .ico { flex: none; width: 2.75rem; height: 2.75rem; border-radius: .875rem; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-size: 1.2rem; }
.contact-details .label { display: block; font-size: .8125rem; color: var(--muted); }
.contact-details a:hover { text-decoration: underline; }
.help-card { background: var(--surface); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; }
.help-card h2 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.help-card p { font-size: .875rem; color: var(--muted); }
.help-card .links { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.help-card .links a { font-weight: 600; font-size: .875rem; }
.help-card .links i { margin-right: .35rem; }
.green { transition: color 150ms; }
a.green:hover { color: var(--brand-dark); }

/* Mentions légales */
.legal { max-width: 48rem; display: grid; gap: 1rem; }
.legal-block { background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.legal-block h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.018em; color: var(--ink); margin-bottom: 1rem; }
.legal-block p { font-size: .9688rem; line-height: 1.65; }
.legal-block p + p { margin-top: .85rem; }
.legal-block a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Pages secteur */
.sector-hero { display: grid; gap: 2.5rem; align-items: center; }
.sector-card { background: #fff; border: 1px solid rgba(15, 23, 42, .06); border-radius: var(--radius); box-shadow: var(--shadow-float); padding: clamp(1.5rem, 3vw, 2.25rem); }
.sector-card .trust-label { display: block; margin-bottom: 1rem; }
.trust-logos.left { justify-content: flex-start; margin-bottom: 1.75rem; gap: 1.25rem 2rem; }
@media (min-width: 56rem) { .sector-hero { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.page-hero.left .display { text-wrap: pretty; }
/* Enfants de grilles : sans min-width:0, un contenu insécable (bloc de code, bouton long)
   élargit la colonne et fait défiler la page horizontalement sur mobile */
.split > *, .row-split > *, .contact-grid > *, .sector-hero > *, .foot-top > *, .plans > *, .cards > * { min-width: 0; }
.contact-intro .btn { white-space: normal; text-align: left; line-height: 1.3; }
/* ---------- Apparition au défilement : la matière arrive, elle ne fait pas que s'estomper ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity 700ms var(--settle), transform 900ms var(--settle); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Préférences d'accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 250ms linear; }
  .hero-shot { transform: none !important; }
  .tile, .btn, .faq-q i, .bars span, .nav-toggle span, .nav-toggle span::before, .nav-pill, .pop { transition-duration: 1ms; }
  .sheet.live a { animation: none; }
  .tile:hover, .card:hover { transform: none; }
  .bars span { transform: scaleY(1); }
  .faq-a, .foot-list, .foot-h i { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-bar, .nav.scrolled .nav-bar, .sheet, .pop { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass { background: #1a2338; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text: #1e293b; --muted: #334155; --line: #94a3b8; }
  .nav-bar, .sheet, .pop { background: #fff; border-color: var(--ink); }
  .foot { background: #fff; border-top-color: var(--ink); }
  .step, .tile, .card, .plan, .form-card { border-color: var(--ink); }
}
