* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0D0D0D;
    color: #ffffff;  
    font-family: 'DM Sans', sans-serif;
}

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(13,13,13,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.nav-logo span { color: #FF5C00; }

.nav-search {
    flex: 1;
    max-width: 380px;
    margin: 0 24px;
    background: #262626;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input {
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
}

.btn-cart {
    background: #FF5C00;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-badge {
    background: #ffffff;
    color: #FF5C00;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cats {
    background: #1A1A1A;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px;
}

.nav-cats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.nav-cat {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 12px 16px;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-cat:hover { color: #FF5C00; }

main {
    margin-top: 130px;
}

.section {
    padding: 64px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.section-header h2 span { color: #FF5C00; }

.see-all {
    color: #FF5C00;
    text-decoration: none;
    font-size: 14px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cat-card {
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s;
}

.cat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,92,0,0.3);
}

.cat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s;
}

.product-card:hover { transform: translateY(-6px); }

.product-img {
    aspect-ratio: 1;
    width: 100%;
    background: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-body { padding: 16px; }

.product-cat {
    font-size: 11px;
    color: #FF5C00;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    text-decoration: none;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.btn-add {
    background: #FF5C00;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add:hover { background: #FF7A2B; }
.btn-add:disabled { background: #3D3D3D; cursor: not-allowed; }

.btn-primary {
    background: #FF5C00;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 14px 28px;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    width: 75% !important;
    
}


.btn-primary:hover { background: #FF7A2B; }


.hero {
    min-height: 500px;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    padding: 60px 48px;
}

.hero-left { max-width: 600px; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,92,0,0.15);
    border: 1px solid rgba(255,92,0,0.3);
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 12px;
    color: #FF5C00;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;  
}

.hero h1 em {
    color: #FF5C00;
    font-style: normal;
}

.hero p {
    color: #888;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.footer {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 48px 24px 32px;
    margin-top: 64px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-logo span { color: #FF5C00; }

.footer-col p {
    color: #888;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #888;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover { color: #FF5C00; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
}

.badge-livraison {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #4ADE80;
}

.flash {
    padding: 14px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.flash-success { background: rgba(34,197,94,0.15); color: #4ADE80; }
.flash-error   { background: rgba(239,68,68,0.15);  color: #F87171; }

@media (max-width: 768px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .nav-search { display: none; }
}

.page-titre {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: #888;
}

.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; margin-bottom: 24px; }

.panier-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.panier-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.panier-item-img {
    width: 80px; height: 80px;
    border-radius: 12px;
    background: #262626;
    overflow: hidden; flex-shrink: 0;
}

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

.panier-item-info { flex: 1; }
.panier-item-cat { font-size: 11px; color: #FF5C00; text-transform: uppercase; margin-bottom: 4px; }
.panier-item-nom { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.panier-item-prix { font-size: 14px; color: #888; }

.panier-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #262626;
    border: none; color: #fff;
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover { background: #FF5C00; }
.qty-val { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; }

.panier-item-total {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    min-width: 120px;
    text-align: right;
}

.btn-vider {
    background: none;
    border: 1px solid rgba(239,68,68,0.3);
    color: #F87171;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
    transition: background 0.2s;
}

.btn-vider:hover { background: rgba(239,68,68,0.1); }

.panier-recap {
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.panier-recap h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.recap-ligne {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.gratuit { color: #4ADE80; }

.recap-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 16px;
    margin: 16px 0;
    font-size: 18px;
}

.recap-total strong { font-size: 22px; color: #fff; }

.recap-paiement {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #4ADE80;
    margin-bottom: 20px;
    text-align: center;
}

.btn-block {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

.btn-continuer {
    display: block;
    text-align: center;
    color: #888;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-continuer:hover { color: #fff; }

@media (max-width: 768px) {
    .panier-layout { grid-template-columns: 1fr; }
    .panier-item { flex-wrap: wrap; }
    .panier-item-total { width: 100%; text-align: left; }
}

.commande-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required { color: #FF5C00; }

.form-control {
    width: 100%;
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus { border-color: #FF5C00; }
.form-control::placeholder { color: #3D3D3D; }
.textarea { resize: none; height: 100px; }

.erreurs {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    color: #F87171;
    font-size: 14px;
}

.erreurs p { margin-bottom: 6px; }
.erreurs p:last-child { margin-bottom: 0; }

.recap-produit {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .commande-layout { grid-template-columns: 1fr; }
}


.confirmation-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 24px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34,197,94,0.15);
    border: 2px solid rgba(34,197,94,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #4ADE80;
    margin: 0 auto 24px;
}

.confirmation-box h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.confirmation-box p {
    color: #888;
    font-size: 16px;
    margin-bottom: 16px;
}

.confirmation-box p strong {
    color: #fff;
}

.numero-commande {
    display: inline-block;
    background: rgba(255,92,0,0.1);
    border: 1px solid rgba(255,92,0,0.3);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 20px;
    font-weight: 700;
    color: #FF5C00;
    margin: 16px 0 24px;
}

.confirmation-msg {
    margin-bottom: 32px;
}

.confirmation-recap {
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.confirmation-recap h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.livraison-info {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    color: #93C5FD;
    margin-bottom: 32px;
}

.livraison-nego {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #FCD34D;
    margin-top: 12px;
    text-align: center;
}




/* Header catalogue */
.catalogue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.catalogue-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.catalogue-header span {
    color: #888;
    font-size: 14px;
}

/* Filtres */
.filter-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: #888;
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.2s;
}

.filter-btn:hover { color: #fff; }
.filter-btn.active { background: #FF5C00; color: #fff; border-color: #FF5C00; }

.produit-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 24px;
}

.produit-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #1A1A1A;
}

.produit-image img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    display: block;
    padding: 16px;
}

.produit-prix {
    font-size: 28px;
    font-weight: 700;
    color: #FF5C00;
    margin-bottom: 16px;
}

.produit-nom {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0 16px;
}


@media (max-width: 768px) {

    /* Navbar */
    .nav-inner {
        padding: 0 16px;
    }

    /* Catégories scrollables */
    .nav-cats {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 16px;
        scrollbar-width: none;
    }

    .nav-cats::-webkit-scrollbar {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 32px 16px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 28px;
    }

    /* Grille catégories */
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Grille produits */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Panier */
    .panier-layout {
        grid-template-columns: 1fr;
    }

    /* Commande */
    .commande-layout {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section {
        padding: 32px 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Galerie */
.produit-galerie {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    align-items: flex-start;
}

.produit-image-principale {
    flex: 1;
    position: relative;
    background: #1A1A1A;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;        /* ← hauteur fixe */
    display: flex;
    align-items: center;
    justify-content: center;
}

.produit-image-principale img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* ← garde les proportions */
    padding: 16px;
    transition: opacity 0.3s;
}

.produit-miniatures {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.miniature {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background: #1A1A1A;
    flex-shrink: 0;
}

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

.miniature:hover { border-color: rgba(255,92,0,0.5); }
.miniature.active { border-color: #FF5C00; }

@media (max-width: 768px) {
    .produit-galerie {
        flex-direction: column;
    }

    .produit-miniatures {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .miniature {
        width: 60px;
        height: 60px;
    }
}


.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;    /* ← espace au dessus */
    width: 100%;         /* ← pleine largeur comme le bouton panier */
    transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp {
    text-decoration: none;
    width: 50% !important;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}


.video-thumb {
    width: 100%;
    height: 100%;
    background: #262626;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    gap: 4px;
}

.video-thumb span {
    font-size: 10px;
    color: #888;
}

.miniature-video {
    border-color: rgba(59,130,246,0.5);
}

.miniature-video.active {
    border-color: #3B82F6;
}

#video-principale {
    border-radius: 16px;
}
