/* ════════════════════════════════════════════════════
   TOPO HERO — Style Carte d'Expédition
   Design éditorial haut de gamme, minimaliste, technique
════════════════════════════════════════════════════ */

/* ── Override du body sur la home ── */
body.home {
    background: #FAFAF8;
    color: #1a1a1a;
}


.menu-panel-contact span {
    opacity: 0.4;
}

/* Animation des liens du panel */
.menu-panel-inner .panel-link {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease, padding-right 0.25s ease;
}

.menu-panel.is-open .panel-link {
    opacity: 1;
    transform: translateX(0);
}

.menu-panel.is-open .panel-link:nth-child(1) { transition-delay: 0.15s; }
.menu-panel.is-open .panel-link:nth-child(2) { transition-delay: 0.20s; }
.menu-panel.is-open .panel-link:nth-child(3) { transition-delay: 0.25s; }
.menu-panel.is-open .panel-link:nth-child(4) { transition-delay: 0.30s; }
.menu-panel.is-open .panel-link:nth-child(5) { transition-delay: 0.35s; }
.menu-panel.is-open .panel-link:nth-child(6) { transition-delay: 0.40s; }
.menu-panel.is-open .panel-link:nth-child(7) { transition-delay: 0.45s; }
.menu-panel.is-open .panel-link:nth-child(8) { transition-delay: 0.50s; }


/* Burger → X Animation */
.mobile-menu-btn.is-active svg rect:nth-child(1) {
    transform: rotate(45deg) translate(5px, -3px);
    transform-origin: center;
}
.mobile-menu-btn.is-active svg rect:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.is-active svg rect:nth-child(3) {
    transform: rotate(-45deg) translate(5px, 3px);
    transform-origin: center;
}


/* ═══════════════════════════════════
   TOPO HERO SECTION
═══════════════════════════════════ */
.topo-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: #FAFAF8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── SVG Topo Map Background ── */
.topo-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.topo-bg svg {
    width: 100%;
    height: 100%;
}

/* ── Traces de Pneus (Élément positionné à gauche) ── */
.topo-tire-tracks {
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 55%;
    max-width: 750px;
    z-index: 3;
    pointer-events: none;
}

.topo-tire-tracks img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* ── Contenu Texte (Aligné à droite) ── */
.topo-hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 140px 8vw 100px;
    min-height: 100vh;
}

.topo-text-block {
    max-width: 550px;
    text-align: left;
}

/* ── Surtitre (Overline) ── */
.topo-overline {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topo-overline .word-accent {
    color: #D4841A;
    font-weight: 700;
}

/* ── Titre Principal (Headline) ── */
.topo-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.02;
    color: #0f0f0f;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.topo-title .sahara-word {
    color: #D4841A;
    font-weight: 900;
}

.topo-title .bracket {
    color: #0f0f0f;
    font-weight: 900;
}

/* ── Description (Body) ── */
.topo-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    font-weight: 400;
    max-width: 450px;
    margin-bottom: 40px;
}

/* ── Bouton CTA (Outline noir, coins nets) ── */
.topo-btn {
    display: inline-block;
    border: 1.5px solid #0f0f0f;
    color: #0f0f0f;
    padding: 18px 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s ease;
    background: transparent;
}

.topo-btn:hover {
    background: #d9772b; /* Orange Sahara au survol */
    border-color: #d9772b;
    color: #ffffff;
}

/* ═══════════════════════════════════
   FOOTER BAR MINIMALISTE
═══════════════════════════════════ */
.topo-footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    z-index: 10;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #1a1a1a;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.topo-footer-bar a {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s;
}

.topo-footer-bar a:hover { opacity: 0.5; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
    .topo-tire-tracks {
        width: 45%;
        left: -8%;
    }

    .topo-hero-content {
        padding: 140px 5vw 100px;
    }

    .topo-text-block {
        max-width: 450px;
    }
}

@media (max-width: 900px) {
    #topo-header {
        padding: 1.5rem 5vw;
    }
    
    /* Sur mobile, cacher le menu central et les icônes de droite */
    .topo-header-center,
    .topo-header-right {
        display: none;
    }
    
    /* Repositionner le burger à droite sur mobile */
    .topo-header-inner {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .topo-tire-tracks {
        position: absolute;
        width: 100%;
        max-width: 100%;
        left: -15%;
        top: 10%;
        bottom: auto;
        opacity: 0.2;
    }

    .topo-hero-content {
        justify-content: center;
        padding: 120px 15px 80px; /* Réduit les marges pour laisser de la place au texte géant */
    }

    .topo-text-block {
        max-width: 100%;
        text-align: center;
        position: relative;
        z-index: 10;
        padding: 1rem 0;
    }

    .topo-overline {
        justify-content: center;
        font-size: 30px; /* Taille gigantesque */
        letter-spacing: 10px;
        margin-bottom: 35px;
        font-weight: 900;
    }

    .topo-desc {
        max-width: 100%;
        font-size: 34px; /* Format affiche géante */
        line-height: 1.3;
        color: #000;
        margin-bottom: 70px;
        font-weight: 700;
    }

    .topo-title {
        font-size: 7rem; /* Taille démesurée */
        line-height: 0.8;
        letter-spacing: -4px;
        margin-bottom: 50px;
        font-weight: 950;
        word-break: break-all; /* Force la cassure pour éviter l'overflow */
    }

    .topo-btn {
        width: 100%;
        text-align: center;
        padding: 20px 30px;
        font-size: 13px;
        background: transparent; /* Transparent par défaut */
        color: #0f0f0f; /* Texte noir */
        border: 2px solid #0f0f0f; /* Cadre noir */
        position: relative;
        z-index: 25;
        display: block;
        pointer-events: auto !important;
        transition: all 0.3s ease;
    }

    .topo-btn:hover {
        background: #d9772b !important; /* Orange au survol */
        border-color: #d9772b !important;
        color: #ffffff !important;
    }

    .topo-footer-bar {
        justify-content: center;
        gap: 20px;
        font-size: 9px;
    }
}
