/* ================================================== */
/* style_mobile.css - Version mobile pour index.php  */
/* ================================================== */

/* ============================== */
/* 📱 STYLES GÉNÉRAUX MOBILE */
/* ============================== */
body {
    font-size: 16px;
    padding: 0;
    margin: 0;
}

header {
    display: flex;
    flex-direction: row;   /* titre + mini-slider sur la même ligne */
    align-items: center;
    text-align: left;
    padding: 10px;
    background: #f0f0f0;
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
    flex: 1; /* occupe l'espace restant */
}

header div {
    display: flex;
    align-items: center;
}

header div a img {
    width: 28px;
    height: auto;
    margin: 0 5px;
}

/* ============================== */
/* 🔹 MINI-SLIDER MOBILE */
.header-slider {
    display: flex;
    width: 60px;
    height: 45px;
    overflow: hidden;
    margin-right: 10px;
    position: relative;
}

.header-slider img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.header-slider img.active {
    opacity: 1;
}

/* ============================== */
/* MAIN CONTENT MOBILE */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.pictogrammes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.picto {
    font-size: 0.9rem;
    text-align: center;
}

.picto img {
    width: 40px;
    height: auto;
}

.right-gallery {
    width: 100%;
    overflow: hidden;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    display: none;
}

.right-gallery img {
    width: 90%;
    border-radius: 8px;
    display: none;
}

.right-gallery img.active {
    display: block;
}

.buttons {
    display: flex;
    flex-direction: column;
    width: 60%;
    margin: 15px 0;
    gap: 10px;
}

/* ============================== */
/* Mini galerie flottante gauche - header */
/* ============================== */
.l-gallery {
    position: absolute;
    top: 1px;
    left: 0px;
    width: 135px;
    height: 85px;
    overflow: hidden;
    border-radius: 5px;
   
    
}

.l-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 5px 5px 8px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.l-gallery img.active {
    opacity: 1;
}





/* ============================== */
/* 🔹 BOUTONS MOBILE */
.buttons a, #btnReservation, #btnMap {
    display: block;
    background-color: #0073aa;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Hover / touch */
.buttons a:hover, #btnReservation:hover, #btnMap:hover,
.buttons a:focus, #btnReservation:focus, #btnMap:focus {
    background-color: #005f8d;
    outline: none;
    transform: scale(1.05);
}

.main-photo {
    width: 95%;
    margin: 10px 0;
    border-radius: 10px;
}

.text-zones {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.text-zones div {
    margin-bottom: 15px;
    line-height: 1.5;
}

#formReservation {
    width: 90%;
    margin: 20px auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#formReservation input,
#formReservation textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

#formReservation button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#formReservation button:hover, #formReservation button:focus {
    transform: scale(1.03);
}

#mapContainer {
    width: 100%;
    height: 300px;
    margin: 20px 0;
}

footer {
    font-size: 0.9rem;
    text-align: center;
    padding: 15px;
}



    /* Ajustements pour très petits écrans */
    @media screen and (max-width: 480px) {
        .buttons a, #btnReservation, #btnMap {
            transform: scale(1);
        }

        .buttons a:hover, #btnReservation:hover, #btnMap:hover,
        .buttons a:focus, #btnReservation:focus, #btnMap:focus {
            transform: scale(1.03);
        }

        .header-slider {
            width: 50px;
            height: 40px;
            margin-right: 8px;
        }

        .right-gallery {
            display:none;        
        }
        .l-gallery {
    position: absolute;
    top: 1px;
    left: 0px;
    width: 135px;
    height: 85px;
    overflow: hidden;
    border-radius: 5px;
   
    
}

.l-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 5px 5px 8px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.l-gallery img.active {
    opacity: 1;
}

        header h1 {
            font-size: 1.2rem;
        }
    }
}

