/* Nightlune — styles.
   VOICE : calme, tendre, nocturne. IDEA : une veilleuse de chevet. PICTURE : grande horloge + arc de la nuit.
   COLOUR : deux thèmes — « Minuit » (bleu nuit très sombre, petites étoiles) et « Rose » (rose pastel pâle).
   TYPE : Fraunces (horloge, titres) + Nunito (interface). LAYOUT : barre latérale (large), barre du bas (téléphone). */
:root, :root[data-theme="minuit"] {
  color-scheme: dark;
  --bg: #050816; --bg2: #0a1030; --bg3: #131b45;
  --carte: rgba(18, 26, 66, .62); --carte-forte: rgba(24, 34, 84, .85); --ligne: rgba(170, 186, 255, .14);
  --ink: #e9ecff; --mute: #98a3d4; --faible: #6c77a8;
  --accent: #9db8ff; --accent-ink: #0a1030; --accent2: #cbb9ff; --lune: #f4ecd2;
  --ok: #8fe3c4; --alerte: #ff9eb5; --attente: #ffd99a; --danger: #ff7f9d; --danger-ink: #2a0610;
  --ombre: 0 10px 40px rgba(0, 0, 0, .45);
  --degrade: radial-gradient(1200px 700px at 80% -10%, #1a2466 0%, transparent 60%), radial-gradient(900px 600px at -10% 110%, #160f45 0%, transparent 55%), linear-gradient(180deg, #050816, #070b22);
}
:root[data-theme="rose"] {
  color-scheme: light;
  --bg: #fdf3f6; --bg2: #fbe7ee; --bg3: #f6d8e3;
  --carte: rgba(255, 255, 255, .72); --carte-forte: rgba(255, 255, 255, .92); --ligne: rgba(186, 110, 140, .16);
  --ink: #4b2636; --mute: #8f6475; --faible: #b898a6;
  --accent: #e690ae; --accent-ink: #ffffff; --accent2: #b79be0; --lune: #f7c7d6;
  --ok: #3f9d7c; --alerte: #cf4f74; --attente: #b98118; --danger: #d9506f; --danger-ink: #ffffff;
  --ombre: 0 10px 34px rgba(190, 110, 140, .18);
  --degrade: radial-gradient(1000px 640px at 85% -10%, #ffe1ea 0%, transparent 60%), radial-gradient(800px 560px at -10% 110%, #f1e2ff 0%, transparent 55%), linear-gradient(180deg, #fdf3f6, #fbeaf0);
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); background-image: var(--degrade); background-attachment: fixed; color: var(--ink);
  font: 16px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
#ciel { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 20px; }
.mute { color: var(--mute); }
.petit { font-size: 13.5px; }
.cache { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Boutons et champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--ligne); background: var(--carte-forte); cursor: pointer; text-decoration: none;
  font-weight: 700; color: var(--ink); transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .champ:focus-visible, .chip:focus-visible, .nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.prim { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { background: var(--danger); color: var(--danger-ink); border-color: transparent; }
.btn.fantome { background: transparent; }
.btn.mini { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.champ { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--carte-forte); font-size: 16px; }
textarea.champ { min-height: 90px; resize: vertical; }
label.lab { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.aide { font-size: 13px; color: var(--mute); margin-top: 4px; }
.rang { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grille2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 520px) { .grille2 { grid-template-columns: minmax(0, 1fr); } }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.interrupteur { position: relative; width: 52px; height: 32px; flex: none; }
.interrupteur input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.interrupteur span { position: absolute; inset: 0; border-radius: 999px; background: var(--bg3); border: 1px solid var(--ligne); transition: background .2s; }
.interrupteur span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); opacity: .8; transition: transform .2s; }
.interrupteur input:checked + span { background: var(--accent); }
.interrupteur input:checked + span::after { transform: translateX(20px); background: var(--accent-ink); opacity: 1; }
.interrupteur input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; min-width: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--carte); cursor: pointer; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- Structure ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.cote { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--ligne); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(10px); }
.marque { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-family: "Fraunces", serif; font-size: 18px; white-space: nowrap; }
.marque svg { width: 34px; height: 34px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 14px; color: var(--mute); text-decoration: none; font-weight: 700; }
.nav a svg { width: 22px; height: 22px; flex: none; }
.nav a[aria-current="page"] { background: var(--carte-forte); color: var(--ink); }
.nav a:hover { color: var(--ink); }
.cote .bas { margin-top: auto; }
main { padding: clamp(16px, 3vw, 36px); padding-bottom: 120px; max-width: 1200px; width: 100%; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pastille { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne); font-size: 13.5px; font-weight: 700; color: var(--mute); }
.pastille i { width: 9px; height: 9px; border-radius: 50%; background: var(--faible); flex: none; }
.pastille.ok i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pastille.attente i { background: var(--attente); }
.pastille.alerte i { background: var(--alerte); }
.barre-bas { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .cote { display: none; }
  .barre-bas {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--ligne);
  }
  .barre-bas a, .barre-bas button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; color: var(--mute); text-decoration: none; font-size: 11.5px; font-weight: 700; background: none; border: 0; cursor: pointer; }
  .barre-bas svg { width: 24px; height: 24px; }
  .barre-bas [aria-current="page"] { color: var(--accent); }
  main { padding-top: calc(16px + env(safe-area-inset-top)); }
}

