/**
 * BioRepair - Feuille de style principale
 * "La nature répare, BioRepair transforme"
 */

/* ─── VARIABLES CSS ──────────────────────────────────────── */
:root {
    --primary: #1B4332;
    --primary-light: #2D6A4F;
    --secondary: #D4A017;
    --secondary-light: #E8B92A;
    --accent: #52B788;
    --accent-light: #74C69D;
    --bg-light: #F8FDF9;
    --text-dark: #1A1A2E;
    --text-muted: #6C757D;
    --danger: #E63946;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.bg-primary-dark {
    background: var(--primary) !important;
}
#mainNav {
    padding: 0.6rem 0;
    box-shadow: var(--shadow);
    z-index: 1050;
    transition: var(--transition);
}
#mainNav .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white) !important;
}
.brand-icon { font-size: 1.3em; }
#mainNav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
#mainNav .nav-link:hover, #mainNav .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
}

/* Bouton panier header */
.btn-cart {
    color: var(--white);
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    position: relative;
}
.btn-cart:hover { color: var(--secondary); }
.badge-cart {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ─── MINI PANIER DROPDOWN ────────────────────────────────── */
.mini-cart-wrapper { position: relative; }
.mini-cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    overflow: hidden;
}
.mini-cart-wrapper:hover .mini-cart-dropdown,
.mini-cart-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
}
.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.mini-cart-body {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 0;
}
.mini-cart-body::-webkit-scrollbar { width: 3px; }
.mini-cart-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.mini-cart-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #aaa;
}
.mini-cart-empty i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.mini-cart-empty p { margin: 0; font-size: 0.85rem; }
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    transition: background 0.15s;
}
.mini-cart-item:hover { background: #f8fdf9; }
.mini-cart-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-cart-item-price {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}
.mini-cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    font-size: 0.75rem;
    transition: color 0.2s;
    flex-shrink: 0;
}
.mini-cart-item-remove:hover { color: var(--danger); }
.mini-cart-footer {
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.mini-cart-total strong {
    color: var(--primary);
    font-size: 1.1rem;
}
.mini-cart-actions {
    display: flex;
    gap: 8px;
}
.mini-cart-actions .btn { font-size: 0.78rem; padding: 6px 12px; }
@media (max-width: 576px) {
    .mini-cart-dropdown { width: 300px; right: -40px; }
}

/* Bouton WhatsApp header */
.btn-whatsapp-header {
    background: #25D366;
    color: var(--white) !important;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-whatsapp-header:hover {
    background: #1EBB56;
    transform: scale(1.05);
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,149.3C672,149,768,203,864,224C960,245,1056,235,1152,213.3C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--accent-light);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}
.hero-title {
    color: var(--white);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 550px;
}
.hero-counters {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}
.hero-counter { text-align: center; color: var(--white); }
.hero-counter .count {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-heading);
}
.hero-counter span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
}

/* ─── BOUTONS ────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--secondary);
    color: var(--text-dark);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-custom:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212,160,23,0.4);
    color: var(--text-dark);
}
.btn-secondary-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary-custom:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}
.btn-outline-primary-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-gold {
    background: linear-gradient(135deg, var(--secondary), #E8B92A);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212,160,23,0.3);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212,160,23,0.5);
    color: var(--text-dark);
}
.btn-add-cart {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-add-cart:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: var(--white);
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section-padding { padding: 5rem 0; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}
.bg-white-section { background: var(--white); }
.bg-light-section { background: var(--bg-light); }

/* ─── CARDS PRODUIT ──────────────────────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-card-img {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: #f0f0f0;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.product-badge-bestseller {
    background: var(--secondary);
    color: var(--text-dark);
}

/* ─── BADGES PROMO CLIGNOTANTS ───────────────────────────── */
.product-badge-promo {
    animation: promoPulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(230,57,70,0.4);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}
