:root {
    scroll-behavior: smooth;
}

section {
    min-height: 100dvh;
}

body {
    width: 100wv;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}


/* ---------------- HERO ---------------- */



.hero {
    background-image: url('Images/maison.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    margin: 0;
    padding: 0;
    color: white;
    font-size: 7rem;
    font-family: "Dancing Script";
    margin-bottom: 100px;
}

.hero-buttons {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    background-color: white;
    color: black;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-colored img {
    filter: invert(1);
}

.btn img {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
}

.btn a {
    text-decoration: none;
    color: inherit;
    /* pour que la couleur du texte reste celle du bouton */
}


.btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-colored {
    background-color: #FFA500;
    color: white;

}

.btn-colored:hover {
    background-color: #FF8C00;
}

.mouse-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    filter: brightness(0) invert(1);
}





/* ---------------- LE LIEU ---------------- */
.le-lieu-ligne {
    display: flex;
    height: 50%;
    align-items: center;
    justify-content: start;
}

.le-lieu-ligne>* {
    width: 50%;
    height: 100%;
}

.le-lieu-ligne img {
    object-fit: cover;
}


.le-lieu-ligne div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.le-lieu-ligne div h3 {
    font-family: "Dancing Script", cursive;
    font-size: 3rem;
    margin-bottom: 15px;
}

.le-lieu-ligne div p {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 80px;
}

#le-lieu {
    position: relative;
    /* pour positionner le bouton par rapport à la section */
}

.btnlieu {
    position: absolute;
    bottom: 20px;
    /* à ajuster selon la taille visuelle que tu veux */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background-color: #000;
    color: #fff;
    border-radius: 100px;
    padding: 0px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    /* <-- supprime le soulignement */

}


.btnlieu img {
    filter: invert(1);
    /* rend l'image blanche visible sur fond noir */
    transition: filter 0.3s;
}

.btnlieu:hover {
    background-color: #f0f0f0;
    /* léger gris au survol */
    color: #000000;
    /* garde le texte noir */
}




/* ---------------- Les chambres ---------------- */
h2 {
    font-family: "dancing script";
    font-size: 4rem;
    margin-bottom: 15px;
    text-align: center;
}

.chambre {
    display: flex;
    flex-direction: column;
}

.les-chambres {
    display: flex;
    background-color: #F9DCD2;
}


.imgchambre {
    height: 100vh;
    width: 50vw;
    padding-top: 0;
    object-fit: cover;
    /* recadre automatiquement */
    object-position: center;
}

.presentation-chambres {
    padding-left: 120px;
    padding-right: 120px;
    text-align: center;
    padding-top: 100px;
}

.cotedroitchambres {
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    width: 50%;
}

/* ---- Lignes chambres ---- */

.lignes {
    display: flex;
    flex-direction: column;
}

.ligne-chambre {
    display: flex;

    &.reversed {
        flex-direction: row-reverse;
    }
}

.cotetexte {
    width: 50vw;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

}

.imgchambres {
    width: 50vw;
    height: auto;
}


h4 {
    font-size: 2rem;
    margin: 0;
    text-align: center;
}

.icon-line {
    display: flex;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    gap: 15px;
}


.icon-line img {
    width: 32px;
    height: min-content;
}

.icon-line p {
    margin: 0;
    padding: 0;
}

.btn-voir-chambre {
    width: 150px;
    max-width: 100%;
    background-color: #F9DCD2;
    color: #000;
    border-radius: 100px;
    padding: 10px 15px;
    margin: 0 auto;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-voir-chambre:hover {
    background-color: #debfb5;
    /* effet au survol */
}




/* Petit déjeuner*/

#petit-dejeuner {
    display: flex;
    background-color: #FBF9F4;
}

.text-petit-dejeuner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centre verticalement le texte */
    align-items: center;
    padding: 3rem;
    width: 50%;
}

.text-petit-dejeuner h2 {
    font-size: 4rem;
    margin-bottom: 0rem;
    /* réduit l’espace */


}

.text-petit-dejeuner p {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    /* centre verticalement */
    align-items: center;
    /* centre horizontalement */
    text-align: center;
    /* centre le texte */
    padding: 2rem;
    box-sizing: border-box;
    margin-top: 10rem;
    /* supprime tout espace ajouté par défaut */

}

.coteimagepetitdej {
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
}


.petitdej {
    margin: 30px;
    width: 600px;
}

/* Notre histoire*/



