/* Styles of index.html, moved out of the page as they were (phase 1 of the architecture study, M172,
   docs/ETUDE-ARCHITECTURE.md), loaded where the inline block was. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
nav.onglets-ancres { display: flex; gap: 30px; margin-left: 24px; }
nav.onglets-ancres a {
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 4px 0; border-bottom: 3px solid transparent;
}
nav.onglets-ancres a:hover { color: var(--accent); }
nav.onglets-ancres a.actif { border-bottom-color: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section, .bande[id] { scroll-margin-top: 84px; }
/* Phone widths: the menu gets a line of its own under the brand and the
   account links (commun.css wraps the header). Placed after the section
   rule above, which it overrides. */
@media (max-width: 640px) {
  header.topbar { padding-bottom: 0; }
  nav.onglets-ancres { order: 3; width: 100%; gap: 28px; margin-left: 0; }
  section, .bande[id] { scroll-margin-top: 112px; }
}
/* Below ~355 px the account links wrap to a third line of their own. */
@media (max-width: 359px) {
  section, .bande[id] { scroll-margin-top: 138px; }
}

/* --- Page rhythm: full-width bands, beige and white in turn --- */
.bande { padding: 88px 0; }
.bande-blanche { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
h2.titre {
  font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 14px; max-width: 900px; text-wrap: balance;
}
.intro {
  color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 760px; margin: 0 0 40px;
  text-wrap: pretty;
}
.intro-large { max-width: none; text-wrap: balance; }
h2.titre.titre-large { max-width: none; }

/* --- Hero --- */
.hero-bande { position: relative; overflow: hidden; padding: 104px 0 96px; text-align: center; }
/* A field of dots fading out from the centre, the way sales cluster on the
   map further down. Decorative only, behind the text. */
.hero-bande::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(138, 90, 43, .22) 1.3px, transparent 1.8px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.hero { position: relative; }
.hero h1 {
  font-size: 50px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em;
  margin: 0 auto 20px; max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
/* « rendez-vous » on one line: never « rendez- » at a line end on a phone (audit d'affichage 1, A1). */
.hero h1 .insecable { white-space: nowrap; }
.hero-sous { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 760px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
/* Presentation film, under the buttons: hidden until the script names a
   film (FILM). The box keeps 16:9 before the film's own size is known. */
.film { max-width: 960px; margin: 56px auto 0; }
.film video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1c1a17;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(28, 26, 23, .14);
}
.avis {
  background: #f6efe6; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; margin: 20px 0; font-size: 14px; color: var(--ink);
}
/* The beta sentence (commun.css): above the first band, as the notice. */
.bandeau-beta { margin: 20px 0 0; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); background: #f6efe6;
  border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px;
  margin-bottom: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 28px; margin: 22px 0;
}
.card h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0 0 14px; font-weight: 600;
}
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.note { font-size: 13px; color: var(--muted); }
/* ".card p" (element + class) would otherwise win over a lone class and
   reset the top margin to 0, gluing this line to the map above it. */
