/* ==========================================================================
   Paperless — Site vitrine & pages légales
   Tokens alignés sur le design system Figma "DA / COLOR"
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --white-a90: rgba(255, 255, 255, .9);
  --gold500: #FFC107;
  --gold500-a80: rgba(255, 193, 7, .8);
  --gold500-a20: rgba(255, 193, 7, .2);
  --gold500-a15: rgba(255, 193, 7, .15);
  --gold700: #8C5A00; /* Figma : #A86B00, foncé pour un contraste AA (≥ 4,5:1) sur blanc et sur --gold50 */
  --gold50: #FFF7D6;
  --gold-illu: #FAC638;
  --green500: #22C55E;
  --green100: #DCFCE7;
  --green700: #15803D;
  --red500: #EF4444;
  --red100: #FEE2E2;
  --red700: #B91C1C;
  --gray900: #111827;
  --gray900-a55: rgba(17, 24, 39, .55);
  --gray700: #374151;
  --gray500: #6B7280;
  --gray450: #878D96; /* Hors Figma : bordure des champs, contraste ≥ 3:1 sur blanc et sur --gray50 (WCAG 1.4.11) */
  --gray400: #9CA3AF;
  --gray200: #E5E7EB;
  --gray100: #F3F4F6;
  --gray50: #F8F8F6;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
  --shadow-gold: 0 4px 20px var(--gold500-a15);
  --shadow-screen: 0 20px 40px rgba(17, 24, 39, .08);
  --shadow-modal: 0 24px 64px rgba(17, 24, 39, .24);

  /* Animations : départ franc puis freinage, jamais ease-in. Rapide pour le survol, l'appui et la fermeture. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --duration-fast: .15s;
  --duration-base: .2s;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --gutter: 24px;

  /* Échelle typographique : 7 tailles fixes (13, 14, 15, 16, 18, 20 et 24 px) et 2 tailles fluides.
     Toute taille de texte passe par un de ces tokens. En rem : elles suivent la taille de police réglée dans le navigateur. */
  --text-caption: .8125rem;
  --text-small: .875rem;
  --text-ui: .9375rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-title: 1.25rem;
  --text-heading: 1.5rem;
  --text-section: clamp(1.75rem, 4vw, 2.5rem);
  --text-display: clamp(2rem, 4.8vw, 3.125rem);

  /* Le site n'a qu'un thème clair : évite l'assombrissement automatique de certains navigateurs mobiles. */
  color-scheme: only light;
}

/* Points de rupture en em : comme les tailles de texte, ils suivent la taille de police du navigateur
   (56.25em = 900 px, 47.5em = 760 px, 40em = 640 px, 30em = 480 px à 16 px). */

*, *::before, *::after { box-sizing: border-box; }
/* Pas de délai de double appui sur les éléments interactifs des écrans tactiles. */
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
::selection { background: var(--gold500-a80); color: var(--gray900); }
input, textarea { caret-color: var(--gold700); }

/* scroll-padding-top : l'en-tête collant (68 px) ne masque ni l'élément qui reçoit le focus ni la cible d'une ancre. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--gray900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* Un mot plus large que son bloc (texte agrandi, écran étroit) est coupé au lieu de faire déborder la page. */
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--text-section); }
h2 { font-size: var(--text-heading); }
h3 { font-size: var(--text-title); }
h4 { font-size: var(--text-body); }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gray900); color: var(--white); padding: 9px 12px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Texte lu par les lecteurs d'écran, invisible à l'écran. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--gold700); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white-a90);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray200);
}
/* min-height et non height : l'en-tête grandit avec le texte au lieu de le laisser déborder. */
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: var(--text-title); letter-spacing: -.02em; }
.brand img { width: auto; height: 34px; }
.site-header .brand { min-height: 44px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: var(--text-ui); font-weight: 500; color: var(--gray700); }
@media (hover: hover) { .nav a:hover { color: var(--gray900); } }
.nav .btn { color: var(--gray900); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-full);
  background: var(--gray100); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 2px; background: var(--gray900); border-radius: 2px; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }
