﻿html {
    scroll-behavior: auto !important;
}

/* Google Fonts chargés via <link> dans head-css.php - NE PAS utiliser @import ici */

:root {
    /* Colors */
    /* Design System: Botanical Florist */
    --primary: #5C7D5C;
    /* Sage Green */
    --primary-light: #A9BFA9;
    /* Soft Green */
    --primary-dark: #3E5F3E;
    /* Darker Sage for better contrast */
    --accent: #E7C4C4;
    /* Floral Pink */
    --surface: #F7F6F3;
    /* Ivory */
    --beige: #E9E4DC;
    /* Light Beige */
    --text-dark: #2F3A2F;
    /* Darker text */
    --text-muted: #6B786B;
    /* Muted text */
    --white: #ffffff;
    --border: rgba(92, 125, 92, 0.15);

    /* Aliases for consistency across older blocks */
    --sage-green: var(--primary);
    --sage-dark: var(--primary-dark);
    --sage-light: var(--primary-light);
    --beige-light: var(--beige);
    --floral-pink: var(--accent);
    --ivory: var(--surface);

    /* Global Overrides */
    --text: var(--text-dark);
    --text-light: var(--text-muted);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50rem;

    /* Shadows & Radius (Botanical style) */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(92, 125, 92, 0.1);
    --radius-pill: 999px;
    --radius-card: 30px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Lenis Smooth Scroll Recommended CSS */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--surface);
    margin: 0;
}

/* Page Loading State (AJAX) */
body.loading-page {
    cursor: wait !important;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Thin progress bar at the top */
    background: rgba(92, 125, 92, 0.1);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

#page-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: loaderMove 1.5s infinite ease-in-out;
}

@keyframes loaderMove {
    from {
        left: -40%;
    }

    to {
        left: 100%;
    }
}

body.loading-page #page-loader {
    display: block;
}

body.loading-page #main-content {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(92, 125, 92, 0.2);
    z-index: 10000;
    display: none;
}

#page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: loaderMove 2s infinite linear;
}


::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f8f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5c7d5c, #7dad7d);
    border-radius: 6px;
    border: 2px solid #f1f8f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4a6b4a, #6a9b6a);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-xl);
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 500;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   NAVIGATION MODERNE - Sessile Minimaliste
   ========================================== */
.navbar-modern {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: transform 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* Style pour le logo flottant (Agrandi sans toucher à la navbar) */
.navbar-brand img {
    height: 140px;
    /* Taille agrandie */
    width: auto;
    /* Proportions gardées */
    margin: -25px 0;
    /* Débordement élégant haut/bas */
    position: relative;
    /* Pour passer au-dessus du contenu */
    z-index: 100;
    /* Valeur raisonnable pour éviter conflit avec backdrop-filter */
    transition: transform 0.3s ease;
}

/* Effet de zoom au survol */
.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand .special-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    color: #5c7d5c;
    text-transform: none;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    transform: none;
}

/* FORCE NAVBAR FONT-WEIGHT 300 - Uniformisation complète */
/* Règles ultra-spécifiques pour surcharger Bootstrap */
nav.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link,
.navbar-modern .navbar-nav .nav-link,
.navbar-nav .nav-link,
.nav-link,
a.nav-link,
.navbar-modern .nav-link,
li.nav-item a.nav-link {
    font-weight: 300 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0;
    transition: all var(--transition-fast);
    color: var(--text-light) !important;
    position: relative;
    text-transform: lowercase;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    width: auto;
    height: 1px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: scaleX(0);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.nav-link:hover,
a.nav-link:hover {
    color: var(--text) !important;
    background: transparent;
    font-weight: 300 !important;
}

/* Navigation Active State - Specificity Boosted */
body .navbar-modern .navbar-nav .nav-link.active,
body .navbar-modern .nav-link.active {
    background: transparent;
    color: black !important;
    font-weight: 300 !important;
}

body .navbar-modern .nav-link.active i {
    color: #5bba5b !important;
}

.nav-link.active::after {
    transform: scaleX(1);
    display: block;
    background: #5bba5b;
    /* Soulignement Vert */
}

/* Styles pour les menus déroulants (Accordéon) */
.dropdown-item {
    transition: all 0.2s ease;
    font-weight: 300;
}

body .dropdown-item:hover,
body .dropdown-item:focus {
    color: #5bba5b !important;
    background-color: rgba(91, 186, 91, 0.05);
}

body .dropdown-item i {
    transition: color 0.2s ease;
}

body .dropdown-item:hover i {
    color: #5bba5b !important;
}

/* Supprimer le petit triangle (caret) de Bootstrap pour garder l'animation de soulignement */
.navbar-modern .dropdown-toggle::after {
    display: none !important;
}

/* Badge panier et favoris - Style Utilisateur Spécifique */
.badge-notif {
    position: absolute;
    top: -6px;
    right: -3px;
    background: var(--primary);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: system-ui, sans-serif;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    /* ✅ centrage vertical affiné */
    justify-content: center;
    padding-top: 3px;
    /* ✅ compensation optique */
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    pointer-events: none;
    overflow: hidden;
}

/* Badge Favoris spécifique - Rouge */
.badge-notif.wishlist-badge {
    background: #da3344;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ==========================================
   HERO SECTION - Sessile Minimaliste
   ========================================== */
.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.4)),
        url('../images/products/fleur.webp?v=2') center/cover;
    color: var(--text);
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    animation: none;
    pointer-events: none;
}

