/* AYA'S CROCHET — palette logo : « AYA'S » bleu-gris, « CROCHET » rose poussiéreux */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Couleurs logo (maquette) */
    --color-dusty-rose: #D2A6A6;
    --color-steel-blue: #7A8B99;
    --color-taupe: #A89C94;
    --color-cream: #F5F0EB;
    --color-page: #FDF9F6;
    --accent-rgb: 210, 166, 166;
    --steel-rgb: 122, 139, 153;

    --primary: #5C534D;              /* Taupe assombri — texte & structure lisibles */
    --accent: var(--color-dusty-rose);
    --accent-secondary: var(--color-steel-blue);
    --accent-gradient-end: var(--color-steel-blue);
    --bg-main: var(--color-page);
    --bg-soft: var(--color-cream);

    --bg-header: var(--bg-main);
    --text-header: var(--primary);
    --accent-hover: var(--accent-secondary);
    --bg-cta: var(--accent);
    --text-cta: #1a1a1a;
    --price-color: var(--accent);
    --card-hover-bg: var(--bg-soft);

    --bg-clothing: var(--bg-soft);
    --bg-parfum: var(--bg-soft);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', 'Lato', sans-serif;

    --border-radius-btn: 8px;
}

/* Base Styles - Premium */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--primary);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-header);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-header);
    transition: all 0.4s ease;
}

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

/* Ombre sur toutes les images (logos exclus : pas d’ombre ni cadre) */
img:not([src*="data:image"]):not(.navbar-toggler-icon):not(.navbar-logo):not(.navbar-logo-mobile):not(.footer-brand-logo):not(.navbar-logo-admin) {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

/* Gestion des images manquantes */
img[src=""],
img:not([src]) {
    display: none;
}

/* Images de produits - toujours visibles */
.product-img-wrapper img,
.product-detail-image,
.category-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ombre claire pour les images dans les sections sombres */
footer img,
footer .product-img-wrapper img,
footer .category-img,
[class*="dark"] img,
.bg-dark img,
.navbar-dark img {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

/* Cibler spécifiquement les images dans les sections avec fond sombre */
section[style*="background-color: #"] img,
section[style*="background-color:#"] img,
section[style*="background: #"] img,
section[style*="background:#"] img {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

/* A. Header (Navigation) — fond blanc */
.navbar {
    background: #fff !important;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 75px;
    height: 65px;
    overflow: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    will-change: transform, background-color;
    opacity: 1;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: none;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 8px 0;
    margin: 0;
    margin-right: 80px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-brand-aya {
    color: var(--accent-secondary) !important;
    font-weight: 800;
}

.navbar-brand-crochet {
    color: var(--accent) !important;
    font-weight: 800;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.45));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand:hover .navbar-brand-aya {
    color: #4A4038 !important;
}

.navbar-brand:hover .navbar-brand-crochet {
    color: var(--accent) !important;
}

.navbar-logo {
    display: block;
    height: 45px;
    width: auto;
    object-fit: contain;
    object-position: center;
    max-width: 75px;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.02);
    filter: none !important;
    box-shadow: none !important;
}

/* Logo pied de page : pas d’ombre ni bordure */
footer h5 img.footer-brand-logo,
footer .footer-brand-logo {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.nav-link {
    color: #5C534D !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    margin: 0 12px;
    padding: 8px 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* Effet Hover: Soulignement élégant animé */
.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--bg-soft);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    width: 100%;
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-secondary) !important;
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Icons Header - Premium */
.btn-cart {
    color: var(--primary) !important;
    font-size: 1.35rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-cart i,
.btn-cart .fa-cart-shopping,
.btn-cart .fa-user,
.btn-cart .fas {
    color: var(--accent-secondary) !important;
}

/* Icône de recherche dans le navbar — bleu acier (logo) */
.search-icon-navbar {
    color: var(--accent-secondary) !important;
    font-size: 1.3rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 50%;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(var(--steel-rgb), 0.25);
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.search-icon-navbar i,
.search-icon-navbar .fa-search,
.search-icon-navbar .fas,
a.search-icon-navbar i,
a.search-icon-navbar .fa-search,
a.search-icon-navbar .fas,
a.text-reset.search-icon-navbar i,
a.text-reset.search-icon-navbar .fa-search,
a.text-reset.search-icon-navbar .fas {
    color: var(--accent-secondary) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-size: 1.3rem !important;
}

.search-icon-navbar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-icon-navbar:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.search-icon-navbar:hover {
    color: var(--accent) !important;
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(var(--accent-rgb), 0.35);
}

.search-icon-navbar:hover i,
.search-icon-navbar:hover .fa-search,
.search-icon-navbar:hover .fas {
    color: var(--accent) !important;
}

/* S'assurer que l'icône de recherche dans le navbar est visible */
.search-icon-btn .fa-search,
#searchIconBtn .fa-search,
#searchIconBtn i,
#searchIconBtn .fas,
.search-icon-btn i.fa-search {
    color: var(--accent-secondary) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-size: 1.3rem !important;
}

.btn-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(var(--accent-rgb), 0.22);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ne pas écraser le ::before de Font Awesome pour .fa-search */
.btn-cart .fa-search::before,
.search-icon-btn .fa-search::before,
#searchIconBtn .fa-search::before {
    /* Laisser Font Awesome gérer son propre ::before */
    content: inherit;
}

.btn-cart:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.btn-cart:hover,
.btn-cart:hover i,
.btn-cart:hover .fa-cart-shopping,
.btn-cart:hover .fa-user,
.btn-cart:hover .fa-heart {
    color: var(--accent) !important;
    transform: scale(1.1);
    text-shadow: none;
}

.fa-search:hover {
    color: var(--accent-secondary) !important;
}

.badge-cart {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 3px 6px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 1px 3px rgba(92, 83, 77, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navbar Toggler (Mobile) */
.navbar-toggler {
    border: 1px solid rgba(92, 83, 77, 0.3);
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--steel-rgb), 0.35);
}

.navbar-toggler:focus-visible {
    outline: 2px solid rgba(92, 83, 77, 0.45);
    outline-offset: 2px;
}

 .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235C534D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
 }  

.navbar-toggler:hover {
    border-color: rgba(var(--steel-rgb), 0.75);
}

.navbar-toggler:active {
    border-color: rgba(var(--accent-rgb), 0.9);
}

/* Dropdown Menu - Premium */
.dropdown-menu {
    background-color: rgba(253, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-top: 10px;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--primary);
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover::before {
    transform: translateX(0);
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), transparent);
    color: var(--accent);
    padding-left: 30px;
}

/* B. Hero Section — image de fond + léger voile pour la lisibilité du texte */
.hero-section {
    position: relative;
    padding: 120px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-soft);
    background-image:
        url('../../images/fond.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 14px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Marque dans le hero : même duo bleu-gris / rose que la navbar */
.hero-title-brand-aya {
    color: var(--accent-secondary);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-title-brand-crochet {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons - Premium */
.btn-custom, .btn-primary {
    background: linear-gradient(135deg, var(--bg-cta), var(--accent-secondary)) !important;
    color: var(--text-cta) !important; /* noir sur dégradé clair */
    border-radius: 50px !important;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Boutons pleine largeur pour les actions importantes */
.btn-custom.w-100,
button.btn-custom[type="submit"],
.product-detail-actions .btn-add-to-cart,
.product-detail-actions .btn-buy-now,
.card-body .btn-custom[href*="commande.php"],
.card-body .d-grid .btn-custom,
.card-body .d-grid a.btn-custom,
a.btn-custom[href*="commande.php"],
.d-grid .btn-custom {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Force d-grid à prendre toute la largeur */
.card-body .d-grid {
    width: 100% !important;
}

.btn-custom::before, .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before, .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-custom:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #fff, #fff) !important;
    color: #000 !important;
    border-color: var(--bg-cta);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.5);
}

.btn-custom:active, .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    color: #000 !important;
}

/* Voir tous les produits */
.btn-view-all {
    background: var(--accent);
    color: #1a1a1a;
    border: 2px solid var(--accent);
    border-radius: 50px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); /* ombre grise */
    display: inline-block;
}

.btn-view-all:hover {
    background: var(--bg-soft);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); /* ombre grise plus marquée */
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) !important;
    border: 2px solid transparent !important;
    color: #1a1a1a !important;
    border-radius: 8px !important;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary), #6B7D8C) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(92, 83, 77, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Boutons Commander améliorés - Premium */