/* Contraste élevé (Windows) : les fonds sont remplacés, les traits dessinés en background disparaîtraient. */
@media (forced-colors: active) {
  .nav-toggle { border: 1px solid ButtonText; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { forced-color-adjust: none; background: ButtonText; }
}

@media (max-width: 56.25em) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--gray200); padding: 8px var(--gutter) 20px;
    /* Écran bas (téléphone en paysage) : le menu défile au lieu de sortir de l'écran. */
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--gray100); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md);
  font: 600 var(--text-body)/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition-property: background-color, border-color, color, transform;
  transition-duration: var(--duration-fast); transition-timing-function: var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { background: var(--gold500); color: var(--gray900); box-shadow: var(--shadow-gold); }
.btn-secondary { background: var(--white); color: var(--gray700); border-color: var(--gray200); font-weight: 500; }
/* Survol réservé aux souris : sur écran tactile, l'effet resterait affiché après un appui. */
@media (hover: hover) {
  .btn-primary:hover { background: var(--gold500-a80); }
  .btn-secondary:hover { border-color: var(--gray400); color: var(--gray900); }
}
@media (prefers-reduced-motion: reduce) { .btn:active:not(:disabled) { transform: none; } }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--text-ui); border-radius: var(--radius-sm); }

/* ---------- Badges ---------- */
.pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: var(--radius-full);
  font-size: var(--text-caption); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold50); color: var(--gold700);
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--gray50); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: var(--text-section); }
.section-head p { font-size: var(--text-lead); color: var(--gray500); }
/* Titre seul, sans texte dessous : pas de marge basse en double. */
.section-head > :last-child { margin-bottom: 0; }
/* La phrase dorée reste entière et passe à la ligne d'un bloc ; le titre qui la contient garde sa coupe naturelle. */
.gold { color: var(--gold700); display: inline-block; }
h2:has(> .gold) { text-wrap: wrap; }
/* Mot composé qui ne doit pas être coupé à son trait d'union (« sommes-nous »). */
.nowrap { white-space: nowrap; }
.highlight { background: linear-gradient(transparent 62%, var(--gold500-a20) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

@media (max-width: 40em) { section { padding: 64px 0; } }
/* Section qui prolonge la précédente sur le même fond : pas de marge haute, pour ne pas doubler l'espace entre les deux. */
.section-continued { padding-top: 0; }
.section-foot { text-align: center; margin: 32px 0 0; }
/* Les sections ont déjà une marge interne haute : on annule le scroll-padding-top pour que leurs ancres arrivent en haut de page. */
main > section[id] { scroll-margin-top: -84px; }
/* Sans marge haute, l'ancre s'arrête à 92 px (84 px de scroll-padding-top + 8 px) : l'en-tête collant ne masque pas le haut du bloc. */
main > section.section-continued[id] { scroll-margin-top: 8px; }

/* Listes sans cadre (atouts, garanties sur les données) : un filet doré au-dessus de chaque point. */
.facts-head { max-width: 680px; margin: 64px 0 28px; }
.facts-head h3 { font-size: var(--text-heading); }
.facts-head p { font-size: var(--text-lead); color: var(--gray500); }
.facts-head > :last-child { margin-bottom: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts li { padding-top: 16px; border-top: 2px solid var(--gold500); }
.facts h4 { font-size: var(--text-title); margin-bottom: 6px; }
.facts p { font-size: var(--text-ui); color: var(--gray500); margin: 0; }
@media (max-width: 56.25em) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 32.5em) { .facts { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Capture d'écran de l'application. */
.phone {
  width: 100%; border-radius: 28px; border: 1px solid var(--gray200); background: var(--white);
  box-shadow: var(--shadow-screen);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% 0%, var(--gold50), transparent 70%); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
/* text-wrap: wrap : le titre garde sa coupe naturelle, le surlignage tombe sur des lignes entières. */
.hero h1 { font-size: var(--text-display); letter-spacing: -.03em; margin: 0 0 20px; text-wrap: wrap; }
/* --gray700 : ces textes passent sur le dégradé doré, où --gray500 tomberait à 4,5:1. */
.hero .lead { font-size: var(--text-lead); color: var(--gray700); max-width: 540px; }
.hero .signup { max-width: 480px; margin: 32px 0 20px; }
.hero-note { margin: 0; font-size: var(--text-small); color: var(--gray700); }
.hero-note a { margin-left: 4px; text-underline-offset: 3px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .phone { max-width: 280px; }

@media (max-width: 56.25em) {
  .hero { padding: 40px 0 64px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual .phone { max-width: 220px; }
}

/* ---------- Inscription « Être prévenu du lancement » dans la page ---------- */
/* Sans JS, seul le lien mailto est affiché ; main.js le remplace par le formulaire.
   .btn impose display:inline-flex : on garantit que [hidden] masque bien le lien. */
.signup [hidden] { display: none; }
.signup-form { display: grid; gap: 8px; text-align: left; }
.signup-form label { font-size: var(--text-small); font-weight: 600; color: var(--gray700); }
.signup-row { display: flex; gap: 8px; }
.signup-row input { flex: 1; min-width: 0; }
.signup-row .btn { flex: none; min-height: 52px; }
.signup-row .btn:disabled { opacity: .6; cursor: wait; }
.signup-note { margin: 4px 0 0; font-size: var(--text-caption); line-height: 1.5; color: var(--gray700); }
.signup-note a { text-underline-offset: 2px; }
/* Empilés : flex: none, sinon le champ (flex: 1) perd sa hauteur dans une colonne. */
@media (max-width: 30em) {
  .signup-row { flex-direction: column; }
  .signup-row input { flex: none; }
}

/* ---------- Problem / villain ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-card { border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--gray200); background: var(--white); }
.compare-card.is-gold { border: 2px solid var(--gold500); box-shadow: var(--shadow-gold); }
.compare-card ul { list-style: none; padding: 0; margin: 20px 0 0; }
@media (max-width: 47.5em) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Coches et croix : une pastille (::before) et un signe tracé en CSS (::after), trait de 2 px comme les icônes SVG.
   --pad est la marge haute de la ligne : le signe se cale dessus. */
.compare-card li, .checklist li { position: relative; display: flex; gap: 12px; padding: var(--pad) 0; color: var(--gray700); }
.compare-card li { --pad: 10px; border-top: 1px solid var(--gray100); }
.checklist li { --pad: 8px; }
.compare-card li::before, .checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--gold50);
}
/* Coche : deux bords d'un rectangle tourné de 45°. */
.compare-card li::after, .checklist li::after {
  content: ""; position: absolute; left: 9px; top: calc(var(--pad) + 6px); width: 7px; height: 12px;
  border: solid var(--green700); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.compare-card.is-gold li::after { border-color: var(--gold700); }
/* Croix : deux barres croisées, tournées de 45°. */
.compare-card:not(.is-gold) li::before, .checklist li.is-excluded::before { background: var(--gray100); }
.compare-card:not(.is-gold) li::after, .checklist li.is-excluded::after {
  left: 7px; top: calc(var(--pad) + 9px); width: 10px; height: 10px; border: 0;
  background:
    linear-gradient(var(--gray500), var(--gray500)) center / 100% 2px no-repeat,
    linear-gradient(var(--gray500), var(--gray500)) center / 2px 100% no-repeat;
}

/* ---------- En quoi sommes-nous différents ---------- */
/* Quatre cartes courtes sur fond gris clair, chacune avec une illustration de l'application (jaune #FAC638, ardoise, gris).
   Elles décrivent ce que fait Paperless, sans comparer à d'autres offres. */
.diffs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.diffs li { padding: 28px 20px 32px; text-align: center; background: var(--gray50); border-radius: var(--radius-lg); }
.diffs img { width: 160px; margin: 0 auto 16px; }
.diffs h3 { margin-bottom: 6px; font-size: var(--text-lead); }
.diffs p { margin: 0; font-size: var(--text-ui); color: var(--gray500); }
@media (max-width: 56.25em) { .diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 30em) {
  .diffs li { padding: 20px 12px 24px; }
  .diffs img { width: 120px; margin-bottom: 12px; }
}
@media (max-width: 22.5em) { .diffs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Étapes et captures ---------- */
/* .steps-scroll et .table-wrap sont des <section> nommées (focalisables pour défiler au clavier) : on annule la marge interne des sections. */
.steps-scroll { padding: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
/* Bureau : la capture à gauche, le texte à droite. Tout ce qui n'est pas la capture va dans la 2e colonne. */
.step { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 20px; align-content: start; }
.step .phone { grid-row: 1 / span 4; border-radius: 20px; }
.step > :not(.phone) { grid-column: 2; }
.step-num { margin: 4px 0 8px; font-size: var(--text-caption); font-weight: 600; color: var(--gold700); }
.step h3 + p { margin: 0; color: var(--gray500); }
@media (max-width: 68.75em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Sur mobile, les étapes défilent horizontalement, capture au-dessus du texte.
   La zone touche les bords de l'écran : contour du focus à l'intérieur. */
@media (max-width: 56.25em) {
  .steps-scroll { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; }
  .steps-scroll:focus-visible { outline-offset: -3px; }
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72%, 280px); gap: 24px; }
  .step { display: block; scroll-snap-align: center; }
  .step .phone { max-width: 200px; margin-bottom: 20px; border-radius: 28px; }
}

/* ---------- Sommaire du dossier ---------- */
/* Un seul bloc, lu comme le sommaire du dossier : les pièces se suivent de haut en bas, sur deux colonnes. */
.dossier {
  list-style: none; margin: 0; padding: 8px 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 56px;
  background: var(--white); border: 1px solid var(--gray200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
/* Quand la place manque (écran très étroit, texte agrandi), le libellé passe sous la référence de la pièce. */
.dossier li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--gray100); }
.dossier li:nth-child(4n) { border-bottom: 0; }
.dossier b { flex: none; width: 6.75em; padding: 2px 8px; border-radius: 8px; text-align: center; font-size: var(--text-caption); color: var(--gold700); background: var(--gold50); }
.dossier span { flex: 1 1 10em; min-width: 0; font-size: var(--text-ui); color: var(--gray700); }
@media (max-width: 47.5em) {
  .dossier { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; padding: 4px 20px; }
  .dossier li:nth-child(4n) { border-bottom: 1px solid var(--gray100); }
  .dossier li:last-child { border-bottom: 0; }
}
.docs-note { margin: 20px 0 0; font-size: var(--text-ui); color: var(--gray500); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.price-card { background: var(--white); border: 1px solid var(--gray200); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.price-card.is-featured { border: 2px solid var(--gold500); box-shadow: var(--shadow-gold); position: relative; }
.price-tag { position: absolute; top: 32px; right: 32px; }
.price-card h3 { margin-bottom: 4px; }
.price-card .price { font-size: var(--text-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin: 16px 0 4px; }
.price-card .price small { font-size: var(--text-body); font-weight: 500; color: var(--gray500); letter-spacing: 0; }
.price-card .desc { color: var(--gray500); }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
/* Ligne non incluse : le trait est posé sur le <span> pour ne pas barrer aussi la croix. */
.checklist li.is-excluded { color: var(--gray500); }
.checklist li.is-excluded > span { text-decoration: line-through; }
.price-foot { text-align: center; margin: 24px 0 0; color: var(--gray500); font-size: var(--text-small); }
@media (max-width: 47.5em) { .pricing { grid-template-columns: 1fr; } }
/* Sur petit écran, la pastille passe au-dessus du titre pour ne pas le chevaucher. */
@media (max-width: 26em) { .price-tag { position: static; align-self: flex-start; margin-bottom: 12px; } }

/* ---------- Partners ---------- */
.partner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--gray50); border: 1px solid var(--gray200); border-radius: var(--radius-lg); padding: 56px;
}
.partner h2 { font-size: var(--text-section); }
.partner > div > p { color: var(--gray500); font-size: var(--text-lead); }
.partner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.partner-list { list-style: none; padding: 0; margin: 0; }
.partner-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--gray200); }
.partner-list li:first-child { border-top: 0; padding-top: 0; }
.partner-list li:last-child { padding-bottom: 0; }
.partner-list h3 { font-size: var(--text-lead); margin-bottom: 4px; }
.partner-list p { font-size: var(--text-ui); color: var(--gray500); margin: 0; }
.trust-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold50); display: grid; place-items: center; color: var(--gold700); }
@media (max-width: 53.75em) { .partner { grid-template-columns: 1fr; gap: 36px; padding: 32px 24px; } }

/* ---------- Team ---------- */
/* Reprend l'écran « L'équipe Paperless » de l'application (CONSEILS_TEAM) : carte avec photo d'eau, portraits cerclés d'or. */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.team-card, .team-people { background: var(--white); border: 1px solid var(--gray200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.team-card { overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.team-card-body { padding: 28px 32px 32px; }
.team-card p { color: var(--gray500); margin: 0; }
.team-people { padding: 32px; display: flex; flex-direction: column; }
.team-list { list-style: none; padding: 0; margin: 16px 0 0; flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 32px; }
.team-list li { text-align: center; }
.team-avatar { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: var(--radius-full); border: 2px solid var(--gold-illu); object-fit: cover; }
.team-name { margin: 0; font-size: var(--text-lead); font-weight: 600; }
.team-role { margin: 0; font-size: var(--text-small); color: var(--gold700); }
.team-contact { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--gray100); text-align: center; font-size: var(--text-ui); color: var(--gray500); }
.team-contact a { color: var(--gold700); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 47.5em) { .team { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40em) { .team-card-body, .team-people { padding: 24px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--gray200); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: var(--text-lead); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--gray500); border-bottom: 2px solid var(--gray500);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--duration-base) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--gray500); padding-right: 40px; max-width: 70ch; }
.faq details[open] p { animation: fade-in var(--duration-base) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .box { background: var(--gold50); border-radius: var(--radius-lg); padding: 40px 24px 56px; }
.cta-band h2 { font-size: var(--text-section); }
.cta-band .box > p { color: var(--gray700); font-size: var(--text-lead); max-width: 560px; margin: 0 auto 28px; }
.cta-illu { width: 160px; margin: 0 auto 12px; }
.cta-band .signup { max-width: 480px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gray200); padding: 56px 0 32px; background: var(--white); font-size: var(--text-ui); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: var(--text-small); text-transform: uppercase; letter-spacing: .06em; color: var(--gray500); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--gray700); }
@media (hover: hover) { .footer-grid a:hover { color: var(--gray900); text-decoration: underline; } }
.footer-grid p { color: var(--gray500); max-width: 320px; }
.footer-grid .footer-tagline { margin-top: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray100); color: var(--gray500); font-size: var(--text-small); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 47.5em) { .footer-grid { grid-template-columns: 1fr; } }
/* Écran étroit ou tactile : liens hauts de 44 px. */
@media (max-width: 56.25em), (pointer: coarse) {
  .footer-grid li { margin-bottom: 0; }
  .footer-grid ul a, .footer-grid p a { display: inline-block; padding: 10px 0; }
}

/* ---------- Pop-up « Être prévenu du lancement » ---------- */
html:has(.modal[open]) { overflow: hidden; scrollbar-gutter: stable; }
.modal {
  width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--gray900);
  box-shadow: var(--shadow-modal); overscroll-behavior: contain;
}
.modal::backdrop { background: var(--gray900-a55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in var(--duration-base) var(--ease-out); }
.modal[open]::backdrop { animation: fade-in var(--duration-base) var(--ease-out); }
/* .is-closing est posé par main.js : la pop-up s'estompe, plus vite qu'elle n'apparaît, puis se ferme. */
.modal.is-closing { animation: modal-out var(--duration-fast) var(--ease-out) forwards; }
.modal.is-closing::backdrop { animation: fade-out var(--duration-fast) var(--ease-out) forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal[open] { animation-name: fade-in; }
  .modal.is-closing { animation-name: fade-out; }
}

.modal-box { position: relative; padding: 40px 32px 28px; text-align: center; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: var(--radius-full);
  background: var(--gray100); color: var(--gray700); cursor: pointer; display: grid; place-items: center;
  transition-property: background-color, color;
  transition-duration: var(--duration-fast); transition-timing-function: var(--ease-out);
}
@media (hover: hover) { .modal-close:hover { background: var(--gray200); color: var(--gray900); } }
.modal-illu { width: auto; height: 56px; margin: 0 auto 16px; }
/* done.webp a beaucoup de vide autour de la coche : on la recadre pour l'agrandir sans agrandir la pop-up
   (100 + 12 px = même hauteur que l'ancien 96 + 16 px). */
.modal-illu-lg { width: 208px; height: 100px; margin-bottom: 12px; object-fit: cover; }
.modal h2 { letter-spacing: -.02em; }
.modal-view > p { color: var(--gray500); }
.modal-view > .btn { margin-top: 8px; }

.modal form { display: grid; gap: 8px; margin-top: 24px; text-align: left; }
.modal label { font-size: var(--text-small); font-weight: 600; color: var(--gray700); }
/* Champ e-mail : même aspect dans la pop-up et dans les formulaires de la page. */
.modal input, .signup-row input {
  width: 100%; height: 52px; padding: 0 16px; font: var(--text-body) var(--font); color: var(--gray900);
  background: var(--white); border: 1px solid var(--gray450); border-radius: var(--radius-md);
}
.modal input::placeholder, .signup-row input::placeholder { color: var(--gray500); }
/* Contour transparent plutôt qu'absent : il devient visible en contraste élevé, où box-shadow est supprimé. */
.modal input:focus, .signup-row input:focus { outline: 2px solid transparent; border-color: var(--gold700); box-shadow: 0 0 0 4px var(--gold500-a20); }
.modal .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; font-weight: 400; color: var(--gray500); cursor: pointer; }
.modal .check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--gold500); }
.modal .check input:focus { box-shadow: none; }
.modal .check input:focus-visible { outline: 3px solid var(--gold700); outline-offset: 2px; }
.modal input[aria-invalid="true"], .signup-row input[aria-invalid="true"] { border-color: var(--red500); }
.field-error { margin: 0; font-size: var(--text-small); color: var(--red700); }
.modal form .btn { width: 100%; margin-top: 8px; }
.modal .btn:disabled { opacity: .6; cursor: wait; }
.modal-note { margin: 16px 0 0; font-size: var(--text-caption); line-height: 1.5; color: var(--gray500); }
.modal-note a { color: var(--gray700); text-underline-offset: 2px; }
/* Vue « Plus qu'à nous l'envoyer », affichée tant que le formulaire n'a pas d'adresse d'enregistrement. */
.modal h2:focus { outline: none; }
.modal-actions { display: grid; gap: 8px; margin-top: 24px; }
.modal .copy-status { margin: 8px 0 0; }
.modal-draft {
  display: block; width: 100%; margin-top: 12px; padding: 12px 14px; resize: vertical; text-align: left;
  font: var(--text-small)/1.5 var(--font); color: var(--gray700); background: var(--gray50);
  border: 1px solid var(--gray450); border-radius: var(--radius-md);
}
@media (max-width: 30em) { .modal-box { padding: 36px 20px 24px; } }

