/* Direction « Plan bleu » (16/11/2026) : deux couleurs calmes, papier blanc cassé et bleu de plan, une vive, le rouge,
   réservée au bouton d'action et au focus. Couleurs uniquement dans :root. */
:root {
  --papier: #F7F3EA;
  --encre: #14213A;
  --calque: #1A5FB4;
  --plan: #1F6FD0;
  --sur-plan: #FFFFFF;
  --vif: #D42A15;
  --sur-vif: #FFFFFF;
  --trame: #E5E8EE;
  --filet: #D9D3C4;
  --titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --texte: "Inter", "Inter Repli", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gouttiere: 16px;
  --cible: 44px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--papier);
  background-image:
    repeating-linear-gradient(0deg, var(--trame) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--trame) 0 1px, transparent 1px 24px);
  color: var(--encre);
  font: 400 16px/1.6 var(--texte);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

main, header, footer, .assistant {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere);
}

h1, h2 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.05;
  color: var(--encre);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-top: 1.2em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 1.8em; }

p { margin: 0 0 1em; }

a {
  color: var(--calque);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

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

.saut {
  position: absolute;
  left: var(--gouttiere);
  top: -100px;
  background: var(--encre);
  color: var(--papier);
  padding: 10px 14px;
  min-height: var(--cible);
  z-index: 10;
}
.saut:focus { top: 8px; }

.haut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--filet);
}

.marque {
  font-family: var(--titre);
  font-size: 1.35rem;
  color: var(--encre);
  text-decoration: none;
  min-height: var(--cible);
  display: inline-flex;
  align-items: center;
}

.haut nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.haut nav a, .langue {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  color: var(--encre);
}

.langue { font-family: var(--mono); font-size: .9rem; }
/* Bascule de langue d'un client connecté : formulaire POST /langue, allure du lien. */
form.langue { margin: 0; }
form.langue button {
  min-height: var(--cible); padding: 0; border: 0; background: none; color: var(--encre);
  font: inherit; text-decoration: underline; cursor: pointer;
}
/* Bouton « Me déconnecter » du menu : même allure qu'un lien du menu. */
/* Téléphone : marque et langue sur une ligne, menu sur la suivante. L'en-tête prenait trois lignes et poussait le
   bouton d'action sous le premier écran (cartes de regard du 18/11/2026, docs/seo/regard-2026-11-18). */
@media (max-width: 639px) {
  .haut { padding-top: 4px; gap: 0 16px; }
  .haut .langue { order: 1; }
  /* Six liens depuis l'onglet Architectes : corps et écart réduits, et « Questions » retiré du menu car la bulle
     fixe « Une question ? » ouvre le même assistant. Le menu tient sur une ligne dès 360 px. */
  .haut nav { order: 2; flex-basis: 100%; gap: 0 10px; font-size: .875rem; }
  .haut nav .nav-question { display: none; }
}
.haut nav .deconnexion { display: inline-flex; margin: 0; }
.haut nav .deconnexion button {
  min-height: var(--cible); padding: 0; border: 0; background: none; color: var(--encre);
  font: inherit; text-decoration: underline; cursor: pointer;
}

.accroche, section { margin-top: 1.5rem; }

.intro { font-size: 1.05rem; max-width: 64ch; }

.etapes {
  padding-left: 1.4em;
  margin: 0 0 1.5em;
  max-width: 64ch;
}
.etapes li { margin-bottom: .5em; }

