/* RESET CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* HEADER */
.main-header {
    background-color: #007BFF;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #FFC107;
}

/* SLIDER */
.slider {
    position: relative;
    overflow: hidden;
    height: 60vh; /* Ajuster selon les besoins */
}

.slides {
    display: flex;
    height: 100%; /* Assure que le conteneur occupe toute la hauteur */
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%; /* Chaque slide occupe 100% de la largeur */
    height: 100%; /* Chaque slide occupe 100% de la hauteur */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover; /* Ajuste l'image pour couvrir toute la zone */
    background-position: center; /* Centre l'image */
    position: relative;
}

.slide .overlay {
    background: rgba(0, 0, 0, 0.5); /* Transparence sur le texte */
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    z-index: 1;
}

.slide h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.slide p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.slide .btn {
    background-color: #FFC107;
    color: #333;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.slide .btn:hover {
    background-color: #E0A800;
}

/* SECTIONS */
.section {
    padding: 4rem 2rem;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    color: #007BFF;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 cartes par ligne par défaut */
    gap: 2rem;
    justify-items: center;
}

.block {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 350px;
}

.block:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.block img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.block h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 1rem 0;
}

.block p {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 1.5rem;
}

/* Media Query pour les écrans moyens (tablettes et petits ordinateurs) */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
    }
}

/* Media Query pour les petits écrans (smartphones) */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr; /* 1 carte par ligne */
    }
}


/* FORMULAIRE DE RÉSERVATION */
.reservation-form {
    background: #F8F9FA;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 4rem auto;
    max-width: 600px;
    text-align: left;
}

.reservation-form h2 {
    font-size: 2rem;
    color: #007BFF;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button.btn-secondary {
    background-color: #007BFF;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
}

button.btn-secondary:hover {
    background-color: #0056b3;
}

/* FOOTER */
footer {
    background-color: #343A40;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

footer h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

footer a {
    color: #FFC107;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu a {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .slider {
        height: 40vh;
    }

    .slide h2 {
        font-size: 1.8rem;
    }

    .slide p {
        font-size: 1rem;
    }
}
