/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-texte {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.logo-container:hover .logo-texte {
    opacity: 0.9;
}

.extension {
    color: #4A7AFF;
}

.logo-subtitle {
    font-family: var(--font-sans);
    font-size: 11px;
    color: #ffffff;
    margin-top: 4px;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- Menu Déroulant --- */
.dropdown-menu-container {
    position: relative;
    display: inline-block;
}

.nav-link {
    font-family: var(--font-sans);
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover {
    color: var(--color-accent);
}

.caret {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-menu-container:hover .caret {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(5, 5, 5, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(12px);
    z-index: 10000;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-menu-container:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    color: var(--color-text-muted);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
}

.dropdown-menu-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

/* --- Menu Mobile --- */
.stealth-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    width: 48px;
    height: 48px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    flex-direction: column;
    padding: 1rem 5vw;
    box-shadow: 0px 15px 30px rgba(0,0,0,0.9);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   DOCK SOCIAL
   ========================================================================== */
.social-dock {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9500;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.social-link {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--color-accent);
    transform: scale(1.15);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #000;
    padding: 6rem 5vw 3rem 5vw;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a, .footer-col span {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.footer-bottom-links a {
    color: var(--color-text-muted);
    margin-left: 1.5rem;
    text-decoration: none;
    cursor: pointer;
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

.footer-credits {
    width: 100%;
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer-credits a {
    color: var(--color-text-muted);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   LAYOUT RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
    /* 1. On cache TOUS les éléments du header bureau, sauf le bouton burger */
    .header-controls .dropdown-menu-container,
    .header-controls .link-destockage,
    .header-controls .search-container,
    .header-controls .cta-rendezvous {
        display: none !important;
    }

    /* 2. On affiche le bouton burger */
    .stealth-menu-btn {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* --- NOUVEAU : STYLE DE LA RECHERCHE MOBILE --- */
    .mobile-search {
        margin-bottom: 1.5rem;
        width: 100%;
        justify-content: space-between;
        display: flex !important; /* Force l'affichage dans le menu mobile */
    }
    .mobile-search input {
        width: 100% !important; /* Prend toute la largeur */
        padding-left: 0 !important;
    }
    .mobile-search:focus-within input {
        width: 100% !important; /* Empêche le redimensionnement au clic sur mobile */
    }
    /* ---------------------------------------------- */

    /* Ajustements du footer */
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links a {
        margin-left: 0;
        margin: 0 0.5rem;
    }

    /* Dock des réseaux sociaux repositionné */
    .social-dock {
        top: auto;
        bottom: 80px;
        right: 10px;
        flex-direction: column;
        padding: 15px 10px;
        transform: none;
    }
}