/* ---------- Cartes ---------- */
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: 22px; padding: 18px; box-shadow: var(--ombre); backdrop-filter: blur(8px); }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.carte h3 { margin-bottom: 8px; }
.etiquette { font-size: 13px; font-weight: 800; color: var(--mute); margin: 0 0 6px; }
.valeur { font-family: "Fraunces", serif; font-size: 26px; line-height: 1.15; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 14px; }
.vide { text-align: center; padding: 32px 16px; color: var(--mute); }
.vide svg { width: 56px; height: 56px; opacity: .6; }

/* ---------- Accueil ---------- */
.heros { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 760px) { .heros { grid-template-columns: minmax(0, 1fr); } }
.horloge-carte { position: relative; overflow: hidden; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; }
.horloge { font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(72px, 13vw, 132px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.horloge small { font-size: .32em; color: var(--mute); margin-left: 6px; }
.date-jour { color: var(--mute); font-weight: 700; margin-top: 6px; }
.date-jour::first-letter { text-transform: uppercase; }
.arc { width: 100%; height: auto; margin-top: 12px; }
.prochain { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.prochain strong { font-family: "Fraunces", serif; font-size: 26px; font-weight: 400; }
.commandes-heros { display: flex; flex-direction: column; gap: 14px; }
.gros-sleep {
  position: relative; width: 100%; min-height: 150px; border: 0; border-radius: 28px; cursor: pointer; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 40%, transparent);
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; text-align: left; transition: transform .2s;
}
.gros-sleep:hover { transform: translateY(-2px); }
.gros-sleep svg { width: 64px; height: 64px; flex: none; }
.gros-sleep b { display: block; font-family: "Fraunces", serif; font-size: 30px; font-weight: 400; }
.gros-sleep span { font-weight: 700; opacity: .85; }
.gros-sleep.actif { background: var(--carte-forte); color: var(--ink); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.stop-tout { width: 100%; min-height: 64px; font-size: 18px; border-radius: 22px; }
.sonne-ailleurs { border: 2px solid var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--danger) 0%, transparent), 0 0 26px var(--danger); } }

/* ---------- Listes ---------- */
.liste { display: flex; flex-direction: column; gap: 10px; }
.ligne-alarme { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ligne-alarme .h { font-family: "Fraunces", serif; font-size: 40px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-alarme.off { opacity: .55; }
.ligne-alarme .actions { display: flex; gap: 6px; align-items: center; }
.icone-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--carte-forte); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icone-btn svg { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .ligne-alarme { grid-template-columns: minmax(0, 1fr) auto; }
  .ligne-alarme .h { font-size: 34px; }
  .ligne-alarme .texte { grid-column: 1 / -1; order: 3; }
}
.journal li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.journal { list-style: none; padding: 0; margin: 0; }
.journal time { color: var(--mute); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.etats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.etats li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--carte); border: 1px solid var(--ligne); }
.etats li b { display: block; }
.puce { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.puce svg { width: 15px; height: 15px; }
.puce.ok, .puce.stopped, .puce.snoozed, .puce.received { background: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); }
.puce.manual, .puce.partial { background: color-mix(in srgb, var(--attente) 25%, transparent); color: var(--attente); }
.puce.failed { background: color-mix(in srgb, var(--alerte) 25%, transparent); color: var(--alerte); }
.puce.attente { background: var(--bg3); color: var(--mute); animation: tourne 1.2s linear infinite; }
.puce.na, .puce.idle, .puce.horsligne { background: var(--bg3); color: var(--faible); }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Calendrier ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .nomj { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--mute); padding: 4px 0; }
.cal button { min-height: 64px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--carte); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 2px; gap: 4px; }
.cal button.hors { opacity: .35; }
.cal button.auj { border-color: var(--accent); }
.cal button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cal .points { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.cal .points i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }
.cal button[aria-pressed="true"] .points i { background: var(--accent-ink); }

