/* ==========================================================================
   CHARTE GRAPHIQUE & VARIABLES
   ========================================================================== */
:root {
    --primary-blue: #0A192F;      /* Bleu nuit profond */
    --secondary-blue: #1E3A8A;    /* Bleu royal accent */
    --accent-orange: #E65100;    /* Terracotta / Orange Soleil */
    --accent-gold: #F59E0B;      /* Jaune or / Sable */
    --bg-light: #F8FAFC;         /* Fond clair */
    --text-dark: #1E293B;        /* Texte principal */
    --text-muted: #64748B;       /* Texte secondaire */
    --white: #FFFFFF;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #E2E8F0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-contact-quick {
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.3s;
}

.btn-contact-quick:hover {
    background: #c64200;
    transform: translateY(-2px);
}

/* Surcharges strictes pour l'en-tête */
header .nav-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

header .nav-links li {
    margin: 0 !important;
    padding: 0 !important;
}

header .nav-links li a {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    line-height: normal !important;
    text-transform: none !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1e293b;
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   HERO SECTION AVEC EFFET TRAVELLING (KEN BURNS)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 25, 47, 0.1), rgba(10, 25, 47, 0.2)),
                      url('../images/sine-saloum-hero.jpg');
    background-size: cover;
    background-position: top center !important;
    background-size: cover;
    animation: travellingEffect 25s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes travellingEffect {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.15) translate(-2%, -1%);
    }
    100% {
        transform: scale(1.05) translate(1%, 2%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-orange);
    font-weight: 1000;
    font-size: 1.3rem;
    margin-bottom: 10px;
/*    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);*/
}

.hero-title {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 1;
}

/* BARRE DE RECHERCHE */
.search-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 850px;
    margin: 0 auto;
}

.search-item {
    flex: 1;
    text-align: left;
    border-right: 1px solid #E2E8F0;
    padding-right: 15px;
}

.search-item:last-child {
    border-right: none;
}

.search-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.search-item select, .search-item input {
    width: 100%;
    border: none;
    outline: none;
    font-weight: 600;
    color: var(--primary-blue);
    background: transparent;
    font-size: 0.95rem;
}

.btn-search {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #c64200;
}

/* ==========================================================================
   SECTION À PROPOS
   ========================================================================== */