@keyframes pulseGradient {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 400;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease;
    text-shadow: none;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 1;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 1s ease;
    font-weight: 400;
    text-shadow: none;
    max-width: 600px;
    color: var(--text-light);
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BUTTONS STYLES - Global Consistency
   ========================================== */
.btn {
    border-radius: var(--radius-pill) !important;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1.5rem;
    height: auto !important;
    min-height: initial !important;
    overflow: hidden;
}

.btn-sm {
    padding: 0.35rem 1rem !important;
    font-size: 0.85rem !important;
    min-height: 32px !important;
}

.btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 1.1rem !important;
}

/* Input groups handling */
.input-group>.btn:first-child {
    border-top-left-radius: var(--radius-pill) !important;
    border-bottom-left-radius: var(--radius-pill) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group>.btn:last-child {
    border-top-right-radius: var(--radius-pill) !important;
    border-bottom-right-radius: var(--radius-pill) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Specific button themes */
.btn-primary-modern {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.btn-primary-modern:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 4px 12px rgba(92, 125, 92, 0.25);
    color: white !important;
}

.btn-secondary-modern {
    background: var(--secondary) !important;
    color: white !important;
    border: none !important;
}

.btn-secondary-modern:hover {
    background: var(--secondary-dark);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.25);
    color: white;
}

.btn-outline-modern {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 500;
    border-radius: var(--radius-pill);
}

.btn-outline-modern:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary);
}

.btn-modern {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    border-radius: var(--radius-pill);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-modern:active {
    transform: translateY(0);
}

/* Icon Buttons (Quick View, etc) */
.btn-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    min-height: initial !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
}

.btn-icon i {
    font-size: 1.2rem !important;
    margin: 0 !important;
    color: inherit !important;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(92, 125, 92, 0.3);
}

.btn-icon.wishlist-btn.text-danger i {
    color: #da3344 !important;
}

.btn-icon.wishlist-btn:hover i {
    color: white !important;
}

/* ==========================================
   CARDS PRODUITS MODERNES - Sessile Minimaliste
   ========================================== */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::before {
    display: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(92, 125, 92, 0.1);
}

.product-card:hover::before {
    display: none;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* Ratio carré */
    background: #f9f9f9;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(92, 125, 92, 0.65);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    text-transform: none;
    letter-spacing: 0;
    pointer-events: none;
}

.product-quick-actions {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
}

.btn-icon i {
    font-size: 1.2rem !important;
    margin: 0 !important;
    color: inherit !important;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(92, 125, 92, 0.3);
}

.btn-icon.wishlist-btn.text-danger i {
    color: #da3344 !important;
}

.btn-icon.wishlist-btn:hover i {
    color: white !important;
}

.product-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================
   CATEGORY CARDS - PREMIUM FLORIST LOOK
   ========================================== */
.category-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #f8f9fa;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.category-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-xl);
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    font-family: 'Poppins', sans-serif;
}

.category-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-link:hover .category-card {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(92, 125, 92, 0.15);
}

.category-link:hover .category-img-container {
    transform: scale(1.1);
}

.category-link:hover .category-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.9) 100%);
}

.category-link:hover .category-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.5rem;
}

.category-badge-explore {
    position: absolute;
    top: var(--space-lg);
    right: -50px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.category-link:hover .category-badge-explore {
    right: var(--space-lg);
    opacity: 1;
    transform: rotate(360deg);
}

.product-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text);
    line-height: 1.4;
    min-height: 3rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.product-old-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: var(--space-sm);
}

/* ==========================================
   SEARCH BAR MODERNE - Style Premium
   ========================================== */
.search-bar-modern {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-modern {
    width: 100%;
    padding: 1.125rem 3.5rem 1.125rem 4rem;
    border: 3px solid transparent;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-modern::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.search-input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(45, 122, 62, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.search-input-modern:focus~.search-icon {
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================
   FILTER SIDEBAR - Style Premium
   ========================================== */
.filter-sidebar {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid var(--border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--space-xs);
}

.filter-option:hover {
    background: linear-gradient(135deg, rgba(45, 122, 62, 0.05), rgba(232, 82, 122, 0.05));
    padding-left: var(--space-lg);
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.filter-option label {
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.filter-option:hover label {
    color: var(--text);
    font-weight: 600;
}

/* ==========================================
   MODAL MODERNE
   ========================================== */
.modal-modern .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-modern .modal-header {
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl);
}

.modal-modern .modal-body {
    padding: var(--space-xl);
}

.modal-modern .modal-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-xl);
}

/* ==========================================
   TOAST NOTIFICATIONS - Style Premium
   ========================================== */
.toast-modern {
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: linear-gradient(135deg, rgba(45, 122, 62, 0.95), rgba(45, 122, 62, 0.9));
    border-left: 5px solid #fff;
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, rgba(232, 82, 122, 0.95), rgba(232, 82, 122, 0.9));
    border-left: 5px solid #fff;
    color: white;
}

.toast-info {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 193, 7, 0.9));
    border-left: 5px solid #fff;
    color: var(--text);
}