.prix {
  width: 100%;
  border-collapse: collapse;
  background: var(--papier);
  margin-bottom: .6em;
}
.prix th, .prix td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--filet);
}
.prix thead th { font-weight: 600; font-size: .9rem; }
.prix td {
  font-family: var(--mono);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.prix th[scope="row"] { font-weight: 400; }
.prix td[colspan] { white-space: normal; font-family: var(--texte); }

.note { font-size: .9rem; color: var(--encre); }

.travaux {
  padding-left: 1.2em;
  columns: 1;
  margin: 0 0 1em;
}
.travaux li { margin-bottom: .45em; }
.travaux a { display: inline-block; padding: 4px 2px; min-height: 24px; }

.formulaire {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 1em;
}
.formulaire label { font-weight: 600; font-size: .95rem; }
.formulaire input, .formulaire textarea, .formulaire select {
  width: 100%;
  min-height: var(--cible);
  padding: 10px 12px;
  font: inherit;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--encre);
  border-radius: 0;
}
.formulaire textarea { min-height: 9em; resize: vertical; }
.formulaire input[type="file"] { padding: 8px; }
.formulaire input[type="checkbox"] { width: 24px; min-height: 24px; height: 24px; padding: 0; margin: 0; flex: none; }
.case {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--cible);
  font-weight: 400;
}
#chantier input[type="checkbox"] { width: 24px; height: 24px; margin: 0 10px 0 0; vertical-align: middle; }
#chantier > label { display: inline-block; min-height: var(--cible); }

button {
  justify-self: start;
  min-height: var(--cible);
  padding: 10px 20px;
  font: 600 1rem/1 var(--texte);
  color: var(--sur-vif);
  background: var(--vif);
  border: 1px solid var(--vif);
  border-radius: 6px;
  cursor: pointer;
}
button:hover { background: var(--encre); border-color: var(--encre); }
button:disabled { opacity: .6; cursor: progress; }
button[hidden] { display: none; }

.msg {
  min-height: 1.6em;
  margin: 1em 0;
  font-weight: 600;
}
.msg.erreur {
  border-left: 4px solid var(--vif);
  padding-left: 10px;
}
.msg.ok {
  border-left: 4px solid var(--calque);
  padding-left: 10px;
}
/* Connexion : la réponse s'affiche sous les boutons, titre en gras puis quoi faire. Vide, elle ne prend pas de place. */
.formulaire .msg:empty { min-height: 0; margin: 0; }
.formulaire .msg { margin: 4px 0; }
.msg strong, .msg > span { display: block; }
.msg > span { margin-top: 4px; font-weight: 400; }
.msg .msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg:focus { outline: none; }
.msg:focus-visible { outline: 3px solid var(--vif); outline-offset: 2px; }
/* Une nouvelle réponse glisse en place, même si son texte est identique au précédent : le clic a bien été reçu. */
.msg.erreur, .msg.ok { animation: msg-arrive .25s ease-out; }
@keyframes msg-arrive { from { opacity: 0; transform: translateY(-4px); } }
/* Champ fautif : bord épais en plus du message écrit, jamais la couleur seule. */
.formulaire input[aria-invalid="true"] { border: 2px solid var(--vif); }
/* Bouton en attente de réponse : libellé « … en cours » et roue ; il garde sa couleur pleine. */
button.occupe:disabled { opacity: 1; cursor: progress; }
button.occupe::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourne .8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .msg.erreur, .msg.ok, button.occupe::before { animation: none; }
}

.liste { padding-left: 1.2em; }
.liste li { margin-bottom: .6em; min-height: var(--cible); display: flex; flex-wrap: wrap; align-items: center; }
.liste li .plan-numerote { display: block; flex-basis: 100%; max-width: 100%; height: auto; margin-top: .5em; border: 1px solid currentColor; }

.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 0;
  margin: 0 0 1.2em;
  border-top: 1px solid var(--filet);
}
.fiche dt {
  font-size: .85rem;
  color: var(--encre);
  padding-top: 12px;
}
.fiche dd {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--filet);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.fiche dd ul { font-family: var(--texte); padding-left: 1.2em; margin: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.2em 0;
}

