/*Background pour la page d'accueil*/
body {
    background-color: #f75904;
    background-image: url('../Images/menu-principal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Times New Roman', Times, serif;
    min-height: 100vh;
}

/* Overlay sombre */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);   /* ← 4ième paramètre de la paranthèse pour ajuster l'opacité */
    z-index: -1;
}

/*Logo pour le titre de la page*/
.logo {
    display: block;
    margin: 20px auto 40px auto;   
    max-width: 100%;               
    height: auto;
    max-height: 180px;            
}

/*Menu déroulant*/
.deroulant {
    display: inline-block;
    position: relative;
}

.deroulant .hamburger {
    background-color: #0a0a0a;
    color: rgb(237, 126, 7);
    font-size: 28px;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.deroulant .hamburger:hover {
    background-color: #d35908;
    color: white;
}


.deroulant .contenu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #0a0a0a;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    z-index: 100;
    margin-top: 8px;
    border-radius: 6px;
    overflow: hidden;
    
    /* Vitesse de transition */
    transition: all 0.25s ease;
    
    padding-top: 10px;
}

.deroulant:hover .contenu {
    visibility: visible;
    opacity: 1;
    margin-top: 8px;
}

.deroulant a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: rgb(237, 126, 7);
    font-size: 16px;
    transition: all 0.2s ease;
}

.deroulant a:hover {
    background-color: #d35908;
    color: white;
}

/* ===================== GALERIE ===================== */
/* ===================== SLIDER + LIGHTBOX ===================== */
.gallery-section {
    margin: 60px 0;
    padding: 0 20px;
}

.gallery-title {
    text-align: center;
    font-size: 2.8rem;
    color: rgb(252, 84, 0);
    margin-bottom: 40px;
    text-shadow: 0 0 15px #d35908;
}

.slider-container {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 3px solid #ff8c00;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 600px;           
    object-fit: scale-down;       /*Paramètre pour zoomer ou dézoomer les images*/
    object-position: contain;     /*Paramètre pour zoomer ou dézoomer les images*/
    cursor: contain;
}

/* Flèches */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: rgb(254, 79, 4);
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.prev-btn:hover, .next-btn:hover {
    background: #d35908;
}

/* Lightbox Orange */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border: 4px solid #ff8c00;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ff8c00;
    font-size: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: white;
    transform: scale(1.1);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.social-icons img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.15);
}

/*Code pour le texte et l'image de promotion */
.h3 {
    text-align: center;
    font-size: 1.9rem;
    color: rgb(252, 84, 0);
    margin: 40px 0 20px 0;
    text-shadow: 0 0 15px #d35908;
}

.promotion-image {
    text-align: center;
    margin: 20px 0 40px 0;
}

.promotion-image img {
    max-width: 80%;           /* Ajuste ici la largeur maximale */
    height: auto;
    border-radius: 12px;
    border: 3px solid #ff8c00;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.promotion-image img:hover {
    transform: scale(1.03);
}

/* Code compatibilité pour la version mobile */
@media screen and (max-width: 480px) {
    .title { font-size: 2.2rem; }
    .contact-container { padding: 25px 20px; margin: 0 10px; }
    .deroulant .hamburger { width: 55px; height: 55px; font-size: 30px; }
}

@media screen and (min-width: 769px) {
    body { padding: 25px; }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid img {
        height: 50px;
    }
}