/* NordLife RP — feuille de style principale (mode sombre par défaut, mode clair disponible) */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("/fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("/fonts/oswald-latin-700-normal.woff2") format("woff2"); }

:root {
  --fond: #0a1020;
  --fond-2: #0e1629;
  --surface: #121b31;
  --surface-2: #17223c;
  --bordure: #23314f;
  --texte: #e7edf7;
  --texte-doux: #9aa9c2;
  --accent: #5bc0eb;
  --accent-fort: #8fd6f4;
  --accent-texte: #06202c;
  --police: #5d7fe0;
  --police-fond: #1f3a93;
  --pompiers: #ef5b54;
  --pompiers-fond: #c62828;
  --samu: #4fbf62;
  --raid: #a7b0bf;
  --staff: #a98bfa;
  --vip: #f2b84b;
  --premium: #e58ef7;
  --succes: #3fbf7f;
  --alerte: #f2b84b;
  --danger: #ef5b54;
  --ombre: 0 10px 30px rgba(0, 0, 0, 0.35);
  --rayon: 14px;
  --rayon-petit: 9px;
  --largeur: 1180px;
  color-scheme: dark;
}

:root[data-theme="clair"] {
  --fond: #f3f6fb;
  --fond-2: #e9eef7;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --bordure: #d8e1ee;
  --texte: #0f1b2d;
  --texte-doux: #586a85;
  --accent: #1680b3;
  --accent-fort: #0f6a96;
  --accent-texte: #ffffff;
  --police: #1f3a93;
  --pompiers: #c62828;
  --samu: #2e7d32;
  --raid: #374151;
  --staff: #6d28d9;
  --vip: #b7791f;
  --premium: #a21caf;
  --succes: #1f8a52;
  --alerte: #b7791f;
  --danger: #c62828;
  --ombre: 0 8px 24px rgba(15, 27, 45, 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .titre {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); text-transform: uppercase; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--bordure); margin: 2rem 0; }
.conteneur { width: min(100% - 2rem, var(--largeur)); margin-inline: auto; }
.page { padding: 2.2rem 0 4rem; }
.doux { color: var(--texte-doux); }
.petit { font-size: 0.88rem; }
.centre { text-align: center; }
.masque { display: none !important; }
.visuellement-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icone { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete .conteneur { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--texte); font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; }
.logo:hover { text-decoration: none; }
.logo img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.logo .marque { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #5bc0eb, #1f3a93); color: #fff; font-size: 1.05rem; }
.logo span.rp { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 0.2rem; margin-left: 0.5rem; }
.nav a { color: var(--texte-doux); padding: 0.45rem 0.7rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a.actif { color: var(--texte); background: var(--surface-2); text-decoration: none; }
.entete-droite { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.btn-icone { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); cursor: pointer; }
.btn-icone:hover { border-color: var(--accent); }
.burger { display: none; }

.menu-joueur { position: relative; }
.menu-joueur summary { list-style: none; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.25rem 0.55rem 0.25rem 0.25rem; border: 1px solid var(--bordure); border-radius: 999px; background: var(--surface); }
.menu-joueur summary::-webkit-details-marker { display: none; }
.menu-joueur .nom { font-weight: 600; font-size: 0.92rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-deroulant { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 0.4rem; }
.menu-deroulant a, .menu-deroulant button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--texte); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.menu-deroulant a:hover, .menu-deroulant button:hover { background: var(--surface-2); text-decoration: none; }
.menu-deroulant .sep { height: 1px; background: var(--bordure); margin: 0.35rem 0; }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--bordure); flex-shrink: 0; }
.avatar.grand { width: 72px; height: 72px; }
.avatar.moyen { width: 44px; height: 44px; }
.avatar-lettres { display: inline-grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--texte-doux); }

.bandeau { background: color-mix(in srgb, var(--alerte) 16%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--alerte) 40%, transparent); padding: 0.6rem 0; font-size: 0.95rem; }
.bandeau a { font-weight: 600; }

@media (max-width: 960px) {
  .burger { display: inline-grid; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--fond); border-bottom: 1px solid var(--bordure); padding: 0.6rem 1rem 1rem; margin: 0; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 0.75rem 0.8rem; font-size: 1rem; }
  .menu-joueur .nom { display: none; }
}

