/* =====================================================
   BZ HUB - STYLE.CSS
   PARTIE 1/4
   Base + Header + Recherche
===================================================== */


/* ==========================
   VARIABLES
========================== */

:root{

    --rouge-bz:#5b0000;
    --rouge-hover:#990000;
    --blanc:#ffffff;
    --gris-fond:#f5f6fa;
    --gris-texte:#666;
    --noir:#222;

}


/* ==========================
   RESET GENERAL
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


html{
    scroll-behavior:smooth;
}


body{

    font-family:'Poppins',sans-serif;

    background:var(--gris-fond);

    color:var(--noir);

    min-height:100vh;

}


a{

    text-decoration:none;

    color:inherit;

}


img{

    max-width:100%;

    display:block;

}


button{

    font-family:'Poppins',sans-serif;

    cursor:pointer;

}



/* ==========================
   CONTAINER PRINCIPAL
========================== */


main{

    width:95%;

    max-width:1500px;

    margin:40px auto;

}



/* =====================================================
   HEADER PRINCIPAL
===================================================== */


.navbar{

    background:var(--rouge-bz);

    color:white;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:15px 25px;

    position:sticky;

    top:0;

    z-index:1000;

    box-shadow:0 4px 15px rgba(0,0,0,.18);

}



/* ==========================
   BOUTON MENU
========================== */


.menu-btn{

    background:none;

    border:none;

    color:white;

    font-size:25px;

    width:40px;

}



/* ==========================
   LOGO
========================== */


.logo{

    display:flex;

    align-items:center;

    gap:10px;

    color:white;

    font-size:28px;

    font-weight:700;

}


.logo span{

    white-space:nowrap;

}



/* ==========================
   PARTIE DROITE HEADER
========================== */


.header-right{

    display:flex;

    align-items:center;

    gap:20px;

}



/* ==========================
   PROFIL
========================== */


.profil{

    display:flex;

    align-items:center;

    gap:10px;

    color:white;

}


.profil a{

    color:white;

}


.profil i{

    font-size:22px;

}


.profil strong{

    font-size:14px;

    font-weight:600;

}



#btnDeconnexion{

    background:white;

    color:var(--rouge-bz);

    border:none;

    padding:8px 15px;

    border-radius:7px;

    font-weight:600;

    transition:.3s;

}


#btnDeconnexion:hover{

    transform:translateY(-2px);

}



/* =====================================================
   BARRE DE RECHERCHE
===================================================== */


.search-bar{

    width:90%;

    max-width:750px;

    margin:25px auto;

    display:flex;

    background:white;

    border-radius:50px;

    overflow:hidden;

    box-shadow:0 5px 18px rgba(0,0,0,.12);

}



.search-bar input{

    flex:1;

    border:none;

    outline:none;

    padding:16px 22px;

    font-size:16px;

    font-family:'Poppins',sans-serif;

}



.search-bar button{

    width:70px;

    border:none;

    background:var(--rouge-bz);

    color:white;

    font-size:20px;

    transition:.3s;

}



.search-bar button:hover{

    background:var(--rouge-hover);

}



/* ==========================
   PANIER (préparation)
========================== */


.panier{

    position:relative;

    color:white;

    font-size:25px;

}


#panierCount{

    position:absolute;

    top:-10px;

    right:-12px;

    background:white;

    color:var(--rouge-bz);

    width:20px;

    height:20px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    font-weight:bold;

}
/* =====================================================
   BZ HUB - STYLE.CSS
   PARTIE 2/4
   Produits + Cartes + Boutons Marketplace
===================================================== */


/* =====================================================
   SECTION PRODUITS
===================================================== */


.products{

    margin-top:40px;

}


.section-title{

    text-align:center;

    font-size:32px;

    color:var(--rouge-bz);

    font-weight:700;

    margin-bottom:30px;

}



/* =====================================================
   GRILLE PRODUITS
===================================================== */


.product-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(250px,1fr));

    gap:25px;

    padding:10px;

}



/* =====================================================
   CARTE PRODUIT
===================================================== */


.product-card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
    0 5px 15px rgba(0,0,0,.08);

    transition:.3s;

    display:flex;

    flex-direction:column;

}



