/* =========================================================================
   Boutique – thème vibrant partagé (accueil, catalogue, produit)
   Palette : indigo / violet / magenta, accents roses, animations modérées.
   Chargé dans boutique_header.php APRÈS Bootstrap.
   ========================================================================= */

:root {
    --bq-primary: #6d5dfc;
    --bq-primary-rgb: 109, 93, 252;
    --bq-primary-dark: #574fd6;
    --bq-secondary: #9d4edd;
    --bq-accent: #ff4d8d;
    --bq-accent-rgb: 255, 77, 141;

    --bq-gradient: linear-gradient(135deg, #6d5dfc 0%, #9d4edd 55%, #c264ff 100%);
    --bq-gradient-hover: linear-gradient(135deg, #5a4ce8 0%, #8a3fd0 55%, #b14df0 100%);
    --bq-gradient-accent: linear-gradient(135deg, #ff4d8d 0%, #ff7eb3 100%);

    --bq-ink: #211d45;
    --bq-muted: #6b7280;
    --bq-bg: #f6f6fc;
    --bq-surface: #ffffff;
    --bq-border: rgba(109, 93, 252, 0.12);

    --bq-success: #10b981;
    --bq-warning: #f59e0b;
    --bq-danger: #ef4444;

    --bq-shadow-sm: 0 4px 14px rgba(33, 29, 69, 0.08);
    --bq-shadow: 0 12px 32px rgba(109, 93, 252, 0.14);
    --bq-shadow-lg: 0 22px 50px rgba(109, 93, 252, 0.22);
    --bq-radius: 16px;
}

body {
    background-color: var(--bq-bg);
    color: var(--bq-ink);
}

/* ---------- Navbar ---------- */
.boutique-navbar {
    background: var(--bq-gradient);
    box-shadow: 0 6px 24px rgba(109, 93, 252, 0.25);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.boutique-navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.boutique-navbar .nav-link {
    font-weight: 500;
    border-radius: 10px;
    padding: 0.45rem 0.85rem !important;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.boutique-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.boutique-navbar .nav-link .badge {
    background: var(--bq-accent) !important;
    box-shadow: 0 2px 8px rgba(var(--bq-accent-rgb), 0.5);
}

/* ---------- Boutons ---------- */
.btn-primary {
    background: var(--bq-gradient);
    border: none;
    box-shadow: 0 8px 20px rgba(var(--bq-primary-rgb), 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--bq-gradient-hover);
    box-shadow: 0 12px 26px rgba(var(--bq-primary-rgb), 0.42);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--bq-primary);
    border-color: var(--bq-primary);
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background: var(--bq-primary);
    border-color: var(--bq-primary);
    box-shadow: 0 8px 18px rgba(var(--bq-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    color: var(--bq-primary);
    transform: translateY(-2px);
}

/* ---------- Liens & accents ---------- */
a {
    color: var(--bq-primary);
}

a:hover {
    color: var(--bq-primary-dark);
}

.text-gradient {
    background: linear-gradient(45deg, #ffe27a, #ffd1f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: var(--bq-surface);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    box-shadow: var(--bq-shadow-sm);
}

.breadcrumb-item a {
    color: var(--bq-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--bq-muted);
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(135deg, #2a2350 0%, #3a2a6b 100%);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- Modale ---------- */
.modal-content {
    border: none;
    border-radius: var(--bq-radius);
    overflow: hidden;
    box-shadow: var(--bq-shadow-lg);
}

.modal-header {
    background: var(--bq-gradient);
    color: #fff;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ---------- Cartes Bootstrap génériques de la boutique ---------- */
.card {
    border: 1px solid var(--bq-border);
    border-radius: var(--bq-radius);
    box-shadow: var(--bq-shadow-sm);
}

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 0;
    height: 60px;
    width: 60px;
    padding: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    transition: width 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.whatsapp-fab i {
    flex: 0 0 60px;
    width: 60px;
    text-align: center;
    font-size: 1.7rem;
    line-height: 60px;
}

.whatsapp-fab .whatsapp-label {
    opacity: 0;
    max-width: 0;
    font-weight: 600;
    transition: opacity 0.25s ease, max-width 0.3s ease, padding 0.3s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus {
    width: 232px;
    color: #fff;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab:hover .whatsapp-label,
.whatsapp-fab:focus .whatsapp-label {
    opacity: 1;
    max-width: 180px;
    padding-right: 1.1rem;
}

/* Pulsation douce pour attirer l'œil (animation modérée) */
.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: bqWhatsPulse 2.4s ease-out infinite;
}

@keyframes bqWhatsPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 575px) {
    .whatsapp-fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab::before { animation: none; }
}

/* Apparition douce au scroll/chargement */
@keyframes bqFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bq-fade-up {
    animation: bqFadeUp 0.5s ease both;
}