/* Assistant : sous le contenu de chaque page, jamais par-dessus. La réponse porte le filet bleu de calque. */
.assistant {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--filet);
}
.assistant h2 { margin-top: 0; }
.assistant-intro { max-width: 64ch; }
.assistant-fil {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  max-width: 64ch;
}
.assistant-fil li { margin: 0 0 1rem; }
.assistant-auteur {
  margin: 0 0 .2em;
  font: 600 .85rem/1.4 var(--mono);
}
.assistant-texte { margin: 0; white-space: pre-wrap; }
.assistant-reponse {
  border-left: 2px solid var(--calque);
  padding-left: 12px;
}
.assistant .note { max-width: 64ch; }
.assistant-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* Bulle : posée par assistant.js. Sans script, l'assistant reste au pied de la page. */
.avec-bulle { padding-bottom: calc(var(--cible) + 2 * var(--gouttiere)); }
.assistant-bulle {
  position: fixed;
  right: var(--gouttiere);
  bottom: var(--gouttiere);
  z-index: 20;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--encre) 30%, transparent);
}
.assistant.en-bulle {
  position: fixed;
  right: var(--gouttiere);
  bottom: calc(var(--gouttiere) + var(--cible) + 8px);
  z-index: 20;
  width: min(400px, calc(100vw - 2 * var(--gouttiere)));
  max-height: calc(100dvh - var(--cible) - 3 * var(--gouttiere) - 8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 14px 16px;
  background: var(--papier);
  border: 1px solid var(--filet);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--encre) 25%, transparent);
}
.assistant.en-bulle[hidden] { display: none; }
.assistant.en-bulle h2 { font-size: 1.4rem; margin-bottom: .3em; }
.assistant.en-bulle .assistant-intro, .assistant.en-bulle .note { font-size: .875rem; }
.assistant.en-bulle textarea { width: 100%; }

.pied {
  margin-top: 3rem;
  padding-top: 1.2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--filet);
  font-size: .9rem;
}