.product-card:hover{

    transform:translateY(-6px);

    box-shadow:
    0 15px 35px rgba(0,0,0,.15);

}



/* =====================================================
   IMAGE PRODUIT
===================================================== */


.product-card img{

    width:100%;

    height:240px;

    object-fit:contain;

    padding:15px;

    background:white;

    border-bottom:1px solid #eee;

    transition:.3s;

}



.product-card:hover img{

    transform:scale(1.04);

}



/* =====================================================
   CONTENU CARTE
===================================================== */


.product-card h3{

    font-size:18px;

    font-weight:600;

    padding:15px 15px 5px;

    color:#222;

    min-height:55px;

}



.product-card p{

    padding:0 15px;

    color:#666;

    line-height:1.5;

}



/* =====================================================
   PRIX
===================================================== */


.product-card .price,
.product-card .prix{

    color:var(--rouge-bz);

    font-size:22px;

    font-weight:700;

    margin:10px 0;

}



/* =====================================================
   BOUTON ACHETER
===================================================== */


.btn-acheter{

    width:calc(100% - 30px);

    margin:15px;

    padding:13px;

    border:none;

    border-radius:10px;

    background:var(--rouge-bz);

    color:white;

    font-size:15px;

    font-weight:600;

    transition:.3s;

}



.btn-acheter:hover{

    background:var(--rouge-hover);

    transform:translateY(-2px);

    box-shadow:
    0 8px 18px rgba(0,0,0,.18);

}



.btn-acheter:active{

    transform:scale(.97);

}



/* =====================================================
   BOUTONS GENERAUX
===================================================== */


button{

    border:none;

}


.btn-ajouter{

    background:var(--rouge-bz);

    color:white;

    padding:14px 25px;

    border-radius:10px;

    font-weight:600;

    font-size:15px;

    transition:.3s;

}



.btn-ajouter:hover{

    background:var(--rouge-hover);

    transform:translateY(-2px);

}



/* =====================================================
   RESPONSIVE TABLETTE
===================================================== */


@media(max-width:900px){


    .product-grid{

        grid-template-columns:
        repeat(3,1fr);

        gap:15px;

    }


    .product-card img{

        height:200px;

    }


}



/* =====================================================
   RESPONSIVE TELEPHONE
===================================================== */


@media(max-width:600px){


    .products{

        margin-top:25px;

    }


    .section-title{

        font-size:24px;

        margin-bottom:20px;

    }



    .product-grid{

        grid-template-columns:
        repeat(2,1fr);

        gap:12px;

        padding:5px;

    }



    .product-card{

        border-radius:12px;

    }



    .product-card img{

        height:150px;

        padding:8px;

    }



    .product-card h3{

        font-size:14px;

        padding:10px;

        min-height:45px;

        display:-webkit-box;

        -webkit-line-clamp:2;

        -webkit-box-orient:vertical;

        overflow:hidden;

    }



    .product-card p{

        padding:0 10px;

        font-size:13px;

    }



    .product-card .price,
    .product-card .prix{

        font-size:17px;

        margin:8px 0;

    }



    .btn-acheter{

        width:calc(100% - 20px);

        margin:10px;

        padding:10px;

        font-size:13px;

        border-radius:8px;

    }



}
/* =====================================================
   BZ HUB - STYLE.CSS
   PARTIE 3/4
   Footer + Menu latéral + Détail produit + Notifications
===================================================== */


/* =====================================================
   FOOTER
===================================================== */


footer{

    background:var(--rouge-bz);

    color:white;

    margin-top:70px;

}



.footer-container{

    max-width:1200px;

    margin:auto;

    padding:45px 20px;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:40px;

    flex-wrap:wrap;

}



.footer-colonne{

    flex:1;

    min-width:250px;

    text-align:center;

}



.footer-colonne h3{

    font-size:24px;

    margin-bottom:15px;

}



.footer-colonne p{

    color:#f5f5f5;

    font-size:15px;

    line-height:1.8;

}



.footer-colonne i{

    margin-right:8px;

}



.copyright{

    text-align:center;

    padding:18px;

    border-top:1px solid rgba(255,255,255,.2);

    color:#ddd;

    font-size:14px;

}