.card p.demo-cta { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 24px; }
ul.points { margin: 0; padding: 0; list-style: none; }
ul.points li {
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
ul.points li:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- Key figures --- */
.chiffres-bande { padding: 56px 0; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); }
.chiffre { text-align: center; padding: 6px 24px; }
.chiffre + .chiffre { border-left: 1px solid var(--line); }
.chiffre .n {
  font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.chiffre .l { font-size: 14px; color: var(--muted); margin-top: 8px; }
/* Outside the counted span: the count-up rewrites the number only. */
.chiffre .asterisque { font-size: .55em; vertical-align: super; margin-left: 2px; }
.note-chiffres { font-size: 12px; color: var(--muted); text-align: center; margin: 22px auto 0; }

.bouton {
  display: inline-block; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 8px; padding: 13px 28px;
  font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.bouton:hover { filter: brightness(1.08); }
.bouton-contour { background: transparent; color: var(--accent); }
footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 20px; color: var(--muted); font-size: 13px;
}
.bouton-contour:hover { background: #f6efe6; filter: none; }

/* --- Demo --- */
.demo-carte { margin: 0; padding: 30px; box-shadow: 0 18px 50px rgba(28, 26, 23, .07); }
.demo-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.demo-row input {
  flex: 1; min-width: 200px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; background: #fff; color: var(--ink);
}
.demo-row input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.demo-row button {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.demo-row button:hover { filter: brightness(1.08); }
.demo-row button:disabled { opacity: .45; cursor: default; }
#demo-status { margin-top: 10px; min-height: 1.2em; }
#demo-status.err { color: var(--err); }
#demo-map { height: 400px; border-radius: 8px; border: 1px solid var(--line); margin-top: 14px; }

/* --- The five questions --- */
/* Three cards, then two sharing the full width: no empty slot on the
   second row. Two per row on tablets, the last one full width; one per row
   on phones (see the media queries below). */
.questions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.question { grid-column: span 2; }
.question:nth-child(n+4) { grid-column: span 3; }
.question {
  position: relative; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 30px 28px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.question:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(28, 26, 23, .08); }
.question-num {
  position: absolute; top: 12px; right: 18px; font-size: 56px; font-weight: 800;
  letter-spacing: -0.04em; color: var(--accent); opacity: .12; line-height: 1;
}
.question-icone {
  width: 46px; height: 46px; border-radius: 12px; background: #f6efe6;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  margin-bottom: 18px;
}
.question-icone svg { width: 24px; height: 24px; }
.question h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.question p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.question .question-lien { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
.question .question-mention { margin-top: 12px; font-size: 12px; font-style: italic; }

/* --- Report --- */
.rapport-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rapport-grille ul.points li { padding-left: 26px; position: relative; }
.rapport-grille ul.points li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
/* The example PDF (exemple-avis-de-valeur.pdf, made by outils/pdf-demo.mjs), in a new tab. */
.rapport-exemple { margin: 28px 0 0; }
/* Two of its pages, made with it by outils/pdf-demo.mjs (exemple-avis-de-valeur-*.png): the cover,
   and « Prix & stratégie » laid over it, lower and to the right. Both on one grid cell, so the box
   keeps the height of what it holds. */
.rapport-vignettes { display: grid; grid-template-columns: repeat(12, 1fr); max-width: 540px; margin: 0 auto; }
.rapport-vignettes img {
  grid-row: 1; width: 100%; height: auto; display: block; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 18px 46px rgba(28, 26, 23, .14);
}
.vignette-couverture { grid-column: 1 / span 7; transform: rotate(-2deg); }
.vignette-prix { grid-column: 6 / span 7; margin-top: 60px; transform: rotate(1.5deg); }

/* --- AI block: a warmer beige than the report above it --- */
.bande-ia { background: #f3ece2; border-top: 1px solid var(--line); }
.ia-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ia-point { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.ia-point h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.ia-point p { margin: 0; color: var(--muted); line-height: 1.6; }

/* --- How it works --- */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: etape; }
.etape { position: relative; }
.etape-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
  margin-bottom: 16px;
}
.etape h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.etape p { margin: 0; color: var(--muted); line-height: 1.6; }

/* --- Closing band --- */
.final { background: var(--accent); color: #fff; text-align: center; padding: 76px 0; }
.final h2 { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.final p { font-size: 17px; opacity: .9; margin: 0 0 30px; }
.final .bouton { background: #fff; color: var(--accent); border-color: #fff; }

/* --- Reveal on scroll: only once the script has set html.anim, so the
   page never stays blank without it, and never for visitors whose system
   asks for reduced motion (the script checks before setting it). --- */
html.anim .revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.anim .revele.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .questions { grid-template-columns: 1fr 1fr; }
  .question, .question:nth-child(n+4) { grid-column: auto; }
  .question:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .rapport-grille { grid-template-columns: 1fr; gap: 36px; }
  .rapport-vignettes { max-width: 460px; }
  .vignette-prix { margin-top: 36px; }
  .etapes, .ia-points { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .bande { padding: 60px 0; }
  .hero-bande { padding: 64px 0 60px; }
  .hero h1 { font-size: 34px; }
  .hero-sous { font-size: 17px; }
  .film { margin-top: 36px; }
  h2.titre, .final h2 { font-size: 26px; }
  .intro { font-size: 16px; margin-bottom: 28px; }
  .questions { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr; }
  .chiffre { padding: 18px 0; }
  .chiffre + .chiffre { border-left: 0; border-top: 1px solid var(--line); }
  .chiffre .n { font-size: 42px; }
  .demo-carte { padding: 22px 18px; }
  #demo-map { height: 320px; }
}
.onglets { display: flex; border-bottom: 1px solid var(--line); margin: 24px 0 0; }
.onglet {
  background: transparent; color: var(--muted); border: 0;
  border-bottom: 2px solid transparent; border-radius: 0;
  padding: 10px 4px; margin-right: 26px; font-size: 15px; font-weight: 500; cursor: pointer;
}
.onglet:hover { color: var(--ink); }
.onglet.actif { color: var(--ink); border-bottom-color: var(--accent); }
.tarifs-grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 24px;
}
.tarif-carte { text-align: center; padding: 36px 28px; }
.tarif-carte ul.points { text-align: left; margin-top: 22px; }
.tarif-carte .bouton { display: block; margin-top: 22px; }
.tarif-titre { font-size: 20px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.tarif-prix { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 16px; }
.tarif-gratuit { font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.tarif-barre { text-decoration: line-through; color: var(--muted); font-size: 20px; font-weight: 600; }
.tarif-fondateur { margin: 16px 0 6px; font-size: 14px; line-height: 1.5; }
/* Beta: the real prices are shown, but the whole card is greyed and its
   purchase buttons inert; the banner sits above at full opacity (opacity on
   the card itself would fade it too). "Contactez-nous" stays usable: it is
   a contact link, not a purchase. */
.tarif-grise { position: relative; }
.tarif-grise > .tarif-carte { opacity: .45; height: 100%; }
.tarif-grise > .tarif-carte :is(a, button) { pointer-events: none; }
.tarif-grise > .tarif-carte .lien-support { pointer-events: auto; }
.tarif-bandeau {
  position: absolute; left: 14px; right: 14px; top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #fff; text-align: center; text-decoration: none;
  font-weight: 600; font-size: 15px; line-height: 1.4;
  padding: 14px 18px; border-radius: 10px; box-shadow: 0 6px 24px rgba(28, 26, 23, .18);
}
a.tarif-bandeau:hover { filter: brightness(1.08); }
.tarif-remise {
  background: var(--accent); color: #fff; font-size: 12px; cursor: default;
  font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.tarif-periode-ligne {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: 4px;
}
.tarif-periode { font-size: 13px; color: var(--muted); margin: 0; }
.tarif-essai-titre { font-size: 16px; font-weight: 700; color: var(--accent); margin: 20px 0 4px; }
.tarif-essai-cb { font-size: 13px; font-weight: 500; }