@media (min-width: 640px) {
  .fiche {
    grid-template-columns: minmax(10em, 14em) minmax(0, 1fr);
  }
  .fiche dt { padding-right: 16px; }
  .fiche dd { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Page du lien de connexion : un bouton par langue, pleine largeur sur téléphone. */
.page-lien form { margin: 1rem 0; }
.page-lien button { width: 100%; max-width: 22rem; }

/* Dossier de permis : une question par bloc, filet de calque à gauche comme les messages. */
.formulaire fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 12px 0 12px 14px;
  border: 0;
  border-left: 2px solid var(--filet);
}
.formulaire legend { padding: 0; font: 700 1.35rem/1.15 var(--titre); }
.formulaire input[type="radio"] { width: 24px; min-height: 24px; height: 24px; padding: 0; margin: 0; flex: none; }
.formulaire .parcelle { border-left-color: var(--calque); }
.formulaire .parcelle legend { font: 600 .95rem/1.2 var(--texte); }
.aide { margin: 0; font-size: .9rem; }
.sous-bloc { display: grid; gap: 8px; }
.sous-bloc[hidden] { display: none; }
button.secondaire { color: var(--calque); background: transparent; border-color: var(--calque); }
button.secondaire:hover { color: var(--papier); background: var(--encre); }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
/* Connexion : « Créer mon compte » en premier à l'écran (la plupart arrivent sans compte), mais « Me connecter » reste
   premier dans le formulaire pour que la touche Entrée d'un client existant le connecte (18/11/2026, CV-01). */
.boutons button[value="inscription"] { order: -1; }
/* « Mot de passe oublié » : un bouton qui se lit comme un lien, cible tactile gardée. */
button.lien {
  padding: 10px 0; color: var(--calque); background: transparent; border-color: transparent;
  font-weight: 400; line-height: 1.3; text-align: left; text-decoration: underline;
}
button.lien:hover { color: var(--encre); background: transparent; border-color: transparent; }
.etat-dossier { font-weight: 600; border-left: 4px solid var(--calque); padding-left: 10px; }
.etat-dossier:empty { display: none; }

/* Espace client (21/11/2026) : l'encart « À faire maintenant » porte le cadre bleu de calque, seul élément encadré de la
   page ; les demandes en cartes, statut écrit en mot et doublé d'une couleur (bleu : à vous de jouer ; trame : en cours ;
   sans fond : livrée ; tirets : annulée). Le rouge reste au bouton d'action. */
.a-faire { border: 2px solid var(--calque); background: var(--papier); padding: 4px 16px 8px; }
.a-faire h2 { margin-top: .6em; }
.a-faire .actions { margin: .6em 0; }
.cartes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.carte { border: 1px solid var(--filet); background: var(--papier); padding: 4px 14px 10px; }
.carte > a { display: flex; align-items: center; min-height: var(--cible); font-weight: 600; }
.carte p { margin: 0 0 .4em; }
.carte-vide { min-height: var(--cible); }
.statut { display: inline-block; padding: 2px 10px; border: 1px solid var(--encre); font-size: .9rem; font-weight: 600; }
.statut-action { color: var(--sur-plan); background: var(--calque); border-color: var(--calque); }
.statut-cours { background: var(--trame); }
.statut-annule { border-style: dashed; }
/* Fiche d'une demande : blocs d'information repliés sous leur titre, cible du titre à 44 px. */
.repli { border-top: 1px solid var(--filet); }
.repli > summary { cursor: pointer; min-height: var(--cible); padding: 8px 0; }
.repli > summary h2 { display: inline; margin: 0; font-size: clamp(1.3rem, 3.5vw, 1.7rem); }
.repli[open] > summary { margin-bottom: .6em; }

/* Pages de contenu (service, guide, FAQ par région) */
.fil { font-size: .9rem; margin-top: 1rem; overflow-wrap: anywhere; }
.fil a { display: inline-flex; align-items: center; min-height: var(--cible); }
.contenu { max-width: 70ch; }
.contenu h2 { margin-top: 2rem; }
.contenu ul { padding-left: 1.2em; }
.contenu li { margin-bottom: .45em; }
.chapeau { font-size: 1.1rem; }
.action { margin: 1.5rem 0; }
.bouton {
  display: inline-flex; align-items: center; min-height: var(--cible); padding: 10px 20px;
  font: 600 1rem/1.2 var(--texte); color: var(--sur-vif); background: var(--vif);
  border: 1px solid var(--vif); border-radius: 6px; text-decoration: none;
}
.bouton:hover { background: var(--encre); border-color: var(--encre); }
.contenu details { border-top: 1px solid var(--filet); padding: .6rem 0; }
.contenu summary { cursor: pointer; font-weight: 600; min-height: var(--cible); display: flex; align-items: center; }
.contenu details p { margin: .5rem 0 0; }
.liens li { min-height: var(--cible); display: flex; align-items: center; }
.liens.articles li { display: block; padding-block: .5rem; }
/* Date de relecture du droit, sources officielles, encadré de prix et tableaux des pages de contenu. */
.verifie { font: .85rem/1.4 var(--mono); color: var(--encre); margin: .25rem 0 1rem; }
.sources li { min-height: var(--cible); display: flex; align-items: center; overflow-wrap: anywhere; }
.prix-encadre { border: 1px solid var(--filet); border-left: 4px solid var(--calque); background: var(--trame); padding: .75rem 1rem; margin: 1.5rem 0; }
.prix-encadre p { margin: .25rem 0; }
.tableau { overflow-x: auto; margin: 1rem 0; }
.tableau table { border-collapse: collapse; min-width: 100%; font-size: .95rem; }
.tableau caption { text-align: left; font-weight: 600; padding-bottom: .4rem; }
.tableau th, .tableau td { border-bottom: 1px solid var(--filet); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.tableau thead th { border-bottom: 2px solid var(--encre); }
.pied-regions { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .75rem; }
.pied-regions a { min-height: var(--cible); display: inline-flex; align-items: center; }

/* Polices auto-hébergées, sous-ensemble latin (accents FR et NL compris), copiées depuis Google Fonts le 09/11/2026.
   Licence SIL Open Font License 1.1 : Inter (The Inter Project Authors), Barlow Condensed (Jeremy Tribby, copiée le 16/11/2026), Geist Mono (Vercel). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/barlowcondensed-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/geistmono-latin.woff2") format("woff2");
}
/* Repli d'Inter : Arial recadré sur les mesures d'Inter, pour que le texte ne bouge pas quand la police arrive. */
@font-face {
  font-family: "Inter Repli";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* Connexion Google : séparateur « ou » et lien-bouton au contour, logo G aux couleurs imposées par Google. */
.separateur { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--encre); font-size: .9rem; }
.separateur::before, .separateur::after { content: ""; flex: 1; border-top: 1px solid var(--filet); }
a.bouton-google {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--cible); padding: 10px 20px;
  font: 600 1rem/1 var(--texte); color: var(--encre); background: var(--papier);
  border: 1px solid var(--encre); text-decoration: none;
}
a.bouton-google:hover { color: var(--papier); background: var(--encre); }
a.bouton-google:focus-visible { outline: 3px solid var(--calque); outline-offset: 2px; }
a.bouton-google svg { flex: none; background: var(--papier); border-radius: 50%; padding: 2px; }

/* Nouvelle demande et pièces : listes d'aide (ce qui aide, ce que veut dire chaque type), lisibles à 375 px. */
.utiles { padding-left: 1.2em; margin: 0; }
.utiles li { margin-bottom: .3em; }
.ensuite { max-width: 64ch; font-size: .95rem; }
/* Champ refusé par le serveur : le message dit lequel ; le filet plus épais le retrouve à l'œil. */
.formulaire [aria-invalid="true"] { border: 2px solid var(--vif); }
.erreur-champ { font-weight: 600; border-left: 4px solid var(--vif); padding-left: 10px; }
/* L'exemple du champ reste lisible (contraste AA sur le papier) sans se confondre avec une saisie. */
.formulaire ::placeholder { color: var(--encre); opacity: .7; }
/* Fiche d'une demande : un formulaire masqué (réponses hors statut analysable) ne doit pas réapparaître par display: grid. */
.formulaire[hidden] { display: none; }
/* Les verdicts de l'analyse sont des phrases, pas des chiffres : texte courant, pas la chasse fixe des valeurs. */
#analyse dd, .fiche dd.phrase { font-family: var(--texte); }

/* Accueil : bandeau bleu de plan, pleine largeur. Titre, une phrase, le bouton et le prix : tout tient au premier écran. */
.bandeau {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gouttiere), calc(50vw - 440px + var(--gouttiere)));
  padding-block: 28px 32px;
  background: var(--plan);
  color: var(--sur-plan);
}
.bandeau h1 { color: var(--sur-plan); text-transform: uppercase; overflow-wrap: normal; hyphens: auto; font-size: clamp(1.9rem, 7vw, 3.6rem); line-height: .98; margin: .2em 0 .45em; text-wrap: balance; }
/* 24ch : titre sur trois lignes au lieu de quatre, le bouton et le prix remontent dans la zone regardée (18/11/2026). */
@media (min-width: 640px) { .bandeau h1 { max-width: 24ch; } }
.bandeau .chapeau { max-width: 52ch; margin-bottom: 1.25rem; }
.bandeau .action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.bandeau .bouton { min-height: 48px; padding: 12px 22px; font-size: 1.05rem; }
.bandeau .bouton:focus-visible { outline-color: var(--sur-plan); }
/* Rouge sur bleu : 1,02:1, le bouton se confond avec le bandeau ; le liseré blanc le détache (4,95:1). */
.bandeau .bouton, .bandeau .bouton:hover { border: 2px solid var(--sur-plan); }
/* Bouton d'action, prix de départ et délai groupés au premier écran : les cartes de regard du 18/11/2026 ne
   donnaient presque rien au prix et rien au délai. Les deux chiffres prennent la police des titres. */
