/* ============================================================
   HEADER — Navigation fixe
   ============================================================ */

.menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100px;
    z-index: 100;
    display: flex;
    align-items: center;
    /* Fondu vers le bas pour se fondre dans le fond */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.15) 70%, transparent 100% );
}

/* Ligne de séparation subtile en bas du header */
.menu::after {
    content: '';
    position: absolute;
    bottom: 0; left: 6%; right: 6%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 30%,
        rgba(255, 255, 255, 0.12) 70%,
        transparent 100%
    );
}

.inner {
    width: 88%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Logo ── */
.m-left .logoV {
    height: 52px;
    width: auto;
    opacity: 0.88;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
    /* Filtre pour forcer le blanc sur fond sombre */
    filter: brightness(0) invert(1);
}

.m-left .logoV:hover {
    opacity: 1;
    transform: scale(1.04);
}

/* ── Liens de navigation ── */
.m-center {
    display: flex;
    align-items: center;
    gap: 2px;
}

a.lien {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.70);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 15px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color 0.22s, background 0.22s, border-color 0.22s;
    white-space: nowrap;
}

a.lien:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

a.lien.active {
    color: white;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ── Bouton État des services ── */
.m-right {
    display: flex;
    align-items: center;
}

.lien-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding: 9px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.22s;
    white-space: nowrap;
}

.lien-status:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.06);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 7px rgba(74, 222, 128, 0.8);
    animation: pulse-glow 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    a.lien { font-size: 11.5px; padding: 8px 11px; }
}

@media (max-width: 860px) {
    .m-center { gap: 0; }
    a.lien { font-size: 11px; padding: 7px 9px; letter-spacing: 0.07em; }
    .lien-status span:not(.status-dot) { display: none; }
    .lien-status { padding: 9px 12px; }
}

@media (max-width: 640px) {
    .m-center { display: none; }
    .menu { height: 72px; }
    .m-left .logoV { height: 40px; }
}

/* ══════════════════════════════════════════
   BOTTOM NAV — Mobile uniquement
   Dock de navigation en bas de l'écran
══════════════════════════════════════════ */

.bottom-nav {
    display: none; /* caché par défaut (desktop) */
}

@media (max-width: 640px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 200;
        height: 76px;
        padding-bottom: env(safe-area-inset-bottom, 8px); /* notch iPhone */
        background: rgba(15, 15, 20, 0.82);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.10);
        align-items: stretch;
        justify-content: stretch;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.45);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 8px 4px;
        border: none;
        background: none;
        transition: color 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .bottom-nav-item:active {
        transform: scale(0.90);
    }

    .bottom-nav-item.active {
        color: white;
    }

    .bottom-nav-icon {
        font-size: 22px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .bottom-nav-item.active .bottom-nav-icon {
        transform: translateY(-2px);
    }

    /* Indicateur actif : petit trait au dessus */
    .bottom-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        width: 28px;
        height: 2px;
        border-radius: 0 0 2px 2px;
        background: white;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .bottom-nav-item.active::before {
        opacity: 1;
    }

    /* Décaler le contenu des sections pour pas être
       caché derrière la bottom nav */
    section .section-inner {
        padding-bottom: 90px;
    }
}
