/* monnouveauquartier.fr : la plaque et la ligne.
   Une seule audace : le champ d'adresse en plaque de rue émaillée. Le reste est sobre : blanc, gris de plan, encre,
   et les couleurs de catégorie du rapport (école, santé, commerces, transports), qui codent l'information comme dans le PDF. */
@font-face { font-family: "Atkinson Next"; src: url("fonts/AtkinsonNext-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/AtkinsonNext-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --encre: #18222d;
  --doux: #4d5b69;
  --fond: #ffffff;
  --plan: #eef1f4;
  --trait: #cfd6dd;
  --plaque: #1f3f8f;
  --plaque-fonce: #162f6c;
  --ecole: #1f5fa8;
  --sante: #2d8a4e;
  --commerce: #b35c00;
  --transport: #7a3e9d;
  --service: #34495e;
  --erreur: #b3261e;
  --mesure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.55 "Atkinson Next", system-ui, sans-serif;
  font-feature-settings: "tnum" 0; }
a { color: var(--plaque); text-underline-offset: .15em; }
a:hover { color: var(--plaque-fonce); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 750; max-width: 24ch; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--mesure); }
.cadre { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* en-tête */
.haut { border-bottom: 1px solid var(--trait); }
.haut .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.marque svg { flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--doux); text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--encre); text-decoration: underline; }

