/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e0f2f7; /* Un bleu très clair, doux et accueillant */
}

/* Couleurs principales de la palette basée sur le bleu */
:root {
    --primary-blue: #007bff;     /* Bleu vif pour les accents, comme un bleu de logo */
    --dark-blue: #0056b3;      /* Bleu plus foncé pour les interactions */
    --light-blue: #e0f2f7;     /* Bleu très clair pour le fond */
    --text-dark: #333;         /* Couleur de texte sombre */
    --text-light: #f8f9fa;     /* Couleur de texte clair */
    --accent-yellow: #ffc107;  /* Un jaune doré pour les touches d'accent */
}


/* Header et Navigation */
header {
    background: var(--dark-blue); /* Fond bleu foncé pour le header */
    color: var(--text-light);
    padding: 20px 0;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--accent-yellow); /* Accent jaune pour le soulignement */
    transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--accent-yellow); /* Accent jaune au survol/actif */
}

/* Hero Section (Accueil) */
.hero {
    background: url('img/IMG-20250730-WA0008.jpg') no-repeat center center/cover; /* Image de fond adaptée au thème bleu */
    color: var(--text-light);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 100, 0.55); /* Overlay bleu-foncé semi-transparent */
}

.hero h1, .hero p, .hero .btn {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.8em;
    margin-bottom: 40px;
    max-width: 800px;
}

.btn {
    display: inline-block;
    background: var(--primary-blue); /* Bouton en bleu primaire */
    color: var(--text-light);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.btn:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Sections principales */
main {
    padding: 50px 0;
    max-width: 1200px;
    margin: 30px auto;
    background: var(--text-light); /* Fond clair pour le contenu */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 40px;
}

section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

section h2 {
    text-align: center;
    font-size: 3em;
    color: var(--dark-blue); /* Titres en bleu foncé */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow); /* Soulignement jaune */
    border-radius: 2px;
}

/* About Hotel Section (Accueil) */
.about-hotel {
    text-align: center;
}

.about-hotel p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
    line-height: 1.8;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature-item {
    flex-basis: 30%;
    background: #ffffff; /* Fond blanc pour les items de feature */
    padding: 20px;
    border-radius: 5px;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.feature-item h3 {
    color: var(--primary-blue); /* Titres des features en bleu primaire */
    margin-bottom: 10px;
    font-size: 1.8em;
}

.feature-item p {
    font-size: 1.05em;
    color: #666;
}

/* Gallery Section (Accueil) - Diaporama */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background-color: #f0f0f0; /* Fond neutre pour le conteneur du diaporama */
}

/* Masquer les images par défaut */
.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    vertical-align: middle;
}

/* Texte de légende */
.text {
    color: var(--text-light);
    font-size: 18px;
    padding: 12px 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Flèches Précédent et Suivant */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(var(--dark-blue), 0.5); /* Flèches avec overlay bleu */
}

/* Position de la flèche Suivant */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Au survol, ajoute une couleur de fond plus foncée */
.prev:hover, .next:hover {
    background-color: rgba(var(--dark-blue), 0.8);
}

/* Les points / indicateurs */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    border: 1px solid #999;
}

.active, .dot:hover {
    background-color: var(--primary-blue); /* Points actifs en bleu primaire */
    border-color: var(--accent-yellow); /* Bordure jaune pour le point actif */
}

/* Effet de fondu (fade) */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* Testimonials Section (Accueil) */
.testimonials {
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background: #ffffff; /* Fond blanc pour les témoignages */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.testimonial-item span {
    font-weight: bold;
    color: var(--primary-blue); /* Nom du client en bleu primaire */
}

/* About Content (À Propos) */
.about-content h2 {
    margin-top: 20px;
    text-align: left;
    font-size: 2.5em;
}

.about-content h2::after {
    left: 0;
    transform: translateX(0);
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-content ul {
    list-style: none;
    margin-top: 20px;
    padding-left: 0;
}

.about-content ul li {
    background: #e6f2f7; /* Bleu très clair pour les listes */
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #004085; /* Bleu un peu plus foncé pour le texte des listes */
    border-left: 5px solid var(--primary-blue); /* Bordure en bleu primaire */
}

.team-photos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.team-photos img {
    width: 28%;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.18);
    border: 4px solid var(--light-blue); /* Bordure claire pour les photos d'équipe */
    transition: transform 0.3s ease;
}

.team-photos img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-top: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 320px;
    padding: 35px;
    background: #ffffff; /* Fond blanc pour les infos de contact/formulaire */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-info h3, .contact-form h3 {
    color: var(--dark-blue); /* Titres en bleu foncé */
    margin-bottom: 25px;
    font-size: 2.2em;
    text-align: center;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--primary-blue); /* Liens en bleu primaire */
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.map-placeholder {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}