.about-section {
    background-color: var(--white);
    padding: 80px 5%;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.about-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

.about-feature-item i {
    color: var(--accent-orange);
    font-size: 1.2rem;
}

/* ==========================================================================
   SECTION CIRCUITS VEDETTES
   ========================================================================== */
.section-container {
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-tag {
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.circuits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.circuit-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.circuit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.circuit-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.circuit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.circuit-image2 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
}

.circuit-card:hover .circuit-image img {
    transform: scale(1.08);
}

.badge-duration {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(10, 25, 47, 0.85);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.circuit-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: flex-start;
}

.circuit-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.circuit-highlights {
    list-style: none;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.circuit-highlights li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.circuit-highlights i {
    color: var(--accent-orange);
    font-size: 0.8rem;
}

.circuit-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circuit-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.circuit-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-detail {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-detail:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ==========================================================================
   SECTION JOJ DAKAR 2026 (LAYOUT 2 COLONNES ET BOUTONS)
   ========================================================================== */
.joj-section {
    padding: 60px 5%;
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.joj-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.joj-media {
    flex: 1 1 450px;
    min-width: 300px;
}

.joj-content {
    flex: 1 1 500px;
    min-width: 300px;
}

.joj-tag {
    color: var(--accent-orange, #E65100);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.joj-title {
    color: var(--primary-blue, #0A192F);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.joj-content p {
    color: var(--text-dark, #1E293B);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Intégration vidéo responsive 16:9 */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Alignement & Styles des Boutons CTA */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-joj-primary {
    background-color: var(--primary-blue, #0A192F);
    color: #FFFFFF !important;
}

.btn-joj-primary:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
}

.btn-joj-whatsapp {
    background-color: #25D366;
    color: #FFFFFF !important;
}

.btn-joj-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

.btn-joj-outline {
    background-color: transparent;
    color: var(--primary-blue, #0A192F) !important;
    border: 2px solid var(--primary-blue, #0A192F);
}

.btn-joj-outline:hover {
    background-color: var(--primary-blue, #0A192F);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   SECTION BLOG PREVIEW
   ========================================================================== */
.blog-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.blog-preview-card {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.blog-preview-image {
    flex: 1 1 400px;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.blog-preview-content {
    flex: 1 1 400px;
    padding: 25px;
}

.blog-date {
    font-size: 0.85rem;
    color: #e76f51;
    font-weight: bold;
    text-transform: uppercase;
}

.blog-preview-content h3 {
    margin: 10px 0 15px 0;
    font-size: 1.5rem;
    color: #1b4332;
}

.blog-excerpt {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #2a9d8f;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #218377;
}

.btn-secondary {
    background-color: transparent;
    color: #1b4332;
    border: 2px solid #1b4332;
}

.btn-secondary:hover {
    background-color: #1b4332;
    color: #ffffff;
}

/* ==========================================================================
   MODAL DÉTAILS DU CIRCUIT
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.itinerary-step {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--accent-orange);
}

/* ==========================================================================
   BOUTON FLOTTANT WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    font-weight: 700;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-float i {
    font-size: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-col p, .footer-col li {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 10px;
    list-style: none;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact-item i {
    color: var(--accent-orange);
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1E293B;
    color: #64748B;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .joj-container {
        flex-direction: column;
    }

    .joj-media, .joj-content {
        width: 100%;
        flex: 1 1 100%;
    }

    .joj-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    header {
        position: relative !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        z-index: 10000 !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    header ul.nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        z-index: 99999 !important;
    }

    header ul.nav-links.active {
        display: flex !important;
    }

    header ul.nav-links li {
        width: 100% !important;
        text-align: center !important;
    }

    header ul.nav-links li a {
        display: block !important;
        padding: 14px 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        font-size: 16px !important;
        color: #1e293b !important;
    }

    .header-actions .phone-text {
        display: none !important;
    }

    .hero {
        padding-top: 25px !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin-top: 10px;
    }

    .search-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding-bottom: 10px;
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    .logo img {
        height: 42px;
    }
}

/* CORRECTIONS SPÉCIFIQUES PAYSAGE MOBILE (HAUTEUR RÉDUITE) */
@media (max-height: 600px) {
    header {
        padding: 0.4rem 4%;
    }

    .logo img {
        height: 38px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .search-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding-right: 0;
        padding-bottom: 8px;
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
.hero-countdown-box {
    position: relative;
    z-index: 10;
    margin-top: 35px !important;
    clear: both;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 16px;
    /* Fond noir semi-transparent (ajustez 0.45 selon l'opacité désirée entre 0 et 1) */
        background: rgba(18, 24, 38, 0.25) !important;
        /* Effet verre trempé (floute légèrement l'image de fond sous l'encart) */
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        /* Optionnel : fine bordure lumineuse pour faire ressortir l'encart */
        border: 1px solid rgba(255, 255, 255, 0.15);
    /* Alignement horizontal : Gauche / Centre / Droite */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Image à gauche */
.joj-symbol-img {
    width: 120px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Bloc texte au centre */
.hero-countdown-box .countdown-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.hero-countdown-box .label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.hero-countdown-box .countdown-display {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f39c12; /* Couleur orange/or d'accentuation */
}

/* Bouton arrondi à droite */
.btn-rounded-joj {
    background-color: #e67e22; /* Ajustez selon votre charte graphique */
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 50px; /* Bordures parfaitement arrondies */
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-rounded-joj:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Adaptation pour écrans mobiles */
@media (max-width: 768px) {
    .hero-countdown-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .btn-rounded-joj {
        width: 100%;
        text-align: center;
    }
}

/* Message sous le moteur de recherche */
.search-alert {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    text-align: center;
    font-weight: 500;
}

/* Bloc d'information dans la section circuits vide */
.no-circuits-notice {
    grid-column: 1 / -1; /* Occupe toute la largeur du conteneur grid */
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #cccccc;
    margin: 20px 0;
}

.no-circuits-notice .btn-secondary {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    background-color: #333;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
}
.empty-results-box {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

.empty-results-box .empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.empty-results-box .empty-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px; /* Espace avant la phrase du bas */
    flex-wrap: wrap;
}

.empty-results-box .region-fallback-subtitle {
    font-size: 1rem;
    color: #e67e22; /* Couleur d'accentuation (ou couleur du thème) */
    font-weight: 500;
    margin-top: 10px;
}