/* héros */
.heros { padding: 56px 0 64px; }
.heros .cadre { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.chapeau { font-size: 1.2rem; color: var(--doux); max-width: 46ch; margin-bottom: 28px; }

/* la plaque : liseré blanc dans l'émail, angles arrondis comme une plaque de rue */
.plaque { position: relative; background: var(--plaque); color: #fff; border-radius: 12px; padding: 7px; max-width: 560px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.plaque-in { border: 2.5px solid #fff; border-radius: 7px; padding: 12px 18px 14px; }
.plaque label { display: block; font-size: .9rem; font-weight: 600; opacity: .9; }
.plaque input { width: 100%; border: 0; background: transparent; color: #fff; font: 700 clamp(1.35rem, 2.6vw, 1.75rem)/1.25 "Atkinson Next", sans-serif;
  padding: 4px 0 0; outline: none; }
.plaque input::placeholder { color: rgba(255, 255, 255, .62); font-weight: 600; }
.plaque:focus-within { box-shadow: 0 0 0 3px #f2b705; }
.choix { list-style: none; margin: 6px 0 0; padding: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff;
  color: var(--encre); border: 1px solid var(--trait); border-radius: 8px; overflow: hidden; }
.choix li { padding: 11px 16px; cursor: pointer; border-top: 1px solid var(--plan); }
.choix li:first-child { border-top: 0; }
.choix li[aria-selected="true"], .choix li:hover { background: var(--plan); }
.choix small { display: block; color: var(--doux); }

.commande { max-width: 560px; margin-top: 18px; }
.commande[hidden] { display: none; }
.retenue { font-size: .98rem; color: var(--doux); margin: 0 0 12px; }
.retenue b { color: var(--encre); }
.ligne-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ligne-form input { flex: 1 1 240px; font: inherit; padding: 12px 14px; border: 1.5px solid var(--trait); border-radius: 6px; }
.ligne-form input:focus { border-color: var(--plaque); outline: none; box-shadow: 0 0 0 3px rgba(31, 63, 143, .18); }
.bouton { display: inline-block; font: 700 1.02rem/1 "Atkinson Next", sans-serif; background: var(--plaque); color: #fff; border: 0; border-radius: 6px;
  padding: 14px 20px; cursor: pointer; text-decoration: none; }
.bouton:hover { background: var(--plaque-fonce); color: #fff; }
.bouton[disabled] { opacity: .6; cursor: progress; }
.bouton.second { background: #fff; color: var(--plaque); border: 1.5px solid var(--plaque); }
.bouton.second:hover { background: var(--plan); color: var(--plaque-fonce); }
.mention { font-size: .92rem; color: var(--doux); margin-top: 12px; }
.alerte { color: var(--erreur); font-size: .95rem; margin: 10px 0 0; }

/* la ligne : un extrait réel du rapport, dessiné comme le plan d'une ligne de bus */
.ligne { margin: 0; }
.ligne figcaption { font-size: .95rem; color: var(--doux); margin-bottom: 14px; }
.ligne ol { list-style: none; margin: 0; padding: 0; position: relative; }
/* trait de la ligne : centré sur la colonne des arrêts (66 px de minutes + 18 px) */
.ligne ol::before { content: ""; position: absolute; left: 81px; top: 12px; bottom: 30px; width: 6px; background: var(--encre); border-radius: 3px; }
.arret { position: relative; display: grid; grid-template-columns: 66px 36px 1fr; align-items: start; padding: 0 0 18px; }
.arret .min { text-align: right; font-weight: 800; font-size: 1.05rem; padding: 1px 4px 0 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arret .min small { display: block; font-weight: 500; font-size: .78rem; color: var(--doux); }
.arret .pt { justify-self: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--c, var(--encre)); margin-top: 1px;
  position: relative; z-index: 1; }
.arret .nom { font-weight: 700; }
.arret .nom span { display: block; font-weight: 400; color: var(--doux); font-size: .95rem; }
.arret.depart .pt { background: var(--encre); border-color: var(--encre); width: 26px; height: 26px; margin-top: -1px; }
.arret.depart .nom { font-size: 1.05rem; }

/* sections */
.bloc { padding: 72px 0; }
.bloc.gris { background: var(--plan); }
.intro { color: var(--doux); font-size: 1.1rem; max-width: 60ch; margin-bottom: 36px; }

.chapitres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 48px; margin: 0; padding: 0; list-style: none; }
.chapitres li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.chapitres .cle { width: 18px; height: 18px; background: var(--c); margin-top: 3px; }
.chapitres b { display: block; font-size: 1.08rem; }
.chapitres span { color: var(--doux); }

.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pages figure { margin: 0; }
.pages img { border: 1px solid var(--trait); background: #fff; }
.pages figcaption { font-size: .95rem; color: var(--doux); margin-top: 10px; }
.apres-pages { margin-top: 32px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.sources { columns: 2; column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.sources li { break-inside: avoid; padding: 0 0 14px; }
.sources b { display: block; }
.sources span { color: var(--doux); font-size: .97rem; }

.prix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.montant { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; line-height: 1; margin: 0 0 8px; letter-spacing: -.02em; }
.montant small { font-size: 1.1rem; font-weight: 600; color: var(--doux); letter-spacing: 0; }
.coche { list-style: none; margin: 0; padding: 0; }
.coche li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--trait); position: relative; }
/* avoid-ai-design-ignore: K4 — coche dessinée par deux bordures pivotées, pas une bande latérale */
.coche li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 3px solid var(--sante);
  border-bottom: 3px solid var(--sante); transform: rotate(-45deg); }

.faq details { border-bottom: 1px solid var(--trait); padding: 4px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--encre); }

/* pied */
.pied { background: var(--encre); color: #dfe5ea; padding: 40px 0; font-size: .95rem; }
.pied .cadre { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pied a { color: #fff; }
.pied nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* pages simples : merci, légales */
.etroit { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.prose h1 { font-size: 2.1rem; max-width: none; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; max-width: none; }
.prose li { margin-bottom: .4em; }
.suivi { list-style: none; margin: 28px 0; padding: 0; }
.suivi li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 0 0 18px; position: relative; color: var(--doux); }
.suivi li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--trait); background: #fff; margin-top: 3px; }
.suivi li.on { color: var(--encre); }
.suivi li.on::before { border-color: var(--plaque); }
.suivi li.done { color: var(--encre); }
.suivi li.done::before { border-color: var(--sante); background: var(--sante); }
.suivi b { display: block; }
.fin { padding: 20px 0 0; }

@media (max-width: 880px) {
  .heros .cadre, .prix { grid-template-columns: 1fr; gap: 40px; }
  .chapitres, .pages { grid-template-columns: 1fr; }
  .sources { columns: 1; }
  .nav { display: none; }
  .heros { padding-top: 36px; }
  .bloc { padding: 56px 0; }
}
@media (max-width: 420px) {
  .cadre { padding: 0 16px; }
  .plaque-in { padding: 10px 14px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ligne ol::before { transform-origin: top; animation: trace 900ms ease-out both; }
  @keyframes trace { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