@keyframes promoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* Bannière promo sur page produit */
.promo-banner-product {
    animation: promoGlow 2s ease-in-out infinite;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.promo-banner-product::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: promoShine 3s ease-in-out infinite;
}
@keyframes promoGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(230,57,70,0.2); }
    50% { box-shadow: 0 0 20px rgba(230,57,70,0.4); }
}
@keyframes promoShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Badge promo panier */
.promo-line {
    animation: promoFadeIn 0.5s ease;
    background: linear-gradient(90deg, rgba(82,183,136,0.08), transparent);
    border-radius: 6px;
    padding: 6px 10px;
    margin: 4px 0;
}
@keyframes promoFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Badge pill promo sur page produit */
.promo-pill {
    animation: promoPillBounce 2s ease-in-out infinite;
    display: inline-block;
}
@keyframes promoPillBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.product-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-body .category {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.product-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.product-card-body h3 a {
    color: var(--text-dark);
}
.product-card-body h3 a:hover { color: var(--primary); }
.product-card-body .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.product-price .current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}
.product-price .old {
    font-size: 0.95rem;
    color: var(--danger);
    text-decoration: line-through;
}
.product-price .economy {
    background: rgba(230,57,70,0.1);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ─── ÉTAPES (Comment ça marche) ─────────────────────────── */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-family: var(--font-heading);
}
.step-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── AVANTAGES ──────────────────────────────────────────── */
.advantage-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.advantage-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(82,183,136,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: var(--accent);
}
.advantage-card h5 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.advantage-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ─── TÉMOIGNAGES ────────────────────────────────────────── */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(82,183,136,0.2);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-info strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ─── FAQ ACCORDÉON ──────────────────────────────────────── */
.faq-section .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-section .accordion-button {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary);
    padding: 1.2rem 1.5rem;
    background: var(--white);
}
.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--white);
    box-shadow: none;
}
.faq-section .accordion-button::after {
    filter: none;
}
.faq-section .accordion-button:not(.collapsed)::after {
    filter: brightness(100);
}
.faq-section .accordion-body {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 0;
    text-align: center;
}
.cta-section h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }

/* ─── PAGE PRODUIT ───────────────────────────────────────── */
.product-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}
.product-gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.product-gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--primary);
}
.product-info { padding-left: 2rem; }
.product-info .badge-category {
    background: rgba(82,183,136,0.1);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.product-info h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 1rem 0;
}
.product-info .price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.product-info .price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}
.product-info .price-old {
    font-size: 1.2rem;
    color: var(--danger);
    text-decoration: line-through;
}
.stock-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.stock-info.in-stock {
    background: rgba(82,183,136,0.1);
    color: var(--accent);
}
.stock-info.low-stock {
    background: rgba(212,160,23,0.1);
    color: var(--secondary);
}
.stock-info.out-of-stock {
    background: rgba(230,57,70,0.1);
    color: var(--danger);
}
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    overflow: hidden;
}
.qty-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}
.qty-selector button:hover {
    background: var(--bg-light);
}
.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
}
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Tabs produit */
.product-tabs .nav-tabs {
    border: none;
    gap: 5px;
    margin-bottom: 1.5rem;
}
.product-tabs .nav-tabs .nav-link {
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f0f0f0;
    transition: var(--transition);
}
.product-tabs .nav-tabs .nav-link.active {
    background: var(--primary);
    color: var(--white);
}

/* ─── PANIER ─────────────────────────────────────────────── */
.cart-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 1rem;
    border: none;
}
.cart-table td {
    vertical-align: middle;
    padding: 1rem;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.cart-summary h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}
.cart-summary .summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}
.cart-summary .summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

/* ─── FORMULAIRE COMMANDE ────────────────────────────────── */
.checkout-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.checkout-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}
.checkout-form .form-control,
.checkout-form .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid #e8e8e8;
    padding: 0.7rem 1rem;
    transition: var(--transition);
}
.checkout-form .form-control:focus,
.checkout-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(82,183,136,0.2);
}
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
}
.payment-methods .method-badge {
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.payment-methods .method-badge:hover,
.payment-methods .method-badge.active {
    border-color: var(--primary);
    background: rgba(27,67,50,0.05);
}

/* ─── CONFIRMATION / ANNULATION ──────────────────────────── */
.confirmation-page, .cancel-page {
    text-align: center;
    padding: 4rem 0;
}
.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(82,183,136,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease;
}
.success-icon i {
    font-size: 3rem;
    color: var(--accent);
}
.cancel-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(230,57,70,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}
.cancel-icon i {
    font-size: 3rem;
    color: var(--danger);
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ─── LANDING PAGE ───────────────────────────────────────── */
.landing-hero {
    background: linear-gradient(135deg, var(--primary), #0B3D2E);
    padding: 4rem 0;
    color: var(--white);
}
.countdown-timer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 2rem 0;
}
.countdown-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 80px;
}
.countdown-box .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-heading);
    display: block;
}
.countdown-box .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.target-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}
.target-list li i {
    color: var(--accent);
    margin-right: 8px;
}

/* ─── WHATSAPP FLOTTANT ──────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    animation: whatsappPulse 2s infinite;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.whatsapp-float.show {
    opacity: 1;
    transform: translateY(0);
}
.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer-section {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}
.footer-brand {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}
.footer-slogan {
    color: var(--secondary);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}
.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
}
.footer-links a:hover { color: var(--secondary); }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--secondary);
    color: var(--text-dark);
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1.5rem;
}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb-section {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.breadcrumb-section .breadcrumb {
    margin-bottom: 0;
}
.breadcrumb-section .breadcrumb-item a {
    color: var(--accent);
}

/* ─── ANIMATIONS D'ENTRÉE ────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ADMIN ──────────────────────────────────────────────── */
.admin-sidebar {
    background: var(--primary);
    height: 100vh;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
/* Scrollbar fine sur la sidebar */
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

.admin-sidebar .brand {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.admin-sidebar .brand a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}
.admin-sidebar .nav-menu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
}
.admin-sidebar .nav-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1.2rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}
.admin-sidebar .nav-menu li a:hover,
.admin-sidebar .nav-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.admin-sidebar .nav-menu li a i {
    width: 20px;
    text-align: center;
}
.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--bg-light);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}
.admin-header h1 {
    font-size: 1.6rem;
    color: var(--primary);
}

