﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background-color: #333333;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    margin: 0;
}

.logo-container a {
    display: inline-block;
}

.logo {
    max-height: 60px;
}

.language-bar {
    background-color: #555555;
    width: 100%;
    padding: 5px 0;
    text-align: center;
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 999;
    margin: 0;
}

.lang-button {
    background-color: #555555;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
    cursor: pointer;
}

    .lang-button:hover {
        background-color: #555555;
    }

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}




.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-details {
    padding: 20px;
    text-align: center;
}

.price {
    font-size: 1.2em;
    color: #f62929;
}

.quantity-input {
    width: 50px;
    padding: 5px;
    margin-bottom: 10px;
}

.btn {
    background-color: #f62929;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background-color: #e60023
    }

.site-footer {
    background-color: #333333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

.body-content {
    flex: 1;
    padding-top: 120px;
    padding-bottom: 50px;
}




#cartContainer {
    position: fixed;
    top: 20%;
    right: 0;
    width: 300px;
    background-color: #f8f9fa;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 10px 0 0 10px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

    #cartContainer.open {
        transform: translateX(0);
    }


    #cartContainer.partial-open {
        transform: translateX(75%); /* Le panier est partiellement visible (15% de son mouvement total) */
    }


    #cartContainer .close-cart-btn {
        background-color: transparent;
        color: #e60023;
        border: 2px solid #e60023;
        padding: 8px 16px;
        cursor: pointer;
        font-size: 12px;
        text-align: center;
        border-radius: 25px; /* Coins arrondis pour un effet élégant */
        margin-bottom: 15px;
        transition: all 0.3s ease;
        width: auto; /* Garder une taille adaptée au texte */
        display: inline-block;
        font-weight: bold;
    }

        #cartContainer .close-cart-btn:hover {
            background-color: #e60023;
            color: white;
            border-color: #c0392b; /* Changement de la bordure lors du survol */
        }



.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

    .cart-item h4 {
        margin: 0;
        font-size: 1.2em;
    }

    .cart-item button {
        background-color: #dc3545;
        border: none;
        color: white;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

        .cart-item button:hover {
            background-color: #c82333;
        }

#cartContainer .total {
    margin-top: 15px;
    font-size: 1.3em;
    font-weight: bold;
}

.cart-item img {
    max-width: 50px;
    margin-right: 10px;
}

