/* ACCÈS — feuille de style. Jetons de couleur en tête ; thème clair et sombre. */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --marque-1: #10b981;
  --marque-2: #0d9488;
  --marque-3: #0f766e;
  --degrade: linear-gradient(135deg, #34d399 0%, #10b981 45%, #0d9488 100%);
  --barre-1: #0a1d21;
  --barre-2: #0f2e33;
  --barre-texte: #c9dcd9;
  --barre-actif: rgba(52, 211, 153, 0.14);

  --fond: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --texte: #0f1f1c;
  --texte-doux: #5b6b68;
  --bordure: #e1e8e6;
  --ombre: 0 1px 2px rgba(15, 31, 28, 0.06), 0 4px 16px rgba(15, 31, 28, 0.05);

  --ok: #15803d;
  --ok-fond: #dcfce7;
  --refus: #b45309;
  --refus-fond: #fef3c7;
  --alarme: #b91c1c;
  --alarme-fond: #fee2e2;
  --info: #475569;
  --info-fond: #e2e8f0;

  --rayon: 14px;
  --rayon-petit: 9px;
  --police: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='clair']) {
    --fond: #0b1513;
    --surface: #111e1c;
    --surface-2: #152422;
    --texte: #e3eeec;
    --texte-doux: #93a6a2;
    --bordure: #22332f;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.4);
    --ok: #4ade80;
    --ok-fond: rgba(74, 222, 128, 0.12);
    --refus: #fbbf24;
    --refus-fond: rgba(251, 191, 36, 0.12);
    --alarme: #f87171;
    --alarme-fond: rgba(248, 113, 113, 0.14);
    --info: #a5b4c3;
    --info-fond: rgba(148, 163, 184, 0.14);
    color-scheme: dark;
  }
}

:root[data-theme='sombre'] {
  --fond: #0b1513;
  --surface: #111e1c;
  --surface-2: #152422;
  --texte: #e3eeec;
  --texte-doux: #93a6a2;
  --bordure: #22332f;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ok: #4ade80;
  --ok-fond: rgba(74, 222, 128, 0.12);
  --refus: #fbbf24;
  --refus-fond: rgba(251, 191, 36, 0.12);
  --alarme: #f87171;
  --alarme-fond: rgba(248, 113, 113, 0.14);
  --info: #a5b4c3;
  --info-fond: rgba(148, 163, 184, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.45;
  background: var(--fond);
  color: var(--texte);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--marque-2); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.45rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.95rem; }