.offre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.offre .bouton { min-height: 48px; padding: 12px 22px; font-size: 1.05rem; }
.offre-faits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 1em; line-height: 1.35; }
.offre .offre-faits { margin: 0; }
.offre-faits strong { font: 700 1.4rem/1.1 var(--titre); }
.bandeau a:not(.bouton) { color: var(--sur-plan); }
/* Autres pages publiques (18/11/2026, demande du propriétaire) : même bandeau que l'accueil, bleu de plan, titre et
   texte blancs, bouton rouge. Titres plus longs qu'à l'accueil : corps réduit pour rester sur trois ou quatre lignes. */
.bandeau-page { margin-top: 1.5rem; }
.bandeau-page .fil { margin: 0 0 .25rem; }
.bandeau-page h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); max-width: 32ch; line-height: 1.02; }
.bandeau-page .chapeau, .bandeau-page .offre { max-width: 64ch; }
.bandeau-page > :last-child { margin-bottom: 0; }
.bandeau-page + .contenu > :first-child, .bandeau-page + form { margin-top: 1.5rem; }
.accroche-suite { margin-top: 1.5rem; }
.etapes li::marker { font: 700 1.15rem var(--titre); color: var(--calque); }

/* Travaux couverts : la région d'abord, puis les travaux en étiquettes. */
.regions-travaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; margin: 1rem 0; }
.region-travaux { border-top: 3px solid var(--calque); background: var(--papier); padding: 10px 0 4px; }
.region-travaux h3 { font: 700 1.4rem/1.1 var(--titre); text-transform: uppercase; margin: 0 0 8px; }
.region-travaux ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.region-travaux a {
  display: inline-flex; align-items: center; min-height: var(--cible); padding: 6px 12px;
  border: 1px solid var(--filet); border-radius: 999px; background: var(--papier);
  color: var(--encre); text-decoration: none; font-size: .95rem;
}
.region-travaux a:hover { border-color: var(--calque); color: var(--calque); }
.assistant-bulle { background: var(--vif); border-color: var(--vif); }