/* ==========================================================================
   Pages légales
   ========================================================================== */
.legal-hero { padding: 56px 0 32px; background: var(--gray50); border-bottom: 1px solid var(--gray200); }
.legal-hero h1 { font-size: var(--text-section); letter-spacing: -.02em; }
.legal-hero p { color: var(--gray500); margin: 0; }
.breadcrumb { font-size: var(--text-small); color: var(--gray500); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray500); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}

.legal { padding: 48px 0 96px; }
.legal .container { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: var(--text-small); }
.toc h2 { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .06em; color: var(--gray500); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--gray200); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--gray500); }
@media (hover: hover) { .toc a:hover { color: var(--gray900); border-left-color: var(--gold500); } }
@media (max-width: 56.25em), (pointer: coarse) { .toc a { padding-top: 11px; padding-bottom: 11px; } }
@media (max-width: 56.25em) {
  .legal .container { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; background: var(--gray50); border-radius: var(--radius-md); padding: 20px; }
}

.prose { max-width: 740px; color: var(--gray700); }
/* Lignes de 70 caractères au plus ; tableaux et encadrés gardent toute la largeur. */
.prose > p, .prose > ul, .prose > ol { max-width: 70ch; }
.prose h2 { color: var(--gray900); margin-top: 48px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lead); color: var(--gray900); margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--gray900); }
.prose a { color: var(--gold700); text-underline-offset: 3px; }
.prose .intro { font-size: var(--text-lead); color: var(--gray700); }