/* KPI Cards Admin */
.kpi-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.kpi-icon.blue { background: rgba(13,110,253,0.1); color: #0D6EFD; }
.kpi-icon.green { background: rgba(82,183,136,0.1); color: var(--accent); }
.kpi-icon.gold { background: rgba(212,160,23,0.1); color: var(--secondary); }
.kpi-icon.red { background: rgba(230,57,70,0.1); color: var(--danger); }
.kpi-info h3 { font-size: 1.6rem; margin-bottom: 0; color: var(--text-dark); }
.kpi-info span { font-size: 0.85rem; color: var(--text-muted); }

/* Status badges admin */
.badge-nouvelle { background: #0D6EFD; color: #fff; }
.badge-paiement_en_cours { background: #FFC107; color: #333; }
.badge-payee { background: #198754; color: #fff; }
.badge-confirmee { background: #0DCAF0; color: #333; }
.badge-en_livraison { background: #6F42C1; color: #fff; }
.badge-livree { background: #6C757D; color: #fff; }
.badge-annulee { background: #DC3545; color: #fff; }
.badge-echouee { background: #FF6B35; color: #fff; }

/* Tables admin */
.admin-table {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.admin-table table { margin-bottom: 0; }
.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem;
}
.admin-table td {
    vertical-align: middle;
    padding: 0.8rem 1rem;
    border-color: #f0f0f0;
}

/* Admin login */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.admin-login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.admin-login-card h2 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.admin-login-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 3px;
    color: var(--primary);
    border: none;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}

/* ─── FLASH SALE SECTION ────────────────────────────────── */
.flash-sale-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}
.flash-sale-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L30 20 L25 25 Z' fill='rgba(228,185,23,0.04)'/%3E%3C/svg%3E") repeat;
}
.flash-sale-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}
.flash-sale-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E63946, #FF6B6B);
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    animation: flashPulse 2s ease infinite;
}
@keyframes flashPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
}
.flash-sale-header h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.flash-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.flash-cd-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 70px;
    text-align: center;
}
.flash-cd-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #E63946;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}
.flash-cd-box small {
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    text-transform: uppercase;
}
.flash-cd-sep {
    color: #E63946;
    font-size: 1.8rem;
    font-weight: 800;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.flash-sale-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 2px solid rgba(230,57,70,0.3);
    transition: transform 0.3s ease;
    position: relative;
}
.flash-sale-card:hover {
    transform: translateY(-4px);
}
.flash-sale-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
}
.flash-sale-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flash-sale-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #E63946, #FF6B6B);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}
.flash-sale-body {
    padding: 1.5rem;
}
.flash-sale-body .category {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.flash-sale-body h3 {
    font-size: 1.15rem;
    margin: 0.3rem 0 0.5rem;
    color: var(--text-dark);
}
.flash-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}
.flash-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}
.flash-price-new {
    font-size: 1.4rem;
    font-weight: 800;
    color: #E63946;
    font-family: 'Poppins', sans-serif;
}
.flash-price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}
.flash-economy {
    background: #fff3cd;
    color: #856404;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.flash-progress-wrap {
    margin-bottom: 1rem;
}
.flash-progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}
.flash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E63946, #FF6B6B);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}
.flash-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.flash-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}
.flash-progress-text i { color: #E63946; }
.btn-flash-cta {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #E63946, #c0392b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-flash-cta:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* ─── PRINT CSS ──────────────────────────────────────────── */
@media print {
    .admin-sidebar, .navbar, .whatsapp-float, .btn, .no-print { display: none !important; }
    .admin-content { margin-left: 0; padding: 0; }
    body { background: white; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-counters { gap: 1.5rem; }
    .hero-counter .count { font-size: 1.6rem; }
    .product-info { padding-left: 0; margin-top: 2rem; }
}
@media (max-width: 767px) {
    .hero-section { padding: 4rem 0 3rem; min-height: auto; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-counters { flex-wrap: wrap; gap: 1rem; }
    .section-padding { padding: 3rem 0; }
    .section-title h2 { font-size: 1.6rem; }
    .countdown-timer { gap: 8px; }
    .countdown-box { padding: 0.7rem 1rem; min-width: 60px; }
    .countdown-box .number { font-size: 1.5rem; }
    .product-gallery-main img { height: 280px; }
}
