:root {
    --gold: #FFD700;
    --gold-2: #FFA500;
    --red: #E60000;
}

body { font-family: 'Poppins', sans-serif; background: #111; }
.brand-font { font-family: 'Montserrat', sans-serif; }
.fw-black { font-weight: 900; }
.text-warning { color: var(--gold) !important; }
.text-gold { color: var(--gold); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
    color: #000;
    font-weight: 700;
    border: none;
    transition: all .3s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, .35);
}

.btn-outline-warning { color: var(--gold); border-color: var(--gold); }
.btn-outline-warning:hover { background: var(--gold); color: #000; }

.product-card { transition: all .3s ease; }
.product-card:hover { border-color: var(--gold) !important; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 215, 0, .15); }

.hero-slide { min-height: 70vh; }

.card { border-radius: 1rem; }

.form-control:focus, .form-select:focus {
    background: #1a1a1a;
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(255, 215, 0, .25);
}

.rating-star:hover, .rating-star.active { color: var(--gold); }

/* SweetAlert2 dark override */
.swal2-popup { background: #1a1a1a !important; color: #fff !important; border: 1px solid #333; }
.swal2-title, .swal2-html-container { color: #fff !important; }
.swal2-confirm { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important; color: #000 !important; font-weight: bold !important; }
/* ==================== GALERIE PRODUIT ==================== */
.product-gallery { position: relative; }

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #1a1a1a;
    height: 500px;
    cursor: crosshair;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease-out;
    display: block;
}

.main-image-wrapper.zoomed img {
    transform: scale(2);
    cursor: zoom-out;
}

/* Vignettes */
.thumbnail-img {
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
    opacity: 0.65;
}

.thumbnail-img:hover {
    transform: scale(1.05);
    border-color: #FFD700 !important;
    opacity: 1;
}

.thumbnail-img.active {
    border-color: #FFD700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    opacity: 1;
}

/* Bouton lightbox */
.lightbox-trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #FFD700;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.lightbox-trigger:hover {
    background: #FFD700;
    color: #000;
    transform: scale(1.1);
}

/* Lightbox personnalisée */
.glightbox-clean .gslide-description {
    background: #111;
    color: #fff;
}

.glightbox-clean .gslide-title {
    color: #FFD700;
    font-weight: bold;
}

.gbtn {
    background: rgba(0, 0, 0, 0.5) !important;
}

.gbtn:hover {
    background: #FFD700 !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #555;
}

/* Avis : étoiles */
.rating-star:hover {
    transform: scale(1.15);
}

/* Responsive */
@media (max-width: 768px) {
    .main-image-wrapper {
        height: 350px;
    }
    .lightbox-trigger {
        width: 38px;
        height: 38px;
    }
}
/* ============================================================
   CORRECTIONS DE LISIBILITÉ — Fond sombre
   ============================================================ */

/* --- Texte "muted" (gris Bootstrap) trop sombre sur noir --- */
.text-muted {
    color: #b8b8b8 !important;
}

/* --- Labels de formulaire --- */
.form-label {
    color: #e0e0e0 !important;
    font-weight: 500;
    margin-bottom: .4rem;
}

/* --- Texte par défaut dans les cards --- */
.card,
.card-body,
.card-text {
    color: #e0e0e0;
}

.card-text {
    color: #b8b8b8;
}

/* --- Petits textes / aides --- */
small,
.small {
    color: #b8b8b8;
}

/* --- Texte dans les tables --- */
.table {
    color: #e0e0e0;
}

.table thead th {
    color: var(--gold) !important;
    border-bottom-color: #333;
}

/* --- Placeholder dans les inputs --- */
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
    color: #888 !important;
    opacity: 1;
}

/* --- Description produit (dans pages/product.php) --- */
.product-description,
.product-description * {
    color: #cfcfcf !important;
    line-height: 1.7;
}

/* --- Avis : texte du commentaire --- */
.review-comment {
    color: #e0e0e0;
}

/* --- Inputs désactivés --- */
.form-control:disabled,
.form-select:disabled {
    background: #1a1a1a;
    color: #888;
    border-color: #333;
}

