/* Design system « Pages personnelles ENS Rennes »
   Couleurs tirées du logo officiel (bleu #3d4a9a, encre #1d1d1b). Aucune police ni ressource externe.
   Composants : barre, navigation latérale, carte, bouton, champ, tableau, jauge, pastille, message, dialogue. */
:root {
  --ens-bleu: #3d4a9a; --ens-bleu-fonce: #2b3572; --ens-bleu-clair: #e8eaf5; --ens-bleu-trait: #c9cde6;
  --encre: #1d1d1b; --texte: #2c2c2a; --texte-doux: #5b5d66; --fond: #f5f6fa; --surface: #ffffff; --trait: #dfe1ea;
  --succes: #1e7148; --succes-fond: #e6f3ec; --alerte: #8f5200; --alerte-fond: #fbf0df; --danger: #a8261c; --danger-fond: #fbe9e7;
  --rayon: 10px; --rayon-petit: 6px; --ombre: 0 1px 2px rgba(29, 29, 27, .06);
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ens-bleu: #9aa6ec; --ens-bleu-fonce: #c4cbf5; --ens-bleu-clair: #262b47; --ens-bleu-trait: #3b4270;
    --encre: #f1f1ef; --texte: #e2e2df; --texte-doux: #a9abb5; --fond: #121318; --surface: #1b1d24; --trait: #2e313c;
    --succes: #74d3a4; --succes-fond: #173326; --alerte: #f0b766; --alerte-fond: #3a2a12; --danger: #f2948b; --danger-fond: #3c1c19;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--police); color: var(--texte); background: var(--fond); }
a { color: var(--ens-bleu); text-underline-offset: 2px; }
a:hover { color: var(--ens-bleu-fonce); }
:focus-visible { outline: 3px solid var(--ens-bleu); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { color: var(--encre); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; font-weight: 650; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; }

/* Barre du haut : le filet bleu reprend la barre verticale du logo */
.barre { display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem; height: 64px; background: var(--surface);
  border-bottom: 1px solid var(--trait); box-shadow: inset 0 3px 0 var(--ens-bleu); position: sticky; top: 0; z-index: 5; }
.barre .marque { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--encre); }
.barre .marque img { height: 38px; width: auto; }
.barre .marque span { font-weight: 650; font-size: .95rem; padding-left: .85rem; border-left: 1px solid var(--trait); line-height: 1.2; }
.barre .marque small { display: block; font-weight: 400; color: var(--texte-doux); font-size: .78rem; }
.barre .droite { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.qui { text-align: right; font-size: .85rem; line-height: 1.25; }
.qui small { display: block; color: var(--texte-doux); }
@media (prefers-color-scheme: dark) { .barre .marque img { filter: brightness(0) invert(.92); } }

/* Mise en page */
.cadre { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.nav { background: var(--surface); border-right: 1px solid var(--trait); padding: 1.25rem .75rem; }
.nav h2 { font-size: .74rem; font-weight: 600; color: var(--texte-doux); margin: 1.25rem .6rem .4rem; letter-spacing: .02em; }
.nav a { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: var(--rayon-petit); color: var(--texte);
  text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--fond); }
.nav a[aria-current="page"] { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); box-shadow: inset 3px 0 0 var(--ens-bleu); }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contenu { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; max-width: 1180px; width: 100%; }
.entete { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.entete .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.chapo { color: var(--texte-doux); margin: -.25rem 0 0; max-width: 62ch; }
@media (max-width: 820px) {
  .cadre { grid-template-columns: 1fr; }
  .nav { border-right: 0; border-bottom: 1px solid var(--trait); display: flex; gap: .25rem; overflow-x: auto; padding: .5rem; }
  .nav h2 { display: none; }
  .nav a { white-space: nowrap; }
  .barre .marque span, .qui { display: none; }
}

/* Cartes et grilles */
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.25rem; box-shadow: var(--ombre); }
.carte > h2:first-child, .carte > h3:first-child { margin-top: 0; }
.carte.principale { border-color: var(--ens-bleu-trait); }
.adresse { font: 600 1.05rem/1.3 var(--mono); color: var(--encre); word-break: break-all; }
.chiffre { font-size: 1.75rem; font-weight: 650; color: var(--encre); line-height: 1.1; }
.etiquette { color: var(--texte-doux); font-size: .85rem; }
.pile > * + * { margin-top: 1rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: 0 1rem;
  border-radius: var(--rayon-petit); border: 1px solid var(--trait); background: var(--surface); color: var(--encre);
  font: 500 .92rem/1 var(--police); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ens-bleu-trait); background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); }
