/* NEG'PROD — styles partagés entre toutes les pages.
   Tokens de marque + composants UI réutilisables (scroll-top, WhatsApp).
   Inclure APRÈS le bloc <style> spécifique à la page si on veut surcharger. */

:root {
    --np-gold:       #D4AF37;
    --np-gold-light: #F5C842;
    --np-gold-dark:  #8B6914;
    --np-black:      #000000;
    --np-dark:       #0a0a0a;
    --np-dark-2:     #111111;
    --np-dark-3:     #1a1a1a;
    --np-white:      #ffffff;
    --np-text-muted: #999999;
}

/* Bouton retour en haut — utilisé sur index, devis, article, 404 */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--np-gold, #D4AF37);
    color: var(--np-black, #000);
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--np-gold-light, #F5C842);
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print : cache les éléments d'interface non-pertinents pour l'impression */
@media print {
    .scroll-top,
    .whatsapp-fab,
    .wa-container,
    .mobile-cta-bar,
    nav { display: none !important; }
}

/* ===== Barre CTA sticky mobile (Devis + WhatsApp) =====
   Affichée uniquement sur écrans étroits, toujours en bas.
   Le scroll-top se décale automatiquement pour ne pas se chevaucher. */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    gap: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    z-index: 998;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 0.95rem 0.5rem;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.mobile-cta-bar a.cta-devis {
    background: var(--np-gold, #D4AF37);
    color: var(--np-black, #000);
}
.mobile-cta-bar a.cta-devis:active { background: var(--np-gold-light, #F5C842); }
.mobile-cta-bar a.cta-wa {
    background: #25D366;
    color: #fff;
}
.mobile-cta-bar a.cta-wa:active { background: #128C7E; }

@media (max-width: 720px) {
    .mobile-cta-bar { display: flex; }
    /* Décale les autres éléments fixés pour ne pas être masqués par la barre */
    body { padding-bottom: 60px; }
    .scroll-top { bottom: 75px !important; }
    .wa-container,
    .whatsapp-fab { bottom: 75px !important; }
}
