* {
    box-sizing: border-box;
}

@font-face {
    font-family: myFirstFont;
    src: url('./assets/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf');
}

@font-face {
    font-family: mySecondFont;
    src: url('./assets/Montserrat/Montserrat-VariableFont_wght.ttf');
}

@font-face {
    font-family: myThirdFont;
    src: url('./assets/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf');
}

body {
    margin: 0;
    line-height: 1.4;
    scroll-behavior: smooth;
}

img {
    width: 100%;
}

main {
    margin: auto;
    max-width: 1200px;
}

header {
    background-image: url(./images/vue-meilhaud.min.jpg);
    background-size: cover;
    padding: 2rem;
    min-height: 100vh;
}


.menu {
    list-style-type: none;
    margin-block: 1.5rem;
    padding: 0;
}

.menu li {
    margin-block: 4px;
}

@media screen and (width > 600px) {
    .menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;

    }

}

a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    border: 1px solid transparent;
    padding: 5px;
    font-family: mySecondFont;
    font-weight: bold;
}

a:hover {
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.544);
    border-radius: 5px;
    padding: 5px;
}

h1 {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 50px;
    padding-bottom: 10rem;
    color: white;
    font-family: myFirstFont;
}

h2 {
    text-align: center;
    font-size: xx-large;
    margin-block: 3rem;
    background-color: #1a6023;
    border-radius:10px;
    font-family: mySecondFont;
    color:white;
}

h3 {
    margin: 1rem;
    font-family: mySecondFont;
}

p {
    font-family: myThirdFont;
    font-size: 15px;
}

ul {
    list-style: circle;
}

li {
    font-size: 16px;
    font-family: myThirdFont;
}

.bandeau {
    max-width: 80%;
    margin: auto;
}

.commentaires {
    max-width: 90%;
    margin: auto;
    display: flex;
    gap: 1rem;
    @media screen and (width < 600px){
        flex-direction: column;
    }
}
.commentaires-card {
    background-color:#fbfbf7 ;
    border-radius: 10px;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.1);
}

.commentaires-nom {
    display: flex;
}

.commentaires-nom img {
    width: 4rem;
    height: 4rem;
}

.commentaires-legende {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.commentaires-legende p {
    margin: 0.5rem;
}

.commentaires-text p {
    margin: 0;
    padding: 0.5rem;
}

.italique {
    font-style: italic;
    font-size: smaller;
}


.titre {
    display: block;
}

.intro {
    max-width: 600px;
    margin: auto;
    color: white;
    backdrop-filter: blur(1em);
    border-radius: 15px;
    padding: 1rem;
    padding-inline: 2rem;
    text-align: justify;
}

#gite {
    margin-block: 5rem;
}

button {
    position: absolute;
    background: none;
    color: black;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 88px;
    border-radius: 50%;
    z-index: 20;
}

button:hover {
    opacity: 0.7;
}

.prev {
    left: -15px;
}

.next {
    right: -10px;
}

.carousel-wrapper {
    position: relative;
    width: 1150px; /* largeur totale y compris l'espace pour les boutons */
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    @media screen and (width < 600px){
        width: 380px;
    }
}

.carousel-container {
    position: relative;
    width: 1100px;  /* largeur carousel */
    overflow: hidden;
    margin: auto;
    display: flex;
    align-items: center;

    @media screen and (width < 600px){
        width: 360px;
    }
}

.carousel {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 235px;
}

.card {
    border: none;
    background-color: #fbfbf7;
    border-radius: 10px;
    margin: 15px;
    width: 333px;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.1);

}

.card p {
    margin: 1rem;
}

.card-two {
    display: flex;
    flex-direction: row;
    border: none;
    border-radius: 10px;
    background-color: #fbfbf7;
    gap: 1rem;
    justify-content: space-between;
    margin: 1rem;
    align-items: center;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.1);

    @media screen and (width < 600px){
        flex-direction: column;
    }
}

.card-two img {
    height: 400px;
    border-radius: 5px;
    object-fit: cover;
}



.card-three {
    border: none;
    background-color: #fbfbf7;
    border-radius: 10px;
    margin: 1rem;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.1);

}

.card-three p {
    margin-left: 2rem;
}

.card-three h3 {
    padding-top: 1rem;
}


.contact {
    border: none;
    border-radius: 10px;
    background-color: #fbfbf7;
    gap: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 1rem;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.1);

    @media screen and (width < 500px) {
        grid-template-columns: 1fr;
    }
}

.contact p {
    margin: 1rem;
}

#map {
    height: 400px;
    max-width: 100%;
}

.card p {
    margin-left:1.5rem;
}

footer {
    background-color: black;
    text-align: center;
}