.baniere-mer {
    background-image: url("Images/mer.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 250px;
    background-position: center 40%;
    color: white;
    display: flex;
    /* active Flexbox */
    justify-content: center;
    /* centre horizontalement */
    align-items: center;
}


.histoire {
    display: flex;
    padding: 120px;
    height: min-content;
}

.histoire-image {
    justify-content: center;
    align-items: center;
    width: 50%;
    height: auto;
}

.histoire-image img {
    width: 50%;
    object-fit: cover;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    height: min-content;
}

.histoire-text {
    width: 50%;
    height: min-content;
}

.signature {
    font-family: "dancing script";
    font-size: 2rem;
    margin-bottom: 15 px;
    text-align: end;
    margin: 20px;
}

.btn-region {
    width: 250px;
    max-width: 100%;
    background-color: #000;
    color: #fff;
    border-radius: 100px;
    padding: 15px 15px;
    margin: 0 auto;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 20px;
    transition: background 0.3s;
    justify-content: center;

}

.btn-region img {
    filter: invert(1);
    /* rend l'image blanche visible sur fond noir */
    transition: filter 0.3s;
}



/* ---------------- Carte cadeau ---------------- */


.ligne-carte-cadeau {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;

    img {
        max-width: 450px;
        /* limite la largeur de l’image */
        width: auto;
        height: auto;
        object-fit: cover;
    }
}

.text-cadeau {
    text-align: center;
    padding: 30px;
}



.btn-carte-cadeau {
    width: 250px;
    max-width: 100%;
    background-color: #000;
    color: #fff;
    border-radius: 100px;
    padding: 15px 15px;
    margin: 0 auto;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    justify-content: center;
    margin-top: 30px;
    /* adapte la valeur */

}

.btn-carte-cadeau img {
    filter: invert(1);
    /* rend l'image blanche visible sur fond noir */
    transition: filter 0.3s;
}

.btn-carte-cadeau:hover {
    filter: invert(1);
    /* rend l'image blanche visible sur fond noir */
    transition: filter 0.3s;
}







/* Contact et Accès */

.contact-acces-section {
    padding: 4rem;
}

h6 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 0rem;
}

.contact-acces-text .accès h6 {
    margin-top: 2rem;
    /* ou 20px selon ce que tu veux */
}


.contact-item p,
.acces-item p {
    margin: 0;
    padding: 0;
}

.contact-acces-carte {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}



.contact-acces-text {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 1rem 2rem;
    /* moins de padding vertical */
    gap: 2rem;
}

.contact-acces-text .contact,
.contact-acces-text .acces {
    margin-bottom: 0.2rem;
    margin-top: 2rem;
}



/* Réduction de l’espace entre les items */
.contact-item,
.acces-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* espace entre icône et texte */
    margin-bottom: 1rem;
    /* espace entre les lignes */
}

.contact-item img,
.acces-item img {

    width: 24px;
    height: 24px;
}

iframe {
    flex: 1;
    min-width: 300px;
    border: 0;
    border-radius: 8px;
    height: 700px;
}

/* Notre Histoire : réinitialiser le style des titres */
.histoire h2 {
    color: #000;
    font-family: "dancing script";
    font-size: 4rem;
    margin-bottom: 15 px;
    text-align: center;
}


/* ---------------- TABLETTES ---------------- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 5rem;
        margin-bottom: 60px;
    }

    .hero-buttons {
        gap: 40px;
        flex-wrap: wrap;
    }

    /* Petit-déjeuner */
    #petit-dejeuner {
        display: flex;
        flex-direction: column;
    }

    .petitdej {
        width: 100vw;
    }


    .text-petit-dejeuner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* centre verticalement le texte */
        align-items: center;
        padding: 0px;
        width: 100%;
    }

    .text-petit-dejeuner h2 {
        font-size: 4rem;
        margin-bottom: 0rem;
        /* réduit l’espace */


    }

    .text-petit-dejeuner p {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        /* centre verticalement */
        align-items: center;
        /* centre horizontalement */
        text-align: center;
        /* centre le texte */
        padding: 20px;
        box-sizing: border-box;
        margin-top: 10px;
        /* supprime tout espace ajouté par défaut */

    }

    .coteimagepetitdej {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

}