.doux { color: var(--texte-doux); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.petit { font-size: 0.85rem; }
.cache { display: none !important; }

/* ---------------- Mise en page ---------------- */

.coque { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.barre {
  background: linear-gradient(180deg, var(--barre-1), var(--barre-2));
  color: var(--barre-texte);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.marque { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.marque img { width: 36px; height: 36px; }
.marque b { font-size: 1.15rem; letter-spacing: 0.08em; }
.marque small { display: block; font-size: 0.7rem; color: #7fa39d; letter-spacing: 0.04em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px;
  color: var(--barre-texte); text-decoration: none; font-size: 0.94rem;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav a.actif { background: var(--barre-actif); color: #fff; box-shadow: inset 3px 0 0 #34d399; }
.nav .titre { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: #6f918b; padding: 14px 11px 4px; }
.barre-bas { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; }
.barre-bas .client { color: #fff; font-weight: 600; }
.barre-bas button { background: none; border: 0; color: #9cc1bb; padding: 4px 0; cursor: pointer; font-size: 0.85rem; }
.barre-bas button:hover { color: #fff; }
.direct { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #7fa39d; margin-top: 8px; }
.direct i { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.direct.ok i { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }

.principal { padding: 26px 30px 60px; min-width: 0; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.entete p { margin: 4px 0 0; color: var(--texte-doux); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.menu-mobile { display: none; }

/* ---------------- Composants ---------------- */

.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); }
.carte > .tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--bordure); }
.carte > .corps { padding: 16px 18px; }
.grille { display: grid; gap: 16px; }
.grille.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille.tableau { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.pile { display: flex; flex-direction: column; gap: 16px; }

.tuile { padding: 16px 18px; }
.tuile .valeur { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.tuile .libelle { color: var(--texte-doux); font-size: 0.85rem; }
.tuile.ok .valeur { color: var(--ok); }
.tuile.refus .valeur { color: var(--refus); }
.tuile.alarme .valeur { color: var(--alarme); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--bordure); background: var(--surface); color: var(--texte);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 550; font-size: 0.9rem;
  text-decoration: none; white-space: nowrap;
}
.bouton:hover { border-color: var(--marque-2); }
.bouton svg { width: 16px; height: 16px; }
.bouton.primaire { background: var(--degrade); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25); }
.bouton.primaire:hover { filter: brightness(1.05); }
.bouton.danger { color: var(--alarme); }
.bouton.danger:hover { border-color: var(--alarme); }
.bouton.petit { padding: 5px 11px; font-size: 0.82rem; }
.bouton:disabled { opacity: 0.55; cursor: not-allowed; }
.lien { background: none; border: 0; padding: 0; color: var(--marque-2); cursor: pointer; font-weight: 550; }

.pastille {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; background: var(--info-fond); color: var(--info);
}
.pastille.autorise, .pastille.ok { background: var(--ok-fond); color: var(--ok); }
.pastille.refuse, .pastille.attente { background: var(--refus-fond); color: var(--refus); }
.pastille.alarme, .pastille.erreur { background: var(--alarme-fond); color: var(--alarme); }
.point { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #94a3b8; flex: none; }
.point.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.point.ko { background: #ef4444; }

table.liste { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.liste th { text-align: left; font-weight: 600; color: var(--texte-doux); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--bordure); white-space: nowrap; }
table.liste td { padding: 10px 12px; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste tr.cliquable { cursor: pointer; }
table.liste tr.cliquable:hover td { background: var(--surface-2); }
.defile { overflow-x: auto; }

.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.formulaire .large { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 5px; }
.champ > span { font-size: 0.82rem; font-weight: 600; color: var(--texte-doux); }
.champ small { color: var(--texte-doux); font-size: 0.78rem; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='date'], input[type='time'], input[type='search'], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--bordure); border-radius: var(--rayon-petit);
  background: var(--surface); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--marque-1); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
textarea { min-height: 90px; resize: vertical; }
.coche { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.coche input { width: 16px; height: 16px; accent-color: var(--marque-2); }
.coches { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filtres .champ { min-width: 150px; }

.vide { text-align: center; padding: 34px 16px; color: var(--texte-doux); }
.vide svg { width: 38px; height: 38px; opacity: 0.5; display: block; margin: 0 auto 8px; }

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

.voile { position: fixed; inset: 0; background: rgba(5, 15, 13, 0.5); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modale { width: min(640px, 100%); background: var(--surface); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.modale.large { width: min(920px, 100%); }
.modale > .tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--bordure); }
.modale > .corps { padding: 18px 22px; }
.modale > .pied { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--bordure); flex-wrap: wrap; }
.fermer { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--texte-doux); }

#notifications { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; max-width: min(420px, calc(100vw - 36px)); }
.notif { background: var(--texte); color: var(--surface); padding: 11px 15px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); font-size: 0.9rem; }
.notif.succes { background: #065f46; color: #fff; }
.notif.erreur, .notif.alarme { background: #991b1b; color: #fff; }

/* ---------------- Tableau de bord ---------------- */

.centrale-bloc + .centrale-bloc { border-top: 1px solid var(--bordure); }
.centrale-bloc { padding: 14px 18px; }
.centrale-bloc .titre { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.portes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.porte { border: 1px solid var(--bordure); border-radius: 12px; padding: 11px 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.porte .nom { font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.porte .etat { font-size: 0.8rem; color: var(--texte-doux); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.porte.ouverte { border-color: color-mix(in srgb, var(--marque-1) 50%, var(--bordure)); }
.porte.en-alarme { border-color: var(--alarme); background: var(--alarme-fond); }
.porte .commandes { display: flex; gap: 6px; flex-wrap: wrap; }
.icone-porte { width: 22px; height: 22px; color: var(--texte-doux); }
.porte.ouverte .icone-porte { color: var(--marque-1); }

.fil { list-style: none; margin: 0; padding: 0; }
.fil li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--bordure); }
.fil li:last-child { border-bottom: 0; }
.fil li.nouveau { animation: arrivee 1.6s ease-out; }
@keyframes arrivee { from { background: color-mix(in srgb, var(--marque-1) 18%, transparent); } to { background: transparent; } }
.fil .heure { font-family: var(--mono); font-size: 0.82rem; color: var(--texte-doux); padding-top: 2px; }
.fil .quoi { font-weight: 550; }
.fil .ou { font-size: 0.83rem; color: var(--texte-doux); }

/* ---------------- Plages horaires ---------------- */

.semaine { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; align-items: center; }
.semaine .jour { font-weight: 600; font-size: 0.88rem; }
.ruban { position: relative; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--bordure); overflow: hidden; }
.ruban i { position: absolute; top: 0; bottom: 0; background: var(--degrade); opacity: 0.85; }
.graduation { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--texte-doux); grid-column: 2; }
.intervalles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.intervalle { display: flex; align-items: center; gap: 4px; }
.intervalle input { width: 108px; padding: 6px 8px; }

/* ---------------- Connexion et présentation ---------------- */

.connexion { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.connexion .visuel { background: linear-gradient(160deg, var(--barre-1), var(--barre-2) 60%, #134e4a); color: #d6ebe7; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.connexion .visuel::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, 0.25), transparent 65%); }
.connexion .visuel h1 { font-size: 2.2rem; color: #fff; max-width: 14em; margin-top: 18px; }
.connexion .visuel p { max-width: 30em; color: #a9c9c3; }
.connexion form { align-self: center; justify-self: center; width: min(400px, 100% - 32px); display: flex; flex-direction: column; gap: 14px; padding: 32px 0; }
.connexion .erreur { color: var(--alarme); font-size: 0.9rem; min-height: 1.2em; }

.code-bloc { background: var(--surface-2); border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 0.85rem; white-space: pre-wrap; }
.etapes { margin: 0; padding-left: 20px; }
.etapes li { margin: 4px 0; }

/* ---------------- Adaptation mobile ---------------- */

@media (max-width: 1100px) {
  .grille.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille.tableau { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .coque { grid-template-columns: 1fr; }
  .barre { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform 0.2s; }
  .barre.ouverte { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.4); }
  .principal { padding: 16px 16px 60px; }
  .menu-mobile { display: inline-flex; }
  .formulaire, .grille.k2 { grid-template-columns: 1fr; }
  .connexion { grid-template-columns: 1fr; }
  .connexion .visuel { padding: 28px 22px; min-height: auto; }
  .connexion .visuel h1 { font-size: 1.6rem; }
  table.liste .masque-mobile { display: none; }
}

/* ---------------- Illustrations de fond par rubrique ---------------- */

.principal { position: relative; isolation: isolate; overflow-x: clip; }
.principal::before {
  content: ''; position: fixed; top: 0; right: 0; bottom: 0; left: 248px; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-position: right -80px bottom -60px; background-size: min(1150px, 85vw) auto;
  opacity: .085; transition: opacity .4s;
}
.principal::after {
  content: ''; position: fixed; top: 0; right: 0; height: 320px; left: 248px; z-index: -2; pointer-events: none;
  background: radial-gradient(700px 260px at 80% 0%, rgba(16, 185, 129, .10), transparent 70%);
}
.principal[data-fond='tableau']::before { background-image: url('/img/fonds/plan.svg'); }
.principal[data-fond='journal']::before { background-image: url('/img/fonds/couloir.svg'); background-position: center bottom; background-size: cover; opacity: .06; }
.principal[data-fond='personnes']::before { background-image: url('/img/fonds/badges.svg'); }
.principal[data-fond='niveaux']::before { background-image: url('/img/fonds/etages.svg'); }
.principal[data-fond='plages']::before { background-image: url('/img/fonds/horloge.svg'); }
.principal[data-fond='centrales']::before { background-image: url('/img/fonds/ville.svg'); background-position: center bottom; background-size: cover; opacity: .07; }
.principal[data-fond='comptes']::before { background-image: url('/img/fonds/cles.svg'); }
.principal[data-fond='reglages']::before { background-image: url('/img/fonds/engrenages.svg'); }
:root[data-theme='sombre'] .principal::before { opacity: .12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='clair']) .principal::before { opacity: .12; } }

/* Pastille d'icône à côté du titre de la rubrique */
.titre-rubrique { display: flex; align-items: center; gap: 14px; }
.titre-rubrique .icone-rubrique { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--degrade); color: #fff; box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .6); }
.titre-rubrique .icone-rubrique svg { width: 22px; height: 22px; }
.entete h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* Cartes : un peu plus d'air et de relief */
.carte { border-radius: 18px; }
.tuile { position: relative; overflow: hidden; }
.tuile::after { content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, .14), transparent 70%); }
.tuile.refus::after { background: radial-gradient(circle, rgba(245, 158, 11, .16), transparent 70%); }
.tuile.alarme::after { background: radial-gradient(circle, rgba(239, 68, 68, .16), transparent 70%); }
.barre { background: linear-gradient(180deg, rgba(10, 29, 33, .97), rgba(15, 46, 51, .97)), url('/img/fonds/plan.svg') center / 900px auto; }

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

.connexion .visuel { background:
  radial-gradient(600px 400px at 85% 15%, rgba(45, 212, 191, .22), transparent 65%),
  linear-gradient(160deg, rgba(4, 16, 19, .9), rgba(11, 38, 43, .88) 60%, rgba(19, 78, 74, .9)),
  url('/img/fonds/plan.svg') center / cover; }
.connexion .visuel h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.connexion .atouts-connexion { display: grid; gap: 12px; margin-top: 26px; position: relative; z-index: 1; }
.connexion .atouts-connexion div { display: flex; align-items: center; gap: 12px; color: #cfe7e2; font-weight: 600; }
.connexion .atouts-connexion i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(110, 231, 183, .12); border: 1px solid rgba(110, 231, 183, .25); color: #6ee7b7; font-style: normal; }
.connexion .atouts-connexion svg { width: 18px; height: 18px; }
.connexion .cote-form { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.connexion .cote-form::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/img/fonds/porte.svg') right -120px bottom -80px / 900px auto no-repeat; opacity: .08; }
.connexion form { background: var(--surface); border: 1px solid var(--bordure); border-radius: 22px; padding: 34px 32px; box-shadow: 0 30px 70px -30px rgba(7, 26, 30, .35); }
.connexion form h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.connexion form .sous-titre { margin: -6px 0 6px; color: var(--texte-doux); font-size: .95rem; }

@media (max-width: 820px) {
  .principal::before, .principal::after { left: 0; }
  .principal::before { background-size: 160% auto; background-position: center bottom; }
  .connexion .atouts-connexion { display: none; }
  .connexion form { padding: 26px 22px; margin: 22px 0; }
}

/* ---------------- Œil des mots de passe ---------------- */

.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 46px; }
.champ-mdp .oeil { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--texte-doux); cursor: pointer; display: grid; place-items: center; }
.champ-mdp .oeil:hover { color: var(--marque-2); background: var(--surface-2); }
.champ-mdp .oeil:focus-visible { outline: 2px solid var(--marque-1); outline-offset: 1px; }
.champ-mdp .oeil svg { width: 19px; height: 19px; }

/* ---------------- Mot de passe oublié ---------------- */

.ligne-libelle { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lien-discret { background: none; border: 0; padding: 0; font: inherit; font-size: .84rem; font-weight: 700; color: var(--marque-2); cursor: pointer; }
.lien-discret:hover { text-decoration: underline; }
.message-info { padding: 12px 14px; border-radius: 12px; background: var(--ok-fond); color: var(--ok); font-size: .9rem; font-weight: 600; }
.message-info.erreur { background: var(--alarme-fond); color: var(--alarme); }
.ligne-libelle label { font-size: .82rem; font-weight: 600; color: var(--texte-doux); }
.connexion .erreur .message-info { margin-top: 2px; }

/* ---------------- Signature Konnyx (menu) ---------------- */

.signature-konnyx { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 12px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .08); text-decoration: none; opacity: .88; transition: opacity .2s; }
.signature-konnyx:hover { opacity: 1; }
.signature-konnyx small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #6f918b; }
.signature-konnyx img { width: 168px; height: auto; }
.connexion .signature-konnyx img { width: 210px; }
.barre { overflow-y: auto; scrollbar-width: thin; }
@media (max-height: 860px) {
  .barre { padding-top: 14px; gap: 2px; }
  .marque { padding-bottom: 10px; }
  .nav a { padding: 7px 11px; }
  .nav .titre { padding-top: 9px; }
  .signature-konnyx { margin-top: 8px; padding-top: 8px; }
  .signature-konnyx img { width: 150px; }
}

/* ---------------- Espace d'essai ---------------- */
.bandeau-essai {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 32px); box-sizing: border-box;
  background: #0b1f1c; color: #e6f2ef; border-radius: 14px; padding: 10px 16px;
  font-size: 13.5px; box-shadow: 0 14px 34px rgba(4, 16, 19, .35);
}
.bandeau-essai b { color: #6ee7b7; }
.bandeau-essai a { color: #ffffff; font-weight: 700; text-decoration: underline; }
