/* =========================================================================
   1. RESET ET STYLES DE BASE
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fdfdfd;
}

/* =========================================================================
   AJUSTEMENT V7 FINALE : CENTRAGE DISCRET DU PIED DE PAGE
   ========================================================================= */
.main-footer {
    text-align: center !important;
}

.footer-contact-info, .footer-legal {
    text-align: center !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
 
/* =========================================================================
   2. NAVBAR & REGLAGES DE SELECTION (LANGUE & DEVISE)
   ========================================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: #1b4332;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #52b788;
}

.btn-nav {
    background-color: #52b788;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #40916c;
    color: #fff !important;
}

/* Gestion de l'interrupteur multilingue */
.lang-switcher {
    color: #fff;
    font-weight: bold;
}

.lang-btn {
    background: none;
    border: none;
    color: #a3b18a;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0 2px;
    transition: color 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    color: #52b788;
}

/* Menu déroulant de devise dynamique V7 */
.currency-switcher select {
    background: #2d6a4f;
    color: white;
    border: 1px solid #52b788;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: background 0.3s;
}

.currency-switcher select:hover {
    background: #40916c;
}

/* =========================================================================
   3. HERO BANNER ET REGLAGES SECTIONS
   ========================================================================= */
.hero {
    height: 75vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/baniere.avif?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #2d6a4f;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #1b4332;
}

.section {
    padding: 4rem 5%;
}

.bg-alt {
    background-color: #f4f6f4;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #1b4332;
}

/* =========================================================================
   4. GRILLE DES 5 DESTINATIONS PRINCIPALES
   ========================================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.volcano-img { background-image: url('images/gorille.webp?auto=format&fit=crop&w=600&q=80'); }
.akagera-img { background-image: url('images/akagera.avif?auto=format&fit=crop&w=600&q=80'); }
.nyungwe-img { background-image: url('images/nyungwe.avif?auto=format&fit=crop&w=600&q=80'); }
.congo-nile-img { background-image: url('images/kivu.webp?auto=format&fit=crop&w=600&q=80'); }
.bigogwe-img { background-image: url('images/bigogwe.jpg?auto=format&fit=crop&w=600&q=80'); }

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    color: #2d6a4f;
}


/* =========================================================================
   5. PLATEAU DE LA CARTE DU RWANDA (CALAGE INFALLIBLE EN SVG VECTORIEL)
   ========================================================================= */

/* On nettoie et désactive l'ancien tableau de bord vert devenu obsolète */
.rwanda-map-board {
    display: none !important;
}

/* LE VRAI CONTENEUR DE VOTRE CARTE IMAGE SVG */
.rwanda-map-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* L'image SVG s'adapte à la perfection sans pixeliser */
.rwanda-map-img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    display: block;
}

/* Badge Kigali calé au centre */
.map-kigali-badge {
    position: absolute;
    top: 50%;
    left: 62%;
    transform: translate(-50%, -50%);
    background: #1b4332;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 4;
}

/* Boutons géolocalisés en % par rapport au tracé de l'image SVG */
.map-node {
    position: absolute;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 2px solid #2d6a4f;
    color: #1b4332;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 5;
    white-space: nowrap;
}

.node-dot {
    width: 7px;
    height: 7px;
    background-color: #52b788;
    border-radius: 50%;
}

.map-node:hover {
    background: #2d6a4f;
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}
.map-node:hover .node-dot {
    background-color: #ffffff;
}

/* Coordonnées d'origine de vos fichiers (Tombent pile sur le SVG) */
.node-volcans { top: 30%; left: 45%; }
.node-bigogwe { top: 35%; left: 35%; }
.node-congo   { top: 45%; left: 25%; }
.node-nyungwe { top: 70%; left: 30%; }
.node-akagera { top: 40%; left: 85%; }

/* Style de l'échelle géographique sur la carte */
.map-scale-bar {
    position: absolute;
    bottom: 15px;
    left: 400px;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 4;
}

.scale-line {
    width: 155px;
    height: 3px;
    background-color: #1b4332;
    border-left: 1px solid #1b4332;
    border-right: 1px solid #1b4332;
}

.scale-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: #1b4332;
    letter-spacing: 0.5px;
}

/* =========================================================================
   6. LES PACKAGES DE CIRCUITS V7 (AVEC LES COUVERTURES IMAGES)
   ========================================================================= */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.package-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.package-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #1b4332;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.package-img {
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.volcano-pack-img { background-image: url('images/gorille.webp?auto=format&fit=crop&w=600&q=80'); }
.kivu-pack-img { background-image: url('images/kivu.webp?auto=format&fit=crop&w=600&q=80'); }
.akagera-pack-img { background-image: url('images/akagera.avif?auto=format&fit=crop&w=600&q=80'); }

/* CORRECTION : Miniatures images des formules de séjours fixes */
.bigogwe-pack-img { 
    background-image: url('images/bigogwe.jpg?auto=format&fit=crop&w=600&q=80'); 
}

