/* ============ DECA — Atelier · charte noir & or ============ */
:root {
  --noir: #0b0b0d;          /* fond de page */
  --noir-pur: #000;         /* en-tête / surfaces les plus profondes */
  --surface: #141417;       /* cartes */
  --surface-2: #1a1a1e;     /* champs, zones alternées */
  --surface-3: #202024;     /* survols */
  --ligne: #2a2a2e;         /* filets fins */
  --ligne-2: #3a3a3e;       /* filets accentués */
  --creme: #ece7da;         /* texte principal */
  --creme-2: #c7c3bd;       /* texte secondaire (gris perle) */
  --gris: #918d83;          /* texte atténué */
  --or: #c9a24b;            /* or — accent principal */
  --or-clair: #e6c878;      /* or clair (survols / brillances) */
  --or-sombre: #6e5a24;     /* or sombre (bordures) */
  --or-fond: #15120a;       /* fond teinté or */
  --vert: #5aa074;          /* valider */
  --vert-fond: #10201a;
  --rouge: #cf6a57;
  --rouge-fond: #271310;
  --orange: #cf9a36;
  --orange-fond: #241a09;
  --bleu: #6ea0d6;
  --bleu-fond: #0f1a26;
  --ombre: 0 10px 34px rgba(0, 0, 0, .55);
  --ombre-petite: 0 4px 16px rgba(0, 0, 0, .45);
  --radius: 14px;
  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --titre: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--police);
  background: var(--noir);
  background-image: radial-gradient(rgba(201, 162, 75, .035) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--creme);
  min-height: 100vh;
  font-size: 15px;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
a { color: var(--or); }
::selection { background: rgba(201, 162, 75, .3); color: #fff; }

/* ---------- chargement initial ---------- */
.chargement-initial { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 16px; }
.logo-pulse img { width: 132px; height: 132px; object-fit: contain; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.05); opacity: 1; } }

/* ---------- structure générale ---------- */
.coquille { min-height: 100vh; display: flex; flex-direction: column; }
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--noir-pur); color: var(--creme);
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; padding-top: calc(9px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--or-sombre);
}
.entete .marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--creme); }
.entete .marque img { width: 34px; height: 30px; object-fit: cover; object-position: center top; }
.entete .marque .titres { line-height: 1.05; }
.entete .marque b { font-family: var(--titre); font-size: 17px; letter-spacing: 3px; color: var(--or); font-weight: 500; }
.entete .marque span { font-size: 8px; letter-spacing: 2px; color: var(--gris); display: block; text-transform: uppercase; margin-top: 1px; }
.entete nav { display: none; gap: 4px; margin-left: 18px; flex: 1; }
.entete nav a {
  color: var(--creme-2); text-decoration: none; padding: 8px 13px; border-radius: 9px;
  font-weight: 600; font-size: 13.5px; letter-spacing: .4px; transition: background .18s, color .18s;
  white-space: nowrap;
}
.entete nav a:hover { background: rgba(201, 162, 75, .1); color: var(--or-clair); }
.entete nav a.actif { background: var(--or-fond); color: var(--or); box-shadow: inset 0 -2px 0 var(--or); }
.entete .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bouton-cloche { position: relative; background: none; border: 1px solid var(--ligne-2); color: var(--creme); border-radius: 10px; width: 38px; height: 38px; font-size: 16px; transition: border-color .18s; }
.bouton-cloche:hover { border-color: var(--or); }
.bouton-cloche .badge-notif {
  position: absolute; top: -6px; right: -6px; background: var(--rouge); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  animation: apparait .25s ease;
}
.pastille-utilisateur { background: transparent; color: var(--or); border: 1px solid var(--or-sombre); border-radius: 10px; width: 38px; height: 38px; font-weight: 700; font-size: 15px; font-family: var(--titre); transition: border-color .18s, background .18s; }
.pastille-utilisateur:hover { border-color: var(--or); background: var(--or-fond); }

