/* --- GLOBAL --- */
:root {
    color-scheme: light; /*interdiction mode somnbre*/
}


body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #D7EEF7; /* bleu très clair, ambiance mer */
    color: #0A3D62;
}

h1, h2 {
    color: #0A3D62;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2A93D5; /* bleu mer */
    padding: 15px;
    color: white;
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #F5EEDC; /* sable clair */
}

.menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    background: url('images/plage.jpg') center/cover no-repeat;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px black;
    text-align: center;
}

/* --- BUTTONS --- */
.btn {
    background: #2A93D5; /* turquoise */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    background: #0A3D62; /* bleu mer */
}

/* --- CONTENT --- */
.content {
    padding: 40px;
    background: #F5EEDC; /* sable clair */
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- GALLERY ---
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery img {
    width: calc(33% - 10px);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
     */

/* --- ACTIVITIES --- */
.activity {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #ffffffaa; /* léger fond translucide */
    padding: 15px;
    border-radius: 12px;
}

.activity img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* --- CONTACT FORM --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #F5EEDC; /* turquoise */
    background: #7EC8E3;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background: #0A3D62; /* bleu profond */
    color: white;
    margin-top: 40px;
}

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

    nav {
        display: none;
        flex-direction: column;
        background: #F5EEDC;
        padding: 20px;
    }

    nav.show {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .gallery img {
        width: 100%;
    }

    .activity {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .activity img {
        width: 100%;
        height: auto;
    }
}

/* --- AVIS (version PC) --- */
.avis {
    background: #D7EEF7;
    padding: 40px;
    border-radius: 10px;
}

.avis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.avis-card {
    position: relative;
    width: calc(50% - 20px);
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-align: left;
}



.avis-texte {
    font-style: italic;
}

.avis-auteur {
    margin-top: 10px;
    font-weight: bold;
    color: #0A3D62;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: #0A3D62;
        padding: 20px;

        position: fixed;      /* le menu flotte au-dessus */
        top: 0;
        right: 0;             /* collé à droite */
        height: 100vh;        /* toute la hauteur */
        width: 30%;           /* moitié de l'écran */
        box-shadow: -4px 0 10px rgba(0,0,0,0.2); /* ombre élégante */
        z-index: 999;         /* passe devant tout */
    }

    nav.show {
        display: flex;
    }
}



.info-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.reservation-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.activity img {
    width: 320px;
height: 200px;
     /* hauteur identique */
    object-fit: cover;   /* recadre proprement */
    border-radius: 10px;
    flex-shrink: 0;      /* empêche l'image de se réduire */
}


/* Version PC (par défaut) */
.content p {
    text-align: left !important;
}



@media (max-width: 768px) {

    /* Titre "Chambres & couchages" */
    .content h3 {
        font-size: 18px; /* tu peux mettre 16px si tu veux encore plus petit */
        margin-top: 20px;
        margin-bottom: 10px;
    }

    /* Liste des couchages */
    .content ul li {
        font-size: 14px; /* ajuste : 13px, 15px, etc. */
        line-height: 1.5;
    }
}


@media (max-width: 768px) {
    .content p,
    .description {
        text-align: justify !important;
        font-size: 15px; /* ou la taille que tu veux */
        line-height: 1.6;
    }
}




@media (max-width: 768px) {
    .avis h2 {
        font-size: 20px; /* tu peux mettre 18px, 16px, etc. */
        text-align: center; /* optionnel mais joli sur mobile */
        margin-bottom: 15px; /* réduit l’espace sous le titre */
    }
}




@media (max-width: 768px) {

    /* On annule le flex du style global */
    .avis-container {
        display: block; /* IMPORTANT */
        position: relative;
        height: 190px; /* ajuste si besoin */
        overflow: hidden;
        padding: 0; /* évite les marges parasites */
    }

    /* Avis individuel */
    .avis-card {
        position: absolute;
        width: 85%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;

        /* bulle beige */
        background: #F5EEDC;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

/* Animation mobile */
.avis-card:nth-child(1) {
    animation: slideAvis 21s infinite;
}

.avis-card:nth-child(2) {
    animation: slideAvis 21s infinite 7s;
}

.avis-card:nth-child(3) {
    animation: slideAvis 21s infinite 14s;
}

@keyframes slideAvis {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    30%  { opacity: 1; }
    40%  { opacity: 0; }
    100% { opacity: 0; }
}

}


/* Overlay derrière le menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 998; /* juste derrière le menu */
}

/* Quand le menu est ouvert */
nav.show + .overlay {
    display: block;
}


/* Bulles beiges pour les avis sur PC, taille maîtrisée */
@media (min-width: 769px) {

    .avis-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;   /* centre les bulles */
        gap: 25px;
    }

    .avis-card {
        position: relative;
        flex: 0 1 320px;           /* largeur cible */
        max-width: 340px;          /* limite max */
        background: #F5EEDC;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        opacity: 1;
        transform: none;
        text-align: left;
    }
}




@media (max-width: 768px) {
    .reservation-image {
        width: 100%;        /* largeur de l’écran */
        max-height: 800px;  /* ajuste la hauteur comme tu veux */
        object-fit: cover;  /* garde un cadrage propre */
        border-radius: 10px;
    }
}


.site-title {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre le logo et le titre */
}

.site-title .logo {
    width: 65px;   /* taille du logo */
    height: 65px;  /* tu peux ajuster */
    object-fit: contain;
}




/* Version desktop : tout sur une ligne */
.site-title h1 .line1,
.site-title h1 .line2 {
    display: inline;
}

/* Version mobile : 2 lignes */
@media (max-width: 600px) {
    .site-title h1 .line1,
    .site-title h1 .line2 {
        display: block;
        line-height: 1.2;
    }

    .site-title h1 {
        font-size: 25px; /* Ajuste si tu veux plus petit */
    }
}







/*partenaire */
.partners h2 {
    text-align: center;
}

.carousel {
    width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll 18s linear infinite;
}

.carousel-track img {
    width: 260px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

/* Animation parfaitement fluide */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-track img {
        width: 150px;
        height: 100px;
    }
    .carousel-track {
        animation-duration: 6s;
    }
}




/* PAGE GALERIE */
.galerie-header {
    text-align: center;
    padding: 40px 20px;
}


header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    color: #555;
}

/* Bouton d'ajout */
.upload-section {
    text-align: center;
    margin: 20px 0 40px;
}

.upload-button {
    background-color: #ffcc33;
    padding: 12px 25px;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.upload-button:hover {
    background-color: #ffdd55;
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* plus large */
    gap: 25px;
}


.photo-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.photo-card img {
    width: 100%;
    height: 300px; /* plus grand */
    object-fit: cover;
    border-radius: 12px;
}


.photo-info {
    padding: 10px;
    font-size: 14px;
    color: #444;
    text-align: center;
    background: #f7f7f7;
}




/* Galerie de la page Appartement */
/* Galerie de la page Appartement */
.gallery-appartement {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-appartement img {
    width: calc(33% - 10px);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Version mobile */
@media (max-width: 768px) {
    .gallery-appartement img {
        width: 100%;
    }
}


.galerie-header nav {
    text-align: left !important;
}
