*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}
h1{
    text-align: center;
    font-size: 10vw;
}
.block .banner .banner-image{
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 0;
}
.cart-icon, .banner-image{
    position: absolute;
}

/*Reset CSS*/
/*Reset CSS*/
*{
    margin: 0px;
    padding: 0px;
    font-family: Avenir, sans-serif;
}
nav{
    width: 100%;
    margin: 0 auto;
    background-color: white;
    position: relative;
    top: 0;
}
.conteneur-nav{
    position: relative;
    width: 100%;
    z-index: 5;
    top: 0px;
}

nav input[type=checkbox]{
    display: none;
}
nav label{
    display: inline-block;
    width: 100%;
    padding: 10px 0px;
    text-align: center;
    background-color: #BF8013;
}
nav label img{
    height: 3rem;
}
nav ul{
    display: none;
    list-style-type: none;
    background-color: #555;
}
nav input[type=checkbox]:checked + ul{
    display: flex;
    flex-flow : column wrap;
}
nav ul li{
    flex: 1 1 auto;
    text-align: center;
}
nav > div > ul > li > a{
    color: #000000;;
}
nav a{
    display: block;
    text-decoration: none;
    color: black;
    padding: 10px 0px;
}
.sous{
    display: flex;
    flex-flow: column wrap;
}

.sous li{
    flex: 1 1 auto;
    text-align: left;
}
.sous a{
    padding: 10px;
    background-color: RGBa(200,200,200,0.8);
}
.products-preview {
    position: fixed; /* Assurez-vous qu'il reste fixe en haut */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.8); /* Fond sombre déjà présent */
    display: none; /* Par défaut, masqué */
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Une valeur très élevée pour passer au-dessus de tout */
}

@media screen and (min-width: 980px){
    .conteneur-nav{
        position: absolute;
        height:20%;
    }
    nav label, nav input{
        display: none;
    }
    nav input[type=checkbox]:checked + ul, nav ul{
        display: flex;
        flex-flow: row wrap;
        background-color: transparent;
    }
    nav ul li{
        position: relative;
    }
    nav > div > ul > li > a{
        color: #ffffff;
        font-size: initial;
        margin-top: initial;

    }
    nav a{
        border-bottom: 2px solid transparent;
    }
    nav a:hover{
        color: orange;
        border-bottom: 2px solid gold;

    }
    .sous{
        display: none;
        box-shadow: 0px 1px 2px #CCC;
        background-color: white;
        position: absolute;
        width: 180%;
        font-size: 2vw;
    }
    nav > div > ul li:hover .sous{
        display: flex;
        flex-flow: column wrap;
    }
    .sous a{
        border-bottom: none;
        background-color: transparent;
        color: black;

    }
    .sous a:hover{
        border-bottom: none;
        background-color: RGBa(200,200,200,0.1);
    }
    .deroulant > a::after{
        content:" ▼";
        font-size: 12px;
    }
    nav > div > ul > li > a{
        color: #000000;
        font-size: 2vw;
        margin-top: -7vw;

    }

}









.baby {
    float: right;
    position: relative;
    top: 6.25rem;
    left: 18.75rem;
    z-index: 999;
}
.baby span {
    visibility: hidden;
}
.baby img:hover + span {
    visibility: visible;
}
.enfants {
     float: right;
     position: relative;
     top: 6.25rem;
     left: 25rem;
    z-index: 999;
 }
.enfants span {
    visibility: hidden;
}
.enfants img:hover + span {
    visibility: visible;
}
.bien {
    float: right;
    position: relative;
    top: 6.25rem;
    left: 31.25rem;
    z-index: 999;
}
.bien span {
    visibility: hidden;
}
.bien img:hover + span {
    visibility: visible;
}
.maison {
    float: right;
    position: relative;
    top: 6.25rem;
    left: 25rem;
    z-index: 999;
}
.maison span {
    visibility: hidden;
}
.maison img:hover + span {
    visibility: visible;
}
.sac {
    float: right;
    position: relative;
    top: 6.25rem;
    left: 18.75rem;
    z-index: 999;
}
.sac span {
    visibility: hidden;
}
.sac img:hover + span {
    visibility: visible;
}
.utile {
    float: right;
    position: relative;
    top: 6.25rem;
    left: 31.25rem;
    z-index: 99;
}
.utile span {
    visibility: hidden;
}
.utile img:hover + span {
    visibility: visible;
}



