/* ============================================================
   TOP HEADER MODERNE (DESKTOP UNIQUEMENT) — AlloPieceDetachee
   Barre de contact au-dessus de la navigation.
   Pages : index.php, pages/produits, pages/batteries, pages/devis,
           batterie.php, produit.php
   À charger APRÈS header-top-finish.css (il le remplace visuellement).
   Aucun changement HTML nécessaire. Mobile (<= 768px) inchangé.
   ============================================================ */
@media (min-width: 769px) {

    /* ---------- Fond : bleu nuit profond, net et sobre ---------- */
    body header .header-top,
    body header.floating .header-top {
        position: relative;
        overflow: visible;
        padding: .5rem 0 !important;
        font-size: .85rem;
        font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(90deg, #0d0e1c 0%, #15162b 50%, #0d0e1c 100%) !important;
        box-shadow: none;
    }
    /* Supprime l'ancien grain de sable */
    body header .header-top::before { content: none !important; }
    /* Fine ligne d'accent orange → or en bas de la barre */
    body header .header-top::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 107, 53, .65) 22%,
            rgba(247, 184, 1, .7) 50%,
            rgba(255, 107, 53, .65) 78%,
            transparent 100%);
        pointer-events: none;
    }

    /* ---------- Coordonnées (gauche) ---------- */
    body header .header-top .contact-info {
        gap: 0;
        align-items: center;
    }
    body header .header-top .contact-info span {
        position: relative;
        padding: 0 1.15rem;
        gap: .5rem;
        font-weight: 500;
        letter-spacing: .25px;
        color: rgba(255, 255, 255, .86);
        white-space: nowrap;
        transition: color .2s ease;
    }
    body header .header-top .contact-info span:first-child { padding-left: 0; }
    body header .header-top .contact-info span + span::after {
        /* séparateur vertical fin entre les éléments */
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 1px;
        height: 14px;
        margin-top: -7px;
        background: rgba(255, 255, 255, .16);
    }
    body header .header-top .contact-info span:hover { color: #fff; }

    /* Liens cliquables (téléphones / e-mail) : même rendu que le texte, soulignés au survol */
    body header .header-top .contact-info a {
        color: inherit;
        text-decoration: none;
        transition: color .2s ease;
    }
    body header .header-top .contact-info a:hover,
    body header .header-top .contact-info a:focus-visible {
        color: var(--primary, #FF6B35) !important;
        text-decoration: none;
    }

    /* Lien WhatsApp (icône seule, à droite des numéros) */
    body header .header-top .contact-info a.hdr-wa {
        display: inline-flex;
        align-items: center;
        margin-left: .1rem;
    }
    body header .header-top .contact-info span:first-child a.hdr-wa svg {
        width: 16px !important;
        height: 16px !important;
        transition: transform .2s ease;
    }
    body header .header-top .contact-info a.hdr-wa:hover svg { transform: scale(1.15); }

    /* Icônes : même trait fin, couleur orange de la marque */
    body header .header-top .contact-info span:first-child svg {
        width: 14px !important;
        height: 14px !important;
        margin-right: 0 !important;
        opacity: 1 !important;
        color: var(--primary, #FF6B35);
        stroke-width: 2;
    }
    body header .header-top .contact-info span:nth-child(2)::before,
    body header .header-top .contact-info span:nth-child(3)::before {
        content: '' !important;
        display: inline-block;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        background-color: var(--primary, #FF6B35);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: contain;
        mask-size: contain;
    }
    body header .header-top .contact-info span:nth-child(2)::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
    }
    body header .header-top .contact-info span:nth-child(3)::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    }

    /* ---------- Livraison (droite) : pastille élégante ---------- */
    body header .header-top .container > div:last-child {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        padding: .28rem .95rem .28rem .7rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .14);
        color: #fff;
        font-size: .76rem;
        font-weight: 600;
        letter-spacing: .4px;
        line-height: 1.2;
        white-space: nowrap;
    }
    body header .header-top .container > div:last-child svg {
        margin-right: 0 !important;
        border-radius: 2px;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) !important;
    }
}

/* Écrans desktop plus étroits : séparateurs et marges resserrés */
@media (min-width: 769px) and (max-width: 1200px) {
    body header .header-top .contact-info span { padding: 0 .7rem; gap: .4rem; letter-spacing: 0; }
    body header .header-top .container > div:last-child { padding: .25rem .75rem .25rem .55rem; letter-spacing: 0; }
}
@media (min-width: 769px) and (max-width: 1000px) {
    body header .header-top .contact-info span:nth-child(3) { display: none; }
}

/* 1051–1200px : texte légèrement réduit pour que tout tienne sur une ligne */
@media (min-width: 1051px) and (max-width: 1200px) {
    body header .header-top,
    body header.floating .header-top { font-size: .8rem; }
}