/* ==========================================
   LOADING SPINNER
   ========================================== */
.spinner-modern {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   FOOTER MODERNE - Boutique Fleurs
   ========================================== */
.footer-modern {
    background: #0f1a0f;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 40px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white !important;
    text-transform: none;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    width: 100%;
}

.footer-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-modern a.footer-link {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    width: fit-content;
}

.footer-modern a.footer-link:hover {
    color: var(--primary-light) !important;
    padding-left: 8px;
}

.footer-modern a.footer-link i {
    font-size: 1.1rem;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.footer-bottom .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons-footer a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons-footer a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 40px 0 30px;
        text-align: center;
    }

    .footer-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .footer-links-vertical {
        align-items: center;
    }

    .social-icons-footer {
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .row {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-bottom .col-md-6 {
        width: 100%;
        text-align: center !important;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* Landscape Optimization for Mobile - MINIMAL */
@media screen and (max-height: 500px) and (orientation: landscape) {

    /* Only reduce padding, don't force layouts */
    .footer-modern {
        padding: var(--space-md) 0 !important;
    }

    .footer-modern p.small {
        display: none;
    }

    /* Footer bottom alignment in landscape */
    .footer-bottom {
        padding-top: 15px !important;
        margin-top: 20px !important;
    }

    .footer-bottom .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .footer-bottom .col-md-6 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        text-align: left !important;
    }

    .footer-bottom .col-md-6:last-child {
        text-align: right !important;
    }

    .footer-legal-links {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0 !important;
    }
}

/* Mobile Landscape Optimization */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .promo-popup-container {
        flex-direction: row !important;
        /* Force side-by-side */
        max-width: 750px !important;
        height: auto !important;
        max-height: 90vh !important;
        overflow-y: hidden !important;
        /* No scrolling needed with this layout */
        padding: 0 !important;
    }

    .promo-popup-image {
        display: block !important;
        flex: 0 0 40% !important;
        max-width: 40% !important;
        height: auto !important;
    }

    .promo-popup-image img {
        height: 100% !important;
        min-height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    .promo-popup-content {
        flex: 1 !important;
        padding: 15px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .promo-popup-title {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }

    .promo-popup-discount {
        font-size: 2rem !important;
        margin-bottom: 5px !important;
    }

    .promo-popup-message {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        /* Standard property */
        -webkit-box-orient: vertical !important;
        /* Nécessaire pour l'effet "..." */
        overflow: hidden !important;
    }

    .promo-code-value {
        font-size: 1.1rem !important;
    }

    .promo-validity {
        font-size: 0.75rem !important;
        margin-bottom: 10px !important;
    }

    .promo-popup-cta {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .promo-popup-footer {
        padding-top: 10px !important;
        font-size: 0.75rem !important;
    }

    .promo-popup-close {
        top: 5px !important;
        right: 5px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 20px !important;
    }

    /* Fix Navbar Scroll in Landscape */
    .navbar-collapse {
        max-height: 85vh !important;
        overflow-y: auto !important;
        padding-bottom: 20px !important;
    }
}

/* Force Cart/Favorites side-by-side on mobile */
@media (max-width: 991px) {
    .navbar-icons-row {
        flex-direction: row !important;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }

    .navbar-icons-row .nav-item {
        margin-left: 0 !important;
    }
}

/* ==========================================
   SOCIAL ICONS ANIMÉES - Style Premium Restoré
   ========================================== */
.social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-content {
    margin: 0 8px;
    position: relative;
}

.icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    z-index: 100;
}

.icon-content:hover .tooltip {
    opacity: 1;
    top: -55px;
}

.icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.icon-content a:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    color: #fff;
}

.icon-content a svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

.icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
    border-radius: 50%;
}

.icon-content a:hover .filled {
    height: 100%;
}

/* WhatsApp */
a[data-social="whatsapp"] .filled {
    background-color: #25D366;
}

a[data-social="whatsapp"]~.tooltip {
    background-color: #25D366;
}

/* Facebook */
a[data-social="facebook"] .filled {
    background-color: #3b5998;
}

a[data-social="facebook"]~.tooltip {
    background-color: #3b5998;
}

/* Instagram */
a[data-social="instagram"] .filled {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

a[data-social="instagram"]~.tooltip {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Twitter/X */
a[data-social="twitter"] .filled {
    background-color: #000000;
}

a[data-social="twitter"]~.tooltip {
    background-color: #000000;
}



.footer-social {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    backdrop-filter: none;
    border: 1px solid var(--border);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {

    /* Force navbar font-weight responsive */
    .navbar-nav .nav-link,
    .nav-link,
    a.nav-link {
        font-weight: 300 !important;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .product-card {
        margin-bottom: var(--space-lg);
    }

    /* Footer optimisé pour mobile */
    .footer-modern {
        padding: var(--space-xl) 0 var(--space-lg);
        margin-top: 0;
    }

    .footer-modern .col-lg-4,
    .footer-modern .col-lg-2,
    .footer-modern .col-md-6 {
        margin-bottom: var(--space-lg) !important;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: var(--space-sm);
    }

    .footer-link {
        padding: var(--space-2xs) 0;
        font-size: 0.85rem;
    }

    .footer-modern p {
        font-size: 0.85rem;
        margin-bottom: var(--space-sm);
    }

    .footer-bottom {
        padding-top: var(--space-md);
        margin-top: var(--space-lg);
        font-size: 0.75rem;
    }

    /* Optimiser les icônes sociales pour mobile */
    .social-icons {
        gap: 5px;
        flex-wrap: wrap;
    }

    .icon-content {
        margin: 0 4px;
    }

    .icon-content a {
        width: 40px;
        height: 40px;
    }

    .icon-content a svg {
        width: 20px;
        height: 20px;
    }
}

/* Optimisation pour très petits écrans */
@media (max-width: 480px) {

    /* Force navbar font-weight responsive très petits écrans */
    .navbar-nav .nav-link,
    .nav-link,
    a.nav-link {
        font-weight: 300 !important;
    }

    .footer-modern {
        padding: var(--space-lg) 0 var(--space-md);
    }

    /* Réorganiser les colonnes pour très petits écrans */
    .footer-modern .col-lg-2,
    .footer-modern .col-lg-4 {
        text-align: center;
    }

    .footer-link {
        display: inline-block;
        margin: 0 5px;
        font-size: 0.8rem;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-modern .col-lg-4:first-child p {
        display: none;
        /* Masquer la description sur très petits écrans */
    }

    .footer-modern .col-lg-4:last-child p:last-of-type {
        font-size: 0.8rem;
        /* Réduire les horaires */
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

/* ==========================================
   BOUTON RETOUR EN HAUT (SCROLL TO TOP)
   ========================================== */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    backdrop-filter: blur(10px);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    background: linear-gradient(135deg, #4a6b4a, #6a9b6a);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(92, 125, 92, 0.4);
}

#scrollToTop:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #scrollToTop {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

/* --- AJOUTS RECENTS --- */

/* Badge Promo */
.promo-badge {
    background-color: #d4a574;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal Animation */
.modal .btn-close {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1100;
    /* Ensure button is above everything */
}

.modal .btn-close:hover {
    transform: rotate(90deg);
    background-color: rgba(0, 0, 0, 0.05);
    /* Visual feedback */
    border-radius: 50%;
}

/* Status Text Colors (Dashboard & Admin) */
.status-badge {
    background-color: transparent !important;
    padding: 0 !important;
    font-weight: 700;
}

.status-en_attente {
    color: #ffc107 !important;
}

.status-preparation {
    color: #0d6efd !important;
}

.status-expediee {
    color: #0dcaf0 !important;
}

.status-livree {
    color: #198754 !important;
}

.status-prete {
    color: #198754 !important;
}

.status-annulee {
    color: #dc3545 !important;
}

/* Force Number Input Chevrons */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button !important;
    opacity: 1 !important;
    display: block !important;
}

input[type=number] {
    -moz-appearance: auto;
    appearance: auto;
}





/* ==========================================
   PAGE CONTACT - Styles Restaurés
   ========================================== */
.contact-form-container {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-header {
    margin-bottom: var(--space-xl);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.contact-form .input-box {
    margin-bottom: var(--space-lg);
    width: 100%;
}

.contact-form .column {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-form .column .input-box {
    flex: 1;
    min-width: 250px;
}

.contact-form label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fdfdfd;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(92, 125, 92, 0.1);
    outline: none;
    background: white;
}

.phone-group {
    display: flex;
    gap: var(--space-xs);
}

.phone-prefix {
    width: 110px !important;
    background-color: #f8f9fa !important;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* Social Icons - suite (tooltips, animations) */
.icon-content {
    margin: 0 8px;
    position: relative;
}

.icon-content .social-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    z-index: 100;
}

.icon-content:hover .social-tooltip {
    opacity: 1;
    top: -55px;
}

.icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.icon-content a:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    color: #fff;
}

.icon-content a svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

.icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
    border-radius: 50%;
}

.icon-content a:hover .filled {
    height: 100%;
}

/* WhatsApp */
a[data-social="whatsapp"] .filled {
    background-color: #25D366;
}

a[data-social="whatsapp"]~.social-tooltip {
    background-color: #25D366;
}

/* Facebook */
a[data-social="facebook"] .filled {
    background-color: #3b5998;
}

a[data-social="facebook"]~.social-tooltip {
    background-color: #3b5998;
}

/* Instagram */
a[data-social="instagram"] .filled {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

a[data-social="instagram"]~.social-tooltip {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Telegram */
a[data-social="telegram"] .filled {
    background-color: #24A1DE;
}

a[data-social="telegram"]~.social-tooltip {
    background-color: #24A1DE;
}


/* ==========================================
   PAGE SUIVRE COMMANDE - Sessile
   ========================================== */
.track-container {
    max-width: 800px;
    margin: var(--space-3xl) auto;
    padding: 0 var(--space-md);
    min-height: 60vh;
}

/* .track-form is defined inline in track-order.php for glassmorphism effect */

.order-details-card {
    background: var(--surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s ease;
}

.product-item {
    background: #f8f9fa;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: white;
}

/* ==========================================
   TIPOGRAPHIE SPÉCIALE (Logo & Titres)
   ========================================== */
.special-title {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

/* ==========================================
   WISHLIST STYLES SPECIAL
   ========================================== */
.wishlist-card .remove-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    /* Haut Gauche */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #dc3545;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.wishlist-card .remove-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #dc3545;
    color: white;
    opacity: 1;
}

.wishlist-card img {
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* Ombre élégante */
    transition: transform 0.4s ease;
}

.wishlist-card:hover img {
    transform: scale(1.02);
}

/* ==========================================
   PAGES LÉGALES (Mentions, CGV, Confidentialité)
   ========================================== */
.legal-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0 60px;
    color: white;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.legal-hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 2;
}

.legal-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.legal-section h3 {
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-light);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-section h3 i {
    color: var(--secondary);
    font-size: 1.8rem;
}

.legal-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.legal-list li i {
    color: var(--primary);
    margin-top: 5px;
}

/* ==========================================
   PAGE IDENTIFICATION PLANTE
   ========================================== */
.footer-modern a.footer-link:hover,
.footer-modern .footer-link:hover,
footer a.footer-link:hover {
    color: #ef4444 !important;
}

.upload-zone {
    border: 3px dashed var(--primary);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(92, 125, 92, 0.03);
}

.upload-zone:hover {
    background: rgba(92, 125, 92, 0.08);
    transform: translateY(-2px);
}

.upload-zone.drag-over {
    background: rgba(92, 125, 92, 0.15);
    border-color: var(--secondary);
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-card {
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateX(4px);
}

.confidence-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.loading-spinner {
    display: none;
}

.loading-spinner.active {
    display: block;
}

/* ==========================================
   POLICE CURSIVE GLOBALE
   ========================================== */
.special-title {
    font-family: 'Dancing Script', cursive !important;
    font-weight: 700;
}

/* ==========================================
   CATALOGUE FILTERS & CUSTOM SPINNER
   ========================================== */
.filter-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Custom Number Input with Stacked Spinners */
.custom-spinner-container {
    position: relative;
    display: flex;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
}

.custom-spinner-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    flex: 1 1 auto;
    width: 1% !important;
    /* Workaround for flex + input width:100% issues */
    min-width: 0;
}

.custom-spinner-btns {
    display: flex;
    flex-direction: column;
    width: 24px;
}

.custom-spinner-btn {
    padding: 0;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000 !important;
    background: #fff;
    color: #000 !important;
    cursor: pointer;
    font-size: 0.6rem;
    transition: all 0.2s;
}

.custom-spinner-btn:hover {
    background-color: #f0f0f0;
    color: #000 !important;
}

.custom-spinner-btn:first-child {
    border-top-right-radius: 0.375rem;
    border-bottom: 0;
}

.custom-spinner-btn:last-child {
    border-bottom-right-radius: 0.375rem;
}

.product-grid {
    min-height: 500px;
}

.price-range-display {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Responsive pour petits écrans - filtres */
@media (max-width: 576px) {

    /* Élargir les inputs de recherche et sélection */
    .filter-sidebar .form-control,
    .filter-sidebar .form-select {
        font-size: 1rem !important;
        padding: 0.75rem !important;
        min-height: 48px;
    }

    /* Inputs de prix en pleine largeur sur mobile */
    .filter-sidebar .row.g-2 {
        gap: 0.75rem !important;
    }

    .filter-sidebar .row.g-2 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Labels plus lisibles */
    .filter-sidebar .form-label {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Texte d'aide plus visible */
    .filter-sidebar .text-muted {
        font-size: 0.9rem !important;
    }

    /* Boutons plus grands */
    .filter-sidebar .btn {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
}

/* ==========================================
   CARTE PRODUIT PREMIUM (Listes de souhaits & Grilles)
   ========================================== */
.product-card-premium {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.premium-img-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Ratio 1:1 Carré parfait pour Instagram-style */
    overflow: hidden;
    background-color: #f8f9fa;
}

.premium-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-premium:hover .premium-img-container img {
    transform: scale(1.08);
}

.premium-overlay-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card-premium:hover .premium-overlay-actions {
    opacity: 1;
    pointer-events: auto;
}

.btn-premium-action {
    background: white;
    color: var(--text);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-premium-action:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.premium-remove-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    /* Déplacé à gauche */
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #dc3545;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Animation rebond (bounce) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    /* Départ: petit et tourné */
}

.product-card-premium:hover .premium-remove-btn {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    /* Arrivée: normal */
}

.premium-remove-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1) rotate(90deg) !important;
    /* Rotation extra au survol */
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.premium-info {
    padding: 20px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premium-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.2s;
}

.product-card-premium:hover .premium-title {
    color: var(--primary);
}

.premium-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Responsive Footer Social Icons Alignment */
@media (max-width: 991px) {

    /* Target the specific mobile wrapper in footer */
    .footer-modern .d-lg-none .social-icons {
        display: flex !important;
        justify-content: center !important;
        padding-left: 0 !important;
        margin-bottom: 0 !important;
        gap: 15px;
        /* Ensure spacing between icons */
        width: 100%;
    }

    .footer-modern .d-lg-none .social-icons li {
        list-style: none;
    }
}

/* ==========================================
   PAGINATION MODERN - Override Bootstrap Blue
   ========================================== */
.page-link {
    color: var(--primary);
    border: none;
    margin: 0 4px;
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: rgba(92, 125, 92, 0.1);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(92, 125, 92, 0.3);
}

.page-item.disabled .page-link {
    color: #cbd5e1;
    background-color: transparent;
}

/* ==========================================
   CATALOGUE - PREMIUM BACKGROUND
   ========================================== */
.catalogue-section {
    position: relative;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(92, 125, 92, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 165, 116, 0.03) 0%, transparent 40%),
        url('../images/premium_bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.catalogue-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    /* Overlay pour adoucir la texture */
    pointer-events: none;
    z-index: 1;
}

.catalogue-section>.container {
    position: relative;
    z-index: 2;
    /* Pour passer au dessus de l'overlay */
}


/* ==========================================
   FILTRES & SIDEBAR - PREMIUM ACCORDION
   ========================================== */
.filter-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
    align-self: flex-start;
}

.filter-sidebar .card {
    border-radius: var(--radius-xl);
    border: none !important;
    background: transparent !important;
}

.filter-sidebar .card-body {
    padding: 0;
}

.accordion-filters .accordion-item {
    border: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    background: transparent;
}

.accordion-filters .accordion-item:last-child {
    border-bottom: none;
}

.accordion-filters .accordion-button {
    padding: 1.25rem 0.5rem;
    font-weight: 600;
    color: var(--text);
    background: transparent !important;
    box-shadow: none !important;
    font-size: 1.05rem;
}

.accordion-filters .accordion-button:not(.collapsed) {
    color: var(--primary);
}

.accordion-filters .accordion-button::after {
    background-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-filters .accordion-body {
    padding: 0 0.5rem 1.5rem 0.5rem;
}

.category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
}

.category-pill:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(5px);
}

.category-pill.active {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 500;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 16px rgba(92, 125, 92, 0.15);
}

.category-pill .badge {
    background: #f1f5f9;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.category-pill.active .badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Price group refinement */
.price-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.price-input-group i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 5;
}

.price-input-group .form-control {
    padding-left: 40px !important;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    height: 50px;
    font-size: 0.95rem;
}

.price-input-group .form-control:focus {
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(92, 125, 92, 0.08);
}

/* ==========================================
   CONTACT PAGE - MODERN GLASSMORPHISM
   ========================================== */
.contact-hero {
    position: relative;
    min-height: 90vh;
    background: url('../images/backgrounds/contact_bg_new.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.contact-glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

.contact-info-side {
    padding: 50px;
    background: rgba(92, 125, 92, 0.1);
    height: 100%;
}

.contact-form-side {
    padding: 50px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.contact-info-text p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-glass-card h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.contact-glass-card .form-control,
.contact-glass-card .form-select {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    accent-color: var(--primary);
}

.contact-glass-card .form-control:focus,
.contact-glass-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(92, 125, 92, 0.1);
    background: white;
    outline: none;
}

.contact-glass-card .form-select option:checked {
    background-color: var(--primary) !important;
    color: white !important;
}


.contact-glass-card .btn-submit {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.contact-glass-card .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(92, 125, 92, 0.2);
}

@media (max-width: 991px) {

    .contact-info-side,
    .contact-form-side {
        padding: 30px;
    }
}

/* CUSTOM DROPDOWN (For Subject) */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-header {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 2px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    font-size: 0.95rem;
    color: #4a5568;
}

.custom-select-header:after {
    content: "\F229";
    font-family: inherit;
    /* Fallback */
    font-family: "bootstrap-icons";
    transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-header:after {
    transform: rotate(180deg);
}

.custom-select-header.active {
    border-color: #5c7d5c !important;
    box-shadow: 0 0 0 4px rgba(92, 125, 92, 0.1);
    background: white !important;
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.custom-options.show {
    display: block;
    animation: selectFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-option {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
    font-size: 0.95rem;
}

/* GREEN HOVER STATE HERE */
.custom-option:hover {
    background-color: #5c7d5c !important;
    color: white !important;
}

.custom-option.selected {
    background-color: rgba(92, 125, 92, 0.08);
    color: #5c7d5c;
    font-weight: 600;
}

@keyframes selectFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GLASSMORPHISM UTILITY CLASSES */
.glass-card {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(25px) brightness(0.5) !important;
    -webkit-backdrop-filter: blur(25px) brightness(0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border-radius: 20px;
}

.glass-card h4,
.glass-card h5,
.glass-card h6,
.glass-card p,
.glass-card span {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.glass-tag {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) brightness(1.2);
    -webkit-backdrop-filter: blur(10px) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    transition: all 0.3s ease;
}

.glass-tag:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px);
    color: white !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* FAQ PAGE - MINI DESIGN SYSTEM */
/* FAQ PAGE - FULL BACKGROUND MODE */
.faq-full-background {
    background:
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5)),
        url('../images/products/6921a88b97c66.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 150px;
}

/* RETOURS PAGE - FULL BACKGROUND MODE */
.retours-full-background {
    background:
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5)),
        url('../images/products/692385fd52044.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 150px;
}

/* LIVRAISON PAGE - FULL BACKGROUND MODE */
.livraison-full-background {
    background:
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5)),
        url('../images/products/6953335ecd865.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 150px;
}

.faq-hero-modern {
    padding: 180px 0 80px;
    text-align: center;
    background: transparent !important;
    position: relative;
    overflow: hidden;
    color: white;
}

.faq-hero-modern .container {
    position: relative;
    z-index: 2;
}

.faq-hero-modern h1,
.faq-hero-modern p {
    color: white !important;
}

.faq-hero-modern {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
}

/* Botanical Corners (Inspired by Screenshot) */
.faq-hero-modern::before,
.faq-hero-modern::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.15;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

.faq-hero-modern::before {
    top: -50px;
    left: -50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%235C7D5C' d='M20,20 Q40,0 60,20 T100,20 Q100,60 80,80 T20,100 Q0,80 20,60 T20,20'/%3E%3C/svg%3E");
    transform: rotate(-15deg);
    animation: floatingLeaf 6s ease-in-out infinite;
}

.faq-hero-modern::after {
    bottom: -80px;
    right: -50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%235C7D5C' d='M20,20 Q40,0 60,20 T100,20 Q100,60 80,80 T20,100 Q0,80 20,60 T20,20'/%3E%3C/svg%3E");
    transform: rotate(165deg);
    animation: floatingLeaf 8s ease-in-out infinite reverse;
}

@keyframes floatingLeaf {

    0%,
    100% {
        transform: translate(0, 0) rotate(-15deg);
    }

    50% {
        transform: translate(15px, 20px) rotate(-10deg);
    }
}

.faq-hero-modern h1 {
    font-family: 'Playfair Display', serif;
    color: white !important;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-hero-modern p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 700px;
    margin: 0 auto 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Glassmorphism Search Bar */
.faq-search-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 50px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-search-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 40px 20px 70px;
    font-size: 1.2rem;
    color: white;
    outline: none !important;
}

.faq-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.faq-search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Tabs: Botanical Style (Pill shape) */
.faq-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: -30px 0 60px;
    position: relative;
    z-index: 5;
}

.faq-tab {
    padding: 14px 35px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

.faq-tab.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(92, 125, 92, 0.4);
}

/* FAQ Card: Premium Botanical Look */
.faq-card {
    background: rgba(255, 255, 254, 0.12) !important;
    backdrop-filter: blur(35px) brightness(0.9) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(35px) brightness(0.9) saturate(1.5) !important;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: revealCard 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    pointer-events: auto;
    /* Ensure cards are clickable */
}

.faq-card::before,
.faq-card::after {
    pointer-events: none !important;
}


.faq-card:hover {
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0.7) !important;
}

.faq-card p,
.faq-card li,
.faq-card span:not(.badge) {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.faq-header {
    width: 100%;
    text-align: left;
    padding: 30px 40px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes revealCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cleaned up redundant rules */

/* Removed duplicate faq-header rules */

/* Icon Container left (Screenshot style) */
.faq-icon-box {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.faq-card:hover .faq-icon-box {
    background: var(--primary-light);
    transform: scale(1.1);
}

.faq-header span {
    flex-grow: 1;
}

.faq-header .icon-indicator {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.4s;
}

.faq-header[aria-expanded="true"] .icon-indicator {
    transform: rotate(180deg);
}

.faq-body {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.faq-content-inner {
    padding: 10px 40px 40px 110px;
    /* Offset to align with text, not icon */
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Help Block - THE WOW REDESIGN */
.faq-help-block {
    background: rgba(254, 255, 254, 0.1) !important;
    backdrop-filter: blur(40px) brightness(0.9) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(40px) brightness(0.9) saturate(1.5) !important;
    border-radius: 50px;
    padding: 100px 50px;
    text-align: center;
    max-width: 1000px;
    margin: 120px auto 80px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.faq-help-block h3,
.faq-help-block p {
    color: white !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8) !important;
}

.faq-help-block::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(92, 125, 92, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 10s infinite alternate;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.faq-help-block h3 {
    font-family: 'Playfair Display', serif;
    color: white !important;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.5) !important;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* End of h3 style */

.faq-help-block p {
    color: white;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    margin-bottom: 45px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Button style from Uiverse.io by lenfear23 - UNIFIED VERSION */
.btn-uiverse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    cursor: pointer;
    min-width: 180px;
    height: 55px;
    background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%) !important;
    border-radius: 30px;
    border: 1px solid #8F9092 !important;
    padding: 0 30px;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #606060 !important;
    text-shadow: 0 1px #fff;
    text-decoration: none !important;
    box-shadow: none !important;
    gap: 10px;
}

.btn-uiverse:hover {
    box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 3px #CECFD1 !important;
    transform: translateY(-2px);
    color: #404040 !important;
}

.btn-uiverse:active,
.btn-uiverse:focus {
    box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa !important;
    transform: translateY(0);
}

/* Green variation of the Uiverse button for primary actions */
.btn-uiverse-primary {
    background-image: linear-gradient(to top, #5c7d5c 0%, #7dad7d 80%, #8dbd8d 100%) !important;
    border-color: #4a6b4a !important;
    color: white !important;
    text-shadow: 0 1px rgba(0, 0, 0, 0.2);
}

.btn-uiverse-primary:hover {
    box-shadow: 0 4px 3px 1px #7dad7d, 0 6px 8px #4a6b4a, 0 -4px 4px #8dbd8d, inset 0 0 3px 3px #4a6b4a !important;
}

.btn-outline-sage {
    background: #ffffff;
    color: #5C7D5C !important;
    border: 3px solid #5C7D5C !important;
    border-radius: 100px;
    padding: 20px 58px;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.4s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.btn-outline-sage:hover {
    background: #5C7D5C !important;
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(92, 125, 92, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed conflicting grain texture */


.faq-card .faq-header {
    outline: none !important;
}

.faq-card .faq-header:focus-visible {
    box-shadow: 0 0 0 3px rgba(92, 125, 92, 0.2);
}

/* RESPONSIVE FIXES FOR FAQ / RETOURS / LIVRAISON */
@media (max-width: 768px) {
    .faq-hero-modern {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .faq-hero-modern h1 {
        font-size: 2.5rem !important;
        margin-bottom: 15px;
    }

    .faq-hero-modern p {
        font-size: 1.1rem !important;
        padding: 0 20px;
    }

    .faq-header {
        padding: 20px !important;
        font-size: 1.1rem !important;
        gap: 15px !important;
    }

    .faq-icon-box {
        width: 40px !important;
        height: 40px !important;
    }

    .faq-content-inner {
        padding: 0 20px 30px 20px !important;
        /* Removed 110px offset */
        font-size: 0.95rem !important;
    }

    .faq-help-block {
        padding: 60px 25px !important;
        margin: 60px 15px 40px !important;
        border-radius: 30px !important;
    }

    .faq-help-block h3 {
        font-size: 1.8rem !important;
    }

    .faq-help-block p {
        font-size: 1.1rem !important;
    }
}

/* ==========================================
   CATALOGUE PAGE - Background Image
   ========================================== */
.catalogue-section {
    position: relative;
    background:
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.75)),
        url('../images/backgrounds/catalogue_bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Ensure product cards stand out on dark background */
.catalogue-section .product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Dark mode adjustments */
[data-theme="dark"] .catalogue-section .product-card {
    background: rgba(30, 30, 30, 0.95);
}

/* Filter sidebar styling for dark background */
.catalogue-section .filter-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

[data-theme="dark"] .catalogue-section .filter-card {
    background: rgba(30, 30, 30, 0.9);
}

/* ==========================================
   PROMO POPUP - Elegant Horizontal Layout
   ========================================== */
#promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 100, 100, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

#promo-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-popup-container {
    display: flex;
    background: #f5f3ef;
    border-radius: 20px;
    max-width: 650px;
    /* Reduced from 800px for a more compact look */
    width: 100%;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

#promo-popup-overlay.show .promo-popup-container {
    transform: scale(1) translateY(0);
}

.promo-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.promo-popup-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* Image section */
.promo-popup-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.promo-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 450px;
}

/* Content section */
.promo-popup-content {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.promo-popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #3d3d3d;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Discount badge - displayed prominently above title */
.promo-popup-discount {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #5c7d5c;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.promo-popup-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Code section with heart */
.promo-popup-code-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-heart {
    font-size: 1.2rem;
}

.promo-code-label {
    font-size: 1.1rem;
    color: #555;
}

.promo-code-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
}

.promo-validity {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.promo-popup-cta {
    display: inline-block;
    padding: 16px 40px;
    background: #6b7b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 25px;
}

.promo-popup-cta:hover {
    background: #5a6a5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 123, 107, 0.35);
}

.promo-popup-footer {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
    border-top: 1px solid #e0ddd8;
    padding-top: 20px;
}

/* Dark mode */
[data-theme="dark"] .promo-popup-container {
    background: #2a2a2a;
}

[data-theme="dark"] .promo-popup-title {
    color: #fff;
}

[data-theme="dark"] .promo-popup-discount {
    color: #8dbd8d;
}

[data-theme="dark"] .promo-popup-message {
    color: #bbb;
}

[data-theme="dark"] .promo-code-label,
[data-theme="dark"] .promo-code-value {
    color: #fff;
}

[data-theme="dark"] .promo-validity {
    color: #888;
}

[data-theme="dark"] .promo-popup-footer {
    color: #666;
    border-color: #444;
}

/* Mobile - Stack vertically */
@media (max-width: 768px) {
    .promo-popup-container {
        flex-direction: column;
        max-width: 90%;
        max-height: 85vh;
        overflow-y: auto;
        /* Hide scrollbar */
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE/Edge */
    }

    .promo-popup-container::-webkit-scrollbar {
        display: none !important;
        /* Chrome/Safari */
    }

    .promo-popup-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .promo-popup-image img {
        min-height: 150px;
        /* Reduced from 200px to save space */
        max-height: 180px;
    }

    .promo-popup-content {
        padding: 30px 25px;
    }

    .promo-popup-title {
        font-size: 1.4rem;
    }

    .promo-popup-discount {
        font-size: 2.2rem;
    }

    .promo-popup-message {
        font-size: 0.95rem;
    }

    .promo-popup-cta {
        padding: 14px 30px;
        font-size: 1rem;
    }
}