.btn.primaire { background: var(--ens-bleu); border-color: var(--ens-bleu); color: #fff; }
.btn.primaire:hover { background: var(--ens-bleu-fonce); border-color: var(--ens-bleu-fonce); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primaire, .btn.primaire:hover { color: #11131c; } }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-fond); border-color: var(--danger); }
.btn.discret { border-color: transparent; background: transparent; }
.btn.petit { min-height: 32px; padding: 0 .65rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
form.enligne { display: inline; }

/* Champs */
.champ { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.champ label, .champ > span { font-weight: 550; font-size: .9rem; color: var(--encre); }
.champ .aide, .aide { color: var(--texte-doux); font-size: .83rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: .5rem .7rem; border: 1px solid #c8cbd6; border-radius: var(--rayon-petit);
  background: var(--surface); color: var(--texte); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ens-bleu); outline-offset: 0; border-color: var(--ens-bleu); }
.case { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; }
.case input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--ens-bleu); }
.errorlist { list-style: none; margin: .25rem 0 0; padding: 0; color: var(--danger); font-size: .85rem; }
.ligne-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.ligne-form .champ { margin: 0; flex: 1 1 180px; }
fieldset { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.25rem .25rem; margin: 0 0 1.25rem; }
legend { font-weight: 650; color: var(--encre); padding: 0 .35rem; }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau th { font-size: .8rem; font-weight: 600; color: var(--texte-doux); background: var(--fond); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td.num, .tableau th.num { text-align: right; font-variant-numeric: tabular-nums; }
.defile { overflow-x: auto; }

/* Jauge de quota */
.jauge { height: 8px; border-radius: 99px; background: var(--ens-bleu-clair); overflow: hidden; margin: .5rem 0 .35rem; }
.jauge > span { display: block; height: 100%; background: var(--ens-bleu); border-radius: 99px; }
.jauge.haute > span { background: var(--alerte); }
.jauge.pleine > span { background: var(--danger); }

/* Pastilles d'état */
.pastille { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 99px; font-size: .78rem;
  font-weight: 600; background: var(--fond); color: var(--texte-doux); border: 1px solid var(--trait); }
.pastille::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pastille.ok { background: var(--succes-fond); color: var(--succes); border-color: transparent; }
.pastille.alerte { background: var(--alerte-fond); color: var(--alerte); border-color: transparent; }
.pastille.danger { background: var(--danger-fond); color: var(--danger); border-color: transparent; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.message { padding: .75rem 1rem; border-radius: var(--rayon-petit); border: 1px solid var(--trait); background: var(--surface); }
.message.success { background: var(--succes-fond); border-color: transparent; color: var(--succes); }
.message.warning { background: var(--alerte-fond); border-color: transparent; color: var(--alerte); }
.message.error { background: var(--danger-fond); border-color: transparent; color: var(--danger); }

/* Connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.connexion .carte { width: min(420px, 100%); padding: 2rem; }
.connexion img { height: 64px; margin-bottom: 1.25rem; }
.separateur { display: flex; align-items: center; gap: .75rem; color: var(--texte-doux); font-size: .85rem; margin: 1.25rem 0; }
.separateur::before, .separateur::after { content: ""; flex: 1; border-top: 1px solid var(--trait); }

/* Gestionnaire de fichiers */
.miettes { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .92rem; margin-bottom: 1rem; }
.miettes span { color: var(--texte-doux); }
.fichier-nom { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.fichier-nom svg { width: 18px; height: 18px; stroke: var(--texte-doux); fill: none; stroke-width: 1.6; flex: none; }
.fichier-nom .verrou { font-size: .75rem; color: var(--texte-doux); font-weight: 400; }
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .panneau { text-align: left; position: fixed; z-index: 50; min-width: 280px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon); box-shadow: 0 8px 24px rgba(29, 29, 27, .12); padding: .75rem; }
details.menu .panneau form + form { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--trait); }
.depot { border: 2px dashed var(--ens-bleu-trait); border-radius: var(--rayon); padding: 1rem; background: var(--ens-bleu-clair); }

/* Éditeur */
.editeur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.editeur .code { border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; background: var(--surface); min-height: 520px; }
.editeur .code .cm-editor { height: 100%; min-height: 520px; font-size: 14px; }
.editeur .rendu { border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff; display: flex; flex-direction: column; min-height: 520px; }
.editeur .rendu iframe { flex: 1; border: 0; width: 100%; border-radius: 0 0 var(--rayon) var(--rayon); }
.editeur .rendu .titre-rendu { padding: .5rem .8rem; font-size: .82rem; color: #5b5d66; border-bottom: 1px solid #dfe1ea; display: flex; gap: .5rem; align-items: center; }
.retraits { margin-top: 1rem; }
.retraits li { margin-bottom: .25rem; }
@media (max-width: 1000px) { .editeur { grid-template-columns: 1fr; } }

/* Choix du mode : deux grandes cartes */
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.choix .carte { display: flex; flex-direction: column; gap: .5rem; }
.choix .carte .btn { margin-top: auto; align-self: flex-start; }

/* Tutoriel (première connexion) */
.tutoriel { border-left: 4px solid var(--ens-bleu); }
.tutoriel ol { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.tutoriel li { margin-bottom: .35rem; }

.pied { color: var(--texte-doux); font-size: .8rem; margin-top: 3rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.grille, section.carte, section.retraits, section[aria-labelledby="ver"] { margin-top: 1.25rem; }
.entete + .grille, .entete + section { margin-top: 0; }
.espace-haut { margin-top: 1.25rem; }

/* ================================================================ Atelier : éditeurs plein écran (visuel et HTML) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atelier .cadre { grid-template-columns: 1fr; min-height: 0; }
.atelier .nav { display: none; }
.atelier .contenu { padding: 0; max-width: none; height: calc(100vh - 64px); display: flex; flex-direction: column; overflow: hidden; }
.atelier .messages { margin: .5rem 1rem 0; }
.atelier-barre { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border-bottom: 1px solid var(--trait);
  background: var(--surface); flex: none; min-height: 52px; flex-wrap: wrap; }
.atelier-titre { font-weight: 650; color: var(--encre); padding: 0 .4rem 0 .2rem; border-left: 1px solid var(--trait); padding-left: .8rem; }
.atelier-droite { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.etat-enreg { font-size: .82rem; color: var(--texte-doux); min-width: 8rem; text-align: right; }
.etat-enreg.erreur { color: var(--danger); }
.choix-theme strong { font-weight: 650; }
.segmente { display: inline-flex; border: 1px solid var(--trait); border-radius: var(--rayon-petit); overflow: hidden; }
.segmente button { border: 0; background: var(--surface); color: var(--texte-doux); padding: .35rem .55rem; cursor: pointer; display: grid; place-items: center; }
.segmente button + button { border-left: 1px solid var(--trait); }
.segmente button.actif { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); }
.atelier-corps { flex: 1; display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); min-height: 0; }

/* Panneau des sections */
.panneau-sections { border-right: 1px solid var(--trait); background: var(--fond); overflow-y: auto; padding: .9rem .9rem 3rem; }
.panneau-tete { display: flex; align-items: center; justify-content: space-between; margin: .1rem .1rem .8rem; }
.panneau-tete h2 { margin: 0; font-size: .95rem; }
.sections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.sec { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); transition: box-shadow .15s, border-color .15s; }
.sec.ouverte { border-color: var(--ens-bleu-trait); box-shadow: 0 2px 10px rgba(29, 29, 27, .06); }
.sec.masquee .sec-libelle { opacity: .5; }
.sec.glisse { opacity: .45; }
.sec.cible { box-shadow: 0 -3px 0 var(--ens-bleu); }
.sec-tete { display: flex; align-items: center; gap: .25rem; padding: .35rem .4rem .35rem .3rem; }
.poignee { width: 22px; display: grid; place-items: center; color: var(--texte-doux); cursor: grab; flex: none; }
.poignee .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.sec-ouvrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .35rem .25rem; cursor: pointer;
  text-align: left; color: var(--texte); font: inherit; border-radius: var(--rayon-petit); }
.sec-ouvrir:hover { background: var(--fond); }
.sec-icone { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ens-bleu-clair); color: var(--ens-bleu); flex: none; }
.sec-libelle { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sec-libelle strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-libelle small { color: var(--texte-doux); font-size: .78rem; }
.sec-actions { display: flex; gap: 1px; flex: none; }
.btn-ic { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 6px; color: var(--texte-doux); cursor: pointer; }
.btn-ic:hover { background: var(--fond); color: var(--encre); }
.btn-ic.danger:hover { color: var(--danger); background: var(--danger-fond); }
.btn-ic .ic { width: 16px; height: 16px; }
.btn-ic.actif, .btn-ic[aria-pressed="true"] { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); }
.sec-corps { padding: .25rem 1rem 1rem 1rem; border-top: 1px solid var(--trait); }
.sec-corps > .aide { margin: .6rem 0 .9rem; }
.sec-corps .champ { margin-bottom: .85rem; }
.sec-corps textarea { resize: vertical; }
.champ-libelle { font-weight: 550; font-size: .9rem; color: var(--encre); }
.liste-champ { padding: .75rem .75rem .25rem; margin: .25rem 0 .85rem; }
.liste-champ legend { font-size: .9rem; }
.sous-liste { display: flex; flex-direction: column; gap: .6rem; }
.sous-carte { border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: .5rem .75rem .1rem; background: var(--fond); }
.sous-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: .2rem; }
.sous-num { font-size: .75rem; font-weight: 700; color: var(--texte-doux); background: var(--surface); border: 1px solid var(--trait);
  border-radius: 99px; min-width: 1.5rem; height: 1.5rem; display: grid; place-items: center; }
.ajout { align-self: flex-start; margin-bottom: .6rem; }
.choix-fichier { display: flex; align-items: center; gap: .6rem; padding: .4rem; border: 1px dashed #c8cbd6; border-radius: var(--rayon-petit); }
.choix-fichier img, .choix-vide { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.choix-vide { display: grid; place-items: center; background: var(--fond); color: var(--texte-doux); }
.choix-nom { flex: 1; min-width: 0; font-size: .85rem; color: var(--texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Texte enrichi */
.riche { border: 1px solid #c8cbd6; border-radius: var(--rayon-petit); background: var(--surface); }
.riche:focus-within { outline: 2px solid var(--ens-bleu); border-color: var(--ens-bleu); }
.riche-barre { display: flex; flex-wrap: wrap; gap: 1px; padding: 3px; border-bottom: 1px solid var(--trait); background: var(--fond); border-radius: var(--rayon-petit) var(--rayon-petit) 0 0; }
.riche-contenu { min-height: 96px; padding: .55rem .7rem; outline: none; }
.riche-contenu > :first-child { margin-top: 0; }
.riche-contenu p { margin: 0 0 .6em; }
.riche-contenu ul, .riche-contenu ol { padding-left: 1.3em; margin: 0 0 .6em; }
.riche-contenu blockquote { border-left: 3px solid var(--ens-bleu-trait); margin: .4em 0; padding-left: .8em; color: var(--texte-doux); }
.riche-contenu h3 { font-size: 1.05rem; margin: .6em 0 .3em; }
.ProseMirror { white-space: pre-wrap; word-wrap: break-word; }
.ProseMirror-focused { outline: none; }
.ProseMirror p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: var(--texte-doux); float: left; height: 0; pointer-events: none; }

/* Scène d'aperçu */
.scene { background: repeating-conic-gradient(var(--fond) 0 25%, var(--surface) 0 50%) 0 0 / 22px 22px; overflow: auto; display: flex; justify-content: center; padding: 1.25rem; min-width: 0; }
.scene-cadre { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--trait), 0 12px 32px rgba(29, 29, 27, .12); transition: width .25s ease; }
.scene-cadre[data-appareil="tablette"] { width: 820px; }
.scene-cadre[data-appareil="mobile"] { width: 390px; }
.scene-cadre iframe { width: 100%; height: 100%; border: 0; display: block; }
.scene-chargement { position: absolute; inset: 0 0 auto; height: 3px; overflow: hidden; }
.scene-chargement span { display: block; height: 100%; width: 35%; background: var(--ens-bleu); animation: barre-chargement 1s ease-in-out infinite; }
@keyframes barre-chargement { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* Dialogues */
.dialogue { border: 0; border-radius: 14px; padding: 1.25rem 1.4rem 1.4rem; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem);
  background: var(--surface); color: var(--texte); box-shadow: 0 24px 64px rgba(15, 18, 30, .3); }
.dialogue.large { width: min(1120px, calc(100vw - 2rem)); }
.dialogue.petit { width: min(440px, calc(100vw - 2rem)); }
.dialogue::backdrop { background: rgba(15, 18, 30, .45); backdrop-filter: blur(2px); }
.dialogue-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.dialogue-tete h2 { margin: 0; font-size: 1.15rem; }
.dialogue[open] { animation: apparition .18s ease-out; }
@keyframes apparition { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.filtres { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 1rem; }
.filtre { border: 1px solid var(--trait); background: var(--surface); color: var(--texte); border-radius: 99px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; }
.filtre.actif { background: var(--ens-bleu); border-color: var(--ens-bleu); color: #fff; }
.grille-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.theme-carte { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface);
  cursor: pointer; overflow: hidden; color: var(--texte); font: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.theme-carte:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 29, 27, .1); border-color: var(--ens-bleu-trait); }
.theme-carte.choisi { border-color: var(--ens-bleu); box-shadow: 0 0 0 2px var(--ens-bleu); }
.theme-vignette { display: block; height: 170px; overflow: hidden; position: relative; border-bottom: 1px solid var(--trait); pointer-events: none; background: var(--fond); }
.theme-vignette iframe { width: 1280px; height: 900px; border: 0; transform: scale(.2); transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.grille-themes .theme-vignette iframe { transform: scale(var(--echelle, .2)); }
.theme-texte { display: flex; flex-direction: column; gap: .15rem; padding: .75rem .9rem .9rem; }
.theme-texte small { color: var(--texte-doux); font-size: .78rem; }
.theme-texte span { font-size: .85rem; color: var(--texte-doux); }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-top: .5rem; }
.catalogue-carte { display: flex; gap: .7rem; align-items: flex-start; text-align: left; padding: .75rem; border: 1px solid var(--trait); border-radius: 10px;
  background: var(--surface); color: var(--texte); cursor: pointer; font: inherit; }
.catalogue-carte:hover { border-color: var(--ens-bleu); background: var(--ens-bleu-clair); }
.catalogue-carte small { display: block; color: var(--texte-doux); font-size: .8rem; margin-top: .15rem; }
.depot-zone { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; margin: .75rem 0 1rem; border: 2px dashed var(--ens-bleu-trait);
  border-radius: 10px; background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); cursor: pointer; font-weight: 550; }
.depot-zone:focus-within { outline: 3px solid var(--ens-bleu); }
.choix-fichiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; max-height: 50vh; overflow-y: auto; }
.fichier-carte { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .5rem; border: 1px solid var(--trait); border-radius: 8px;
  background: var(--surface); cursor: pointer; color: var(--texte); font: inherit; font-size: .75rem; word-break: break-all; }
.fichier-carte:hover { border-color: var(--ens-bleu); }
.fichier-carte img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.fichier-carte .ic { width: 40px; height: 40px; margin: .75rem 0; color: var(--texte-doux); }
@media (max-width: 900px) {
  .atelier .contenu { height: auto; overflow: visible; }
  .atelier-corps { grid-template-columns: 1fr; }
  .panneau-sections { border-right: 0; max-height: none; }
  .scene { height: 80vh; }
  .atelier-droite { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ================================================================ Visite guidée (surimpression) */
.visite { position: fixed; inset: 0; z-index: 1000; pointer-events: auto; }
.visite-trou { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(12, 15, 28, .58), 0 0 0 2px rgba(255, 255, 255, .9);
  transition: top .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none; }
.visite.centree .visite-trou { box-shadow: 0 0 0 9999px rgba(12, 15, 28, .62); }
.visite-bulle { position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--surface); color: var(--texte); border-radius: 14px;
  padding: 1.1rem 1.2rem 1rem; box-shadow: 0 18px 48px rgba(12, 15, 28, .35); outline: none; opacity: 0;
  transition: top .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.visite.ouverte .visite-bulle { opacity: 1; }
.visite.centree .visite-bulle { width: min(440px, calc(100vw - 24px)); padding: 1.6rem 1.6rem 1.2rem; text-align: left; }
.visite-logo { height: 40px; width: auto; margin-bottom: .9rem; }
.visite-bulle::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); }
.visite-bulle[data-cote="bas"]::after { top: -7px; left: calc(var(--fleche, 50%) - 7px); }
.visite-bulle[data-cote="haut"]::after { bottom: -7px; left: calc(var(--fleche, 50%) - 7px); }
.visite-bulle[data-cote="droite"]::after { left: -7px; top: calc(var(--fleche, 50%) - 7px); }
.visite-bulle[data-cote="gauche"]::after { right: -7px; top: calc(var(--fleche, 50%) - 7px); }
.visite-bulle[data-cote="centre"]::after, .visite-bulle[data-cote="dedans"]::after { display: none; }
.visite-compteur { font-size: .75rem; font-weight: 600; color: var(--ens-bleu); margin: 0 0 .35rem; }
.visite-bulle h2 { font-size: 1.08rem; margin: 0 0 .4rem; }
.visite.centree .visite-bulle h2 { font-size: 1.3rem; }
.visite-texte { color: var(--texte-doux); font-size: .93rem; margin: 0 0 1rem; }
.visite-pied { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.visite-points { display: flex; gap: 5px; }
.visite-points span { width: 6px; height: 6px; border-radius: 99px; background: var(--trait); transition: width .2s, background .2s; }
.visite-points span.actif { width: 18px; background: var(--ens-bleu); }
.visite-boutons { display: flex; gap: .35rem; }
@media (prefers-reduced-motion: reduce) { .visite-trou, .visite-bulle { transition: none; } }
.cases-themes > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .3rem 1rem; }
.cases-themes label { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
.cases-themes input { accent-color: var(--ens-bleu); width: 16px; height: 16px; }

/* ================================================================ Éditeur HTML (atelier) */
.editeur-html { --part-code: .5; grid-template-columns: 240px minmax(0, calc((100% - 246px) * var(--part-code))) 6px minmax(0, 1fr); }
.editeur-html.sans-arbre { grid-template-columns: 0 minmax(0, calc((100% - 6px) * var(--part-code))) 6px minmax(0, 1fr); }
.editeur-html.sans-arbre .arbre { visibility: hidden; border: 0; padding: 0; }
.editeur-html.redimension { user-select: none; }
.editeur-html.redimension iframe { pointer-events: none; }
.arbre { border-right: 1px solid var(--trait); background: var(--fond); overflow: auto; padding: .75rem .5rem 1rem; display: flex; flex-direction: column; min-width: 0; }
.arbre .panneau-tete { margin: 0 .35rem .5rem; }
.arbre-liste, .arbre-liste ul { list-style: none; margin: 0; padding: 0; }
.arbre-liste { flex: 1; }
.noeud { width: 100%; display: flex; align-items: center; gap: .4rem; border: 0; background: none; font: inherit; font-size: .88rem; color: var(--texte);
  padding: .3rem .45rem; border-radius: 6px; cursor: pointer; text-align: left; min-width: 0; }
.noeud span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noeud small { margin-left: auto; font-size: .7rem; color: var(--texte-doux); border: 1px solid var(--trait); border-radius: 99px; padding: 0 .4rem; }
.noeud:hover { background: var(--surface); }
.noeud.actif { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); font-weight: 600; }
.noeud.inerte { color: var(--texte-doux); cursor: default; }
.noeud.inerte:hover { background: none; }
.noeud .ic { width: 15px; height: 15px; color: var(--texte-doux); }
.noeud.dossier .ic:first-child { width: 12px; height: 12px; }
.noeud.dossier .ic:nth-child(1) { transform: none; }
.niveau-1 { padding-left: 1.2rem; } .niveau-2 { padding-left: 1.95rem; } .niveau-3 { padding-left: 2.7rem; }
.niveau-4 { padding-left: 3.45rem; } .niveau-5, .niveau-6 { padding-left: 4.2rem; }
.arbre-gerer { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--texte-doux); text-decoration: none; padding: .5rem .45rem 0; border-top: 1px solid var(--trait); margin-top: .75rem; }
.arbre-gerer:hover { color: var(--ens-bleu); }
.arbre-gerer .ic { width: 15px; height: 15px; }
.onglet-fichier { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border: 1px solid var(--trait); border-radius: 8px;
  background: var(--fond); font: 500 .86rem var(--mono); color: var(--encre); max-width: 32ch; }
.onglet-fichier > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onglet-fichier .ic { width: 15px; height: 15px; color: var(--ens-bleu); }
.point-modif { width: 8px; height: 8px; border-radius: 50%; background: var(--alerte); flex: none; }
.colonne-code { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.code-zone { flex: 1; min-height: 0; overflow: hidden; }
.code-zone .cm-editor { height: 100%; font-size: 14px; background: var(--surface); color: var(--texte); }
.code-zone .cm-scroller { font-family: var(--mono); line-height: 1.65; }
.code-zone .cm-gutters { background: var(--fond); border-right: 1px solid var(--trait); color: var(--texte-doux); }
.code-zone .cm-activeLineGutter { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); }
.code-zone .cm-activeLine { background: color-mix(in srgb, var(--ens-bleu) 5%, transparent); }
.code-zone .cm-content { caret-color: var(--ens-bleu); padding: .5rem 0 2rem; }
.code-zone .cm-cursor { border-left-color: var(--ens-bleu); border-left-width: 2px; }
.code-zone .cm-selectionBackground, .code-zone .cm-focused .cm-selectionBackground { background: color-mix(in srgb, var(--ens-bleu) 22%, transparent) !important; }
.code-zone .cm-focused { outline: none; }
.verif { border-top: 1px solid var(--trait); background: var(--surface); flex: none; max-height: 34%; display: flex; flex-direction: column; }
.verif-tete { display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: var(--fond); padding: .45rem .8rem; font: 600 .85rem var(--police);
  color: var(--encre); cursor: pointer; text-align: left; }
.verif-tete .ic { width: 16px; height: 16px; color: var(--ens-bleu); }
.verif-tete .chevron { margin-left: auto; color: var(--texte-doux); transition: transform .2s; }
.verif.repliee .chevron { transform: rotate(180deg); }
.verif.repliee .verif-corps { display: none; }
.badge { min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 99px; background: var(--alerte-fond); color: var(--alerte); font-size: .75rem; display: grid; place-items: center; }
.badge.vide { background: var(--succes-fond); color: var(--succes); }
.verif-resume { font-weight: 400; color: var(--texte-doux); font-size: .82rem; }
.verif-corps { overflow-y: auto; padding: .4rem .8rem .6rem; }
.verif-corps ul { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.verif-corps li { display: flex; gap: .55rem; align-items: baseline; font-size: .86rem; }
.verif-corps li.ok { color: var(--succes); }
.pastille-v { font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; flex: none; }
.pastille-v.retrait { background: var(--alerte-fond); color: var(--alerte); }
.pastille-v.lien { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); }
.barre-etat { display: flex; gap: 1.25rem; padding: .25rem .8rem; border-top: 1px solid var(--trait); background: var(--fond); font-size: .75rem; color: var(--texte-doux); flex: none; }
.barre-etat span:first-child { margin-right: auto; }
.separateur-v { cursor: col-resize; background: var(--trait); position: relative; }
.separateur-v::after { content: ""; position: absolute; left: 1px; top: 50%; width: 4px; height: 36px; margin-top: -18px; border-radius: 99px; background: var(--texte-doux); opacity: .4; }
.separateur-v:hover, .separateur-v:focus-visible { background: var(--ens-bleu-trait); }
.editeur-html .scene { padding: 1rem; }
.segmente.large { display: flex; margin-bottom: 1rem; }
.segmente.large label { flex: 1; display: flex; cursor: pointer; }
.segmente.large label + label { border-left: 1px solid var(--trait); }
.segmente.large input { position: absolute; opacity: 0; }
.segmente.large span { flex: 1; text-align: center; padding: .45rem .5rem; font-size: .88rem; }
.segmente.large input:checked + span { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); font-weight: 600; }
.segmente.large input:focus-visible + span { outline: 2px solid var(--ens-bleu); outline-offset: -2px; }
@media (max-width: 1100px) {
  .editeur-html, .editeur-html.sans-arbre { grid-template-columns: 1fr; grid-template-rows: auto 70vh auto 80vh; }
  .editeur-html .arbre { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--trait); }
  .separateur-v { display: none; }
  .atelier .contenu { height: auto; overflow: visible; }
}
.bandeau-info { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .5rem .9rem; background: var(--alerte-fond); color: var(--alerte);
  border-bottom: 1px solid var(--trait); font-size: .88rem; flex: none; }
