/*==================================================
                PRODUIT.CSS
                BLOC 1
==================================================*/


/*==================================================
VARIABLES
==================================================*/

:root{

    --primary:#23ABFF;

    --primary-dark:#0F6CBD;

    --secondary:#ff6b35;

    --success:#27ae60;

    --danger:#e74c3c;

    --dark:#1f2937;

    --gray:#6b7280;

    --light:#f5f7fb;

    --white:#ffffff;

    --shadow:0 15px 40px rgba(0,0,0,.10);

    --radius:22px;

    --transition:.35s ease;

}


/*==================================================
RESET
==================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--light);

    color:var(--dark);

    line-height:1.6;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

}

button{

    font-family:inherit;

    cursor:pointer;

    border:none;

    outline:none;

}

.container{

    width:min(1200px,92%);

    margin:auto;

}


/*==================================================
HERO
==================================================*/

.hero{

    position:relative;

    min-height:520px;

    display:flex;

    align-items:center;

    overflow:hidden;

    color:#fff;

}

.hero-image{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}

.hero .overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

    135deg,

    rgba(15,108,189,.90),

    rgba(35,171,255,.75)

    );

}

.hero .container{

    position:relative;

    z-index:5;

}

.hero-content{

    max-width:760px;

}

.hero h1{

    font-size:58px;

    font-weight:800;

    margin:25px 0 15px;

    line-height:1.1;

}

.hero p{

    font-size:18px;

    opacity:.95;

    margin-bottom:40px;

}


/*==================================================
BOUTON RETOUR
==================================================*/

.back-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:14px 26px;

    border-radius:50px;

    background:rgba(255,255,255,.18);

    color:#fff;

    backdrop-filter:blur(12px);

    transition:var(--transition);

}

.back-btn:hover{

    background:#fff;

    color:var(--primary);

    transform:translateY(-2px);

}


/*==================================================
STATISTIQUES HERO
==================================================*/

.hero-stats{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

}

.hero-stats div{

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

    border-radius:18px;

    padding:22px;

    text-align:center;

}

.hero-stats strong{

    display:block;

    font-size:28px;

    font-weight:800;

}

.hero-stats span{

    font-size:14px;

    opacity:.95;

}


/* =========================================================
   ZONE RECHERCHE
========================================================= */

.search-zone {
    margin-top: -55px;
    position: relative;
    z-index: 10;
    margin-bottom: 70px;
}

.search-form {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);

    display: flex;
    align-items: center;
    gap: 18px;

    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   CHAMP RECHERCHE
========================================================= */

.search-form input {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;
    max-width: 100%;

    height: 60px;
    box-sizing: border-box;

    border: 2px solid #eef2f7;
    border-radius: 15px;

    padding: 0 20px;

    font-size: 16px;
    font-family: inherit;

    outline: none;

    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(35,171,255,.10);
}

/* =========================================================
   SELECT
========================================================= */

.search-form select {
    flex: 0 0 230px;

    width: 230px;
    height: 60px;

    box-sizing: border-box;

    border: 2px solid #eef2f7;
    border-radius: 15px;

    padding: 0 18px;

    background: #fff;

    font-size: 16px;
    font-family: inherit;

    outline: none;

    cursor: pointer;

    transition: var(--transition);
}

.search-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(35,171,255,.10);
}

/* =========================================================
   BOUTON
========================================================= */

.search-form button {
    flex: 0 0 auto;

    height: 60px;

    padding: 0 32px;

    border: none;
    border-radius: 15px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition: var(--transition);
}

.search-form button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(35,171,255,.35);
}


/* =========================================================
   TABLETTE
   992px → 769px
========================================================= */

@media (max-width: 991px) {

    .search-zone {
        margin-top: -35px;
        margin-bottom: 50px;
    }

    .search-form {
        padding: 20px;

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 14px;
    }

    /* Recherche prend toute la première ligne */
    .search-form input {
        grid-column: 1 / -1;

        width: 100%;
        min-width: 0;
        max-width: none;

        height: 56px;

        font-size: 16px;

        padding: 0 17px;
    }

    /* Select */
    .search-form select {
        width: 100%;

        min-width: 0;

        height: 56px;

        font-size: 16px;
    }

    /* Bouton */
    .search-form button {
        width: 100%;

        height: 56px;

        padding: 0 20px;
    }
}