/* --- Boutons outline secondary (partage réseaux) --- */
.btn-outline-secondary {
    color: #b8b8b8;
    border-color: #444;
}

.btn-outline-secondary:hover {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
}

/* --- Breadcrumb : liens et séparateurs --- */
.breadcrumb-item a {
    color: #b8b8b8 !important;
}

.breadcrumb-item a:hover {
    color: var(--gold) !important;
}

.breadcrumb-item.active {
    color: var(--gold) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #666 !important;
}

/* --- Listes --- */
ul, ol {
    color: #e0e0e0;
}

/* --- Paragraphes --- */
p {
    color: #e0e0e0;
}

/* --- Badges secondaires --- */
.badge.bg-secondary {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

/* --- Prix barré (old_price) --- */
.text-decoration-line-through {
    color: #888 !important;
}

/* --- Navbar : liens inactifs --- */
.navbar-dark .navbar-nav .nav-link {
    color: #d0d0d0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--gold);
}

/* --- Dropdown --- */
.dropdown-menu-dark {
    background: #1a1a1a;
    border-color: #333;
}

.dropdown-menu-dark .dropdown-item {
    color: #e0e0e0;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: #FFD700;
    color: #000;
}

/* --- Footer : liens --- */
footer .text-muted {
    color: #a0a0a0 !important;
}

footer a.text-muted:hover {
    color: var(--gold) !important;
}

/* --- Modal : texte --- */
.modal-content {
    color: #e0e0e0;
}

.modal-body p,
.modal-body label {
    color: #e0e0e0;
}

/* --- Inputs en général : fond plus contrasté --- */
.form-control.bg-dark,
.form-select.bg-dark {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-color: #3a3a3a !important;
}

/* --- Focus : garder le style doré --- */
.form-control:focus,
.form-select:focus {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-color: var(--gold) !important;
}

/* --- Sélection de texte --- */
::selection {
    background: var(--gold);
    color: #000;
}

/* --- Liens génériques --- */
a {
    transition: color .2s;
}

a.text-decoration-none:hover {
    color: var(--gold) !important;
}

/* --- Card titre --- */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: #fff;
}

/* --- Étoiles non remplies (plus visibles) --- */
.fa-star.text-secondary,
.text-secondary {
    color: #555 !important;
}

/* --- Message "Aucun avis" et états vides --- */
.text-center.text-muted,
.text-muted.text-center {
    color: #a0a0a0 !important;
}

/* ============================================================
   LOGO NAVBAR
   ============================================================ */

.brand-logo {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform .3s ease, filter .3s ease;
    /* Effet léger pour faire ressortir le logo sur fond noir */
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.25));
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.55));
}

/* Fallback texte (si image manquante) */
.brand-fallback {
    gap: 2px;
    text-align: center;
}

/* ---------- Responsive ---------- */

/* Tablette */
@media (max-width: 992px) {
    .brand-logo {
        height: 50px;
        max-width: 170px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .brand-logo {
        height: 45px;
        max-width: 150px;
    }
    .navbar-brand {
        padding: 0;
    }
}
/* ============================================================
   FOOTER
   ============================================================ */

.footer-logo {
    height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.2));
    transition: transform .3s ease, filter .3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.5));
}

/* Liens footer */
.footer-links {
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
    list-style: none;
}

.footer-links a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #FFD700;
    padding-left: 6px;
}

.footer-links a::before {
    content: "→";
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity .2s, left .2s;
    color: #FFD700;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -8px;
}

/* Réseaux sociaux */
.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b8b8b8;
    text-decoration: none;
    transition: all .25s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.35);
}

/* Icônes paiement */
.footer .fab.fa-cc-stripe:hover,
.footer .fab.fa-cc-visa:hover,
.footer .fab.fa-cc-mastercard:hover {
    color: #FFD700 !important;
    transition: color .2s;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-logo {
        height: 55px;
        max-width: 180px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: .9rem;
    }
}

/* Fallback texte footer */
.footer-fallback h5 {
    font-size: 1.5rem;
    font-weight: 900;
}