/* Espace propriétaire, ordinateur : uniquement ce qui est propre à l'espace.
   Se charge APRÈS ../../design/00-charte/jetons.css et composants.css (DEV-Design), qui font foi.
   Rien ici ne redéfinit un jeton ni un composant de la charte. */
:root{--violet:#5b4a8a;--violet-doux:#ece8f6}

/* Petits boutons et étiquettes de logement */
.btn-mini{min-height:32px;padding:0 12px;font-size:13px}
.lg{display:inline-flex;align-items:center;font-size:12px;font-weight:800;border-radius:6px;padding:2px 7px;white-space:nowrap;color:var(--mer);background:var(--mer-doux)}
.lg.b{color:var(--or-texte);background:var(--or-doux)}
.lg.c{color:var(--violet);background:var(--violet-doux)}
.champ-r{display:flex;align-items:center;gap:8px;min-width:240px;height:38px;padding:0 12px;border:1px solid var(--trait);border-radius:10px;background:var(--carte);color:var(--gris-2);font-size:14px}
.choix-l{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid var(--trait);border-radius:10px;background:var(--carte);font-size:14px;font-weight:600}

/* Tableaux : compléments du module « tableau » de la charte */
.tableau .num{text-align:right;white-space:nowrap}
.tableau td{white-space:nowrap}
.tableau tr:last-child td{border-bottom:0}
.tableau th .i{width:12px;height:12px;vertical-align:-2px;margin-left:3px;opacity:.6}
.tableau tr.sel td:first-child{box-shadow:inset 3px 0 0 var(--or)}

/* Tuiles : compléments des modules de la charte */
.mini4{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mini4 .tuile{display:flex;flex-direction:column;min-height:150px}
.mini4 .tuile .chiffre{margin-top:auto;font-size:28px}
.tuile.accent .det,.tuile.mer .det{margin-top:14px;border-top:1px solid rgba(255,255,255,.22)}
.tuile.accent .det div,.tuile.mer .det div{display:flex;justify-content:space-between;padding:7px 0;font-size:14px;color:rgba(255,255,255,.85);border-bottom:1px solid rgba(255,255,255,.12)}
.tuile.accent .det b,.tuile.mer .det b{color:#fff}
.tuile.accent .det div.n,.tuile.mer .det div.n{border-bottom:0;font-weight:800;color:#fff;font-size:15px}
.tuile.accent .btn,.tuile.mer .btn{background:#fff;color:#0d1726;border-color:transparent}
.tuile.accent,.tuile.mer{display:flex;flex-direction:column}
.tuile-h .ico{width:32px;height:32px;border-radius:50%;background:var(--sable);display:grid;place-items:center;color:var(--encre-2)}
.tuile.accent .tuile-h .ico{background:rgba(255,255,255,.2);color:#fff}
.tuile.accent .chiffre{font-size:44px}
.tache{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--trait-2)}
.tache:first-of-type{border-top:0;padding-top:2px}
.tache .ic{width:38px;height:38px;border-radius:11px;background:var(--or-doux);color:var(--or-texte);display:grid;place-items:center}
.tache b{display:block;font-size:15px}
.tache .petit{display:flex;gap:6px;align-items:center;margin-top:2px;flex-wrap:wrap}
.carres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.carre{border-radius:18px;background:var(--sable);padding:14px;display:grid;gap:8px;align-content:start}
.carre .r{width:38px;height:38px;border-radius:12px;display:grid;place-items:center}
.carre b{font-size:14px}
.carre .petit{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.legende{display:flex;gap:14px;align-items:center;font-size:12px;color:var(--gris);flex-wrap:wrap}
.legende i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.outils-t{display:flex;gap:8px;align-items:center}

/* Cadre : profil propriétaire, choix du logement dans la barre */
.rail .vg{width:24px;height:24px;border-radius:50%;flex:none}
.rail .vg.tous{background:linear-gradient(135deg,#d6e6f2 0,#f1d8b8 48%,#c9b08a 52%,#8a6634)}
.rail .vg.un{background:linear-gradient(160deg,#d6e6f2 0,#f1d8b8 58%,#5d97c2 59%)}

/* Note pour le CHEF (hors interface) */
.sources{padding:16px 18px;border:2px dashed #c9c2b5;border-radius:14px;background:#f3f0ea;font-size:13px;color:var(--encre-2)}
.sources h2{font-size:14px;margin-bottom:2px}
.sources p{color:var(--gris);margin-bottom:8px}
.sources table{width:100%;border-collapse:collapse}
.sources th,.sources td{text-align:left;vertical-align:top;padding:5px 8px 5px 0;border-top:1px solid #ddd6ca}
.sources th{font-size:12px;color:var(--gris);border-top:0}
.sources td:first-child{width:70%}
.src{display:inline-block;font-weight:800;font-size:11px;padding:1px 6px;border-radius:5px}
.src.app{background:#e3edf6;color:var(--mer)}
.src.axo{background:#efe7f6;color:#6b3fa0}
.src.saisie{background:var(--or-doux);color:var(--or-texte)}
.src.calc{background:var(--neutre-doux);color:var(--gris)}

/* ======================================================================
   Téléphone (rupture V14, Rodolphe le 22/10) : les mêmes modules empilés,
   de grandes tuiles, un grand chiffre par tuile, peu de texte, de la profondeur,
   et la barre du bas flottante en verre (règle du 22/10, référence chef-v14).
   ====================================================================== */
.barre-verre,.fab{display:none}
@media (max-width:700px){
  body{background:var(--fond)}
  .bandeau{position:sticky;top:0;z-index:30}
  .ordi{display:block;width:auto;min-height:0;padding:12px 16px 150px;background:var(--fond)}
  .rail-place{display:none}
  .haut{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:6px}
  .haut .esp{display:block;flex:1;order:0}
  .haut .outils{order:1;height:50px;padding:0 6px;box-shadow:var(--ombre)}
  .haut .profil{order:2;height:50px;padding:0 5px;box-shadow:var(--ombre)}
  .haut .profil>div,.haut .profil>svg{display:none}
  .haut .profil .av{width:40px;height:40px}
  .haut .onglets{order:3;width:100%;height:50px;overflow:hidden;flex-wrap:nowrap;box-shadow:var(--ombre)}
  .haut .onglets a{height:38px;padding:0 14px;font-size:14px}
  .contenu{gap:14px}
  .entete{margin-top:4px}
  .entete h1{font-size:28px;line-height:1.1}
  .entete p,.entete .btn{display:none}
  .grille,.grille.etire{grid-template-columns:minmax(0,1fr);gap:14px}
  .l1,.l2,.l3{grid-column:auto}
  .tuile,.carte{border-radius:28px;border-color:transparent;padding:20px;box-shadow:0 1px 2px rgba(13,23,38,.04),0 18px 36px -20px rgba(13,23,38,.32)}
  .tuile .chiffre{font-size:38px}
  .tuile.accent .chiffre{font-size:52px}
  .tuile.accent,.tuile.mer{box-shadow:0 22px 40px -18px rgba(176,132,76,.65)}
  .mini4{gap:12px}
  .mini4 .tuile{min-height:132px;padding:16px;border-radius:24px}
  .mini4 .tuile .chiffre{font-size:26px}
  .mini4 .tuile .tuile-h h2{font-size:13px;font-weight:600;color:var(--gris)}
  .mini4 .tuile .tuile-h .ico{width:28px;height:28px}
  .tuile-h h2{font-size:17px}
  .tuile.accent .det div{font-size:13.5px}
  .actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .action{border-radius:16px;font-size:11.5px}
  .carres{grid-template-columns:1fr 1fr}
  /* Peu de texte : les tableaux gardent la première et la dernière colonne */
  .tableau th:not(:first-child):not(:last-child),.tableau td:not(:first-child):not(:last-child){display:none}
  .tableau td,.tableau th{padding:12px 4px}
  .outils-t .recherche{display:none}
  /* Les pièces trop larges pour un téléphone */
  .tuile:has(.cal-l),.carte:has(.frise-an),.tuile:has(.frise-an),.apercu{display:none}
  .doc-zone,.avec-panneau{grid-template-columns:minmax(0,1fr)!important}
  .panneau{position:static}
  .panneau .carte:not(.pa-act){display:none}
  .barre-o{flex-wrap:wrap}
  .fl .p b,.fl .p small{display:none}
  .fl .p.on b{display:block;font-size:11px;white-space:nowrap}
  .sources{border-radius:20px}
  .sources td:first-child{width:auto}
  /* La barre du bas, flottante, en verre */
  .barre-verre{display:flex;position:fixed;left:12px;right:12px;bottom:14px;z-index:40;align-items:center;padding:8px 6px;border-radius:28px;
    background:rgba(255,255,255,.62);backdrop-filter:blur(22px) saturate(1.6);-webkit-backdrop-filter:blur(22px) saturate(1.6);
    border:1px solid rgba(255,255,255,.6);box-shadow:0 10px 30px rgba(13,23,38,.16)}
  .barre-verre a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 0;border-radius:20px;color:var(--gris);text-decoration:none}
  .barre-verre a small{font-size:10.5px;font-weight:700}
  .barre-verre a.on{background:rgba(13,23,38,.92);color:#fff}
  .barre-verre .centre{flex:0 0 auto;padding:0 4px}
  .barre-verre .centre span{position:relative;width:52px;height:52px;border-radius:50%;background:var(--or);color:#fff;display:grid;place-items:center;box-shadow:0 6px 18px rgba(195,154,98,.55)}
  .barre-verre .centre em{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;border-radius:999px;background:var(--urgent);color:#fff;font-style:normal;font-size:11px;font-weight:800;display:grid;place-items:center;border:2px solid #fff}
  .barre-verre .centre small{display:none}
  .fab{display:grid;place-items:center;position:fixed;right:16px;bottom:100px;z-index:40;width:54px;height:54px;border-radius:50%;
    background:rgba(13,23,38,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#fff;box-shadow:0 10px 24px rgba(13,23,38,.32)}
}
.b-tel{display:none}
@media (max-width:700px){
  .b-ordi{display:none}.b-tel{display:inline}
  .tuile svg[viewBox="0 0 1060 230"]{height:auto}
  .sources{display:none}
  .ordi{padding-bottom:130px}
}
body{position:relative}
@media (max-width:700px){.barre-o .puces{display:none}}
@media (max-width:700px){
  .contenu{grid-template-columns:minmax(0,1fr)}
  .contenu>*,.avec-panneau>*,.avec-panneau>div>*,.ret>*,.grille>*{min-width:0;max-width:100%}
  .cr-h{flex-direction:column;gap:10px}
  .compte4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .deux-col,.avec-panneau .deux-col,.form-o,.ret,.off,.som,.vis,.formules,.liseuse,.suite,.equip-z,.groupes{grid-template-columns:minmax(0,1fr)!important}
  .compte4{grid-template-columns:repeat(2,1fr)!important}
  .avec-panneau .tete-l,.avec-panneau>div>.tete-l{display:none}
  .fact-h{flex-direction:column}
}
@media (max-width:700px){.avec-panneau .panneau{order:-1}}
@media (max-width:700px){.comp th{width:62px;font-size:10px;letter-spacing:0;padding:0 2px 8px}.comp td{padding:9px 2px;font-size:14px}.comp th:first-child,.comp td:first-child{padding-left:4px}}
