/* Prédiagnostic — BIOCOR */
:root {
  --vert: #2f6b55; --vert-clair: #e6f2ec; --vert-fonce: #1d4537; --vert-vif: #3c9a6e; --terre: #8a6a46;
  --encre: #1c2421; --gris: #5f6b66; --ligne: #e1e7e3; --fond: #f2f5f1; --blanc: #fff;
  --jaune: #fff1a8; --rouge: #c53030; --ok: #2f855a;
  --c-dossier: #2b6cb0; --c-site: #2f855a; --c-projet: #dd6b20; --c-visite: #6b46c1; --c-obs: #0f766e; --c-options: #718096;
  --rayon: 14px; --ombre: 0 1px 2px rgba(16,40,30,.06), 0 8px 24px rgba(16,40,30,.06);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; font: 15px/1.5 "Source Sans 3", system-ui, -apple-system, sans-serif; color: var(--encre);
  background: radial-gradient(1200px 400px at 10% -10%, #dfeee5 0%, transparent 60%), var(--fond); min-height: 100vh; }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; margin: 0 0 .8rem; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; color: var(--vert-fonce); }
a { color: var(--vert); }
.cache { display: none !important; }
.discret { color: var(--gris); font-weight: 400; font-size: .85rem; }
mark { background: var(--jaune); padding: 0 .2em; border-radius: 3px; }

/* ------------------------------------------------------------------ bandeau */
.barre { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1.8rem;
  background: linear-gradient(115deg, #163a2e 0%, #24563f 55%, #3a7d5c 100%); color: #fff; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(10,30,20,.25); }
.marque { display: flex; align-items: center; gap: .75rem; }
.marque strong { font-family: "Source Serif 4", serif; font-size: 1.15rem; letter-spacing: .01em; }
.marque small { display: block; opacity: .75; font-size: .78rem; }
.pastille { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); }
nav { display: flex; gap: .35rem; align-items: center; }
nav a { color: #fff; text-decoration: none; padding: .5rem 1rem; border-radius: 99px; opacity: .85; display: flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .92rem; transition: background .15s, opacity .15s; }
nav a .ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: .85rem; }
nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
nav a.actif { opacity: 1; background: #fff; color: var(--vert-fonce); }
nav a.actif .ico { background: var(--vert-clair); }

main { padding: 1.5rem 1.8rem 4rem; max-width: 1500px; margin: 0 auto; }
.panneau { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.3rem 1.4rem;
  box-shadow: var(--ombre); margin-bottom: 1.2rem; }
.panneau.etroit { max-width: 640px; margin: 3rem auto; }
.deux-col { display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; gap: 1.2rem; align-items: start; }
.carte-panneau { position: sticky; top: 80px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grille3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.grille3b { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }

/* ------------------------------------------------------------------ champs */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .8rem; color: #34403a; }
label small, .outil small { display: block; font-weight: 400; color: var(--gris); margin-top: .2rem; font-size: .8rem; }
input, select, textarea { width: 100%; margin-top: .3rem; padding: .55rem .7rem; border: 1.5px solid #d5ddd8; border-radius: 9px;
  font: inherit; font-weight: 400; background: #fbfcfb; color: var(--encre); transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: #b9c7bf; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert-vif); background: #fff; box-shadow: 0 0 0 3px rgba(60,154,110,.18); }
input:not([type=checkbox]):not([type=file]):not(:placeholder-shown), select:has(option:checked:not([value=""])), textarea:not(:placeholder-shown) { background: #fff; }
input[type=file] { padding: .45rem; background: #fff; border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button { border: 0; background: var(--vert-clair); color: var(--vert-fonce); padding: .35rem .8rem; border-radius: 7px; margin-right: .7rem; font: inherit; font-weight: 600; cursor: pointer; }
::placeholder { color: #a3aea8; }

/* ------------------------------------------------------------------ boutons */
button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid transparent; padding: .6rem 1.1rem; transition: transform .08s, background .15s, box-shadow .15s; }
button:active:not(:disabled) { transform: translateY(1px); }
button.principal { background: linear-gradient(180deg, #3c9a6e, #2f7d59); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(47,125,89,.3); }
button.principal:hover:not(:disabled) { background: linear-gradient(180deg, #2f8a5f, #24684a); }
button.principal:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.principal.plein { width: 100%; margin-top: .8rem; }
button.secondaire { background: var(--vert-clair); color: var(--vert-fonce); border-color: #c7dccf; font-weight: 600; }
button.secondaire:hover { background: #d7eadf; }
button.secondaire.petit, button.petit { padding: .3rem .75rem; font-size: .82rem; }
h2 button.secondaire.petit { margin-left: auto; }
button.lien { background: none; color: var(--gris); text-decoration: underline; padding: .5rem 0; }
button.danger { background: none; color: var(--rouge); padding: .2rem .5rem; border-radius: 6px; }
button.danger:hover { background: #fdecea; }

/* ------------------------------------------------------------------ assistant */
.etapes-assistant { display: flex; align-items: center; gap: .8rem; list-style: none; padding: .9rem 1.2rem; margin: 0 0 1.2rem;
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); }
.etapes-assistant li { display: flex; align-items: center; gap: .65rem; color: #8c9792; font-weight: 700; }
.etapes-assistant li small { display: block; font-weight: 400; font-size: .76rem; color: #9aa59f; }
.etapes-assistant li span { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: #edf1ee; color: #6b7671; font-size: .95rem; flex: none; }
.etapes-assistant li.trait { flex: 1; height: 3px; background: #e6ebe8; border-radius: 3px; min-width: 30px; }
.etapes-assistant li.actif { color: var(--vert-fonce); }
.etapes-assistant li.actif span { background: linear-gradient(135deg, #3c9a6e, #2b6c51); color: #fff; box-shadow: 0 0 0 4px rgba(60,154,110,.18); }
.etapes-assistant li.fait span { background: var(--vert-clair); color: var(--vert); }
.etapes-assistant li.fait span::after { content: "✓"; position: absolute; }
.etapes-assistant li.fait span { position: relative; color: transparent; }
.etapes-assistant li.fait span::after { color: var(--vert); }

/* questionnaire : sommaire latéral + rubriques colorées */
#etape-questionnaire { grid-template-columns: 240px minmax(0, 1fr); max-width: 1260px; }
.sommaire { position: sticky; top: 84px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .9rem; box-shadow: var(--ombre); }
.sommaire-titre { font-family: "Source Serif 4", serif; font-weight: 600; color: var(--vert-fonce); margin: 0 0 .5rem .3rem; }
.sommaire .rub { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center;
  text-decoration: none; color: var(--encre); padding: .5rem .45rem; border-radius: 10px; margin-bottom: .15rem; }
.sommaire .rub:hover { background: #f4f7f5; }
.sommaire .rub .ico { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 1rem; background: #eef2ef; }
.sommaire .rub .lib { font-weight: 600; font-size: .9rem; line-height: 1.15; }
.sommaire .rub .lib small { display: block; font-weight: 400; color: var(--gris); font-size: .74rem; }
.sommaire .jauge { height: 5px; background: #edf1ee; border-radius: 5px; overflow: hidden; margin-top: .25rem; }
.sommaire .jauge i { display: block; height: 100%; border-radius: 5px; background: var(--c, var(--vert-vif)); transition: width .3s; }
.sommaire .aide { font-size: .76rem; margin: .6rem .2rem 0; }
.r-dossier { --c: var(--c-dossier); } .r-site { --c: var(--c-site); } .r-projet { --c: var(--c-projet); }
.r-visite { --c: var(--c-visite); } .r-obs { --c: var(--c-obs); } .r-options { --c: var(--c-options); }
.sommaire .rub .ico { background: color-mix(in srgb, var(--c) 14%, white); }

.questionnaire { padding: 1.1rem; background: transparent; border: 0; box-shadow: none; }
.questionnaire fieldset { --c: var(--vert); border: 1px solid var(--ligne); border-top: 4px solid var(--c); border-radius: var(--rayon);
  padding: 0 1.2rem 1rem; margin: 0 0 1.3rem; background: #fff; box-shadow: var(--ombre); scroll-margin-top: 90px; }
.questionnaire legend { float: left; width: calc(100% + 2.4rem); margin: 0 -1.2rem .9rem; padding: .8rem 1.2rem; font-family: "Source Serif 4", serif;
  font-size: 1.1rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 7%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, white); display: flex; align-items: center; gap: .6rem; }
.questionnaire legend + * { clear: both; }
.questionnaire legend .num { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--c);
  color: #fff; font-family: "Source Sans 3", sans-serif; font-size: .95rem; font-weight: 700; }
.questionnaire legend small { font-family: "Source Sans 3", sans-serif; font-size: .8rem; font-weight: 400; color: var(--gris); margin-left: .2rem; }
fieldset.s-dossier { --c: var(--c-dossier); } fieldset.s-site { --c: var(--c-site); } fieldset.s-projet { --c: var(--c-projet); }
fieldset.s-visite { --c: var(--c-visite); } fieldset.s-obs { --c: var(--c-obs); }
.questionnaire fieldset input:focus, .questionnaire fieldset select:focus, .questionnaire fieldset textarea:focus {
  border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.questionnaire .titre-cases { margin-top: .7rem; margin-bottom: .4rem; }
.obs-terrain { background: #fff; }
details.options { margin: 0 0 1rem; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .8rem 1.2rem; box-shadow: var(--ombre); }
details.options summary { cursor: pointer; font-weight: 700; color: var(--c-options); }
details.options[open] summary { margin-bottom: .8rem; }

/* cases à cocher en pastilles */
.cases { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .7rem; }
.cases label { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; margin: 0; font-size: .86rem;
  padding: .45rem .8rem; border: 1.5px solid #dbe3de; border-radius: 99px; background: #fff; cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s; }
.cases label:hover { border-color: var(--c, var(--vert-vif)); }
.cases input { width: auto; margin: 0; accent-color: var(--c, var(--vert)); }
.cases label:has(input:checked) { background: var(--c, var(--vert)); border-color: var(--c, var(--vert)); color: #fff; }
.cases label:has(input:checked) input { accent-color: #fff; }

.bloc-conditionnel { --c2: var(--c, var(--vert)); border-left: 4px solid var(--c2); background: color-mix(in srgb, var(--c2) 5%, white);
  border-radius: 0 10px 10px 0; padding: .7rem .9rem .3rem 1rem; margin: .9rem 0; display: none; animation: apparait .25s ease; }
.bloc-conditionnel.visible { display: block; }
.bloc-conditionnel h3 { font-size: .95rem; margin: .1rem 0 .6rem; color: var(--c2); }
@keyframes apparait { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.grille-pot { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; align-items: end; margin: .6rem 0; }
.grille-pot .titre-cases { grid-column: 1 / -1; font-weight: 700; }
.ligne-import { margin-bottom: 1rem; padding: .8rem 1rem; background: linear-gradient(90deg, #e3f4f1, #f2faf8); border: 1px dashed #8cc9bd; border-radius: 10px; }
.liste-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.liste-photos .photo { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; align-items: start; border: 1px solid var(--ligne); border-radius: 10px; padding: .45rem; background: #fff; }
.liste-photos img { width: 90px; height: 70px; object-fit: cover; border-radius: 6px; }
.liste-photos input, .liste-photos select { margin: 0 0 .3rem; font-size: .8rem; padding: .25rem .4rem; }
.liste-photos button { font-size: .75rem; padding: .15rem .5rem; }
.ligne-hab { display: grid; grid-template-columns: 220px 1fr 36px; gap: .5rem; align-items: start; margin-bottom: .4rem; }
.ligne-hab select, .ligne-hab textarea { margin: 0; }
.autre-input { margin-top: .3rem; }
.autre-input.cache { display: none; }
table.recap { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: .8rem; }
table.recap th { text-align: left; color: #637069; font-weight: 600; padding: .3rem .5rem .3rem 0; width: 34%; vertical-align: top; }
table.recap td { padding: .3rem 0; border-bottom: 1px dashed var(--ligne); }

/* ------------------------------------------------------------------ carte et outils */
.onglets { display: flex; gap: .3rem; margin-bottom: .8rem; background: #f0f4f1; padding: .25rem; border-radius: 10px; width: fit-content; }
.onglets button { background: none; border: none; border-radius: 8px; color: var(--gris); padding: .4rem .9rem; font-weight: 600; }
.onglets button.actif { color: var(--vert-fonce); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.outil { margin-bottom: .7rem; display: grid; gap: .45rem; }
.recherche { position: relative; }
.suggestions { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--ligne); border-radius: 10px;
  z-index: 1200; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.suggestions:empty { display: none; }
.suggestions div { padding: .5rem .8rem; cursor: pointer; font-size: .9rem; }
.suggestions div:hover { background: var(--vert-clair); }
#carte { height: 540px; border-radius: 12px; border: 1px solid var(--ligne); }
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; gap: 1rem; }
.pastille-info { font-family: "Source Sans 3", sans-serif; font-size: .8rem; font-weight: 700; background: var(--vert-clair);
  color: var(--vert-fonce); padding: .15rem .65rem; border-radius: 99px; }
.message { font-size: .86rem; color: var(--gris); }
.message.erreur { color: var(--rouge); background: #fdecea; padding: .6rem .8rem; border-radius: 9px; white-space: pre-wrap; }
.message.ok { color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------------ suivi */
.etapes { list-style: none; padding: 0; margin: 0; }
.etapes li { padding: .6rem 0 .6rem 2.2rem; position: relative; color: var(--gris); border-bottom: 1px dashed var(--ligne); }
.etapes li::before { content: ""; position: absolute; left: .3rem; top: .8rem; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c5ccc8; }
.etapes li.fait { color: var(--encre); }
.etapes li.fait::before { background: var(--vert-vif); border-color: var(--vert-vif); }
.etapes li.fait::after { content: "✓"; position: absolute; left: .55rem; top: .55rem; color: #fff; font-size: .75rem; font-weight: 700; }
.etapes li.encours { color: var(--encre); font-weight: 700; }
.etapes li.encours::before { border-color: var(--vert-vif); border-top-color: transparent; animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ résultat */
.entete-resultat { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.2rem 1.4rem; box-shadow: var(--ombre); }
.chiffres { display: flex; gap: .45rem; flex-wrap: wrap; }
.chiffres span { background: #f4f7f5; border: 1px solid var(--ligne); border-radius: 99px; padding: .25rem .8rem; font-size: .85rem; }
.chiffres b { color: var(--vert-fonce); }
.chiffres span.a-completer { background: var(--jaune); border-color: #eadb8a; }
.telechargements { display: flex; gap: .55rem; flex-wrap: wrap; }
.dl { --d: var(--vert); display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--encre); background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--d) 35%, white); border-radius: 12px; padding: .45rem .9rem .45rem .5rem; font-weight: 700; font-size: .9rem;
  transition: transform .1s, box-shadow .15s; }
.dl:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--d) 25%, transparent); }
.dl .i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--d) 14%, white); font-size: 1.1rem; }
.dl small { display: block; font-weight: 400; font-size: .74rem; color: var(--gris); }
.dl-word { --d: #2b579a; background: #2b579a; color: #fff; border-color: #2b579a; } .dl-word small { color: #dbe6f7; } .dl-word .i { background: rgba(255,255,255,.18); }
.dl-excel { --d: #217346; } .dl-note { --d: #dd6b20; } .dl-qfield { --d: #6b46c1; } .dl-fiche { --d: #b7791f; } .dl-cartes { --d: #0f766e; }
.resultat-grille { display: grid; grid-template-columns: 7fr 5fr; gap: 1.2rem; align-items: start; }
.section-texte { margin-bottom: 1.1rem; }
.section-texte h3 { font-size: .92rem; margin: 0 0 .3rem; display: flex; justify-content: space-between; color: var(--vert-fonce); }
.section-texte h3 span { font-weight: 400; font-size: .78rem; background: var(--jaune); padding: 0 .5rem; border-radius: 99px; color: #6b5a00; }
.section-texte textarea { font-size: .9rem; line-height: 1.55; min-height: 90px; }
.section-titre { font-family: "Source Serif 4", serif; font-size: 1.02rem; margin: 1.4rem 0 .6rem; padding: .45rem .7rem; border-radius: 8px;
  background: var(--vert-clair); color: var(--vert-fonce); }
.barre-enregistrer { position: sticky; bottom: 0; background: #fff; padding: .8rem 0 0; display: flex; justify-content: flex-end; gap: 1rem; align-items: center; border-top: 1px solid var(--ligne); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.galerie figure { margin: 0; cursor: zoom-in; }
.galerie img { width: 100%; border-radius: 7px; border: 1px solid var(--ligne); display: block; transition: transform .15s; }
.galerie img:hover { transform: scale(1.02); }
.galerie figcaption { font-size: .72rem; color: var(--gris); line-height: 1.25; margin-top: .2rem; }
#btn-completer { margin-top: .6rem; }

/* ------------------------------------------------------------------ tableaux */
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.tableau th { text-align: left; background: #f0f5f2; color: var(--vert-fonce); padding: .5rem .6rem; font-weight: 700; position: sticky; top: 0; z-index: 1; }
.tableau th:first-child { border-radius: 8px 0 0 8px; } .tableau th:last-child { border-radius: 0 8px 8px 0; }
.tableau td { padding: .55rem .6rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau tr.cliquable { cursor: pointer; } .tableau tr.cliquable:hover td { background: #f6faf7; }
.tableau td.vide { text-align: center; color: var(--gris); padding: 2rem; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .12rem .6rem; border-radius: 99px; background: #eee; }
.badge.termine { background: #dcf3e4; color: var(--ok); } .badge.erreur { background: #fdecea; color: var(--rouge); }
.badge.en_cours { background: #fff3cd; color: #8a6d00; }
.journal { font-size: .8rem; color: var(--gris); max-height: 220px; overflow: auto; }
.journal div { padding: .15rem 0; }
.alerte { background: #fff8e1; border: 1px solid #f1df9d; border-left: 4px solid #e0b100; border-radius: 10px; padding: .65rem .9rem; margin-bottom: .8rem; font-size: .9rem; }

/* analyses réalisées : recherche + carte */
.filtres { display: grid; grid-template-columns: 2.2fr 1.2fr 1.2fr 2fr .8fr auto; gap: .6rem; align-items: end; margin-bottom: 1rem; }
.filtres input, .filtres select { margin: 0; }
.analyses-grille { display: grid; grid-template-columns: 5fr 7fr; gap: 1rem; align-items: start; }
#carte-analyses { height: 560px; border-radius: 12px; border: 1px solid var(--ligne); position: sticky; top: 84px; }
.tableau-defile { max-height: 560px; overflow: auto; }
.pastille-reg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.distance { display: inline-block; font-size: .76rem; font-weight: 700; color: #b45309; background: #fff4e5; padding: 0 .5rem; border-radius: 99px; }
.tag-prot { color: var(--rouge); font-weight: 700; }

/* référentiels */
.ref { border-bottom: 1px solid var(--ligne); padding: .9rem 0; }
.ref:last-child { border: 0; }
.ref h3 { margin: 0 0 .25rem; font-size: .98rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; color: var(--vert-fonce); }
.ref p { margin: .1rem 0 .5rem; color: var(--gris); font-size: .86rem; }
.ref .ligne { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ref .ligne input, .ref .ligne select { margin: 0; flex: 1; min-width: 180px; }
.ref input[type=file] { width: auto; flex: 1; }
.etat { font-size: .74rem; padding: .1rem .55rem; border-radius: 99px; font-weight: 700; }
.etat.oui { background: #dcf3e4; color: var(--ok); } .etat.non { background: #fbe9dd; color: #b45309; }
.facultatif { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: #edf2f7; color: #4a5568; }

#cbsh-table table { width: 100%; border-collapse: collapse; font-size: .8rem; }
#cbsh-table th { text-align: left; background: var(--vert-clair); padding: .3rem .4rem; }
#cbsh-table td { padding: .2rem .4rem; border-bottom: 1px solid var(--ligne); }
#cbsh-table td.cat { font-weight: 600; color: var(--vert-fonce); background: #fafcfb; }
#cbsh-table input { width: 6.5rem; padding: .2rem .35rem; margin: 0; text-align: right; }
#cbsh-table tr.total td { font-weight: 700; border-top: 2px solid var(--vert); }
#cbsh-table td.part { white-space: nowrap; text-align: right; }

.visionneuse { position: fixed; inset: 0; background: rgba(10,15,12,.86); display: grid; place-items: center; z-index: 3000; }
.visionneuse img { max-width: 94vw; max-height: 92vh; border-radius: 8px; background: #fff; }
.visionneuse button { position: absolute; top: 1rem; right: 1.3rem; font-size: 2rem; color: #fff; background: none; }
.leaflet-container { font: inherit; }

@media (max-width: 1100px) {
  .deux-col, .resultat-grille, .analyses-grille, #etape-questionnaire { grid-template-columns: 1fr; }
  .carte-panneau, .sommaire, #carte-analyses { position: static; }
  .filtres { grid-template-columns: 1fr 1fr; }
  nav a { padding: .45rem .7rem; }
}

/* logo du bureau d'études dans le bandeau */
.logo-bandeau { display: grid; place-items: center; height: 62px; padding: 3px 12px; background: #fff; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.logo-bandeau img { height: 56px; width: auto; display: block; }
.logo-bandeau.sans-logo { width: 42px; padding: 0; background: rgba(255,255,255,.15); box-shadow: none; }
.logo-bandeau.sans-logo img { display: none; }
.logo-bandeau.sans-logo::after { content: "🌿"; font-size: 1.3rem; }
.marque strong { font-size: 1.25rem; }

/* engagement de confidentialité */
.voile { position: fixed; inset: 0; background: rgba(14,30,22,.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 4000; padding: 1rem; }
.dialogue { background: #fff; border-radius: 16px; width: min(680px, 100%); max-height: 92vh; overflow: auto; padding: 1.4rem 1.6rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg-tete { display: flex; gap: .9rem; align-items: center; margin-bottom: .8rem; }
.dlg-tete h2 { margin: 0; }
.dlg-tete p { margin: .15rem 0 0; }
.cadenas { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fdf3e7; font-size: 1.5rem; flex: none; }
.engagement { background: #f7f9f8; border: 1px solid var(--ligne); border-radius: 10px; padding: .9rem 1rem; font-size: .88rem; line-height: 1.55; max-height: 300px; overflow: auto; margin-bottom: .9rem; }
.accepte { display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; }
.accepte input { width: auto; margin-top: .2rem; }
.grille-compte { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: center; margin-top: .5rem; }
.grille-compte #cp-mdp, .grille-compte #cp-ajouter { grid-column: 1 / -1; }
.grille-compte input { margin: 0; }
.case-admin { display: flex; gap: .35rem; align-items: center; margin: 0; font-size: .8rem; white-space: nowrap; }
.case-admin input { width: auto; margin: 0; }
.dl-sig { --d: #b45309; }
.bandeau-confidentiel { background: linear-gradient(90deg, #b42318, #d6452f); color: #fff; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; text-align: center; padding: .6rem; border-radius: 10px; margin-bottom: 1rem; font-size: 1.05rem; }
.grille-sv { display: grid; grid-template-columns: 3fr 1fr 1fr; gap: .5rem; margin: .5rem 0; }
.guide { padding-left: 1.2rem; margin: .4rem 0 .6rem; } .guide li { margin-bottom: .25rem; }
.erreur-txt { color: var(--rouge); }