.bavoirs {
    float: right;
    position: relative;
    top: 6.25rem;
    left: 25rem;
    z-index: 999;
}
.bavoirs span {
    visibility: hidden;
}
.bavoirs img:hover + span {
    visibility: visible;
}
.chausson {
    float: right;
    position: relative;
    top: 6.25rem;
    left: 18.75rem;
    z-index: 999;
}
.chausson span {
    visibility: hidden;
}
.chausson img:hover + span {
    visibility: visible;
}

.panier{
    float: right;
    position: relative;
    top: 3.125rem;
    left: 18.75rem;
    z-index: 999;
    color: #BF8013;
}

/* partie carte produit*/
html
{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: #eee;
}

.container{
    max-width: 75rem;
    margin:0 auto;
    padding:3rem 2rem;
    z-index: 0;

}

.container .title{
    font-size: 3.5rem;
    color:#fd4646;
    margin-bottom: 3rem;
    text-transform: none;
    text-align: center;
    z-index: 0;
    margin-top: 0rem;
}

.container .products-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap:2rem;
}

.container .products-container .product{
    text-align: center;
    padding:3rem 2rem;
    background: #fff;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
    outline: .1rem solid #BF8013;
    outline-offset: -1.5rem;
    cursor: pointer;
}

.container .products-container .product:hover{
    outline: .2rem solid #222;
    outline-offset: 0;
}

.container .products-container .product img{
    height: 25rem;
}

.container .products-container .product:hover img{
    transform: scale(.9);
}

.container .products-container .product h3{
    font-family: "Gabriola", Serif;
    padding:.5rem 0;
    font-size: 2rem;
    color:#444;
}

.container .products-container .product:hover h3{
    color:#BF8013;
}

.container .products-container .product .price{
    font-size: 2rem;
    color:#444;
}

.products-preview{
    position: fixed;
    top:0; left:0;
    min-height: 100vh;
    width: 100%;
    background: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
}

.products-preview .preview{
    display: none;
    padding:2rem;
    text-align: center;
    background: #fff;
    position: absolute;
    z-index: 0;
    margin:2rem;
    width: 40rem;
}

.products-preview .preview.active{
    display: inline-block;
}

.products-preview .preview img{
    height: 30rem;
}

.products-preview .preview .fa-times{
    position: absolute;
    top:1rem; right:1.5rem;
    cursor: pointer;
    color:#444;
    font-size: 4rem;
}

.products-preview .preview .fa-times:hover{
    transform: rotate(90deg);
}

.products-preview .preview h3{
    color:#444;
    padding:.5rem 0;
    font-size: 2.5rem;
}

.products-preview .preview .stars{
    padding:1rem 0;
    font-size: 1.7rem;
}

.products-preview .preview .stars i{
    color:#27ae60;
}

.products-preview .preview .stars span{
    color:#999;
}

.products-preview .preview p{
    line-height: 1.5;
    padding:1rem 0;
    font-size: 1.6rem;
    color:#777;
}

.products-preview .preview .price{
    padding:1rem 0;
    font-size: 2.5rem;
    color:#27ae60;
}
.products-preview .preview .panier{
    padding:1rem 0;
    font-size: 1.5rem;
    color:#171427;
    float:left;
    margin-left: -7rem;
    margin-top: -5rem;
}