.toggle-cart-btn {
    position: fixed;
    top: 50%;
    right: 0;
    background-color: #333333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

    .toggle-cart-btn:hover {
        background-color: #444444;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

.no-scroll {
    overflow: hidden;
}


/*Cadre affichage produit*/
.product-grid {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.category-section {
    width: 100%;
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-title {
    position: absolute;
    top: -1rem;
    left: 1rem;
    background-color: #ffffff;
    color: #333;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 300;
    font-size: 1.4em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrage des produits */
    gap: 20px; /* Espace entre les produits */
}

.product-item {
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 300px; /* Largeur fixe de chaque article */
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative; /* Pour fixer les éléments en bas */
    padding-bottom: 120px; /* Laisse de l'espace pour le champ de quantité et le bouton */
}

.quantity-input {
    position: absolute;
    bottom: 70px; /* Garde l'input de quantité au-dessus du bouton Add to Cart */
    left: 15px;
    right: 15px;
    height: 40px; /* Hauteur par défaut pour le champ input */
    padding: 5px 10px;
    border: 2px solid #333;
    border-radius: 4px; /* Légèrement arrondi */
    text-align: center;
    width: calc(100% - 30px); /* Pour prendre toute la largeur disponible avec un padding */
}

.quantity-select {
    position: absolute;
    bottom: 70px; /* Garde le select de quantité au-dessus du bouton Add to Cart */
    left: 15px;
    right: 15px;
    height: 32px; /* Hauteur ajustée pour le champ select */
    padding: 0; /* Enlever le padding interne pour que la hauteur soit plus proportionnée */
    border: 2px solid #333;
    border-radius: 4px; /* Légèrement arrondi */
    text-align: center;
    width: calc(100% - 30px); /* Pour prendre toute la largeur disponible avec un padding */
    appearance: none; /* Enlever le style par défaut du navigateur pour une meilleure adaptation */
    line-height: 1.5; /* Ajuster la hauteur des lignes à l'intérieur du select pour l'harmoniser */
}

.add-to-cart {
    position: absolute;
    bottom: 15px; /* Fixe le bouton à 15px du bas */
    left: 15px;
    right: 15px;
    padding: 15px;
    border: 2px solid #333; /* Bordure gris foncé */
    background-color: #333; /* Couleur de fond gris foncé */
    color: white;
    cursor: pointer;
    width: calc(100% - 30px); /* Pour prendre toute la largeur disponible avec un padding */
}
    .add-to-cart:hover {
        color: white;
    }

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    }

    .product-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid #ddd;
    }

.product-details {
    padding: 15px;
    text-align: center;
}

    .product-details h3 {
        font-size: 1.3em;
        color: #333;
        margin-bottom: 8px;
    }

    .product-details p {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

        .product-details p.description {
            text-align: justify;
        }

        .product-details p.price {
            text-align: center;
            font-weight: bold;
        }

.product-formats {
    display: flex;
    flex-direction: column; /* Arrange les boutons sur une seule colonne */
    align-items: center; /* Centre les boutons horizontalement */
    gap: 10px; /* Espace entre chaque bouton */
}

.format-button {
    display: block; /* Pour occuper toute la largeur */
    width: 100%; /* Prend toute la largeur du cadre */
    padding: 10px; /* Padding uniforme pour une présentation confortable */
    border: 1px solid #333; /* Bordure gris foncé pour un aspect classe */
    border-radius: 6px; /* Coins légèrement arrondis pour un look moderne */
    background-color: transparent; /* Fond transparent pour un aspect minimaliste */
    color: #333; /* Texte en gris foncé pour correspondre à la bordure */
    cursor: pointer;
    font-weight: 500; /* Poids du texte légèrement en gras pour une bonne visibilité */
    font-size: 1em; /* Taille de texte classique pour une apparence équilibrée */
    transition: all 0.3s ease; /* Transition douce pour les effets de survol */
    margin-bottom: 10px; /* Espace entre chaque bouton pour les séparer visuellement */
}

    .format-button:hover {
        background-color: #333; /* Fond gris foncé au survol */
        color: #ffffff; /* Texte blanc pour un bon contraste */
        box-shadow: 0 4px 8px rgba(51, 51, 51, 0.2); /* Ombre douce pour ajouter de la profondeur au survol */
    }

.selected-format {
    background-color: #333; /* Fond gris foncé pour indiquer qu'il est sélectionné */
    color: #ffffff; /* Texte blanc pour ressortir */
    box-shadow: 0 2px 6px rgba(51, 51, 51, 0.3); /* Légère ombre pour souligner le bouton sélectionné */
}




/*f62929 Css Fenetre paiement reussi*/
.payment-success-modal .payment-success-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.payment-success-header {
    background-color: #4CAF50;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.payment-success-title {
    font-weight: bold;
}

.payment-success-body .payment-success-message {
    font-size: 1rem;
    color: #555;
}

.payment-success-summary-title {
    font-weight: bold;
    color: #333;
}

.payment-success-summary {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

    .payment-success-summary li {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

        .payment-success-summary li:last-child {
            border-bottom: none;
        }

.payment-success-footer .payment-success-btn {
    background-color: #4CAF50;
    border: none;
}

/* Dates disponibles en vert */
.available-date a {
    background-color: #28a745 !important; /* Vert */
    color: white !important;
    border-radius: 50%;
}

/* Dates indisponibles grisées */
.unavailable-date a {
    background-color: #ccc !important; /* Gris clair */
    color: #666 !important;
    text-decoration: line-through;
}


.available-date {
    background-color: #28a745 !important; /* Vert */
    color: white !important; /* Texte blanc */
}

    .available-date:hover {
        background-color: #218838 !important; /* Vert plus foncé au survol */
    }



.confid {
    color: white;
    text-decoration: underline;
    text-decoration-color: white;
}
