/* Intervia : feuille de style unique. Aucun style en ligne dans les gabarits (CSP style-src 'self'). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 15px; line-height: 1.5; color: var(--texte); background: var(--fond); }
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
code { font-family: var(--mono); font-size: .85em; }
.cache-visuel, .lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* En-tête */
.entete { display: flex; align-items: center; gap: 1.5rem; padding: .5rem 1.25rem; background: var(--accent); color: #fff; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.menu { display: flex; gap: .25rem; flex: 1; flex-wrap: wrap; }
.menu a { color: #dfe8f2; text-decoration: none; padding: .4rem .75rem; border-radius: 6px; }
.menu a:hover, .menu a[aria-current] { background: rgba(255, 255, 255, .15); color: #fff; }
.entete-droite { display: flex; align-items: center; gap: 1rem; }
.cloche { position: relative; color: #fff; display: flex; }
.cloche .compteur { position: absolute; top: -6px; right: -10px; background: var(--maintenance); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 10px; padding: 0 5px; min-width: 18px; text-align: center; }
.compte-menu { position: relative; }
.compte-menu summary { cursor: pointer; list-style: none; padding: .3rem .6rem; border-radius: 6px; }
.compte-menu summary::-webkit-details-marker { display: none; }
.compte-menu summary:hover { background: rgba(255, 255, 255, .15); }
.compte-liste { position: absolute; right: 0; top: 2.2rem; background: var(--carte); color: var(--texte); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); min-width: 220px; padding: .4rem 0; }
.compte-liste a, .compte-liste button { display: block; width: 100%; text-align: left; padding: .45rem 1rem; color: var(--texte); text-decoration: none; }
.compte-liste a:hover, .compte-liste button:hover { background: var(--fond); }

.contenu { max-width: 1400px; margin: 0 auto; padding: 1.25rem; }
.pied { text-align: center; color: var(--texte-doux); font-size: .8rem; padding: 2rem 0 1rem; }
.public .contenu { max-width: 460px; padding-top: 6vh; }

/* Cartes, alertes */
.carte { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1rem 1.25rem; box-shadow: var(--ombre); margin-bottom: 1rem; }
.carte.etroite { max-width: 640px; }
.carte.large { max-width: 900px; }
.alerte { padding: .65rem 1rem; border-radius: var(--rayon); border: 1px solid; margin: 0 0 1rem; }
.alerte.ok { background: var(--ok-clair); border-color: #b5dfc5; color: var(--ok); }
.alerte.info { background: var(--accent-clair); border-color: #c3d4e8; color: var(--accent); }
.alerte.attention { background: var(--attention-clair); border-color: #f0d98a; color: #6b4b00; }
.alerte.erreur { background: var(--erreur-clair); border-color: #f2b8b3; color: var(--erreur); }
.aide, .discret, .sous { color: var(--texte-doux); font-size: .85rem; }
.vide { color: var(--texte-doux); font-style: italic; }
.note-lot { color: var(--texte-doux); font-size: .8rem; border-left: 3px solid var(--bordure); padding-left: .6rem; }
.etiquette { display: inline-block; font-size: .72rem; padding: 0 .45rem; border-radius: 10px; background: var(--fond); border: 1px solid var(--bordure); color: var(--texte-doux); vertical-align: middle; }
.etiquette.interne { background: var(--interne); border-color: var(--interne-bord); color: #6b5a00; }
.oui { color: var(--ok); font-weight: 600; }
.non { color: var(--texte-doux); }

/* Formulaires */
.formulaire { display: flex; flex-direction: column; gap: .8rem; }
.formulaire.compact { gap: .5rem; margin-top: .6rem; }
.formulaire.secondaire { margin-top: .75rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
label.case { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: .5rem .65rem; border: 1px solid var(--bordure); border-radius: 6px; background: #fff; color: var(--texte); font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
select[multiple] { padding: .25rem; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .6rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.ligne-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; align-items: end; }
.cases-colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .2rem 1rem; }
.mdp-champ { display: flex; gap: .3rem; }
.mdp-champ input { flex: 1; }
.oeil { border: 1px solid var(--bordure); background: #fff; border-radius: 6px; cursor: pointer; padding: 0 .6rem; }
.jauge { width: 100%; height: 8px; }
.code-otp { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-family: var(--mono); }
.fichier-bouton { display: inline-flex; flex-direction: row; align-items: center; gap: .4rem; cursor: pointer; border: 1px dashed var(--bordure); border-radius: 6px; padding: .5rem .8rem; font-weight: 600; background: var(--fond); }
.fichier-bouton input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fichier-bouton:focus-within { outline: 2px solid var(--accent); }
.fichiers-choisis { margin: 0; font-size: .85rem; color: var(--texte-doux); }
.fichiers-choisis:empty { display: none; }
.actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.lien-bas { text-align: center; margin: .5rem 0 0; }

/* Boutons */
.bouton { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--bordure); border-radius: 6px; background: #fff; color: var(--texte); text-decoration: none; cursor: pointer; font-weight: 600; text-align: center; }
.bouton:hover { background: var(--fond); }
.bouton.principal { background: var(--accent); color: #fff; border-color: var(--accent); }
.bouton.principal:hover { background: #1a3652; }
.bouton.danger, .lien.danger { color: var(--erreur); }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.lien { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }
.croix { background: none; border: none; cursor: pointer; color: var(--texte-doux); font-size: 1.1rem; line-height: 1; padding: 0 .2rem; }
.croix:hover { color: var(--erreur); }
.en-ligne { display: inline; }
.pile-boutons { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.discret { color: var(--texte-doux); }

/* Onglets */
.onglets { display: flex; gap: .25rem; border-bottom: 2px solid var(--bordure); margin-bottom: 1rem; flex-wrap: wrap; }
.onglets a { padding: .45rem .9rem; text-decoration: none; color: var(--texte-doux); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.onglets a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.onglets.petits { margin-bottom: .5rem; }
.onglets.petits a { padding: .25rem .6rem; font-size: .85rem; }

/* Connexion */
.connexion h1 { display: flex; align-items: center; gap: .6rem; margin-bottom: 0; }
.sous-titre { color: var(--texte-doux); margin: 0 0 1rem; }

/* Accueil : listes en haut, formulaires dessous ; sur téléphone la saisie remonte (section 10). */
.grille-accueil { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.grille-accueil .carte { margin: 0; min-width: 0; }
.grille-accueil.une-colonne { grid-template-columns: 1fr; }
.bloc-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bloc-form h2 { border-left: 4px solid var(--maintenance); padding-left: .5rem; }
.ordre-form-informatique h2 { border-left-color: var(--informatique); }
.ordre-liste-maintenance h2 { border-left: 4px solid var(--maintenance); padding-left: .5rem; }
.ordre-liste-informatique h2 { border-left: 4px solid var(--informatique); padding-left: .5rem; }
@media (max-width: 1099px) {
  .grille-accueil { grid-template-columns: 1fr; }
  .ordre-form-maintenance { order: 1; }
  .ordre-liste-maintenance, .ordre-liste-tous { order: 2; }
  .ordre-form-informatique { order: 3; }
  .ordre-liste-informatique { order: 4; }
}

/* Tables */
.table-defile { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--bordure); vertical-align: top; }
th { font-size: .8rem; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .03em; }
table.tickets td.num { white-space: nowrap; font-family: var(--mono); font-size: .85rem; }
table.tickets td.titre a { color: var(--texte); text-decoration: none; }
table.tickets td.titre a:hover { text-decoration: underline; }
table.tickets tr.non-lu td.titre a, table.tickets tr.non-lu td.num a { font-weight: 700; }
table.tickets tr.urgent td:first-child { box-shadow: inset 3px 0 0 var(--erreur); }
table.tickets td.date { white-space: nowrap; color: var(--texte-doux); font-size: .85rem; }
table.tickets td.assignes { font-size: .85rem; }
table.compact th, table.compact td { padding: .35rem .4rem; }
tr.inactif td { opacity: .6; }
.grille-droits .groupe-ligne th { background: var(--fond); color: var(--texte); text-transform: none; font-size: .9rem; }
table.journal td.details span { display: inline-block; font-size: .8rem; color: var(--texte-doux); margin-right: .5rem; }

/* Statuts, priorités, types */
.statut { display: inline-block; font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 10px; white-space: nowrap; }
.st-nouveau { background: #e8e1fb; color: #4b2a9e; }
.st-assigne { background: var(--accent-clair); color: var(--accent); }
.st-en_cours { background: #dff3fb; color: #0b6283; }
.st-en_attente { background: var(--attention-clair); color: #6b4b00; }
.st-resolu { background: var(--ok-clair); color: var(--ok); }
.st-clos { background: #eceef1; color: #4a5260; }
.st-annule { background: #eceef1; color: #8a909b; text-decoration: line-through; }
.prio { display: inline-block; min-width: 1.4em; text-align: center; font-weight: 800; }
.pr-urgente { color: var(--erreur); }
.pr-haute { color: var(--maintenance); }
.pr-normale { color: var(--texte-doux); }
.pr-basse { color: #8a909b; }
.type { display: inline-block; font-size: .75rem; font-weight: 700; padding: 0 .45rem; border-radius: 4px; }
.ty-maintenance { background: var(--maintenance-clair); color: #8a4500; }
.ty-informatique { background: var(--informatique-clair); color: #1450a0; }

/* Filtres, pagination */
.filtres { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem .8rem; align-items: end; }
.filtres .large { grid-column: 1 / -1; }
.titre-page { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.titre-page.sous { margin: .5rem 0; }
.titre-page.sous p { margin: 0; color: var(--texte-doux); }
.tri a { margin-left: .4rem; font-size: .85rem; text-decoration: none; }
.tri a[aria-current] { font-weight: 700; text-decoration: underline; }
.pagination { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 1rem 0; }

/* Fiche ticket */
.bandeau-urgent { background: var(--erreur); color: #fff; font-weight: 700; padding: .5rem 1rem; border-radius: var(--rayon); margin: 0 0 1rem; }
.titre-ticket .numero { margin: 0; font-family: var(--mono); color: var(--texte-doux); }
.titre-ticket h1 { margin: .2rem 0; }
.titre-ticket .sous { margin: 0 0 1rem; }
.ticket-colonnes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .ticket-colonnes { grid-template-columns: 1fr; } }
.texte-riche p:first-child { margin-top: 0; }
.texte-riche p:last-child { margin-bottom: 0; }
.texte-riche pre { background: var(--fond); padding: .6rem; border-radius: 6px; overflow-x: auto; }
.texte-riche blockquote { border-left: 3px solid var(--bordure); margin: .5rem 0; padding-left: .8rem; color: var(--texte-doux); }
.mention { background: var(--accent-clair); color: var(--accent); border-radius: 4px; padding: 0 .25rem; font-weight: 600; white-space: nowrap; }
.mention.groupe { background: #efe7fb; color: #5b2ea6; }
.fil { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; }
.evenement.commentaire { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .75rem 1rem; }
.evenement.commentaire.interne { background: var(--interne); border-color: var(--interne-bord); }
.evenement.commentaire.masque { opacity: .75; }
.ev-entete { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .3rem; }
.ev-entete time { color: var(--texte-doux); font-size: .8rem; }
.ev-actions { display: flex; gap: 1rem; align-items: flex-start; margin-top: .3rem; font-size: .85rem; }
.ev-actions summary { cursor: pointer; color: var(--accent); }
.evenement.trace { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--texte-doux); padding: 0 .5rem; }
.evenement.trace.interne { background: var(--interne); border-radius: 4px; }
.evenement.trace time { white-space: nowrap; }
.pieces { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.piece { display: flex; flex-direction: column; gap: .2rem; max-width: 200px; font-size: .85rem; }
.piece img { border-radius: 6px; border: 1px solid var(--bordure); display: block; height: auto; max-width: 160px; }
.infos { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.infos dt { color: var(--texte-doux); font-size: .85rem; }
.infos dd { margin: 0; }
.ticket-droite .carte > form.en-ligne, .ticket-droite .transition { display: inline-block; margin: .2rem .3rem .2rem 0; }
.transition > summary { list-style: none; }
.transition > summary::-webkit-details-marker { display: none; }
.transition[open] { display: block; width: 100%; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .6rem; }
.transition[open] > summary { margin-bottom: .5rem; }
.chips { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--bordure); border-radius: 14px; padding: .1rem .3rem .1rem .65rem; font-size: .85rem; background: var(--fond); }
.chip.petit { font-size: .72rem; padding: 0 .45rem; margin-left: .3rem; }
.chip.groupe { background: #f3eefc; }
.saisie label.interne { background: var(--interne); border: 1px solid var(--interne-bord); border-radius: 6px; padding: .3rem .6rem; align-self: end; }
details > summary h2.en-ligne { display: inline; }
details > summary { cursor: pointer; }

/* Couleurs de groupes (palette fermée) */
.pastille { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; vertical-align: middle; background: #9aa1ad; }
.coul-gris { --c: #9aa1ad; } .coul-bleu { --c: #1f6fd1; } .coul-vert { --c: #1e9b5a; } .coul-orange { --c: #d9730d; }
.coul-rouge { --c: #c0392b; } .coul-violet { --c: #7b4bc4; } .coul-jaune { --c: #d4a900; } .coul-turquoise { --c: #12a3a3; }
.coul-rose { --c: #d0488b; } .coul-brun { --c: #8a5a2b; }
.pastille[class*="coul-"] { background: var(--c); }
.chip.groupe[class*="coul-"] { border-color: var(--c); }

/* Mentions : liste d'autocomplétion */
.mentions-zone { position: relative; font-weight: 400; }
.mentions-liste { position: absolute; z-index: 20; left: 0; right: 0; list-style: none; margin: 2px 0 0; padding: .25rem 0; background: #fff; border: 1px solid var(--bordure); border-radius: 6px; box-shadow: var(--ombre); max-width: 420px; }
.mentions-liste li { padding: .35rem .75rem; cursor: pointer; display: flex; gap: .5rem; align-items: center; }
.mentions-liste li[aria-selected="true"], .mentions-liste li:hover { background: var(--accent-clair); }
.mentions-liste .sorte { font-size: .75rem; color: var(--texte-doux); }
.mentions-zone .aide { margin: .2rem 0 0; font-weight: 400; }

/* Notifications */
.notifications { list-style: none; padding: 0; }
.notifications li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--bordure); }
.notifications li:last-child { border-bottom: none; }
.notifications li.non-lu a { font-weight: 700; }
.notifications time { color: var(--texte-doux); font-size: .85rem; white-space: nowrap; }

/* Administration */
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; align-items: start; }
.deux-colonnes > .carte { margin: 0; }
.liste-simple { list-style: none; padding: 0; margin: 0 0 1rem; }
.liste-simple li { padding: .3rem 0; border-bottom: 1px solid var(--bordure); display: flex; justify-content: space-between; align-items: center; }
.mdp-affiche code { font-size: 1.6rem; background: var(--fond); padding: .4rem .8rem; border-radius: 6px; display: inline-block; letter-spacing: .05em; user-select: all; }
.arbre { list-style: none; padding: 0; margin: 0 0 .75rem; }
.arbre .arbre { margin: .2rem 0 .2rem 1.6rem; }
.arbre li.glisse { opacity: .4; }
.arbre li.cible > .cat-ligne { border-top: 2px solid var(--accent); }
.cat-ligne { display: flex; align-items: flex-start; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--bordure); }
.cat-ligne details { flex: 1; }
.cat-ligne.inactif summary { color: var(--texte-doux); }
.poignee { cursor: grab; color: var(--texte-doux); user-select: none; }
.fleches { white-space: nowrap; }

@media (max-width: 600px) {
  .contenu { padding: .75rem; }
  .entete { gap: .5rem; padding: .5rem .75rem; }
  .menu { order: 3; flex-basis: 100%; }
  table.tickets.compact td.assignes, table.tickets.compact th:nth-child(5) { display: none; }
}

/* Double authentification */
.etapes { padding-left: 1.3rem; }
.etapes li { margin-bottom: .6rem; }
.qr { margin: .6rem 0; }
.qr img { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.cle-totp { font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.codes-secours { display: grid; grid-template-columns: repeat(2, max-content); gap: .4rem 2rem; list-style: none; padding: 0; font-size: 1.1rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Accueil « J'ai un problème » (10.1) */
.probleme h2, .probleme h1 { margin-top: 0; }
.choix { flex-direction: column; }
.case.urgent { color: var(--erreur); font-weight: 600; }
.urgence { border: 2px solid var(--erreur); background: var(--erreur-clair); }
.urgence h1 { color: var(--erreur); margin-top: 0; }
.numeros-urgence { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .5rem; }
.numeros-urgence li { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.numeros-urgence a { font-size: 1.6rem; font-weight: 700; color: var(--erreur); text-decoration: none; }
.fiches-aide { list-style: none; padding: 0; display: grid; gap: .8rem; }
.fiches-aide li { border-left: 3px solid var(--accent); padding-left: .8rem; }
.fiches-aide p { margin: .2rem 0 0; color: var(--texte-doux); }
.fil-ariane { font-size: .85rem; color: var(--texte-doux); }
.aide-fiche { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; border-top: 1px solid var(--bordure); padding-top: 1rem; margin-top: 1rem; }

/* Interventions et calendrier (10.2, 40) */
.jour { font-size: .9rem; margin: .8rem 0 .3rem; color: var(--texte-doux); text-transform: none; }
.rdv-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.rdv a { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; padding: .35rem .6rem; border-radius: 6px;
  border-left: 4px solid var(--accent); background: var(--fond); color: var(--texte); text-decoration: none; }
.rdv.type-maintenance a { border-left-color: var(--maintenance, #d9822b); }
.rdv.type-informatique a { border-left-color: var(--informatique, #2b6cb0); }
.rdv.statut-proposee a { border-left-style: dashed; }
.rdv.statut-realisee a { opacity: .6; }
.rdv-heure { font-weight: 700; font-variant-numeric: tabular-nums; }
.rdv-numero { font-family: var(--police-code, monospace); font-size: .8rem; color: var(--texte-doux); }
.rdv-lieu { font-size: .8rem; color: var(--texte-doux); }
.cal-barre { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.cal-barre h2 { margin: 0 1rem; font-size: 1.1rem; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--bordure); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
.cal-entete { background: var(--fond); padding: .3rem; font-size: .8rem; text-align: center; font-weight: 600; }
.cal-jour { background: var(--carte); min-height: 6rem; padding: .3rem; }
.cal-grille.semaine .cal-jour { min-height: 16rem; }
.cal-jour.hors-mois { background: var(--fond); opacity: .6; }
.cal-jour.aujourdhui .cal-numero { background: var(--accent); color: #fff; border-radius: 50%; padding: 0 .35rem; }
.cal-numero { font-size: .8rem; font-weight: 700; }
.cal-jour .rdv a { font-size: .75rem; padding: .2rem .3rem; }
.cal-jour .rdv-lieu, .cal-jour .rdv-numero { display: none; }
@media (max-width: 760px) {
  .cal-grille { grid-template-columns: 1fr; }
  .cal-entete { display: none; }
  .cal-jour { min-height: 0; }
  .cal-grille.semaine .cal-jour { min-height: 0; }
}
.intervention { border-top: 1px solid var(--bordure); padding: .5rem 0; }
.intervention:first-of-type { border-top: 0; }
.intervention p { margin: .2rem 0; }
.intervention.statut-annulee, .intervention.statut-realisee { opacity: .65; }
.compte-rendu { flex-basis: 100%; }
.nuage { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { display: inline-block; font-size: .8rem; padding: .05rem .5rem; border-radius: 10px; background: var(--accent-clair); color: var(--accent); text-decoration: none; }
.tag.actif { background: var(--accent); color: #fff; }

/* Secrets de ticket (30.3) */
.secrets .secret { border-top: 1px solid var(--bord, #ddd); padding: .6rem 0; }
.secrets .secret:first-of-type { border-top: 0; }
.secrets .secret.efface .secret-titre { opacity: .6; }
.secret-titre { margin: 0 0 .2rem; }
.secret-lecture, .secret-nouveau .formulaire { margin-top: .5rem; }
.secret-valeur { margin-top: .5rem; }
.secret-texte { display: block; padding: .4rem .6rem; background: var(--fond-doux, #f4f4f4); border-radius: 4px;
  white-space: pre-wrap; word-break: break-all; user-select: all; }
.champ-oeil { display: flex; gap: .3rem; align-items: center; }
.champ-oeil input { flex: 1; }
.secret-genere { font-size: 1.1em; letter-spacing: .05em; }
.secret-journal ul { padding-left: 1.1rem; margin: .3rem 0; }

/* Rappel de la matrice d'Eisenhower (accueil, parcours, formulaires de demande) */
.eisenhower { margin: .25rem 0 .5rem; }
.eisenhower summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.eisenhower > p { margin: .4rem 0; }
.eisenhower-grille { display: grid; grid-template-columns: auto 1fr 1fr; gap: .35rem; font-size: .85rem; }
.eisenhower-axe { font-weight: 700; color: var(--texte-doux); text-align: center; align-self: end; }
.eisenhower-axe-ligne { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; text-align: center; }
.eisenhower-case { display: flex; flex-direction: column; gap: .2rem; padding: .5rem .6rem; border-radius: var(--rayon);
  border-left: 4px solid var(--bordure); background: var(--fond); }
.eisenhower-case em { color: var(--texte-doux); }
.eisenhower-case.q1 { border-left-color: var(--erreur); background: var(--erreur-clair); }
.eisenhower-case.q2 { border-left-color: var(--attention); background: var(--attention-clair); }
.eisenhower-case.q3 { border-left-color: var(--informatique); background: var(--informatique-clair); }
.eisenhower-case.q4 { border-left-color: var(--ok); background: var(--ok-clair); }
@media (max-width: 560px) {
  .eisenhower-grille { grid-template-columns: 1fr; }
  .eisenhower-vide, .eisenhower-axe { display: none; }
  .eisenhower-case.q1::before { content: "Urgent et important"; }
  .eisenhower-case.q2::before { content: "Important, pas urgent"; }
  .eisenhower-case.q3::before { content: "Urgent, pas important"; }
  .eisenhower-case.q4::before { content: "Ni urgent ni important"; }
  .eisenhower-case::before { font-size: .75rem; font-weight: 700; color: var(--texte-doux); text-transform: uppercase; }
}

/* GED et notes d'équipe (lot 10, section 26) */
.court { width: 5.5rem; display: inline-block; }
.en-ligne-champs { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin-top: .6rem; }
.en-ligne-champs label { flex: 1 1 14rem; }
.en-ligne-champs label.large { flex: 1 1 24rem; }
.dossiers, .documents, .versions, .commentaires { list-style: none; margin: 0; padding: 0; }
.dossiers li { padding: .45rem 0; border-bottom: 1px solid var(--bordure); }
.dossiers li:last-child, .documents li:last-child { border-bottom: none; }
.dossiers a { font-weight: 600; text-decoration: none; }
.documents li { padding: .55rem 0; border-bottom: 1px solid var(--bordure); }
.documents li p { margin: .2rem 0 0; }
.document-titre { text-decoration: none; }
.etiquette.validite { background: var(--ok-clair); color: var(--ok); border-color: #b5dfc5; }
.etiquette.validite.bientot { background: var(--attention-clair); color: #6b4b00; border-color: #f0d98a; }
.etiquette.validite.expire, .etiquette.alerte-validite { background: var(--erreur-clair); color: var(--erreur); border-color: #f3b9b3; }
.encadre-renouveler { border-left: 4px solid var(--attention); }
.document-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.apercu-document { max-width: 100%; max-height: 420px; border-radius: var(--rayon); border: 1px solid var(--bordure); margin-top: .75rem; }
.versions li { padding: .4rem 0; border-bottom: 1px solid var(--bordure); font-size: .9rem; }
.versions .boutons { display: inline-flex; gap: .6rem; margin-left: .4rem; }
.zone-depot.survol { outline: 3px dashed var(--accent); outline-offset: 4px; background: var(--accent-clair); }
.fichier-bouton.grand { padding: 1.2rem 1rem; width: 100%; justify-content: center; }
details.depot > summary, details.nouvelle-note > summary { display: inline-block; list-style: none; }
details.depot > summary::-webkit-details-marker, details.nouvelle-note > summary::-webkit-details-marker { display: none; }
details.depot[open] > summary, details.nouvelle-note[open] > summary { margin-bottom: .75rem; }
.droits-dossier { width: 100%; border-collapse: collapse; font-size: .9rem; }
.droits-dossier th, .droits-dossier td { padding: .3rem .4rem; border-bottom: 1px solid var(--bordure); text-align: center; }
.droits-dossier td:first-child, .droits-dossier th:first-child { text-align: left; }
.note { margin-bottom: 1rem; }
.note.epinglee { border-left: 4px solid var(--accent); }
.note.a-lire { border-left: 4px solid var(--attention); background: var(--attention-clair); }
.note.masquee { opacity: .7; }
.note-entete p { margin: 0 0 .2rem; }
.etiquette.epingle { background: var(--accent-clair); color: var(--accent); border-color: #c3d4e8; }
.etiquette.a-lire { background: var(--attention-clair); color: #6b4b00; border-color: #f0d98a; }
.note-actions { margin-top: .5rem; align-items: center; }
.note-commentaires { margin-top: .6rem; border-top: 1px solid var(--bordure); padding-top: .4rem; }
.note-commentaires summary { cursor: pointer; color: var(--texte-doux); font-size: .9rem; }
.commentaires li { padding: .4rem 0; border-bottom: 1px dashed var(--bordure); }
.commentaires li .texte-riche p { margin: .15rem 0; }
.commentaires li.masquee { opacity: .6; }
@media (max-width: 800px) {
  .document-page { grid-template-columns: 1fr; }
}

/* Lot 6 : plans, équipements, localisation (sections 25.1 à 25.3) */
.rouge { color: var(--erreur); font-weight: 600; }
.vignettes-plans { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.vignettes-plans a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: inherit; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .5rem; background: var(--carte); }
.vignettes-plans a:hover { border-color: var(--accent); }
.vignettes-plans img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--fond); border-radius: 4px; }
.vignettes-plans li.archive { opacity: .6; }
.vignette-nom { font-weight: 600; }

.plan-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; align-items: start; }
.plan-barre { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .75rem; display: flex; flex-direction: column; gap: .75rem; max-height: calc(100vh - 140px); overflow: auto; }
.plan-barre label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.plan-barre .case { flex-direction: row; font-weight: 400; }
.calques { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.calques legend { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.resultats-plan { list-style: none; padding: 0; margin: 0; }
.resultats-plan li { padding: .15rem 0; }
.pastille-demande { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--erreur); background: rgba(179, 38, 30, .2); }
.carte-plan { background: #e9ecf1; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.plan-principal { height: calc(100vh - 160px); min-height: 420px; }
.formulaire-plan { height: 380px; }
.mini-plan { height: 240px; margin-top: .5rem; }
.palette ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.outil-icone { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 6px; padding: .2rem .35rem; cursor: grab; font: inherit; font-size: .85rem; }
.outil-icone:hover { background: var(--fond); }
.outil-icone[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-clair); }
.plan-page.pose-en-cours .plan-principal { cursor: crosshair; }
.plan-page.en-edition .plan-principal { outline: 2px dashed var(--maintenance); outline-offset: 2px; }

.icone-equipement { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, #9aa1ad); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); position: relative; vertical-align: middle; flex: none; }
.icone-equipement img { width: 18px; height: 18px; }
.marqueur-equipement { background: none; border: 0; }
.icone-equipement.sur-plan { width: 34px; height: 34px; }
.icone-equipement.sur-plan img { width: 20px; height: 20px; }
.point-rouge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--erreur); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; padding: 0 3px; border: 1px solid #fff; }
@keyframes clignote { 0%, 100% { transform: scale(1); } 25%, 75% { transform: scale(1.6); } 50% { transform: scale(1); } }
.marqueur-equipement.clignote .icone-equipement { animation: clignote 1s ease-in-out 3; box-shadow: 0 0 0 4px rgba(217, 115, 13, .6); }
.bulle-equipement p { margin: .25rem 0; }
.bulle-equipement .liens-bulle a { white-space: nowrap; }
.bouton.petit { font-size: .8rem; padding: .2rem .5rem; }

path.cercle-demande { stroke-width: 3; fill-opacity: .18; }
path.cercle-demande.prio-urgente { stroke: #b3261e; fill: #b3261e; }
path.cercle-demande.prio-haute { stroke: #d9730d; fill: #d9730d; }
path.cercle-demande.prio-normale { stroke: #1f6fd1; fill: #1f6fd1; }
path.cercle-demande.prio-basse { stroke: #5b6475; fill: #5b6475; }
path.cercle-localisation { stroke: #b3261e; stroke-width: 3; fill: #b3261e; fill-opacity: .2; stroke-dasharray: 6 4; }
.poignee-cercle { background: #fff; border: 3px solid #b3261e; border-radius: 50%; cursor: move; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
fieldset.localisation { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
fieldset.localisation legend { font-weight: 600; padding: 0 .3rem; }
.equipement-choisi { margin: 0; padding: .4rem .6rem; background: var(--accent-clair); border-radius: 6px; }
.reglage-cercle { align-items: center; }
.contenu.large { max-width: none; }

dialog.dialogue { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.25rem; max-width: 520px; width: calc(100% - 2rem); box-shadow: var(--ombre); }
dialog.dialogue::backdrop { background: rgba(20, 30, 50, .35); }

/* Qui contacter ? (sections 35.3) */
.qui-contacter { border: 1px solid var(--bordure); border-left: 4px solid var(--accent); border-radius: var(--rayon); padding: .6rem .8rem; background: var(--carte); }
.qui-contacter h2 { font-size: 1rem; margin: 0 0 .25rem; }
.qui-contacter.urgent { border-left-color: var(--erreur); background: var(--erreur-clair); }
.contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.contact { border-top: 1px solid var(--bordure); padding-top: .4rem; }
.contact:first-child { border-top: 0; padding-top: 0; }
.contact p { margin: .15rem 0; }
.contact-tete { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: baseline; }
.contact .tel { font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.contact-note { font-style: italic; }
.domaine { border-top: 1px solid var(--bordure); padding: .6rem 0; }
.domaine.inactif { opacity: .6; }
.criteres { margin: .2rem 0; padding-left: 1.2rem; font-size: .9rem; color: var(--texte-doux); }
details.ajout > summary { display: inline-block; margin-top: .5rem; }

@media (max-width: 800px) {
  .plan-page { grid-template-columns: 1fr; }
  .plan-barre { max-height: none; }
  .plan-principal { height: 70vh; }
  .formulaire-plan { height: 300px; }
}
.liste-simple.bloc li { display: block; }
.liste-simple .numero { white-space: nowrap; font-family: var(--mono); font-size: .85rem; }

/* Admin › Journal : diagnostic de l'adresse IP derrière le proxy (0.9.1). */
.diag-ip summary { cursor: pointer; }
.diag-ip .alerte { margin-top: .75rem; }
.diag-ip code { word-break: break-all; }
.etat-ip { display: inline-block; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; background: var(--accent-clair); color: var(--accent); }
.etat-ip.ok { background: var(--ok-clair); color: var(--ok); }
.etat-ip.attention { background: var(--attention-clair); color: #6b4b00; }
.aide-proxy li { margin: .25rem 0; }

/* Lot 11 : parc, garanties, contrats, envois aux prestataires (0.10.0). */
.etat-eq { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .8rem; background: var(--fond); border: 1px solid var(--bordure); color: var(--texte-doux); white-space: nowrap; }
.etat-eq.ok { background: var(--ok-clair); border-color: #b5dfc5; color: var(--ok); }
.etat-eq.attention { background: var(--attention-clair); border-color: #f0d98a; color: #6b4b00; }
.etat-eq.erreur { background: var(--erreur-clair); border-color: #f2b8b3; color: var(--erreur); }
.etat-eq.info { background: var(--accent-clair); border-color: #c3d4e8; color: var(--accent); }
.etat-ligne { margin: .3rem 0; }
.historique-etats li { display: block; font-size: .9rem; }
.indicateurs dl.infos dd { font-weight: 600; }
.etiquette-qr img { display: block; margin: .25rem 0 .5rem; background: #fff; }
.notes-techniques { white-space: pre-line; }
.garantie { border-top: 1px solid var(--bordure); padding: .6rem 0; }
.garantie:first-of-type { border-top: 0; }
.garantie.expiree { opacity: .7; }
.garantie p { margin: .2rem 0; }
.elements-garantie { list-style: none; padding: 0; margin: .3rem 0; font-size: .9rem; }
.elements-garantie .couvert { color: var(--ok); }
.elements-garantie .non-couvert { color: var(--erreur); }
.tableau-saisie { margin: .3rem 0; }
.tableau-saisie td, .tableau-saisie th { padding: .25rem .3rem; border-bottom: 0; }
.tableau-saisie input:not([type=checkbox]), .tableau-saisie select { width: 100%; }
table.parc tr.archive, table.contrats tr.archive { opacity: .6; }
table.parc td:first-child { width: 2rem; }
.choix-equipement { position: relative; margin: .5rem 0; }
.suggestions-equipement { list-style: none; margin: .2rem 0 0; padding: .25rem 0; position: absolute; z-index: 20; left: 0; right: 0; max-height: 18rem; overflow-y: auto; background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); }
.suggestions-equipement button { display: block; width: 100%; text-align: left; padding: .4rem .8rem; background: none; border: 0; cursor: pointer; font: inherit; color: var(--texte); }
.suggestions-equipement button:hover, .suggestions-equipement button:focus { background: var(--fond); }
.suggestions-equipement .vide { padding: .4rem .8rem; }
.mes-equipements { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .4rem 0; }
.mes-equipements .chip { cursor: pointer; padding: .15rem .65rem; }
.bandeau-garantie { font-size: .95rem; }
.suivi-contrat { border-left: 4px solid var(--accent); }
.suivi-contrat.depasse { border-left-color: var(--erreur); }
.resume-contrat { font-weight: 600; }
.notes-contrat { margin: .2rem 0; padding-left: 1.2rem; }
.echeance .etat-echeance { display: inline-block; padding: 0 .45rem; border-radius: 999px; font-size: .78rem; background: var(--fond); border: 1px solid var(--bordure); color: var(--texte-doux); }
.echeance.respectee .etat-echeance { background: var(--ok-clair); border-color: #b5dfc5; color: var(--ok); }
.echeance.a_venir .etat-echeance { background: var(--accent-clair); border-color: #c3d4e8; color: var(--accent); }
.echeance.depassee .etat-echeance { background: var(--erreur-clair); border-color: #f2b8b3; color: var(--erreur); font-weight: 700; }
.rapport { font-size: .9rem; margin: .3rem 0; }
.rapport.ok { color: var(--ok); }
.rapport.attente { color: #6b4b00; }
.envois-attente { border-left: 4px solid var(--attention); }
.envois-attente .envoi { border-top: 1px solid var(--bordure); padding: .5rem 0; }
.envois-attente .envoi:first-of-type { border-top: 0; }
.alerte-delais { border-left: 4px solid var(--erreur); background: var(--erreur-clair); }
.prestations { list-style: none; padding: 0; }
.prestations li { margin: .25rem 0; }
.contrat-resume { border-top: 1px solid var(--bordure); padding: .5rem 0; }
.contrat-resume:first-of-type { border-top: 0; }
.planche-etiquettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
.etiquette-eq { display: flex; gap: 3mm; align-items: center; border: 1px dashed var(--bordure); border-radius: 2mm; padding: 3mm; background: #fff; break-inside: avoid; }
.etiquette-eq .qr svg { width: 28mm; height: 28mm; display: block; }
.etiquette-eq .texte { display: flex; flex-direction: column; gap: 1mm; font-size: 10pt; line-height: 1.2; min-width: 0; }
.etiquette-eq .texte .petit { font-size: 7pt; color: #555; }
@media print {
  .page-etiquettes .entete, .page-etiquettes .pied, .page-etiquettes .pas-imprime, .page-etiquettes .alerte { display: none !important; }
  .page-etiquettes .contenu { padding: 0; max-width: none; }
  .page-etiquettes { background: #fff; }
  @page { size: A4; margin: 10mm; }
}