/* =====================================================
   MENU LATERAL
===================================================== */


.side-menu{

    position:fixed;

    top:0;

    left:-320px;

    width:300px;

    height:100vh;

    background:white;

    z-index:2000;

    box-shadow:
    5px 0 20px rgba(0,0,0,.25);

    transition:.35s ease;

    overflow-y:auto;

    padding-top:20px;

}



.side-menu.active{

    left:0;

}



.close-btn{

    background:none;

    border:none;

    font-size:35px;

    margin-left:240px;

    color:#333;

}



.side-menu a{

    display:block;

    padding:16px 25px;

    font-size:16px;

    color:#333;

    transition:.25s;

}



.side-menu a:hover{

    background:#f5f5f5;

    color:var(--rouge-bz);

    padding-left:35px;

}



/* =====================================================
   OVERLAY MENU
===================================================== */


.overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    z-index:1500;

}



.overlay.active{

    display:block;

}



/* =====================================================
   NOTIFICATIONS
===================================================== */


.notification{

    position:fixed;

    top:20px;

    right:20px;

    width:350px;

    max-width:90%;

    padding:16px 20px;

    border-radius:15px;

    color:white;

    font-size:15px;

    font-weight:500;

    box-shadow:
    0 10px 30px rgba(0,0,0,.2);

    transform:translateX(120%);

    opacity:0;

    transition:.35s;

    z-index:9999;

}



.notification.show{

    transform:translateX(0);

    opacity:1;

}



.notification.success{

    background:#28a745;

}



.notification.error{

    background:#dc3545;

}



.notification.warning{

    background:#ff9800;

}



.notification.info{

    background:#2196f3;

}



/* =====================================================
   PAGE DETAIL PRODUIT
===================================================== */


.produit-detail-container{

    display:grid;

    grid-template-columns:

    1fr 1fr;

    gap:50px;

    align-items:start;

    margin-top:40px;

}



/* Zone images */


.produit-images{

    background:white;

    padding:25px;

    border-radius:18px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

}



#imagePrincipale{

    width:100%;

    height:450px;

    object-fit:contain;

}



/* Miniatures */


.miniatures{

    display:flex;

    gap:12px;

    margin-bottom:20px;

    flex-wrap:wrap;

}



.miniatures img{

    width:80px;

    height:80px;

    object-fit:cover;

    border-radius:10px;

    cursor:pointer;

    border:2px solid transparent;

    transition:.3s;

}



.miniatures img:hover{

    border-color:var(--rouge-bz);

}



/* Informations */


.produit-info{

    background:white;

    padding:35px;

    border-radius:18px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

}



.produit-info h1{

    font-size:32px;

    margin-bottom:20px;

}



.produit-info .prix{

    font-size:30px;

    color:var(--rouge-bz);

    font-weight:700;

}



.produit-info p{

    line-height:1.8;

    color:#555;

    margin:15px 0;

}



/* Bouton WhatsApp */


#btnWhatsApp{

    width:100%;

    background:#25D366;

    color:white;

    padding:15px;

    border:none;

    border-radius:10px;

    font-size:16px;

    font-weight:600;

    margin-top:20px;

    transition:.3s;

}



#btnWhatsApp:hover{

    transform:translateY(-3px);

}



/* =====================================================
   RESPONSIVE DETAIL PRODUIT
===================================================== */


@media(max-width:800px){


    .footer-container{

        flex-direction:column;

        align-items:center;

    }



    .produit-detail-container{

        grid-template-columns:1fr;

        gap:25px;

    }



    #imagePrincipale{

        height:300px;

    }



    .produit-info{

        padding:20px;

    }



    .produit-info h1{

        font-size:24px;

    }



    .notification{

        right:10px;

        left:10px;

        width:auto;

    }


}
/* =====================================================
   BZ HUB - STYLE.CSS
   PARTIE 4/4
   Formulaires + Dashboard vendeur + Responsive final
===================================================== */


/* =====================================================
   FORMULAIRES
===================================================== */


form,
.mise-en-avant{

    width:100%;

    max-width:700px;

    margin:40px auto;

    background:white;

    padding:35px;

    border-radius:18px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

}



label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#444;

}



