/* Espace OBA · charte : Lavande électrique, ambre, encre, Brume */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.61509fdd1338.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-600.8ea361040c93.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.d11b722a3a26.woff") format("woff"); font-weight: 500; font-display: swap; }
:root { --lavande: #6A2CE0; --lavande-700: #5520C2; --lavande-300: #B394F5; --ambre: #FFC23D; --encre: #140E24; --encre-700: #4A4458; --gris: #6E6782;
        --ligne: #E6E0F5; --brume: #F6F3FF; --ok: #1B7F4C; --ok-bg: #E7F4EC; --warn: #8A5A00; --warn-bg: #FFF4D6; --err: #C42B3E; --err-bg: #FBE9EC; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: "Archivo", system-ui, sans-serif; color: var(--encre); background: var(--brume); font-size: 16px; line-height: 1.5; }
a { color: var(--lavande); }
a:hover { color: var(--lavande-700); }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
.mono { font-family: "Plex Mono", ui-monospace, monospace; font-weight: 500; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }

/* Boutons et champs */
.btn { font: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       padding: 12px 18px; border-radius: 6px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--lavande); color: #fff; }
.btn-primary:hover { background: var(--lavande-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--encre); border-color: #D9D2EA; }
.btn-ghost:hover { border-color: var(--lavande-300); color: var(--encre); }
.btn-link { background: none; border: 0; color: var(--lavande); padding: 0; font-weight: 600; text-decoration: underline; cursor: pointer; font: inherit; }
.btn-danger { background: none; border: 0; color: var(--err); padding: 0; cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=password], .field select {
  font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; color: var(--encre); width: 100%; }
.field input:focus { border-color: var(--lavande); outline: none; box-shadow: 0 0 0 3px rgba(106,44,224,.15); }
.field .aide { font-weight: 400; font-size: 13px; color: var(--gris); }
.field .erreur, .errorlist { color: var(--err); font-weight: 600; font-size: 13px; margin: 0; padding: 0; list-style: none; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--lavande); margin: 0; }
.choix { display: flex; flex-direction: column; gap: 8px; }
.choix label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 15px; }
.choix input { accent-color: var(--lavande); width: 18px; height: 18px; margin: 0; }
.alerte { padding: 12px 14px; font-size: 15px; font-weight: 600; border-left: 4px solid; }
.alerte-err { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.alerte-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.alerte-info { background: var(--warn-bg); border-color: #E8A400; color: var(--warn); }
.chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); } .chip-warn { background: var(--warn-bg); color: var(--warn); } .chip-gris { background: #EFEDF4; color: var(--encre-700); }

/* Pages de connexion : panneau de marque + formulaire */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-marque { flex: 1 1 420px; background: var(--encre); color: #fff; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 40px; }
.auth-marque h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; max-width: 14ch; }
.auth-marque .kicker { color: var(--lavande-300); display: flex; align-items: center; gap: 12px; }
.auth-marque .kicker::before { content: ""; width: 24px; height: 4px; background: var(--ambre); }
.auth-tel { margin-top: auto; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.auth-tel .kicker { color: var(--ambre); } .auth-tel .kicker::before { display: none; }
.auth-tel .mono { font-size: 22px; margin-top: 6px; display: block; }
.auth-tel small { color: var(--lavande-300); font-size: 13px; }
.auth-form { flex: 1 1 420px; background: #fff; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 72px) 20px; }
.auth-form .carte { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-form h2 { font-size: 30px; }
.auth-form p { margin: 0; color: var(--encre-700); }
.liens { font-size: 14px; color: var(--encre-700); display: flex; flex-direction: column; gap: 8px; }

/* Espace connecté */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.app-nav { flex: 0 0 260px; background: var(--encre); color: #fff; padding: 28px 18px; display: flex; flex-direction: column; gap: 28px; }
.app-nav nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav nav a { color: #CFC9DD; text-decoration: none; padding: 11px 10px 11px 26px; border-radius: 6px; }
.app-nav nav a[aria-current=page] { color: #fff; background: #241B3D; box-shadow: inset 4px 0 0 var(--ambre); }
.app-nav .moi { margin-top: auto; border-top: 1px solid #2C2442; padding: 18px 8px 0; display: flex; flex-direction: column; gap: 4px; }
.app-nav .moi span { font-size: 13px; color: var(--lavande-300); }
.app-nav .moi form button { margin-top: 10px; font: inherit; font-size: 13px; font-weight: 600; color: #CFC9DD; background: none; border: 1px solid #3A3156; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.app-main { flex: 1 1 560px; min-width: 0; padding: 32px clamp(20px, 3vw, 40px) 56px; display: flex; flex-direction: column; gap: 24px; max-width: 1200px; }
.app-main h1 { font-size: 28px; }
.carte-blanche { background: #fff; border: 1px solid var(--ligne); padding: 22px 24px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.liste li:last-child { border-bottom: 0; }
.sous { font-size: 13px; color: var(--gris); }
.bandeau-socle { background: var(--warn-bg); color: var(--warn); font-size: 14px; padding: 10px 14px; border-left: 4px solid #E8A400; }
@media (max-width: 760px) { .app-nav { flex: 1 1 100%; padding: 16px; gap: 14px; } .app-nav .moi { margin-top: 0; } }

/* --- Back-office OBA */
.app-nav .nav-titre { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ambre); padding: 18px 10px 6px 26px; }
.app-nav .nav-discret { font-size: 13px; color: #8E86A6 !important; }
.entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; }
.entete .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fil { font-size: 13px; color: var(--gris); margin-bottom: 6px; }
.fil a { color: var(--gris); }
.btn-petit { padding: 8px 14px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--ligne); padding: 16px 18px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; font-weight: 600; }
.stat span { font-size: 13px; color: var(--gris); }
.tableau-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--ligne); }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); padding: 12px 16px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.tableau td { padding: 12px 16px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr.inactif td { color: var(--gris); }
.tableau tr.erreur td { background: var(--err-bg); }
.tableau a { font-weight: 600; text-decoration: none; }
.tableau a:hover { text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.vide { padding: 22px 24px; color: var(--encre-700); }
.form-pile { display: flex; flex-direction: column; gap: 14px; }
.form-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 14px; }
.field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #D9D2EA; border-radius: 6px; width: 100%; }
.field input[type=number], .field input[type=file] { font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; width: 100%; }
.field ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.field ul label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 15px; }
.field ul input { accent-color: var(--lavande); width: 18px; height: 18px; margin: 0; }
.field-check { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 400; }
.field-check input { width: 18px; height: 18px; accent-color: var(--lavande); margin: 0; }
details.ajout { background: #fff; border: 1px solid var(--ligne); }
details.ajout > summary { cursor: pointer; padding: 16px 24px; font-weight: 600; color: var(--lavande); list-style: none; }
details.ajout > summary::-webkit-details-marker { display: none; }
details.ajout > summary::before { content: "+ "; }
details.ajout[open] > summary { border-bottom: 1px solid var(--ligne); }
details.ajout > div { padding: 20px 24px; }
.recherche { display: flex; gap: 10px; flex-wrap: wrap; }
.recherche input, .recherche select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; }
.recherche input[type=search] { flex: 1 1 260px; }
.pagination { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--gris); }
.zone-danger { border-top: 1px solid var(--ligne); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chip-err { background: var(--err-bg); color: var(--err); }
.chip-lav { background: #EEE7FD; color: var(--lavande-700); }
.deux-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .deux-col { grid-template-columns: 1fr; } }
.tableau .num { text-align: right; }

/* --- Technique */
.pastille { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 11px; background: var(--ambre); color: var(--encre); font-size: 12px; font-weight: 600; text-align: center; }
.fiche-dl { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 0; margin: 0; }
.fiche-dl dt, .fiche-dl dd { padding: 10px 0; border-bottom: 1px solid var(--ligne); margin: 0; }
.fiche-dl dt { color: var(--gris); font-size: 14px; padding-right: 16px; }
.fiche-dl dd { font-weight: 600; }
.fiche-dl dd.vide-val { color: #B3ACC4; font-weight: 400; }
.jauge { height: 6px; background: var(--ligne); border-radius: 3px; overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--lavande); }
.app-carte { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); text-decoration: none; color: var(--encre); }
.app-carte:last-child { border-bottom: 0; }
.app-carte:hover .mono { color: var(--lavande); }
.diff td.avant { color: var(--gris); text-decoration: line-through; }
.diff td.apres { font-weight: 600; color: var(--ok); }
@media (max-width: 760px) { .app-main { padding: 20px 16px 48px; } .fiche-dl { grid-template-columns: 1fr; } .fiche-dl dt { border-bottom: 0; padding-bottom: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1000px) { .en-premier-mobile { order: -1; } }

/* --- Pannes */
a.carte-panne { display: block; text-decoration: none; color: var(--encre); border-left: 4px solid var(--err); }
a.carte-panne:hover { border-color: var(--err); box-shadow: 0 2px 10px rgba(20,14,36,.06); }
.barres { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; margin-top: 14px; }
.barre { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.barre .colonne { width: 100%; max-width: 28px; height: 110px; background: var(--brume); display: flex; align-items: flex-end; }
.barre .rempli { width: 100%; background: var(--lavande-300); }
.barre .rempli.bas { background: var(--err); }
.barre .val { font-size: 11px; color: var(--gris); height: 14px; }
.barre .val.bas { color: var(--err); font-weight: 600; }
.barre .mois { font-size: 11px; color: var(--gris); white-space: nowrap; }
.field input[type=date], .field input[type=datetime-local] { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 14px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; color: var(--encre); width: 100%; min-height: 48px; }

/* --- Mode terrain : sombre, contrasté, gros boutons */
.terrain { min-height: 100vh; background: #0E0A1A; color: #F4F1FB; display: flex; flex-direction: column; font-size: 17px;
           --ligne: #2C2442; --gris: #B4ABCB; --encre-700: #D6D0E6; }
.terrain-haut { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.terrain-logo svg { width: 96px; height: auto; display: block; }
.terrain-moi { font-weight: 600; color: var(--lavande-300); }
.terrain-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; position: sticky; top: 0; background: #0E0A1A; z-index: 5; }
.terrain-onglets a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 10px; background: #1C1530; color: #F4F1FB; text-decoration: none; font-weight: 600; font-size: 18px; }
.terrain-onglets a[aria-current=page] { background: var(--lavande); }
.terrain-main { flex: 1; padding: 4px 12px 32px; display: flex; flex-direction: column; gap: 14px; max-width: 720px; width: 100%; margin: 0 auto; }
.terrain-bas { display: flex; justify-content: center; gap: 12px; padding: 18px 12px 28px; border-top: 1px solid #2C2442; }
.terrain-bas button { font: inherit; font-size: 14px; color: #B4ABCB; background: none; border: 1px solid #3A3156; border-radius: 8px; padding: 10px 14px; }
.terrain h1 { font-size: 26px; line-height: 1.15; }
.terrain .sous { color: #B4ABCB; }
.terrain .kicker { color: #B4ABCB; }
.terrain a { color: #C9B4FF; }
.terrain .carte-blanche { background: #1A1430; border-color: #2C2442; color: #F4F1FB; border-radius: 12px; padding: 18px; }
.terrain .liste li, .terrain .app-carte { border-color: #2C2442; color: #F4F1FB; }
.terrain .fiche-dl dt { color: #B4ABCB; } .terrain .fiche-dl dd.vide-val { color: #6E6782; }
.terrain .field { color: #F4F1FB; font-size: 16px; }
.terrain .field input, .terrain .field select, .terrain .field textarea { font-size: 18px; min-height: 52px; }
.terrain .alerte-ok { background: #123524; color: #8EE3B5; border-color: #2BB673; }
.terrain .alerte-err { background: #3A1520; color: #FFB3BE; border-color: #FF5C73; }
.terrain .alerte-info { background: #3A2E0E; color: #FFD98A; border-color: var(--ambre); }
.terrain .chip-ok { background: #123524; color: #8EE3B5; } .terrain .chip-err { background: #4A1622; color: #FFB3BE; }
.terrain .chip-warn { background: #3A2E0E; color: #FFD98A; } .terrain .chip-lav { background: #2C1F55; color: #D7C6FF; } .terrain .chip-gris { background: #2C2442; color: #D6D0E6; }
.terrain .btn-ghost { background: #1C1530; color: #F4F1FB; border-color: #3A3156; }
.terrain .recherche input { font-size: 17px; min-height: 52px; background: #fff; }
.terrain .deux-col { grid-template-columns: 1fr; }
.terrain details.ajout { background: #1A1430; border-color: #2C2442; border-radius: 12px; }
.terrain details.ajout > summary { color: #C9B4FF; font-size: 18px; min-height: 56px; display: flex; align-items: center; }
.terrain details.ajout[open] > summary { border-color: #2C2442; }
.gros-bouton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 76px; padding: 16px; border: 0; border-radius: 14px;
               font: inherit; font-size: 22px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.gros-bouton.prendre { background: var(--ambre); color: var(--encre); }
.gros-bouton.place { background: var(--lavande); color: #fff; }
.gros-bouton.liberee { background: #FF5C73; color: #fff; }
.gros-bouton.fin { background: #2BB673; color: #06210F; }
.gros-bouton.signaler { background: #3A1520; color: #FFB3BE; border: 2px solid #FF5C73; }
.gros-bouton.neutre { background: #1C1530; color: #F4F1FB; border: 2px solid #3A3156; }
.gros-bouton:active { transform: scale(.99); }
.etat-panne { border-radius: 14px; padding: 18px; background: #3A1520; border: 2px solid #FF5C73; }
.etat-panne.prise { background: #3A2E0E; border-color: var(--ambre); }
.etat-panne.sur_place, .etat-panne.piece { background: #241848; border-color: var(--lavande-300); }
.etat-panne b.grand { display: block; font-size: 24px; line-height: 1.2; margin: 4px 0; }
.choix-gros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix-gros label { display: flex; align-items: center; justify-content: center; min-height: 64px; border-radius: 12px; background: #1C1530; border: 2px solid #3A3156; font-size: 20px; font-weight: 600; cursor: pointer; }
.choix-gros input { position: absolute; opacity: 0; pointer-events: none; }
.choix-gros label:has(input:checked) { background: var(--lavande); border-color: var(--lavande-300); color: #fff; }
.choix-gros label:has(input:focus-visible) { outline: 3px solid var(--ambre); }
.choix-gros.oui-non label:has(input[value=True]:checked) { background: #FF5C73; border-color: #FF5C73; }
.frise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 0; }
.frise span { height: 6px; border-radius: 3px; background: #2C2442; }
.frise span.fait { background: #2BB673; }
.frise-libelles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12px; color: #B4ABCB; margin-top: 4px; }

/* --- Tableau de bord personnalisable */
.tdb { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; align-items: start; }
.bloc { grid-column: span 6; min-width: 0; }
.bloc.taille-petit { grid-column: span 2; } .bloc.taille-moyen { grid-column: span 4; } .bloc.taille-large { grid-column: span 6; }
@media (max-width: 1100px) { .bloc.taille-petit { grid-column: span 3; } .bloc.taille-moyen { grid-column: span 6; } }
@media (max-width: 760px) { .tdb { grid-template-columns: 1fr; } .bloc, .bloc.taille-petit, .bloc.taille-moyen { grid-column: 1 / -1; } }
.bloc-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bloc-tete .kicker { flex: 1; }
.poignee, .bloc-masquer, .bloc-redim { display: none; }
.bloc { position: relative; }
.edition .bloc { outline: 2px dashed #D9D2EA; outline-offset: -2px; }
.edition .bloc.tire { opacity: .45; }
.edition .bloc.redim { outline-color: var(--lavande); }
.edition .bloc.masque { opacity: .5; }
.edition .poignee { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 6px;
                    background: var(--brume); color: var(--encre-700); font-size: 18px; cursor: grab; }
.edition .poignee:active { cursor: grabbing; }
.edition .bloc-masquer { display: inline; font: inherit; font-size: 13px; font-weight: 600; color: var(--lavande); background: none; border: 0; cursor: pointer; padding: 4px; }
.edition .bloc-redim { display: block; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border: 0; padding: 0; cursor: ew-resize; touch-action: none;
                       background: linear-gradient(135deg, transparent 50%, var(--lavande) 50%); border-bottom-right-radius: 2px; }
.edition .bloc-redim:hover, .edition .bloc-redim:focus-visible { background: linear-gradient(135deg, transparent 45%, var(--lavande-700) 45%); }
.edition .bloc-corps { pointer-events: none; }
.carte-panne-int { display: block; text-decoration: none; color: var(--encre); border-left: 4px solid var(--err); padding: 12px 14px; background: var(--err-bg); }
.carte-panne-int:hover { box-shadow: 0 2px 10px rgba(20,14,36,.08); }
.sous-carte { border: 1px solid var(--ligne); padding: 14px 16px; }
.prio { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 10px; }
.prio-1 { color: #FF5C73; } .prio-2 { color: #FFB3BE; } .prio-3 { color: var(--gris); }
.carte-prio { flex-direction: column; gap: 2px; min-height: auto; padding: 14px 16px; margin-bottom: 10px; }
.carte-prio small { font-size: 15px; font-weight: 400; opacity: .9; }
.echeance { white-space: nowrap; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: #EFEDF4; color: var(--encre-700); }
.echeance.retard { background: var(--err-bg); color: var(--err); } .echeance.proche { background: var(--warn-bg); color: var(--warn); }
.terrain .echeance { background: #2C2442; color: #D6D0E6; } .terrain .echeance.retard { background: #4A1622; color: #FFB3BE; } .terrain .echeance.proche { background: #3A2E0E; color: #FFD98A; }
details.ajout > summary::before { margin-right: 6px; }
/* Contrats et devis : saisie dans les tableaux */
.tableau input.saisie { font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; color: var(--encre); }
.tableau input.saisie:focus { border-color: var(--lavande); outline: none; box-shadow: 0 0 0 3px rgba(106,44,224,.15); }
.tableau td:has(input.saisie) { padding-top: 6px; padding-bottom: 6px; }
.form-grille .pleine { grid-column: 1 / -1; }
/* Documents : page de signature, pages publiques, espace commercial */
.public { min-height: 100vh; display: flex; flex-direction: column; background: var(--brume); }
.public-tete { background: var(--encre); padding: 18px clamp(16px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.public-tete svg { width: 120px; height: auto; display: block; }
.public-tag { color: var(--lavande-300); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.public-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 48px; display: flex; flex-direction: column; gap: 20px; }
.public-pied { text-align: center; color: var(--gris); font-size: 13px; padding: 20px 16px 28px; }
.doc-hero { background: var(--encre); color: #fff; padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; border-left: 6px solid var(--ambre); }
.doc-hero .kicker { color: var(--lavande-300); }
.doc-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; margin: 8px 0 10px; max-width: 22ch; }
.doc-hero p { margin: 0; color: #E9E4F5; }
.sous-clair { color: var(--lavande-300); font-size: 14px; }
.doc-hero-prix { text-align: right; }
.doc-hero-prix .mono { font-size: clamp(28px, 4vw, 44px); color: var(--ambre); display: block; line-height: 1; }
.doc-hero-prix small { color: var(--lavande-300); }
.doc-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .doc-grille { grid-template-columns: 1fr; } .doc-hero-prix { text-align: left; } }
.doc-corps { display: flex; flex-direction: column; gap: 16px; }
.doc-corps .kicker { margin-bottom: 10px; }
.doc-signer { position: sticky; top: 20px; }
.carte-signer { background: #fff; border: 2px solid var(--lavande); padding: 22px; }
.carte-signer h2 { font-size: 21px; margin: 0 0 6px; }
.signer-details > summary { list-style: none; cursor: pointer; }
.signer-details > summary::-webkit-details-marker { display: none; }
.signer-details[open] > summary { display: none; }
.refuser { margin-top: 14px; }
.refuser > summary { cursor: pointer; color: var(--gris); font-size: 14px; }
.liste-puces { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.liste-options { list-style: none; margin: 0; padding: 0; }
.liste-options li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.liste-options li:last-child { border-bottom: 0; }
.liste-options span { grid-column: 1; color: var(--encre-700); font-size: 14px; }
.liste-options em { max-width: 260px; grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 600; align-self: center; text-align: right; font-size: 14px; }
.liste-options em.offert { background: #FFF3D1; color: #7A5300; padding: 4px 10px; }
.tableau tr.a-traiter td:first-child { box-shadow: inset 4px 0 0 var(--ambre); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--ligne); padding: 18px 20px; }
.kpi .kicker { color: var(--gris); }
.kpi b { display: block; font-size: 28px; font-family: "Plex Mono", ui-monospace, monospace; margin-top: 6px; }
.kpi.fort { background: var(--encre); color: #fff; border-color: var(--encre); }
.kpi.fort .kicker { color: var(--ambre); }
.options-saisie td { vertical-align: middle; }
.options-saisie .nom { min-width: 220px; }
.options-saisie input.saisie, .options-saisie select { font: inherit; font-size: 14px; padding: 7px 9px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; }
.lien-copie { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #FFF3D1; border: 1px solid #F1D48A; padding: 12px 14px; }
.lien-copie input { flex: 1 1 320px; font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; padding: 8px 10px; border: 1px solid #E5C877; background: #fff; }
@media (max-width: 600px) { .liste-options li { grid-template-columns: 1fr; } .liste-options em { grid-column: 1; grid-row: auto; text-align: left; max-width: none; justify-self: start; margin-top: 4px; } }
.liste-options em s { color: var(--gris); font-weight: 400; }
.liste-options em small { font-weight: 400; color: var(--encre-700); }
.badge-web { display: inline-block; background: var(--ambre); color: var(--encre); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; margin-bottom: 4px; }
.bandeau-enveloppe { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #FFF3D1; border-left: 5px solid var(--ambre); padding: 14px 18px; }
.bandeau-enveloppe .kicker { display: block; color: #7A5300; margin-bottom: 2px; }
.bandeau-enveloppe b { font-family: "Plex Mono", ui-monospace, monospace; font-size: 22px; }
.valider-direct { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: var(--lavande); }
.enveloppe-client { background: #fff; border: 1px solid var(--ligne); border-left: 5px solid var(--ambre); padding: 18px 22px; }
.jauge { height: 10px; background: #EEE7FD; margin: 10px 0 6px; }
.jauge span { display: block; height: 100%; background: var(--lavande); }
details.facultatif { border: 1px dashed #CFC9DD; background: #F4F1FB; padding: 0; }
details.facultatif > summary { cursor: pointer; padding: 16px 20px; display: flex; gap: 12px; align-items: baseline; color: var(--encre-700); font-weight: 600; }
details.facultatif:not([open]) > summary { opacity: .75; }
details.facultatif[open] { padding-bottom: 12px; }
details.facultatif > section { margin: 0 12px 12px; }

/* Tableau de bord à widgets : chiffres, à traiter, histogramme, résidences, catalogue, suggestion */
.kpi small { font-size: 16px; color: var(--gris); }
.kpi .sous { display: block; margin-top: 4px; font-size: 13px; }
.kpi.fort .sous { color: #CFC8E4; }
.t-err { color: var(--err); } .t-lav { color: var(--lavande); }
.chip-ambre { background: var(--ambre); color: var(--encre); }
.liste-traiter { list-style: none; margin: 0; padding: 0; }
.liste-traiter li { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.liste-traiter li:last-child { border-bottom: 0; }
.lt-texte { display: flex; flex-direction: column; min-width: 0; }
.lt-texte .sous { font-size: 13px; }
.taille-petit .liste-traiter li { grid-template-columns: 1fr; }
.taille-petit .liste-traiter .chip { justify-self: start; }
.taille-petit .liste-traiter .btn { justify-self: start; }
.histo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; }
.histo-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.histo-val { font-size: 11px; color: var(--gris); margin-bottom: 4px; }
.histo-barre { display: block; background: var(--ok); min-height: 3px; }
.histo-barre.moyen { background: #E8A400; } .histo-barre.bas { background: var(--err); } .histo-barre.vide { background: var(--ligne); }
.histo-mois { font-size: 11px; color: var(--gris); margin-top: 6px; white-space: nowrap; }
@media (max-width: 560px) { .histo-val { display: none; } .histo-mois { font-size: 9px; } }
.legende-dispo { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; margin: -6px 0 10px; font-size: 13px; }
.legende-dispo .pt { display: inline-block; width: 9px; height: 9px; margin-right: 6px; }
.pt.ok { background: var(--ok); } .pt.moyen { background: #E8A400; } .pt.bas { background: var(--err); }
.table-res-wrap { overflow-x: auto; }
.table-res { width: 100%; border-collapse: collapse; }
.table-res th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); padding: 8px 10px; border-bottom: 1px solid var(--ligne); }
.table-res td { padding: 14px 10px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.table-res tr:last-child td { border-bottom: 0; }
.table-res td:first-child { min-width: 180px; }
.pastille { display: inline-block; font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; padding: 3px 8px; margin: 0 6px 6px 0; text-decoration: none; color: var(--encre); background: #EFEDF4; }
.pastille.ok { background: var(--ok-bg); color: var(--ok); } .pastille.moyen { background: var(--warn-bg); color: var(--warn); }
.pastille.bas, .pastille.arret { background: var(--err-bg); color: var(--err); }
.pastille b { font-weight: 600; }
.ok-texte { color: var(--ok); font-size: 13px; white-space: nowrap; }
.etoile { background: none; border: 0; padding: 0 6px 0 0; font-size: 18px; line-height: 1; cursor: pointer; color: #B9B2CC; vertical-align: -1px; }
.etoile.oui, .etoile:hover { color: #E8A400; }
.catalogue { background: #fff; border: 1.5px dashed var(--lavande-300); padding: 18px 20px; margin: 0; }
.catalogue h2 { margin: 0 0 12px; }
.catalogue-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.catalogue-item { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--ligne); padding: 14px; background: var(--brume); }
.catalogue-item .sous { font-size: 13px; flex: 1; }
.catalogue-grille:has(.catalogue-item:not([hidden])) .catalogue-vide { display: none; }
.suggestion { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--ligne); border-left: 4px solid var(--ambre); padding: 14px 18px; }
.suggestion .lt-texte { flex: 1; min-width: 220px; }
.pt.arret { background: #fff; border: 2px solid var(--err); width: 7px; height: 7px; }
.pastille.arret { background: #fff; box-shadow: inset 0 0 0 1.5px var(--err); color: var(--err); }

/* Accès en 3 étapes (signature par lien) */
.etapes-acces { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.etapes-acces li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; background: #fff; border: 1px solid var(--ligne); padding: 12px 14px; }
.etapes-acces li span { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; background: #EFEDF4; color: var(--encre-700); font-size: 14px; }
.etapes-acces li b { font-size: 15px; } .etapes-acces li small { color: var(--gris); font-size: 13px; }
.etapes-acces li.actuelle { border-color: var(--lavande); box-shadow: inset 0 -3px 0 var(--ambre); }
.etapes-acces li.actuelle span { background: var(--lavande); color: #fff; }
.etapes-acces li.fait span { background: var(--ok); color: #fff; }
.etapes-acces li.fait span { font-size: 0; } .etapes-acces li.fait span::before { content: "✓"; font-size: 15px; }
@media (max-width: 640px) { .etapes-acces { grid-template-columns: 1fr; } }

/* Connexion : avantages syndic / conseil syndical, deux vues qui glissent */
.auth-bienvenue { margin: 0; font-size: 15px; font-weight: 600; color: var(--ambre); }
.profils { max-width: 560px; }
.profils-choix { display: inline-flex; gap: 4px; padding: 4px; background: #241B3D; margin-bottom: 28px; }
.profils-choix button { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border: 0; background: transparent; color: var(--lavande-300); cursor: pointer; }
.profils-choix button[aria-selected="true"] { background: var(--ambre); color: var(--encre); }
.profils-fenetre { overflow: hidden; }
.profils-piste { display: flex; width: 200%; transition: transform .45s cubic-bezier(.45,0,.2,1); }
.profils[data-profil="cs"] .profils-piste { transform: translateX(-50%); }
.profil-vue { width: 50%; flex: none; padding-right: 4px; }
.profil-vue[aria-hidden="true"] { visibility: hidden; transition: visibility 0s .45s; }
.profil-vue h1 { margin-top: 14px; }
.avantages { list-style: none; margin: 28px 0 0; padding: 0; }
.avantages li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid #2C2442; font-size: 16px; color: #CFC9DD; line-height: 1.45; }
.avantages li:last-child { border-bottom: 1px solid #2C2442; }
.avantages li::before { content: ""; width: 10px; height: 10px; background: var(--lavande); margin-top: 6px; flex: none; }
.avantages li.ambre::before { background: var(--ambre); }
@media (prefers-reduced-motion: reduce) { .profils-piste { transition: none; } }

/* Créer un devis */
.choix-client { display: flex; gap: 22px; flex-wrap: wrap; }
.lignes-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.totaux-saisie { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--encre-700); }
.totaux-saisie b { color: var(--encre); margin-left: 6px; }
.lignes-devis .total-ligne { white-space: nowrap; color: var(--encre-700); }
.bascule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bascule label { cursor: pointer; }
.bascule input { position: absolute; opacity: 0; }
.bascule span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid #D9D2EA; padding: 14px 16px; border-radius: 6px; background: #fff; }
.bascule b { font-size: 16px; } .bascule small { color: var(--gris); font-size: 13px; }
.bascule input:checked + span { border-color: var(--lavande); background: #F4EFFE; box-shadow: inset 0 -3px 0 var(--ambre); }
.bascule input:focus-visible + span { outline: 3px solid var(--ambre); outline-offset: 2px; }
@media (max-width: 560px) { .bascule { grid-template-columns: 1fr; } }
.biblio-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.biblio-recherche { width: 100%; font-size: 15px; padding: 11px 14px; }
.biblio-groupe { margin-top: 14px; display: grid; gap: 8px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { font: inherit; font-size: 14px; text-align: left; display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 12px; border: 1.5px solid #D9D2EA; background: #fff; border-radius: 6px; cursor: pointer; color: var(--encre); max-width: 100%; }
.puce small { font-size: 12px; color: var(--gris); }
.puce:hover { border-color: var(--lavande-300); }
.puce:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
.puce.chaud { border-color: var(--lavande-300); }
.puce.conseil { border-color: var(--ambre); background: #FFF8E6; }
.biblio-note { margin: 12px 0 0; min-height: 1.4em; color: var(--lavande-700); font-weight: 600; }
.devis-propose { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--ambre); }
.devis-propose > div { flex: 1 1 380px; min-width: 0; }
.pre-pannes { margin: 0; }
.edl-choix { border-left: 4px solid var(--ambre); }
.edl-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.recherche-listes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.recherche-listes input { flex: 1 1 320px; font-size: 15px; padding: 11px 14px; }
.recherche-listes select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; }
.qui-recherche { position: relative; }
.qui-resultats { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1.5px solid var(--lavande-300); border-radius: 6px; box-shadow: 0 16px 40px rgba(20,14,36,.14); margin-top: 4px; max-height: 360px; overflow-y: auto; padding: 4px; }
.qui-item { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; width: 100%; text-align: left; font: inherit; background: none; border: 0; padding: 9px 12px; border-radius: 4px; cursor: pointer; color: var(--encre); }
.qui-item small { grid-column: 1; color: var(--gris); font-size: 13px; }
.qui-item .chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.qui-item:hover, .qui-item:focus-visible { background: #F4EFFE; outline: none; }
.qui-app { padding-left: 30px; }
.qui-recherche input[type=search], .recherche-listes input[type=search] { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #D9D2EA; border-radius: 6px; background: #fff; color: var(--encre); width: 100%; }
.qui-recherche input[type=search]:focus, .recherche-listes input[type=search]:focus { outline: 3px solid #EDE6FF; border-color: var(--lavande); }
.signalement { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--ambre); margin-bottom: 10px; }
.signalement-texte { flex: 1 1 380px; min-width: 0; }
.signalement-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Consignes dans la tournée du technicien */
.consigne { display: grid; gap: 10px; background: #fff; border: 2px solid var(--lavande); padding: 16px; margin-bottom: 10px; }
.consigne.urgente { border-color: var(--err); }
.consigne-texte { font-size: 18px; font-weight: 600; }
.consigne-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.consigne-actions input { flex: 1 1 200px; font: inherit; padding: 10px 12px; border: 1.5px solid #D9D2EA; border-radius: 6px; }
.alerte-consigne { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--lavande); color: #fff; padding: 14px 16px; font-weight: 600; box-shadow: 0 8px 24px rgba(20,14,36,.25); }
.alerte-consigne.urgente { background: var(--err); }
.alerte-consigne a { color: #fff; }
.terrain .consigne { background: #1E1636; color: #fff; border-color: var(--lavande-300); }
.terrain .consigne.urgente { border-color: #FF6B7D; }
.terrain .consigne a { color: #D7C6FF; }
.terrain .consigne .sous { color: #B9B2CC; }
.terrain .consigne-actions input { background: #120D22; color: #fff; border-color: #3A3058; }
.bascule-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .bascule-3 { grid-template-columns: 1fr; } }
.onglets { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1.5px solid var(--ligne); margin-bottom: 4px; }
.onglets a { padding: 10px 14px; text-decoration: none; color: var(--encre-700); font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.onglets a[aria-current=page] { color: var(--encre); border-bottom-color: var(--ambre); }
.onglets a:hover { color: var(--lavande); }
.actions-rapides { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.action-rapide { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid #D9D2EA; border-radius: 6px; text-decoration: none; color: var(--encre); background: #fff; }
.action-rapide small { color: var(--gris); font-size: 13px; }
.action-rapide:hover { border-color: var(--lavande); box-shadow: inset 0 -3px 0 var(--ambre); color: var(--encre); }
.bascule-lien { text-decoration: none; color: var(--encre); }
.bascule-lien span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid #D9D2EA; padding: 14px 16px; border-radius: 6px; background: #fff; }
.bascule-lien.actif span { border-color: var(--lavande); background: #F4EFFE; box-shadow: inset 0 -3px 0 var(--ambre); }
.bascule-lien b { font-size: 16px; } .bascule-lien small { color: var(--gris); font-size: 13px; }
.pastille.pastille-ambre { background: var(--ambre); color: var(--encre); }
.supprimer-ligne { border: 0; background: none; color: var(--gris); font-size: 22px; line-height: 1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.supprimer-ligne:hover, .supprimer-ligne:focus-visible { background: var(--err-bg); color: var(--err); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label.bascule-lien { cursor: pointer; }
label.bascule-lien:focus-within span { outline: 2px solid var(--lavande); outline-offset: 2px; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hors-ligne summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.hors-ligne summary::before { content: "+"; font-weight: 700; color: var(--lavande); }
.hors-ligne[open] summary::before { content: "−"; }
.affilier { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: end; }
.affilier select { width: 100%; }
@media (max-width: 760px) { .affilier { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Assistant (en bas à droite, sur toutes les pages) */
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-size: 15px; }
.assistant-boutons { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.assistant-ouvrir { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--encre); color: #fff; font: 600 15px inherit; font-family: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(20,14,36,.28); }
.assistant-pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 3px rgba(255,194,61,.25); }
.assistant-micro { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ambre); color: var(--encre); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(20,14,36,.22); }
.assistant-micro svg, .assistant-micro-petit svg { width: 22px; height: 22px; fill: currentColor; }
.assistant.ouvert .assistant-boutons { display: none; }
.assistant.ecoute .assistant-micro, .assistant.ecoute .assistant-micro-petit { background: #E5484D; color: #fff; animation: assistant-pouls 1.2s infinite; }
@keyframes assistant-pouls { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 100% { box-shadow: 0 0 0 14px rgba(229,72,77,0); } }
.assistant-panneau { width: min(420px, calc(100vw - 24px)); height: min(620px, calc(100vh - 40px)); background: #fff; border: 1px solid var(--ligne); border-radius: 14px; box-shadow: 0 24px 60px rgba(20,14,36,.28); display: flex; flex-direction: column; overflow: hidden; }
.assistant-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--encre); color: #fff; }
.assistant-tete b { display: block; font-size: 16px; } .assistant-tete small { color: #CFC8E4; font-size: 12px; }
.assistant-outils { display: flex; gap: 6px; align-items: center; }
.assistant-outils button { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: 5px 9px; cursor: pointer; font-family: inherit; font-size: 13px; }
.assistant-outils button[aria-pressed=true] { background: var(--ambre); color: var(--encre); border-color: var(--ambre); }
#assistant-fermer { font-size: 20px; line-height: 1; padding: 2px 10px; }
.assistant-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FAF8FF; }
.assistant-msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; line-height: 1.45; word-wrap: break-word; }
.assistant-msg.lui { background: #fff; border: 1px solid var(--ligne); align-self: flex-start; border-bottom-left-radius: 4px; }
.assistant-msg.moi { background: var(--lavande); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.assistant-msg.note { background: #FFF6DE; border-color: #F3DFA8; }
.assistant-msg.erreur { background: var(--err-bg); color: var(--err); }
.assistant-msg.attente { color: var(--gris); letter-spacing: .2em; animation: assistant-clign 1s infinite; }
@keyframes assistant-clign { 50% { opacity: .35; } }
.assistant-msg ul { margin: 6px 0 0; padding-left: 18px; } .assistant-msg a { color: var(--lavande); }
.assistant-suggestions { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.assistant-suggestions button { border: 1px solid #D9D2EA; background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-family: inherit; cursor: pointer; color: var(--encre); }
.assistant-suggestions button:hover { border-color: var(--lavande); color: var(--lavande); }
.assistant-saisie { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; }
.assistant-saisie textarea { flex: 1; resize: none; border: 1.5px solid #D9D2EA; border-radius: 10px; padding: 10px 12px; font: inherit; max-height: 140px; }
.assistant-saisie textarea:focus { outline: none; border-color: var(--lavande); }
.assistant-micro-petit, .assistant-envoyer { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }
.assistant-micro-petit { background: var(--ambre); color: var(--encre); }
.assistant-envoyer { background: var(--lavande); color: #fff; font-size: 20px; font-weight: 700; }
.assistant.reflechit .assistant-envoyer { opacity: .5; }
.assistant-pied { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--gris); }
@media (max-width: 700px) {
  .assistant { right: 12px; bottom: 12px; }
  .assistant.ouvert { left: 0; right: 0; bottom: 0; top: 0; }
  .assistant.ouvert .assistant-panneau { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .assistant-ouvrir { padding: 12px 16px; }
}
.terrain ~ .assistant .assistant-micro { width: 62px; height: 62px; }
@media print { .assistant { display: none; } }
.assistant-suggestions { max-height: 84px; overflow-y: auto; }
.assistant-suggestions button[data-aller] { border-color: var(--lavande); color: var(--lavande); font-weight: 600; }
.assistant-suggestions button[data-aller]::after { content: " →"; }
.assistant-suites { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-start; }
.assistant-suites button { border: 1.5px solid var(--lavande); background: #fff; color: var(--lavande); border-radius: 999px; padding: 6px 12px; font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.assistant-suites button:hover { background: var(--lavande); color: #fff; }
.assistant-jauge { margin: 6px 12px 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--encre-700); }
.assistant-jauge span { display: block; height: 8px; width: 8%; max-width: 120px; min-width: 10px; border-radius: 4px; background: #E5484D; transition: width .08s; flex: none; }
.assistant-jauge em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Assistant v2 : panneau latéral sur toute la hauteur, la page se décale (bureau) ; plein écran (téléphone) */
@media (min-width: 1100px) {
  body.avec-assistant .app, body.avec-assistant .terrain { margin-right: 400px; transition: margin-right .2s; }
  .assistant.ouvert { top: 0; right: 0; bottom: 0; }
  .assistant.ouvert .assistant-panneau { width: 400px; height: 100vh; border-radius: 0; border: 0; border-left: 1px solid var(--ligne); box-shadow: -8px 0 30px rgba(20,14,36,.08); }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .assistant.ouvert { top: 12px; bottom: 12px; right: 12px; }
  .assistant.ouvert .assistant-panneau { height: 100%; }
}
.assistant-tete { padding: 16px 18px; }
.assistant-raccourcis { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; position: relative; }
.assistant-suggestions { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; max-height: none; padding: 0; flex: 1; min-width: 0; }
.assistant-suggestions button { white-space: nowrap; }
.assistant-menu { flex: none; position: relative; }
.assistant-menu summary { list-style: none; cursor: pointer; border: 1.5px solid var(--lavande); color: var(--lavande); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.assistant-menu summary::-webkit-details-marker { display: none; }
.assistant-menu summary::after { content: " ▾"; }
.assistant-menu[open] summary { background: var(--lavande); color: #fff; }
.assistant-menu-liste { position: absolute; right: 0; bottom: calc(100% + 6px); background: #fff; border: 1px solid var(--ligne); border-radius: 10px; box-shadow: 0 12px 30px rgba(20,14,36,.16); padding: 6px; display: flex; flex-direction: column; min-width: 210px; z-index: 2; }
.assistant-menu-liste button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 7px; font: inherit; font-size: 14px; cursor: pointer; color: var(--encre); }
.assistant-menu-liste button:hover, .assistant-menu-liste button:focus-visible { background: #F4EFFE; color: var(--lavande); }
.assistant-menu-liste button::after { content: none; }

/* ---------------------------------------------------------------- Barre de recherche intelligente */
.rech { position: relative; width: 100%; max-width: 760px; z-index: 50; }
.rech-champ { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #D9D2EA; border-radius: 12px; padding: 4px 6px 4px 14px; box-shadow: 0 2px 10px rgba(20,14,36,.04); }
.rech-champ:focus-within { border-color: var(--lavande); box-shadow: 0 0 0 4px rgba(106,44,224,.12); }
.rech-loupe { width: 20px; height: 20px; fill: var(--gris); flex: none; }
.rech-champ input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 10px 0; background: transparent; color: var(--encre); }
.rech-champ input::-webkit-search-cancel-button { cursor: pointer; }
.rech-micro { width: 40px; height: 40px; flex: none; border: 0; border-radius: 9px; background: var(--ambre); color: var(--encre); cursor: pointer; display: grid; place-items: center; }
.rech-micro svg { width: 20px; height: 20px; fill: currentColor; }
.rech.ecoute .rech-micro { background: #E5484D; color: #fff; animation: assistant-pouls 1.2s infinite; }
.rech-resultats { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--ligne); border-radius: 12px; box-shadow: 0 18px 44px rgba(20,14,36,.16); max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; }
.rech-meilleur { background: #F4EFFE; border: 1.5px solid #DCCDFB; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.rech-meilleur b { display: block; font-size: 16px; margin-top: 2px; }
.rech-meilleur p { margin: 6px 0 0; color: var(--encre-700); line-height: 1.45; }
.rech-meilleur.charge { color: var(--gris); animation: assistant-clign 1s infinite; }
.rech-aller { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--lavande); text-decoration: none; }
.rech-aller:hover, .rech-aller.actif { text-decoration: underline; }
.rech-type { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: 600; padding: 4px 8px 2px; }
.rech-meilleur .rech-type { padding: 0; color: var(--lavande); }
.rech-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--encre); }
.rech-item small { color: var(--gris); font-size: 13px; }
.rech-item:hover, .rech-item.actif { background: #F4EFFE; }
.rech-vide { margin: 8px 10px; color: var(--gris); }
.app-main > .rech { margin-bottom: -6px; }
@media (max-width: 700px) { .rech-champ input { font-size: 15px; } }
.lien-bouton { font: inherit; font-size: 14px; font-weight: 600; color: var(--lavande); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
/* Informer les copropriétaires */
.informer { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .informer { grid-template-columns: 1fr; } }
.informer-liste { display: flex; flex-direction: column; gap: 16px; }
.informer-liste h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin: 0 0 8px; }
.informer-ev { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; background: #fff; border: 1px solid var(--ligne); margin-bottom: 6px; text-decoration: none; color: var(--encre); border-radius: 6px; }
.informer-ev:hover { border-color: #B394F5; }
.informer-ev.actif { border-color: var(--lavande); box-shadow: inset 4px 0 0 var(--ambre); background: #FBF9FF; }
.informer-ev small { color: var(--gris); font-size: 13px; }
.informer-ev.libre { border-style: dashed; }
.informer-editeur { display: flex; flex-direction: column; gap: 16px; }
.informer-texte { font-family: inherit; font-size: 15px; line-height: 1.55; min-height: 280px; resize: vertical; }
.informer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.informer-vide { padding: 30px 10px; text-align: center; }
.informer-vide b { font-size: 19px; }
.app-nav a.nav-informer { border: 1px solid rgba(255,194,61,.35); background: rgba(255,194,61,.1); margin: 4px 0; }
.app-nav a.nav-informer[aria-current] { background: rgba(255,194,61,.18); }
.informer-editeur input.saisie, .informer-editeur textarea.saisie { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1.5px solid #D9D2EA; border-radius: 6px; font: inherit; font-size: 15px; background: #fff; }
.informer-editeur input.saisie:focus, .informer-editeur textarea.saisie:focus { outline: 3px solid #EDE6FF; border-color: var(--lavande); }
.signaler { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .signaler { grid-template-columns: 1fr; } }
.signaler-aide ol { margin: 10px 0 14px; padding-left: 20px; line-height: 1.6; color: var(--encre-700); }
.btn-signaler { background: var(--ambre); color: var(--encre); border: 0; font-weight: 600; white-space: nowrap; }
.btn-signaler::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--encre); margin-right: 8px; vertical-align: middle; }
.haut-espace { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.haut-espace .rech { flex: 1 1 420px; }
.dossiers-ag { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dossier-ag { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--encre); }
.dossier-ag:hover { border-color: var(--lavande); }
.dossier-ag b { font-size: 18px; } .dossier-ag small { color: var(--gris); margin-bottom: 10px; }
.dossier-ag .btn { align-self: flex-start; }

/* E-mail du lundi */
.resume-reglage{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 22px;margin:0 0 26px}
.resume-reglage p{margin:0}
.resume-titre{font-size:17px;margin:0 0 4px}
.resume-apercu{width:100%;max-width:680px;height:900px;border:1px solid var(--trait,#e4e0ee);border-radius:8px;background:#F6F3FF;margin-top:10px}
.moi .moi-lien{display:block;font-size:12.5px;margin:6px 0 2px;color:inherit;opacity:.8}

/* QR code résident : page publique, pensée pour le téléphone */
.qr-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--brume); }
.qr-haut { background: var(--encre); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qr-haut svg { width: 96px; height: auto; }
.qr-haut span { font-size: 12px; opacity: .7; text-align: right; }
.qr-main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 16px 28px; }
.qr-app { margin: 0 0 14px; font-size: 14px; color: var(--encre-700); }
.qr-urgence { display: block; background: var(--encre); color: #fff; border-radius: 14px; padding: 16px 18px; text-decoration: none; border-left: 6px solid var(--ambre); }
.qr-urgence:hover { color: #fff; }
.qr-urgence b { display: block; font-size: 18px; color: var(--ambre); }
.qr-urgence span { display: block; font-size: 14px; opacity: .9; margin-top: 2px; }
.qr-urgence .qr-tel { font-family: "Space Mono", monospace; font-size: 24px; opacity: 1; margin-top: 8px; letter-spacing: .5px; }
.qr-etat { margin: 14px 0 0; background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.qr-main h1 { font-size: 24px; line-height: 1.2; margin: 24px 0 12px; }
.qr-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.qr-form legend { font-weight: 600; margin-bottom: 8px; }
.qr-motifs { display: grid; gap: 8px; }
.qr-motifs label { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ligne); border-radius: 12px; padding: 14px; font-size: 16px; cursor: pointer; }
.qr-motifs input { accent-color: var(--lavande); width: 20px; height: 20px; flex: none; }
.qr-motifs label:has(input:checked) { border-color: var(--lavande); background: #F1EBFF; }
.qr-motifs .qr-motif-urgent { border-color: #F3C3CB; }
.qr-motifs .qr-motif-urgent:has(input:checked) { border-color: var(--err); background: var(--err-bg); }
.qr-champ { display: block; font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.qr-champ textarea, .qr-champ input { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 12px; border: 2px solid var(--ligne); border-radius: 10px; background: #fff; }
.qr-envoyer { width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: var(--lavande); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.qr-note, .qr-erreur { font-size: 13px; color: var(--gris); margin: 10px 0 0; }
.qr-erreur { color: var(--err); margin: 0 0 8px; }
.qr-pied { font-size: 12px; color: var(--gris); text-align: center; padding: 16px; }
.qr-merci { text-align: center; padding: 18px 0 22px; }
.qr-merci h1 { margin-top: 10px; }
.qr-coche { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 34px; line-height: 64px; font-weight: 700; }
/* Côté OBA : signalements des résidents */
.residents { border-left: 5px solid var(--ambre); margin-bottom: 18px; }
.residents .resident { align-items: center; gap: 14px; }
.resident-urgent { background: var(--err-bg); border-radius: 8px; padding-left: 8px !important; }
.resident-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.resident-actions form { margin: 0; }
.residents-rappel { border-left: 5px solid var(--ambre); margin-bottom: 14px; }

/* Visite guidée (terrain, téléphone) */
.vg { padding-bottom: 40px; }
.vg-haut { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: sticky; top: 0; background: #0E0A1A; z-index: 6; border-bottom: 1px solid #2C2442; }
.vg-retour { font-size: 26px; text-decoration: none; color: #C9B4FF; padding: 2px 6px; }
.vg-titre { flex: 1; min-width: 0; line-height: 1.25; }
.vg-titre b { font-size: 19px; color: #fff; }
.vg-titre span { display: block; font-size: 13px; color: #B4ABCB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-reseau { font-size: 14px; color: #6E6782; }
.vg-reseau.ok { color: #2BB673; } .vg-reseau.hors { color: var(--ambre); }
.vg-voix { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.vg-micro { flex: none; width: 86px; height: 86px; border-radius: 50%; border: 0; background: var(--lavande); color: #fff; font: inherit; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; box-shadow: 0 0 0 0 rgba(255,194,61,.6); }
.vg-micro[aria-pressed=true] { background: var(--ambre); color: var(--encre); animation: vg-pulse 1.6s infinite; }
.vg-micro:disabled { background: #2C2442; color: #8E86A6; }
.vg-micro-ico { width: 18px; height: 26px; border: 3px solid currentColor; border-radius: 10px; position: relative; }
.vg-micro-ico::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 3px; height: 6px; background: currentColor; transform: translateX(-50%); }
@keyframes vg-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,194,61,.55); } 70% { box-shadow: 0 0 0 16px rgba(255,194,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,194,61,0); } }
.vg-bulles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vg-dit { margin: 0; font-size: 15px; color: #D6D0E6; }
.vg-oba { margin: 0; background: #2C1F55; color: #F4F1FB; border-radius: 12px; padding: 10px 12px; font-size: 16px; line-height: 1.35; }
.vg-progres { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; font-size: 13px; color: #B4ABCB; }
.vg-jauge { flex: 1; height: 6px; background: #2C2442; border-radius: 3px; overflow: hidden; }
.vg-jauge span { display: block; height: 100%; background: #2BB673; transition: width .3s; }
.vg-zones { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.vg-zones button { flex: none; min-height: 46px; padding: 0 14px; border-radius: 23px; border: 1px solid #3A3156; background: #1C1530; color: #F4F1FB; font: inherit; font-size: 15px; font-weight: 600; }
.vg-zones button small { color: #B4ABCB; font-weight: 400; margin-left: 4px; }
.vg-zones button[aria-current=true] { background: var(--lavande); border-color: var(--lavande); }
.vg-zones button[aria-current=true] small { color: #E6DCFF; }
.vg-zones button.fini { border-color: #2BB673; }
.vg-surveiller { margin: 0 14px 12px; background: #3A2E0E; color: #FFD98A; border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.vg-liste, #vg-pasdu { display: flex; flex-direction: column; gap: 8px; padding: 0 14px; }
.vg-op { display: flex; align-items: center; gap: 10px; background: #1A1430; border: 1px solid #2C2442; border-radius: 12px; padding: 12px; }
.vg-op-txt { flex: 1; min-width: 0; }
.vg-op-txt b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.vg-freq { display: block; font-size: 12px; color: #B4ABCB; margin-top: 3px; }
.vg-etat { display: block; font-size: 13px; margin-top: 4px; color: #FFD98A; }
.vg-op-btn { display: flex; gap: 6px; flex: none; }
.vg-op-btn button { width: 54px; height: 50px; border-radius: 10px; border: 1px solid #3A3156; background: #241C3D; color: #F4F1FB; font: inherit; font-weight: 700; font-size: 16px; }
.vg-op-btn .vg-ok.actif { background: #1B7F4C; border-color: #2BB673; }
.vg-op-btn .vg-pb.actif { background: #8A5A00; border-color: var(--ambre); }
.vg-op.e-ok { border-color: #1B7F4C; }
.vg-op.e-danger { border-color: #FF5C73; } .vg-op.e-danger .vg-etat { color: #FFB3BE; }
.vg-op.e-reprendre, .vg-op.e-surveiller { border-color: #8A5A00; }
.vg-op.e-na .vg-op-txt b, .vg-op.e-non_fait .vg-op-txt b { color: #8E86A6; }
.vg-pasdu { margin: 14px 14px 0; background: #1A1430; border: 1px solid #2C2442; border-radius: 12px; }
.vg-pasdu summary { padding: 14px; color: #C9B4FF; font-size: 15px; }
.vg-pasdu #vg-pasdu { padding: 0 10px 12px; }
.vg-fin { padding: 22px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.vg-autre { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #D6D0E6; }
.vg-autre textarea, .vg-rem textarea { font: inherit; font-size: 16px; padding: 10px; border-radius: 10px; border: 1px solid #3A3156; background: #fff; color: var(--encre); }
.vg-terminer { min-height: 60px; border: 0; border-radius: 12px; background: #1B7F4C; color: #fff; font: inherit; font-size: 19px; font-weight: 700; }
.vg-fin form { margin: 0; text-align: center; }
.vg-abandon { background: none; border: 0; color: #8E86A6; font: inherit; font-size: 14px; text-decoration: underline; padding: 8px; }
.vg-feuille { position: fixed; inset: 0; background: rgba(5,3,12,.72); z-index: 20; display: flex; align-items: flex-end; }
.vg-feuille[hidden] { display: none; }
.vg-feuille-boite { width: 100%; max-width: 640px; margin: 0 auto; background: #1A1430; border-radius: 18px 18px 0 0; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 12px; max-height: 92vh; overflow: auto; }
.vg-f-zone { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #B4ABCB; }
.vg-feuille h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.vg-etats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vg-etats button { min-height: 50px; border-radius: 10px; border: 1px solid #3A3156; background: #241C3D; color: #F4F1FB; font: inherit; font-size: 15px; font-weight: 600; }
.vg-etats button.actif { background: var(--lavande); border-color: var(--lavande-300); }
.vg-etats button[data-etat=danger].actif { background: #C42B3E; border-color: #FF5C73; }
.vg-arret { display: flex; gap: 10px; align-items: center; background: #3A1520; color: #FFB3BE; border-radius: 10px; padding: 12px; font-size: 15px; }
.vg-arret[hidden] { display: none; }
.vg-arret input { width: 22px; height: 22px; }
.vg-rem { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #D6D0E6; }
.vg-f-actions { display: flex; align-items: center; gap: 12px; }
.vg-photo-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px dashed #6E6782; color: #C9B4FF; font-weight: 600; cursor: pointer; }
.vg-photo-btn input { display: none; }
.vg-photo-ok { color: #8EE3B5; font-size: 14px; }
.vg-f-bas { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.vg-f-bas button { min-height: 54px; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 700; border: 0; }
.vg-sec { background: #2C2442; color: #F4F1FB; } .vg-prim { background: var(--lavande); color: #fff; }
/* Validation d'une visite guidée, plan de visite */
.vv-grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 900px) { .vv-grille { grid-template-columns: 1fr; } }
.vv-cr { width: 100%; font: inherit; font-size: 15px; line-height: 1.5; padding: 12px; border: 1px solid var(--ligne); border-radius: 10px; }
.vv-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.vv-photos a { width: 180px; text-decoration: none; font-size: 13px; color: var(--encre-700); }
.vv-photos img { width: 180px; height: 135px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.vv-zone { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 14px 0 4px; }
.vv-journal p { margin: 0 0 6px; font-size: 14px; } .vv-journal p.oba { color: var(--lavande-700); }
.pv-natures { display: flex; gap: 8px; margin: 4px 0 6px; }
.pv-zone-titre { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 18px 0 6px; }
.pv-op { background: #fff; border: 1px solid var(--ligne); border-radius: 10px; margin-bottom: 6px; }
.pv-op summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; }
.pv-inactif summary b { color: var(--gris); text-decoration: line-through; }
.pv-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; padding: 4px 14px 14px; align-items: end; }
.pv-champ { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--encre-700); }
.pv-champ input:not([type=checkbox]), .pv-champ select { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--ligne); border-radius: 8px; }
.pv-libelle, .pv-mots_cles { grid-column: span 2; } .pv-relance { grid-column: span 2; }
.pv-actif { flex-direction: row; align-items: center; gap: 8px; }
@media (max-width: 800px) { .pv-form { grid-template-columns: 1fr 1fr; } }
.vv-nonfaits { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--ligne); font-size: 14px; }
.vg-horsligne { margin: -4px 14px 12px; font-size: 13px; color: #B4ABCB; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vg-horsligne[hidden] { display: none; }
.vg-horsligne.pret span::before { content: "✓ "; color: #2BB673; font-weight: 700; }
.vg-horsligne.erreur span { color: #FFD98A; }
.vg-horsligne button { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--lavande-300); background: none; color: #E6DCFF; font: inherit; font-size: 14px; font-weight: 600; }
.vg-horsligne small { width: 100%; }
.vv-journal audio { display: block; height: 32px; margin-top: 4px; max-width: 320px; }