.region-travaux { margin-top: 0; }

/* Nouvelle demande en écrans successifs (espace.js) : progression, navigation, zone de dépôt, vignettes. */
.formulaire fieldset[hidden] { display: none; }
.progression-texte { margin: 0; font: 700 .85rem/1.2 var(--texte); text-transform: uppercase; letter-spacing: .04em; color: var(--calque); }
.progression { width: 100%; height: 6px; margin: 0 0 8px; border: 0; border-radius: 3px; background: var(--trame); accent-color: var(--plan); }
.progression::-webkit-progress-bar { background: var(--trame); border-radius: 3px; }
.progression::-webkit-progress-value { background: var(--plan); border-radius: 3px; }
.progression::-moz-progress-bar { background: var(--plan); border-radius: 3px; }
.etapes-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
#nouvelle input[type="file"] {
  min-height: 6.5rem; padding: 1.25rem 1rem; cursor: pointer;
  background: var(--sur-plan); border: 2px dashed var(--calque); border-radius: 6px;
}
#nouvelle input[type="file"].survol, #nouvelle input[type="file"]:hover { border-color: var(--vif); }
#nouvelle input[type="file"]::file-selector-button {
  min-height: var(--cible); margin-right: 12px; padding: 10px 16px; cursor: pointer;
  font: 600 1rem/1 var(--texte); color: var(--calque); background: transparent; border: 1px solid var(--calque); border-radius: 6px;
}
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.vignettes:empty { display: none; }
.vignettes li { display: grid; align-content: start; gap: 4px; min-width: 0; font-size: .85rem; }
.vignettes img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--filet); border-radius: 4px; }
.vignettes span { overflow-wrap: anywhere; }
.vignettes button.lien { padding: 0; min-height: var(--cible); }

