.boutique-container {
    display: flex;
    flex-direction: row;
    /* Les types sont disposés horizontalement */
    gap: 10px;
    /* Espacement contrôlé entre les types */
    padding: 0;
    /* Suppression des espaces internes */
    overflow: hidden;
    /* Empêche tout défilement automatique */
    margin-left: 10px;
}

.type-container {
    display: flex;
    flex-direction: column;
    /* Le titre est en haut, et les cartes viennent en dessous */
    border-radius: 6px var(--shadow-color);
    /* Coins arrondis */
    padding: 1px;
    /* Suppression des espaces internes */
    margin: 0;
    /* Suppression des marges externes */
    width: 100%;
    /* Prend toute la largeur disponible */
    flex-grow: 1;
    /* Permet au conteneur de s'étendre pour occuper l'espace disponible */
}

.lien {
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--taille-text-pc);
    margin-left: 29px;
    top: 4px;
}


.cards-grid {
    display: flex;
    flex-direction: row;
    /* Les cartes s'affichent horizontalement */
    overflow-x: auto;
    /* Permet de défiler horizontalement si trop de cartes */
    gap: 2px;
    /* Espace entre les cartes */

}

.type-container h2 {
    margin-right: 1500px;
    padding: 0;
    margin-bottom: 1px;
    text-align: center;
    color: var(--text-color);
    font-size: var(--taille-titre-pc);
    font-weight: var(--text-gras);
}


.product-card {
    border: 1px solid;
    border-radius: 4px;
    width: 150px;
    height: 220px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.post-media-container {
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image qui occupe toute la carte */
.post-media-container img {
    width: 100%;
    height: 80%;
    object-fit: contain;
    border-radius: 10px;
    margin-top: -12px;
    /* Les bords arrondis correspondent à la carte */
}

.image-counter {
    position: relative;
    bottom: 98px;
    color: var(--titre-color);
    border-radius: 4px;
    font-size: var(--taille-text-pc);
    font-weight: var(--text-gras);
    left: 75px;
}

.product-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--titre-color);
    padding: 6px;
    font-size: var(--taille-text-pc);
}

.product-type {
    font-size: var(--taille-titre-pc);
    color: var(--text-color);
    margin-bottom: 3px;
    font-weight: var(--text-gras);

}




/* Masquer le modal par défaut */
#confirmationModal {
    display: none;
    /* Ne pas afficher par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-color);
    /* Fond semi-transparent */
    width: 300px;
    /* Largeur du modal */
    padding: 10px;
    /* Espacement autour du contenu */
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    /* Ombre douce */
    z-index: 9999;
    /* Assurez-vous que la modale est au-dessus des autres éléments */
}

/* Contenu de la modale */
.modal-content {
    background-color: var(--bg-color);
    padding: 20px;
    /* Espacement intérieur */
    border-radius: 8px;
    text-align: center;
    font-size: var(--taille-text-pc);
    /* Petite taille de police pour le texte */
}

/* Bouton de fermeture (X) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: var(--taille-icon-pc);
    color: var(--text-color);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--hover-bg);
    /* Change la couleur au survol */
}

/* Titres et textes dans la modale */
h2 {
    font-size: var(--taille-titre-pc);
    /* Taille du titre */
    margin-bottom: 15px;
    font-weight: normal;
    font-weight: var(--text-gras);
}

/* Boutons de confirmation et d'annulation */
button {
    padding: 8px 16px;
    font-size: var(--taille-text-pc);
    /* Petite taille de police */
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Bouton de confirmation */
.confirm-delete-btn {
    background-color: var(--bg-color);
    /* Vert pour la confirmation */
    color: var(--text-color);
}

.confirm-delete-btn:hover {
    background-color: var(--hover-bg);
    /* Vert plus foncé au survol */
}

/* Bouton d'annulation */
.cancel-delete-btn {
    background-color: var(--bg-color);
    /* Rouge pour annuler */
    color: var(--text-color);
}

.cancel-delete-btn:hover {
    background-color: var(--hover-bg);
    /* Rouge plus foncé au survol */
}

/* Conteneur pour le bouton et le dropdown */
.action-container {
    position: relative;
    /* Nécessaire pour positionner le dropdown */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    /* Espacement entre le bouton et le dropdown */
    margin-top: -8px;
    /* Ajustez selon vos besoins */
    background-color: var(--bg-color);

}

.supprimer-btn i {
    color: var(--text-color);
    font-size: var(--taille-icon-pc);
    background-color: none;
}

.action {
    font-size: 10px;
    line-height: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .boutique-container {
        padding: 0 !important;
        margin-left: 0 !important;
    }

    .lien {
        margin-left: 0 !important;
    }

   



    .action {
        font-size: var(--taille-icon-mo);
        padding: 5px 16px !important;

    }

    .product-card {
        width: 100px !important;
        height: 150px !important;
    }

    .product-image {
        height: 100%;
    }

    .product-details {
        padding: 0px;
    }

    .btn {
        padding: 4px 6px;
        font-size: 0.6em;
    }


}

@media (max-width: 480px) {


    .product-details {
        font-size: 0.5em;
    }

    .btn {
        font-size: 0.5em;
    }
}

/* === Grille des produits façon Instagram Reels === */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 💻 4 produits par ligne */
    gap: 2px;
    padding: 0px;
}

