/* SPDX-License-Identifier: LicenseRef-KORA-Proprietary */
/* Style volontairement sobre : lisible, sans effet. Toutes les couleurs sont ici, en haut. */
:root {
  --fond: #f5f7fb;
  --carte: #ffffff;
  --texte: #0f1c33;
  --discret: #4b5873;
  --ligne: #e4e9f2;
  --accent: #2447f5;
  --ok: #17803d;
  --attente: #a15c00;
  --echec: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 system-ui, sans-serif; }
header { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 0 24px; min-height: 60px; background: var(--carte); border-bottom: 1px solid var(--ligne); }
main { max-width: 980px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--carte); border: 1px solid var(--ligne); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.narrow { max-width: 420px; margin: 12vh auto; }
h1 { margin: 0 0 8px; } h2 { margin: 0 0 12px; font-size: 17px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input { flex: 1; min-width: 160px; }
input { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 6px; font: inherit; width: 100%; }
button { padding: 8px 14px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
button.link { background: none; color: var(--accent); padding: 0; }
button.danger { background: none; color: var(--echec); padding: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
th { color: var(--discret); font-weight: 500; font-size: 13px; }
.muted, .hint { color: var(--discret); }
.hint { font-size: 13px; }
.error { color: var(--echec); }
.banner { background: #fff4d6; border-bottom: 1px solid #f0d58c; padding: 10px 24px; }
.etat { font-weight: 600; }
.etat.running { color: var(--ok); } .etat.pending { color: var(--attente); } .etat.failed { color: var(--echec); }
code { background: var(--fond); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Options avancées du formulaire de création */
.options { flex-basis: 100%; margin-top: 4px; }
.options summary { cursor: pointer; color: var(--accent); }
.options label { display: block; margin-top: 10px; }
.options label input, .options textarea { margin-top: 4px; }
textarea { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 6px; font: inherit; width: 100%; box-sizing: border-box; }

/* Catalogue */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.recipe { border: 1px solid var(--ligne); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.recipe h3 { margin: 0; font-size: 1rem; }
.recipe p { margin: 0; }
.recipe form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.recipe form input { width: 100%; box-sizing: border-box; }
.recipe form .champ { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
#depot-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
#depot-form label { display: flex; flex-direction: column; gap: 2px; }
#depot-form button { align-self: flex-start; }
#depot-steps { list-style: none; padding-left: 0; }
p.ok { color: var(--ok); }

.notice { background: #fff4d6; border: 1px solid #ecd48a; border-radius: 6px; padding: 10px 12px; word-break: break-all; }

/* Formules (carte « Quelle formule vous faut-il ? ») */
.questions { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.questions label { display: block; }
label.check, .questions label.check { display: flex; gap: 8px; align-items: center; }
label.check input, .questions label.check input { width: auto; }
select { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 6px; font: inherit; width: 100%; margin-top: 4px; background: #fff; }
.plan-result { border: 2px solid var(--accent); border-radius: 8px; padding: 14px; margin: 12px 0; }
.plan-result h3, .plan-result p { margin: 0 0 6px; }
.plan-price { font-size: 1.4rem; font-weight: 600; }
.recipe.choisie { border-color: var(--accent); border-width: 2px; }

button.secondary { background: var(--carte); color: var(--accent); border: 1px solid var(--accent); margin-left: 8px; }

.restore-zone { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.restore-zone h3 { margin: 0 0 6px; font-size: 15px; }
button.danger-solid { background: var(--echec); }

/* ---------- Suivi du serveur ---------- */
.alerts { list-style: none; margin: 0 0 12px; padding: 0; }
.alerts li { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; border: 1px solid var(--ligne); }
.alerts li.crit { border-color: var(--echec); color: var(--echec); font-weight: 600; }
.alerts li.warn { border-color: var(--attente); color: var(--attente); }
.alerts li.ok { border-color: var(--ok); color: var(--ok); }
.node { margin-bottom: 14px; }
.node h3 { margin: 0 0 6px; font-size: 15px; }
.meter { display: grid; grid-template-columns: 110px 1fr 190px; gap: 10px; align-items: center; margin: 4px 0; font-size: 14px; }
.meter .track { height: 10px; background: var(--ligne); border-radius: 5px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--ok); }
.meter .fill.warn { background: var(--attente); }
.meter .fill.crit { background: var(--echec); }
.meter .value { color: var(--discret); text-align: right; }
#suivi-history { margin: 12px 0; }
#suivi-chart { width: 100%; height: 120px; background: var(--fond); border-radius: 6px; }
#suivi-chart polyline { fill: none; stroke-width: 2; }
#suivi-chart .cpu, .swatch.cpu { stroke: var(--accent); background: var(--accent); }
#suivi-chart .mem, .swatch.mem { stroke: var(--attente); background: var(--attente); }
#suivi-chart .disk, .swatch.disk { stroke: var(--echec); background: var(--echec); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 12px; }
.swatch:first-child { margin-left: 0; }

/* Écran de connexion et de première configuration : un champ par ligne, le résultat sous le bouton. */
#screen-login label { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
#screen-login button[type=submit] { margin-top: 16px; }
#screen-login .error { margin-top: 10px; }
#login-advanced { margin-top: 24px; }
#login-advanced summary { cursor: pointer; }
#login-advanced form { margin-top: 10px; }

/* Accueil : deux grandes tuiles égales, la première chose vue par une personne qui n'a rien mis en ligne. */
.accueil h2 { font-size: 1.5rem; margin-bottom: 16px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tuile { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 24px; min-height: 130px;
  background: var(--carte); color: inherit; border: 2px solid var(--ligne); border-radius: 12px; cursor: pointer; font: inherit; }
.tuile:hover, .tuile:focus-visible { border-color: #2447F5; }
.tuile strong { font-size: 1.15rem; }
.tuile span { color: #5a6577; font-weight: normal; }
.mise-en-avant { outline: 3px solid #2447F5; outline-offset: 2px; transition: outline-color .3s; }
#compte { margin-left: 8px; }

/* Résultat d'un clic, juste sous le bouton : en cours (gris), réussi (vert), échec (rouge). */
.resultat { margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; }
.resultat.encours { background: #eef1f6; color: #3b4658; }
.resultat.ok { background: #e6f6ec; color: #14532d; }
.resultat.echec { background: #fdecec; color: #8a1c1c; }


/* ---------- Écrans et menu du haut (comme la maquette) ---------- */
.marque { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
#menu { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1; }
.menu-lien { background: none; color: var(--discret); padding: 20px 0 17px; border-radius: 0; border-bottom: 3px solid transparent; }
.menu-lien:hover { color: var(--texte); }
.menu-lien[aria-current="page"] { color: var(--texte); font-weight: 600; border-bottom-color: var(--accent); }
footer { max-width: 980px; margin: 0 auto 24px; padding: 0 16px; font-size: 13px; }
/* Un seul écran à la fois : on cache toute carte dont l'écran n'est pas l'écran courant. */
#principal > [data-ecran] { display: none; }
#principal[data-ecran="accueil"] > [data-ecran~="accueil"],
#principal[data-ecran="catalogue"] > [data-ecran~="catalogue"],
#principal[data-ecran="detail"] > [data-ecran~="detail"],
#principal[data-ecran="propre"] > [data-ecran~="propre"],
#principal[data-ecran="apps"] > [data-ecran~="apps"],
#principal[data-ecran="suivi"] > [data-ecran~="suivi"],
#principal[data-ecran="suivi-machines"] > [data-ecran~="suivi-machines"],
#principal[data-ecran="suivi-copies"] > [data-ecran~="suivi-copies"],
#principal[data-ecran="suivi-alertes"] > [data-ecran~="suivi-alertes"],
#principal[data-ecran="suivi-journal"] > [data-ecran~="suivi-journal"],
#principal[data-ecran="avance"] > [data-ecran~="avance"] { display: block; }
.retour { display: block; margin-bottom: 14px; }
.accueil { padding: 32px; }
.accueil h2 { font-size: 1.9rem; margin-bottom: 6px; letter-spacing: -.02em; }
.accueil .muted { margin: 0 0 22px; font-size: 1.05rem; }

/* Catalogue : recherche, catégories à gauche, une ligne par logiciel. */
.entete-catalogue { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.entete-catalogue h2 { margin: 0 0 4px; font-size: 1.5rem; }
.entete-catalogue p { margin: 0; }
.recherche { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--discret); flex: 1 1 240px; max-width: 340px; }
.catalogue-corps { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.categories { flex: 0 0 210px; display: flex; flex-direction: column; gap: 4px; }
.categorie { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px; background: transparent; color: #2a3650; text-align: left; }
.categorie:hover { background: #eef2ff; }
.categorie.active { background: #e1e9fd; color: var(--texte); font-weight: 600; }
.categorie .compte { color: var(--discret); font-weight: 400; }
.liste-logiciels { flex: 1 1 420px; min-width: 0; border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; }
.ligne-logiciel { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border-radius: 0; border-bottom: 1px solid var(--ligne); background: var(--carte); color: var(--texte); text-align: left; }
.ligne-logiciel:last-child { border-bottom: 0; }
.ligne-logiciel:hover { background: #eef2ff; }
.ligne-logiciel .fleche { color: var(--accent); font-size: 18px; }

/* Page d'un logiciel. */
.detail-grille { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.detail-grille > div { flex: 1 1 420px; min-width: 0; }
.etiquette { font-size: 13px; font-weight: 600; color: var(--discret); text-transform: none; margin-bottom: 4px; }
h2.grand { font-size: 2rem; margin: 0 0 8px; letter-spacing: -.02em; }
.chapeau { font-size: 1.1rem; color: #2a3650; margin: 0 0 20px; }
.detail-grille h3 { font-size: 1.05rem; margin: 0 0 8px; }
.detail-grille ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.encart { flex: 0 1 340px; min-width: 280px; border: 1px solid #c5d4fa; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.encart h3 { margin: 0; }
.encart form { display: flex; flex-direction: column; gap: 12px; }
.encart .champ { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--discret); }
.grand-bouton { height: 46px; font-weight: 600; border-radius: 10px; }
.encart .resultat { margin: 0; }
.intro-avance { margin: 0 0 14px; }
button { border-radius: 10px; }

main { overflow-anchor: none; }
.titre-page { font-size: 1.9rem; margin: 0 0 6px; letter-spacing: -.02em; }
.sous-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sous-menu button { background: var(--carte); color: #2a3650; border: 1px solid var(--ligne); border-radius: 999px; padding: 8px 16px; }
.sous-menu button.active { background: #e1e9fd; border-color: #c5d4fa; color: var(--texte); font-weight: 600; }
.banniere { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; border-radius: 14px; padding: 18px 22px; margin: 18px 0; border: 1px solid; }
.banniere strong { font-size: 1.3rem; }
.banniere.ok { background: #ddf3e4; border-color: #bfe5cc; color: #0b5a46; }
.banniere.attention { background: #fff1cc; border-color: #ebd58a; color: #6b4a00; }
.banniere.grave { background: #fdecec; border-color: #f2b8b5; color: #8a1c1c; }
.trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.carte-resume { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.carte-resume h3 { margin: 0; font-size: 1rem; color: var(--discret); font-weight: 600; }
.carte-resume .gros { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.carte-resume p { margin: 0; }
.carte-resume .link { align-self: flex-start; margin-top: auto; padding-top: 8px; }
.points { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #2a3650; }
.points li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #0e7c61; margin-right: 8px; }
.points li.attente::before { background: #d98a00; }
.points li.echec::before { background: #c93a2b; }
.preuve { background: #0f1c33; color: #fff; border-radius: 14px; padding: 24px 28px; margin-bottom: 20px; }
.preuve h2 { margin: 0 0 6px; font-size: 1.3rem; }
.preuve p { margin: 0 0 14px; color: #dce3f2; }
.preuve .hint { margin: 14px 0 0; color: #aab6d0; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.chiffres div { display: flex; flex-direction: column; gap: 4px; }
.chiffres strong { font-size: 1.6rem; color: #f6b73c; letter-spacing: -.02em; }
.chiffres span { color: #dce3f2; font-size: 14px; }
.evenement { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.evenement .quand { flex: 0 0 120px; color: var(--discret); }

/* ---------- Salle de supervision ---------- */
.entree-salle { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.salle { position: fixed; inset: 0; z-index: 50; background: radial-gradient(ellipse at 50% 35%, #16294b 0%, #0a1426 70%); color: #e8eefc; display: flex; flex-direction: column; }
.salle[hidden] { display: none; }
.salle .salle-haut { position: static; background: #0c1730; color: #e8eefc; display: flex; align-items: center; gap: 16px; padding: 12px 22px; border-bottom: 1px solid #22365c; }
.salle .salle-haut strong { color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; }
.salle-heure { color: #8fa3c9; font-size: .9rem; flex: 1; }
.salle-fermer { background: transparent; color: #e8eefc; border: 1px solid #3a5388; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.salle-fermer:hover { background: #1b2f55; }
.salle-corps { flex: 1; display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
#salle-scene { width: 100%; height: 100%; min-height: 0; }
.salle-detail { border-left: 1px solid #22365c; padding: 20px; overflow-y: auto; background: #0c1730; }
.salle-detail h2 { margin: 0 0 8px; font-size: 1.1rem; color: #fff; }
.salle-detail p, .salle-detail li { color: #b8c7e6; font-size: .92rem; line-height: 1.45; }
.salle-detail ul { padding-left: 18px; }
.salle-legende { margin: 0; padding: 8px 22px; font-size: .78rem; color: #7f93bb; border-top: 1px solid #22365c; }
.sn { cursor: pointer; }
.sn .corps { fill: #12254a; stroke: #4a6fd1; stroke-width: 2; }
.sn.ok .corps { stroke: #34d399; }
.sn.warn .corps { stroke: #f6b73c; }
.sn.crit .corps { stroke: #ef4444; fill: #3a1420; }
.sn.sel .corps { stroke-width: 4; filter: drop-shadow(0 0 10px currentColor); }
.sn text { fill: #e8eefc; font-family: Figtree, sans-serif; pointer-events: none; }
.sn .sous { fill: #8fa3c9; font-size: 12px; }
.sn .titre { font-size: 15px; font-weight: 600; }
.sn.ok { color: #34d399; } .sn.warn { color: #f6b73c; } .sn.crit { color: #ef4444; }
.lien { fill: none; stroke: #34d399; stroke-width: 2; stroke-dasharray: 6 10; opacity: .75; animation: flux 1.4s linear infinite; }
.lien.warn { stroke: #f6b73c; } .lien.crit { stroke: #ef4444; animation: none; stroke-dasharray: 3 9; opacity: .5; }
.lien.fin { stroke-width: 1.2; opacity: .5; }
@keyframes flux { to { stroke-dashoffset: -32; } }
.halo { fill: none; stroke: #4a6fd1; stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; animation: onde 3.2s ease-out infinite; }
@keyframes onde { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lien, .halo { animation: none; } }
@media (max-width: 800px) { .salle-corps { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .salle-detail { border-left: 0; border-top: 1px solid #22365c; max-height: 38vh; } }

.rack { cursor: pointer; color: #34d399; }
.rack.warn { color: #f6b73c; } .rack.crit { color: #ef4444; }
.rack .baie { fill: #0f1f3d; stroke: #3a5388; stroke-width: 2; }
.rack.sel .baie { stroke: currentColor; stroke-width: 3; filter: drop-shadow(0 0 10px currentColor); }
.rack .led { fill: currentColor; animation: led 2s ease-in-out infinite; }
.rack.crit .led { animation: none; }
@keyframes led { 50% { opacity: .35; } }
.rack-titre { fill: #fff; font: 600 14px Figtree, sans-serif; }
.mesure-nom { fill: #8fa3c9; font: 11px Figtree, sans-serif; }
.piste { fill: #1b2f55; } .jauge { fill: #34d399; } .jauge.warn { fill: #f6b73c; } .jauge.crit { fill: #ef4444; }
.reseau { stroke: #4a6fd1; stroke-width: 3; fill: none; opacity: .6; }
.zone-attente { fill: none; stroke: #f6b73c; stroke-dasharray: 5 6; opacity: .7; }
.sn.puce .corps { fill: #16305e; stroke-width: 1.6; }
.sn.puce .titre { font-size: 13px; }
.sn.puce.interne .corps { fill: #11264b; }
.sn.puce.kora-puce .corps { fill: #1b3a78; }
@media (prefers-reduced-motion: reduce) { .rack .led { animation: none; } }

.bandeau-salle { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; cursor: pointer; border: 0; border-radius: 14px; padding: 20px 24px; margin: 0 0 18px; color: #fff; background: radial-gradient(ellipse at 20% 0%, #2a4fd6 0%, #0f1c33 75%); box-shadow: 0 8px 28px rgba(36,71,245,.28); }
.bandeau-salle:hover { box-shadow: 0 10px 34px rgba(36,71,245,.45); }
.bandeau-titre { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.5rem; font-weight: 700; }
.bandeau-sous { color: #c4d1f5; font-size: .95rem; }

.champs-git { display: flex; flex-direction: column; gap: 10px; flex-basis: 100%; }
.champs-git[hidden] { display: none; }

.code-appareil { font-size: 1.5rem; letter-spacing: 0.12em; user-select: all; }
.champs-git > button { align-self: flex-start; }
.champs-git label.hint { display: flex; align-items: center; gap: 8px; }
.row .champs-git input[type=checkbox] { width: auto; min-width: 0; flex: none; padding: 0; margin: 0; }
.champs-git label.hint { justify-content: flex-start; }
.champs-git .notice, .champs-git p { margin: 0; }

/* ---------- Mes applications : des cartes calmes, une seule action visible ---------- */
.apps-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.app { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px;
  background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.app:hover { border-color: #cfd8ea; box-shadow: 0 1px 8px rgba(15, 28, 51, .06); }
.app-texte { min-width: 0; flex: 1; }
.app-nom { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.app-client { font-size: 12px; font-weight: 500; color: var(--discret); background: var(--fond); padding: 1px 8px; border-radius: 999px; }
.app-sous { margin: 2px 0 0 20px; color: var(--discret); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-puces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0 20px; }
.puce { font-size: 12px; color: #3b4a68; background: #eef2fa; padding: 2px 9px; border-radius: 999px; }
.etat-texte { font-size: 12px; font-weight: 600; }
.etat-texte.running { color: var(--ok); } .etat-texte.pending { color: var(--attente); } .etat-texte.failed { color: var(--echec); }
.pastille { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #b7c0d3; }
.pastille.running { background: #22a35a; box-shadow: 0 0 0 3px #dff3e7; }
.pastille.pending { background: #e0a020; box-shadow: 0 0 0 3px #fbefd2; }
.pastille.failed { background: #d9392b; box-shadow: 0 0 0 3px #fbe1de; }
.app-actions { display: flex; align-items: center; gap: 8px; flex: none; }
a.ouvrir { color: var(--accent); text-decoration: none; font-weight: 500; padding: 7px 14px; border-radius: 8px; border: 1px solid #d5defa; background: #f3f6ff; }
a.ouvrir:hover { background: #e7edff; }
.menu-app { position: relative; }
.menu-app > summary { list-style: none; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  color: var(--discret); font-size: 20px; line-height: 1; user-select: none; }
.menu-app > summary::-webkit-details-marker { display: none; }
.menu-app > summary:hover, .menu-app[open] > summary { background: var(--fond); color: var(--texte); }
.menu { position: absolute; right: 0; top: 38px; z-index: 20; min-width: 230px; padding: 6px; background: var(--carte);
  border: 1px solid var(--ligne); border-radius: 12px; box-shadow: 0 8px 28px rgba(15, 28, 51, .14); }
.menu hr { border: 0; border-top: 1px solid var(--ligne); margin: 6px 4px; }
.menu .entree { display: block; width: 100%; text-align: left; padding: 8px 10px; background: none; color: var(--texte); border-radius: 8px; font-size: 14px; }
.menu .entree:hover { background: var(--fond); }
.menu .danger-entree { color: var(--echec); }
.menu .danger-entree:hover { background: #fdf0ee; }
.parties { margin: 10px 0 0 20px; }
.parties > summary { cursor: pointer; color: var(--discret); font-size: 13px; }
.parties ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.parties li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.partie-nom { font-weight: 500; min-width: 120px; }
button.lien-discret { background: none; color: var(--accent); padding: 0 4px; font-size: 13px; border-radius: 4px; }
button.lien-discret:hover { text-decoration: underline; }
@media (max-width: 640px) { .app { flex-direction: column; align-items: stretch; } .app-actions { justify-content: flex-end; } }

/* ---------- Boîtes de dialogue ---------- */
dialog.dialogue { border: 0; border-radius: 14px; padding: 22px 24px; width: min(460px, calc(100vw - 32px)); color: var(--texte);
  box-shadow: 0 20px 60px rgba(15, 28, 51, .28); }
dialog.dialogue::backdrop { background: rgba(15, 28, 51, .38); }
dialog.dialogue h3 { margin: 0 0 8px; font-size: 17px; }
.dialogue-texte { margin: 0 0 14px; white-space: pre-line; line-height: 1.5; }
.dialogue-case { margin: 0 0 14px; font-size: 14px; color: var(--discret); align-items: flex-start; }
.dialogue-case input { margin-top: 3px; }
.dialogue-bas { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
button.calme { background: var(--fond); color: var(--texte); }
button.calme:hover { background: #e9edf5; }