.btn-sm.btn-secondary,
.btn-sm.btn-primary {
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 140px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.25);
}

.btn-sm.btn-secondary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) !important;
    border: 2px solid transparent !important;
    color: #1a1a1a !important;
}

.btn-sm.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm.btn-secondary:hover::before {
    left: 0;
    height: 100%;
}

.btn-sm.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary), #6B7D8C) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(92, 83, 77, 0.35);
}

.btn-sm.btn-primary {
    background-color: var(--accent) !important;
    color: #1a1a1a !important;
    border: 2px solid var(--accent) !important;
    border-radius: var(--border-radius-btn) !important;
}

.btn-sm.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-sm.btn-primary:hover {
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
}

.btn-sm.btn-primary:hover::before {
    left: 0;
}

/* Bouton Commander standard (non btn-sm) */
.btn-secondary:not(.btn-sm) {
    padding: 12px 30px;
}

/* Amélioration des boutons dans les cartes produits */
.product-card .btn {
    margin-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Bouton panier avec fond gris */
a[title*="panier"],
a[title*="Ajouter au panier"],
a[href*="action_panier"] {
    background-color: #5C534D !important;
    border-color: #5C534D !important;
    color: #fff !important;
}

/* Style spécifique pour le bouton panier dans les cartes produits */
.product-card a[title*="panier"],
.product-card a[title*="Ajouter au panier"],
.product-card a[href*="action_panier"] {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #5C534D !important;
    min-width: 45px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s ease;
}

.product-card a[title*="panier"]:hover,
.product-card a[title*="Ajouter au panier"]:hover,
.product-card a[href*="action_panier"]:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Uniformisation des boutons Commander - Premium */
.product-card .btn-secondary,
.btn-secondary[href*="commande.php"],
a[href*="commande.php"].btn-secondary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) !important;
    border: 2px solid transparent !important;
    color: #1a1a1a !important;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    min-width: 140px;
    position: relative;
    box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.3);
}

.product-card .btn-secondary::before,
.btn-secondary[href*="commande.php"]::before,
a[href*="commande.php"].btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover pour les boutons Commander - Premium */
.product-card .btn-secondary:hover::before,
.btn-secondary[href*="commande.php"]:hover::before,
a[href*="commande.php"].btn-secondary:hover::before {
    left: 0;
    height: 100%;
}

.product-card .btn-secondary:hover,
.btn-secondary[href*="commande.php"]:hover,
a[href*="commande.php"].btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary), #6B7D8C) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(92, 83, 77, 0.4);
}

.product-card .btn-secondary:focus,
.btn-secondary[href*="commande.php"]:focus,
a[href*="commande.php"].btn-secondary:focus {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fdfcfc !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.product-card .btn-secondary:active,
.btn-secondary[href*="commande.php"]:active,
a[href*="commande.php"].btn-secondary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fefdfd !important;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(107, 98, 87, 0.2);
}

/* Category Cards (Nos Univers) - Premium */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 380px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    will-change: transform;
    margin-bottom: 30px;
    background-color: var(--color-cream);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.category-card:hover::before {
    opacity: 0.6;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    will-change: transform;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.category-card:hover .category-img {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3), transparent);
    padding: 40px 25px 25px;
    color: #fff;
    text-align: center;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-overlay {
    transform: translateY(0);
}

.category-overlay h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-overlay h3 {
    transform: translateY(-5px);
}

.category-overlay p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.category-btn-wrapper {
    margin-top: 15px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-btn-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.btn-category {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) !important;
    color: #fff !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
    display: inline-block;
    cursor: pointer;
}

.btn-category::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-category:hover::before {
    width: 300px;
    height: 300px;
}

.btn-category:hover {
    background: linear-gradient(135deg, #fff, #fff) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.6);
}

.category-card a {
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* C. Fiches Produits (Grille) - Design Épuré */
.product-card {
    background-color: var(--bg-soft);
    border: none !important;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    will-change: transform, box-shadow;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), transparent);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    background-color: var(--bg-soft);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Animation fadeInUp pour les product-card */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--color-cream);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrapper {
    border-radius: 0;
}

.product-img-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: filter 0.35s ease;
    border-radius: 0;
    display: block;
}

.product-card:hover .product-img-wrapper img {
    filter: brightness(1.04);
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.product-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    text-align: left;
    align-items: flex-start;
}

/* Wrapper pour le prix et les boutons - pousse vers le bas */
.product-card .card-body > .product-price,
.product-card .card-body > .mt-auto,
.product-card .card-body > .d-flex {
    margin-top: auto;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #5C534D !important;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 2.6em; /* Limite à 2 lignes */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: 0;
}

.product-card:hover .product-title {
    color: #4A4038 !important;
}

.product-category {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #6b6b6b !important; /* Gris */
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: capitalize;
}

.product-price {
    color: #C5A059 !important;
    font-family: var(--font-body);
    font-weight: 700 !important;
    font-size: 1.05rem;
    margin-bottom: 0 !important;
    margin-top: 0;
    padding-bottom: 0 !important;
    padding-top: 0;
    letter-spacing: 0.02em;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-block;
    line-height: 1.25 !important;
}

/* Prix en promotion (cartes : prix actuel en or) */
.product-price.promo-price {
    color: #C5A059 !important;
    font-weight: 700;
    white-space: nowrap;
}

.product-price-old {
    color: #9b9b9b !important; /* Gris clair */
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: line-through;
    margin-right: 8px;
    letter-spacing: 0;
    white-space: nowrap;
}

/* Conteneur pour prix avec ancien et nouveau */
.product-price {
    line-height: 1 !important;
}

.product-price .product-price-old,
.product-price .product-price.promo-price {
    display: inline-block;
    vertical-align: baseline;
}

.product-card:hover .product-price {
    transform: scale(1.02);
}

/* Descriptions de produits - couleur foncée pour lisibilité (comme Bakhoor Dubai) */
.product-card .card-body p,
.product-card .text-muted,
.product-card .product-desc,
.product-card .small,
.product-card p:not(.product-price) {
    color: #4a4a4a !important; /* Gris foncé pour les descriptions - même couleur que Bakhoor Dubai */
    font-weight: 400;
}

.product-card .card-body p.text-muted,
.product-card .text-muted.small {
    color: #4a4a4a !important;
}

/* S'assurer que tous les textes dans les cartes produits sont foncés */
.product-card .card-body {
    color: #333333;
}

.product-card .card-body * {
    color: inherit;
}

.product-card .card-body .product-title {
    color: #1a1a1a !important;
    font-weight: 700;
}

.product-card .card-body .product-price {
    color: #C5A059 !important;
    font-weight: 700 !important;
    text-align: left;
}

/* Supprimer complètement l'espace en dessous des prix */
.product-card .card-body .product-price:last-child,
.product-card .card-body p.product-price:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