/* =========================================================
   PETIT TABLETTE / GRAND TÉLÉPHONE
   768px → 577px
========================================================= */

@media (max-width: 768px) {

    .search-zone {
        margin-top: -25px;
        margin-bottom: 40px;
    }

    .search-form {
        padding: 17px;

        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 12px;

        border-radius: 18px;
    }

    .search-form input,
    .search-form select,
    .search-form button {

        width: 100% !important;

        max-width: 100% !important;
        min-width: 0 !important;

        flex: none !important;

        height: 54px;
    }

    .search-form input {
        font-size: 16px;
        padding: 0 16px;
    }

    .search-form select {
        padding: 0 16px;
        font-size: 16px;
    }

    .search-form button {
        font-size: 15px;
    }
}


/* =========================================================
   TÉLÉPHONE
   576px et moins
========================================================= */

@media (max-width: 576px) {

    .search-zone {
        margin-top: -15px;
        margin-bottom: 30px;
    }

    .search-zone .container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .search-form {

        width: 100%;

        padding: 14px;

        gap: 10px;

        border-radius: 16px;

        box-sizing: border-box;
    }

    .search-form input {

        width: 100% !important;
        height: 54px !important;

        min-height: 54px;
        max-width: 100% !important;

        padding: 0 15px !important;

        font-size: 16px !important;

        border-radius: 13px;
    }

    .search-form select {

        width: 100% !important;
        height: 54px !important;

        min-height: 54px;

        padding: 0 14px !important;

        font-size: 16px !important;

        border-radius: 13px;
    }

    .search-form button {

        width: 100% !important;
        height: 54px !important;

        min-height: 54px;

        padding: 0 15px !important;

        font-size: 15px;

        border-radius: 13px;
    }
}


/* =========================================================
   TRÈS PETITS TÉLÉPHONES
   400px et moins
========================================================= */

@media (max-width: 400px) {

    .search-zone .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .search-form {
        padding: 12px;
        gap: 9px;
    }

    .search-form input,
    .search-form select,
    .search-form button {

        height: 52px !important;
        min-height: 52px !important;
    }

    .search-form input {
        font-size: 16px !important;
    }
}
/*==================================================
PRODUITS
==================================================*/

.products{

    padding:20px 0 90px;

}


.products-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:35px;

}


/*==================================================
CARTE PRODUIT
==================================================*/

.product-card{

    position:relative;

    background:#fff;

    border-radius:25px;

    overflow:hidden;

    box-shadow:0 15px 45px rgba(0,0,0,.08);

    transition:.45s;

    display:flex;

    flex-direction:column;

    opacity:0;

    transform:translateY(60px);

}


.product-card.visible{

    opacity:1;

    transform:translateY(0);

}


.product-card:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 55px rgba(0,0,0,.15);

}

.product-image {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fb;
}

.product-image img {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}


/*==================================================
BADGE POPULAIRE
==================================================*/

.badge{

    position:absolute;

    top:18px;

    left:18px;

    background:linear-gradient(
    135deg,
    #ff7a18,
    #ff3d00
    );

    color:#fff;

    padding:8px 18px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

    z-index:5;

    display:flex;

    align-items:center;

    gap:8px;

    box-shadow:0 10px 20px rgba(255,90,0,.35);

}


/*==================================================
IMAGE
==================================================*/

.product-image{

    position:relative;

    height:240px;

    overflow:hidden;

    background:#f5f5f5;

}


.product-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.6s;

}


.product-card:hover .product-image img{

    transform:scale(1.08);

}


/*==================================================
CONTENU
==================================================*/

.product-body{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:28px;

}


.product-body h3{

    font-size:23px;

    font-weight:700;

    margin-bottom:15px;

    color:#222;

}


.product-body p{

    color:#666;

    font-size:15px;

    line-height:1.7;

    margin-bottom:25px;

    flex:1;

}


/*==================================================
PRIX
==================================================*/

.price{

    font-size:30px;

    font-weight:800;

    color:#23ABFF;

    margin-bottom:25px;

}


/*==================================================
FORMULAIRE
==================================================*/

