* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Poppins', sans-serif;
    --color-text: #2d2d2d;
    --color-primary: #2d5016;
    --color-secondary: #4a7c30;
    --color-light: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text);
    background: #f9f9f7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
}

header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(10deg);
}

.logo-text {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

/* Media Queries for responsive logo text */
@media (max-width: 1024px) {
    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
}

.logo:hover .logo-text {
    color: #1f3a0f;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-subheading);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #2d2d2d;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.page-header {
    position: relative;
    text-align: center;
    padding: 10rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/wildlife expedition.jpeg') center 30%/cover no-repeat;
    margin-bottom: 3rem;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.page-header p {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.activities-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.activity-section {
    margin-bottom: 5rem;
    position: relative;
}

.activity-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-secondary), transparent);
}

.activity-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 0.8rem;
    display: inline-block;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.activity-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.activity-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.activity-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #4a6b3a 0%, #2d5016 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    overflow: hidden;
}

/* Style spécifique pour les images de voitures */
.activity-section:last-child .activity-image {
    height: 280px; /* Hauteur légèrement augmentée pour les voitures */
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Ajustement spécifique pour les images de voitures */
.activity-section:last-child .activity-image img {
    object-fit: cover; /* Affiche l'image entière sans rognage */
    padding: 10px; /* Ajoute un peu d'espace autour de l'image */
    background-color: #f5f5f5; /* Fond clair pour les images de voitures */
}

/* Style pour les grands véhicules comme le 4x4 */
.large-vehicle {
    height: 350px !important; /* Hauteur augmentée pour le 4x4 */
}

.large-vehicle img {
    object-fit: contain; /* Assure que toute l'image est visible */
    max-height: 100%; /* Empêche l'image de dépasser de son conteneur */
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-content {
    padding: 2rem;
}

.activity-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    color: #2d5016;
    margin-bottom: 1rem;
    font-weight: 600;
}

.activity-content p {
    font-family: var(--font-primary);
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.activity-highlights {
    margin: 1.5rem 0;
}

.activity-highlights h4 {
    font-size: 0.95rem;
    color: #2d5016;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.activity-highlights ul {
    list-style: none;
    padding-left: 0;
}

.activity-highlights li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.95rem;
}

.activity-highlights li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8b6f47;
    font-weight: bold;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2d5016;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.map-link:hover {
    border-bottom-color: #2d5016;
}

footer {
    background: #2d2d2d;
    color: #ccc;
    text-align: center;
    padding: 2rem;
}

footer p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    .nav-links li {
        padding: 0.8rem 2rem;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* Section Réservation WhatsApp */
.booking-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.booking-content h2 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.booking-content p {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white !important;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-top: 1rem;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.response-time {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    margin-top: 1rem !important;
    font-style: italic;
}

.booking-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    aspect-ratio: 1/1; /* Rend le conteneur carré */
    position: relative;
}

.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre la zone sans déformer l'image */
    display: block;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.booking-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .booking-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .booking-content {
        order: 2;
    }
    
    .booking-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .whatsapp-button {
        margin: 1rem auto 0;
    }
}

@media (max-width: 768px) {
    .booking-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }
    
    .booking-content h2 {
        font-size: 1.8rem;
    }
    
    .whatsapp-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}