.product-card .card-body:has(.product-price:last-child) {
    padding-bottom: 2px !important;
}

/* Réduire encore plus l'espace pour tous les prix */
.product-card .card-body p.product-price {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* D. Catégories Spécifiques - Premium */
/* Vêtements : Fond Sable */
.section-femme,  .section-maillot, .section-clothing {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
}

/* Produits vedettes (accueil) : blanc pur, sans overlay crème du ::before .section-femme */
#produits-vedette {
    background-color: #ffffff;
}

#produits-vedette::before {
    display: none;
}

#produits-vedette.has-bg-image::before {
    display: none;
}

/* ——— Produits vedettes : carrousel + cartes type vitrine ——— */
.featured-carousel {
    margin-top: 0.5rem;
}

.featured-carousel-viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.featured-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.featured-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 1.75rem;
    padding: 0.35rem 0 1rem;
}

.featured-carousel-slide {
    flex: 0 0 calc(25% - 1.3125rem);
    scroll-snap-align: start;
    min-width: 0;
    display: flex;
}

@media (max-width: 991px) {
    .featured-carousel-slide {
        flex: 0 0 calc(50% - 0.875rem);
    }
}

@media (max-width: 575px) {
    .featured-carousel-slide {
        flex: 0 0 82%;
    }
}

/* Carte vedette : image carrée, corps gris clair, actions */
#produits-vedette .product-card--featured {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#produits-vedette .product-card--featured:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.product-card-featured-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

#produits-vedette .product-card-featured-header {
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
}

.product-card-featured-media {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.product-card-featured-media:hover {
    color: inherit;
}

#produits-vedette .product-img-wrapper--featured {
    aspect-ratio: 1 / 1;
    background: #faf9f7;
}

.product-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1a1a;
    background: rgba(235, 235, 235, 0.92);
    backdrop-filter: blur(4px);
}

#produits-vedette .product-card-featured-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 14px 12px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-featured-textlink {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 0;
    width: 100%;
}

.product-card-featured-textlink:hover {
    color: inherit;
}

#produits-vedette .product-title--featured {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 6px;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

#produits-vedette .product-category--featured {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b6b6b !important;
    margin-bottom: 4px;
    text-transform: capitalize;
    line-height: 1.2;
}

#produits-vedette .product-price--featured {
    color: #C5A059 !important;
    font-size: 1rem;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

#produits-vedette .product-price--featured {
    line-height: 1.15;
}

.product-price-old--featured {
    font-size: 0.85rem;
    margin-right: 6px;
    color: #888 !important;
    font-weight: 400 !important;
    text-decoration: line-through;
}

.product-price-promo--featured {
    color: #C5A059 !important;
    font-weight: 700 !important;
}

.product-card-featured-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 4px;
}

.product-quickview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #444;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-quickview-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
}

.product-addcart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d4b896;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-addcart-btn:hover {
    background: #c9a882;
    color: #fff;
    transform: scale(1.05);
}

.product-addcart-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

#produits-vedette .product-card--featured:hover .product-img-wrapper--featured img {
    filter: brightness(1.03);
}

.section-homme {
    background-color: #F2E9E4;
    padding: 100px 0;
    position: relative;
}

/* Parfums & Encens : Artistique */
.section-parfum, .section-encens {
    background-color: var(--bg-main);
    padding: 100px 0;
    position: relative;
}

/* Support pour images de fond sur les sections */
.section-femme,
.section-homme,
.section-maillot,
.section-clothing,
.section-parfum,
.section-parfums,
.section-encens,
.section-accessoires,
.section-voiles,
.container.section-parfums,
.container.section-voiles {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay pour améliorer la lisibilité du contenu sur image de fond */
.section-femme::before,
.section-homme::before,
.section-maillot::before,
.section-clothing::before,
.section-parfum::before,
.section-parfums::before,
.section-encens::before,
.section-accessoires::before,
.section-voiles::before,
.container.section-parfums::before,
.container.section-voiles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(253, 248, 245, 0.85);
    z-index: 0;
}

/* S'assurer que le contenu est au-dessus de l'overlay */
.section-femme > .container,
.section-homme > .container,
.section-maillot > .container,
.section-clothing > .container,
.section-parfum > .container,
.section-parfums > .container,
.section-encens > .container,
.section-accessoires > .container,
.section-voiles > .container,
.section-parfums.container,
.section-voiles.container {
    position: relative;
    z-index: 1;
}

/* Classes utilitaires pour ajouter des images de fond */
.section-bg-mode {
    background-color: #FDF8F5;
}

.section-bg-parfum {
    background-color: #FDF8F5;
}
.section-bg-encens {
    background-color: #FDF8F5;
}

.section-bg-accessoires {
    background-color: #F2E9E4;
}

/* Ajustement de l'opacité de l'overlay selon les sections avec images */
.section-bg-mode::before,
.section-bg-parfum::before,
.section-bg-encens::before,
.section-bg-accessoires::before {
    background-color: rgba(253, 248, 245, 0.75);
}

/* Overlay plus foncé si l'image de fond est très claire */
.section-femme.has-bg-image::before,
.section-homme.has-bg-image::before,
.section-parfum.has-bg-image::before,
.section-encens.has-bg-image::before {
    background-color: rgba(253, 248, 245, 0.9);
}

/* Effet artistique pour parfums (ombre portée douce) */
.section-parfum .product-card, .section-encens .product-card {
    box-shadow: 0 10px 30px rgba(74, 93, 78, 0.05); /* Ombre légère teintée Eucalyptus */
}

.section-title {
    text-align: center;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 60px;
    color: var(--text-header);
    position: relative;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    
    /* Double bordure épaisse et transparente avec effet vitre de glace - sauf sur la page d'accueil */
    padding: 25px 50px;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 255, 255, 0.4),
        0 0 0 6px rgba(255, 255, 255, 0.3),
        0 0 0 10px rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
}

/* Texte en noir pour les titres avec cadres (sauf page d'accueil) */
.section-title h2 {
    color: #4A4038 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Annuler les bordures sur la page d'accueil */
body.home-page .section-title h2,
body.home-page .story-title {
    padding: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
    color: var(--text-header) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Animation de flottement pour les titres de section */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.5deg);
    }
}

/* Soulignement titre section */
/* Soulignement titre section - Réactivé sur la page d'accueil uniquement */
body.home-page .section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-hover), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
    animation: expand 1s ease-out 0.5s both;
}

/* Désactivé sur les autres pages (car on a les doubles bordures) */
.section-title h2::after {
    display: none;
}

@keyframes expand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Footer - Premium */
footer {
    background: #000;
    background-color: #000;
    background-image: none;
    color: var(--bg-header);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.5), transparent);
}

footer h5, footer a, footer p {
    color: var(--bg-header);
    font-family: var(--font-body);
}

footer h5 {
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
}

footer h5 .navbar-brand-aya {
    color: var(--accent-secondary) !important;
    font-weight: 800;
}

footer h5 .navbar-brand-crochet {
    color: var(--accent) !important;
    font-weight: 800;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Liens rapides en vertical */
footer .col-md-4 a {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

footer a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent);
}

footer a:hover::before {
    left: -15px;
    opacity: 1;
}

footer a:hover {
    color: var(--accent);
    padding-left: 20px;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-align: center;
    line-height: 1;
    position: relative;
}

.social-icons a i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.4);
    color: #4A4038 !important;
}

.social-icons a:active,
.social-icons a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #4A4038 !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.4);
}

footer .copyright {
    line-height: 1.5;
}

footer .footer-admin-link {
    text-decoration: none;
    display: inline;
}