/* Responsive: 2 produits par ligne sur mobile */
@media (max-width: 768px) {
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.reel-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 5px var(--shadow-color);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}


.reel-card:hover {
    transform: scale(1.02);
}

.reel-card img,
.reel-card video {
    width: 100%;
    height: 180px;
    /* Valeur fixe et identique pour tous */
    object-fit: cover;
    /* ✅ Pour que l’image/vidéo remplisse sans se déformer */
    display: block;
    border-radius: 8px 8px 0 0;
    background-color: var(--bg-color);
    /* Optionnel : couleur de fond si media lent à charger */
}


.reel-info {
    padding: 6px;
    font-size: var(--taille-text-mo);
    text-align: center;
}



/* === Scroll plein écran (style Reels) === */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.produit-fullscreen {
    scroll-snap-align: start;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

/* === Media Affichage (carrousel ou single) === */
.media-principale,
.carousel-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
}

.media-slide {
    width: 100%;
    object-fit: cover;
    border-radius: 1px;
    height: 140px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.prev-btn,
.next-btn {
    background: var(--logo-color);
    color: var(--text-color);
    border: none;
    font-size: var(--taille-icon-mo);
    cursor: pointer;
    padding: 0 10px;
    pointer-events: auto;
}


/* === Infos et Détails === */
.produit-info {
    width: 100%;
    text-align: center;
    margin-bottom: -25px;
}


.chambre-details,
.tarifs {
    width: 100%;
    margin-top: 10px;
    padding: 0px;
    border-radius: 10px;
    margin-top: -56px;
    height: 39px;
}
.section-titles {
    font-weight: var(--text-gras);
    margin-bottom: 8px;
    color: var(--text-color);
    display: flex;
    justify-content: space-around;
    margin-top: 0px;
    color: var(--bg-color);
    font-size: var(--taille-text-pc);
}

.detail-item {
    margin-bottom: 4px;
}

/* === Responsive styles === */
@media (max-width: 768px) {
    .section-titles {
            margin-top: 15px;
        }
    .lien {
        font-size: var(--taille-text-mo)
    }

    .type-container h2 {

        font-size: var(--taille-titre-mo);
    }

    /* Bouton de fermeture (X) */
    .close-btn {

        font-size: var(--taille-icon-pc);
    }

    .image-counter {
        font-size: var(--taille-text-mo);
        line-height: 0px;
    }

    .product-details {
        font-size: var(--taille-text-mo);
    }

    .product-type {
        font-size: var(--taille-titre-mo);
    }
    .st{
        font-size: 9px;
    }
    /* Contenu de la modale */
    .modal-content {
        font-size: var(--taille-text-mo);
        /* Petite taille de police pour le texte */
    }

    /* Titres et textes dans la modale */
    h2 {
        font-size: var(--taille-titre-mo);
    }

    /* Boutons de confirmation et d'annulation */
    button {
        font-size: var(--taille-text-mo);

    }

    .supprimer-btn i {
        font-size: var(--taille-icon-mo);
    }

    .carousel-slide {
        min-width: 100%;
    }

    .media-principale,
    .carousel-container {
        max-width: 100%;
    }

    .produit-info h2 {
        font-size: 1.1rem;
    }

    .detail-item {
        font-size: 0.95rem;
    }

    .reserver-bouton {
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {

    .produit-info h2 {
        font-size: 1rem;
    }

    .detail-item {
        font-size: 0.9rem;
    }

    .reserver-bouton {
        font-size: 15px;
        padding: 7px 14px;
    }
}