/* Espace architecte : la signature enregistrée, telle qu'elle ira dans le cartouche. */
img.signature { display: block; max-width: min(100%, 320px); max-height: 140px; margin: 8px 0; padding: 8px; background: var(--sur-plan); border: 1px solid var(--filet); }
img.signature[hidden] { display: none; }

/* Dictée (21/11/2026) : bouton sous le champ ; pendant l'écoute, il passe au rouge du site et l'état dit le temps écoulé. */
.dictee { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.dictee button { display: inline-flex; align-items: center; gap: 8px; }
.dictee.en-cours button { color: var(--sur-vif); background: var(--vif); border-color: var(--vif); }
.dictee-etat { min-height: 1.4em; }
/* Un champ par question (lot 4, 22/11/2026) : la réponse sous sa question, boutons de réponse rapide en dessous. */
.reponse-q { display: grid; gap: 8px; margin: 8px 0 16px; }
.reponse-q textarea { width: 100%; min-height: 3.2em; resize: vertical; font: inherit; padding: 10px 12px; border: 1px solid var(--encre); border-radius: 0; background: var(--papier); color: var(--encre); }
.reponse-q .puces { display: flex; flex-wrap: wrap; gap: 8px; }
.reponse-q .puces button { min-height: var(--cible); padding: 8px 14px; }
/* Lot 6b (03/12/2026) : choix des plans à déposer. Deux grands boutons, le libellé (nom des fichiers du client) puis ce
   que le choix implique ; empilés sur téléphone, côte à côte dès que deux colonnes restent lisibles. Le choix fait se lit
   en texte (« Votre choix ») et pas seulement à la couleur. */
.choix-plans { display: grid; gap: 12px; margin: 4px 0 8px; }
@media (min-width: 640px) { .choix-plans { grid-template-columns: 1fr 1fr; } }
.choix-plans button { justify-self: stretch; display: grid; align-content: start; gap: 6px; padding: 14px 16px; line-height: 1.35; text-align: left; }
.choix-plans button strong { font-weight: 600; font-size: 1.05rem; }
.choix-plans button span { font-weight: 400; }
.choix-plans .choisi { display: none; }
.choix-plans button[hidden] { display: none; }
/* Nom du fichier du client : sa propre ligne, plus petit ; coupé seulement s'il dépasse la largeur. */
.choix-plans .fichier { font-size: .875rem; overflow-wrap: anywhere; }
.choix-plans .fichier:empty { display: none; }
.choix-plans button[aria-pressed="true"] { color: var(--sur-plan); background: var(--calque); border-color: var(--calque); }
.choix-plans button[aria-pressed="true"] .choisi { display: block; font-weight: 600; }
/* Lettre à la commune pour ses plans d'archive (étape 3, 22/11/2026) : prête à recopier. */
details.archive { margin: 12px 0 0; }
details.archive summary { cursor: pointer; min-height: var(--cible); padding: 8px 0; }
details.archive blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--filet); background: var(--papier); color: var(--encre); }
details.archive blockquote p { margin: 0 0 6px; }
/* Une ligne par porte ou fenêtre (tour des plans, C2, 22/11/2026) : champs empilés sur téléphone, en rangée au-delà. */
.ouvertures { display: grid; gap: 12px; }
.ouverture { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--filet); background: var(--papier); }
.ouverture p { margin: 0; font-weight: 600; }
.ouverture select, .ouverture input { min-height: var(--cible); font: inherit; padding: 6px 10px; border: 1px solid var(--encre); border-radius: 0; background: var(--papier); color: var(--encre); }
.ouverture label { display: grid; gap: 4px; }
@media (min-width: 720px) { .ouverture { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; } .ouverture p { grid-column: 1 / -1; } }
