:root {
    --primary-color: #e67e22;
    /* Terracotta / Orange du désert */
    --secondary-color: #2c3e50;
    /* Bleu nuit profond */
    --accent-color: #27ae60;
    /* Vert nature */
    --bg-light: #f9f9f9;
    --text-dark: #333;
    --text-light: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/Banniere_whisk.JPEG');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 0rem;
}

.hero-content h1 {
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Section (Mustapha) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.guide-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.guide-bio p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Mission Section */
.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--accent-color);
}

.card:hover {
    transform: translateY(-5px);
}

/* Features / Services Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.feature-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.highlight-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--accent-color);
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Profile Card Styles */
.profile-card {
    background-color: #fff;
    padding: 2rem;
    padding-top: 3.5rem;
    border-radius: 16px;
    border: 2px solid var(--accent-color);
    position: relative;
    margin-top: 4rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.profile-img-wrapper {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: justify;
}

/* Morocco Nature Section */
.nature-section {
    background-color: #fff;
    margin-top: 2rem;
}

.nature-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.nature-content img {
    flex-shrink: 0;
    width: 150px;
}

/* Nature Highlight Section with Map - Optimized */
.nature-highlight-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: visible;
    padding: 2.5rem 0;
}

.nature-highlight-wrapper {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 6px solid var(--primary-color);
}

.map-decoration {
    position: absolute;
    left: -80px;
    top: -30px;
    z-index: 10;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.map-decoration:hover {
    transform: scale(1.05) rotate(-2deg);
}

.map-decoration img {
    width: 180px;
    height: auto;
    border-radius: 12px;
    border: 4px solid #fff;
}

.nature-highlight-content {
    margin-left: 120px;
}

.nature-highlight-content h2 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.nature-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    text-align: justify;
}

.nature-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer a {
    color: var(--primary-color);
}

/* Gallery */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.05);
}

/* Custom Shadow for specific elements */
.shadow-blue-light {
    box-shadow: 0 0 15px rgba(135, 206, 250, 0.7) !important;
}

/* Mini Gallery at bottom of index */
.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Blog Section Styles */
.blog-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.blog-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.blog-articles-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for blog list */
.blog-articles-list::-webkit-scrollbar {
    width: 6px;
}

.blog-articles-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.blog-articles-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.blog-articles-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.blog-article-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: #fafafa;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.blog-article-item:hover {
    background-color: #f0f0f0;
    border-left-color: var(--primary-color);
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blog-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.blog-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-article-content h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    font-weight: 600;
}

.blog-date {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simple hide for mobile for now, ideally a hamburger menu */
    }

    .about-grid,
    .features-grid,
    .nature-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .hero {
        height: 40vh;
    }

    h1 {
        font-size: 2rem;
    }

    /* Nature Highlight Responsive */
    .nature-highlight-wrapper {
        padding: 1.5rem 1rem;
    }

    .map-decoration {
        position: static;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .map-decoration img {
        width: 130px;
    }

    .nature-highlight-content {
        margin-left: 0;
    }

    .nature-highlight-content h2 {
        font-size: 1.4rem;
    }

    .nature-text p {
        font-size: 0.9rem;
    }

    .mini-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-section {
        padding: 1rem;
    }

    .blog-articles-list {
        max-height: 350px;
    }

    .blog-thumbnail {
        width: 60px;
        height: 45px;
    }

    .blog-article-content h4 {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}