input,
select,
textarea{

    width:100%;

    padding:14px 16px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:15px;

    font-family:'Poppins',sans-serif;

    background:white;

    outline:none;

    transition:.3s;

}



textarea{

    min-height:130px;

    resize:vertical;

}



input:focus,
select:focus,
textarea:focus{

    border-color:var(--rouge-bz);

    box-shadow:

    0 0 0 3px rgba(91,0,0,.12);

}



input[type="file"]{

    padding:12px;

}



/* Bouton publication */


.mise-en-avant button{

    width:100%;

    padding:15px;

    background:var(--rouge-bz);

    color:white;

    border:none;

    border-radius:10px;

    font-weight:600;

    font-size:16px;

    transition:.3s;

}



.mise-en-avant button:hover{

    background:var(--rouge-hover);

    transform:translateY(-2px);

}



/* =====================================================
   DASHBOARD VENDEUR
===================================================== */


.dashboard-cards{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(230px,1fr));

    gap:25px;

    margin:40px 0;

}



.dashboard-cards .card{

    background:white;

    padding:30px;

    text-align:center;

    border-radius:18px;

    box-shadow:

    0 5px 20px rgba(0,0,0,.08);

}



.dashboard-cards h3{

    color:var(--rouge-bz);

    font-size:18px;

    margin-bottom:15px;

}



.dashboard-cards p{

    font-size:35px;

    font-weight:700;

    color:#222;

}



/* =====================================================
   CARTE GENERALE
===================================================== */


.card{

    background:white;

    border-radius:18px;

    padding:25px;

    box-shadow:

    0 5px 20px rgba(0,0,0,.08);

}



/* =====================================================
   ABONNEMENT
===================================================== */


.abonnement-card{

    max-width:500px;

    margin:40px auto;

    text-align:center;

}



.abonnement-card h3{

    color:var(--rouge-bz);

    font-size:24px;

}



.abonnement-card p{

    margin:15px 0;

    color:#555;

}



.abonnement-card span,
.abonnement-card b{

    color:var(--rouge-bz);

    font-weight:700;

}



/* =====================================================
   PRODUITS VENDEUR
===================================================== */


#mesProduits{

    margin-top:30px;

}



#mesProduits .product-card button{

    margin:10px;

    padding:10px;

    border-radius:8px;

    background:var(--rouge-bz);

    color:white;

}



#mesProduits .product-card button:hover{

    background:var(--rouge-hover);

}



/* =====================================================
   SUPPRESSION DES FLECHES PRIX
===================================================== */


/* Chrome Edge Safari */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{

    -webkit-appearance:none;

    margin:0;

}


/* Firefox */

input[type="number"]{

    appearance:textfield;

    -moz-appearance:textfield;

}



/* =====================================================
   ANIMATIONS
===================================================== */


.product-card,
.card,
.mise-en-avant{

    animation:apparition .4s ease;

}



@keyframes apparition{


    from{

        opacity:0;

        transform:translateY(15px);

    }


    to{

        opacity:1;

        transform:translateY(0);

    }

}



/* =====================================================
   TABLETTE
===================================================== */


@media(max-width:900px){


    main{

        width:92%;

    }



    .dashboard-cards{

        grid-template-columns:

        repeat(2,1fr);

    }


}



/* =====================================================
   TELEPHONE
===================================================== */


@media(max-width:600px){


    main{

        width:94%;

        margin:25px auto;

    }



    .navbar{

        padding:12px 15px;

    }



    .logo{

        font-size:20px;

    }



    .header-right{

        gap:10px;

    }

    .profil strong{
    display:inline;
    font-size:12px;
    white-space:nowrap;
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
    }



    .search-bar{

        width:95%;

    }



    .dashboard-cards{

        grid-template-columns:1fr;

        gap:15px;

    }



    .dashboard-cards p{

        font-size:28px;

    }



    form,
    .mise-en-avant{

        padding:20px;

        border-radius:14px;

    }



    input,
    select,
    textarea{

        font-size:16px;

    }



    .btn-ajouter{

        width:100%;

    }



}



/* =====================================================
   PETITS TELEPHONES
===================================================== */


