/* style.css */
:root {
    --primary-color: #008CBA; /* Tropical Blue */
    --secondary-color: #f39c12; /* Sun/Sand */
    --text-color: #333;
    --light-bg: #f9f9f9;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Langue */

.lang-dropdown {
            position: fixed;
            top: 14px;
            right: 16px;
            z-index: 9999;
            font-family: 'Poppins', sans-serif;
        }
        .lang-btn {
            background: rgba(255,255,255,0.92);
            color: #0a4a6e;
            font-size: 0.8rem;
            font-weight: 600;
            padding: 6px 14px;
            border-radius: 20px;
            text-decoration: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.18);
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }
        .lang-content {
            display: none;
            position: absolute;
            right: 0;
            top: 110%;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            min-width: 140px;
            overflow: hidden;
        }
        .lang-content a {
            display: block;
            padding: 10px 15px;
            color: #333;
            text-decoration: none;
            font-size: 0.85rem;
            transition: background 0.2s;
        }
        .lang-content a:hover {
            background: #f0f7fa;
            color: #0a4a6e;
        }
        .lang-content.open {
            display: block;
        }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), 
                url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

/* Nouveau style pour le logo */
.hero-logo {
    max-width: 400px; /* Largeur max sur ordinateur */
    width: 80%;       /* Largeur adaptative sur mobile */
    height: auto;     /* Garde les proportions */
    margin-bottom: 20px; /* Espace sous le logo */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.9)); /* Une ombre portée pour bien le voir sur la photo */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #e67e22;
}

/* Services Section */
.services {
    padding: 60px 20px;
    background-color: white;
    text-align: center;
}

.services h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.services-grid {
    display: flex;             /* On passe en Flexbox */
    flex-wrap: wrap;           /* Permet aux cartes de passer à la ligne */
    justify-content: center;   /* Centre les cartes au milieu de la page */
    gap: 30px;                 /* Espace entre les cartes */
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    
    /* --- NOUVELLES LIGNES A AJOUTER --- */
    width: 350px;       /* Largeur idéale de la carte */
    max-width: 100%;    /* Pour que ça ne dépasse pas sur mobile */
    flex-grow: 0;       /* Empêche la carte de s'étirer toute seule */
    /* ---------------------------------- */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.contact input, .contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.contact button {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
}
.alert-success { background-color: #2ecc71; }
.alert-error { background-color: #e74c3c; }

footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
}

/* --- NOUVEAUX STYLES POUR LES PAGES DE TOURS --- */

/* Navbar simple du haut */
.navbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--primary-color);
}

.nav-back {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: 0.3s;
}
.nav-back:hover { color: var(--secondary-color); }

/* Header spécifique (plus petit que le Hero de l'accueil) */
.tour-header {
    height: 50vh; /* Moins haut */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.tour-header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Container général */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tour-section { margin-bottom: 50px; text-align: center; }
.tour-intro { max-width: 800px; margin: 0 auto 40px; }

/* Grille de prix */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.price-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    text-align: left;
}

.highlight-card {
    border: 2px solid var(--secondary-color);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-card h3 { color: var(--primary-color); margin-bottom: 5px; }
.destinations { font-weight: 600; color: #555; margin-bottom: 15px; }
.price { font-size: 1.8rem; color: var(--text-color); font-weight: bold; }
.price span { font-size: 1rem; color: #888; font-weight: normal; }
.extra-pax { color: #666; font-size: 0.9rem; margin-bottom: 20px; }

.tour-specs { list-style: none; margin-top: 20px; }
.tour-specs li { margin-bottom: 10px; color: #555; }
.tour-specs i { color: var(--secondary-color); width: 25px; }

/* Détails (Inclus / Exclus) */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.detail-box h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}
.detail-box ul { list-style: none; padding-left: 10px; }
.detail-box li { margin-bottom: 8px; font-size: 0.95rem; }
.detail-box li:before { content: "•"; color: #ddd; margin-right: 10px; }

/* Boite d'avertissement */
.warning-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 50px;
}
.warning-box h4 { color: #856404; margin-bottom: 10px; }

/* Formulaire de réservation spécifique */
.tour-booking {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}
.booking-form { max-width: 600px; margin: 30px auto 0; text-align: left; }
.form-group { display: flex; gap: 15px; margin-bottom: 15px; }
.form-group input, .form-group select { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }
.booking-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 15px; }
.btn-book {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-book:hover { background: #00779e; }

/* --- GALERIE PHOTO --- */
.gallery-section {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    /* Créer des colonnes automatiquement selon la taille de l'écran */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    display: block; /* Important pour le lien */
    overflow: hidden; /* Pour que l'image ne dépasse pas quand on zoom */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 200px; /* Force une hauteur uniforme */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit bien la case sans déformer l'image */
    transition: transform 0.4s ease;
}

/* Effet "Zoom" au survol */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Mobile responsive fixes */
@media (max-width: 600px) {
    .form-group { flex-direction: column; }
    .tour-header h1 { font-size: 2rem; }
}

/* Commande */
.btn-add-cart {
    display: inline-flex; align-items: center; gap: 8px;
    background: #008CBA; color: white; border: none;
    border-radius: 10px; padding: 13px 24px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    font-family: 'Poppins', sans-serif; width: 100%;
    justify-content: center; margin-top: 15px;
    transition: background 0.2s;
}
.btn-add-cart:hover { background: #006a99; }