/* Data-Center de l'Etat-Major — thème sombre République */
:root {
    --bg: #070b16;
    --panel: #0f1729;
    --panel-2: #142039;
    --border: #22345a;
    --border-soft: rgba(34, 52, 90, 0.55);
    --text: #d4def2;
    --text-dim: #8d9bb8;
    --white: #f2f5fc;
    --accent: #6d9eeb;
    --accent-strong: #3f78d6;
    --gold: #c9a84c;
    --gold-light: #f0d585;
    --success: #46a758;
    --danger: #e5484d;
    --warning: #f5a524;
    --radius: 6px;
    --font-titre: 'Oswald', 'Arial Narrow', sans-serif;
    --font: 'Exo 2', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 15% -10%, rgba(63, 120, 214, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 110%, rgba(109, 158, 235, 0.12) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-titre); font-weight: 600; letter-spacing: 0.03em; color: var(--white); }
p + p { margin-top: 0.6rem; }
strong { color: var(--white); }

/* ---------- Barre de navigation ---------- */
.navbar {
    background: linear-gradient(180deg, #0d1528 0%, #0a1122 100%);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.brand-title { display: block; font-family: var(--font-titre); font-size: 1.15rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.1; }
.brand-sub { display: block; font-size: 0.65rem; color: var(--accent); letter-spacing: 0.25em; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 0.15rem; flex: 1; flex-wrap: wrap; }
.nav-links a {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-titre);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); background: rgba(201, 168, 76, 0.1); border-color: rgba(201, 168, 76, 0.3); }
.pastille {
    display: inline-block; min-width: 1.2rem; padding: 0 0.35rem;
    background: var(--danger); color: #fff; border-radius: 999px;
    font-family: var(--font); font-size: 0.7rem; font-weight: 700; text-align: center; line-height: 1.2rem;
}

