/* ═══ Espace Qualitest — la disposition et la matière de V8 (008), v2 du 09/11/2026 ═══
   jules : « une interface comme V8 (le logo Qualitest en mode métallique est incroyable) ». Mêmes jetons et mêmes
   classes que apps/web/app/globals.css de V8 (metal, etiquette, titre-section, chiffre-cle, pastille, bouton, champ),
   même coque : bandeau de verre de 58 px, rail de 178 px à gauche, barre du pouce au téléphone, cartes arrondies.
   Noir franc, jamais de dégradé de fond. Le logo QUALITEST en métal poli est l'identité de l'Espace. */
:root {
  --vide: #000; --acier: #0d0d0e; --verre: rgba(255, 255, 255, 0.035); --verre-trait: rgba(255, 255, 255, 0.075);
  --trait: #1e1f22; --trait-vif: #34363b; --rouge: #e5484d; --rouge-vif: #ff5a5f; --froid: #f2f2f2; --pale: #8b8d92;
  --ambre: #ff8a3d; --etat-up: #e8e8e8; --etat-degraded: #ff8a3d; --etat-down: #e5484d; --etat-unknown: #5a6472; --etat-paused: #9a9ca1;
  --rayon: 14px; --rayon-carte: 18px; --gouttiere: clamp(12px, 2.2vw, 22px);
  --police: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI Variable Display', 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--vide); color: var(--froid); font-family: var(--police); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 2px; }

/* ── Matières de V8 ── */
.metal { background: var(--verre); border: 1px solid var(--verre-trait); border-radius: var(--rayon-carte);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); }
.metal.barre { border-radius: 0; border-left: 0; border-right: 0; background: rgba(0, 0, 0, 0.62); }
.chiffre-cle { font-variant-numeric: tabular-nums; font-weight: 200; letter-spacing: -0.03em; font-size: 30px; line-height: 22.5px; display: block; transform: translateY(-3px); }
.etiquette { font-size: 10px; letter-spacing: 0.01em; color: var(--pale); font-weight: 400; }
.titre-section { font-size: clamp(18px, 2.9vw, 24px); line-height: clamp(22.5px, 3.6vw, 28.5px); letter-spacing: -0.015em; font-weight: 300; margin: 0; }
.pastille { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.etat-up { background: var(--etat-up); } .etat-degraded { background: var(--etat-degraded); } .etat-down { background: var(--etat-down); }
.etat-unknown { background: var(--etat-unknown); } .etat-paused { background: transparent; box-shadow: inset 0 0 0 1.5px var(--etat-paused); }
.bouton { font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--verre-trait);
  border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--froid); cursor: pointer; min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: border-color .12s, background .12s, color .12s; white-space: nowrap; }
