/* RESET ET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1E3A5F;
    background: linear-gradient(135deg, #F5F5DC 0%, #D4A574 50%, #8B4513 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Amiri', serif;
    color: #8B4513;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background-color: rgba(212, 165, 116, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo svg {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #1E3A5F;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #228B22;
}

.social-icons a {
    color: #1E3A5F;
    margin-left: 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #228B22;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #F5F5DC;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #D4A574;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #228B22;
    color: #F5F5DC;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1E3A5F;
}

/* SECTIONS GÉNÉRALES */
section {
    padding: 80px 0;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

section:nth-child(odd) {
    background-color: rgba(212, 165, 116, 0.1);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* GALERIE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox:target {
    display: flex;
}

.credit {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* VIDÉOS */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-grid video {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

/* TÉMOIGNAGES */
.testimonials {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.95), rgba(139, 69, 19, 0.95));
    color: #F5F5DC;
}

.carousel {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 860px;
    width: 100%;
    padding: 24px;
    background: rgba(245, 245, 220, 0.18);
    border: 1px solid rgba(245, 245, 220, 0.35);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.testimonial-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(245, 245, 220, 0.85);
    flex-shrink: 0;
}

.testimonial-text {
    color: #F5F5DC;
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.testimonial-text h4 {
    font-size: 1.2rem;
    margin: 0;
    color: #FFF7E6;
}

.carousel-controls {
    text-align: center;
    margin-top: 24px;
}

.carousel-controls button {
    background: rgba(37, 99, 35, 0.95);
    color: #F5F5DC;
    border: none;
    padding: 12px 22px;
    margin: 0 12px;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-controls button:hover {
    transform: translateY(-2px);
    background: #1E3A5F;
}

@media(max-width: 900px) {
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-avatar {
        margin: 0 auto;
    }
}

@media(max-width: 600px) {
    .testimonial-card {
        padding: 18px;
    }

    .testimonial-text p {
        font-size: 1rem;
    }
}

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    background: rgba(245, 245, 220, 0.95);
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(25px);
    animation: cardRise 0.7s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.15s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }
.blog-card:nth-child(4) { animation-delay: 0.25s; }
.blog-card:nth-child(5) { animation-delay: 0.3s; }
.blog-card:nth-child(6) { animation-delay: 0.35s; }
.blog-card:nth-child(7) { animation-delay: 0.4s; }
.blog-card:nth-child(8) { animation-delay: 0.45s; }
.blog-card:nth-child(9) { animation-delay: 0.5s; }
.blog-card:nth-child(10) { animation-delay: 0.55s; }

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-card h3 {
    margin: 20px;
    font-size: 1.4rem;
}

.blog-card p {
    margin: 0 20px 20px;
    color: #4a3f2b;
}

.blog-card a {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 18px;
    background: #228B22;
    color: #F5F5DC;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease;
}

.blog-card a:hover {
    background: #1E3A5F;
}

@keyframes cardRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RÉSERVATION */
.reservation {
    background-color: #1E3A5F;
    color: #F5F5DC;
}

#reservation-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#reservation-form input,
#reservation-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

#reservation-form button {
    background: #228B22;
    color: #F5F5DC;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

#reservation-form button:hover {
    background: #D4A574;
}

/* CONTACT */
.contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info a {
    color: #228B22;
    text-decoration: none;
}

iframe {
    border-radius: 10px;
}

/* CTA FLOTTANT */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #228B22;
    color: #F5F5DC;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* FOOTER */
footer {
    background: #8B4513;
    color: #F5F5DC;
    padding: 40px 0;
    text-align: center;
}

footer nav ul {
    justify-content: center;
    margin-bottom: 20px;
}

footer nav ul li {
    margin: 0 15px;
}

footer .social-icons {
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    nav ul {
        display: none; /* Pour mobile, ajouter menu burger si nécessaire */
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* MOTIFS SAHARIENS */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 69, 19, 0.05) 10px, rgba(139, 69, 19, 0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(139, 69, 19, 0.05) 10px, rgba(139, 69, 19, 0.05) 20px);
    pointer-events: none;
    z-index: -1;
}