main {
    padding: 32vw 0 0 0;
}

#presentation_salon {
    display: flex;
    flex-direction: row;
}

#presentation_salon img {
    height: 200px;
}

.back-photo {
    position: absolute;
    top: 0;
    max-height: 30vw;
    overflow: hidden;
    z-index: -1;
}

.back-photo img {
    top: -350px;
}

.back-photo img {
    object-fit: cover;
    width: 100%;
}

.text {
    margin: auto;
    color: rgb(95, 104, 88);
    font-weight: 400;
    letter-spacing: .02rem;
    line-height: 1.5;
    font-size: 17px;
}

.bottom-box-center {
    position: absolute;
    top: 30vw;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: auto;
    margin-right: auto;

    width: 40%;
    height: 7vw;
    background: #ffffff;
    padding: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.titre-event {
    text-align: center;
    font: 700 25px / 36px "Gilroy", "Helvetica", sans-serif;
    /*text-transform: uppercase;*/
    letter-spacing: 0.08em;
}

/*
.text-box {
    flex: none ;
    text-align: center;
    padding: 20px;
}

.text-box {
    font-size: 18px;
    color: #333;
    max-width: 400px;
    margin: 5% 7.5% 5% 2.5%;
    background: #F5F5DC;
    border-radius: 20px;
    padding: 20px;
}*/

.btn2 {
    background: #42c793;
    color: #000000;
    padding: 15px 25px;
    border: none;
    height: auto;
    width: 90%;
    border-radius: 7px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

.carousel-track {
    display: flex;
    position: absolute;
    height: 60%;
    transition: transform 0.5s ease-out;
}

.carousel-slide {
    /* La largeur sera définie en JS */
    height: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    flex: none; /* empêche le redimensionnement automatique */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /*  'contain' pour afficher l'image entière */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: auto;
    height: auto;
}

.detail-panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    transition: max-height 0.5s ease-out;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.detail-panel.open {
    max-height: initial;
}

.detail-content {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.detail-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.detail-image-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-info h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.detail-info p {
    line-height: 1.6;
    color: #666;
}

/* Style pour les images cliquables dans le carrousel */
.carousel-slide img {
    cursor: pointer;
    transition: transform 0.2s;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

/* Style pour le bouton de fermeture */
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777; /* Couleur grise */
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}

.close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Assurez-vous que le conteneur du contenu est en position relative */
.detail-content {
    display: flex;
    padding: 30px;
    gap: 30px;
    position: relative; /* Important pour le positionnement absolu du bouton */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a5c2e;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn {
    background-color: transparent;
    border: 1px solid #1a5c2e;
    color: #1a5c2e;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn {
    background-color: #1a5c2e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #164525;
}

@media (max-width: 768px) {
    .detail-content {
        flex-direction: column;
    }

    .detail-image-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 640px) {
    main {
        padding-top: 77vw;
        margin-top: 9vw;
    }

    .back-photo img {
        transform: translate(-25%,25%);
    }

    .bottom-box-center {
        top: 77vw;
        width: 50%;
        height: 15vw;
    }

    .modal-content {
        max-width: 90%;
    }

    .modal-text {
        width: 90%;
    }
}
