/* App mobile DV Immo : lisible sur téléphone et tablette, police système, couleurs de l'agence. */
:root {
  --dv: #A3442F; --dv-fonce: #8A3826; --dv-clair: #FBF1ED; --or: #B4994C; --or-clair: #F6F1E3;
  --fond: #F4F2EF; --surface: #FFFFFF; --filet: #E8E3DE; --filet-fort: #D3CCC5;
  --texte: #1E1E1E; --texte-2: #5F5F5F; --texte-3: #8C8C8C; --ok: #2F7A4F; --ok-clair: #E8F3EC; --non: #C62828;
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --nav: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.45 var(--police); -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom)); min-height: 100dvh; }
svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
#vue { max-width: 760px; margin: 0 auto; padding: env(safe-area-inset-top) 16px 24px; }

/* En-têtes */
.tete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 14px 0 10px; background: var(--fond); }
.tete h1 { flex: 1; margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.btn-rond { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); cursor: pointer; flex: none; }
.btn-rond.plein { background: var(--dv); color: #fff; box-shadow: 0 6px 16px -8px rgba(163,68,47,.8); }
.lien { border: 0; background: none; color: var(--dv); font-weight: 600; font-size: 15px; cursor: pointer; padding: 6px 0; }
.lien.danger { color: var(--non); }
.intro { margin: 0 0 14px; color: var(--texte-2); font-size: 14.5px; }

/* Recherche et filtres */
.recherche { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); color: var(--texte-3); }
.recherche:focus-within { box-shadow: 0 0 0 2px var(--dv); }
.recherche input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 17px; color: var(--texte); }
.puces { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puces button, .puces select, .puce-sup { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--filet-fort); border-radius: 999px; background: var(--surface); font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.puces button.on { background: var(--texte); border-color: var(--texte); color: #fff; }
.puces.petites button, .puces.petites select, .puce-sup { height: 32px; font-size: 13.5px; padding: 0 12px; }
.puces select { appearance: none; padding-right: 14px; }
.puce-sup button { border: 0; background: none; padding: 0; height: auto; display: grid; color: var(--texte-3); }
.puce-sup svg { width: 14px; height: 14px; }
.puces svg { width: 15px; height: 15px; }
.pt { width: 8px; height: 8px; border-radius: 50%; background: var(--texte-3); }
.pt.d-chaud { background: var(--dv); } .pt.d-tiede { background: var(--or); } .pt.d-froid { background: #5B7FA3; }

/* Liste */
.liste { list-style: none; margin: 14px 0 0; padding: 0; background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--filet); overflow: hidden; }
.liste li + li { border-top: 1px solid var(--filet); }
.ligne { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; }
.ligne:active, .ligne.sel { background: var(--dv-clair); }
.av { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--or-clair); color: #7E6A2F; font-weight: 700; font-size: 15px; flex: none; }
.av.petit { width: 34px; height: 34px; font-size: 13px; }
.txt { flex: 1; min-width: 0; display: grid; }
.txt b { display: flex; align-items: center; gap: 5px; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txt b svg { width: 14px; height: 14px; color: var(--dv); }
.txt small { font-size: 13.5px; color: var(--texte-3); }
.pastille { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--dv); color: #fff; font-size: 12.5px; font-weight: 700; font-style: normal; }
.rien { padding: 28px 16px; text-align: center; color: var(--texte-3); list-style: none; }

/* Fiche */
.fiche-tete .nom { flex: 1; min-width: 0; display: grid; }
.fiche-tete .nom input { border: 0; background: none; outline: 0; font-size: 22px; font-weight: 700; padding: 2px 0; width: 100%; }
.fiche-tete .nom input:focus { box-shadow: 0 2px 0 var(--dv); }
.fiche-tete .nom small { font-size: 13px; color: var(--texte-3); }
.menu { display: grid; gap: 4px; margin: 0 0 12px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 10px 30px -12px rgba(0,0,0,.25), 0 0 0 1px var(--filet); }
.menu p { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.menu > button { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px; border: 0; background: none; border-radius: 10px; font-size: 16px; text-align: left; cursor: pointer; }
.menu > button:active { background: var(--fond); }
.menu > button.danger { color: var(--non); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.action { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); color: var(--dv); font-size: 12.5px; font-weight: 600; }
.action span { color: var(--texte-2); }
.action.off { opacity: .35; pointer-events: none; }
.onglets { display: flex; gap: 6px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: #E9E5E0; }
.onglets button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 0; border-radius: 11px; background: none; font-size: 15px; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.onglets button.on { background: var(--surface); color: var(--texte); box-shadow: 0 2px 6px -2px rgba(0,0,0,.2); }
.onglets .ajout-role { color: var(--dv); border: 1.5px dashed var(--filet-fort); }
.onglets svg { width: 16px; height: 16px; }
.carte { margin-bottom: 14px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); }
.carte.accent { box-shadow: 0 0 0 1.5px var(--or); background: #FFFDF8; }
.carte h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; }
.carte h3 small { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--texte-3); }
.carte h3 svg { width: 18px; height: 18px; color: var(--or); }
.nb { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--fond); font-size: 12px; color: var(--texte-2); }
.champ { display: grid; gap: 5px; margin-bottom: 12px; }
.champ:last-child { margin-bottom: 0; }
.champ label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--texte-2); }
.champ.perso label { color: var(--dv); }
.champ input, .champ textarea, .champ select, .visite input, .visite select, .visite textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--filet-fort); border-radius: 12px; background: #FDFCFB; font-size: 16px; outline: 0; }
.champ textarea, .visite textarea { min-height: 84px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .visite input:focus, .visite textarea:focus, .visite select:focus { border-color: var(--dv); box-shadow: 0 0 0 3px var(--dv-clair); background: #fff; }
.aide { font-size: 13px; color: var(--texte-3); margin: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { height: 40px; padding: 0 14px; border: 1px solid var(--filet-fort); border-radius: 12px; background: #fff; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.choix button.on { background: var(--dv); border-color: var(--dv); color: #fff; font-weight: 600; }
.choix .autre { border-style: dashed; color: var(--dv); }
.choix svg { width: 15px; height: 15px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.grille2 .champ { margin: 0; }
.interrs { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.interr { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; min-height: 36px; }
.interr input { width: 22px; height: 22px; accent-color: var(--dv); }
.mini { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--texte-3); cursor: pointer; flex: none; }
.mini:active { background: var(--fond); }
.mini:disabled { opacity: .3; }
.mini svg { width: 16px; height: 16px; }
.ajout-champ { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-bottom: 14px; border: 1.5px dashed var(--filet-fort); border-radius: 14px; background: none; color: var(--dv); font-size: 15.5px; font-weight: 600; cursor: pointer; }
.ajout-champ.petit { height: 44px; margin: 10px 0 0; }
.maj { text-align: center; font-size: 12.5px; color: var(--texte-3); margin: 4px 0 20px; }

/* Photos et cadastre */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos.petites { margin-top: 4px; }
.photos figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fond); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos figure button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }
.photos figure button svg { width: 14px; height: 14px; }
.ajout-photo { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 4px; border: 1.5px dashed var(--filet-fort); border-radius: 12px; color: var(--dv); font-size: 12px; font-weight: 600; text-align: center; padding: 6px; cursor: pointer; }
.liens { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.liens a { color: var(--dv); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Correspondances, alertes, biens */
.corresp { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--filet); }
.corresp:first-of-type { border-top: 0; }
.corresp > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.corresp b { font-size: 15px; }
.corresp small { font-size: 13px; color: var(--texte-2); }
.corresp em { font-style: normal; font-weight: 700; color: var(--ok); font-size: 14px; }
.corresp.bien img, .corresp .vign, .alertes img, .alertes .vign, .biens img, .biens .vign { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--fond); display: grid; place-items: center; color: var(--texte-3); }
.raisons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.raisons i { font-style: normal; font-size: 11.5px; padding: 2px 7px; border-radius: 999px; }
.raisons i.oui { background: var(--ok-clair); color: var(--ok); }
.raisons i.peut { background: var(--or-clair); color: #7E6A2F; }
.raisons i.non { background: #FCEAEA; color: var(--non); }
.avenir { font-style: normal; font-weight: 700; color: var(--or); }
.droite { display: grid; justify-items: end; gap: 6px; }
.droite button { height: 34px; padding: 0 12px; border: 1px solid var(--dv); border-radius: 10px; background: #fff; color: var(--dv); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.droite button.ok { background: var(--ok-clair); border-color: var(--ok-clair); color: var(--ok); }
.droite button svg { width: 14px; height: 14px; }
.ligne-simple { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--filet); font-size: 15px; }
.ligne-simple:first-of-type { border-top: 0; }
.visite { position: relative; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--fond); margin-bottom: 8px; }
.visite .grille2 { margin: 0; }
.visite > .mini { position: absolute; top: -8px; right: -8px; background: #fff; box-shadow: 0 0 0 1px var(--filet); border-radius: 50%; }
.alertes, .biens { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alertes li, .biens li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); }
.alertes li.nouvelle { box-shadow: 0 0 0 2px var(--dv); }
.alertes li a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.alertes li a > span, .biens li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.alertes b, .biens b { font-size: 15.5px; }
.alertes small, .biens small { font-size: 13.5px; color: var(--texte-2); }
.alertes strong { color: var(--dv); }
.qui { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.qui a { padding: 3px 10px; border-radius: 999px; background: var(--dv-clair); color: var(--dv); font-size: 13px; font-weight: 600; }
.bandeau { width: 100%; height: 48px; margin-bottom: 12px; border: 0; border-radius: 14px; background: var(--or-clair); color: #7E6A2F; font-weight: 600; cursor: pointer; }
.champs-reg { list-style: none; margin: 0 0 12px; padding: 0; }
.champs-reg li { display: flex; align-items: center; gap: 4px; padding: 10px 0; border-top: 1px solid var(--filet); }
.champs-reg li:first-child { border-top: 0; }
.champs-reg li > span { flex: 1; min-width: 0; display: grid; }
.champs-reg b { font-size: 15px; font-weight: 600; }
.champs-reg small { font-size: 12.5px; color: var(--texte-3); }

/* Feuille du bas */
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(20,12,10,.4); }
.feuille { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface); display: grid; gap: 4px; animation: monte .22s ease-out; }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.feuille h2 { margin: 0 0 10px; font-size: 20px; }
.btn { height: 50px; border: 0; border-radius: 14px; background: var(--fond); font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 6px; }
.btn.plein { background: var(--dv); color: #fff; }

/* Navigation du bas */
#nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--filet); }
#nav a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--texte-3); }
#nav a.on { color: var(--dv); }
#nav em { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--dv); color: #fff; font-size: 11px; font-style: normal; }
#toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; padding: 13px 16px; border-radius: 14px; background: #1E1E1E; color: #fff; font-size: 14.5px; text-align: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }

/* Tablette : liste à gauche, fiche à droite, navigation sur le côté */
@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: 88px; }
  #vue { max-width: none; padding: 0 24px; }
  #nav { top: 0; right: auto; width: 88px; height: 100dvh; grid-template-columns: 1fr; grid-template-rows: repeat(4, 76px); align-content: start; padding: 20px 0; border-top: 0; border-right: 1px solid var(--filet); }
  .deux { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; height: 100dvh; }
  .col-liste, .col-fiche { overflow-y: auto; padding-bottom: 24px; scrollbar-width: thin; }
  .col-fiche { padding-right: 4px; }
  .col-fiche .retour { display: none; }
  .vide-fiche { display: grid; place-items: center; color: var(--texte-3); text-align: center; }
  .vide-fiche svg { width: 40px; height: 40px; }
  body[data-page="alertes"] #vue, body[data-page="biens"] #vue, body[data-page="reglages"] #vue { max-width: 820px; }
  .feuille { left: 50%; right: auto; bottom: 50%; width: 520px; transform: translate(-50%, 50%); border-radius: 22px; animation: none; }
  #toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .feuille { animation: none; } }
[hidden] { display: none !important; }
.corresp.bien { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; column-gap: 12px; row-gap: 8px; }
.corresp.bien .droite { grid-column: 2; display: flex; align-items: center; justify-content: space-between; }
/* Anniversaires */
.sous-titre { margin: 20px 0 8px; font-size: 18px; }
.anniv-carte { box-shadow: 0 0 0 1.5px #EFD6CC; background: #FFFBF9; }
.annivs { list-style: none; margin: 0; padding: 0; display: grid; }
.anniv { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--filet); }
.anniv:first-child { border-top: 0; padding-top: 4px; }
.anniv-qui { display: flex; align-items: center; gap: 12px; }
.anniv-qui > span:last-child { display: grid; }
.anniv-qui b { font-size: 16px; }
.anniv-qui small { font-size: 13.5px; color: var(--texte-2); }
.anniv.jour .anniv-qui small { color: var(--dv); font-weight: 700; }
.av.gateau { background: var(--dv-clair); font-size: 20px; }
.anniv-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 54px; }
.btn-anniv { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 11px; background: var(--dv); color: #fff; font-size: 14.5px; font-weight: 600; }
.btn-anniv + .btn-anniv { background: #fff; color: var(--dv); box-shadow: inset 0 0 0 1.5px var(--dv); }
.btn-anniv svg { width: 16px; height: 16px; }
.btn-anniv.off, .btn.off { opacity: .35; }
.envoye { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ok); width: 100%; }
.envoye svg { width: 15px; height: 15px; }
.rappel-anniv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--dv-clair); font-size: 14.5px; font-weight: 600; color: var(--dv); }
.rappel-anniv a { padding: 4px 12px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--dv); font-size: 13.5px; }
.rappel-anniv a:first-of-type { margin-left: auto; }
.btn.centre { display: grid; place-items: center; text-decoration: none; color: inherit; }
.btn.plein.centre { color: #fff; }

/* Étoile « important » */
.btn-rond.etoile { color: var(--texte-3); }
.btn-rond.etoile.on { color: #C9A227; background: #FFF8E1; box-shadow: 0 0 0 1px #F1DFA0; }
.btn-rond.etoile.on svg, .etoile-on svg { fill: currentColor; }
.etoile-on { display: inline-flex; margin-left: 6px; color: #C9A227; }
.etoile-on svg { width: 15px; height: 15px; }
.p-etoile svg { width: 15px; height: 15px; color: #C9A227; }
.puces button.p-etoile.on svg { color: #F1DFA0; fill: currentColor; }
.liste-info { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13.5px; color: var(--texte-3); }
.liste-info select { border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.vide-carte { display: grid; justify-items: center; gap: 8px; max-width: 360px; padding: 40px 32px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet), 0 20px 40px -28px rgba(42,19,16,.35); text-align: center; }
.vide-carte > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--dv-clair); color: var(--dv); }
.vide-carte > span svg { width: 30px; height: 30px; }
.vide-carte h2 { margin: 6px 0 0; font-size: 20px; color: var(--texte); }
.vide-carte p { margin: 0 0 8px; font-size: 15px; color: var(--texte-2); }
.vide-carte .btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; }
.vide-carte .btn svg { width: 18px; height: 18px; }

/* Tablette, v2 : menu, liste et fiche forment un seul bloc */
@media (min-width: 900px) {
  body { background: var(--fond); }
  #vue { padding: 0; }
  #nav { background: #2A1310; border-right: 0; padding: 24px 0; gap: 6px; grid-template-rows: repeat(4, 72px); }
  #nav a { margin: 0 12px; border-radius: 16px; color: rgba(255,255,255,.55); }
  #nav a.on { background: rgba(255,255,255,.12); color: #fff; }
  #nav em { box-shadow: 0 0 0 2px #2A1310; }
  .deux { grid-template-columns: 400px minmax(0, 1fr); gap: 0; }
  .col-liste { background: var(--surface); border-right: 1px solid var(--filet); padding: 0 20px 24px; box-shadow: 6px 0 24px -20px rgba(42,19,16,.4); position: relative; z-index: 2; }
  .col-liste .tete { background: var(--surface); padding-top: 22px; }
  .col-liste .recherche { background: var(--fond); box-shadow: none; }
  .col-liste .recherche:focus-within { box-shadow: 0 0 0 2px var(--dv); background: #fff; }
  .col-liste .liste { margin: 6px -20px 0; border-radius: 0; box-shadow: none; background: none; }
  .col-liste .liste li + li { border-top: 1px solid #F0ECE8; }
  .col-liste .ligne { padding: 12px 20px; border-left: 3px solid transparent; }
  .col-liste .ligne:hover { background: #FAF8F6; }
  .col-liste .ligne.sel { background: var(--dv-clair); border-left-color: var(--dv); }
  .col-liste .ligne.sel .av { background: var(--dv); color: #fff; }
  .col-fiche { padding: 0 36px 32px; }
  .fiche-corps { max-width: 780px; margin: 0 auto; }
  .col-fiche .tete { padding-top: 22px; }
  .vide-fiche { background: radial-gradient(120% 80% at 50% 30%, #FBF6F2, var(--fond)); }
  body[data-page="alertes"] #vue, body[data-page="biens"] #vue, body[data-page="reglages"] #vue { max-width: 820px; padding: 0 32px; margin: 0 auto; }
}
@media (min-width: 1200px) { .fiche-corps .carte { padding: 20px 22px; } .fiche-corps .grille2 { grid-template-columns: repeat(2, 1fr); } }
/* Nouvelle fiche : deux grosses tuiles Vendeur / Acquéreur */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role { position: relative; display: grid; justify-items: center; gap: 6px; padding: 20px 12px 16px; border: 2px solid var(--filet-fort); border-radius: 18px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.role:active { transform: scale(.98); }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role-ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--fond); color: var(--texte-2); transition: background .15s, color .15s; }
.role-ico svg { width: 30px; height: 30px; }
.role b { font-size: 18px; color: var(--texte); }
.role small { font-size: 13px; line-height: 1.35; color: var(--texte-3); }
.role-coche { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--dv); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.role-coche svg { width: 15px; height: 15px; stroke-width: 3; }
.role:has(input:checked) { border-color: var(--dv); background: var(--dv-clair); }
.role:has(input:checked) .role-ico { background: var(--dv); color: #fff; }
.role:has(input:checked) .role-coche { opacity: 1; transform: none; }
.role:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--dv-clair); }
.champ label.role { display: grid; justify-content: initial; justify-items: center; align-content: start; gap: 6px; font-size: inherit; font-weight: 400; color: inherit; }

/* ===== Dashboard ===== */
.dash-tete { padding: 22px 0 14px; }
.dash-tete small { font-size: 14px; color: var(--texte-3); font-weight: 600; }
.dash-tete h1 { margin: 2px 0 0; font-size: 30px; letter-spacing: -0.02em; }
.dash-creer { display: grid; gap: 10px; margin-bottom: 14px; }
.dash-creer button { display: flex; align-items: center; gap: 14px; padding: 16px; border: 0; border-radius: 20px; background: linear-gradient(135deg, #A3442F, #7A2E1F); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 14px 28px -18px rgba(163,68,47,.9); }
.dash-creer button + button { background: linear-gradient(135deg, #2A1310, #4A251C); box-shadow: 0 14px 28px -18px rgba(42,19,16,.9); }
.dash-creer button:active { transform: scale(.99); }
.dash-creer button > span:nth-child(2) { flex: 1; display: grid; }
.dash-creer b { font-size: 17.5px; }
.dash-creer small { font-size: 13.5px; opacity: .8; }
.dash-creer > button > svg { width: 24px; height: 24px; opacity: .85; }
.dc-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.16); flex: none; }
.dc-ico svg { width: 26px; height: 26px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kpi { display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); }
.kpi-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--dv-clair); color: var(--dv); margin-bottom: 6px; }
.kpi-ico svg { width: 18px; height: 18px; }
.kpi b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 13px; color: var(--texte-2); line-height: 1.3; }
.dash-grille { display: grid; gap: 0; }
.dash-grille .carte h3 .lien { margin-left: auto; font-size: 14px; }
.nouveau { padding: 2px 9px; border-radius: 999px; background: var(--dv); color: #fff; font-size: 12px; font-weight: 700; }
.dash-alertes .alertes li { box-shadow: none; background: var(--fond); }
.dash-alertes .alertes li.nouvelle { box-shadow: 0 0 0 2px var(--dv); background: #fff; }
.mini-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--filet); }
.mini-ligne:first-of-type { border-top: 0; }
.mini-ligne > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.mini-ligne b { display: flex; align-items: center; font-size: 15.5px; }
.mini-ligne small { font-size: 13px; color: var(--texte-3); }
.mini-ligne > svg { width: 18px; height: 18px; color: var(--texte-3); }
/* Onglet Fiches : deux boutons de création */
.creer-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.creer-2 button { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--dv); border-radius: 16px; background: var(--dv-clair); color: var(--dv); text-align: left; cursor: pointer; }
.creer-2 button + button { border-color: #2A1310; background: #F3EEEC; color: #2A1310; }
.creer-2 svg { width: 24px; height: 24px; }
.creer-2 span { display: grid; }
.creer-2 b { font-size: 14.5px; }
.creer-2 small { font-size: 12px; opacity: .75; }
.vide-btns { display: grid; gap: 8px; width: 100%; }
.vide-btns .btn { justify-content: center; }
.vide-btns .btn + .btn { background: #2A1310; }
@media (min-width: 640px) { .dash-creer { grid-template-columns: 1fr 1fr; } .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
  body[data-page="dashboard"] #vue { max-width: 1100px; padding: 0 32px; margin: 0 auto; }
  .dash-grille { grid-template-columns: 1.3fr 1fr; gap: 0 16px; align-items: start; }
  .dash-alertes { grid-row: span 2; }
}
.dash-grille .carte h3 { flex-wrap: wrap; row-gap: 6px; }
.dash-grille .carte h3 .lien, .nouveau { white-space: nowrap; }

/* Dashboard : les biens qui correspondent, groupés par client, avec l'envoi par mail */
.groupes { display: grid; gap: 12px; }
.groupe { padding: 12px; border-radius: 16px; background: var(--fond); }
.groupe.nouveau-g { background: #fff; box-shadow: 0 0 0 2px var(--dv); }
.groupe-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.groupe-tete > span:last-child { display: grid; }
.groupe-tete b { font-size: 16px; }
.groupe-tete small { font-size: 13px; color: var(--texte-2); }
.groupe-biens { display: grid; gap: 6px; }
.gb { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--filet); }
.gb img, .gb .vign { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; background: var(--fond); display: grid; place-items: center; color: var(--texte-3); }
.gb > span { flex: 1; min-width: 0; display: grid; }
.gb b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb small { font-size: 12.5px; color: var(--texte-2); }
.gb i { color: var(--ok); margin-right: 4px; }
.gb.envoye { opacity: .7; }
.gb-plus { font-size: 13px; font-weight: 600; color: var(--dv); padding: 4px 6px; }
.btn-envoyer { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin-top: 10px; border: 0; border-radius: 13px; background: var(--dv); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-envoyer.fait { background: #fff; color: var(--dv); box-shadow: inset 0 0 0 1.5px var(--dv); }
.btn-envoyer svg { width: 18px; height: 18px; }
.feuille h2 { display: flex; align-items: center; gap: 8px; }
.feuille h2 svg { width: 22px; height: 22px; color: var(--dv); }
.aide.erreur { color: var(--non); }
.choix-biens { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.cb { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--filet-fort); cursor: pointer; }
.cb.on { border-color: var(--dv); background: var(--dv-clair); }
.cb input { width: 20px; height: 20px; accent-color: var(--dv); flex: none; }
.cb img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.cb span { display: grid; min-width: 0; }
.cb b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb small { font-size: 12.5px; color: var(--texte-2); }
.feuille .btn.centre svg { width: 18px; height: 18px; }
.feuille .btn.plein.centre { display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (min-width: 900px) { .feuille { width: 600px; } .groupes { grid-template-columns: 1fr; } }
.champ label.cb { justify-content: flex-start; font-size: inherit; font-weight: 400; color: inherit; }

/* Statut vendeur : Estimation → Vendeur */
.statut-v .etapes-v { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ev { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--fond); font-size: 14.5px; font-weight: 600; color: var(--texte-3); }
.ev i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--filet-fort); font-style: normal; font-size: 13px; }
.ev.fait { background: var(--dv-clair); color: var(--dv); }
.ev.fait i { background: var(--dv); color: #fff; box-shadow: none; }
.ev-trait { flex: 1; height: 2px; background: var(--filet-fort); border-radius: 2px; }
.ev-trait.fait { background: var(--dv); }
.btn-statut { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 10px; border: 0; border-radius: 14px; background: var(--dv); color: #fff; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.btn-statut svg { width: 20px; height: 20px; }
/* Archives */
.motifs-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.motifs-choix button { height: 42px; padding: 0 14px; border: 1.5px solid var(--filet-fort); border-radius: 12px; background: #fff; font-size: 15px; cursor: pointer; }
.motifs-choix button.on { border-color: var(--dv); background: var(--dv); color: #fff; font-weight: 600; }
.puces.motifs em { font-style: normal; font-size: 12px; opacity: .6; }
.motif { font-style: normal; font-weight: 600; color: var(--dv); }
.bandeau-archive { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; background: #F3EEEC; color: #2A1310; }
.bandeau-archive > svg { width: 22px; height: 22px; flex: none; }
.bandeau-archive div { flex: 1; min-width: 0; display: grid; }
.bandeau-archive b { font-size: 15px; }
.bandeau-archive small { font-size: 13px; color: var(--texte-2); }
.bandeau-archive button { height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: #2A1310; color: #fff; font-weight: 600; cursor: pointer; }
.relances { box-shadow: 0 0 0 1.5px var(--or); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(5, 1fr); } }

/* ===== Parcours vendeur : RDV → estimation Hektor → remise → relances → mandat ===== */
.oblig { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--dv-clair); color: var(--dv); font-size: 11px; font-weight: 700; }
.etapes-v { gap: 6px !important; }
.ev { padding: 5px 10px 5px 5px; font-size: 13.5px; }
.ev i svg { width: 14px; height: 14px; stroke-width: 3; }
.ev.en-cours { background: #fff; color: var(--dv); box-shadow: inset 0 0 0 1.5px var(--dv); }
.ev.en-cours i { background: var(--dv-clair); color: var(--dv); box-shadow: none; }
.parcours { display: grid; gap: 0; margin-top: 6px; }
.pc-ligne { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.pc-ligne + .pc-ligne, .relances-liste + .pc-ligne { border-top: 1px solid var(--filet); }
.pc-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--fond); color: var(--texte-3); }
.pc-num.ok { background: var(--dv); color: #fff; }
.pc-num svg { width: 19px; height: 19px; }
.pc-corps { display: grid; gap: 6px; min-width: 0; }
.pc-corps > label { font-size: 13.5px; font-weight: 700; color: var(--texte-2); }
.pc-corps input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--filet-fort); border-radius: 12px; background: #FDFCFB; font-size: 16px; }
.depot-pdf { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--dv); border-radius: 14px; background: var(--dv-clair); color: var(--dv); cursor: pointer; }
.depot-pdf svg { width: 22px; height: 22px; }
.depot-pdf span { display: grid; }
.depot-pdf b { font-size: 15px; }
.depot-pdf small { font-size: 12.5px; opacity: .8; }
.pdf { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--filet); }
.pdf-ico { width: 42px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #C62828; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.pdf > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.pdf b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf small { font-size: 12.5px; color: var(--texte-3); }
.petit-lien { font-size: 13px; cursor: pointer; justify-self: start; }
.relances-liste { display: grid; gap: 6px; padding: 4px 0 12px 52px; }
.rel { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--fond); }
.rel.du { background: #FFF4E5; box-shadow: inset 0 0 0 1.5px #E2A23B; }
.rel.retard { background: #FCEAEA; box-shadow: inset 0 0 0 1.5px var(--non); }
.rel.fait { opacity: .7; }
.rel-n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #fff; font-size: 12.5px; font-weight: 800; color: var(--texte-2); flex: none; }
.rel.fait .rel-n { background: var(--ok-clair); color: var(--ok); }
.rel-txt { flex: 1; min-width: 0; display: grid; }
.rel-txt b { font-size: 14px; }
.rel-txt small { font-size: 12.5px; color: var(--texte-2); }
.rel.retard small { color: var(--non); font-weight: 600; }
.rond-act { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--dv); box-shadow: inset 0 0 0 1.5px var(--dv); cursor: pointer; flex: none; }
.rond-act.ok { color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.rond-act svg { width: 18px; height: 18px; }
.rond-act.grand { width: 46px; height: 46px; }
.rond-act.appel { background: var(--dv); color: #fff; box-shadow: none; }
.rond-act.grand svg { width: 21px; height: 21px; }
/* Dashboard : à faire aujourd'hui */
.a-faire { box-shadow: 0 0 0 2px var(--dv); }
.tache { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--filet); }
.tache:first-of-type { border-top: 0; }
.tache-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tache-txt b { font-size: 15.5px; }
.tache-txt small { font-size: 13px; color: var(--texte-2); }
.tache > svg { width: 18px; height: 18px; color: var(--texte-3); }
.retard { color: var(--non); font-weight: 600; }
/* Réglages des relances */
.rel-reg { padding: 12px; border-radius: 14px; background: var(--fond); margin-bottom: 10px; display: grid; gap: 8px; }
.rel-reg-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rel-reg-tete b { font-size: 15px; }
.rel-reg-tete span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--texte-2); }
.rel-reg-tete input { width: 64px; height: 38px; padding: 0 8px; border: 1px solid var(--filet-fort); border-radius: 10px; font-size: 16px; text-align: center; }
.rel-reg-tete small { margin-left: auto; font-weight: 700; color: var(--dv); }
.rel-reg textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--filet-fort); border-radius: 12px; font-size: 15px; resize: vertical; background: #fff; }
@media (max-width: 520px) {
  .etapes-v { gap: 4px !important; }
  .ev { padding: 4px; font-size: 0; gap: 0; }
  .ev.en-cours { font-size: 13px; gap: 6px; padding-right: 10px; }
  .ev i { width: 28px; height: 28px; font-size: 13px; }
  .ev-trait { min-width: 8px; }
  .relances-liste { padding-left: 0; }
  .rel { flex-wrap: wrap; }
  .rel-txt { flex-basis: calc(100% - 44px); }
  .rel .rond-act, .rel .mini { margin-left: 0; }
  .rel a.rond-act:first-of-type { margin-left: 42px; }
}

/* ---------- Biens : filtres en tuiles (façon Grid Builder) et cartes ---------- */
body[data-page="biens"] .recherche { margin-bottom: 4px; }
.bx { display: block; }
.bx-barre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0 10px; }
.bx-barre p { flex: 1; margin: 0; font-size: 16px; color: var(--texte-2); min-width: 140px; }
.bx-barre p small { display: block; }
.bx-barre p b { color: var(--texte); font-size: 22px; letter-spacing: -0.02em; }
.bx-barre p small { font-size: 12.5px; color: var(--texte-3); }
.bx-filtres-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--texte); color: #fff; font-weight: 600; cursor: pointer; }
.bx-filtres-btn em { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--dv); font-size: 12.5px; font-style: normal; padding: 0 6px; }
.bx-tri { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); color: var(--texte-2); }
.bx-tri select { border: 0; background: none; outline: 0; font-size: 14.5px; font-weight: 600; color: var(--texte); cursor: pointer; max-width: 170px; }
.bx-tri svg { width: 17px; height: 17px; }
.bx-etiq { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.bx-etiq button:not(.lien) { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border: 0; border-radius: 999px; background: var(--dv-clair); color: var(--dv-fonce); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bx-etiq svg { width: 14px; height: 14px; }
.bx-grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bx-plus { width: 100%; margin-top: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); }
.bx-plus small { font-weight: 400; color: var(--texte-3); }
.bx-rien { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 48px 16px; text-align: center; background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--filet); color: var(--texte-3); }
.bx-rien svg { width: 34px; height: 34px; }
.bx-rien b { color: var(--texte); font-size: 18px; }
.bx-rien p { margin: 0; }
.bx-rien .btn { padding: 0 22px; }

.bc { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); transition: transform .18s ease, box-shadow .18s ease; }
.bc:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--filet-fort), 0 14px 30px -18px rgba(42,19,16,.45); }
.bc:active { transform: scale(.99); }
.bc-img { position: relative; aspect-ratio: 4 / 3; background: var(--or-clair); overflow: hidden; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bc:hover .bc-img img { transform: scale(1.04); }
.bc-sans { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #9C8752; }
.bc-sans svg { width: 34px; height: 34px; }
.bc-sans small { font-size: 12.5px; }
.bc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.bc-badges i, .b-neuf { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--texte); }
.bc-badges .b-neuf, .b-neuf { background: var(--dv); color: #fff; }
.bc-badges .b-venir { background: var(--or); color: #fff; }
.bc-badges .b-loc { background: #2F5D7A; color: #fff; }
.bc-nb { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(20,12,10,.62); color: #fff; font-size: 12.5px; font-weight: 600; }
.bc-nb svg { width: 14px; height: 14px; }
.bc-corps { display: grid; gap: 4px; padding: 14px 16px 14px; flex: 1; }
.bc-prix { display: flex; align-items: baseline; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--dv-fonce); }
.bc-prix small { font-size: 12.5px; font-weight: 500; color: var(--texte-3); letter-spacing: 0; }
.bc-nom { font-size: 15.5px; }
.bc-titre { margin: 0; font-size: 13.5px; color: var(--texte-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-titre::first-letter { text-transform: uppercase; }
.bc-carac { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13.5px; color: var(--texte-2); }
.bc-carac span { display: inline-flex; align-items: center; gap: 5px; }
.bc-carac svg { width: 16px; height: 16px; color: var(--or); }
.bc-pied { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid #F0ECE8; }
.bc-pied small { font-size: 12.5px; color: var(--texte-3); }
.bc-int { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ok); background: var(--ok-clair); padding: 4px 9px; border-radius: 999px; }
.bc-int svg { width: 14px; height: 14px; }

/* Le panneau de filtres */
.filtres { display: grid; gap: 4px; }
.gf { padding: 14px 0; border-bottom: 1px solid #F0ECE8; }
.gf:last-child { border-bottom: 0; }
.gf h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2); }
.gf-raz { border: 0; background: none; color: var(--dv); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.tf-ligne { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tf-ligne.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-ligne.cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tf-col { display: grid; gap: 6px; }
.tf { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--filet); border-radius: 12px; background: var(--surface); font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.tf span { flex: 1; min-width: 0; }
.tf em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--texte-3); background: var(--fond); padding: 2px 8px; border-radius: 999px; }
.tf svg { width: 18px; height: 18px; color: var(--or); }
.tf:hover { border-color: var(--filet-fort); }
.tf.on { border-color: var(--dv); background: var(--dv-clair); color: var(--dv-fonce); font-weight: 700; }
.tf.on svg { color: var(--dv); }
.tf.on em { background: var(--dv); color: #fff; }
.tf.vide { opacity: .4; }
.tf-ligne.trois .tf, .tf-ligne.cinq .tf { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px; text-align: center; }
.tf-ligne.cinq .tf span { font-size: 13px; }
.tf-ligne.cinq .tf em { font-size: 11.5px; padding: 1px 6px; }
.tf-minmax { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tf-minmax label { flex: 1; display: grid; gap: 2px; padding: 6px 12px; border-radius: 12px; background: var(--fond); }
.tf-minmax label:focus-within { box-shadow: 0 0 0 2px var(--dv); background: #fff; }
.tf-minmax span { font-size: 11.5px; font-weight: 600; color: var(--texte-3); text-transform: uppercase; letter-spacing: .05em; }
.tf-minmax input { border: 0; outline: 0; background: none; font-size: 15px; width: 100%; padding: 0; }
.tf-minmax i { width: 10px; height: 2px; background: var(--filet-fort); }
.tf-cherche { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 8px; border-radius: 12px; background: var(--fond); color: var(--texte-3); }
.tf-cherche:focus-within { box-shadow: 0 0 0 2px var(--dv); background: #fff; }
.tf-cherche svg { width: 16px; height: 16px; }
.tf-cherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--texte); }
.tf-villes { display: grid; gap: 2px; }
.tv { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; font-size: 14.5px; text-align: left; cursor: pointer; }
.tv:hover { background: var(--fond); }
.tv i { width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid var(--filet-fort); border-radius: 6px; color: transparent; flex: none; }
.tv i svg { width: 14px; height: 14px; stroke-width: 3; }
.tv span { flex: 1; }
.tv em { font-style: normal; font-size: 12.5px; color: var(--texte-3); }
.tv.on { font-weight: 700; color: var(--dv-fonce); }
.tv.on i { background: var(--dv); border-color: var(--dv); color: #fff; }
.tv.vide { opacity: .4; }

/* Feuille des filtres (téléphone) */
.f-filtres { padding-top: 0; gap: 0; }
.f-filtres.calme { animation: none; }
.ff-tete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 0 10px; background: var(--surface); border-bottom: 1px solid var(--filet); }
.ff-tete h2 { flex: 1; margin: 0; }
.ff-tete .btn-rond { width: 38px; height: 38px; }
.ff-pied { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); padding: 10px 0 calc(18px + env(safe-area-inset-bottom)); margin-bottom: calc(-18px - env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--surface) 30%); }
.ff-pied .btn { width: 100%; }
.f-filtres + .btn, .f-filtres > .btn[data-fermer]:last-child { display: none; }

@media (min-width: 900px) {
  body[data-page="biens"] #vue, body[data-page="bien"] #vue { max-width: 1440px; padding: 0 32px; margin: 0 auto; }
  .bx { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
  .bx-cote { position: sticky; top: 76px; max-height: calc(100dvh - 92px); overflow-y: auto; padding: 4px 18px 8px; margin-top: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); scrollbar-width: thin; }
}

/* ---------- La fiche d'un bien ---------- */
.bien-tete .txt b { font-size: 20px; white-space: normal; }
.bien-tete .txt small { font-size: 14px; }
.btn-site { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); color: var(--dv); font-weight: 600; font-size: 14.5px; flex: none; }
.btn-site svg { width: 17px; height: 17px; }
.galerie { position: relative; margin: 4px 0 16px; border-radius: 20px; overflow: hidden; background: var(--or-clair); }
.gal-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(62dvh, 64vw); }
.gal-piste::-webkit-scrollbar { display: none; }
.gal-piste img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gal-fl { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--texte); cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.gal-fl.g { left: 14px; } .gal-fl.d { right: 14px; }
.gal-nb { position: absolute; right: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(20,12,10,.62); color: #fff; font-size: 13px; font-weight: 600; }
.gal-vide { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; color: #9C8752; text-align: center; }
.gal-vide svg { width: 40px; height: 40px; }
.gal-vide p { margin: 0; max-width: 320px; }
.bp-ligne { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.bp-prix { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--dv-fonce); line-height: 1.1; }
.bp-prix small { font-size: 15px; font-weight: 500; color: var(--texte-3); }
.bp-m2 { font-size: 14px; color: var(--texte-3); }
.bp-statut { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--ok-clair); color: var(--ok); }
.bp-statut.s-location { background: #E5EEF4; color: #2F5D7A; }
.bp-statut.s-a-venir { background: var(--or-clair); color: #7E6A2F; }
.bp-titre { margin: 12px 0 6px; font-size: 17px; line-height: 1.35; }
.bp-titre::first-letter { text-transform: uppercase; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: 14px; color: var(--texte-2); }
.bp-meta, .bp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bp-meta svg { width: 16px; height: 16px; color: var(--or); }
.bp-carac { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; margin-top: 16px; }
.bp-carac div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--fond); }
.bp-carac svg { width: 20px; height: 20px; color: var(--dv); margin-bottom: 4px; }
.bp-carac b { font-size: 17px; }
.bp-carac small { font-size: 12.5px; color: var(--texte-3); }
.bien-desc { max-height: 13.5em; overflow: hidden; position: relative; font-size: 15px; color: var(--texte-2); }
.bien-desc p { margin: 0 0 .8em; }
.bien-desc:not(.ouverte)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(transparent, var(--surface)); }
.bien-desc.ouverte { max-height: none; }
.equip { display: flex; flex-wrap: wrap; gap: 8px; }
.equip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--fond); font-size: 14px; }
.equip svg { width: 15px; height: 15px; color: var(--ok); }
.carte h3 .nb { margin-left: 4px; }
.ag { display: flex; align-items: center; gap: 12px; }
.ag .txt small { word-break: break-word; }
.ba { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F0ECE8; flex-wrap: wrap; }
.ba:first-of-type { border-top: 0; }
.ba-qui { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ba-qui .txt small { white-space: normal; }
.score { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-clair); padding: 3px 8px; border-radius: 999px; flex: none; }
.ba-act { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn-envoi { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--dv); color: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.btn-envoi svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .btn-site span { display: none; } .btn-site { width: 44px; padding: 0; justify-content: center; } .bp-prix { font-size: 26px; } .tf-ligne.cinq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .bien { max-width: 1200px; margin: 0 auto; }
  .bien-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .bien-d { position: sticky; top: 76px; }
}

/* Numéro du client : affiché en clair, jamais cliquable (l'app est sur le téléphone perso, on appelle depuis le pro) */
.num-visible { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--fond); color: var(--texte); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; user-select: all; -webkit-user-select: all; pointer-events: auto; cursor: text; flex: none; }
.num-visible.grand { font-size: 22px; padding: 8px 14px; letter-spacing: .04em; }
.num-visible.vide { font-weight: 500; color: var(--texte-3); font-size: 13.5px; }
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; pointer-events: none; }
.tel-fiche { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); }
.tel-fiche small { font-size: 13px; color: var(--texte-3); }
.tel-fiche .num-visible { background: var(--or-clair); }
.feuille .tel-fiche { box-shadow: none; background: var(--fond); }
.feuille .tel-fiche .num-visible { background: #fff; }
.tache .num-visible { margin-left: auto; }
.ag .txt { display: grid; gap: 4px; justify-items: start; }
@media (max-width: 620px) {
  .a-faire .tache { flex-wrap: wrap; }
  .a-faire .tache-txt { flex: 1 1 100%; }
  .a-faire .tache .num-visible { margin-left: 0; margin-right: auto; }
}

/* Filtres chiffrés : une rangée de segments (valeur en gros, nombre de biens dessous) */
.gf-unite { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--texte-3); margin-left: 6px; margin-right: auto; }
.gf h4 { justify-content: flex-start; }
.gf h4 .gf-raz { margin-left: auto; }
.segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--filet); border-radius: 14px; overflow: hidden; background: var(--surface); }
.segs.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg { display: grid; justify-items: center; gap: 1px; padding: 9px 2px 8px; border: 0; border-left: 1px solid var(--filet); background: none; cursor: pointer; transition: background .15s; min-width: 0; }
.seg:first-child { border-left: 0; }
.seg b { font-size: 16px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg small { font-size: 11px; color: var(--texte-3); white-space: nowrap; }
.seg:hover { background: var(--fond); }
.seg.on { background: var(--dv); color: #fff; }
.seg.on small { color: rgba(255,255,255,.8); }
.seg.on + .seg { border-left-color: var(--dv); }
.seg.vide { opacity: .4; }

/* Fiche acquéreur : biens qui correspondent, en cartes cliquables */
.cc-grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 6px; }
.cc { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); transition: box-shadow .18s, transform .18s; }
.cc:hover { box-shadow: 0 0 0 1px var(--filet-fort), 0 14px 30px -18px rgba(42,19,16,.45); transform: translateY(-2px); }
.cc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--or-clair); overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.cc:hover .cc-img img { transform: scale(1.04); }
.cc-score { position: absolute; left: 10px; bottom: 10px; display: grid; padding: 5px 11px 6px; border-radius: 12px; background: rgba(255,255,255,.95); line-height: 1.1; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.cc-score b { font-size: 17px; color: var(--ok); }
.cc-score small { font-size: 11px; color: var(--texte-3); }
.cc-score.plein { background: var(--ok); }
.cc-score.plein b, .cc-score.plein small { color: #fff; }
.cc-corps { display: grid; gap: 4px; padding: 14px 16px 8px; flex: 1; align-content: start; }
.cc-corps .bc-titre { margin: 0; }
.cc-ok { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 13px; color: var(--ok); line-height: 1.35; }
.cc-ok svg { width: 15px; height: 15px; margin-top: 1px; stroke-width: 2.6; }
.cc-voir { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-voir i { font-style: normal; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.cc-voir i.non { background: #FCEAEA; color: var(--non); }
.cc-voir i.peut { background: var(--or-clair); color: #7E6A2F; }
.cc-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 16px; padding: 10px 0 14px; border-top: 1px solid #F0ECE8; }
.cc-ouvrir { display: inline-flex; align-items: center; gap: 2px; color: var(--dv); font-weight: 600; font-size: 14px; }
.cc-ouvrir svg { width: 16px; height: 16px; }
.cc-prop { height: 36px; padding: 0 14px; border: 1.5px solid var(--dv); border-radius: 10px; background: #fff; color: var(--dv); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.cc-prop.ok { background: var(--ok-clair); border-color: var(--ok-clair); color: var(--ok); }
.cc-prop svg { width: 15px; height: 15px; }
.lien-bien { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--texte); font-weight: 500; }
.lien-bien svg { width: 16px; height: 16px; color: var(--texte-3); }

/* Liste des fiches : badges de couleur et progression du dossier (1 à 5) */
.txt .badges-c { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 1px; }
.bdg { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; letter-spacing: .01em; line-height: 1.5; }
.b-estim { background: #FBF0D9; color: #8A6512; box-shadow: inset 0 0 0 1px #F0DBA9; }
.b-vendeur { background: var(--ok-clair); color: var(--ok); box-shadow: inset 0 0 0 1px #C6E2D0; }
.b-vendu { background: var(--dv); color: #fff; }
.b-acq { background: #E5EEF6; color: #2F5D7A; box-shadow: inset 0 0 0 1px #C9DAE8; }
.prog { display: grid; justify-items: end; gap: 4px; flex: none; }
.prog-pts { display: flex; align-items: center; }
.prog-pts i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--texte-3); background: #fff; box-shadow: inset 0 0 0 1.5px var(--filet-fort); position: relative; }
.prog-pts i + i { margin-left: 4px; }
.prog-pts i + i::before { content: ''; position: absolute; right: 100%; top: 50%; width: 4px; height: 1.5px; background: var(--filet-fort); }
.prog-pts i.ok { background: var(--ok); color: #fff; box-shadow: none; }
.prog-pts i.ok + i::before, .prog-pts i.ok + i.ok::before { background: var(--ok); }
.prog-pts i.cours { background: var(--dv); color: #fff; box-shadow: 0 0 0 3px rgba(163,68,47,.18); }
.prog-pts i svg { width: 12px; height: 12px; stroke-width: 3.2; }
.prog small { font-size: 11.5px; font-weight: 600; color: var(--texte-3); white-space: nowrap; }
.prog.fini small { color: var(--ok); }
.ligne .pastille { order: 0; }
@media (max-width: 400px) { .prog-pts i { width: 17px; height: 17px; font-size: 9.5px; } .prog-pts i + i { margin-left: 3px; } .prog-pts i + i::before { width: 3px; } }

/* Parcours : étape 5 Vendu */
.btn-statut.vendu { background: var(--ok); }
.vendu-ok { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--ok-clair); color: var(--ok); }
.vendu-ok span { font-weight: 700; color: var(--texte); }

/* Liste : deux progressions possibles (vendeur, acquéreur) */
.prog { display: grid; justify-items: end; gap: 6px; flex: none; }
.prog-l { display: grid; justify-items: end; gap: 3px; }
.prog-l.pa .prog-pts i.ok { background: #2F5D7A; }
.prog-l.pa .prog-pts i.ok + i::before { background: #2F5D7A; }
.prog-l.pa .prog-pts i.cours { background: #2F5D7A; box-shadow: 0 0 0 3px rgba(47,93,122,.18); }
.prog-l.pa.fini small { color: #2F5D7A; }
.prog-l small { font-size: 11.5px; font-weight: 600; color: var(--texte-3); white-space: nowrap; }
.prog-l.fini small { color: var(--ok); }
.b-achete { background: #2F5D7A; color: #fff; }
.vendu-ok.offre { background: #E5EEF6; color: #2F5D7A; }
.pc-corps .lien-bien { margin: 6px 0 2px; font-size: 14.5px; color: var(--dv); font-weight: 600; justify-content: flex-start; }
.pc-corps .lien svg { width: 15px; height: 15px; vertical-align: -3px; }
.statut-v .pc-corps > .lien { justify-self: start; text-align: left; display: inline-flex; align-items: center; gap: 4px; }

/* Fenêtres : croix de fermeture en haut à droite, clic autour pour fermer */
.voile { cursor: pointer; }
.feuille { position: fixed; }
.feuille-x { position: sticky; top: 0; justify-self: end; z-index: 3; width: 40px; height: 40px; margin: -6px -4px -34px 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fond); color: var(--texte-2); cursor: pointer; }
.feuille-x:hover { background: var(--filet); color: var(--texte); }
.feuille-x svg { width: 18px; height: 18px; stroke-width: 2.4; }
.feuille > h2 { padding-right: 48px; }
.btn.envoi, .btn-anniv.envoi { opacity: .7; pointer-events: none; }

/* ---------- Sélecteur de date ---------- */
.dchamp { display: block; }
.dbtn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1px solid var(--filet-fort); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; color: var(--texte); }
.dbtn span { flex: 1; }
.dbtn > svg:first-child { color: var(--dv); }
.dbtn > svg:last-child { width: 16px; height: 16px; color: var(--texte-3); }
.dbtn.vide { font-weight: 500; color: var(--texte-3); border-style: dashed; }
.dbtn:hover { border-color: var(--dv); }
.dp-voile { position: fixed; inset: 0; z-index: 70; background: rgba(20,12,10,.45); }
.dp { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface); display: grid; gap: 12px; animation: monte .2s ease-out; }
.dp-tete { display: flex; align-items: center; justify-content: space-between; }
.dp-tete b { font-size: 19px; }
.dp-tete .feuille-x { position: static; margin: 0; }
.dp-rapides { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dp-rapides button { flex: none; height: 38px; padding: 0 14px; border: 1.5px solid var(--filet); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.dp-rapides button.on { border-color: var(--dv); background: var(--dv-clair); color: var(--dv-fonce); }
.dp-mois { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-mois > button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fond); cursor: pointer; }
.dp-mois span { display: flex; gap: 6px; }
.dp-mois select { height: 40px; padding: 0 10px; border: 1px solid var(--filet-fort); border-radius: 10px; background: #fff; font-weight: 700; font-size: 16px; text-transform: capitalize; }
.dp-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-grille i { font-style: normal; text-align: center; font-size: 12px; font-weight: 700; color: var(--texte-3); padding: 4px 0; }
.dp-grille button { height: 44px; border: 0; border-radius: 12px; background: none; font-size: 16px; font-weight: 600; cursor: pointer; }
.dp-grille button:hover { background: var(--fond); }
.dp-grille button.auj { box-shadow: inset 0 0 0 1.5px var(--dv); color: var(--dv); }
.dp-grille button.sel { background: var(--dv); color: #fff; box-shadow: none; }
.dp-h { display: grid; gap: 6px; }
.dp-h small { font-size: 12.5px; font-weight: 700; color: var(--texte-3); text-transform: uppercase; letter-spacing: .05em; }
.dp-heures { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dp-minutes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dp-heures button, .dp-minutes button { height: 42px; border: 1.5px solid var(--filet); border-radius: 10px; background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.dp-heures button.on, .dp-minutes button.on { background: var(--dv); border-color: var(--dv); color: #fff; }
.dp-pied { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.dp-pied .btn { margin: 0; padding: 0 16px; }
.dp-pied .btn.plein { font-size: 14.5px; }
@media (min-width: 900px) { .dp { left: 50%; right: auto; bottom: 50%; width: 440px; transform: translate(-50%, 50%); border-radius: 22px; animation: none; } }

/* ---------- Civilité ---------- */
.civs { display: flex; flex-wrap: wrap; gap: 6px; }
.civs button { height: 38px; padding: 0 13px; border: 1.5px solid var(--filet); border-radius: 10px; background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.civs button.on { border-color: var(--dv); background: var(--dv); color: #fff; }

/* ---------- Secteurs avec rayon ---------- */
.secteurs { display: grid; gap: 8px; margin-bottom: 8px; }
.sect { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--fond); }
.sect-nom { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.sect-nom svg { grid-row: span 2; color: var(--dv); }
.sect-nom b { font-size: 15.5px; }
.sect-nom small { font-size: 12.5px; color: var(--texte-3); }
.sect .mini { grid-column: 2; grid-row: 1; }
.sect-km { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--filet-fort); border-radius: 10px; overflow: hidden; background: #fff; }
.sect-km button { height: 36px; border: 0; border-left: 1px solid var(--filet); background: none; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sect-km button:first-child { border-left: 0; }
.sect-km button.on { background: var(--dv); color: #fff; }
.sect-ajout { display: flex; gap: 8px; }
.sect-ajout .recherche { flex: 1; height: 46px; }
.sect-ajout .btn { margin: 0; height: 46px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; }
.sect-ajout .btn svg { width: 17px; height: 17px; }

/* ---------- Barre d'enregistrement de la fiche ---------- */
.barre-save { position: sticky; bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 8px); z-index: 5; display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 1px var(--filet), 0 12px 30px -16px rgba(42,19,16,.45); backdrop-filter: blur(8px); }
.etat-save { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ok); font-weight: 600; min-width: 0; }
.etat-save svg { width: 16px; height: 16px; stroke-width: 2.8; }
.etat-save.encours { color: var(--texte-3); }
.barre-save .btn { margin: 0; height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 6px; }
.barre-save .btn svg { width: 17px; height: 17px; }
@media (min-width: 900px) { .barre-save { bottom: 16px; } }

/* ---------- Carte dans l'app ---------- */
.f-carte { gap: 10px; }
.carte-cadre { width: 100%; height: min(60dvh, 520px); border: 0; border-radius: 14px; background: var(--fond); }
.carte-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.carte-act .btn { margin: 0; }
@media (min-width: 900px) { .feuille.f-carte { width: min(860px, 92vw); } }

/* ---------- Relance modifiée pour un client ---------- */
.rel-perso { font-style: normal; font-size: 11px; font-weight: 700; color: #7E6A2F; background: var(--or-clair); padding: 2px 7px; border-radius: 999px; }

/* ---------- Réglages en onglets ---------- */
.reg-onglets { position: sticky; top: 64px; z-index: 9; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet); }
.reg-onglets button { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 12px; background: none; font-size: 12.5px; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.reg-onglets button.on { background: var(--dv); color: #fff; }
.reg-onglets svg { width: 19px; height: 19px; }
@media (min-width: 700px) { .reg-onglets button { grid-auto-flow: column; justify-content: center; gap: 8px; font-size: 14.5px; padding: 11px 6px; } }

/* Copier les mails en attendant l'adresse d'envoi de l'agence */
.copie-mini { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--filet-fort); border-radius: 8px; background: #fff; color: var(--dv); font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.copie-mini svg { width: 14px; height: 14px; }
.copie-mini:active { background: var(--dv-clair); }
.lab-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lab-l label { margin: 0; }
.adr-l { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 4px 0 10px; border-radius: 12px; background: var(--fond); font-size: 14.5px; min-width: 0; }
.adr-l > svg { width: 17px; height: 17px; color: var(--dv); }
.adr-l span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.envoi-l { display: flex; gap: 8px; align-items: center; }
.envoi-l .btn-envoyer { flex: 1; margin: 0; }
.feuille .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.feuille .btn svg { width: 18px; height: 18px; }

/* Connexion et état de la synchronisation */
body[data-page="connexion"] { padding: 0; }
body[data-page="connexion"] #nav { display: none; }
.connexion { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.cx-carte { width: min(420px, 100%); padding: 28px 22px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--filet), 0 20px 50px -30px rgba(42,19,16,.5); display: grid; gap: 6px; }
.cx-logo { height: 44px; justify-self: start; margin-bottom: 6px; }
.cx-carte h1 { margin: 0; font-size: 26px; }
.cx-msg { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: var(--or-clair); color: #6B5622; font-size: 14.5px; }
.cx-carte .btn { width: 100%; margin-top: 8px; }
.cx-liens { display: flex; justify-content: space-between; margin-top: 6px; }
.nuage-bloc { display: grid; gap: 4px; margin-top: 8px; }
.nuage-bloc p { margin: 0; font-size: 14.5px; }
.nuage-etat { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.nuage-etat.ok { background: var(--ok-clair); color: var(--ok); }
.nuage-etat.ko { background: #FCEAEA; color: var(--non); }
.cx-liens { flex-wrap: wrap; gap: 4px 16px; }
