[hidden] { display: none !important; }
:root {
  --fond: #f6f4ef;
  --papier: #ffffff;
  --encre: #1f2328;
  --doux: #5f6570;
  --ligne: #e3dfd6;
  --accent: #c8602b;
  --accent-fonce: #a24d21;
  --ok: #2f7d4f;
  --ko: #b3261e;
  --attention: #a86b00;
  --bleu: #1f5fa8;
  --rayon: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre); background: var(--fond); font-size: 15px; line-height: 1.45;
  display: flex; flex-direction: column;
}
.entete { display: flex; align-items: baseline; gap: 14px; padding: 12px 20px; background: var(--papier); border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.marque { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.015em; }
.marque span { color: var(--accent); }
.sous { color: var(--doux); font-size: 14px; }
#bandeau-demo { margin-left: auto; background: #fff3cd; color: #6b4e00; border: 1px solid #f0d58a; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
nav#etapes { display: flex; gap: 4px; padding: 8px 16px; background: var(--papier); border-bottom: 1px solid var(--ligne); overflow-x: auto; }
nav#etapes button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; color: var(--doux); font: inherit; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
nav#etapes button b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ligne); color: var(--encre); font-size: 11.5px; margin-right: 6px; }
nav#etapes button.active { background: #fbe9df; color: var(--accent-fonce); font-weight: 600; }
nav#etapes button.active b { background: var(--accent); color: #fff; }
nav#etapes button.fait b { background: var(--ok); color: #fff; }
nav#etapes button:disabled { opacity: .45; cursor: default; }
main.app { flex: 1; display: grid; grid-template-columns: minmax(360px, 460px) 1fr; min-height: 0; }
#panneau { overflow-y: auto; padding: 18px 20px 40px; background: var(--papier); border-right: 1px solid var(--ligne); }
#carte-wrap { position: relative; min-height: 320px; }
#carte { position: absolute; inset: 0; background: #eef0ea; }
#carte-aide { position: absolute; left: 50%; transform: translateX(-50%); top: 12px; z-index: 500; background: rgba(31,35,40,.88); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; pointer-events: none; }
#carte-aide:empty { display: none; }
.etape[hidden] { display: none !important; }
h1 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 16px; margin: 20px 0 8px; }
h3 { font-size: 14.5px; margin: 16px 0 6px; }
p.aide, .aide { color: var(--doux); font-size: 13.5px; margin: 4px 0 12px; }
label { display: block; font-size: 13.5px; font-weight: 600; margin: 10px 0 4px; }
label.inline { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input[type=text], input[type=password], input[type=search], input:not([type]), input[type=number], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cfcac0; border-radius: 8px; font: inherit; background: #fff; color: var(--encre);
}
textarea { min-height: 64px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f0b393; border-color: var(--accent); }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grille3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: var(--accent); color: #fff; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-fonce); }
.btn:disabled { background: #d9d4cb; color: #7c776f; cursor: not-allowed; }
.btn.sec { background: #fff; color: var(--encre); border-color: #cfcac0; }
.btn.sec:hover { background: #f4f1ea; }
.btn.petit { padding: 6px 10px; font-size: 13px; }
.btn.large { width: 100%; margin-top: 16px; padding: 12px 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.carte-info { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 12px 14px; margin: 10px 0; background: #fcfbf8; }
.carte-info dl { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; margin: 0; font-size: 13.5px; }
.carte-info dt { color: var(--doux); }
.carte-info dd { margin: 0; }
.motif { border-radius: 8px; padding: 9px 12px; margin: 8px 0; font-size: 13.5px; border-left: 4px solid; background: #faf8f4; }
.motif.refus { border-color: var(--ko); background: #fdf1f0; }
.motif.operateur { border-color: var(--attention); background: #fff8e6; }
.motif.bloquant { border-color: var(--ko); background: #fdf1f0; }
.motif.info { border-color: var(--bleu); background: #eef4fb; }
.motif.question { border-color: var(--accent); background: #fdf3ec; }
.motif.avertissement { border-color: var(--attention); background: #fff8e6; }
.accepte-risques { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--attention); background: #fff8e6; border-radius: 8px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.accepte-risques.fort { border-color: var(--ko); background: #fdf1f0; }
.accepte-risques input { margin-top: 3px; flex: none; }
.motif form.question { margin-top: 8px; display: grid; gap: 4px; }
.motif form.question label.inline { margin: 2px 0; }
.motif form.question .btn { justify-self: start; margin-top: 4px; }
.motif .liens-question { margin: 4px 0; font-size: 13px; }
.motif details.modifier-reponse summary { cursor: pointer; color: var(--doux); font-size: 12.5px; margin-top: 6px; }
.motif strong { display: block; margin-bottom: 2px; }
#suggestions { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; }
#suggestions:empty { display: none; }
#suggestions li { padding: 9px 12px; cursor: pointer; border-top: 1px solid var(--ligne); font-size: 14px; }
#suggestions li:first-child { border-top: 0; }
#suggestions li:hover, #suggestions li.sel { background: #fbe9df; }
#suggestions li small { float: right; color: var(--doux); font-size: 12px; margin-left: 8px; }
.choix-parcelle { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: var(--rayon); background: #fff8f4; }
.choix-parcelle.attente { border-color: var(--ligne); background: #fcfbf8; color: var(--doux); font-size: 14px; }
.choix-parcelle .btn.large { margin-top: 12px; }
.choix-parcelle .aide { margin: 8px 0 0; }
.cp-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cp-ref { font-weight: 700; font-size: 16px; }
.cp-surf { color: var(--doux); font-size: 13.5px; white-space: nowrap; }
.cp-ville { color: var(--doux); font-size: 13.5px; }
.cp-adr { margin-top: 8px; font-size: 14px; }
.cp-parcelles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cp-puce { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e7b89c; background: #fff; border-radius: 999px; padding: 3px 6px 3px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--encre); cursor: pointer; }
.cp-puce span { color: var(--doux); font-size: 15px; line-height: 1; }
.cp-puce:hover { border-color: var(--accent); }
.cp-puce:hover span { color: var(--ko); }
.cp-adr.sans { color: var(--doux); font-style: italic; font-size: 13.5px; }
.leaflet-interactive:focus { outline: none; }
.leaflet-tooltip.infobulle-parcelle { font-weight: 600; font-size: 12.5px; padding: 2px 7px; }
.resume { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.resume div { background: #f4f1ea; border-radius: 8px; padding: 8px 10px; }
.resume small { display: block; color: var(--doux); font-size: 12px; }
.resume b { font-size: 16px; }
.verdict { border-radius: var(--rayon); padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.verdict.dp { background: #eef4fb; border: 1px solid #c9dcf2; }
.verdict.pc { background: #fbe9df; border: 1px solid #f1c7ae; }
.verdict.aucune { background: #e8f4ec; border: 1px solid #bcdcc7; }
.verdict.hors { background: #fdf1f0; border: 1px solid #f0c2bd; }
.controles { list-style: none; padding: 0; margin: 8px 0; }
.controles li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--ligne); font-size: 13.5px; }
.controles li:first-child { border-top: 0; }
.pastille { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; margin-top: 2px; }
.pastille.conforme { background: var(--ok); }
.pastille.non_conforme { background: var(--ko); }
.pastille.non_verifiable { background: var(--attention); }
.pastille.info { background: var(--bleu); }
.controles .mesure { color: var(--doux); font-size: 12.5px; }
.ouv { display: grid; grid-template-columns: 52px 1fr 60px 60px 62px 28px; gap: 6px; align-items: center; margin: 6px 0; }
.ouv input, .ouv select { padding: 6px 7px; font-size: 13px; }
.ouv button { border: 0; background: none; color: var(--ko); font-size: 18px; cursor: pointer; }
.ouv-entete { font-size: 11.5px; color: var(--doux); font-weight: 600; }
.couleurs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.couleurs button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfcac0; cursor: pointer; }
.couleurs button.sel { box-shadow: 0 0 0 2px var(--accent); }
.couleur-nom { font-size: 12.5px; color: var(--doux); margin-top: 4px; }
.rotation { display: flex; align-items: center; gap: 10px; }
.rotation input[type=range] { flex: 1; }
.photo-bloc { border: 1px dashed #cfcac0; border-radius: var(--rayon); padding: 12px; margin: 10px 0; }
.photo-bloc img { max-width: 100%; border-radius: 6px; display: block; margin: 8px 0; }
.apercus { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apercus figure { margin: 0; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #fff; }
.apercus img { width: 100%; display: block; }
.apercus figcaption { font-size: 12px; padding: 4px 8px; color: var(--doux); }
.apercus figure:first-child { grid-column: 1 / -1; }
.apercus img { -webkit-user-drag: none; user-select: none; }
.apercus figure.floute { cursor: default; }
.prix { font-size: 28px; font-weight: 800; margin: 6px 0; }
.telechargements a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 8px; margin: 6px 0; color: var(--encre); text-decoration: none; }
.telechargements a:hover { background: #f4f1ea; }
.telechargements small { color: var(--doux); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #1f2328; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 3000; max-width: 90vw; font-size: 14px; }
#toast.erreur { background: var(--ko); }
#toast[hidden] { display: none; }
.modal { position: fixed; inset: 0; background: rgba(20,20,20,.6); z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-boite { background: #fff; border-radius: 12px; max-width: 1100px; width: 100%; max-height: 94vh; overflow: auto; padding: 16px 18px; }
.modal-boite header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-boite header button { border: 0; background: none; font-size: 24px; cursor: pointer; }
#montage-canvas { width: 100%; max-height: 64vh; object-fit: contain; background: #222; border-radius: 8px; touch-action: none; cursor: move; }
.montage-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 14px; margin: 10px 0; align-items: end; }
.montage-outils label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.apercu-grand img { width: 100%; }
.chargement { display: inline-block; width: 16px; height: 16px; border: 2px solid #f1c7ae; border-top-color: var(--accent); border-radius: 50%; animation: tourne .8s linear infinite; vertical-align: -3px; }
@keyframes tourne { to { transform: rotate(360deg); } }
.leaflet-tooltip.cote { background: #fff; border: 1px solid #999; font-size: 12px; padding: 1px 5px; box-shadow: none; }
.leaflet-tooltip.lettre { background: transparent; border: 0; box-shadow: none; font-weight: 800; color: #7a2e8c; font-size: 14px; }
.poignee { width: 26px !important; height: 26px !important; margin: -13px 0 0 -13px !important; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: move; }
@media (max-width: 860px) {
  main.app { grid-template-columns: 1fr; grid-template-rows: auto 55vh; }
  #panneau { border-right: 0; border-bottom: 1px solid var(--ligne); }
  #carte-wrap { order: -1; min-height: 45vh; }
  .ouv { grid-template-columns: 46px 1fr 54px 54px 54px 24px; }
}

/* ---- comptes ---------------------------------------------------------- */
.barre-compte { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.barre-compte a, .barre-compte .lien { color: var(--encre); text-decoration: none; font-weight: 600; }
.barre-compte .qui { color: var(--doux); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lien { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.lien:hover, .barre-compte a:hover { color: var(--accent); }
.lien.souligne { text-decoration: underline; text-underline-offset: 2px; color: var(--doux); font-size: 13px; text-align: left; }
.succes-compte { color: var(--ok); font-weight: 600; margin: 10px 0 0; }
.zone-danger { margin-top: 22px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.zone-danger summary { cursor: pointer; color: var(--ko); font-weight: 600; }
.btn.danger { color: var(--ko); border-color: var(--ko); }
.boite-dossiers h3 { font-size: 15px; margin: 18px 0 4px; }
.erreur-compte { color: var(--ko); font-weight: 600; margin: 10px 0 0; }
.petit-texte { font-size: 12.5px; margin-top: 14px; }
.boite-dossiers { max-width: 620px; width: 100%; max-height: 86vh; overflow: auto; }
.boite-dossiers header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.boite-dossiers header button { background: none; border: 0; font-size: 26px; cursor: pointer; }
.liste-dossiers { list-style: none; padding: 0; margin: 0; }
.liste-dossiers a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 8px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.liste-dossiers a:hover { border-color: var(--accent); }
.liste-dossiers span { color: var(--doux); font-size: 13px; }
.liste-dossiers em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--attention); }
.liste-dossiers em.etat-livre { color: var(--ok); }

/* ---- mentions légales ------------------------------------------------- */
.avertissement { background: #fff7e8; border: 1px solid #f0d9a8; border-left: 4px solid var(--attention); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0 12px; line-height: 1.45; }
.avertissement strong { display: block; margin-bottom: 4px; }
.liens-legaux { font-size: 12px; color: var(--doux); margin: 26px 0 6px; line-height: 1.6; }
.liens-legaux a { color: var(--doux); }
.page-legale { overflow: auto; height: auto; }
.page-legale .marque { text-decoration: none; color: inherit; }
.texte-legal { max-width: 780px; margin: 0 auto; padding: 24px 16px 60px; line-height: 1.6; }
.texte-legal h1 { margin-top: 6px; }
.texte-legal h2 { font-size: 18px; margin: 26px 0 6px; }
.a-completer { background: #fde8e6; color: var(--ko); padding: 0 3px; border-radius: 3px; }
.avertissement-modele { background: #fde8e6; border: 1px solid #f3b9b3; padding: 8px 12px; border-radius: 8px; font-size: 14px; }

/* écran d'accueil : la page derrière ne défile pas ; en-tête compact sur téléphone */
body:has(#ecran-compte:not([hidden])) { overflow: hidden; }
.ecran-compte { overscroll-behavior: contain; }
@media (max-width: 600px) {
  .entete { padding: 8px 14px; gap: 6px 12px; }
  .entete .sous { display: none; }
  .barre-compte { margin-left: 0; width: 100%; gap: 14px; font-size: 13.5px; }
  .barre-compte .qui { max-width: 140px; }
  #bandeau-demo { font-size: 12px; }
}
.accepte-risques span { font-weight: 400; }
.choix-maison { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 10px 14px 12px; margin: 14px 0 0; }
.choix-maison legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.choix-maison label.inline { margin: 8px 0 0; }

/* ---- écran d'accueil et de connexion -------------------------------------
   Une feuille de plan (le plan de masse du dossier) à gauche, le formulaire à droite. Blanc, encre, traits fins ;
   la couleur de la marque ne sert qu'au projet dessiné. */
@font-face { font-family: "Instrument Sans"; src: url("/static/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
.ecran-compte {
  --acc-fond: #f1f2ef; --acc-encre: #1a1d20; --acc-doux: #5c636a; --acc-trait: #8c9399; --acc-filet: #dfe1dd;
  background: #fff; padding: 0; display: block; place-items: normal; overflow-y: auto; color: var(--acc-encre);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15.5px; line-height: 1.55;
}
.accueil { width: 100%; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 500px); grid-template-rows: auto 1fr; }
.acc-marque { grid-column: 1; grid-row: 1; padding: 28px max(56px, calc((100% - 640px) / 2)) 0; font-weight: 700; font-size: 20px; letter-spacing: -0.015em; background: var(--acc-fond); }
.acc-marque span { color: var(--accent); }
.acc-gauche { grid-column: 1; grid-row: 2; background: var(--acc-fond); padding: 36px max(56px, calc((100% - 640px) / 2)) 40px; display: flex; flex-direction: column; }
.acc-gauche > * { max-width: 640px; }
.acc-titre { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.12; letter-spacing: -0.022em; font-weight: 600; margin: 0 0 14px; text-wrap: balance; }
.acc-sous { color: var(--acc-doux); margin: 0 0 28px; max-width: 34em; }
.acc-feuille { margin: 0 0 28px; background: #fff; border: 1px solid var(--acc-filet); padding: 14px; }
.plan { display: block; width: 100%; height: auto; font-family: inherit; }
.plan text { font-size: 11.5px; fill: var(--acc-doux); }
.plan .terrain { fill: none; stroke: var(--acc-encre); stroke-width: 1.6; stroke-linejoin: round; }
.plan .voisin line { stroke: #b9bec2; stroke-width: 1; }
.plan .voie line { stroke: var(--acc-trait); stroke-width: 1; }
.plan .voie text { font-style: italic; }
.plan .maison polygon { stroke: var(--acc-encre); stroke-width: 1.1; }
.plan .hachure { stroke: #9aa0a5; stroke-width: 0.8; }
.plan .maison text { text-anchor: middle; }
.plan .projet rect { fill: rgba(200, 96, 43, 0.16); stroke: var(--accent); stroke-width: 2; }
.plan .projet text { text-anchor: middle; fill: var(--accent-fonce); font-weight: 600; font-size: 12.5px; }
.plan .cotes line { stroke: var(--acc-encre); stroke-width: 0.8; }
.plan .cotes .rappel { stroke: var(--acc-trait); stroke-width: 0.6; }
.plan .cotes text { text-anchor: middle; fill: var(--acc-encre); font-size: 11px; font-variant-numeric: tabular-nums; }
.plan .cotes .vertical { transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.plan .pointe { fill: var(--acc-encre); }
.plan .nord circle { fill: none; stroke: var(--acc-encre); stroke-width: 0.9; }
.plan .nord path { fill: var(--acc-encre); }
.plan .nord text { text-anchor: middle; fill: var(--acc-encre); font-weight: 600; }
.plan .cartouche rect, .plan .cartouche line { fill: none; stroke: var(--acc-encre); stroke-width: 0.8; }
.plan .cartouche text { fill: var(--acc-encre); font-size: 11px; }
.plan .cartouche .centre { text-anchor: middle; }
.acc-prix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--acc-encre); }
.acc-prix div { padding: 12px 16px 0 0; }
.acc-prix div + div { padding-left: 16px; border-left: 1px solid var(--acc-filet); }
.acc-prix dt { font-size: 13.5px; color: var(--acc-doux); }
.acc-prix dd { margin: 2px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.acc-note { color: var(--acc-doux); font-size: 14px; margin: 14px 0 0; }
.acc-mention { color: var(--acc-doux); font-size: 12.5px; line-height: 1.5; margin: auto 0 0; padding-top: 32px; max-width: 46em; }
.acc-liens { display: flex; gap: 18px; font-size: 12.5px; margin: 8px 0 0; }
.acc-liens a { color: var(--acc-doux); text-underline-offset: 2px; }
.acc-droite { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; padding: 48px 48px; background: #fff; }
.boite-compte { width: 100%; max-width: 360px; }
.boite-compte h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.018em; margin: 0 0 6px; line-height: 1.2; }
.acc-intro { color: var(--acc-doux); margin: 0 0 22px; }
.ecran-compte label { font-size: 13.5px; font-weight: 500; margin: 16px 0 6px; color: var(--acc-encre); }
.ecran-compte input { height: 46px; padding: 0 13px; border: 1px solid #cfd3d6; border-radius: 6px; font: inherit; font-size: 15.5px; background: #fff; }
.ecran-compte input:hover { border-color: #a9afb4; }
.ecran-compte input:focus { outline: 2px solid var(--acc-encre); outline-offset: -1px; border-color: var(--acc-encre); }
.acc-label-mdp { display: flex; justify-content: space-between; align-items: baseline; }
.acc-label-mdp .lien { font-size: 13.5px; color: var(--acc-doux); text-decoration: underline; text-underline-offset: 2px; }
.acc-aide { font-size: 13px; color: var(--acc-doux); margin: 6px 0 0; }
.acc-valider { width: 100%; height: 48px; margin-top: 24px; border: 0; border-radius: 6px; background: var(--acc-encre); color: #fff; font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.acc-valider:hover { background: #33383d; }
.acc-valider:disabled { background: #9aa0a5; cursor: progress; }
.acc-valider:focus-visible, .acc-google:focus-visible, .ecran-compte .lien:focus-visible, .acc-liens a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid #cfd3d6; border-radius: 6px; color: var(--acc-encre); text-decoration: none; font-weight: 500; }
.acc-google:hover { border-color: var(--acc-encre); }
.ou { display: flex; align-items: center; gap: 12px; color: var(--acc-doux); font-size: 13px; margin: 20px 0 2px; }
.ou::before, .ou::after { content: ""; flex: 1; border-top: 1px solid var(--acc-filet); }
.acc-bascule { margin: 20px 0 0; color: var(--acc-doux); font-size: 14.5px; text-align: center; }
.acc-bascule:empty { display: none; }
.acc-bascule .lien { color: var(--acc-encre); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ecran-compte .erreur-compte { font-weight: 500; font-size: 14px; background: #fbeceb; border-radius: 6px; padding: 9px 12px; margin: 14px 0 0; }
.ecran-compte .succes-compte { font-weight: 500; font-size: 14px; background: #eaf4ee; border-radius: 6px; padding: 9px 12px; margin: 14px 0 0; }
/* écran seul (équipe, session expirée, nouveau mot de passe) : la marque et le formulaire, centrés */
.accueil.seul { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.accueil.seul .acc-marque { background: #fff; text-align: center; padding-top: 40px; }
.accueil.seul .acc-droite { grid-column: 1; grid-row: 2; align-items: flex-start; padding-top: 8vh; }
/* le plan se trace une fois, à l'ouverture */
@media (prefers-reduced-motion: no-preference) {
  .plan .terrain, .plan .voisin line, .plan .voie line, .plan .maison polygon, .plan .projet rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 0.9s cubic-bezier(.45, 0, .2, 1) forwards; }
  .plan .voisin line, .plan .voie line { animation-duration: 0.6s; }
  .plan .maison polygon { animation-delay: 0.35s; }
  .plan .projet rect { animation-delay: 0.8s; animation-duration: 0.6s; }
  .plan .maison polygon, .plan .projet rect { fill-opacity: 0; animation-name: trace, remplit; animation-duration: 0.7s, 0.5s; }
  .plan .maison polygon { animation-delay: 0.35s, 0.9s; }
  .plan .projet rect { animation-delay: 0.8s, 1.25s; }
  .plan text, .plan .cotes, .plan .nord, .plan .cartouche { opacity: 0; animation: apparait 0.5s ease-out 1.35s forwards; }
  .plan .voie text { animation-delay: 0.5s; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes remplit { to { fill-opacity: 1; } }
@keyframes apparait { to { opacity: 1; } }
@media (max-width: 960px) {
  .accueil { display: flex; flex-direction: column; }
  .acc-gauche { display: contents; }
  .acc-marque { order: 0; padding: 18px 20px 0; background: #fff; }
  .acc-titre { order: 1; padding: 18px 20px 0; font-size: 27px; margin: 0 0 10px; }
  .acc-sous { order: 2; padding: 0 20px; margin: 0; font-size: 15px; }
  .acc-droite { order: 3; padding: 26px 20px 36px; display: block; }
  .boite-compte { max-width: 460px; }
  .acc-feuille { order: 4; margin: 0; padding: 10px; border: 0; border-top: 1px solid var(--acc-filet); background: var(--acc-fond); }
  .acc-prix { order: 5; margin: 0; padding: 0 20px; background: var(--acc-fond); border-top: 0; }
  .acc-prix div { padding: 14px 10px 0 0; border-top: 1px solid var(--acc-encre); }
  .acc-prix div + div { padding-left: 10px; }
  .acc-prix dt { font-size: 12.5px; }
  .acc-prix dd { font-size: 21px; }
  .acc-note { order: 6; margin: 0; padding: 12px 20px 0; background: var(--acc-fond); font-size: 13.5px; }
  .acc-mention { order: 7; margin: 0; padding: 22px 20px 0; background: var(--acc-fond); }
  .acc-liens { order: 8; margin: 0; padding: 8px 20px 28px; background: var(--acc-fond); }
  .acc-gauche > * { max-width: none; }
  .accueil.seul .acc-marque { text-align: left; padding-top: 18px; }
  .accueil.seul .acc-droite { padding-top: 28px; }
}

/* logo de l'en-tête : retour à la page d'accueil */
a.marque { text-decoration: none; color: inherit; }
a.marque:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* code promo (étape paiement) */
.code-promo { margin: 14px 0 0; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 0 14px; }
.code-promo summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 14px; color: var(--encre); }
.code-promo form { padding: 0 0 14px; }
.code-promo label { margin-top: 0; }
.ligne-code { display: flex; gap: 8px; }
.ligne-code input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.ligne-code .btn { white-space: nowrap; }
.erreur-code { color: var(--ko); font-size: 13.5px; margin: 8px 0 0; }
a.acc-marque { display: block; text-decoration: none; color: var(--acc-encre); }
a.acc-marque:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