.contenu { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 14px calc(86px + env(safe-area-inset-bottom)); animation: page-entre .3s ease; }
@keyframes page-entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* ---------- navigation basse (mobile) ---------- */
.nav-basse {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--noir-pur); display: flex; justify-content: space-around;
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--or-sombre);
}
.nav-basse a {
  color: var(--gris); text-decoration: none; display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 10px; font-weight: 700; letter-spacing: .4px; padding: 4px 8px; border-radius: 10px;
  transition: color .15s, transform .15s; min-width: 56px;
}
.nav-basse a svg { width: 22px; height: 22px; }
.nav-basse a.actif { color: var(--or); transform: translateY(-2px); }
.nav-basse a.actif svg { color: var(--or); filter: drop-shadow(0 0 6px rgba(201, 162, 75, .55)); }

@media (min-width: 900px) {
  .entete nav { display: flex; }
  .nav-basse { display: none; }
  .contenu { padding-bottom: 40px; }
}

/* ---------- composants ---------- */
.carte {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--radius);
  box-shadow: var(--ombre-petite); padding: 16px; margin-bottom: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.carte.cliquable:hover { transform: translateY(-2px); box-shadow: var(--ombre); border-color: var(--or-sombre); cursor: pointer; }
.carte.cliquable:active { transform: translateY(0); box-shadow: var(--ombre-petite); }