.bouton:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.09); color: #fff; }
.bouton.pris, .bouton.pris:hover { background: #f2f2f2; border-color: #f2f2f2; color: #000; }
.bouton.pris .pastille.etat-up { background: #000; }
.bouton:disabled { opacity: .32; cursor: not-allowed; }
.bouton-danger:hover:not(:disabled) { border-color: var(--rouge-vif); background: rgba(229, 72, 77, 0.14); }
.pilule-blanche { border: 0; border-radius: 999px; background: #f2f2f2; color: #000; font-weight: 600; font-size: 14px; padding: 12px 24px; cursor: pointer; align-self: flex-start; }
.pilule-blanche:hover { background: #fff; } .pilule-blanche[disabled] { opacity: .55; cursor: progress; }
.champ { width: 100%; padding: 11px 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--verre-trait); border-radius: 12px;
  color: var(--froid); font: 16px var(--police); outline: none; transition: border-color .15s; }
.champ:focus { border-color: rgba(255, 255, 255, .3); }
.gouttiere-sure { padding-left: max(var(--gouttiere), env(safe-area-inset-left)); padding-right: max(var(--gouttiere), env(safe-area-inset-right)); }

/* ── LE LOGO : QUALITEST en métal poli (jules : « incroyable ») — volontairement un dégradé SUR LES LETTRES, jamais au fond ── */
.logo-metal { font-weight: 300; letter-spacing: .32em; padding-left: .32em; white-space: nowrap; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e4e5e7 30%, #9a9ca1 49%, #6e7076 52%, #d7d8db 68%, #f4f4f5 82%, #a3a5aa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .85)) drop-shadow(0 -1px 0 rgba(255, 255, 255, .07)); }

/* ── La porte (celle de V8 et de VAULT CONTROL), avec le logo en métal ── */
.porte { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.porte .battant { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transition: transform .75s cubic-bezier(.76, 0, .18, 1); }
.porte .haut { top: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); } .porte .bas { bottom: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.porte .fente { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #fff; transform: scaleX(0); transform-origin: center;
  box-shadow: 0 0 18px 1px rgba(255, 255, 255, .55); animation: fente-s .55s ease-in-out forwards, fente-o 1.6s .55s ease-in-out infinite; }
.porte .mot { position: absolute; left: 0; right: 0; top: calc(50% - 50px); text-align: center; opacity: 0; animation: mot-a .6s .05s forwards; }
.porte .mot .logo-metal { font-size: clamp(22px, 4vw, 38px); }
.porte.ouvre .haut { transform: translateY(-101%); } .porte.ouvre .bas { transform: translateY(101%); }
.porte.ouvre .fente, .porte.ouvre .mot { opacity: 0 !important; transition: opacity .3s; animation: none; }
@keyframes fente-s { to { transform: scaleX(1); } }
@keyframes fente-o { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes mot-a { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Connexion (comme celle de V8, avec le logo) ── */
.entree { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.carte-entree { width: min(400px, 100%); padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.carte-entree .logo-metal { font-size: 30px; }
.carte-entree .sous { margin: -4px 0 10px; }
.carte-entree label { display: flex; flex-direction: column; gap: 7px; }
.carte-entree .coche { flex-direction: row; align-items: center; gap: 9px; }
.carte-entree .coche input { accent-color: #f2f2f2; }
.erreur { margin: 0; min-height: 16px; font-size: 12.5px; color: var(--rouge-vif); }

/* ── La coque : bandeau, rail, pouce ── */
.bandeau { position: sticky; top: 0; z-index: 40; }
.bandeau-in { max-width: 1680px; margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 12px; }
.marque { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marque .filet { width: 3px; height: 22px; border-radius: 2px; background: var(--froid); opacity: .85; flex: none; }
.marque .logo-metal { font-size: 18px; display: block; }
.marque .sous { display: block; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bandeau-droite { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.flux { display: flex; align-items: center; gap: 7px; }
.corps { max-width: 1680px; margin: 0 auto; display: flex; gap: 20px; }
.rail { position: sticky; top: 58px; width: 178px; flex: none; height: fit-content; display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.rail a { display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 10px 12px; color: var(--pale); font-size: 13px; transition: background .12s, color .12s; }
.rail a:hover { background: rgba(255, 255, 255, .04); color: var(--froid); }
.rail a.on { background: rgba(255, 255, 255, .09); color: var(--froid); }
.glyphe { font-weight: 300; width: 16px; text-align: center; display: inline-block; }
.contenu { flex: 1; min-width: 0; padding: 16px 0 48px; }
.pouce { display: none; }
.vue { display: flex; flex-direction: column; gap: 16px; }
.tete-vue { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }

/* ── Accueil : la plaque au logo, puis un cœur par logiciel ── */
.plaque { padding: clamp(22px, 4vw, 40px) clamp(18px, 3vw, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.plaque .logo-metal { font-size: clamp(28px, 5.6vw, 62px); letter-spacing: .26em; padding-left: .26em; }
.plaque .legende { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.plaque .legende p { margin: 0; color: #c9cacd; font-size: 13px; line-height: 1.55; max-width: 520px; }
.mesures { display: flex; gap: 28px; flex-wrap: wrap; }
.mesures .etiquette { display: block; margin-top: 6px; }
.coeurs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.coeur, .tuile { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.coeur.grand { grid-column: span 2; }
.coeur-tete, .tuile-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.coeur-tete h2, .tuile-tete h2 { margin: 0; flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forme { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #5d6066; padding: 0 12px 8px; margin-top: -6px; }
.toile { position: relative; height: 240px; background: #000; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.coeur.grand .toile { height: 320px; }
.toile > canvas, .toile > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 18px 12px 6px; }
.coeur.grand .chiffres { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chiffre { min-width: 0; } .chiffre .etiquette { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.coeur-pied { padding: 6px 12px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coeur-pied.panne { color: var(--rouge-vif); white-space: normal; }

/* ── Lobby : les tuiles de V8, avec la vraie page de chaque logiciel ── */
.tuiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.apercu { position: relative; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; background: #05070a; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); cursor: pointer; display: block; }
.apercu iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; background: #000; }
.apercu .voile { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; opacity: 0; transition: opacity .15s; }
.apercu:hover .voile, .apercu:focus-visible .voile { opacity: 1; }
.apercu .vide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; color: var(--pale); font-size: 12px; }
.tuile .objet { margin: 0; padding: 10px 12px 0; color: var(--pale); font-size: 11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tuile-pied { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; }
.tuile-pied .etiquette { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Logigrammes ── */
.logi-barre { display: flex; gap: 6px; flex-wrap: wrap; }
.logi-cadre { overflow: hidden; }
.logi-cadre iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 520px; border: 0; background: #000; }

/* ── Plein écran d'un logiciel (celui du lobby de V8) ── */
.plein { position: fixed; inset: 0; z-index: 70; background: #05070a; display: flex; flex-direction: column; }
.plein-barre { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.plein-barre h2 { margin: 0; flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 22/11/2026, Dominique : le logo de Qualitest à la place du nom du logiciel (le nom reste lu par les lecteurs d'écran) ;
   la place réservée à « À faire » à droite de la barre */
.plein-barre .pastille { display: none; }
.plein-logo { display: block; height: 22px; width: auto; flex: none; margin-left: max(16px, env(safe-area-inset-left)); }
/* mode clair : la page entière est inversée (clair.css) et les images remises à l'endroit ; le logo (texte blanc) doit, lui,
   rester inversé avec la page pour être lisible sur le fond clair */
html[data-theme="clair"] .plein-logo { filter: none !important; }
.plein-barre h2#plein-nom { font-size: 0; }
.plein-afaire { flex: none; height: 1px; width: 0; }
/* Le CRM ouvert : UNE ligne (Dominique, 22/11/2026). La barre de l'Espace ne garde que ses boutons, posée à droite par-dessus
   le haut du CRM (même hauteur que son bandeau : 56 px), sans fond ; le CRM a son logo et laisse la place à droite. */
.plein[data-app="crm"] > .barre { position: absolute; top: 0; right: 0; z-index: 3; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.plein[data-app="crm"] .plein-barre { height: 56px; padding: 0 max(12px, env(safe-area-inset-right)) 0 0; gap: 8px; }
.plein[data-app="crm"] .plein-logo, .plein[data-app="crm"] .plein-barre h2, .plein[data-app="crm"] .plein-barre .pastille { display: none; }
.plein[data-app="crm"] .plein-barre .bouton, .plein[data-app="crm"] .plein-barre .ms-bouton { min-height: 34px; padding-top: 6px; padding-bottom: 6px;
  background: rgba(16, 16, 19, .9); color: #f2f2f2; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }   /* lisibles sur le CRM clair ou sombre, comme « À faire » */
.plein[data-app="crm"] .plein-barre .bouton:hover, .plein[data-app="crm"] .plein-barre .ms-bouton:hover { background: #26262b; }
.plein iframe { flex: 1; min-height: 0; width: 100%; border: 0; background: #05070a; }
.version-pied { padding: 18px 0 8px; }

/* ── Téléphone : la barre du pouce, comme V8 ── */
@media (max-width: 1023px) {
  .rail { display: none; }
  .corps { display: block; }
  .contenu { padding: 14px 0 96px; }
  .pouce { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .pouce a { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-top: 8px;
    border-top: 2px solid transparent; color: var(--pale); font-size: 10px; letter-spacing: .01em; }
  .pouce a.on { border-top-color: var(--froid); color: var(--froid); }
  .pouce .glyphe { font-size: 16px; line-height: 1; }
}
@media (max-width: 760px) {
  .marque .logo-metal { font-size: 15px; letter-spacing: .24em; }
  .bandeau-droite .qui, .flux .etiquette { display: none; }
  .coeurs, .tuiles { grid-template-columns: minmax(0, 1fr); }
  .coeur.grand { grid-column: auto; }
  .coeur.grand .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .coeur.grand .toile { height: 300px; }
  .mesures { gap: 18px; }
  .logi-cadre iframe { height: 70vh; }
  .plein-part { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .porte .battant, .porte .fente, .porte .mot { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}

/* ── Accueil v2 (19/11/2026) — les deux cœurs d'ECOOT, les cases de Q8, le cœur de BA88, S8, le fil du CRM ── */
.coeurs.accueil2 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); grid-auto-rows: 8px; grid-auto-flow: row dense; gap: 12px; align-items: start; }
.coeurs.accueil2 > * { align-self: start; }
/* Les cartes à cœur en noir franc : le cœur se fond dans la carte (jules : « une image sur du gris… une grosse image rajoutée ») */
.coeurs.accueil2 .coeur.ecoot2, .coeurs.accueil2 .coeur.ba88, .coeurs.accueil2 .coeur.crm, .coeurs.accueil2 .coeur.s8 { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
.coeur-tete .bouton.mini, .petite-case .bouton.mini { min-height: 28px; padding: 4px 10px; font-size: 9.5px; flex: none; }
.coeur.ecoot2 .duo { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 0; padding: 4px 12px 0; }
/* Les deux cœurs d'ECOOT : même largeur, même hauteur, côte à côte, au même niveau (jules, 19/11 soir) */
.nc8-zone { position: relative; flex: 1 1 260px; max-width: 320px; height: 340px; background: #000; overflow: hidden; }
.arbre-zone { position: relative; flex: 1 1 260px; max-width: 320px; height: 340px; background: #000; overflow: hidden; }
.nc8-zone > *, .arbre-zone > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chiffres.cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Q8 : une case par onglet */
.cases { display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 4px; }
.case { display: grid; grid-template-columns: 26px 1fr auto 18px; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--trait); background: rgba(255, 255, 255, .02); color: var(--froid); font: inherit; }
.case:hover { border-color: var(--trait-vif); background: rgba(255, 255, 255, .05); }
.case .ico { grid-row: 1 / 3; font-size: 18px; text-align: center; }
.case .nom { font-size: 13px; font-weight: 500; }
.case .chiffre-cle { grid-row: 1 / 3; grid-column: 3; font-size: 26px; transform: none; line-height: 1; color: var(--pale); }
.case .etiquette { grid-column: 2; }
.case .aller { grid-row: 1 / 3; grid-column: 4; color: var(--pale); font-size: 18px; }
.case.neuf { border-color: rgba(70, 195, 123, .45); }
.case.neuf .chiffre-cle { color: #fff; }
/* BA88 : le cœur NC820 et sa liste */
.ba88-corps { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; padding: 0 12px; }
.ba88-toile { height: 300px; overflow: hidden; }
.ba88-liste { display: flex; flex-direction: column; gap: 9px; padding: 8px 0; }
.ba88-liste .ligne { display: flex; flex-direction: column; gap: 3px; }
.ba88-liste .chiffre-cle { font-size: 20px; transform: none; line-height: 1; color: var(--pale); }
.ba88-liste .ligne.neuf .chiffre-cle { color: #fff; }
.ba88-liste .bouton { align-self: flex-start; margin-top: 4px; }
/* S8 */
.s8-corps { padding: 6px 14px 4px; display: flex; flex-direction: column; gap: 6px; }
.grand-chiffre { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 10px; border-bottom: 1px solid var(--trait); margin-bottom: 4px; }
.grand-chiffre .chiffre-cle { font-size: 54px; line-height: 1; transform: none; }
.s8-corps .ligne { display: flex; align-items: baseline; gap: 10px; }
.s8-corps .ligne .n { min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 300; font-size: 16px; }
/* CRM : cœur et fil */
.crm-corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; padding: 0 12px; }
.crm-toile { height: 250px; overflow: hidden; }
.toile.petite { height: 170px; border-radius: 12px; overflow: hidden; border: 1px solid var(--trait); }
.crm-fil { display: flex; flex-direction: column; gap: 7px; font-size: 12px; line-height: 1.35; max-height: 190px; overflow: hidden; }
.fil-ligne { display: flex; flex-direction: column; gap: 1px; } .fil-ligne span:last-child { overflow-wrap: anywhere; }
/* Les autres logiciels : une simple case */
.petites { grid-column: 1 / -1; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.petite-case { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-width: 0; }
.petite-case b { font-size: 12.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.petite-case .etiquette { margin-left: auto; white-space: nowrap; }
@media (max-width: 760px) {
  .coeur.grand.ecoot2 { grid-column: auto; }
  .ba88-corps, .crm-corps { grid-template-columns: 1fr; }
  .chiffres.cinq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* S8 : l'arbre et ses chiffres côte à côte (19/11/2026) */
.s8-duo { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; padding: 0 12px; }
.s8-duo .s8-arbre { flex: 1 1 260px; max-width: 320px; height: 340px; }
.s8-duo .s8-corps { flex: 1 1 170px; min-width: 0; padding: 4px 0; }
@media (max-width: 760px) { .coeur.grand.s8 { grid-column: auto; } }

/* ── Le lobby du téléphone : des icônes et leur nom (19/11/2026) ── */
.icones { display: none; }
@media (max-width: 760px) {
  .tuiles { display: none; }
  .icones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 10px; padding: 10px 2px 24px; }
  .icone { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; color: var(--froid); font: inherit; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
  .icone-logo { position: relative; width: 64px; height: 64px; display: block; }
  .icone-logo svg { width: 100%; height: 100%; display: block; }
  .icone-badge { position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px;
    background: #ff3b30; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; z-index: 1; }
  .icone-badge[hidden] { display: none; }
  a.icone { text-decoration: none; }
  .icone-logo .pastille { left: -2px; right: auto; }
  .icone-logo .pastille.etat-up { display: none; }   /* comme sur un téléphone : on ne signale que ce qui ne va pas */
  .icone-logo .pastille { position: absolute; right: -2px; top: -2px; width: 11px; height: 11px; border: 2px solid #000; box-sizing: content-box; }
  .icone:active .icone-logo { transform: scale(.94); }
  .icone-nom { font-size: 11.5px; line-height: 1.2; text-align: center; max-width: 82px; overflow-wrap: anywhere; }
  .icone.eteinte { opacity: .45; cursor: default; }
  .pouce a { font-size: 9.5px; }
}
/* La bascule « Téléphone » : l'Espace dans un cadre de téléphone, sur l'ordinateur */
body.en-cadre-tel > *:not(.cadre-tel):not(script) { display: none !important; }
.cadre-tel { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.cadre-tel iframe { width: 390px; height: min(844px, calc(100vh - 110px)); border: 10px solid #1b1c1f; border-radius: 44px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* ── Lobby téléphone « verre liquide » (19/11/2026, jules : « l'heure, en mode liquid glass Apple, que ça fasse sympa ») ── */
.verre-heure { display: none; }
@media (max-width: 760px) {
  .vue[data-vue="lobby"] > .tete-vue { display: none; }
  .vue[data-vue="lobby"] { position: relative; isolation: isolate; min-height: calc(100vh - 150px); }
  /* un fond doux et coloré derrière, pour que le verre ait quelque chose à flouter */
  .vue[data-vue="lobby"]::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(42% 30% at 18% 22%, rgba(0, 144, 211, .38), transparent 70%),
      radial-gradient(38% 28% at 86% 34%, rgba(255, 138, 61, .30), transparent 70%),
      radial-gradient(46% 34% at 30% 78%, rgba(167, 139, 250, .26), transparent 70%),
      radial-gradient(40% 30% at 82% 88%, rgba(229, 72, 77, .22), transparent 70%), #000;
    filter: saturate(1.1); }
  .verre-heure { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 26px 4px 40px; padding: 22px 18px 18px;
    border-radius: 34px; position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 55%, rgba(255, 255, 255, .08));
    -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .45); }
  .verre-heure::before { content: ''; position: absolute; left: -20%; top: -60%; width: 140%; height: 90%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }
  .vh-heure { font-size: 76px; line-height: 1; font-weight: 200; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 18px rgba(255, 255, 255, .18); position: relative; }
  .vh-date { font-size: 15px; color: rgba(255, 255, 255, .86); position: relative; }
  .vh-date::first-letter { text-transform: uppercase; }
  .vh-etat { margin-top: 8px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); position: relative; }
  .icones { padding-top: 0; padding-right: 26px; }   /* la 4e colonne ne passe pas sous l'onglet « Signaler » */
  /* les icônes, en verre aussi : un reflet en haut et une ombre douce */
  .icone-logo { border-radius: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
  .icone-logo::after { content: ''; position: absolute; inset: 0; border-radius: 15px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .10); }
  .icone-nom { text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
  .icone:disabled { cursor: default; }
  .icone.eteinte .icone-logo { filter: grayscale(1); }
}

/* MiroFish (20/11/2026) : une tuile en pause n'a pas l'air cliquable ; le dépôt se voit au clavier ; « Aujourd'hui » répond */
.tuile.en-pause .apercu { cursor: default; }
.tuile.en-pause { opacity: .72; }
.dp-zone:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 3px; }
.ag-eclair { box-shadow: 0 0 0 2px #f2f2f2, 0 0 18px rgba(255,255,255,.35) !important; transition: box-shadow .3s; }

/* ═══ L'accueil en widgets (20/11/2026) : 12 colonnes, rangées de 8 px ; chacun range et étire les siens ═══ */
.coeurs.accueil2.mur { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 8px; grid-auto-flow: row dense; gap: 12px; }
.coeurs.mur > .mur-w { position: relative; min-width: 0; }
.coeurs.mur > .coeur.grand { grid-column: auto; }
.coeurs.mur > .mur-w.fixe { align-self: stretch; overflow: hidden; display: flex; flex-direction: column; }
.mur-w.fixe > .coeur-tete, .mur-w.fixe > .forme, .mur-w.fixe > .chiffres, .mur-w.fixe > .coeur-pied { flex: none; }
.mur-w.fixe > .duo, .mur-w.fixe > .s8-duo, .mur-w.fixe > .ba88-corps, .mur-w.fixe > .crm-corps, .mur-w.fixe > .cases { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.mur-w.fixe .nc8-zone, .mur-w.fixe .arbre-zone, .mur-w.fixe .s8-duo .s8-arbre { height: auto; min-height: 90px; max-width: none; align-self: stretch; }
.mur-w.fixe .s8-duo { align-items: stretch; }
.mur-w.fixe .toile { height: auto; min-height: 90px; }
.mur-w.fixe.plaque { justify-content: center; }
/* la barre « Modifier l'accueil » */
.mur-barre { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.mur-barre.on { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 16px; margin: 0 0 12px; }
.mur-modifier { opacity: .75; }
.mur-modifier:hover { opacity: 1; }
.mur-aide { margin: 0; font-size: 12.5px; color: #c9cacd; line-height: 1.5; }
.mur-reserve { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mur-jeton { font: inherit; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; }
.mur-jeton:hover { background: rgba(255, 255, 255, .14); }
.mur-fin { display: flex; gap: 8px; justify-content: flex-end; }
/* en modification : un voile sur chaque widget (on ne clique plus dedans, on le déplace), le nom, ✕ et le coin */
.coeurs.mur.edition > .mur-w { outline: 1px dashed rgba(255, 255, 255, .35); outline-offset: 2px; }
.mur-voile { position: absolute; inset: 0; z-index: 5; cursor: grab; touch-action: none; background: rgba(0, 0, 0, .18); border-radius: inherit; }
.mur-w.tire { opacity: .55; outline: 2px solid #4cc2ff !important; }
.mur-w.tire .mur-voile { cursor: grabbing; }
.mur-w.etire { outline: 2px solid #46c37b !important; }
.mur-nom { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: rgba(0, 0, 0, .75); color: #f2f2f2; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.mur-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f2f2f2; color: #000; font-size: 13px; cursor: pointer; }
.mur-x:hover { background: #e5484d; color: #fff; }
.mur-coin { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; cursor: nwse-resize; touch-action: none; }
.mur-coin::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; border-right: 3px solid #f2f2f2; border-bottom: 3px solid #f2f2f2; border-radius: 0 0 4px 0; }
@media (max-width: 760px) {
  .coeurs.accueil2.mur { grid-template-columns: minmax(0, 1fr); }
  .coeurs.mur > .mur-w { grid-column: 1 / -1 !important; }
}

/* l'avis avant la déconnexion automatique (20/11/2026) */
.avis-inactif { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 95; background: #141518; border: 1px solid #34363b; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); max-width: calc(100vw - 32px); }
.avis-inactif p { margin: 0; font-size: 14px; color: #f2f2f2; }
.avis-inactif[hidden] { display: none; }

/* 27/11/2026, Dominique : ce que le logiciel ouvert pose dans la barre (VIZ8 : le nom, « Voir comme le client »), à gauche de « À faire » */
.plein-outils { display: flex; align-items: center; gap: 10px; flex: none; }
.plein-outils:empty { display: none; }
.plein-outils .plein-outil-nom { font-size: 14px; opacity: .9; white-space: nowrap; }
.plein-outils button { white-space: nowrap; }
.plein-outils button.actif { background: #e08a00; border-color: #e08a00; color: #fff; }