@media(max-width:400px){


    .logo span{

        font-size:17px;

    }



    .product-grid{

        grid-template-columns:

        repeat(2,1fr);

    }



    .product-card img{

        height:130px;

    }



    .product-card h3{

        font-size:13px;

    }


}
/* ===========================================
   PAGE ADMINISTRATION
===========================================*/

/* Header */

.amazon-header{
    background:var(--rouge-bz);
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 30px;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 4px 15px rgba(0,0,0,.15);
}

.amazon-header .logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:26px;
    font-weight:700;
}

.user-menu{
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.user-menu a,
.user-menu button{
    background:white;
    color:var(--rouge-bz);
    padding:10px 18px;
    border-radius:10px;
    font-weight:600;
    border:none;
    transition:.3s;
}

.user-menu a:hover,
.user-menu button:hover{
    background:var(--rouge-hover);
    color:#fff;
    transform:translateY(-2px);
}

/* Hero */

.hero-banner{
    background:linear-gradient(135deg,#5b0000,#870000);
    color:white;
    text-align:center;
    padding:60px 20px;
    border-radius:0 0 25px 25px;
    margin-bottom:40px;
}

.hero-banner h1{
    font-size:38px;
    margin-bottom:10px;
}

.hero-banner p{
    font-size:18px;
    opacity:.9;
}

/* Cartes statistiques */

.avantages{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    margin-bottom:40px;
}

.avantages .card{
    background:white;
    border-radius:18px;
    padding:30px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.avantages .card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.avantages .card h3{
    color:var(--rouge-bz);
    margin:15px 0;
}

.avantages .card p{
    font-size:32px;
    font-weight:700;
}

/* Recherche */

#rechercheUtilisateur{
    width:100%;
    padding:15px 20px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:16px;
    margin-bottom:25px;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
}

#rechercheUtilisateur:focus{
    border-color:var(--rouge-bz);
    box-shadow:0 0 0 3px rgba(91,0,0,.15);
}

/* Sections */

.mise-en-avant{
    max-width:100%;
    background:white;
    border-radius:18px;
    padding:30px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.mise-en-avant h2{
    color:var(--rouge-bz);
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:2px solid #eee;
}

/* Liste */

#listeVendeurs,
#listeClients,
#listeCommandes{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.item-admin{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f8f8f8;
    border-radius:12px;
    padding:15px 20px;
    transition:.3s;
}

.item-admin:hover{
    background:#fff;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.item-admin button{
    background:var(--rouge-bz);
    color:white;
    padding:8px 14px;
    border:none;
    border-radius:8px;
    font-weight:600;
}

.item-admin button:hover{
    background:var(--rouge-hover);
}

/* Footer */

footer{
    margin-top:60px;
    background:var(--rouge-bz);
    color:white;
    text-align:center;
    padding:20px;
}

/* Responsive */

@media(max-width:768px){

    .amazon-header{
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

    .user-menu{
        justify-content:center;
    }

    .hero-banner h1{
        font-size:28px;
    }

    .hero-banner p{
        font-size:15px;
    }

    .avantages{
        grid-template-columns:1fr;
    }

    .item-admin{
        flex-direction:column;
        gap:10px;
        align-items:flex-start;
    }

    .item-admin button{
        width:100%;
    }

}
/* ===========================================
   DETAIL PRODUIT - RESPONSIVE MOBILE
=========================================== */

.produit-detail-container{
    width:100%;
    max-width:1400px;
    margin:40px auto;
    padding:20px;
}

.produit-images{
    width:100%;
}

.produit-images img{
    width:100%;
    height:auto;
    display:block;
}

@media (max-width:768px){

    .produit-detail-container{
        display:flex;
        flex-direction:column;
        gap:20px;
        padding:15px;
        margin:20px auto;
    }

    .produit-images{
        padding:15px;
    }

    #imagePrincipale{
        width:100%;
        height:280px;
        object-fit:contain;
    }

    .produit-info{
        width:100%;
        padding:20px;
    }

    .produit-info h1{
        font-size:24px;
    }

    .produit-info .prix{
        font-size:28px;
    }

    .produit-info p{
        font-size:16px;
    }

    #btnWhatsApp{
        width:100%;
        padding:16px;
        font-size:17px;
    }
}