.product-form{

    margin-top:auto;

}


/*==================================================
BOUTON AJOUT PANIER
==================================================*/

.btn-order{

    width:100%;

    height:58px;

    border:none;

    border-radius:15px;

    background:linear-gradient(
    135deg,
    #23ABFF,
    #0F6CBD
    );

    color:#fff;

    font-size:16px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    cursor:pointer;

    transition:.35s;

}


.btn-order:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 35px rgba(35,171,255,.35);

}


.btn-order:active{

    transform:scale(.97);

}


.btn-order i{

    font-size:18px;

}


/*==================================================
BOUTON EN COURS
==================================================*/

.btn-order:disabled{

    opacity:.85;

    cursor:not-allowed;

}


/*==================================================
AUCUN PRODUIT
==================================================*/

.no-product{

    background:#fff;

    border-radius:25px;

    padding:70px 40px;

    text-align:center;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.no-product i{

    font-size:70px;

    color:#23ABFF;

    margin-bottom:25px;

}

.no-product h2{

    font-size:32px;

    font-weight:800;

    margin-bottom:15px;

}

.no-product p{

    color:#777;

    font-size:17px;

    margin-bottom:35px;

}


/*==================================================
SUGGESTIONS
==================================================*/

.suggestions{

    margin-top:40px;

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:15px;

}

.suggestions h3{

    width:100%;

    margin-bottom:15px;

    font-size:22px;

}

.suggestion-item{

    display:flex;

    align-items:center;

    gap:10px;

    padding:14px 22px;

    border-radius:50px;

    background:#f5f7fb;

    color:#333;

    font-weight:600;

    transition:.35s;

}

.suggestion-item:hover{

    background:#23ABFF;

    color:#fff;

    transform:translateY(-3px);

}

.suggestion-item i{

    font-size:16px;

}


/*==================================================
PANIER FLOTTANT
==================================================*/

.floating-cart{

    position:fixed;

    right:30px;

    bottom:35px;

    width:72px;

    height:72px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #23ABFF,
        #0F6CBD
    );

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

    box-shadow:0 20px 40px rgba(35,171,255,.35);

    z-index:999;

    transition:.35s;

}

.floating-cart:hover{

    transform:translateY(-6px);

    color:#fff;

}

.floating-cart span{

    position:absolute;

    top:-6px;

    right:-6px;

    width:28px;

    height:28px;

    border-radius:50%;

    background:#ff5722;

    color:#fff;

    font-size:13px;

    font-weight:700;

    display:flex;

    justify-content:center;

    align-items:center;

}


/*==================================================
BOUTON RETOUR HAUT
==================================================*/

.top-button{

    position:fixed;

    left:30px;

    bottom:35px;

    width:58px;

    height:58px;

    border-radius:50%;

    background:#23ABFF;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    box-shadow:0 15px 35px rgba(35,171,255,.35);

    opacity:0;

    visibility:hidden;

    transform:translateY(25px);

    transition:.35s;

    z-index:999;

}

.top-button.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.top-button:hover{

    background:#0F6CBD;

}


/*==================================================
TOAST
==================================================*/

.toast{

    position:fixed;

    top:30px;

    right:30px;

    min-width:280px;

    background:#27ae60;

    color:#fff;

    padding:18px 22px;

    border-radius:15px;

    display:flex;

    align-items:center;

    gap:12px;

    font-weight:600;

    box-shadow:0 18px 35px rgba(0,0,0,.20);

    transform:translateX(120%);

    transition:.40s;

    z-index:9999;

}

.toast.show{

    transform:translateX(0);

}

.toast i{

    font-size:22px;

}


/*==================================================
ANIMATIONS
==================================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.visible{

    animation:fadeUp .7s ease forwards;

}


/*==================================================
RESPONSIVE
==================================================*/


/*==========================================
ECRANS < 1200px
==========================================*/

@media(max-width:1200px){

.hero h1{

    font-size:48px;

}

.hero-stats{

    grid-template-columns:repeat(2,1fr);

}

.products-grid{

    grid-template-columns:repeat(3,1fr);

}

}


/*==========================================
TABLETTES
==========================================*/

