/* =========================================================
   BANQUE DIGITALE - INVEST
   Thème clair aligné sur la charte du site principal :
   orange #f39200 (accent principal) + bleu marine #003366 (sidebar / titres)
   ========================================================= */

:root {
    --bg: #f4f6f9;
    --bg-soft: #eef1f5;
    --surface: #ffffff;
    --surface-2: #f4f6f9;
    --border: #e2e6ea;
    --text: #1f2937;
    --text-muted: #6b7280;
    --text-faint: #9aa3b2;

    --navy: #003366;
    --navy-soft: rgba(0, 51, 102, 0.08);
    --navy-light: #0a4d8c;

    --gold: #f39200;
    --gold-soft: rgba(243, 146, 0, 0.12);
    --green: #28a745;
    --green-soft: rgba(40, 167, 69, 0.12);
    --red: #dc3545;
    --red-soft: rgba(220, 53, 69, 0.12);
    --blue: #2563eb;
    --blue-soft: rgba(37, 99, 235, 0.10);

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 51, 102, 0.08);

    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 0.5em;
    color: var(--navy);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

p { line-height: 1.6; color: var(--text-muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   Boutons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
}
.btn-primary { background: var(--gold); color: #ffffff; }
.btn-primary:hover { background: #d47e00; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-green { background: var(--green); color: #ffffff; }
.btn-green:hover { background: #218838; }
.btn-red { background: var(--red); color: #ffffff; }
.btn-red:hover { background: #bb2d3b; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* =========================================================
   Layout d'authentification (login / register / landing)
   ========================================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(rgba(0,51,102,0.04), rgba(0,51,102,0.04)), var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.auth-brand img { height: 40px; }
.auth-brand .name { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--navy); }
.auth-brand .name span { color: var(--gold); }

.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field-help { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.password-field { position: relative; }
.password-field .toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-faint);
    font-size: 13px;
    user-select: none;
}

.divider { text-align: center; color: var(--text-faint); font-size: 13px; margin: 20px 0; }

/* =========================================================
   Alertes / messages flash
   ========================================================= */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-success { background: var(--green-soft); border-color: var(--green); color: #1e7e34; }
.alert-error { background: var(--red-soft); border-color: var(--red); color: #a71d2a; }
.alert-info { background: var(--blue-soft); border-color: var(--blue); color: #1d4ed8; }
.alert-warning { background: var(--gold-soft); border-color: var(--gold); color: #b56a00; }

/* =========================================================
   App layout (dashboard avec sidebar)
   ========================================================= */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--navy);
    border-right: 1px solid var(--navy);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden; /* pas de scroll global sur la sidebar */
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0; /* ne rétrécit jamais */
}
.sidebar-brand img { height: 32px; border-radius: 6px; background: #fff; padding: 2px; }
.sidebar-brand .name { font-family: var(--font-heading); font-weight: 800; font-size: 17px; color: #fff; }
.sidebar-brand .name span { color: var(--gold); }

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto; /* scroll uniquement sur la nav */
    min-height: 0;    /* permet à flex:1 de rétrécir */
}
.sidebar-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    margin: 18px 12px 8px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2px;
    transition: all .15s ease;
}
.sidebar-nav a i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active { background: var(--gold); color: #fff; }

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* toujours visible, jamais écrasé */
    background: var(--navy);
}
.sidebar-user .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--gold); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.sidebar-user .info { overflow: hidden; flex: 1; }
.sidebar-user .info .name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .info .role { font-size: 12px; color: rgba(255,255,255,0.5); }
.sidebar-user a.logout { color: rgba(255,255,255,0.5); font-size: 16px; }
.sidebar-user a.logout:hover { color: var(--red); }

.mobile-toggle {
    display: none;
    position: fixed;
    top: 16px; left: 16px;
    z-index: 60;
    background: var(--navy);
    border: 1px solid var(--navy);
    color: #fff;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.main { flex: 1; min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-wrap: wrap;
    gap: 12px;
}
.topbar h1 { font-size: 22px; margin: 0; color: var(--navy); }
.topbar .subtitle { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.content { padding: 28px 32px; }

/* =========================================================
   Cartes / grilles statistiques
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.stat-card .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-card .value { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-card .value.green { color: var(--green); }
.stat-card .value.red { color: var(--red); }
.stat-card .value.gold { color: var(--gold); }
.stat-card .delta { font-size: 12px; margin-top: 8px; color: var(--text-faint); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.card-header h2, .card-header h3 { margin: 0; font-size: 17px; color: var(--navy); }

/* =========================================================
   Tableaux
   ========================================================= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg); }
.empty-row td { text-align: center; color: var(--text-faint); padding: 32px; }

/* =========================================================
   Badges de statut
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: var(--green-soft); color: #1e7e34; }
.badge-warning { background: var(--gold-soft); color: #b56a00; }
.badge-danger { background: var(--red-soft); color: #a71d2a; }
.badge-info { background: var(--blue-soft); color: #1d4ed8; }
.badge-muted { background: var(--surface-2); color: var(--text-faint); }

/* =========================================================
   Formulaires inline / divers
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.copy-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
}
.copy-box button {
    flex-shrink: 0;
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.upload-box {
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface-2);
}
.upload-box.has-file { border-color: var(--green); color: var(--green); }

.kyc-doc-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* =========================================================
   Pages publiques (landing)
   ========================================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    position: relative;
}
.navbar .links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.navbar .links a { color: var(--text-muted); font-weight: 500; font-size: 14px; }
.navbar .links a:hover { color: var(--navy); text-decoration: none; }

/* Hamburger pour la nav publique sur mobile */
.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    color: var(--navy);
    font-size: 18px;
}
.navbar-links-wrapper { display: flex; gap: 20px; align-items: center; }

@media (max-width: 700px) {
    .navbar-toggle { display: block; }
    .navbar-links-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        z-index: 100;
        box-shadow: var(--shadow);
    }
    .navbar-links-wrapper.open { display: flex; }
    .navbar-links-wrapper a { font-size: 15px; padding: 4px 0; width: 100%; }
    .navbar-links-wrapper .btn { width: 100%; text-align: center; }
}

.hero {
    text-align: center;
    padding: 100px 0 70px;
}
.hero .badge-eyebrow {
    display: inline-block;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 { font-size: 48px; line-height: 1.2; max-width: 760px; margin: 0 auto 18px; color: var(--navy); }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 600px; margin: 0 auto 32px; font-size: 17px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.section { padding: 60px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title h2 { font-size: 32px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.feature-card .icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
}

.footer-main {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 56px 0 28px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
}
.footer-col a:hover { color: var(--gold); }
.footer-brand p { margin: 0; font-size: 13px; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Packs d'investissement
   ========================================================= */
.disclaimer-banner {
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 14px;
    color: #b56a00;
    margin-bottom: 36px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.disclaimer-banner i { margin-top: 2px; }

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.pack-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.pack-card.featured {
    border: 2px solid var(--gold);
    position: relative;
}
.pack-card.featured::before {
    content: "Recommandé";
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 999px;
}
.pack-card h3 { margin-bottom: 4px; }
.pack-card .pack-min {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    margin: 8px 0 4px;
}
.pack-card .pack-strategy {
    font-size: 13px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 16px;
}
.pack-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    flex: 1;
}
.pack-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pack-card ul li:last-child { border-bottom: none; }
.pack-card ul li i { color: var(--green); margin-top: 3px; }

/* =========================================================
   Pages de contenu (À propos, Équipe, FAQ, Aide, Whitepaper)
   ========================================================= */
.content-page { padding: 50px 0 30px; }
.content-page h1 { font-size: 36px; margin-bottom: 12px; }
.content-page .lead { font-size: 17px; max-width: 720px; margin-bottom: 10px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 30px;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow);
}
.team-card .avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--navy-soft);
    color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.team-card h3 { margin-bottom: 2px; font-size: 16px; }
.team-card .role { color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: 13px; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 22px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-question i { color: var(--gold); transition: transform .2s ease; flex-shrink: 0; }
.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
    font-size: 14px;
    color: var(--text-muted);
}
.faq-item.open .faq-answer { padding: 0 22px 18px; max-height: 600px; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-category { margin: 36px 0 16px; }

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin: 30px 0 40px;
}
.help-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.help-card .icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--navy-soft);
    color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.whitepaper-toc {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 30px;
}
.whitepaper-toc h4 { margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); }
.whitepaper-toc a { display: block; font-size: 14px; margin-bottom: 6px; }
.wp-section { margin-bottom: 40px; }
.wp-section h2 { font-size: 22px; border-bottom: 2px solid var(--gold-soft); padding-bottom: 10px; margin-bottom: 14px; }
.wp-section ul { color: var(--text-muted); line-height: 1.8; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 50;
        transition: left .2s ease;
        height: 100vh;
        height: 100dvh; /* dynamic viewport height sur mobile */
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    .sidebar.open { left: 0; }
    .mobile-toggle { display: flex; }
    .topbar { padding-left: 70px; }
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 28px; line-height: 1.25; }
    .hero p { font-size: 15px; }
    .content { padding: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .topbar { padding: 14px 16px 14px 70px; }
    .topbar h1 { font-size: 18px; }
}

/* =========================================================
   Page Conformité — badges
   ========================================================= */
.compliance-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0 36px;
}
.compliance-badge {
    background: var(--green-soft);
    border: 1px solid var(--green);
    color: #1e7e34;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.compliance-badge i { color: var(--green); }
@media (max-width: 768px) {
    .compliance-badge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .compliance-badge-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Header public simplifié (logo + CTA)
   ========================================================= */
.pub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 0;
}
.pub-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.pub-brand img { height: 36px; }
.pub-brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--navy);
    line-height: 1.2;
}
.pub-brand-name span { color: var(--gold); }
.pub-header-actions { display: flex; gap: 10px; align-items: center; }

/* =========================================================
   Barre de navigation fixe en bas (style app mobile)
   ========================================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    box-shadow: 0 -4px 20px rgba(0, 51, 102, 0.08);
    /* safe area pour iPhone X+ */
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 8px;
    text-decoration: none;
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color .15s ease;
    border-top: 2px solid transparent;
    min-width: 0;
}
.bottom-nav-item i {
    font-size: 19px;
    line-height: 1;
}
.bottom-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.bottom-nav-item:hover { color: var(--navy); }
.bottom-nav-item.active {
    color: var(--gold);
    border-top-color: var(--gold);
}

/* Espace en bas du contenu pour ne pas être masqué par la barre fixe */
body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }

/* Sur desktop : la barre reste visible mais moins proéminente */
@media (min-width: 900px) {
    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        width: 600px;
        border-radius: 20px 20px 0 0;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}
