/* style.css */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===== MENU BURGER ===== */
.menu-toggle{
    display:none;
    font-size:28px;
    color:white;
    cursor:pointer;
    user-select:none;
}
/* MOBILE */

/*
body{
    color:#5D2E17;
    background:#FDF5E6;
	color:#4E3A34;
    background: url('images/desert-lompoul-7.png') no-repeat center center fixed;
    background-size: cover;
}

*/

body{
    font-family:Arial, sans-serif;
    color:#4E3A34;
    line-height:1.6;

    background-image: url('images/desert-lompoul-7.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
	
	image-rendering: auto;
}

/* Navbar */
.navbar{
    position:fixed;
    top:0;
    width:100%;
    background:rgba(93,46,23,.92);
    padding:15px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:1000;
}

.logo{
    color:#E6B85C; /* color:#F2B138; */
    font-weight:bold;
    font-size:22px;
}
.menu{
    list-style:none;
    display:flex;
    gap:20px;
}

.menu a{
    color:#FDF5E6; /*color:white;*/
    text-decoration:none;
    transition:0.3s;
}
/* fii */
.menu a:hover{
    color:#F4D03F;
}
/* fii++ */
.menu a.active{
    color:#F4D03F;
    font-weight:bold;
}

.menu a.active::after{
    background:#F4D03F;
}

/* ===== SLIDER ===== */
.slider{
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top:70px; /* évite que navbar cache */
}

.slides{
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide{
    min-width: 100%;
    position: relative;
}

.slide img{
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.slide-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    text-align:center;
    color:white;
    padding:25px 35px;
    border-radius:20px;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.2)
    );
}
/* texte du slider 
.slide-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    text-align:center;
    color:white;
}
*/

/* boutons slider 
.prev,
.next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 10;
}

.prev{ left: 15px; }
.next{ right: 15px; }

.prev:hover,
.next:hover{
    background: rgba(0,0,0,0.8);
}
*/


/* ================= MOBILE (max-width:768px) Responsive ================= */
@media (max-width: 768px){

    /* Slider */
    .slide img{
        height:300px;
    }

    /* Body */
    body{
        font-family:Arial, sans-serif;
        color:#5D2E17;
        line-height:1.6;
		background-attachment: scroll; /* 🔥 corrige le flou */
        background-image: url('images/desert-lompoul-7tele.jpg'); /* option recommandé */
		 /*
        background:url('images/desert-lompoul-7mobil.jpg') no-repeat center center;
		background:#FDF5E6; */
        background-size:cover;
        padding-top:70px; /* évite overlap menu */
    }

    /* Navbar */
    .navbar{
        position:fixed;
        top:0;
        left:0;
        width:100%;
        z-index:1000;
    }


    /* Navigation gauche */
    .left-nav{
        flex-direction:column;
        align-items:flex-start;
        gap:5px;
    }

    .lang{
        margin-top:5px;
    }

    /* Menu mobile */
    .menu{
        display:none;
        flex-direction:column;
        position:absolute;
        top:60px;
        right:10px;
        background:rgba(78,58,52,.95);
        padding:15px;
        border-radius:10px;
        width:200px;
        z-index:2000;
        gap:10px;
    }
	

    .menu.active{
        display:flex;
    }

    .menu-toggle{
        display:block;
        cursor:pointer;
        z-index:2100;
    }
}

/* Diminuer Entete sur Phone 
@media (max-width: 768px){
    .navbar{
        padding:10px 15px;
        flex-wrap:wrap;
    }
    .logo{
        font-size:18px;
    }
    .menu{
        flex-direction:row;
        flex-wrap:wrap;
        gap:10px;
        font-size:14px;
        justify-content:center;
    }
}
*/

/* HERO (désactivé car remplacé par slider) */
header{
    display:none;
}

/* Sections */
.section{
    padding:80px 20px;
    max-width:1100px;
    margin:auto;
}

.section h2{
    margin-bottom:20px;
    font-size:36px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.card{
    background:#FDF5E6;
    padding:25px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(93,46,23,.15);
    color:#5D2E17;
}
.gallery img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:18px;
}

/* ===== LIGHTBOX ZOOM ANIMÉ ===== */

#lightbox{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(93,46,23,0.95); /* background:rgba(0,0,0,0.9); */
    justify-content:center;
    align-items:center;
    z-index:2000;

    opacity:0;
    transition: opacity 0.3s ease;
}
#lightbox img{
    max-width:90%;
    max-height:80%;
    border-radius:10px;
}

#lightbox .close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:40px;
    color:white;
    cursor:pointer;
}
/* Flèches lightbox */
.lb-prev,
.lb-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.6);
    color:white;
    border:none;
    font-size:30px;
    padding:10px 15px;
    cursor:pointer;
    border-radius:50%;
}

.lb-prev{ left:20px; }
.lb-next{ right:20px; }

.lb-prev:hover,
.lb-next:hover{
    background:rgba(0,0,0,0.9);
}
/* Animation zoom 
  IMAGE */
#lightbox img{
    max-width:90%;
    max-height:80%;
    border-radius:12px;

    transform: scale(0.7);
    opacity:0;
    transition: all 0.4s ease;
}

