/* =========================================================================
   Espace client · ketos.tech
   Registre plateforme de la charte 2026 : givre, encre, filets ; la
   terracotta #B4542F pour ce qui se clique, rien d'autre ; le charcoal pour
   la barre et l'aperçu plein écran. Icônes au trait, monochromes.
   ========================================================================= */

:root {
  --givre: #f3f4f4;
  --blanc: #ffffff;
  --encre: #1d1f21;
  --graphite: #4a4e52;
  --gris: #63686c;
  --filet: #d5d9da;
  --filet-fort: #7f868a;
  --sauge: #598c67;
  --sauge-brume: #e1e8e2;
  --terra: #b4542f;
  --terra-profond: #9d3f17;
  --terra-pale: #f5e4d3;
  --charcoal: #22201f;
  --charcoal-leve: #2d2b29;
  --clair: #f1efee;
  --clair-2: #bab9b8;
  --clair-3: #9f9e9d;
  --alerte: #b3261e;

  --titre: 'Plus Jakarta Sans', system-ui, sans-serif;
  --corps: 'Albert Sans', system-ui, sans-serif;
  --r: 8px;
  --r-petit: 5px;
  --t: .18s cubic-bezier(.2, .7, .3, 1);
  --page: 78rem;
  --gouttiere: clamp(1rem, 3.5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--givre);
  color: var(--encre);
  font: 400 15px/1.5 var(--corps);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--petit { width: 16px; height: 16px; }
.ico--grand { width: 40px; height: 40px; stroke-width: 1.2; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Boutons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 38px; padding: 0 .95rem;
  border: 1px solid var(--filet-fort); border-radius: var(--r-petit);
  background: var(--blanc); color: var(--encre);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { background: var(--terra-pale); border-color: var(--terra); }
.btn--action { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn--action:hover { background: var(--terra-profond); border-color: var(--terra-profond); color: #fff; }
.btn--danger { color: var(--alerte); border-color: var(--alerte); }
.btn--danger:hover { background: #fbeceb; border-color: var(--alerte); }
.btn--fantome { border-color: transparent; background: transparent; }
.btn--fantome:hover { background: rgba(29, 31, 33, .06); border-color: transparent; }
.btn--icone { width: 36px; min-height: 36px; padding: 0; }
.btn:disabled { opacity: .5; cursor: default; }
.lien { background: none; border: 0; padding: 0; cursor: pointer; color: var(--terra-profond); text-decoration: underline; text-decoration-color: var(--terra); text-underline-offset: 3px; font-weight: 600; }

/* ---- Champs ----------------------------------------------------------- */

.champ { display: grid; gap: .35rem; margin-bottom: 1rem; }
.champ > span { font-weight: 600; font-size: 13.5px; }
.champ small { color: var(--gris); font-size: 12.5px; }
.saisie {
  width: 100%; min-height: 42px; padding: .55rem .75rem;
  border: 1px solid var(--filet-fort); border-radius: var(--r-petit); background: var(--blanc);
  transition: border-color var(--t), box-shadow var(--t);
}
textarea.saisie { min-height: 84px; resize: vertical; line-height: 1.45; }
.saisie:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(180, 84, 47, .18); }
.saisie-groupe { display: flex; gap: .5rem; }
.saisie-groupe .saisie { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.case { display: flex; gap: .6rem; align-items: flex-start; margin: .25rem 0 1rem; cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--terra); }
.case small { display: block; color: var(--gris); font-size: 12.5px; }

/* ---- Barre ------------------------------------------------------------ */

.barre { background: var(--charcoal); color: var(--clair); }
.barre__in { max-width: var(--page); margin: 0 auto; padding: 0 var(--gouttiere); height: 56px; display: flex; align-items: center; gap: 1rem; }
.barre__logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.barre__logo img { height: 22px; width: auto; }
.barre__titre { font: 600 13px/1 var(--corps); letter-spacing: .06em; text-transform: uppercase; color: var(--clair-2); padding-left: .75rem; border-left: 1px solid #4a4744; }
.barre__droite { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.barre__qui { font-size: 13.5px; color: var(--clair-2); margin-right: .5rem; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre .btn--fantome { color: var(--clair); }
.barre .btn--fantome:hover { background: var(--charcoal-leve); }

.page { max-width: var(--page); margin: 0 auto; padding: 1.75rem var(--gouttiere) 5rem; }

/* ---- Connexion -------------------------------------------------------- */

.connexion { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.connexion__marque {
  background: var(--charcoal); color: var(--clair);
  padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.connexion__marque img { height: 30px; width: auto; }
.connexion__marque h1 { font: 800 clamp(2rem, 4vw, 3.1rem)/1.05 var(--titre); letter-spacing: -.02em; margin: 0 0 1rem; max-width: 12ch; }
.connexion__marque p { color: var(--clair-2); max-width: 34ch; margin: 0; font-size: 16px; }
.connexion__marque small { color: var(--clair-3); font-size: 12.5px; }
.connexion__outil {
  display: flex; align-items: center; gap: .85rem; margin-top: 2rem; max-width: 26rem; position: relative; z-index: 1;
  padding: .9rem 1rem; border: 1px solid #4a4746; border-radius: var(--r); color: var(--clair); text-decoration: none;
  transition: border-color var(--t), background var(--t);
}
.connexion__outil:hover { border-color: var(--terra); background: var(--charcoal-leve); }
.connexion__outil > span { display: grid; gap: .15rem; flex: 1; }
.connexion__outil strong { font-family: var(--titre); font-size: 15px; }
.connexion__outil span span { color: var(--clair-2); font-size: 13.5px; line-height: 1.4; }
.connexion__outil .ico { color: var(--clair-2); }
.connexion__ventouses { position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; opacity: .5; pointer-events: none; }
.connexion__form { display: grid; place-items: center; padding: 2rem var(--gouttiere); }
.connexion__form form { width: 100%; max-width: 360px; }
.connexion__form h2 { font: 700 1.5rem/1.2 var(--titre); margin: 0 0 .35rem; }
.connexion__form p.intro { color: var(--graphite); margin: 0 0 1.75rem; }
.connexion__form .btn { width: 100%; min-height: 44px; margin-top: .5rem; }
.connexion__aide { margin-top: 1.5rem; color: var(--gris); font-size: 13px; }
.erreur { color: var(--alerte); font-size: 13.5px; min-height: 1.2em; margin: .25rem 0 0; }

/* ---- En-tête de page -------------------------------------------------- */

.fil { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; font-size: 13.5px; color: var(--gris); margin-bottom: .6rem; }
.fil a, .fil button { color: var(--graphite); text-decoration: none; border-radius: 4px; padding: .15rem .35rem; background: none; border: 0; cursor: pointer; }
.fil a:hover { color: var(--encre); background: rgba(29, 31, 33, .06); }
.fil .sep { color: var(--filet-fort); }
.fil .ici { color: var(--encre); font-weight: 600; padding: .15rem .35rem; }
.fil .cible-depot { background: var(--terra-pale); outline: 1px dashed var(--terra); }

.entete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--filet); margin-bottom: 1.25rem; }
.entete__texte { flex: 1 1 22rem; min-width: 0; }
.entete h1 { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--titre); letter-spacing: -.015em; margin: 0; overflow-wrap: anywhere; }
.entete__legende { margin: .5rem 0 0; color: var(--graphite); max-width: 70ch; white-space: pre-line; }
.entete__legende--vide { color: var(--gris); }
.entete__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.outils { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.outils__info { color: var(--gris); font-size: 13.5px; margin-right: auto; }
.bascule { display: inline-flex; border: 1px solid var(--filet); border-radius: var(--r-petit); background: var(--blanc); padding: 2px; }
.bascule button { border: 0; background: none; width: 32px; height: 30px; border-radius: 3px; display: grid; place-items: center; cursor: pointer; color: var(--gris); }
.bascule button[aria-pressed="true"] { background: var(--givre); color: var(--encre); }

/* ---- Grille des fichiers --------------------------------------------- */

.section-titre { font: 600 12px/1 var(--corps); text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin: 1.5rem 0 .75rem; }
.section-titre:first-child { margin-top: .25rem; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.grille--dossiers { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.carte {
  position: relative; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r);
  display: flex; flex-direction: column; min-width: 0; cursor: pointer;
  transition: border-color var(--t), transform var(--t);
}
.carte:hover { border-color: var(--filet-fort); }
.carte:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.carte.cible-depot { border-color: var(--terra); background: var(--terra-pale); }
.carte.glisse { opacity: .45; }
.carte__vue { aspect-ratio: 4 / 3; background: var(--givre); border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; overflow: hidden; display: grid; place-items: center; color: var(--gris); position: relative; }
.carte__vue img, .carte__vue video { width: 100%; height: 100%; object-fit: cover; }
.carte__vue .pastille { position: absolute; left: 8px; bottom: 8px; background: rgba(34, 32, 31, .78); color: var(--clair); border-radius: 999px; padding: 3px 8px 3px 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.carte__vue .pastille .ico { width: 13px; height: 13px; }
.carte__ext { position: absolute; font: 700 11px/1 var(--corps); letter-spacing: .06em; color: var(--graphite); bottom: 22%; }
.carte__corps { padding: .6rem .7rem .7rem; min-width: 0; }
.carte__nom { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 26px; }
.carte__meta { color: var(--gris); font-size: 12.5px; margin-top: 1px; }
.carte__legende { color: var(--graphite); font-size: 13px; line-height: 1.4; margin-top: .35rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

/* Dossier : une ligne, l'icône à gauche */
.carte--dossier { flex-direction: row; align-items: flex-start; gap: .7rem; padding: .75rem .7rem; }
.carte--dossier > .ico { margin-top: 1px; color: var(--graphite); }
.carte--dossier .carte__corps { padding: 0; flex: 1; }
.carte__menu { position: absolute; right: 6px; top: 6px; }
.carte--dossier .carte__menu { top: 8px; }

.menu-bouton { width: 30px; height: 30px; border-radius: 6px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--graphite); }
.menu-bouton:hover, .menu-bouton[aria-expanded="true"] { background: rgba(29, 31, 33, .08); color: var(--encre); }
.carte--fichier .menu-bouton { background: rgba(255, 255, 255, .92); }

/* ---- Liste ----------------------------------------------------------- */

.liste { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r); overflow: hidden; }
.liste th { text-align: left; font: 600 12px/1 var(--corps); text-transform: uppercase; letter-spacing: .07em; color: var(--gris); padding: .75rem .9rem; border-bottom: 1px solid var(--encre); background: var(--blanc); }
.liste td { padding: .6rem .9rem; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.liste tr:last-child td { border-bottom: 0; }
.liste tbody tr { cursor: pointer; transition: background var(--t); }
.liste tbody tr:hover { background: #fafbfb; }
.liste tbody tr.cible-depot { background: var(--terra-pale); }
.liste .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--graphite); }
.liste .discret { color: var(--gris); white-space: nowrap; font-size: 13.5px; }
.liste__nom { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.liste__nom .ico { color: var(--graphite); }
.liste__nom strong { font-weight: 600; display: block; overflow-wrap: anywhere; }
.liste__nom span { display: block; color: var(--graphite); font-size: 13px; white-space: pre-line; }
.liste__mini { width: 40px; height: 30px; border-radius: 4px; object-fit: cover; background: var(--givre); flex: none; }
.liste .col-actions { width: 1%; white-space: nowrap; text-align: right; }

/* ---- Vide et dépôt --------------------------------------------------- */

.vide { border: 1px dashed var(--filet-fort); border-radius: var(--r); padding: 3rem 1.5rem; text-align: center; color: var(--graphite); background: rgba(255, 255, 255, .5); }
.vide .ico { margin: 0 auto .75rem; color: var(--gris); }
.vide strong { display: block; font: 700 1.05rem/1.3 var(--titre); color: var(--encre); margin-bottom: .25rem; }
.vide p { margin: 0 auto 1rem; max-width: 42ch; }

.depot-voile {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: rgba(243, 244, 244, .86); border: 3px dashed var(--terra);
  display: grid; place-items: center; opacity: 0; transition: opacity var(--t);
}
.depot-voile.actif { opacity: 1; }
.depot-voile div { text-align: center; font: 700 1.25rem/1.3 var(--titre); }
.depot-voile .ico { margin: 0 auto .5rem; }

/* ---- Téléversements -------------------------------------------------- */

.envois { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: min(380px, calc(100vw - 32px)); background: var(--blanc); border: 1px solid var(--filet-fort); border-radius: var(--r); box-shadow: 0 12px 40px rgba(29, 31, 33, .16); overflow: hidden; }
.envois__tete { display: flex; align-items: center; gap: .5rem; padding: .65rem .5rem .65rem .9rem; background: var(--charcoal); color: var(--clair); font-weight: 600; font-size: 14px; }
.envois__tete span { flex: 1; }
.envois__tete .btn--fantome { color: var(--clair); min-height: 30px; width: 30px; }
.envois__tete .btn--fantome:hover { background: var(--charcoal-leve); }
.envois__liste { max-height: 280px; overflow: auto; }
.envoi { padding: .6rem .9rem; border-bottom: 1px solid var(--filet); font-size: 13.5px; }
.envoi:last-child { border-bottom: 0; }
.envoi__ligne { display: flex; gap: .5rem; align-items: center; }
.envoi__nom { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.envoi__etat { color: var(--gris); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.envoi__etat.ok { color: var(--sauge); font-weight: 600; }
.envoi__etat.ko { color: var(--alerte); }
.envoi__barre { height: 3px; background: var(--givre); border-radius: 2px; margin-top: .4rem; overflow: hidden; }
.envoi__barre i { display: block; height: 100%; width: 0; background: var(--terra); transition: width .2s linear; }
.envoi__annuler { border: 0; background: none; cursor: pointer; color: var(--gris); padding: 2px; display: grid; }

/* ---- Menus contextuels ----------------------------------------------- */

.menu {
  position: fixed; z-index: 60; min-width: 200px; background: var(--blanc); border: 1px solid var(--filet-fort);
  border-radius: var(--r); padding: 4px; box-shadow: 0 10px 30px rgba(29, 31, 33, .16);
}
.menu button { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: none; padding: .5rem .65rem; border-radius: 5px; cursor: pointer; text-align: left; font-size: 14px; }
.menu button:hover, .menu button:focus-visible { background: var(--givre); outline: none; }
.menu button.danger { color: var(--alerte); }
.menu hr { border: 0; border-top: 1px solid var(--filet); margin: 4px 2px; }

/* ---- Fenêtres -------------------------------------------------------- */

dialog.fenetre {
  border: 1px solid var(--filet-fort); border-radius: 10px; padding: 0; width: min(480px, calc(100vw - 32px));
  background: var(--blanc); color: var(--encre); box-shadow: 0 24px 60px rgba(29, 31, 33, .22);
}
dialog.fenetre::backdrop { background: rgba(34, 32, 31, .5); }
.fenetre form { padding: 1.4rem 1.5rem 1.25rem; }
.fenetre h2 { font: 700 1.2rem/1.3 var(--titre); margin: 0 0 .35rem; }
.fenetre .chapo { color: var(--graphite); margin: 0 0 1.25rem; font-size: 14px; }
.fenetre__pied { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--filet); }
.acces { background: var(--givre); border: 1px solid var(--filet); border-radius: var(--r-petit); padding: .9rem 1rem; font-size: 14px; line-height: 1.7; white-space: pre-line; font-variant-numeric: tabular-nums; }
.acces b { font-weight: 600; }

/* ---- Clients (admin) ------------------------------------------------- */

.client__nom { font-weight: 600; }
.client__note { color: var(--graphite); font-size: 13px; }
.etiquette { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--filet); color: var(--graphite); background: var(--givre); white-space: nowrap; }
.etiquette--sauge { background: var(--sauge-brume); border-color: #c6d3c9; color: #324836; }
.etiquette--alerte { background: #fbeceb; border-color: #f0c9c6; color: var(--alerte); }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }

/* ---- Aperçu plein écran --------------------------------------------- */

.apercu { position: fixed; inset: 0; z-index: 50; background: #171615; color: var(--clair); display: grid; grid-template-rows: auto 1fr auto; }
.apercu__tete { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem .6rem 1.1rem; min-height: 56px; }
.apercu__titre { flex: 1; min-width: 0; }
.apercu__titre strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apercu__titre span { font-size: 12.5px; color: var(--clair-3); }
.apercu .btn--fantome { color: var(--clair); }
.apercu .btn--fantome:hover { background: var(--charcoal-leve); }
.apercu .btn { border-color: #4a4744; background: var(--charcoal-leve); color: var(--clair); }
.apercu .btn:hover { border-color: var(--terra); background: var(--charcoal); }
.apercu .btn--action { background: var(--terra); border-color: var(--terra); color: #fff; }
.apercu .btn--action:hover { background: var(--terra-profond); border-color: var(--terra-profond); }
.apercu__scene { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 0 clamp(.5rem, 5vw, 4.5rem); }
.apercu__scene img, .apercu__scene video { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 3px; }
.apercu__scene iframe { width: min(100%, 1100px); height: calc(100vh - 150px); height: calc(100dvh - 150px); border: 0; background: #fff; border-radius: 3px; }
.apercu__scene pre { width: min(100%, 900px); max-height: 100%; overflow: auto; margin: 0; background: var(--charcoal); border: 1px solid #3a3836; border-radius: 6px; padding: 1.25rem; font: 13px/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; color: var(--clair); }
.apercu__scene audio { width: min(100%, 520px); }
.apercu__fichier { text-align: center; color: var(--clair-2); }
.apercu__fichier .ico { margin: 0 auto 1rem; color: var(--clair-2); }
.apercu__fichier p { margin: 0 0 1.25rem; }
.apercu__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid #4a4744; background: rgba(34, 32, 31, .7); color: var(--clair); display: grid; place-items: center; cursor: pointer; }
.apercu__nav:hover { border-color: var(--terra); }
.apercu__nav--prec { left: 12px; }
.apercu__nav--suiv { right: 12px; }
.apercu__pied { padding: .9rem 1.25rem 1.1rem; text-align: center; color: var(--clair-2); font-size: 14px; min-height: 1rem; }
.apercu__pied p { margin: 0 auto; max-width: 70ch; white-space: pre-line; }
.apercu__compte { color: var(--clair-3); font-size: 12.5px; margin-top: .35rem; }

/* ---- Notifications --------------------------------------------------- */

#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--charcoal); color: var(--clair); padding: .65rem 1rem; border-radius: 6px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: toast-in .2s ease-out; max-width: calc(100vw - 32px); }
.toast--erreur { border-left: 3px solid #e2705f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

.chargement { padding: 3rem 0; text-align: center; color: var(--gris); }

/* ---- Petits écrans --------------------------------------------------- */

@media (max-width: 760px) {
  .connexion { grid-template-columns: 1fr; }
  .connexion__marque { min-height: auto; padding-bottom: 2.5rem; }
  .connexion__marque h1 { font-size: 1.9rem; }
  .connexion__ventouses { width: 180px; height: 180px; }
  .barre__titre { display: none; }
  .grille { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .liste .masquer-mobile { display: none; }
  .entete__actions { width: 100%; }
  .apercu__nav { width: 40px; height: 40px; }
  .apercu__tete .libelle-long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Logo : retour sur ketos.tech ; titre : accueil de l'espace ---------- */
.barre__logo a { display: flex; align-items: center; text-decoration: none; }
.barre__titre:hover { color: var(--clair); }

/* ---- Liens publics ------------------------------------------------------- */
.discret { color: var(--gris); font-size: 13.5px; }
.pastille-lien { display: inline-flex; vertical-align: -3px; margin-left: .4rem; color: var(--sauge); }
.liste__nom .pastille-lien { display: inline-flex; }
.btn--partage { background: var(--sauge-brume); border-color: #c6d3c9; color: #324836; }
.partages { display: grid; gap: .6rem; margin-bottom: 1.1rem; }
.partage { border: 1px solid var(--filet); border-radius: var(--r); padding: .6rem; background: var(--givre); }
.partage--expire { opacity: .6; }
.partage__ligne { display: flex; gap: .4rem; }
.saisie--lien { flex: 1; min-width: 0; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; background: var(--blanc); }
.partage__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .8rem; margin-top: .45rem; font-size: 12.5px; color: var(--graphite); }
.lien--danger { color: var(--alerte); text-decoration-color: var(--alerte); }
.bloc-partages { margin-top: 2.5rem; }
.ligne--eteinte { opacity: .55; }
select.saisie { appearance: auto; }

/* ---- Page publique d'un lien partagé --------------------------------------- */
.public .barre__in { justify-content: space-between; }
.public__note { font-size: 13px; color: var(--clair-2); }
.public__fichier { background: var(--blanc); border: 1px solid var(--filet); border-radius: 12px; overflow: hidden; max-width: 54rem; }
.public__vue { background: var(--givre); display: grid; place-items: center; max-height: 70vh; overflow: hidden; }
.public__vue img, .public__vue video { max-width: 100%; max-height: 70vh; object-fit: contain; }
.public__vue audio { width: 100%; margin: 2rem; }
.public__vue .ico--grand { margin: 3rem; color: var(--gris); }
.public__infos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.public__infos strong { display: block; overflow-wrap: anywhere; }
.public__infos span { color: var(--graphite); font-size: 13.5px; }
.public__erreur { max-width: 30rem; margin: 4rem auto; text-align: center; }
.public__erreur h1 { font: 700 1.6rem/1.2 var(--titre); margin: 1rem 0 .5rem; }
.public__erreur p { color: var(--graphite); }
.public__pied { color: var(--gris); font-size: 13px; margin-top: 2.5rem; }
.public a.carte, .public a.carte__vue { text-decoration: none; color: inherit; }
.public .barre__titre { text-decoration: none; }
.public__note a { color: var(--clair); }