footer .footer-admin-link:hover .footer-credit-user-icon,
footer .footer-admin-link:focus-visible .footer-credit-user-icon {
    opacity: 1;
}

footer .footer-admin-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

footer .footer-credit-user-icon {
    margin: 0 0.3em;
    font-size: 0.9em;
    color: var(--accent-secondary);
    vertical-align: -0.08em;
    opacity: 0.95;
}

/* Utilities */
.text-eucalyptus { color: var(--text-header); }
.text-bronze { color: var(--accent-hover); }

/* Badges */
.badge {
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 6px 10px;
}
.badge-new { background-color: var(--text-header); color: #fff; }
.badge-promo { background-color: var(--accent-hover); color: #fff; }

/* ============================================
   RESPONSIVE DESIGN - COMPLETE OVERHAUL
   ============================================ */

/* Tablet and Below (max-width: 991px) */
@media (max-width: 991px) {
    /* Navbar - Tablet */
    .navbar {
        padding: 10px 0;
        min-height: 60px;
        height: auto;
    }
    
    .navbar .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .navbar-logo {
        height: 35px;
        max-width: 70px;
    }

    .navbar-brand {
        font-size: 16px;
        margin-right: 15px !important;
    }

    .navbar-brand-aya,
    .navbar-brand-crochet {
        display: inline-block;
    }

    .search-icon-navbar {
        margin-right: 15px !important;
    }

    .btn-cart {
        font-size: 1.1rem;
    }
    
    /* Hero Section - Tablet */
    .hero-section {
        min-height: 60vh;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    /* Container adjustments */
    .container-fluid.px-5 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Product Cards - Tablet */
    .product-card {
        margin-bottom: 25px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
    
    /* Category Cards - Tablet */
    .category-card {
        height: 250px;
        margin-bottom: 25px;
    }

    .category-overlay h3 {
        font-size: 1.8rem;
    }

    .category-overlay p {
        font-size: 0.95rem;
    }

    /* Product Detail Page - Tablet */
    .product-detail-content {
        padding: 20px 0;
    }

    .product-detail-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .product-detail-price {
        font-size: 1.75rem;
    }

    .quantity-selector {
        margin: 15px 0;
    }

    /* Cart Table - Tablet */
    .table-responsive {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 12px 8px;
    }

    /* Forms - Tablet */
    .card-body {
        padding: 25px !important;
    }

.form-control {
        font-size: 0.95rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar - Mobile */
    .navbar {
        padding: 8px 0;
        min-height: 55px;
    }

    .navbar-logo {
        height: 30px;
        max-width: 60px;
    }

    .navbar-brand {
        font-size: 14px;
    }

    .navbar-toggler {
        padding: 4px 6px;
        font-size: 1rem;
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }

    .search-icon-navbar {
        font-size: 1.1rem !important;
        padding: 6px 10px;
        margin-right: 10px !important;
    }

    .btn-cart {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .badge-cart {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    /* Hero Section - Mobile */
    .hero-section {
        min-height: 50vh;
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .btn-custom, .btn-primary {
        padding: 12px 25px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    /* Section Titles - Mobile */
    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding: 15px 25px;
        border-width: 3px;
        border-radius: 16px;
        box-shadow: 
            inset 0 0 0 2px rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            0 0 0 7px rgba(255, 255, 255, 0.2),
            0 6px 24px rgba(0, 0, 0, 0.1);
    }
    
    .product-detail-title,
    .story-title {
        padding: 15px 25px;
        border-width: 3px;
        border-radius: 16px;
        box-shadow: 
            inset 0 0 0 2px rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            0 0 0 7px rgba(255, 255, 255, 0.2),
            0 6px 24px rgba(0, 0, 0, 0.1);
    }

    /* Product Grid - Mobile */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .product-img-wrapper {
        aspect-ratio: 4 / 5;
    }

    .product-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .product-category {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 1rem;
        font-weight: 700;
        color: #C5A059 !important;
    }

    .product-price-old {
        font-size: 0.85rem;
    }

    .product-price.promo-price {
        font-size: 1rem;
        font-weight: 700;
        color: #C5A059 !important;
    }
    
    /* Category Cards - Mobile */
    .category-card {
        height: 220px;
        margin-bottom: 20px;
    }

    .category-overlay {
        padding: 20px;
    }

    .category-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .category-overlay p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .category-btn-wrapper {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .btn-category {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    /* Product Detail Page - Mobile */
    .product-detail-image-wrapper {
        min-height: 280px;
        margin-bottom: 25px;
    }

    .product-detail-content {
        padding: 15px 0;
    }

    .product-detail-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .product-detail-category {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .product-detail-price-wrapper {
        margin-bottom: 15px;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .product-detail-price-old {
        font-size: 1.1rem;
    }

    .product-detail-stock {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .product-detail-quantity-wrapper {
        margin-bottom: 20px;
    }

    .quantity-label {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .quantity-selector {
        width: 100%;
        max-width: 200px;
    }

    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .quantity-input {
        font-size: 1rem;
        width: 60px;
    }

    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }

    .product-detail-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Cart Page - Mobile */
    .table-responsive {
        font-size: 0.85rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 20px;
    border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        background: var(--bg-soft);
    }

    .table tbody td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
    }

    .table tbody td::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        float: left;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: #666;
    }

    .table tbody td:first-child {
        text-align: left;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .table tbody td .d-flex {
        justify-content: flex-start;
    }

    .table tbody td img {
        width: 50px !important;
        height: 50px !important;
    }

    .cart-summary {
        margin-top: 30px;
    }

    /* Forms - Mobile */
    .card {
        margin-bottom: 20px;
    }

    .card-header {
        padding: 15px !important;
        font-size: 1rem;
    }

    .card-body {
        padding: 20px !important;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    textarea.form-control {
        min-height: 100px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Contact Page - Mobile */
    .social-icons {
        font-size: 1.8rem !important;
    }

    .social-icons a {
        margin-right: 15px !important;
    }

    /* Footer - Mobile */
    footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    footer .row > div {
        margin-bottom: 30px;
    }

    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    footer p,
    footer li {
        font-size: 0.85rem;
    }

    /* Buttons - Mobile */
    .btn-view-all {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .btn-outline-dark,
    .btn-outline-danger {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    /* Story Section - Mobile */
    .story-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .story-text {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    /* Command Page - Small Mobile */
    .card-header h5 {
        font-size: 1rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 8px 4px;
    }

    /* Confirmation Page - Small Mobile */
    .card.mx-auto {
        margin: 15px !important;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .fs-4 {
        font-size: 1.2rem !important;
    }

    /* Buttons - Small Mobile */
    .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Container adjustments - Small Mobile */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .container-fluid.px-5 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Product Grid - Small Mobile */
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Cart Summary - Small Mobile */
    .cart-summary .card-body {
        padding: 15px !important;
    }

    /* Form inputs - Small Mobile */
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    /* Wave Payment Button - Small Mobile */
    #wave_payment_btn_confirmation {
        font-size: 14px !important;
        padding: 14px 18px !important;
    }

    #wave_payment_btn_confirmation img {
        width: 40px !important;
        height: 42px !important;
        margin-right: 8px !important;
    }
}

/* Extra Small Mobile (max-width: 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
        padding: 12px 20px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .btn-custom {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .navbar-brand {
        font-size: 12px;
    }

    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 576px) {
    /* Navbar - Small Mobile */
    .navbar {
        padding: 6px 0;
        min-height: 50px;
    }

    .navbar-logo {
        height: 28px;
        max-width: 55px;
    }

    .navbar-brand {
        font-size: 13px;
        margin-right: 10px !important;
    }

    .navbar-brand-aya,
    .navbar-brand-crochet {
        font-size: 13px;
    }

    .search-icon-navbar {
        font-size: 1rem !important;
        padding: 5px 8px;
        margin-right: 8px !important;
    }

    .btn-cart {
        font-size: 0.95rem;
        padding: 5px 8px;
    }

    /* Hero Section - Small Mobile */
    .hero-section {
        min-height: 45vh;
        padding: 30px 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .btn-custom, .btn-primary {
        padding: 10px 20px;
        font-size: 0.75rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Section Titles - Small Mobile */
    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding: 12px 20px;
        border-width: 3px;
        border-radius: 14px;
        box-shadow: 
            inset 0 0 0 2px rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            0 0 0 7px rgba(255, 255, 255, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .product-detail-title,
    .story-title {
        padding: 12px 20px;
        border-width: 3px;
        border-radius: 14px;
        box-shadow: 
            inset 0 0 0 2px rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            0 0 0 7px rgba(255, 255, 255, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Product Cards - Small Mobile */
    .product-card {
        margin-bottom: 15px;
    }

    .product-img-wrapper {
        aspect-ratio: 4 / 5;
    }
    
    .product-title {
        font-size: 1rem;
    }

    .product-category {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }

    .product-price-old {
        font-size: 0.8rem;
    }

    /* Category Cards - Small Mobile */
    .category-card {
        height: 200px;
    }

    .category-overlay h3 {
        font-size: 1.3rem;
    }

    .category-overlay p {
        font-size: 0.8rem;
    }

    .category-btn-wrapper {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Product Detail - Small Mobile */
    .product-detail-image-wrapper {
        min-height: 250px;
    }

    .product-detail-title {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    .quantity-selector {
        max-width: 180px;
    }

    /* Forms - Small Mobile */
    .card-body {
        padding: 15px !important;
    }

    .form-control {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    /* Footer - Small Mobile */
    footer {
        padding: 30px 0 15px;
    }

    footer h5 {
        font-size: 1rem;
    }

    footer p,
    footer li {
        font-size: 0.8rem;
    }

    /* Buttons - Small Mobile */
    .btn-view-all {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* Story Section - Small Mobile */
    .our-story-section {
        padding: 40px 0;
    }

    .story-image-wrapper {
        min-height: 220px;
        margin-bottom: 25px;
    }

    .story-image {
        min-height: 220px;
    }

    .story-title {
        font-size: 1.5rem;
    }

    .story-text {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (max-width: 400px) */
@media (max-width: 400px) {
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
        padding: 10px 15px;
        border-width: 2px;
        border-radius: 12px;
        box-shadow: 
            inset 0 0 0 1px rgba(255, 255, 255, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.3),
            0 0 0 6px rgba(255, 255, 255, 0.2),
            0 3px 16px rgba(0, 0, 0, 0.1);
    }
    
    .product-detail-title,
    .story-title {
        padding: 10px 15px;
        border-width: 2px;
        border-radius: 12px;
        box-shadow: 
            inset 0 0 0 1px rgba(255, 255, 255, 0.4),
            0 0 0 3px rgba(255, 255, 255, 0.3),
            0 0 0 6px rgba(255, 255, 255, 0.2),
            0 3px 16px rgba(0, 0, 0, 0.1);
    }

    .product-card {
        margin-bottom: 12px;
    }

    .category-card {
        height: 180px;
    }

    .btn-custom {
        font-size: 0.7rem;
        padding: 8px 16px;
    }

    /* Navbar ultra-small */
    .navbar-logo {
        height: 25px;
        max-width: 50px;
    }

    .navbar-brand {
        font-size: 12px;
    }

    .search-icon-navbar {
        font-size: 0.9rem !important;
        padding: 4px 6px;
    }

    .btn-cart {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile (max-width: 768px and orientation: landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 40vh;
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .navbar {
        padding: 6px 0;
        min-height: 50px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn-custom,
    .btn-primary,
    .search-bar-container,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .product-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Styles pour la page de commande - Padding et espacement */
.card {
    margin-bottom: 20px;
    background-color: var(--bg-soft);
    border: none;
}

.card-header {
    padding: 20px !important;
    color: var(--accent);
    background-color: var(--bg-main);
}

/* Card header avec fond sombre - texte en blanc */
.card-header.bg-dark,
.card-header.bg-dark h5,
.card-header.bg-dark h4,
.card-header.bg-dark h3,
.card-header.bg-dark h2,
.card-header.bg-dark h1 {
    color: #ffffff !important;
}

.card-body {
    padding: 30px !important;
    background-color: var(--bg-soft);
}

/* Tableau dans la page de commande */
.table {
    margin-bottom: 20px;
}

.table thead th {
    padding: 15px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.table tbody td {
    padding: 15px 10px;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

/* Formulaire de commande */
.form-label {
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--text-header);
}

.form-control,
.form-select {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: var(--border-radius-btn);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.25);
    outline: none;
}

.mb-3 {
    margin-bottom: 25px !important;
}

/* Espacement pour les lignes de récapitulatif */
.d-flex.justify-content-between {
    padding: 8px 0;
}

hr {
    margin: 20px 0;
    opacity: 0.3;
}

/* Total — accent bleu acier (logo) */
#total-pay {
    color: var(--accent-secondary) !important;
    font-weight: 700 !important;
}

/* Mettre en gras les prix dans les tableaux de commande et panier */
.table tbody td:nth-child(2),
.table tbody td:nth-child(4),
#subtotal,
#delivery-cost {
    font-weight: 700 !important;
}

/* Mettre en gras tous les montants dans les pages panier et commande */
.panier .table td,
.commande .table td {
    font-weight: 500;
}

.panier .table td:last-child,
.commande .table td:last-child {
    font-weight: 700 !important;
}

/* Section Notre Histoire */
.our-story-section {
    background-color: var(--bg-main);
    padding: 80px 0;
}

.story-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 400px;
    background-color: var(--bg-soft);
}

.story-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.story-image-wrapper:hover .story-image {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.story-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    
    /* Double bordure épaisse et transparente avec effet vitre de glace */
    padding: 20px 40px;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 255, 255, 0.4),
        0 0 0 5px rgba(255, 255, 255, 0.3),
        0 0 0 9px rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    display: inline-block;
}

/* Texte en noir pour les titres avec cadres (sauf page d'accueil) */
.story-title {
    color: #4A4038 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.story-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.85;
}

.story-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 30px;
}

/* Responsive pour Notre Histoire */
@media (max-width: 991px) {
    .story-image-wrapper {
        min-height: 300px;
        margin-bottom: 40px;
    }
    
    .story-image {
        min-height: 300px;
    }
    
    .story-title {
        font-size: 2.5rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .our-story-section {
        padding: 60px 0;
    }
    
    .story-image-wrapper {
        min-height: 250px;
    }
    
    .story-image {
        min-height: 250px;
    }
    
    .story-title {
        font-size: 2rem;
    }
}

/* Page de détail produit */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Image du produit en détail */
.product-detail-image-wrapper {
    position: relative;
    background-color: var(--bg-soft);
    border-radius: 8px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-detail-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

.product-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    width: 76px;
    height: 76px;
    background: var(--bg-soft);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.product-gallery-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.45);
}

.product-gallery-thumb:hover {
    border-color: rgba(var(--steel-rgb), 0.65);
}

.product-gallery-thumb:focus {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

.product-gallery-thumb:focus:not(:focus-visible) {
    outline: none;
}

/* Contenu du détail produit */
.product-detail-content {
    padding: 20px 0;
}

.product-detail-description {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--primary);
    opacity: 0.92;
    max-width: 100%;
}

.product-detail-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    
    /* Double bordure épaisse et transparente avec effet vitre de glace */
    padding: 20px 40px;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 255, 255, 0.4),
        0 0 0 5px rgba(255, 255, 255, 0.3),
        0 0 0 9px rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    display: inline-block;
}

/* Texte en noir pour les titres avec cadres */
.product-detail-title {
    color: #4A4038 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.product-detail-category {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #6b6b6b;
    margin-bottom: 25px;
    text-transform: capitalize;
}

/* Prix en détail */
.product-detail-price-wrapper {
    margin-bottom: 25px;
}

.product-detail-price {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
}

.product-detail-price.promo-price {
    color: var(--accent);
    font-weight: 700;
}

.product-detail-price-old {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: #9b9b9b;
    text-decoration: line-through;
    margin-right: 15px;
    font-weight: 400;
}

/* Stock */
.product-detail-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 12px 15px;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.product-detail-stock i {
    color: var(--accent);
    font-size: 1.2rem;
}

.product-detail-stock span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

/* Sélecteur de quantité */
.product-detail-quantity-wrapper {
    margin-bottom: 30px;
}

.quantity-label {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.quantity-btn {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:last-of-type {
    border-radius: 0 6px 6px 0;
}

.quantity-btn:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.quantity-input {
    width: 70px;
    height: 45px;
    text-align: center;
    border: 2px solid var(--primary);
    border-left: none;
    border-right: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Bouton Ajouter au panier + Acheter maintenant */
.product-detail-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-add-to-cart,
.btn-buy-now {
    background-color: var(--accent);
    color: #ffffff;
    border: 2px solid var(--accent);
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
    width: 100%;
}

.btn-add-to-cart:hover,
.btn-buy-now:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 83, 77, 0.3);
}

/* Animation au clic - changement de couleur */
.btn-add-to-cart:active,
.btn-buy-now:active {
    background-color: #B88989 !important;
    border-color: #B88989 !important;
    color: #ffffff !important;
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(205, 75, 122, 0.4);
    animation: cartClickAnimation 0.4s ease-out;
}

/* Animation keyframes pour l'effet de clic */
@keyframes cartClickAnimation {
    0% {
        background-color: var(--accent);
        transform: scale(1);
    }
    50% {
        background-color: var(--accent-secondary);
        transform: scale(0.95);
    }
    100% {
        background-color: var(--accent-secondary);
        transform: scale(0.98);
    }
}

.btn-add-to-cart i,
.btn-buy-now i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-add-to-cart:active i,
.btn-buy-now:active i {
    transform: scale(1.2) rotate(10deg);
}

/* Section Produits similaires */
.similar-products-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.similar-products-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

/* Boutons fixes en mobile */
@media (max-width: 768px) {
    /* Bouton Ajouter au panier - page produit */
    .product-detail-actions {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background-color: #fff !important;
        padding: 15px !important;
        border: 3px solid transparent !important;
        border-radius: 15px 15px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        margin: 0 !important;
    }
    
    .product-detail-actions .btn-add-to-cart,
    .product-detail-actions .btn-buy-now {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 15px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .product-detail-actions {
        gap: 8px !important;
        padding: 12px 15px 18px !important;
    }
    
    /* Bouton Passer la commande - page panier */
    .card-body .d-grid a.btn-custom[href*="commande.php"],
    .card-body .d-grid .btn-custom {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
        border: 3px solid transparent !important;
        border-radius: 15px 15px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Bouton Confirmer la commande - page commande (pas les filtres boutique) */
    .card form:not(.shop-filters) button.btn-custom[type="submit"],
    form:not(.shop-filters) button.btn-custom[type="submit"] {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
        border: 3px solid transparent !important;
        border-radius: 15px 15px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Réserve bas d'écran : uniquement pages avec bouton fixe (classe body page-mobile-fixed-cta) */
    body.page-mobile-fixed-cta {
        padding-bottom: 80px !important;
    }
    
    /* Padding supplémentaire pour la page produit (deux boutons fixes) */
    .product-detail-content {
        padding-bottom: 155px !important;
    }
    
    /* Cartes (panier, contact, commande) — exclut les vignettes .product-card */
    body.page-mobile-fixed-cta .card-body {
        padding-bottom: 100px !important;
    }
    body.page-mobile-fixed-cta .product-card .card-body {
        padding: 12px 15px 4px 15px !important;
    }
    
    /* Formulaires avec bouton fixe (commande, contact, etc.) */
    body.page-mobile-fixed-cta .card form:not(.shop-filters),
    body.page-mobile-fixed-cta form:not(.shop-filters) {
        padding-bottom: 80px !important;
    }
}

/* Responsive pour la page produit */
@media (max-width: 991px) {
    .product-detail-title {
        font-size: 2rem;
    }
    
    .product-detail-price {
        font-size: 1.75rem;
    }
    
    .product-detail-image-wrapper {
        min-height: 400px;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .product-detail-title {
        font-size: 1.75rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
    
    .product-detail-price-old {
        font-size: 1.2rem;
    }
    
    .product-detail-image-wrapper {
        min-height: 300px;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .similar-products-title {
        font-size: 2rem;
    }
}

/* Barre de recherche */
/* Icône de recherche - Utiliser les mêmes styles que .btn-cart */
.search-icon-btn {
    color: var(--accent) !important;
    font-size: 1.3rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 50%;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(var(--accent-rgb), 0.3);
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.search-icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-icon-btn:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.search-icon-btn:hover {
    color: var(--accent) !important;
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(var(--accent-rgb), 0.4);
}

/* Icône recherche — palette logo (navbar claire) */
.search-icon-btn i,
.search-icon-btn .fa-search,
.search-icon-btn .fas,
.search-icon-btn .fas.fa-search,
a.search-icon-btn i,
a.search-icon-btn .fa-search,
a.search-icon-btn .fas,
a.search-icon-btn .fas.fa-search,
#searchIconBtn i,
#searchIconBtn .fa-search,
#searchIconBtn .fas,
#searchIconBtn .fas.fa-search,
#searchIconBtn.search-icon-navbar i,
#searchIconBtn.search-icon-navbar .fa-search,
#searchIconBtn.search-icon-navbar .fas {
    color: var(--accent-secondary) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-size: 1.3rem !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

.search-icon-btn:hover i,
.search-icon-btn:hover .fa-search,
.search-icon-btn:hover .fas,
.search-icon-btn:hover .fas.fa-search,
a.search-icon-btn:hover i,
a.search-icon-btn:hover .fa-search,
a.search-icon-btn:hover .fas,
a.search-icon-btn:hover .fas.fa-search,
#searchIconBtn:hover i,
#searchIconBtn:hover .fa-search,
#searchIconBtn:hover .fas,
.search-icon-navbar:hover i,
.search-icon-navbar:hover .fa-search,
.search-icon-navbar:hover .fas {
    color: var(--accent) !important;
}

/* Override Bootstrap text-reset - Très spécifique */
a.text-reset.search-icon-btn,
a.text-reset.search-icon-btn i,
a.text-reset.search-icon-btn .fa-search,
a.text-reset.search-icon-btn .fas,
a.text-reset.search-icon-btn .fas.fa-search,
#searchIconBtn,
#searchIconBtn.text-reset,
#searchIconBtn.text-reset i,
#searchIconBtn.search-icon-navbar,
#searchIconBtn.search-icon-navbar i {
    color: var(--accent-secondary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* S'assurer que Font Awesome s'affiche correctement */
.search-icon-btn .fas::before,
.search-icon-btn .fa-search::before,
#searchIconBtn .fas::before,
#searchIconBtn .fa-search::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.search-icon-btn:hover {
    color: var(--accent) !important;
    transform: scale(1.1);
}

.search-icon-btn:hover i {
    color: var(--accent) !important;
}

.search-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(74, 64, 56, 0.97);
    z-index: 9999;
    padding: 12px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-bar-container.active {
    transform: translateY(0);
}

.search-bar-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: rgba(253, 248, 245, 0.95);
    color: var(--primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-soft);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.search-input::placeholder {
    color: #9b9b9b;
}

.search-close-btn {
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    transform: rotate(90deg);
}

.search-results {
    max-width: 800px;
    margin: 15px auto 0;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--bg-soft);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-results-list {
    padding: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--bg-soft);
    transform: translateX(5px);
}

.search-result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-soft);
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.search-result-category {
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.search-result-price {
    margin: 0;
    font-weight: 700;
}

.search-result-price .old-price {
    color: #9b9b9b;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 0.9rem;
    font-weight: 400;
}

.search-result-price .current-price {
    color: var(--accent);
    font-size: 1.1rem;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 30px;
    text-align: center;
    color: var(--primary);
    font-family: var(--font-body);
}

.search-loading {
    color: var(--accent);
}

.search-no-results {
    color: #6b6b6b;
}

.search-error {
    color: #d32f2f;
}

/* Scrollbar pour les résultats de recherche */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive pour la barre de recherche */
@media (max-width: 768px) {
    .search-bar-container {
        padding: 15px 0;
    }

    .search-bar-wrapper {
        padding: 0 15px;
        flex-direction: column;
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 12px 15px;
        width: 100%;
        margin-bottom: 10px;
    }

    .search-close-btn {
        align-self: flex-end;
        margin-top: 10px;
    }
    
    .search-results {
        max-height: 60vh;
        padding: 10px 15px;
    }
    
    .search-result-item {
        padding: 10px;
        flex-direction: column;
    }
    
    .search-result-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-result-info {
        text-align: center;
        width: 100%;
    }
    
    .search-result-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .search-result-category {
        font-size: 0.8rem;
    }

    .search-result-price {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .search-bar-wrapper {
        padding: 0 10px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .search-result-item {
        padding: 8px;
    }
    
    .search-result-image {
        width: 60px;
        height: 60px;
    }
    
    .search-result-title {
        font-size: 0.85rem;
    }

    .search-result-category {
        font-size: 0.75rem;
    }

    .search-result-price {
        font-size: 0.85rem;
    }
}

/* Notifications Toast */
.toast-container {
    margin-top: 80px; /* Espace sous la navbar */
}

.toast {
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-family: var(--font-body);
}

.toast.show {
    opacity: 1;
}

.toast-header {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.05rem;
}

.toast-body {
    padding: 16px 20px;
    font-size: 1rem;
}

.toast-body p {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.toast.bg-success {
    background-color: #28a745 !important;
    border-left: 4px solid #1e7e34 !important;
}

.toast.bg-success .toast-header {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.toast.bg-danger {
    background-color: #dc3545 !important;
    border-left: 4px solid #c82333 !important;
}

.toast .btn-close {
    opacity: 0.8;
}

.toast .btn-close:hover {
    opacity: 1;
}

.toast .btn-light {
    background-color: #ffffff;
    color: #28a745;
    border: none;
    font-weight: 500;
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.toast .btn-light:hover {
    background-color: #f8f9fa;
    color: #1e7e34;
    transform: translateY(-1px);
}

.toast .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 500;
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.toast .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

.toast .d-flex.gap-2 {
    gap: 12px;
}

/* Animation d'entrée pour les toasts */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.show {
    animation: slideInRight 0.3s ease-out;
}

/* Responsive pour les toasts */
@media (max-width: 576px) {
    .toast-container {
        left: 10px !important;
        right: 10px !important;
        padding: 10px !important;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
}

/* Réduire l'espace en haut pour toutes les pages avec pt-2 pb-5 mt-0 */
.container.pt-2.pb-5.mt-0 {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

.container.pt-2.pb-5.mt-0 .section-title {
    margin-top: 0;
    margin-bottom: 25px;
}

.container.pt-2.pb-5.mt-0 .section-title h2 {
    margin-bottom: 15px;
}

/* Sous-titre sous le titre encadré (panier, etc.) */
.container.pt-2.pb-5.mt-0 .section-title > p {
    font-family: var(--font-body);
    color: #6b7a8c;
    font-size: 1rem;
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.55;
    text-align: center;
}

/* Exception pour la section "Nos Univers" sur la page d'accueil */
body.home-page section.container.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

body.home-page section.container.py-5 .section-title {
    margin-bottom: 60px;
}

body.home-page section.container.py-5 .section-title h2 {
    margin-bottom: 60px;
}

/* Assurer que les champs de code promo sont bien éditables */
#promoCode,
#promoCodePanier,
input#promoCode,
input#promoCodePanier,
.form-control#promoCode,
.form-control#promoCodePanier {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    background-color: #fff !important;
    color: #000 !important;
    cursor: text !important;
    -webkit-touch-callout: default !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
}

#promoCode:focus,
#promoCodePanier:focus,
input#promoCode:focus,
input#promoCodePanier:focus,
.form-control#promoCode:focus,
.form-control#promoCodePanier:focus {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.25) !important;
    background-color: #fff !important;
}

/* Fix pour la modal de code promo - s'assurer qu'elle est interactive */
.modal#promoCodeModal {
    z-index: 1055 !important;
}

.modal#promoCodeModal.show {
    display: block !important;
}

.modal#promoCodeModal .modal-dialog {
    z-index: 1056 !important;
    pointer-events: none !important;
}

.modal#promoCodeModal .modal-content {
    z-index: 1057 !important;
    pointer-events: auto !important;
    position: relative;
}

.modal#promoCodeModal .modal-header,
.modal#promoCodeModal .modal-body,
.modal#promoCodeModal form,
.modal#promoCodeModal input,
.modal#promoCodeModal button,
.modal#promoCodeModal .btn-close,
.modal#promoCodeModal label {
    pointer-events: auto !important;
    position: relative;
}

.modal#promoCodeModal .btn-close {
    cursor: pointer !important;
    z-index: 1058 !important;
}

/* Le backdrop doit être en dessous de la modal et permettre les clics sur la modal */
.modal-backdrop {
    z-index: 1050 !important;
    pointer-events: auto !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

/* S'assurer qu'aucun autre élément ne bloque */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Empêcher les overlays de bloquer */
.search-bar-container {
    z-index: 1030 !important;
}

.whatsapp-float {
    z-index: 1020 !important;
}

/* Boutique Laine / Matériel / Création : titre sans cadre blanc + barre de filtres */
body.shop-category-lmc .container.pt-2.pb-5.mt-0 .section-title h2 {
    padding: 0 0 12px;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    animation: none;
    color: var(--primary) !important;
    text-shadow: none;
}

body.shop-category-lmc .container.pt-2.pb-5.mt-0 .section-title h2::after {
    content: '';
    display: block !important;
    width: 56px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 2px;
}

.shop-filters {
    background: var(--bg-soft) !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.shop-filters .card-body,
.shop-filters .shop-filters-inner {
    background: transparent;
}

.shop-filters .shop-filters-actions {
    max-width: 280px;
}

.shop-filters-label {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.shop-filters .form-select,
.shop-filters .form-control {
    border-color: rgba(92, 83, 77, 0.2);
    background-color: #fff;
    color: var(--primary);
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    min-height: 0;
    line-height: 1.35;
}

.shop-filters .form-select-sm {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    font-size: 0.8125rem;
}

.shop-filters .form-select:focus,
.shop-filters .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.2);
}

.shop-filters .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Barre mobile : burger (gauche) | logo + nom (centre) | icônes (droite)
   Important : ne pas forcer display en dehors du breakpoint < lg, sinon
   cela écrase .d-lg-none et la barre mobile reste visible sur desktop. */
@media (max-width: 991.98px) {
    .navbar-mobile-top {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 0.35rem;
    }

    /* Hauteur auto : la règle globale height:65px empêchait un alignement propre */
    .navbar {
        height: auto !important;
        min-height: 56px;
    }
}

@media (min-width: 992px) {
    .navbar-mobile-top {
        display: none !important;
    }
}

.navbar-mobile-cell-brand {
    overflow: hidden;
}

.navbar-brand-mobile {
    font-size: clamp(0.7rem, 3.2vw, 0.95rem);
    line-height: 1.15;
    padding: 0.2rem 0 !important;
}

.navbar-brand-mobile .navbar-brand-aya,
.navbar-brand-mobile .navbar-brand-crochet {
    font-size: inherit;
}

.navbar-logo-mobile {
    height: 34px !important;
    width: auto !important;
    max-width: 42px !important;
    object-fit: contain;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

@media (min-width: 400px) {
    .navbar-logo-mobile {
        height: 38px !important;
        max-width: 48px !important;
    }
}

/* Menu mobile : panneau latéral (Offcanvas) type drawer */
.mobile-nav-drawer {
    --bs-offcanvas-width: min(88vw, 320px);
    background: #fff !important;
    border-right: 1px solid rgba(var(--accent-rgb), 0.25) !important;
    z-index: 1060 !important;
}

.mobile-nav-drawer.show {
    visibility: visible;
}

.mobile-nav-drawer-header {
    padding: 1rem 1rem 0.5rem;
    border-bottom: none !important;
}

.mobile-nav-drawer-close {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.35) !important;
    color: var(--primary) !important;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-nav-drawer-close:hover {
    background: rgba(var(--accent-rgb), 0.55) !important;
    color: var(--primary) !important;
}

.mobile-nav-drawer-close .fa-times {
    font-size: 1rem;
}

.mobile-nav-drawer-body {
    padding: 0.5rem 0 1.5rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 4.5rem);
}

.mobile-nav-drawer-list .mobile-nav-drawer-item {
    display: block !important;
    width: 100% !important;
}

.mobile-nav-drawer-item {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.mobile-nav-drawer-link.nav-link {
    color: #8B4A5C !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    margin: 0 !important;
    text-shadow: none !important;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.mobile-nav-drawer-link.nav-link:hover {
    color: var(--accent) !important;
    transform: none !important;
}

.mobile-nav-drawer .mobile-nav-drawer-link::before,
.mobile-nav-drawer .mobile-nav-drawer-link::after {
    display: none !important;
}

/* ——— Page commande : modes de paiement (vitrine) ——— */
body.page-checkout {
    background-color: #f2f2f2;
}

.checkout-payment-separator {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 1.5rem 0;
    opacity: 1;
}

.checkout-payment-heading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.checkout-payment-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.checkout-payment-card {
    display: block;
    cursor: pointer;
    margin-bottom: 0;
}

.checkout-payment-card-box {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0;
    padding: 0.3rem 0.55rem;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid transparent;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Icône / logos à gauche, centrés sur la hauteur du texte */
.checkout-payment-card-box > .checkout-payment-wave-mark,
.checkout-payment-card-box > .checkout-payment-om-badge,
.checkout-payment-card-box > .checkout-payment-card-logos,
.checkout-payment-card-box > .checkout-payment-cash-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}

.checkout-payment-card-box > .checkout-payment-card-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    padding: 0;
    line-height: 1.15;
}

.checkout-payment-card-box > .checkout-payment-card-sub {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding: 0;
    line-height: 1.15;
}

/* Mode sans sous-titre (ex. paiement personnalisé) : titre centré sur la ligne */
.checkout-payment-card-box > .checkout-payment-card-title:nth-child(2):last-child {
    grid-row: 1 / 3;
    align-self: center;
}

/* Bandeau Wave sous la ligne icône + texte */
.checkout-payment-card-box > .checkout-payment-wave-hint {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0.3rem;
}

.checkout-payment-card:hover .checkout-payment-card-box {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.checkout-payment-card:has(.checkout-payment-radio:checked) .checkout-payment-card-box {
    border-color: #2196f3;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.15);
}

.checkout-payment-card-logos {
    display: flex;
    gap: 0.5rem;
    font-size: 1.15rem;
    color: #1a1a1a;
    line-height: 1;
}

.checkout-payment-card-title {
    font-weight: 700;
    font-size: 0.78rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.checkout-payment-card-sub {
    font-size: 0.65rem;
    color: #666;
    line-height: 1.15;
}

.checkout-payment-om-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff7900 0%, #e65c00 100%);
    color: #fff;
    font-size: 0.85rem;
}

.checkout-payment-om-badge--logo {
    width: auto;
    max-width: 76px;
    height: 28px;
    padding: 1px 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout-payment-om-badge--logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.checkout-om-inline-logo {
    width: 42px;
    height: 28px;
    object-fit: contain;
    margin-right: 0.45rem;
    flex-shrink: 0;
}

.confirmation-om-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.confirmation-om-logo--inline {
    height: 24px;
    max-width: 100px;
}

.checkout-payment-wave-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1b6fd6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkout-payment-wave-mark img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.checkout-payment-wave-fallback {
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    font-family: var(--font-body);
}

.checkout-payment-wave-hint {
    display: none;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    margin-top: 0;
    padding: 0.35rem 0.45rem;
    background: #d32f2f;
    color: #fff;
    font-size: 0.62rem;
    line-height: 1.25;
    border-radius: 5px;
    font-weight: 500;
}

.checkout-payment-card:has(.checkout-payment-radio:checked) .checkout-payment-wave-hint {
    display: flex;
}

.checkout-payment-cash-icon {
    font-size: 1rem;
    color: #5c534d;
    line-height: 1;
}

/* Mobile : cartes paiement plus hautes (zone tactile confortable) */
@media (max-width: 767.98px) {
    body.page-checkout .checkout-payment-card.mb-2 {
        margin-bottom: 0.65rem !important;
    }

    body.page-checkout .checkout-payment-card-box {
        padding: 0.7rem 0.85rem;
        min-height: 3.35rem;
        row-gap: 0.15rem;
        column-gap: 0.65rem;
    }

    body.page-checkout .checkout-payment-card-title {
        font-size: 0.84rem;
        line-height: 1.25;
    }

    body.page-checkout .checkout-payment-card-sub {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    body.page-checkout .checkout-payment-wave-mark {
        width: 34px;
        height: 34px;
    }

    body.page-checkout .checkout-payment-om-badge:not(.checkout-payment-om-badge--logo) {
        width: 34px;
        height: 34px;
    }

    body.page-checkout .checkout-payment-om-badge--logo {
        max-width: 92px;
        height: 34px;
    }

    body.page-checkout .checkout-payment-card-logos {
        font-size: 1.28rem;
    }

    body.page-checkout .checkout-payment-cash-icon {
        font-size: 1.15rem;
    }

    body.page-checkout .checkout-payment-wave-fallback {
        font-size: 0.78rem;
    }
}

/* QR Wave — page confirmation */
.wave-qr-block {
    border-top: 1px solid rgba(var(--steel-rgb), 0.35);
}

.wave-qr-block #wave-qr-code img,
.wave-qr-block #wave-qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}