/* ---------- Boutons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 0.95rem/1.2 "Inter", sans-serif; cursor: pointer; text-decoration: none !important;
  background: var(--accent); color: var(--accent-texte); transition: transform 0.06s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.secondaire { background: var(--surface); color: var(--texte); border-color: var(--bordure); }
.btn.secondaire:hover { border-color: var(--accent); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.succes { background: var(--succes); color: #fff; }
.btn.fantome { background: transparent; color: var(--texte-doux); }
.btn.petit { padding: 0.4rem 0.7rem; font-size: 0.85rem; border-radius: 8px; }
.btn.grand { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-steam { background: linear-gradient(180deg, #2a475e, #171a21); color: #fff; border: 1px solid #66c0f4; }
.btn-steam:hover { filter: brightness(1.15); }
.groupe-btn { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; line-height: 1.6; }
.badge.gris { color: var(--texte-doux); }
.badge.bleu { color: var(--accent); }
.badge.police { color: var(--police); }
.badge.raid { color: var(--raid); }
.badge.pompiers { color: var(--pompiers); }
.badge.samu { color: var(--samu); }
.badge.staff { color: var(--staff); }
.badge.vip { color: var(--vip); }
.badge.premium { color: var(--premium); }
.badge.succes { color: var(--succes); }
.badge.orange { color: var(--alerte); }
.badge.danger { color: var(--danger); }
.badge.turquoise { color: #2cc5b5; }
.badge.plein { color: var(--accent-texte); background: var(--accent); border-color: var(--accent); }

/* ---------- Cartes & grilles ---------- */
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.3rem; box-shadow: var(--ombre); }
.carte.plate { box-shadow: none; }
.carte h2, .carte h3 { margin-top: 0; }
.grille { display: grid; gap: 1.1rem; }
.grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille.auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 900px) { .grille.trois, .grille.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grille.deux, .grille.trois, .grille.quatre { grid-template-columns: 1fr; } }
.pile > * + * { margin-top: 1rem; }
.ligne { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ligne.espace { justify-content: space-between; }
.entete-page { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.entete-page p { margin: 0; color: var(--texte-doux); }
.fil { font-size: 0.9rem; color: var(--texte-doux); margin-bottom: 0.8rem; }
.fil a { color: var(--texte-doux); }

/* ---------- Héros (accueil) ---------- */
.heros { position: relative; overflow: hidden; border-bottom: 1px solid var(--bordure); padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 5rem); background: var(--fond-2); }
.heros::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(91, 192, 235, 0.35), transparent 70%),
    radial-gradient(35% 30% at 70% 20%, rgba(79, 191, 98, 0.22), transparent 70%),
    radial-gradient(40% 40% at 85% 60%, rgba(169, 139, 250, 0.22), transparent 70%);
  filter: blur(18px); animation: aurore 18s ease-in-out infinite alternate; pointer-events: none;
}
.heros.avec-image::after { content: ""; position: absolute; inset: 0; background: var(--banniere) center/cover no-repeat; opacity: 0.18; pointer-events: none; }
@keyframes aurore { from { transform: translateX(-3%) skewY(-2deg); } to { transform: translateX(3%) skewY(2deg); } }
@media (prefers-reduced-motion: reduce) { .heros::before { animation: none; } }
.heros .conteneur { position: relative; z-index: 1; }
.heros h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: 0.2em; letter-spacing: 0.04em; }
.heros h1 .rp { color: var(--accent); }
.heros-grille { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.heros-logo { width: clamp(150px, 22vw, 260px); height: auto; border-radius: 50%; filter: drop-shadow(0 12px 36px rgba(91, 192, 235, 0.28)); }
@media (max-width: 760px) { .heros-grille { grid-template-columns: 1fr; gap: 1.2rem; } .heros-logo { order: -1; width: 128px; } }
.heros .slogan { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--texte-doux); margin-bottom: 1.8rem; }
.ip-serveur { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 0.4rem 0.4rem 0.4rem 0.9rem; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.95rem; }
.section { padding: 3rem 0; }
.section + .section { padding-top: 0; }