/* ---------- Médias ---------- */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.preset { position: relative; min-height: 110px; border-radius: 20px; border: 1px solid var(--ligne); background: var(--carte); cursor: pointer; padding: 14px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; overflow: hidden; }
.preset svg { width: 34px; height: 34px; color: var(--accent); }
.preset b { font-weight: 800; }
.preset .cat { font-size: 12.5px; color: var(--mute); }
.preset.joue { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.lecteur { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.ondes { display: flex; gap: 4px; align-items: flex-end; height: 40px; }
.ondes i { width: 5px; border-radius: 3px; background: var(--accent); animation: onde 1.4s ease-in-out infinite; height: 30%; }
.ondes i:nth-child(2) { animation-delay: .2s; } .ondes i:nth-child(3) { animation-delay: .4s; } .ondes i:nth-child(4) { animation-delay: .6s; } .ondes i:nth-child(5) { animation-delay: .8s; }
.ondes.arret i { animation: none; height: 20%; opacity: .4; }
@keyframes onde { 50% { height: 100%; } }
#lecteur-video video { width: 100%; max-height: 50vh; border-radius: 16px; background: #000; margin-top: 12px; }
#lecteur-video audio { width: 100%; margin-top: 12px; }

/* ---------- Assistant ---------- */
.fil { display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.bulle { max-width: min(560px, 88%); padding: 12px 16px; border-radius: 20px; background: var(--carte-forte); border: 1px solid var(--ligne); white-space: pre-wrap; }
.bulle.moi { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-color: transparent; border-bottom-right-radius: 6px; }
.bulle.ia { border-bottom-left-radius: 6px; }
.propositions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.proposition { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--carte); border: 1px dashed var(--ligne); flex-wrap: wrap; }
.saisie { position: sticky; bottom: 76px; display: flex; gap: 8px; margin-top: 16px; padding: 8px; border-radius: 999px; background: var(--carte-forte); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.saisie .champ { border: 0; background: transparent; }
@media (min-width: 901px) { .saisie { bottom: 16px; } }
.suggestions { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.suggestions .chip { flex: none; }

/* ---------- Thèmes (aperçus) ---------- */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.theme-choix { border-radius: 22px; border: 2px solid var(--ligne); padding: 0; overflow: hidden; cursor: pointer; text-align: left; background: none; }
.theme-choix[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.theme-choix .apercu { height: 120px; position: relative; }
.theme-choix .apercu.minuit { background: radial-gradient(circle at 75% 25%, #f4ecd2 0 13px, transparent 14px), radial-gradient(circle at 20% 30%, #fff 0 1.4px, transparent 2px), radial-gradient(circle at 40% 60%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 60% 80%, #cdd8ff 0 1.2px, transparent 1.8px), radial-gradient(circle at 85% 70%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 10% 75%, #fff 0 1.2px, transparent 1.8px), linear-gradient(160deg, #0a1030, #050816); }
.theme-choix .apercu.rose { background: radial-gradient(circle at 75% 28%, #fff 0 13px, transparent 14px), radial-gradient(circle at 25% 70%, #ffd6e3 0 40px, transparent 42px), radial-gradient(circle at 60% 85%, #ecdcff 0 34px, transparent 36px), linear-gradient(160deg, #fdeef3, #f8dce7); }
.theme-choix .nom { padding: 12px 14px; font-weight: 800; color: var(--ink); background: var(--carte-forte); }

/* ---------- Superpositions ---------- */
.voile { position: fixed; inset: 0; z-index: 95; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.fenetre { width: min(640px, 100%); max-height: min(88vh, 900px); overflow: auto; background: var(--bg2); border: 1px solid var(--ligne); border-radius: 26px; padding: 22px; box-shadow: var(--ombre); }
.fenetre .titre { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.fenetre .pied { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; position: sticky; bottom: -22px; padding: 12px 0 0; background: var(--bg2); }
@media (max-width: 600px) { .voile { place-items: end center; padding: 0; } .fenetre { border-radius: 26px 26px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); } }
.sonnerie { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: var(--degrade); background-color: var(--bg); }
.sonnerie .h { font-family: "Fraunces", serif; font-size: clamp(80px, 22vw, 160px); font-weight: 300; line-height: 1; }
.sonnerie .soleil { width: 120px; height: 120px; animation: lever 3s ease-in-out infinite alternate; }
@keyframes lever { from { transform: translateY(8px) scale(.96); } to { transform: translateY(-8px) scale(1.04); } }
.sonnerie .boutons { display: flex; flex-direction: column; gap: 12px; width: min(420px, 100%); }
.sonnerie .btn { min-height: 64px; font-size: 19px; }
.cinema { position: fixed; inset: 0; z-index: 75; background: #000; display: flex; flex-direction: column; }
.cinema-ecran { flex: 1; position: relative; }
.cinema-ecran iframe, .cinema-ecran video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.cinema-barre { display: flex; gap: 8px; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .7); color: #cfcfd8; font-weight: 700; }
.cinema-barre span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinema-barre .btn { background: #1b1b22; color: #e6e6ee; border-color: #2c2c36; }
.cinema.reduit { inset: auto 12px calc(90px + env(safe-area-inset-bottom)) auto; width: min(360px, 62vw); aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.cinema.reduit .cinema-barre { padding: 6px 8px; font-size: 12px; }
.veilleuse { position: fixed; inset: 0; z-index: 80; background: #000; color: #8a7a60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; cursor: pointer; }
.veilleuse .h { font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(64px, 18vw, 140px); line-height: 1; }
.veilleuse .actions { display: flex; gap: 10px; margin-top: 24px; opacity: .8; }
.veilleuse .btn { background: #111; color: #a89878; border-color: #222; }
.teinte { position: fixed; inset: 0; pointer-events: none; z-index: 70; background: rgba(255, 140, 40, .14); mix-blend-mode: multiply; }
.assombri { position: fixed; inset: 0; pointer-events: none; z-index: 69; background: #000; }
.toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100% - 24px)); }
.toast { padding: 12px 16px; border-radius: 16px; background: var(--carte-forte); border: 1px solid var(--ligne); box-shadow: var(--ombre); font-weight: 700; animation: monte .3s ease; }
.toast.alerte { border-color: var(--alerte); } .toast.ok { border-color: var(--ok); }
@keyframes monte { from { transform: translateY(10px); opacity: 0; } }
@media (min-width: 901px) { .toasts { bottom: 24px; } }

/* ---------- Connexion ---------- */
.porte { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.porte .carte { width: min(440px, 100%); padding: 28px; }
.porte .lune { width: 86px; height: 86px; display: block; margin: 0 auto 10px; }
.porte h1 { text-align: center; font-size: clamp(32px, 6vw, 42px); }
.porte p.intro { text-align: center; color: var(--mute); margin: 8px 0 10px; }
.erreur { color: var(--alerte); font-weight: 700; min-height: 1.5em; margin-top: 10px; }
table.tab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.tab th, table.tab td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
table.tab th { color: var(--mute); font-size: 13px; }
.scroll { overflow-x: auto; }
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack tr { display: grid; padding-block: 10px; border-bottom: 1px solid var(--ligne); }
  table.stack td { display: flow-root; border: 0; padding: 3px 0; padding-inline-start: 8.5em; }
  table.stack td::before { content: attr(data-l); float: inline-start; width: 8em; margin-inline-start: -8.5em; color: var(--mute); font-weight: 700; font-size: 13px; }
}