.bandeau-info > span { flex: 1; min-width: 240px; }
.onglets { display: flex; gap: .25rem; border-bottom: 1px solid var(--trait); margin-bottom: 1.25rem; flex-wrap: wrap; }
.onglets a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; text-decoration: none; color: var(--texte-doux); font-weight: 550;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglets a[aria-current="page"] { color: var(--ens-bleu-fonce); border-bottom-color: var(--ens-bleu); }
.onglets .compte { font-size: .75rem; background: var(--fond); border: 1px solid var(--trait); border-radius: 99px; padding: 0 .45rem; }
.citation-admin { margin: 0; padding: .6rem .9rem; border-left: 3px solid var(--ens-bleu-trait); background: var(--fond); border-radius: 0 6px 6px 0; }
.espace-bas { margin-bottom: 1rem; }
.decision ul { margin: 0; }
.histogramme { width: 100%; height: 180px; display: block; margin-top: .5rem; }
.histogramme rect { fill: var(--ens-bleu); opacity: .85; }
.histogramme rect:hover { opacity: 1; fill: var(--ens-bleu-fonce); }
.histo-axe { display: flex; justify-content: space-between; color: var(--texte-doux); font-size: .78rem; margin-top: .35rem; }
/* Personnalisation des thèmes */
.disposition { border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: .6rem .75rem .2rem; margin-bottom: 1rem; background: var(--fond); }
.dispo-ligne { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
.dispo-ligne > span { font-size: .85rem; font-weight: 550; color: var(--encre); }
.segmente.petit button { font: 500 .8rem var(--police); padding: .3rem .6rem; color: var(--texte); }
.segmente.petit button.actif { color: var(--ens-bleu-fonce); font-weight: 650; }
.segmente.petit button[disabled] { cursor: not-allowed; opacity: .6; }
.perso-corps { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.perso-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.nuancier { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .6rem; }
.pastille-couleur { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--trait); cursor: pointer; padding: 0; }
.pastille-couleur.actif { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ens-bleu); }
.pastille-couleur.origine { width: auto; padding: 0 .6rem; background: var(--fond); color: var(--texte); font: 600 .75rem var(--police); }
.couleur-libre { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; cursor: pointer; }
.couleur-libre input { width: 40px; height: 30px; border: 1px solid var(--trait); border-radius: 6px; padding: 2px; background: var(--surface); }
.alerte-couleur { color: var(--danger); }
.pastille-v.moderation { background: var(--danger-fond); color: var(--danger); }
.verif-corps li.moderation { font-weight: 550; }
/* Coloration syntaxique (classes tok-*) : contraste ≥ 4,5 sur le fond, en clair comme en sombre */
.code-zone .tok-keyword, .code-zone .tok-typeName { color: #2b3572; }
.code-zone .tok-tagName { color: #1f4f9e; }
.code-zone .tok-attributeName, .code-zone .tok-propertyName { color: #7a1f45; }
.code-zone .tok-string, .code-zone .tok-attributeValue { color: #1d5a4a; }
.code-zone .tok-comment { color: #5d606b; font-style: italic; }
.code-zone .tok-number, .code-zone .tok-atom, .code-zone .tok-bool { color: #8a4a0c; }
.code-zone .tok-className, .code-zone .tok-variableName, .code-zone .tok-labelName { color: #5b3596; }
.code-zone .tok-punctuation, .code-zone .tok-operator, .code-zone .tok-angleBracket { color: #45474f; }
.code-zone .tok-invalid { color: #a8261c; text-decoration: underline wavy; }
.code-zone .tok-meta, .code-zone .tok-documentMeta, .code-zone .tok-processingInstruction { color: #5d606b; }
@media (prefers-color-scheme: dark) {
  .code-zone .tok-keyword, .code-zone .tok-typeName { color: #b9c3ff; }
  .code-zone .tok-tagName { color: #8fb8ff; }
  .code-zone .tok-attributeName, .code-zone .tok-propertyName { color: #f2a7c8; }
  .code-zone .tok-string, .code-zone .tok-attributeValue { color: #8ee0b9; }
  .code-zone .tok-comment, .code-zone .tok-meta { color: #a8abb5; }
  .code-zone .tok-number, .code-zone .tok-atom, .code-zone .tok-bool { color: #f2c27a; }
  .code-zone .tok-className, .code-zone .tok-variableName { color: #d4b8ff; }
  .code-zone .tok-punctuation, .code-zone .tok-operator, .code-zone .tok-angleBracket { color: #c9cbd3; }
}
/* Téléphone : rien ne dépasse de l'écran */
.cadre > * { min-width: 0; }
@media (max-width: 820px) {
  .nav { max-width: 100vw; }
  .contenu { padding-left: 1rem; padding-right: 1rem; }
  .atelier-barre { gap: .4rem; }
  .atelier-titre { display: none; }
  .onglet-fichier { max-width: 100%; min-width: 0; flex: 1 1 140px; }
  .atelier-droite { flex-wrap: wrap; gap: .35rem; }
  .etat-enreg { min-width: 0; flex-basis: 100%; text-align: left; order: 9; }
  .tableau { display: block; overflow-x: auto; }
}
details.menu:not([open]) > .panneau { display: none; }
details.menu .panneau { left: 8px; top: 8px; }
.defile, .tableau { position: relative; }

/* corbeille : boutons côte à côte dans une cellule */
.en-ligne { display: inline-block; margin: 0 0 0 .25rem; }

/* QR code de la page (tableau de bord) */
.qr-page { margin-top: .75rem; }
.qr-page img { display: block; margin: .75rem 0; background: #fff; padding: .25rem; border-radius: 4px; }

/* Éditeur visuel : choix de la page (accueil + pages) */
.pages-barre { display: flex; align-items: center; gap: .4rem; margin: .1rem .1rem 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--trait); }
.pages-barre label { font-size: .85rem; font-weight: 600; }
.pages-barre select { flex: 1; min-width: 0; }

/* Conseils d'accessibilité (éditeur visuel) */
.bandeau-acces { padding: .5rem .9rem; background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); font-size: .9rem; }
.bandeau-acces summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.bandeau-acces ul { margin: .5rem 0 .25rem 1.2rem; padding: 0; }
.bandeau-acces li { margin: .2rem 0; }
.pastille-v.acces { background: var(--ens-bleu-clair); color: var(--ens-bleu-fonce); }

/* Aperçu téléphone : écran de 390 × 844 avec cadre */
.scene-cadre[data-appareil="mobile"] { height: min(100%, 844px); border-radius: 34px; box-shadow: 0 0 0 10px #1d1d1b, 0 0 0 11px var(--trait), 0 16px 40px rgba(29, 29, 27, .25); }
.scene:has(.scene-cadre[data-appareil="mobile"]) { padding: 1.75rem; }

/* un bandeau masqué reste masqué (display: flex ci-dessus l emportait sur l attribut hidden) */
.bandeau-info[hidden], .bandeau-acces[hidden] { display: none; }

/* Annonces du SSI (bandeau en haut de chaque page de la console) */
.annonce { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; padding: .7rem 1rem; margin: 0 0 1rem; border-radius: 6px; border-left: 4px solid; }
.annonce-info { background: var(--ens-bleu-clair); border-color: var(--ens-bleu); color: var(--ens-bleu-fonce); }
.annonce-important, .annonce-maintenance { background: var(--alerte-fond); border-color: var(--alerte); }
.annonce-texte { flex-basis: 100%; }

/* Cybersécurité : liste des contrôles */
.controles { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.controles li { padding: .5rem .2rem; border-bottom: 1px solid var(--trait); }

.entete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.chiffre-moyen { font-size: 1.15rem; font-weight: 700; margin: .25rem 0; }
.historique { margin: .25rem 0 0 1.1rem; padding: 0; }
.historique a[aria-current] { font-weight: 700; }

/* Copier l'adresse d'un fichier */
.copie-adresse { min-width: 18rem; max-width: min(34rem, 92vw); }
.copie-adresse .aide { margin: .25rem 0; }
.copie-ligne { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.copie-ligne code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .82rem; background: var(--surface); border: 1px solid var(--trait); border-radius: 4px; padding: .2rem .4rem; user-select: all; }
.copie-faite { color: var(--ens-bleu-fonce); }
.arbre-liste li.avec-copie { display: flex; align-items: center; }
.arbre-liste li.avec-copie > .noeud { flex: 1; min-width: 0; }
.copier-noeud { flex: none; border: 0; background: none; padding: .2rem .3rem; cursor: pointer; color: var(--texte-doux); border-radius: 4px; opacity: 0; }
.arbre-liste li.avec-copie:hover .copier-noeud, .copier-noeud:focus-visible, .copier-noeud.copie-faite { opacity: 1; }
.copier-noeud:hover { background: var(--surface); color: var(--ens-bleu); }
.copier-noeud .ic { width: 14px; height: 14px; }
@media (hover: none) { .copier-noeud { opacity: 1; } }

/* Aide des utilisateurs */
.aide-recherche { max-width: 40rem; margin: 0 0 1rem; }
.aide-recherche label { display: block; font-weight: 600; margin-bottom: .3rem; }
.aide-recherche input { width: 100%; }
.aide-sommaire ol { columns: 3 12rem; column-gap: 2rem; margin: 0 0 1.5rem; padding-left: 1.4rem; }
.aide-sommaire li { margin-bottom: .25rem; break-inside: avoid; }
.aide-corps { max-width: 52rem; }
.aide-partie { margin-bottom: 2rem; scroll-margin-top: 1rem; }
.aide-partie h2 { margin-bottom: .6rem; }
.aide-q { border: 1px solid var(--trait); border-radius: 8px; margin-bottom: .5rem; background: var(--fond); }
.aide-q > summary { cursor: pointer; padding: .65rem .9rem; font-weight: 600; }
.aide-q > div, .aide-q-fixe { padding: 0 .9rem .6rem; line-height: 1.6; }
.aide-q-fixe { padding-top: .6rem; }
.aide-q code { overflow-wrap: anywhere; }

/* Dépôt de dossiers par glisser-déposer */
.zone-depot.survol { outline: 2px dashed var(--ens-bleu); outline-offset: 4px; border-radius: 8px; }
#depot-etat:empty { display: none; }