@media(max-width:992px){

.hero{

    min-height:470px;

    text-align:center;

}

.hero-content{

    margin:auto;

}

.hero h1{

    font-size:42px;

}

.hero p{

    font-size:17px;

}

.hero-stats{

    grid-template-columns:repeat(2,1fr);

}

.search-form{

    flex-direction:column;

    align-items:stretch;

}

.search-form input,

.search-form select,

.search-form button{

    width:100%;

}

.products-grid{

    grid-template-columns:repeat(2,1fr);

}

.product-image{

    height:220px;

}

}


/*==========================================
MOBILE
==========================================*/

@media(max-width:768px){

.hero{

    min-height:430px;

    padding:70px 0;

}

.hero h1{

    font-size:34px;

}

.hero p{

    font-size:16px;

}

.hero-stats{

    grid-template-columns:1fr;

    gap:15px;

}

.hero-stats div{

    padding:18px;

}

.back-btn{

    padding:12px 20px;

    font-size:14px;

}

.search-zone{

    margin-top:-35px;

}

.search-form{

    padding:18px;

}

.search-form input,

.search-form select,

.search-form button{

    height:55px;

    font-size:15px;

}

.products-grid{

    grid-template-columns:1fr;

    gap:25px;

}

.product-card{

    border-radius:20px;

}

.product-image{

    height:240px;

}

.product-body{

    padding:22px;

}

.product-body h3{

    font-size:22px;

}

.product-body p{

    font-size:15px;

}

.price{

    font-size:28px;

}

.btn-order{

    height:55px;

    font-size:15px;

}

.floating-cart{

    width:65px;

    height:65px;

    right:20px;

    bottom:20px;

    font-size:24px;

}

.top-button{

    left:20px;

    bottom:20px;

    width:52px;

    height:52px;

}

.toast{

    left:15px;

    right:15px;

    min-width:auto;

    width:auto;

    top:15px;

}

.no-product{

    padding:50px 20px;

}

.no-product h2{

    font-size:26px;

}

.no-product p{

    font-size:15px;

}

}


/*==========================================
PETITS MOBILES
==========================================*/

@media(max-width:480px){

.hero h1{

    font-size:28px;

}

.hero p{

    font-size:15px;

}

.hero-stats strong{

    font-size:24px;

}

.product-image{

    height:210px;

}

.product-body{

    padding:18px;

}

.product-body h3{

    font-size:20px;

}

.price{

    font-size:24px;

}

.btn-order{

    height:52px;

    font-size:14px;

}

.search-form{

    padding:15px;

}

.search-form input,

.search-form select,

.search-form button{

    height:50px;

}

}


/*==================================================
SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#23ABFF;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}


/*==================================================
SELECTION
==================================================*/

::selection{

    background:#23ABFF;

    color:#fff;

}


/*==================================================
FOCUS
==================================================*/

button:focus,

input:focus,

select:focus{

    outline:none;

}


/*==================================================
TRANSITIONS
==================================================*/

a,

button,

input,

select,

.product-card,

.product-image img,

.badge,

.btn-order,

.floating-cart,

.top-button{

    transition:all .35s ease;

}












/* ============================================================
   IMAGE PRODUIT CLIQUABLE
============================================================ */

.product-click-image {
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.product-click-image:hover {
    transform: scale(1.03);
}


/* ============================================================
   MODAL IMAGE
============================================================ */

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.88);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    cursor: zoom-out;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}


/* Conteneur de l'image */

.image-modal-content {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}


/* Image en taille complète */

.image-modal-content img {
    display: block;

    max-width: 95vw;
    max-height: 92vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55);

    user-select: none;

    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.image-modal.active .image-modal-content img {
    transform: scale(1);
}


/* Bouton fermer */

.image-modal-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);
    color: #fff;

    font-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 10;

    backdrop-filter: blur(10px);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}


/* Bloquer le défilement derrière le modal */

body.modal-image-open {
    overflow: hidden;
}


/* Mobile */

@media (max-width: 768px) {

    .image-modal {
        padding: 15px;
    }

    .image-modal-content img {
        max-width: 96vw;
        max-height: 88vh;
        border-radius: 8px;
    }

    .image-modal-close {
        top: 12px;
        right: 12px;

        width: 42px;
        height: 42px;
    }
}