.package-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.package-content h3 { color: #1b4332; font-size: 1.3rem; margin-bottom: 1rem; margin-top: 0.5rem; }
.package-content p { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; }

.package-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.package-price { display: flex; flex-direction: column; text-align: left; }
.package-price span { font-size: 0.75rem; color: #777; text-transform: uppercase; letter-spacing: 0.5px; }
.package-price strong { font-size: 1.4rem; color: #2d6a4f; }
.package-price small { font-size: 0.8rem; color: #555; font-weight: normal; }
.package-price div { display: flex; align-items: baseline; gap: 2px; }
.price-asterisk { color: #2d6a4f; font-size: 1.2rem; margin-left: 2px; }

.package-disclaimer { text-align: center; font-size: 0.8rem; color: #777; margin-top: 2rem; font-style: italic; max-width: 800px; margin-left: auto; margin-right: auto; padding: 0 1rem; }

/* =========================================================================
   7. BLOCS FEATURES, TEMOIGNAGES, FAQ ACCORDEONS & MODALES
   ========================================================================= */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.feature { padding: 1.5rem; }
.feature h3 { margin-bottom: 0.8rem; color: #1b4332; }

.contact-form { max-width: 600px; width: 100%; margin: 0 auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.testimonial-card { background: #ffffff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 4px solid #2d6a4f; text-align: left; }
.stars { font-size: 1rem; margin-bottom: 0.8rem; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.6; }
.testimonial-author { font-weight: bold; color: #1b4332; font-size: 0.9rem; }

.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: #ffffff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden; border: 1px solid #e2e8f0; }
.faq-accordion { width: 100%; background: #ffffff; border: none; padding: 1.2rem 1.5rem; text-align: left; font-size: 1.05rem; font-weight: 600; color: #1b4332; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-accordion:hover { background-color: #f8fafc; }
.faq-icon { font-size: 1.2rem; font-weight: bold; color: #52b788; transition: transform 0.3s; }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #ffffff; padding: 0 1.5rem; }
.faq-panel p { padding-bottom: 1.2rem; color: #555; font-size: 0.95rem; line-height: 1.5; margin: 0; }
.faq-item.active .faq-panel { max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
.gallery-item { position: relative; height: 200px; border-radius: 8px; overflow: hidden; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(27, 67, 50, 0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; color: white; font-size: 1.5rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 11000; justify-content: center; align-items: center; padding: 1rem; }
.lightbox-overlay img { max-width: 90%; max-height: 85vh; border-radius: 6px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2.5rem; font-weight: bold; cursor: pointer; z-index: 11001; }

.about-container { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text p { font-size: 1.05rem; color: #444; margin-bottom: 1rem; line-height: 1.7; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 10000; justify-content: center; align-items: center; padding: 1rem; }
.modal-container { background: #ffffff; width: 100%; max-width: 700px; max-height: 85vh; border-radius: 8px; overflow-y: auto; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: modalFadeIn 0.3s ease-out; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close { position: absolute; top: 15px; right: 15px; background: rgba(0, 0, 0, 0.6); color: #fff; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center; transition: background 0.3s; }
.modal-close:hover { background: #e74c3c; }
.modal-body { padding: 2rem; }
.modal-section { margin-bottom: 1.5rem; text-align: left; }
.modal-section h3 { font-size: 1.15rem; color: #1b4332; margin-bottom: 0.5rem; }
.modal-section p, .modal-list { color: #555; font-size: 0.95rem; }
.modal-list { padding-left: 1.2rem; }
.modal-list li { margin-bottom: 0.4rem; }

/* =========================================================================
   CORRECTION V7 : COUVERTURES IMAGES DES FENÊTRES MODALES
   ========================================================================= */

/* Styles de base pour forcer l'image de l'en-tête à occuper tout l'espace proprement */
.modal-header-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Liaison des photos spécifiques à chaque identifiant de modale HTML */
#modal-volcans .modal-header-img {
    background-image: url('images/gorille.webp?auto=format&fit=crop&w=800&q=80');
}

#modal-akagera .modal-header-img {
    background-image: url('images/akagera.avif?auto=format&fit=crop&w=800&q=80');
}

#modal-nyungwe .modal-header-img {
    background-image: url('images/nyungwe.avif?auto=format&fit=crop&w=800&q=80');
}

#modal-congo-nile .modal-header-img {
    background-image: url('images/kivu.webp?auto=format&fit=crop&w=800&q=80');
}

/* Correction du format en .jpg spécifiquement pour Bigogwe */
#modal-bigogwe .modal-header-img {
    background-image: url('images/bigogwe.jpg?auto=format&fit=crop&w=800&q=80');
}


.whatsapp-icon-float { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background-color: #25d366; color: #ffffff; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 1000; transition: transform 0.3s, background-color 0.3s; }
.whatsapp-svg { width: 36px; height: 36px; }
.whatsapp-icon-float:hover { background-color: #1ebe5d; transform: scale(1.1); }

/* =========================================================================
   8. RESPONSIVE OPTIMISÉ (MOBILES ET ÉCRANS PLIABLES OPPO)
   ========================================================================= */
@media screen and (max-width: 768px) {
    .navbar { flex-direction: column; padding: 1rem; text-align: center; gap: 0.8rem; }
    .nav-links { justify-content: center; gap: 1rem; }
    .hero { height: auto; padding: 4rem 1rem; }
    .section { padding: 3rem 4%; }
    .cards-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .rwanda-map-board { height: 340px; }
    .map-node { font-size: 0.75rem; padding: 4px 8px; }
    .node-dot { width: 6px; height: 6px; }
    .map-scale-bar { bottom: 10px; left: 10px; padding: 2px 6px; }
    .scale-line { width: 45px; }
}

@media screen and (max-width: 576px) {
    .package-content { padding: 2rem 1.5rem 1.5rem 1.5rem; }
    .package-footer { flex-direction: column; align-items: flex-start; gap: 15px; }
    .package-footer .btn-primary { width: 100%; text-align: center; }
}