.table-wrap { overflow-x: auto; margin: 20px 0; padding: 0; border: 1px solid var(--gray200); border-radius: var(--radius-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-ui); min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--gray200); }
.prose th { background: var(--gray50); color: var(--gray900); font-weight: 600; }
/* En-têtes de ligne (1re colonne) : même aspect qu'une cellule ordinaire. */
.prose tbody th { background: none; color: inherit; font-weight: inherit; }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--gold500-a15); border: 1px solid var(--gold500-a20); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 24px 0; color: var(--gray700);
}
.callout p:last-child { margin: 0; }
.callout h2 { font-size: var(--text-lead); margin-top: 0; padding-top: 0; }
.callout ul { margin: 0; }
.callout li:last-child { margin-bottom: 0; }
.prose .btn-primary { color: var(--gray900); }

/* Marqueur des informations restant à compléter avant mise en ligne.
   Rechercher "todo" dans le code pour les retrouver toutes. */
.todo {
  background: var(--red100); color: var(--red700); border-radius: 6px; padding: 0 6px; font-weight: 600; font-style: normal;
}

.card-form {
  background: var(--white); border: 1px solid var(--gray200); border-radius: var(--radius-lg); padding: 28px; margin: 24px 0;
}
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 18px 48px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold500); color: var(--gray900); font-weight: 700; display: grid; place-items: center; font-size: var(--text-ui);
}