.map-placeholder iframe {
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
    font-size: 1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue); /* Bordure active en bleu primaire */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4); /* Ombre basée sur le bleu */
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* News Section (Actualités) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.news-item {
    background: #ffffff; /* Fond blanc pour les actualités */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-item h3 {
    color: var(--primary-blue); /* Titres en bleu primaire */
    font-size: 2em;
    margin-bottom: 12px;
}

.news-item .news-date {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 18px;
    display: block;
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-item p {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.news-item .read-more {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.news-item .read-more:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--dark-blue); /* Fond bleu foncé pour le footer */
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 8px solid var(--accent-yellow); /* Ligne d'accent jaune */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

footer p {
    margin-bottom: 15px;
    font-size: 0.95em;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 12px;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-yellow);
    transform: translateY(-3px);
}


/* --- Media Queries pour la Responsivité --- */

@media (max-width: 992px) {
    header nav {
        flex-direction: column;
        padding: 0 10px;
    }
    header nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    header nav ul li {
        margin: 0 10px 10px 10px;
    }
    .hero {
        padding: 80px 20px;
        min-height: 400px;
    }
    .hero h1 {
        font-size: 3.5em;
    }
    .hero p {
        font-size: 1.5em;
    }
    section h2 {
        font-size: 2.5em;
    }
    .feature-item {
        flex-basis: 45%; /* 2 colonnes sur tablettes */
    }
    .team-photos img {
        width: 45%;
    }
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .mySlides img { /* Responsive for slideshow */
        height: 350px;
    }
    .text { /* Responsive for slideshow */
        font-size: 14px;
        padding: 8px 10px;
    }
    .prev, .next { /* Responsive for slideshow */
        font-size: 20px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8em;
    }
    .hero p {
        font-size: 1.2em;
    }
    main {
        padding: 30px;
        margin: 20px auto;
    }
    section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .about-hotel p {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .feature-item {
        flex-basis: 90%; /* 1 colonne sur petits écrans */
        margin: 15px auto;
    }
    .image-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .team-photos img {
        width: 60%;
    }
    .contact-info, .contact-form {
        padding: 25px;
    }
    .contact-info h3, .contact-form h3 {
        font-size: 2em;
    }
    .news-item h3 {
        font-size: 1.7em;
    }
    .mySlides img { /* Responsive for slideshow */
        height: 280px;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 28px;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 0.95em;
    }
    .btn {
        padding: 10px 25px;
        font-size: 0.95em;
    }
    section h2 {
        font-size: 1.8em;
    }
    .about-content p, .contact-info p, .news-item p {
        font-size: 0.95em;
    }
    .team-photos img {
        width: 80%;
    }
    .form-group input, .form-group textarea {
        font-size: 0.95em;
    }
    .mySlides img { /* Responsive for slideshow */
        height: 200px;
    }
    .text { /* Responsive for slideshow */
        font-size: 10px;
        padding: 5px 8px;
    }
    .prev, .next { /* Responsive for slideshow */
        font-size: 14px;
        padding: 6px;
    }
}

/* Nouveaux styles pour le diaporama des features */
.features-slideshow {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    height: 400px; /* Hauteur fixe pour le conteneur du diaporama */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-item-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.feature-item-slide.active-slide {
    opacity: 1;
    z-index: 2;
}

.feature-item-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre semi-transparent */
    color: white;
    padding: 20px;
    text-align: center;
    transform: translateY(100%); /* Position initiale en dessous */
    animation: textSlideUp 7s infinite; /* Animation de défilement */
    z-index: 3;
}

@keyframes textSlideUp {
    0% { transform: translateY(100%); opacity: 0; }
    5% { transform: translateY(0); opacity: 1; }
    90% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.feature-text h3 {
    margin-bottom: 5px;
    font-size: 2em;
    color: var(--accent-yellow); /* Couleur d'accent pour les titres */
}

.feature-text p {
    margin: 0;
    font-size: 1.1em;
    color: white;
}

/* Ancien style des features (à commenter ou supprimer) */
/*
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}
.feature-item {
    ...
}
*/
/* ----------------------------------------------- */


/* Media Queries pour la responsivité du diaporama des features */
@media (max-width: 768px) {
    .features-slideshow {
        height: 300px; /* Réduit la hauteur sur les tablettes */
    }
    .feature-text {
        padding: 15px;
    }
    .feature-text h3 {
        font-size: 1.5em;
    }
    .feature-text p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .features-slideshow {
        height: 250px; /* Encore plus réduit sur les mobiles */
    }
    .feature-text {
        padding: 10px;
    }
    .feature-text h3 {
        font-size: 1.2em;
    }
    .feature-text p {
        font-size: 0.9em;
    }
}