.nav-user { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-user .nom { color: var(--white); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.nav-user .nom:hover { color: var(--gold); }
.btn-logout { padding: 0.3rem 0.7rem; border: 1px solid var(--border); color: var(--text-dim); border-radius: 4px; font-size: 0.8rem; text-decoration: none; }
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 4px; padding: 0.35rem 0.6rem; font-size: 1.1rem; cursor: pointer; margin-left: auto; }

/* ---------- Mise en page ---------- */
.main { max-width: 1400px; width: 100%; margin: 0 auto; padding: 2rem 1.25rem; flex: 1; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.page-title { font-size: 1.9rem; text-transform: uppercase; color: var(--gold); letter-spacing: 0.06em; }
.page-subtitle { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.2rem; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; }
.card-title {
    font-family: var(--font-titre); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gold); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.card-title a { font-family: var(--font); font-size: 0.8rem; text-transform: none; letter-spacing: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }

.stat { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.stat.gold { border-top-color: var(--gold); }
.stat.success { border-top-color: var(--success); }
.stat.danger { border-top-color: var(--danger); }
.stat.warning { border-top-color: var(--warning); }
.stat-value { font-family: var(--font-titre); font-size: 1.9rem; color: var(--white); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 0.2rem; }
.stat a, a.stat { text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--accent); }

.text-dim { color: var(--text-dim); }
.text-small { font-size: 0.85rem; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.pre { white-space: pre-line; }

/* ---------- Tableaux ---------- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
    background: rgba(63, 120, 214, 0.18); color: var(--gold);
    font-family: var(--font-titre); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.65rem 0.85rem; text-align: left; border-bottom: 2px solid var(--border); white-space: nowrap;
}
tbody td { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:hover { background: rgba(63, 120, 214, 0.07); }
tr.groupe td { background: rgba(201, 168, 76, 0.08); color: var(--gold); font-family: var(--font-titre); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
tr.non-lu td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.inactif td { opacity: 0.5; }
tfoot td { padding: 0.7rem 0.85rem; font-weight: 700; color: var(--white); border-top: 2px solid var(--border); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
    font-family: var(--font-titre); font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; transition: background 0.15s; background: none; color: var(--text);
}
.btn-primary { background: var(--accent-strong); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #4b86e6; color: #fff; }
.btn-gold { background: rgba(201, 168, 76, 0.14); border-color: var(--gold); color: var(--gold-light); }
.btn-gold:hover { background: rgba(201, 168, 76, 0.28); color: var(--gold-light); }
.btn-success { background: rgba(70, 167, 88, 0.15); border-color: var(--success); color: #6fd17f; }
.btn-success:hover { background: rgba(70, 167, 88, 0.3); color: #6fd17f; }
.btn-danger { background: rgba(229, 72, 77, 0.12); border-color: var(--danger); color: #ff7b7f; }
.btn-danger:hover { background: rgba(229, 72, 77, 0.28); color: #ff7b7f; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--white); }
.btn-sm { padding: 0.28rem 0.6rem; font-size: 0.78rem; }
form.inline { display: inline; }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 1.1rem; }
label, .label {
    display: block; margin-bottom: 0.35rem;
    font-family: var(--font-titre); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
label.required::after { content: ' *'; color: var(--gold); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
    width: 100%; padding: 0.55rem 0.8rem;
    background: rgba(3, 7, 18, 0.7); border: 1px solid var(--border); border-radius: 4px;
    color: var(--white); font-family: var(--font); font-size: 0.92rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(109, 158, 235, 0.2); }
input[type=date], input[type=datetime-local] { color-scheme: dark; }
select option, select optgroup { background: var(--panel); }
textarea { resize: vertical; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check label { margin: 0; }
.form-help { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.25rem; }
.form-error, .form-errors li { color: #ff7b7f; font-size: 0.82rem; margin-top: 0.25rem; list-style: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.filtres { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; }
.filtres > * { flex: 0 1 220px; }

/* ---------- Alertes et badges ---------- */
.alert { padding: 0.8rem 1.1rem; border-radius: 4px; margin-bottom: 1rem; border-left: 4px solid; font-size: 0.92rem; }
.alert-success { background: rgba(70, 167, 88, 0.1); border-color: var(--success); color: #8ee39b; }
.alert-error { background: rgba(229, 72, 77, 0.1); border-color: var(--danger); color: #ff9a9d; }
.alert-warning { background: rgba(245, 165, 36, 0.1); border-color: var(--warning); color: #ffc766; }
.alert-info { background: rgba(109, 158, 235, 0.1); border-color: var(--accent); color: #a9c6f5; }

.badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 3px; border: 1px solid;
    font-family: var(--font-titre); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.badge-pending { color: #ffc766; border-color: var(--warning); background: rgba(245, 165, 36, 0.12); }
.badge-ok { color: #8ee39b; border-color: var(--success); background: rgba(70, 167, 88, 0.12); }
.badge-ko { color: #ff9a9d; border-color: var(--danger); background: rgba(229, 72, 77, 0.12); }
.badge-info { color: #a9c6f5; border-color: var(--accent); background: rgba(109, 158, 235, 0.12); }
.badge-dim { color: var(--text-dim); border-color: var(--border); }

.grade-badge { font-family: var(--font-titre); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 3px; border: 1px solid; white-space: nowrap; }
.grade-amiraute { color: #ffd88a; border-color: var(--gold); background: rgba(201, 168, 76, 0.22); }
.grade-direction { color: var(--gold-light); border-color: rgba(201, 168, 76, 0.7); background: rgba(201, 168, 76, 0.1); }
.grade-officier-sup { color: #ff9a9d; border-color: rgba(229, 72, 77, 0.7); background: rgba(229, 72, 77, 0.1); }
.grade-officier { color: #a9c6f5; border-color: var(--accent); background: rgba(109, 158, 235, 0.12); }
.grade-sous-officier { color: var(--text-dim); border-color: var(--border); }
.grade-admin { color: #fff; border-color: #8e4ec6; background: rgba(142, 78, 198, 0.3); }

/* Insigne recadré au centre de l'image carrée d'origine */
.insigne { display: inline-block; position: relative; width: 58px; height: 22px; overflow: hidden; vertical-align: middle; }
.insigne img { position: absolute; width: 68px; height: 68px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-dim); }

/* ---------- Accueil ---------- */
.hero {
    position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.75rem; border: 1px solid var(--border);
    background: #000 center/cover no-repeat; min-height: 260px; display: flex; align-items: flex-end;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 18, 0.92) 0%, rgba(5, 8, 18, 0.55) 55%, rgba(5, 8, 18, 0.15) 100%); }
.hero-content { position: relative; padding: 2rem 2.25rem; display: flex; gap: 1.5rem; align-items: center; }
.hero-content img { width: 110px; height: 110px; border-radius: 50%; background: #fff; flex-shrink: 0; box-shadow: 0 0 0 3px var(--gold); }
.hero h1 { font-size: 2.3rem; text-transform: uppercase; color: var(--gold); letter-spacing: 0.08em; line-height: 1.1; }
.hero .devise { font-style: italic; color: var(--accent); margin-top: 0.35rem; }
.hero p { color: var(--text); max-width: 560px; margin-top: 0.4rem; }

.liste-simple { list-style: none; }
.liste-simple li { padding: 0.55rem 0; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.liste-simple li:last-child { border-bottom: none; }

/* ---------- Data-Center ---------- */
.dc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.dc-nav { position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.dc-nav h4 { font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin: 0.9rem 0 0.35rem; }
.dc-nav h4:first-child { margin-top: 0; }
.dc-nav a { display: block; padding: 0.3rem 0.6rem; border-radius: 3px; color: var(--text); text-decoration: none; font-size: 0.9rem; border-left: 2px solid transparent; }
.dc-nav a:hover { background: rgba(109, 158, 235, 0.1); color: var(--white); }
.dc-nav a.active { border-left-color: var(--gold); background: rgba(201, 168, 76, 0.1); color: var(--gold-light); }

.banniere { height: 200px; border-radius: var(--radius); background: #000 center/cover no-repeat; position: relative; overflow: hidden; margin-bottom: 1.5rem; border: 1px solid var(--border); display: flex; align-items: flex-end; }
.banniere::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 18, 0.92) 0%, rgba(5, 8, 18, 0.2) 70%); }
.banniere h1 { position: relative; padding: 1.25rem 1.5rem; font-size: 2.2rem; text-transform: uppercase; color: var(--white); letter-spacing: 0.1em; }
.banniere .rubrique { display: block; font-size: 0.8rem; color: var(--gold); letter-spacing: 0.2em; }

.doc h2 {
    font-size: 1.25rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; text-align: center;
    margin: 2rem 0 1rem;
}
.doc h2::before { content: '〔 '; color: var(--accent); }
.doc h2::after { content: ' 〕'; color: var(--accent); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.05rem; color: var(--accent); margin: 1.25rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.article-regle { padding: 0.55rem 0.9rem; border-left: 2px solid var(--border); margin-bottom: 0.5rem; background: rgba(15, 23, 41, 0.6); }
.article-regle .num-regle { font-family: var(--font-titre); color: var(--gold); margin-right: 0.4rem; }
.article-regle .precision { display: block; color: var(--text-dim); font-size: 0.88rem; }
.puces { list-style: none; }
.puces li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; }
.puces li::before { content: '➥'; position: absolute; left: 0; color: var(--gold); }
.puces li small { display: block; color: var(--text-dim); font-size: 0.85rem; }
.puces.interdit li::before { content: '✕'; color: var(--danger); }
.bloc-droits { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: var(--panel); }
.bloc-droits h3 { margin-top: 0; }
.figure { margin: 1rem 0; text-align: center; }
.figure img { border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.figure figcaption { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.35rem; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0; }
.galerie img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.tuile-insigne { background: #f3f5fa; border-radius: var(--radius); padding: 0.5rem; text-align: center; color: #1b2440; }
.tuile-insigne img { width: 100%; aspect-ratio: 1 / 0.55; object-fit: cover; }
.tuile-insigne span { font-family: var(--font-titre); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 1rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-embed { width: 100%; height: 75vh; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.question { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.75rem; background: var(--panel); }
.question .bareme { float: right; font-family: var(--font-titre); color: var(--gold); }
.question .titre-q { font-weight: 600; color: var(--white); }
.question .reponse { margin-top: 0.45rem; padding: 0.45rem 0.7rem; border-left: 2px solid var(--success); background: rgba(70, 167, 88, 0.07); font-size: 0.9rem; }
.total-bareme { text-align: center; font-family: var(--font-titre); font-size: 1.1rem; color: var(--gold); margin: 1rem 0 2rem; }
.croiseur { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--border-soft); }
.croiseur dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; font-size: 0.92rem; }
.croiseur dt { color: var(--accent); font-family: var(--font-titre); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.prix-categorie { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--border-soft); }
.prix-categorie .illus { display: grid; gap: 0.5rem; }
.prix-categorie .illus img { background: rgba(255, 255, 255, 0.03); border-radius: var(--radius); }

/* ---------- Carte galactique ---------- */
.carte-wrap { position: relative; width: 100%; aspect-ratio: 1.45; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #03050c; }
.carte-wrap svg.fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte-wrap.cliquable { cursor: crosshair; }
.planete-point {
    position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
    text-decoration: none; z-index: 2;
}
.planete-point .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 10px currentColor; background: currentColor; }
.planete-point .nom { font-size: 0.68rem; color: var(--white); text-shadow: 0 0 4px #000, 0 0 2px #000; white-space: nowrap; margin-top: 2px; letter-spacing: 0.03em; }
.planete-point:hover .dot { transform: scale(1.4); }
.planete-point:hover .nom { color: var(--gold-light); }
.planete-point .prio { position: absolute; top: -12px; right: -12px; background: var(--gold); color: #000; font-size: 0.6rem; font-weight: 700; border-radius: 999px; padding: 0 4px; line-height: 14px; }
.planete-point.actuelle .dot { width: 16px; height: 16px; border-color: var(--gold); }
.carte-marqueur { position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; box-shadow: 0 0 12px var(--gold); }
.legende { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; margin-top: 0.75rem; }
.legende span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legende i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.statut { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.statut i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.journal li { padding: 0.6rem 0; border-bottom: 1px solid var(--border-soft); list-style: none; font-size: 0.9rem; }
.journal li:last-child { border-bottom: none; }
.journal .meta { color: var(--text-dim); font-size: 0.78rem; }

/* ---------- Trésorerie ---------- */
.solde-positif { color: #8ee39b; }
.solde-negatif { color: #ff9a9d; }
.lignes-table input, .lignes-table select { font-size: 0.85rem; padding: 0.4rem 0.55rem; }
.lignes-table td { padding: 0.4rem 0.4rem; }
.lignes-table .col-qte { width: 90px; }
.lignes-table .col-prix { width: 130px; }
.lignes-table .col-total { width: 140px; }
.total-lignes { font-family: var(--font-titre); font-size: 1.2rem; color: var(--gold); text-align: right; margin-top: 0.6rem; }
.pagination { display: flex; gap: 0.35rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.devis-entete { display: none; }

/* ---------- Authentification ---------- */
.auth-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-box { width: 100%; max-width: 440px; background: rgba(15, 23, 41, 0.92); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 2rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.auth-box .logo { display: block; width: 110px; height: 110px; margin: 0 auto 1rem; border-radius: 50%; background: #fff; }
.auth-box h1 { text-align: center; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.5rem; }
.auth-box .sous-titre { text-align: center; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; }
.auth-box .btn { width: 100%; justify-content: center; }
.auth-bg { background: #000 url('../images/bannieres/accueil.jpg') center/cover fixed; }
.auth-bg::before { content: ''; position: fixed; inset: 0; background: rgba(5, 8, 18, 0.75); z-index: -1; }

footer.footer { border-top: 1px solid var(--border); padding: 1rem 1.25rem; text-align: center; font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-main-side { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
    .brand-text { display: none; }
}
@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .navbar-inner { flex-wrap: wrap; }
    .nav-links, .nav-user { display: none; width: 100%; }
    .navbar.ouvert .nav-links { display: flex; flex-direction: column; padding-bottom: 0.5rem; }
    .navbar.ouvert .nav-user { display: flex; padding-bottom: 1rem; }
    .dc-layout { grid-template-columns: 1fr; }
    .dc-nav { position: static; }
    .grid-2, .grid-3, .form-grid, .croiseur, .prix-categorie { grid-template-columns: 1fr; }
    .hero-content { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
    .hero h1 { font-size: 1.7rem; }
    .main { padding: 1.25rem 1rem; }
}
@media (max-width: 560px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Impression (devis) ---------- */
@media print {
    body { background: #fff; color: #000; }
    .navbar, footer.footer, .no-print, .alert { display: none !important; }
    .card { border: none; background: none; padding: 0; }
    .page-title, .card-title, h1, h2, h3, strong, thead th, tfoot td { color: #000 !important; }
    thead th { background: #eee; }
    .devis-entete { display: block; margin-bottom: 1rem; }
    .badge, .text-dim { color: #333 !important; border-color: #999 !important; background: none !important; }
}