/* ---------- Faction ---------- */
.entete-faction { border-radius: var(--rayon); padding: 2rem 1.6rem; color: #fff; margin-bottom: 1.6rem; position: relative; overflow: hidden; }
.entete-faction h1 { margin: 0 0 0.3rem; }
.entete-faction p { margin: 0; opacity: 0.9; max-width: 720px; }
.entete-faction.police { background: linear-gradient(120deg, #142766, #1f3a93 60%, #3557c4); }
.entete-faction.pompiers { background: linear-gradient(120deg, #7c1414, #c62828 55%, #2e7d32 130%); }
.entete-faction .groupe-btn { margin-top: 1.2rem; }
.entete-faction .btn.secondaire { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* ---------- Forum ---------- */
.liste { display: flex; flex-direction: column; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; background: var(--surface); }
.liste > .element { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-top: 1px solid var(--bordure); color: var(--texte); }
.liste > .element:first-child { border-top: 0; }
a.element:hover { background: var(--surface-2); text-decoration: none; }
.pastille { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.element .corps { flex: 1; min-width: 0; }
.element .corps strong { display: block; font-size: 1.02rem; }
.element .corps .doux { font-size: 0.88rem; }
.element .stats { text-align: right; font-size: 0.85rem; color: var(--texte-doux); white-space: nowrap; }
@media (max-width: 640px) { .element .stats { display: none; } }
.message { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); overflow: hidden; }
.message + .message { margin-top: 1rem; }
.message .auteur { padding: 1.2rem 1rem; background: var(--surface-2); border-right: 1px solid var(--bordure); text-align: center; font-size: 0.9rem; }
.message .auteur strong { display: block; margin-top: 0.5rem; }
.message .contenu { padding: 1.2rem 1.3rem; min-width: 0; }
.message .meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.83rem; color: var(--texte-doux); margin-bottom: 0.8rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .message { grid-template-columns: 1fr; }
  .message .auteur { display: flex; align-items: center; gap: 0.7rem; text-align: left; border-right: 0; border-bottom: 1px solid var(--bordure); padding: 0.7rem 1rem; }
  .message .auteur strong { margin: 0; }
}
.markdown { overflow-wrap: anywhere; }
.markdown > :last-child { margin-bottom: 0; }
.markdown h1, .markdown h2, .markdown h3 { margin-top: 1.2em; text-transform: none; }
.markdown h2 { font-size: 1.4rem; }
.markdown h3 { font-size: 1.15rem; }
.markdown ul, .markdown ol { padding-left: 1.3rem; }
.markdown blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--texte-doux); }
.markdown code { background: var(--surface-2); padding: 0.1rem 0.35rem; border-radius: 5px; font-size: 0.9em; }
.markdown pre { background: var(--surface-2); padding: 0.9rem; border-radius: 9px; overflow-x: auto; }
.markdown img { border-radius: 9px; }
.markdown table { border-collapse: collapse; width: 100%; }
.markdown th, .markdown td { border: 1px solid var(--bordure); padding: 0.4rem 0.6rem; }

.sommaire { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.mise-en-page-reglement article { scroll-margin-top: 84px; }
.sommaire a { display: block; padding: 0.45rem 0.7rem; border-radius: 8px; color: var(--texte-doux); }
.sommaire a:hover { background: var(--surface-2); color: var(--texte); text-decoration: none; }
.mise-en-page-reglement { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .mise-en-page-reglement { grid-template-columns: 1fr; } .sommaire { position: static; } }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.champ { margin-bottom: 1rem; }
.champ .aide { font-size: 0.83rem; color: var(--texte-doux); margin-top: 0.3rem; }
input[type="text"], input[type="number"], input[type="url"], input[type="search"], input[type="email"], select, textarea {
  width: 100%; padding: 0.65rem 0.8rem; border-radius: var(--rayon-petit);
  border: 1px solid var(--bordure); background: var(--fond-2); color: var(--texte);
  font: 400 0.97rem/1.45 "Inter", sans-serif;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; min-height: 220px; }
.case { display: flex; align-items: center; gap: 0.55rem; font-weight: 500; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--accent); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.trois-colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 640px) { .deux-colonnes, .trois-colonnes { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1rem 1.1rem 0.4rem; margin: 0 0 1.1rem; }
legend { padding: 0 0.4rem; font-weight: 700; }
.onglets-editeur { display: flex; gap: 0.3rem; margin-bottom: 0.4rem; }
.onglets-editeur button { background: none; border: 1px solid var(--bordure); color: var(--texte-doux); padding: 0.3rem 0.8rem; border-radius: 8px; cursor: pointer; font: inherit; font-size: 0.85rem; }
.onglets-editeur button.actif { color: var(--texte); background: var(--surface-2); }
.apercu { border: 1px dashed var(--bordure); border-radius: var(--rayon-petit); padding: 0.9rem; min-height: 140px; background: var(--fond-2); }

/* ---------- Alertes ---------- */
.alerte { padding: 0.85rem 1rem; border-radius: var(--rayon-petit); border: 1px solid; margin-bottom: 1.2rem; }
.alerte.succes { border-color: color-mix(in srgb, var(--succes) 50%, transparent); background: color-mix(in srgb, var(--succes) 12%, var(--surface)); }
.alerte.erreur { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.alerte.info { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.alerte.attention { border-color: color-mix(in srgb, var(--alerte) 50%, transparent); background: color-mix(in srgb, var(--alerte) 12%, var(--surface)); }
.alerte > :last-child { margin-bottom: 0; }

/* ---------- Boutique ---------- */
.onglets { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.onglets a { padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--bordure); color: var(--texte-doux); background: var(--surface); font-weight: 500; font-size: 0.92rem; }
.onglets a.actif, .onglets a:hover { color: var(--accent-texte); background: var(--accent); border-color: var(--accent); text-decoration: none; }
.article { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.article .visuel { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1f3a93, #5bc0eb); display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); }
.article .visuel img { width: 100%; height: 100%; object-fit: cover; }
.article .visuel .icone { width: 54px; height: 54px; }
.article .infos { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.article h3 { margin: 0; font-size: 1.35rem; }
.article .description { color: var(--texte-doux); font-size: 0.93rem; flex: 1; }
.prix { font-family: "Oswald", sans-serif; font-size: 1.7rem; font-weight: 600; }
.prix s { font-size: 1.05rem; color: var(--texte-doux); margin-left: 0.4rem; font-weight: 500; }
.recap { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.2rem; }
.recap dt { color: var(--texte-doux); }
.recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.reference { font-family: ui-monospace, Menlo, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; background: var(--surface-2); border: 1px dashed var(--accent); border-radius: 9px; padding: 0.35rem 0.8rem; display: inline-block; }

/* ---------- Tableaux ---------- */
.tableau-conteneur { overflow-x: auto; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); }
table.tableau { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tableau th, .tableau td { padding: 0.75rem 0.9rem; text-align: left; border-top: 1px solid var(--bordure); vertical-align: middle; }
.tableau thead th { border-top: 0; color: var(--texte-doux); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface-2); }
.tableau tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tableau .actions { white-space: nowrap; text-align: right; }
.tableau input[type="text"].prix-rapide { width: 90px; padding: 0.35rem 0.5rem; }
@media (max-width: 760px) {
  table.tableau.cartes thead { display: none; }
  table.tableau.cartes, .tableau.cartes tbody, .tableau.cartes tr, .tableau.cartes td { display: block; width: 100%; }
  .tableau.cartes tr { border-top: 1px solid var(--bordure); padding: 0.6rem 0; }
  .tableau.cartes td { border: 0; padding: 0.3rem 0.9rem; }
  .tableau.cartes td[data-label]::before { content: attr(data-label) " : "; color: var(--texte-doux); font-size: 0.82rem; }
  .tableau .actions { text-align: left; }
}

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; align-items: start; }
.admin-menu { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 0.5rem; }
.admin-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--texte-doux); font-weight: 500; font-size: 0.95rem; }
.admin-menu a:hover, .admin-menu a.actif { background: var(--surface-2); color: var(--texte); text-decoration: none; }
.admin-menu .compteur { margin-left: auto; background: var(--alerte); color: #1b1300; border-radius: 999px; font-size: 0.75rem; font-weight: 700; padding: 0 0.45rem; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-menu { position: static; display: flex; overflow-x: auto; gap: 0.2rem; }
  .admin-menu a { white-space: nowrap; }
}
.chiffre { font-family: "Oswald", sans-serif; font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
.etat { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.etat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.etat.vert { color: var(--succes); }
.etat.orange { color: var(--alerte); }
.etat.rouge { color: var(--danger); }
.cle { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; background: var(--fond-2); border: 1px solid var(--bordure); border-radius: 8px; padding: 0.5rem 0.7rem; overflow-wrap: anywhere; display: block; }
.type-action { border: 1px solid var(--bordure); border-radius: var(--rayon-petit); margin-bottom: 0.8rem; background: var(--surface-2); }
.type-action > summary, .type-action > .tete { padding: 0.7rem 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.type-action .champs { padding: 0 0.9rem 0.4rem; }

/* ---------- Pagination, pied ---------- */
.pagination { display: flex; gap: 0.35rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.4rem 0.8rem; border-radius: 8px; border: 1px solid var(--bordure); color: var(--texte-doux); background: var(--surface); }
.pagination .actif { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.pied { border-top: 1px solid var(--bordure); padding: 2rem 0; color: var(--texte-doux); font-size: 0.9rem; background: var(--fond-2); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.pied a { color: var(--texte-doux); }
.vide { text-align: center; padding: 2.5rem 1rem; color: var(--texte-doux); }
.vide .icone { width: 40px; height: 40px; opacity: 0.6; margin-bottom: 0.5rem; }
dialog { border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); color: var(--texte); padding: 1.4rem; max-width: min(520px, 92vw); box-shadow: var(--ombre); }
dialog::backdrop { background: rgba(5, 10, 20, 0.6); }
.conteneur.etroit { width: min(100% - 2rem, 680px); }
.conteneur.moyen { width: min(100% - 2rem, 900px); }
.centre-flex { justify-content: center; }
.mt { margin-top: 1.5rem; }
.mb0 { margin-bottom: 0; }
.logo > span:last-child { white-space: nowrap; }
@media (max-width: 520px) {
  .entete .conteneur { gap: 0.5rem; }
  .logo { font-size: 1.1rem; gap: 0.45rem; }
  .logo .marque { width: 30px; height: 30px; }
  .entete .txt-long { display: none; }
  .entete-droite { gap: 0.35rem; }
  .btn-icone { width: 38px; height: 38px; }
}
@media (max-width: 360px) { .logo > span:last-child { display: none; } }
form.ligne > select, form.ligne > input[type="search"], .ligne > select { width: auto; max-width: 100%; }