/* ---------------- SMARTPHONES ---------------- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        width: fit-content;
        align-items: center;
        justify-content: center;
    }


    .mouse-scroll {
        width: 30px;
        bottom: 10px;
    }

    /* Le lieu sur mobile */
    .le-lieu-ligne {
        flex-direction: column;
        /* empilement vertical */
        height: auto;
        /* laisse la hauteur s’adapter */
    }

    .le-lieu-ligne:nth-child(1) {
        flex-direction: column-reverse;
    }

    .le-lieu-ligne>* {
        width: 100%;
        height: auto;
    }

    .le-lieu-ligne img {
        margin-bottom: 20px;
        /* espace entre image et texte */
    }

    .le-lieu-ligne div {
        margin-bottom: 32px;
    }

    .le-lieu-ligne div h3 {
        font-size: 2rem;
    }

    .le-lieu-ligne div p {
        margin: 0 20px;
        font-size: 0.95rem;
    }

    .btnlieu {
        position: relative;
        height: 3%;
        width: auto;
        margin-top: 30px;
        margin-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
        display: inline-flex;
        /* pour garder l'image et le texte sur la même ligne */

    }




    /* Chambres sur mobile */


    .les-chambres {
        display: flex;
        flex-direction: column;

    }


    .imgchambre {
        width: 100vw;
        object-fit: cover;
        height: 50vh;

    }

    .presentation-chambres {
        padding: 0;
        text-align: center;
        margin: 0;
    }

    .cotedroitchambres {
        display: flex;
        flex-direction: column;
        padding-top: 10px;
        width: 100%;
        padding-bottom: 40px;
    }



    .ligne-chambre {
        gap: 24px;
        display: flex;
        flex-direction: column-reverse;

        &.reversed {
            flex-direction: column-reverse;
        }
    }



    .cotetexte {
        width: 100vw;
        height: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding-bottom: 40px;


    }

    .imgchambres {
        width: 100vw;
        height: auto;
    }



    h4 {
        font-size: 2rem;
        margin: 0;
        text-align: center;
    }

    .icon-line {
        display: flex;
        font-family: "Inter", sans-serif;
        font-size: 1rem;
        margin: 0;
        padding: 0;
        gap: 15px;
    }


    .icon-line img {
        width: 32px;
        height: min-content;
    }

    .icon-line p {
        margin: 0;
        padding: 0;
    }

    .btn-voir-chambre {
        width: 150px;
        max-width: 100%;
        background-color: #F9DCD2;
        color: #000;
        border-radius: 100px;
        padding: 10px 15px;
        margin: 0 auto;
        cursor: pointer;
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        transition: background 0.3s;
    }



    .btn-voir-chambre:hover {
        background-color: #debfb5;
        /* effet au survol */
    }

    /* Notre histoire*/



    .histoire {
        display: flex;
        flex-direction: column;
        padding: 0px;
        height: min-content;
    }

    .histoire-image {
        display: flex;
        width: 100%;
        height: min-content;

    }

    .histoire-image img {
        width: 250px;
        object-fit: cover;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        height: min-content;
        justify-content: center;
        align-items: center;
    }


    .quote-text {
        display: flex;
        align-items: start;
        padding: 20px;
    }

    .histoire-text {
        width: 100%;
        height: min-content;
        padding-bottom: 15px;
    }

    .signature {
        font-family: "dancing script";
        font-size: 2rem;
        margin-bottom: 20 px;
        text-align: end;

    }

    .btn-region {
        width: 250px;

        max-width: 100%;
        background-color: #000;
        color: #fff;
        border-radius: 100px;
        padding: 15px 15px;
        margin: 0 auto;
        cursor: pointer;
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        display: flex;
        flex: 1;
        align-items: center;
        gap: 20px;
        transition: background 0.3s;
        justify-content: center;

    }

    /*.  Carte cadeau */



    .ligne-carte-cadeau {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        /* <--- CENTRE LE CONTENEUR */


        width: 80%;

        img {
            max-width: 80%;
            /* limite la largeur de l’image */
            height: auto;
            object-fit: cover;

        }
    }


    .text-cadeau {
        text-align: center;
    }

    /*.  Contact et Accès*/

    .contact-acces-section {
        padding: 2rem 1rem;
    }

    h6 {
        font-size: 1.5rem;
    }

    .contact-acces-carte {
        .contact-acces-carte {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            /* très important */
            gap: 1.5rem;
        }

        .contact-acces-text {
            padding: 1rem;
            gap: 1rem;
            margin-bottom: 1.5rem;
            width: 100%;
            box-sizing: border-box;
        }

        .contact-item,
        .acces-item {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
            flex-wrap: nowrap;
        }

        .contact-item img,
        .acces-item img {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        iframe {
            width: 100%;
            position: relative;
            max-width: 100%;
            height: 80vh;
            /* augmente la hauteur ici */
            border: 0;
            border-radius: 8px;
        }

        .contact-acces-text .contact,
        .contact-acces-text .acces {
            margin-top: 1rem;
        }

        .contact-acces-text .accès h6 {
            margin-top: 1rem;
        }
    }

    .baniere-mer {
        background-image: none;
    }

    .baniere-mer h2 {
        color: #000;
        font-family: "dancing script";
        font-size: 4rem;
        text-align: center;
    }
}