:root {
  --orange: #C2410C; --orange-clair: #FFF1E8; --encre: #16181D; --gris: #5B5F68;
  --fond: #F6F5F2; --bord: #E4E2DC; --bleu: #1D4ED8; --bleu-clair: #E5ECFB;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fond); color: var(--encre);
  display: flex; flex-direction: column; min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
.cache { display: none !important; }

.barre {
  position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--bord);
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
}
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; flex: 1; }
.btn-icone { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #F0EEE9; color: var(--encre); display: flex; align-items: center; justify-content: center; }
.langues { display: flex; gap: 2px; background: #F0EEE9; border-radius: 999px; padding: 3px; }
.langues button { border: 0; min-width: 36px; height: 34px; border-radius: 999px; background: transparent; color: #474B54; font-weight: 600; font-size: 13px; }
.langues button[aria-pressed="true"] { background: var(--encre); color: #fff; }

main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px; }
.ecran { display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: 24px; margin: 0; line-height: 1.2; }
h2 { font-size: 16px; margin: 6px 0 0; }
.intro { margin: 0; color: #474B54; line-height: 1.45; }
.discret { color: var(--gris); font-size: 13px; margin: 0; line-height: 1.4; }
.aide { font-size: 13px; margin: 0; background: var(--bleu-clair); color: #1D3A8A; padding: 8px 10px; border-radius: 10px; }

.carte { height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--bord); z-index: 0; }
.liste { display: flex; flex-direction: column; gap: 10px; }
.element {
  text-align: left; background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 10px;
  display: flex; gap: 12px; align-items: center; color: var(--encre); width: 100%;
}
.element img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: #eee; }
.element .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.element .titre { font-weight: 600; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; align-self: flex-start; white-space: nowrap; }
.b-transmis { background: #FBE4D8; color: #9A3412; }
.b-en_cours { background: var(--bleu-clair); color: #1D3A8A; }
.b-repare_selon_service { background: #EDEBE5; color: #3F434B; }
.b-repare_confirme { background: #E3F0EC; color: #0F5132; }
.b-rouvert { background: #FBE4D8; color: #9A3412; }

.zone-photo {
  height: 180px; border: 2px dashed #B9B6AE; background: #fff; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 600; cursor: pointer;
}
.apercu { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--bord); touch-action: manipulation; cursor: crosshair; display: block; }
.position { font-size: 14px; margin: 0; color: #474B54; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #CFCCC4; background: #fff; color: var(--encre); font-size: 14px; }
.puces button.plier { border: 0; background: none; color: var(--orange); font-weight: 600; padding: 0 6px; }
.puces button[aria-pressed="true"] { border: 2px solid var(--orange); background: var(--orange-clair); }
.titre-champ { font-weight: 600; }
textarea { width: 100%; border: 1px solid #CFCCC4; border-radius: 12px; padding: 12px; font-size: 16px; font-family: inherit; resize: vertical; }
.erreur { background: var(--orange-clair); border: 1px solid #F3C3A3; color: #7A2A0A; border-radius: 12px; padding: 12px; font-size: 14px; }

.etapes { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--bord); border-radius: 16px; }
.etapes li { padding: 12px 14px; border-bottom: 1px solid #EEECE7; display: flex; gap: 10px; align-items: center; color: #6B6F78; }
.etapes li:last-child { border-bottom: 0; }
.etapes li.fait { color: var(--encre); }
.etapes li.fait::before { content: "✓"; color: #fff; background: var(--bleu); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.etapes li.attente::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #D6D3CC; flex: none; }
.etapes li.echec { color: #9A3412; }

.carte-info { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.etiquette { font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .5px; }
.gros { font-size: 18px; font-weight: 700; }
.photo-detail { width: 100%; border-radius: 16px; border: 1px solid var(--bord); }
.grille2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chiffre { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 12px; }
.chiffre b { display: block; font-size: 26px; }
.chiffre span { font-size: 12px; color: var(--gris); }

.pied { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--bord); padding: 12px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.btn { width: 100%; max-width: 608px; min-height: 54px; border-radius: 16px; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn-principal { border: 0; background: var(--orange); color: #fff; }
.btn-principal:disabled { opacity: .6; }
.btn-secondaire { border: 2px solid var(--encre); background: #fff; color: var(--encre); }
.btn-whatsapp { border: 0; background: #1F7A4D; color: #fff; }
.btn-moi-aussi { border: 0; background: var(--orange); color: #fff; }
.btn-moi-aussi[aria-pressed="true"] { border: 2px solid var(--orange); background: var(--orange-clair); color: var(--encre); }
.btn-lien { border: 0; background: none; color: var(--orange); font-weight: 600; padding: 6px 0; align-self: flex-start; font-size: 15px; }

.b-repare_habitant, .b-repare_selon_service { background: #DCFCE7; color: #14532D; }
.btn-vert { border: 0; background: #15803D; color: #fff; }
.btn-vert:disabled { opacity: .5; }
.vote { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.deux { display: flex; gap: 8px; } .deux .btn { flex: 1; font-size: 15px; min-height: 48px; }
.fig { margin: 0; } .fig figcaption { font-size: 13px; color: var(--gris); text-align: center; margin-top: 4px; font-weight: 600; }

/* ===== Thème « Jaune signalisation » ===== */
:root { --orange: #FFD500; --orange-clair: #FFF6BF; --encre: #111111; --fond: #FFFBEA; --bord: #EADFB0; --gris: #4B4B4B; }
body { font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.barre { background: #111111; border-bottom-color: #111111; }
.logo { color: #FFD500; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.btn-icone { background: #2A2A2A; color: #FFD500; }
.langues { background: #2A2A2A; }
.langues button { color: #E5E5E5; }
.langues button[aria-pressed="true"] { background: #FFD500; color: #111111; }
.intro { color: #3A3A3A; }
.aide { background: #FFF6BF; color: #4B3F00; }
.carte { height: 120px; transition: height .25s; }
.carte.grande { height: 60vh; }
#btn-carte { margin-top: -6px; }
.btn-principal { background: #FFD500; color: #111111; font-weight: 800; }
.btn-moi-aussi { background: #FFD500; color: #111111; font-weight: 700; }
.btn-moi-aussi[aria-pressed="true"] { border: 2px solid #111111; background: #FFF6BF; color: #111111; }
.btn-lien, .puces button.plier { color: #111111; text-decoration: underline; text-underline-offset: 3px; }
.puces button[aria-pressed="true"] { border: 2px solid #111111; background: #FFD500; font-weight: 700; }
.pied { background: #111111; border-top-color: #111111; }
.pied .btn-secondaire { background: transparent; color: #FFD500; border-color: #FFD500; }
.b-transmis, .b-rouvert { background: #FFE4E6; color: #9F1239; }
.b-en_cours { background: #E5E7EB; color: #111111; }
.etapes li.fait::before { background: #111111; color: #FFD500; }
.erreur { background: #FFE4E6; border-color: #FECDD3; color: #9F1239; }
/* Laisse de la place au badge « Powered by Netlify » (en bas à droite) pour qu'il ne cache plus les boutons */
.pied { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
main { padding-bottom: 24px; }
/* ===== Version 8 : proximité, abus, notes ===== */
.onglets { display: flex; gap: 6px; }
.onglets button { flex: 1; min-height: 42px; border-radius: 999px; border: 2px solid #111111; background: #fff; color: #111111; font-weight: 700; font-size: 14px; }
.onglets button[aria-pressed="true"] { background: #111111; color: #FFD500; }
.point span { display: block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); box-sizing: border-box; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(255,213,0,.55); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #FFD500; color: #111111; font-weight: 800; }
.btn-abus { color: #6B6B6B !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.note-ligne { display: flex; gap: 12px; align-items: center; }
.note-ligne .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.note-ligne .titre { font-weight: 700; }
.note-lettre { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; }
.note-A { background: #15803D; } .note-B { background: #65A30D; } .note-C { background: #CA8A04; } .note-D { background: #EA580C; } .note-E { background: #DC2626; }
.note-vide { background: #E5E5E5; color: #6B6B6B; }
/* ===== Version 10 : formulaire en 3 étapes ===== */
.progression { list-style: none; display: flex; gap: 6px; margin: 0 0 4px; padding: 0; }
.progression li { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: #EFEDE6; color: #6B6B6B; font-size: 13px; font-weight: 600; }
.progression .pastille { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #111111; font-size: 12px; font-weight: 800; flex: none; }
.progression li.active { background: #111111; color: #FFD500; }
.progression li.faite { background: #FFD500; color: #111111; }
.progression li.faite .pastille { background: #111111; color: #FFD500; font-size: 0; }
.progression li.faite .pastille::after { content: "✓"; font-size: 13px; }
.etape { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; scroll-margin-top: 70px; transition: opacity .2s; }
.etape.eteinte { opacity: .4; pointer-events: none; }
.etape-titre { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 18px; }
.etape-titre .num { width: 30px; height: 30px; border-radius: 50%; background: #FFD500; color: #111111; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tuiles .tuile { min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid #CFCCC4; background: #fff; color: #111111; font-size: 14px; font-weight: 600; text-align: left; line-height: 1.2; }
.tuiles .tuile .icone { font-size: 26px; flex: none; }
.tuiles .tuile[aria-pressed="true"] { border: 2px solid #111111; background: #FFD500; }
.tuiles .plier { grid-column: 1 / -1; min-height: 44px; border: 0; background: none; color: #111111; text-decoration: underline; font-weight: 600; }
.recap { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #E5E2DA; border-radius: 14px; padding: 10px; }
.recap:empty { display: none; }
.recap img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.recap .txt { display: flex; flex-direction: column; gap: 4px; }
.recap .titre { font-weight: 700; }
/* Phrase d'accueil */
.intro .accroche { display: block; font-size: 20px; line-height: 1.25; font-weight: 800; color: #111111; margin-bottom: 4px; }
.intro .demarche { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: #111111; color: #FFD500; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tuiles .tuile .icone svg { width: 34px; height: 34px; display: block; }
.recap .titre svg { width: 22px; height: 22px; vertical-align: -5px; }