.products-preview .preview .button{
    display: flex;
    gap:1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.products-preview .preview .button a{
    flex:1 1 16rem;
    padding:1rem;
    font-size: 1.8rem;
    color:#444;
    border:.1rem solid #444;
}

.products-preview .preview .button a.cart{
    background: #444;
    color:#fff;
}

.products-preview .preview .button a.cart:hover{
    background: #111;
}

.products-preview .preview .button a.buy:hover{
    background: #444;
    color:#fff;
}
/* fin partie carte produit*/

/* partie carte produit pour permettre la transformation sur différent écran*/




.container .products-container {
    display: grid;
    grid-template-columns: repeat(1, 33rem); /* 3 colonnes de tailles égales */
    gap: 2rem; /* Conserve l'espacement actuel entre les colonnes et les lignes */
}
@media screen and (min-width: 980px){
    .container .products-container {
        grid-template-columns: repeat(3, 42rem);

    }
}

.container .products-container .rond-image {
    text-align: center;
    padding: 1rem; /* Ajustement des marges internes */
    background: transparent;
    box-shadow: transparent;
    outline-offset: -1.5rem;
    cursor: pointer;
    width: 100%;
}

.container .products-container .rond-image img {
    max-width: 60%; /* Réduit la taille des images (par rapport à leur conteneur) */
    height: auto; /* Maintient les proportions des images */
    display: block; /* Supprime les espaces blancs sous les images */
    margin: 0 auto; /* Centre les images dans leur conteneur */
}

.container .products-container .rond-image:hover img {
    transform: scale(0.9); /* Effet au survol */
}

.container .products-container .rond-image h3 {
    font-family: "Gabriola", Serif;
    padding: 0.5rem 0;
    font-size: 2rem;
    color: #444;
}

.container .products-container .rond-image:hover h3 {
    color: #BF8013;
}




.footer{
    margin-top: 50rem;
}
/* fin partie carte produit pour permettre la transformation sur différent écran*/

/* Styles pour le conteneur du panier */











body { font-family: Arial, sans-serif; }
.product { margin: 10px; padding: 10px; border: 1px solid #ccc; display: inline-block; }

/* Styles pour la cart */
#cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#cart-cart {
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    width: 600px;

    text-align: center;
    z-index: 1001;
}
#cart-cart button { margin-top: 10px; }
#cart-button {
    position: fixed;
    top: 22vw;
    right: 5vw;
    width: 8vw;
    height: 8vw;
    background-image:url('caddie.png');
    background-size: cover;  /* Couvre toute la zone du conteneur */
    background-position: center;
    cursor: pointer;
    z-index: 1000;
}
#cart-button:hover {
    border: 2px solid gold;
}





.popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}



#cart {
    font-size: 18px; /* Augmente la taille du texte */
    padding: 10px;
}

#cart div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

#cart button {
    font-size: 16px;
    padding: 5px 10px;
    background-color: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#cart button:hover {
    background-color: #cc0000;
}

/* Page contact */
#contact{
    color: white;
    font-size: 200%;
    background-color: rosybrown;
    padding: 0.625rem;
    text-align: center;

}
.form-control{
    font-size: 200%;
}





.error-message {
    color: red;
    font-size: 14px;
}

.submit-button {
    background-color: #007BFF;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #0056b3;
}

















#cart-cart h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

#cart {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

#cart div {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

#cart div button {
    background-color: #ff6b6b;
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

#cart div button:hover {
    background-color: #ff3b3b;
}

#cart div p {
    margin: 0;
}

/* Close Button Styles */
.close-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.close-btn:hover {
    background-color: #555;
}

/* Payment Form Styles */
#payment-form {
    margin-top: 30px;
}

#payment-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#payment-form input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.8);
    outline: none;
}

#card-element {
    margin-bottom: 20px;
}

/* Stripe Button Styles */
.stripe-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.stripe-button:hover {
    background-color: #218838;
}
/* Personnalisation des champs Stripe */
.StripeElement {
    padding: 10px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
}

/* Couleur et style lorsque l'élément est actif ou focus */
.StripeElement--focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.8);
}

/* Style des erreurs (quand la carte est invalide) */
.StripeElement--invalid {
    border-color: #e74c3c;
    background-color: #f8d7da;
}

/* Couleur de l'icône d'erreur */
.StripeElement--invalid .Icon {
    color: #e74c3c;
}

/* Personnalisation du placeholder */
.StripeElement--empty {
    color: #aaa;
}


/* Responsive Styles */
@media (max-width: 768px) {
    #cart-cart {
        width: 90%;
        padding: 20px;
    }

    #cart-button {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    #payment-form input {
        font-size: 14px;
    }

    .stripe-button {
        font-size: 16px;
    }
}