/* ==========================================================================
   Contact professionnels
   ========================================================================== */
.contact { padding: 48px 0 96px; }
.contact .container { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
/* .btn impose display:inline-flex : on garantit que [hidden] masque bien les boutons « Copier ». */
.contact [hidden] { display: none; }
@media (max-width: 56.25em) { .contact .container { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white); border: 1px solid var(--gray200); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-card);
}
.contact-card h2 { letter-spacing: -.02em; }
.contact-card h2:focus { outline: none; }
.contact-view > p { color: var(--gray700); }
.contact-view a:not(.btn) { color: var(--gold700); text-underline-offset: 3px; }
.contact-view > .contact-hint { font-size: var(--text-ui); color: var(--gray500); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--text-small); font-weight: 600; color: var(--gray700); }
.field label span { font-weight: 400; color: var(--gray500); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; font: var(--text-body) var(--font); color: var(--gray900);
  background: var(--white); border: 1px solid var(--gray450); border-radius: var(--radius-md);
}
.field textarea { height: auto; min-height: 132px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--gold700); box-shadow: 0 0 0 4px var(--gold500-a20); }
.field [aria-invalid="true"] { border-color: var(--red500); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--gray500); border-bottom: 2px solid var(--gray500); transform: translateY(-70%) rotate(45deg);
}
.contact-submit { display: grid; gap: 14px; justify-items: start; margin-top: 4px; }
.contact-submit .btn:disabled { opacity: .6; cursor: wait; }
.contact-note { margin: 0; font-size: var(--text-caption); line-height: 1.5; color: var(--gray500); }
.contact-note a { color: var(--gray700); text-underline-offset: 2px; }
@media (max-width: 40em) {
  .contact-card { padding: 28px 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-submit .btn { width: 100%; }
}

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.copy-status { min-height: 1.5em; margin: 0 0 8px; font-size: var(--text-small); color: var(--green700); }
.contact-draft {
  display: block; width: 100%; margin: 8px 0 20px; padding: 14px 16px; resize: vertical;
  font: var(--text-small)/1.5 var(--font); color: var(--gray700); background: var(--gray50);
  border: 1px solid var(--gray450); border-radius: var(--radius-md);
}
.link-button {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 var(--text-ui) var(--font); color: var(--gold700); text-decoration: underline; text-underline-offset: 3px;
}

.contact-done { text-align: center; padding: 12px 0; }
/* Même recadrage que la coche de la pop-up (done.webp a beaucoup de vide autour). */
.contact-illu { width: 208px; height: 100px; margin: 0 auto 12px; object-fit: cover; }

.contact-aside { display: grid; gap: 20px; }
.contact-box { background: var(--gray50); border: 1px solid var(--gray200); border-radius: var(--radius-lg); padding: 28px; }
.contact-box h2 { font-size: var(--text-title); margin-bottom: 20px; }
.contact-box > p { color: var(--gray500); margin-bottom: 4px; }
.contact-box a { color: var(--gold700); text-underline-offset: 3px; }
.contact-box > .contact-box-link { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--gray200); font-weight: 600; }
.contact-box > .contact-email { font-size: var(--text-lead); font-weight: 600; margin-bottom: 16px; color: var(--gray900); overflow-wrap: anywhere; }
.contact-box .copy-status { margin: 8px 0 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound img { width: 200px; margin: 0 auto 24px; }
.notfound-text { color: var(--gray500); }