/* état actif 
#lightbox.show img{
    transform: scale(1);
    opacity: 1;
}
*/
#lightbox.show{
    opacity:1;
}


/* état visible */
#lightbox.show img{
    transform: scale(1);
    opacity:1;
}

/* petit effet zoom au changement d'image */
#lightbox img.zooming{
    transform: scale(1.1);
}

/* bouton fermer */
#lightbox .close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:40px;
    color:white;
    cursor:pointer;
}


/* Tarifs */
/*
.tarifs{
    background:  #C65A3A;  
    color:white;
}
*/
.tarifs{
    background:#5D2E17;
    color:#FDF5E6;
}

.price{
    color:#F4D03F;
    font-size:28px;
    font-weight:bold;
}
/* Bouton */

.btn{
    display:inline-block;
    padding:14px 28px;
    background:#E6B85C;
    color:#5D2E17;
    text-decoration:none;
    border-radius:40px;
    font-weight:bold;
    transition:0.3s;
}

.btn:hover{
    background:#F4D03F;
}
/* Footer */
/*
footer{
    background:#4E3A34;
    color:#F2B138;
    text-align:center;
    padding:25px;
}
*/
footer{
    background:#5D2E17;
    color:#E6B85C;
    text-align:center;
    padding:25px;
}

/* Ajout FR/EN à gauche*/
.left-nav{
    display:flex;
    align-items:center;
    gap:20px;
}

.lang{
    display:flex;
    gap:10px;
}

.lang a{
    color:white;
    text-decoration:none;
    font-size:14px;
    padding:3px 8px;
    border:1px solid rgba(255,255,255,0.3);
    border-radius:5px;
}

.lang a:hover{
    background:#F2B138;
    color:#4E3A34;
}


/* ===== SWITCH GOLD GLOW ===== */
.lang-switch{
    display:flex;
    align-items:center;
    gap:10px;
}

/* drapeaux */
.lang-switch .flag{
    font-size:18px;
    color:#F2B138;
}

/* cache checkbox */
.lang-switch input{
    display:none;
}

/* fond switch */
.switch{
    width:56px;
    height:28px;
    background:rgba(255,255,255,0.2);
    border-radius:50px;
    position:relative;
    cursor:pointer;
    transition:0.4s ease;
    border:1px solid rgba(242,177,56,0.3);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

/* boule */
.switch::before{
    content:"";
    position:absolute;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#fff;
    top:3px;
    left:3px;
    transition:0.4s ease;
    box-shadow:0 2px 8px rgba(0,0,0,0.3);
}

/* ON STATE (EN) */
.lang-switch input:checked + .switch{
    background:#F2B138;
    box-shadow:
        0 0 10px rgba(242,177,56,0.6),
        0 0 20px rgba(242,177,56,0.4),
        inset 0 0 10px rgba(255,255,255,0.3);
}

/* animation boule */
.lang-switch input:checked + .switch::before{
    transform:translateX(28px);
}

/* effet glow animé */
.lang-switch input:checked + .switch{
    animation:goldPulse 1.5s infinite alternate;
}

@keyframes goldPulse{
    0%{
        box-shadow:
        0 0 5px rgba(242,177,56,0.4),
        0 0 10px rgba(242,177,56,0.2);
    }

    100%{
        box-shadow:
        0 0 15px rgba(242,177,56,0.8),
        0 0 30px rgba(242,177,56,0.5);
    }
}

/* hover */
.switch:hover{
    transform:scale(1.05);
}


/* lien actif */
.menu a.active{
    color:#F2B138;
    font-weight:bold;
}

/* petit effet optionnel */
.menu a.active::after{
    content:"";
    display:block;
    width:100%;
    height:2px;
    background:#F2B138;
    margin-top:3px;
    border-radius:2px;
}

/* SECTIONS 
section {
    padding: 60px 20px;
    text-align: center;
}
*/

/* Reservation en ligne */
#reservationForm{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;
    max-width:500px;
}

#reservationForm input,
#reservationForm select,
#reservationForm textarea{
    padding:12px;
    border:1px solid #ccc;
    border-radius:10px;
    font-size:14px;
}

#reservationForm textarea{
    resize:none;
    height:100px;
}

#reservationForm button{
    cursor:pointer;
}

/* localisation */
a:hover{
    text-decoration:underline;
    opacity:0.9;
}

/* Bouton lien site*/
.partner-btn{
    display:inline-block;
    padding:5px 8px;   /* ↓ réduit 12px 22px;*/
    background:linear-gradient(135deg, #E6B85C, #F4D03F);
    color:#5D2E17;
    text-decoration:none;
    font-weight:600;
    font-size:8px;     /* ↓ réduit 14 */
    border-radius:30px;
    box-shadow:0 6px 15px rgba(93,46,23,0.2);
    transition:0.3s ease;
    position:relative;
    overflow:hidden;
}

/* hover */
.partner-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 22px rgba(93,46,23,0.3);
}

/* flèche */
.partner-btn::after{
    content:"➜";
    margin-left:8px;
    transition:0.3s;
    display:inline-block;
}

.partner-btn:hover::after{
    transform:translateX(4px);
}
