/* PleinBe : feuille de style unique du site.
   Toutes les couleurs sont ici, dans :root, et redéfinies pour le mode sombre.
   Aucun style en ligne dans le HTML : la CSP l'interdit. */

/* ---------- Polices auto-hébergées (OFL, voir assets/fonts/OFL-*.txt) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

/* ---------- Couleurs ---------- */
:root {
  color-scheme: light;

  /* Page */
  --bg: #F5F7F6;
  --text: #12263A;
  --text-2: #4A5B69;
  --accent: #1B7F52;
  --border: #C9D3D0;
  --focus: #1B7F52;

  /* Zones sombres : bandeau haut et FAQ */
  --band-bg: #12263A;
  --band-text: #F5F7F6;
  --band-text-2: rgb(245 247 246 / 0.82);
  --band-line: rgb(245 247 246 / 0.28);
  --band-edge: transparent;
  --band-accent: #3DBE84;

  /* Mêmes valeurs jour et nuit : ces éléments ne changent pas avec le thème */
  --pill-active-bg: #F5F7F6;
  --pill-active-text: #12263A;
  --map-bg: #12263A;
  --map-edge: rgb(245 247 246 / 0.22);
  --map-street: rgb(245 247 246 / 0.09);
  --map-street-main: rgb(245 247 246 / 0.17);
  --map-pin-text: #F5F7F6;
  --map-pin-line: rgb(245 247 246 / 0.7);
  --map-best-bg: #3DBE84;
  --map-best-text: #12263A;
  --map-card-bg: #F5F7F6;
  --map-card-text: #12263A;
  --map-card-price: #1B7F52;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0F1D2B;
    --text: #E6ECEA;
    --text-2: rgb(230 236 234 / 0.76);
    --accent: #3DBE84;
    --border: rgb(230 236 234 / 0.24);
    --focus: #3DBE84;

    --band-bg: #0F1D2B;
    --band-text: #E6ECEA;
    --band-text-2: rgb(230 236 234 / 0.76);
    --band-line: rgb(230 236 234 / 0.24);
    --band-edge: rgb(230 236 234 / 0.24);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }

img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.mono { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-weight: 500; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { --focus: var(--band-accent); transform: none; }

/* Zones sombres : les liens et le focus utilisent l'accent clair (AA sur #12263A). */
.on-dark {
  --focus: var(--band-accent);
  background: var(--band-bg);
  color: var(--band-text);
  border-bottom: 1px solid var(--band-edge);
}
.on-dark a:not(.lang__link) { color: var(--band-text); }

/* ---------- En-tête ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.brand:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.lang { display: flex; gap: 0.25rem; }
.lang__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 999px;
  color: var(--band-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.lang__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.lang__link[aria-current] { background: var(--pill-active-bg); color: var(--pill-active-text); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
}

.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }

.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--band-line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.beta-pill__dot { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 50%; background: var(--band-accent); }

h1 { font-size: clamp(2.25rem, 1.7rem + 3vw, 3.75rem); line-height: 1.08; }

.hero__lead { max-width: 34rem; font-size: 1.1875rem; }
.hero__soon { font-weight: 500; }

/* Badges officiels, à activer au lancement : voir le commentaire dans chaque page d'accueil. */
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__badges img { height: 3rem; width: auto; }

/* Carte stylisée */
.map {
  position: relative;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 5 / 6;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--map-edge);
  border-radius: 24px;
  background: var(--map-bg);
}
.map__streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__street { fill: none; stroke: var(--map-street); stroke-width: 6; }
.map__street--main { stroke: var(--map-street-main); stroke-width: 12; }

.map__pin {
  position: absolute;
  padding: 0.25rem 0.625rem;
  border: 1.5px solid var(--map-pin-line);
  border-radius: 999px;
  background: var(--map-bg);
  color: var(--map-pin-text);
  font-size: 0.875rem;
  line-height: 1.3;
  transform: translate(-50%, -50%);
}
.map__pin--1 { left: 24%; top: 13%; }
.map__pin--2 { left: 75%; top: 20%; }
.map__pin--3 { left: 22%; top: 40%; }
.map__pin--4 { left: 80%; top: 62%; }
.map__pin--best {
  left: 54%;
  top: 46%;
  padding: 0.375rem 0.875rem;
  border-color: var(--map-best-bg);
  background: var(--map-best-bg);
  color: var(--map-best-text);
  font-size: 1.0625rem;
  font-weight: 600;
}

.map__card {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  left: 0.875rem;
  display: grid;
  gap: 0.125rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--map-card-bg);
  color: var(--map-card-text);
}
.map__card-name { font-size: 0.9375rem; font-weight: 500; }
.map__card-price { color: var(--map-card-price); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }

/* ---------- Atouts ---------- */
.perks { border-bottom: 1px solid var(--border); }
.perks__grid { display: grid; }
.perks__item { padding-block: 1.5rem; }
.perks__item + .perks__item { border-top: 1px solid var(--border); }
.perks__item h2 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.perks__item p { margin-top: 0.375rem; color: var(--text-2); }

/* ---------- Comment ça marche ---------- */
.steps__list { display: grid; gap: 1rem; margin-top: 2rem; }
.step { padding: 1.5rem; border: 1px solid var(--border); border-radius: 24px; }
.step__num { display: block; margin-bottom: 0.75rem; color: var(--accent); font-size: 1.25rem; font-weight: 600; }
.step p { margin-top: 0.375rem; color: var(--text-2); }

/* ---------- Bon à savoir ---------- */
.notice { padding-block-end: clamp(3rem, 7vw, 5.5rem); }
.notice__box { padding: 1.5rem; border: 1px solid var(--border); border-radius: 24px; }
.notice__box h2 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.notice__box p { max-width: 46rem; margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--band-edge); }
.faq__grid { display: grid; gap: 1.5rem; }
.faq__item { border-bottom: 1px solid var(--band-line); }
.faq__item:first-child { border-top: 1px solid var(--band-line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding-block: 0.75rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; color: var(--band-accent); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding-block-end: 1.25rem; color: var(--band-text-2); }
.faq__item p a { font-weight: 500; }

/* ---------- Pied de page ---------- */
.site-footer { padding-block: 1.5rem; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer__links a { display: inline-block; padding-block: 0.5rem; }

/* ---------- Grands écrans ---------- */
@media (min-width: 48rem) {
  .perks__grid { grid-template-columns: repeat(3, 1fr); }
  .perks__item { padding: 2rem; }
  .perks__item:first-child { padding-left: 0; }
  .perks__item:last-child { padding-right: 0; }
  .perks__item + .perks__item { border-top: 0; border-left: 1px solid var(--border); }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .faq__grid { grid-template-columns: 1fr 2fr; gap: 3rem; }
}

@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3.5rem; }
  .map { margin-inline: auto 0; }
}

/* ---------- Pages de texte : politique, mentions légales, contact ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.prose h1 + p { margin-top: 0.75rem; }
.prose h2 {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.375rem;
  line-height: 1.25;
}
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose ul, .prose .table { margin-top: 0.75rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: 0.5rem; }
.prose .updated { color: var(--text-2); }
.prose h2 + p, .prose h3 + p { margin-top: 0.5rem; }

/* Le tableau défile seul sur petit écran : la page, elle, ne défile jamais en largeur. */
.table { overflow-x: auto; }
.table:focus-visible { outline-offset: -3px; }
.prose table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.625rem 0.5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