.titre-page { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.titre-page .carre { width: 26px; height: 26px; background: var(--or); border-radius: 5px; flex: none; box-shadow: 0 0 12px rgba(201, 162, 75, .35); }
.titre-page h1 { font-family: var(--titre); font-size: 22px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; color: var(--or); }
.titre-page .sous-titre { width: 100%; color: var(--gris); font-size: 13px; margin-left: 38px; margin-top: -6px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--or); color: #1a1407; border: 1px solid var(--or);
  border-radius: 11px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  box-shadow: none; transition: transform .12s, box-shadow .12s, background .15s, filter .15s;
  text-decoration: none; letter-spacing: .3px;
}
.bouton:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(201, 162, 75, .28); }
.bouton:active { transform: translateY(1px); box-shadow: none; }
.bouton:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.bouton.vert { background: var(--vert); border-color: var(--vert); color: #07150e; }
.bouton.rouge { background: var(--rouge); border-color: var(--rouge); color: #1c0a07; }
.bouton.clair { background: var(--surface-2); color: var(--creme); border-color: var(--ligne-2); }
.bouton.clair:hover { border-color: var(--or-sombre); filter: none; }
.bouton.fantome { background: transparent; box-shadow: none; border-color: transparent; color: var(--or); padding: 8px 10px; }
.bouton.fantome:hover { background: rgba(201, 162, 75, .08); box-shadow: none; }
.bouton.petit { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.bouton .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; border: 1px solid var(--ligne-2); background: var(--surface-2); color: var(--creme-2);
  letter-spacing: .3px; white-space: nowrap;
}
.badge.vert { background: var(--vert-fond); border-color: var(--vert); color: #8fd0a8; }
.badge.rouge { background: var(--rouge-fond); border-color: var(--rouge); color: #e89485; }
.badge.orange { background: var(--orange-fond); border-color: var(--orange); color: var(--or-clair); }
.badge.noir { background: var(--or-fond); color: var(--or); border-color: var(--or-sombre); }
.badge.bleu { background: var(--bleu-fond); border-color: var(--bleu); color: #9cc2e6; }

.champ { margin-bottom: 12px; }
.champ label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gris); margin-bottom: 5px; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--ligne-2); border-radius: 10px;
  background: var(--surface-2); color: var(--creme); transition: box-shadow .15s, border-color .15s; outline: none;
}
.champ input::placeholder, .champ textarea::placeholder { color: #5e5b54; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(201, 162, 75, .2); }
.champ textarea { min-height: 84px; resize: vertical; }
.champ .aide { font-size: 12px; color: var(--gris); margin-top: 4px; }
.grille-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grille-2 { grid-template-columns: 1fr 1fr; } }

.rang { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rang.entre { justify-content: space-between; }
.espace { flex: 1; }

/* stats du tableau de bord */
.grille-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 760px) { .grille-stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--radius); box-shadow: var(--ombre-petite); padding: 14px; position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.stat:hover { transform: translateY(-2px); border-color: var(--or-sombre); }
.stat .valeur { font-family: var(--titre); font-size: 30px; font-weight: 500; line-height: 1; color: var(--creme); }
.stat .etiquette { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gris); margin-top: 6px; }
.stat .icone { position: absolute; right: 10px; top: 10px; font-size: 22px; opacity: .7; }
.stat.alerte { border-color: var(--or-sombre); background: var(--or-fond); }
.stat.alerte .valeur { color: var(--or); }
.stat.alerte .etiquette { color: var(--or-clair); }

/* barre de progression */
.progression { background: var(--surface-2); border: 1px solid var(--ligne); border-radius: 999px; height: 16px; overflow: hidden; position: relative; }
.progression > div {
  height: 100%; background: repeating-linear-gradient(45deg, var(--or), var(--or) 12px, var(--or-clair) 12px, var(--or-clair) 24px);
  background-size: 34px 34px; transition: width .6s ease; animation: defile 1.2s linear infinite; min-width: 6px;
}
@keyframes defile { to { background-position: 34px 0; } }
.suivi-job { border: 1px dashed var(--or-sombre); border-radius: var(--radius); padding: 12px 14px; background: var(--or-fond); margin-bottom: 14px; animation: apparait .25s ease; }
.suivi-job .etape { font-size: 13px; font-weight: 600; color: var(--or); margin-top: 6px; }
.suivi-job.erreur { border-color: var(--rouge); background: var(--rouge-fond); }
.suivi-job .journal { font-size: 11.5px; color: var(--creme-2); white-space: pre-wrap; max-height: 130px; overflow: auto; margin-top: 8px; font-family: Consolas, monospace; background: rgba(0, 0, 0, .35); border-radius: 8px; padding: 8px; }

/* onglets */
.onglets { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets button {
  border: 1px solid var(--ligne-2); background: var(--surface); border-radius: 999px; padding: 8px 16px;
  font-weight: 700; font-size: 13px; white-space: nowrap; transition: all .15s; color: var(--creme-2);
}
.onglets button:hover { border-color: var(--or-sombre); }
.onglets button.actif { background: var(--or); color: #1a1407; border-color: var(--or); }

/* zone de dépôt de fichiers */
.zone-depot {
  border: 2px dashed var(--ligne-2); border-radius: var(--radius); padding: 26px 16px; text-align: center;
  background: var(--surface); transition: all .2s; cursor: pointer; margin-bottom: 14px; color: var(--creme);
}
.zone-depot:hover, .zone-depot.survol { border-color: var(--or); background: var(--or-fond); }
.zone-depot .ico { font-size: 30px; }
.zone-depot p { font-weight: 700; margin-top: 6px; }
.zone-depot small { color: var(--gris); }

/* liste de fichiers */
.ligne-fichier { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--ligne); animation: apparait .2s ease; }
.ligne-fichier:last-child { border-bottom: none; }
.ligne-fichier .nom { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-fichier .taille { color: var(--gris); font-size: 11.5px; flex: none; }
.ligne-fichier select { border: 1px solid var(--ligne-2); border-radius: 8px; padding: 4px 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--creme); }

/* cartes de détails */
.grille-details { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .grille-details { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .grille-details { grid-template-columns: 1fr 1fr 1fr; } }
.carte-detail { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--radius); box-shadow: var(--ombre-petite); overflow: hidden; display: flex; flex-direction: column; animation: apparait .25s ease; }
.carte-detail .visuel { background: #fff; border-bottom: 1px solid var(--ligne); position: relative; cursor: zoom-in; aspect-ratio: 11 / 8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.carte-detail .visuel img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.carte-detail .visuel:hover img { transform: scale(1.04); }
.carte-detail .visuel .vide { color: var(--gris); font-size: 13px; font-weight: 600; padding: 20px; text-align: center; background: var(--surface-2); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carte-detail .corps { padding: 12px 14px; flex: 1; }
.carte-detail .corps h3 { font-size: 14.5px; margin-bottom: 6px; color: var(--creme); }
.carte-detail .corps .meta { font-size: 12px; color: var(--gris); margin-top: 6px; }
.carte-detail .decisions { display: flex; border-top: 1px solid var(--ligne); }
.carte-detail .decisions button {
  flex: 1; border: none; padding: 12px 6px; font-weight: 800; font-size: 12.5px; letter-spacing: .5px;
  text-transform: uppercase; background: var(--surface); transition: background .15s, color .15s; color: var(--creme-2);
}
.carte-detail .decisions button:not(:last-child) { border-right: 1px solid var(--ligne); }
.carte-detail .decisions .refuser:hover { background: var(--rouge); color: #1c0a07; }
.carte-detail .decisions .modifier:hover { background: var(--orange); color: #1a1407; }
.carte-detail .decisions .valider:hover { background: var(--vert); color: #07150e; }

/* tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: 13px; }
.tableau th { background: var(--noir-pur); color: var(--or); text-align: left; padding: 9px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--or-sombre); }
.tableau td { padding: 9px 10px; border-bottom: 1px solid var(--ligne); vertical-align: middle; color: var(--creme); }
.tableau tr:nth-child(even) td { background: var(--surface-2); }
.defilement-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* éditeur de lignes devis */
.ligne-devis { border: 1px solid var(--ligne); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: var(--surface-2); }
.ligne-devis .rang-edition { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .ligne-devis .rang-edition { grid-template-columns: 1fr 90px 100px 110px 110px 36px; align-items: center; } }
.ligne-devis input { width: 100%; padding: 8px 9px; border: 1px solid var(--ligne-2); border-radius: 8px; background: var(--surface); color: var(--creme); }
.ligne-devis .total-ligne { font-weight: 800; text-align: right; color: var(--creme); }
.bloc-totaux { margin-left: auto; max-width: 330px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--radius); box-shadow: var(--ombre-petite); padding: 12px 16px; }
.bloc-totaux .rang { justify-content: space-between; padding: 4px 0; }
.bloc-totaux .ttc { background: var(--or); color: #1a1407; margin: 8px -16px -12px; padding: 11px 16px; border-radius: 0 0 13px 13px; font-weight: 800; display: flex; justify-content: space-between; font-size: 16px; }

/* menu de compte */
.menu-compte {
  position: fixed; top: 64px; right: 10px; z-index: 95; width: min(280px, calc(100vw - 20px));
  background: var(--surface); border: 1px solid var(--ligne-2); border-radius: var(--radius);
  box-shadow: var(--ombre); animation: apparait .18s ease; overflow: hidden;
}
.menu-compte .identite { background: var(--noir-pur); color: var(--creme); padding: 12px 14px; border-bottom: 1px solid var(--or-sombre); }
.menu-compte .identite b { display: block; font-size: 14px; color: var(--or); }
.menu-compte .identite small { color: var(--gris); font-size: 11.5px; }
.menu-compte .entree-menu {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--surface); border: none; border-top: 1px solid var(--ligne);
  padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--creme);
  transition: background .12s;
}
.menu-compte .entree-menu:hover { background: var(--surface-3); }
.menu-compte .entree-menu .ico { font-size: 16px; width: 20px; text-align: center; }
.menu-compte .entree-menu:last-child { color: var(--rouge); }

/* notifications */
.panneau-notifs { position: fixed; top: 64px; right: 10px; z-index: 90; width: min(380px, calc(100vw - 20px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--ligne-2); border-radius: var(--radius); box-shadow: var(--ombre); animation: apparait .2s ease; }
.panneau-notifs .notif { padding: 12px 14px; border-bottom: 1px solid var(--ligne); font-size: 13.5px; cursor: pointer; color: var(--creme); }
.panneau-notifs .notif:hover { background: var(--surface-3); }
.panneau-notifs .notif.non-lue { border-left: 3px solid var(--or); font-weight: 600; }
.panneau-notifs .notif small { color: var(--gris); display: block; margin-top: 3px; font-weight: 400; }

/* toasts */
#toasts { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 24px)); }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { background: var(--surface); color: var(--creme); border: 1px solid var(--or-sombre); border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14px; box-shadow: var(--ombre); animation: toast-entre .25s ease; display: flex; gap: 10px; align-items: center; }
.toast.vert { background: var(--vert-fond); border-color: var(--vert); color: #a7dcbc; }
.toast.rouge { background: var(--rouge-fond); border-color: var(--rouge); color: #eca99b; }
@keyframes toast-entre { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast.sortie { opacity: 0; transform: translateY(8px); transition: all .3s; }

/* modales */
.fond-modale { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 150; display: flex; align-items: flex-end; justify-content: center; animation: fondu .2s ease; backdrop-filter: blur(3px); }
@media (min-width: 700px) { .fond-modale { align-items: center; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.modale { background: var(--surface); color: var(--creme); border: 1px solid var(--ligne-2); border-radius: 18px 18px 0 0; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; padding: 18px; animation: modale-entre .25s ease; }
@media (min-width: 700px) { .modale { border-radius: 18px; box-shadow: var(--ombre); } }
@keyframes modale-entre { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.modale h2 { font-family: var(--titre); font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--or); }
.modale h2::before { content: ""; width: 12px; height: 12px; background: var(--or); border-radius: 3px; flex: none; }
.modale-image { max-width: min(1100px, 96vw); background: #fff; padding: 8px; border-radius: 12px; }
.modale-image img { width: 100%; height: auto; max-height: 84vh; object-fit: contain; }

/* timeline dépôt */
.timeline { display: flex; flex-direction: column; gap: 0; margin: 10px 0; }
.timeline .etape-t { display: flex; gap: 12px; }
.timeline .puce { width: 26px; display: flex; flex-direction: column; align-items: center; }
.timeline .puce .rond { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ligne-2); background: var(--surface); flex: none; }
.timeline .puce .trait { width: 2px; flex: 1; background: var(--ligne); min-height: 22px; }
.timeline .etape-t.faite .rond { background: var(--or); border-color: var(--or); }
.timeline .etape-t.faite .trait { background: var(--or-sombre); }
.timeline .etape-t.refusee .rond { background: var(--rouge); border-color: var(--rouge); }
.timeline .texte-t { padding-bottom: 16px; font-size: 13.5px; }
.timeline .texte-t b { display: block; font-size: 14px; color: var(--creme); }
.timeline .texte-t small { color: var(--gris); }

/* divers */
.vide-etat { text-align: center; padding: 36px 16px; color: var(--gris); }
.vide-etat .ico { font-size: 38px; margin-bottom: 8px; opacity: .8; }
.vide-etat p { font-weight: 600; }
.separateur { height: 1px; background: var(--ligne); margin: 16px 0; border: none; }
.md { font-size: 14px; line-height: 1.55; color: var(--creme); }
.md h1, .md h2 { font-family: var(--titre); font-weight: 500; font-size: 16px; margin: 14px 0 6px; color: var(--creme); }
.md h3, .md h4 { font-size: 14px; margin: 12px 0 4px; color: var(--or); }
.md ul { margin: 6px 0 6px 20px; }
.md table { border-collapse: collapse; margin: 8px 0; width: 100%; font-size: 13px; }
.md th { background: var(--noir-pur); color: var(--or); padding: 6px 8px; text-align: left; }
.md td { border: 1px solid var(--ligne); padding: 6px 8px; }
.md blockquote { border-left: 3px solid var(--or); padding: 4px 10px; color: var(--gris); margin: 8px 0; font-style: italic; }
.bandeau-demo { background: var(--orange-fond); border: 1px solid var(--orange); color: var(--or-clair); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 13px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.skelette { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 50%, var(--surface) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: 10px; }
@keyframes skel { to { background-position: -200% 0; } }
.note-bas { color: var(--gris); font-size: 12px; text-align: center; margin-top: 20px; }

/* page de connexion */
.page-connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; flex-direction: column; gap: 0; }
.carte-connexion { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--or-sombre); border-radius: 20px; box-shadow: var(--ombre); overflow: hidden; animation: modale-entre .35s ease; }
.carte-connexion .haut { background: var(--noir-pur); padding: 26px 20px 22px; text-align: center; position: relative; border-bottom: 1px solid var(--or-sombre); }
.carte-connexion .haut img { width: 168px; height: 168px; object-fit: contain; }
.carte-connexion .haut h1 { font-family: var(--titre); color: var(--or); font-size: 20px; letter-spacing: 4px; margin-top: 8px; font-weight: 500; }
.carte-connexion .haut p { color: var(--gris); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 4px; }
.carte-connexion .bas { padding: 22px 20px; }
.lien-bascule { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--creme-2); }
.lien-bascule a { font-weight: 700; cursor: pointer; }
