/* Global Reset & Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Colors */
:root {
    --primary-blue: #0b1f3b;
    --accent-gold: #e5a93b;
    --light-bg: #f4f6f9;
    --text-dark: #222;
    --text-light: #666;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span {
    margin-right: 20px;
}

.top-left i, .top-right i {
    color: var(--accent-gold);
    margin-right: 5px;
}

.top-right a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-right a:hover {
    color: var(--accent-gold);
}

.about-left {
    align-self: flex-start;
}

.badge-link {
    text-decoration: none;
    display: inline-block;
}

.badge-link:hover .program-badge {
    opacity: 0.9;
}

/* Main Header & Navbar with Dropdown */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: var(--primary-blue);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 24px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 2px solid var(--accent-gold);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.05);
}

.logo-text h1 {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.1;
}

.logo-text span {
    font-size: 10px;
    letter-spacing: 1px;
    color: #777;
}

.logo-text.white h1 {
    color: #fff;
}

.logo-text.white span {
    color: #ccc;
}

/* Bouton Burger Mobile caché par défaut */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.navbar a:hover::after, .navbar a.active::after {
    width: 100%;
}

.navbar a:hover, .navbar a.active {
    color: var(--accent-gold);
}

/* Dropdown Styles */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 2px solid var(--accent-gold);
}

.navbar .dropdown-menu li {
    width: 100%;
}

.navbar .dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .dropdown-menu a::after {
    display: none;
}

.navbar .dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--accent-gold);
    padding-left: 25px;
}

.navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Widgets & Langues Ticker Styles */
.nav-widgets {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vertical-ticker {
    height: 32px;
    width: 65px;
    overflow: hidden;
    position: relative;
    background: var(--light-bg);
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-track {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    align-items: center;
    animation: scrollTicker 6s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

.ticker-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    height: 32px;
    min-height: 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.ticker-item .flag {
    font-size: 15px;
    line-height: 1;
}

.ticker-item:hover {
    color: var(--accent-gold);
}

@keyframes scrollTicker {
    0%, 30% { transform: translateY(0); }
    35%, 65% { transform: translateY(-32px); }
    70%, 100% { transform: translateY(-64px); }
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    padding: 10px 22px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(229, 169, 59, 0.3);
}

.btn-primary:hover {
    background-color: #d4972d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 169, 59, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 580px;
    overflow: hidden;
    background-color: #0b1f3b;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h2 {
    font-size: 42px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: -10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--accent-gold, #f39c12);
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.badge-icon {
    font-size: 30px;
    color: var(--accent-gold);
}

.badge-text strong {
    display: block;
    font-size: 15px;
}

.badge-text span {
    font-size: 12px;
    color: #666;
}

/* Features Bar */
.features-bar {
    background: var(--primary-blue);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.feature-item {
    background: var(--primary-blue);
    padding: 25px 15px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
    background: #102a4f;
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 24px;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
}

.feature-item strong {
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 11px;
    color: #aaa;
    line-height: 1.3;
}

/* About Section */
.about-section {
    padding: 90px 0;
    background-color: #fff;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-tag.center {
    text-align: center;
}

.section-title {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 700;
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    font-size: 28px;
    color: var(--accent-gold);
    font-weight: 400;
    margin-bottom: 25px;
}

.section-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.about-left p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 25px;
}

.stats-mini {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stats-mini h3 {
    font-size: 26px;
    color: var(--primary-blue);
}

.stats-mini span {
    font-size: 12px;
    color: var(--text-light);
}

.about-image-card {
    position: relative;
}

.image-box img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transition: transform 0.5s ease;
}

.image-box img:hover {
    transform: scale(1.02);
}

.about-side-stats {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-row i {
    font-size: 22px;
    color: var(--accent-gold);
    background: var(--light-bg);
    padding: 10px;
    border-radius: 6px;
}

.stat-row strong {
    font-size: 16px;
    color: var(--primary-blue);
    display: block;
}

.stat-row span {
    font-size: 11px;
    color: var(--text-light);
}

/* Programs Section */
.programs-section {
    padding: 90px 0;
    background-color: var(--light-bg);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.program-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.program-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover img {
    transform: scale(1.1);
}

.program-content {
    padding: 15px;
    position: relative;
}

.program-content h3 {
    font-size: 15px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.program-content p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.program-badge {
    background: var(--light-bg);
    color: var(--primary-blue);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.program-card:hover .program-badge {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.center-btn {
    text-align: center;
}

/* Full Stats Bar */
.stats-bar-full {
    background-color: var(--primary-blue);
    padding: 70px 0;
    color: #fff;
}

.stats-flex {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
}

.stat-box {
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
}

.stat-box i {
    font-size: 32px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.stat-box h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 13px;
    color: #ccc;
}

/* CTA Section */
.cta-section {
    padding: 90px 0;
    background: #fff;
}

.cta-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cta-images {
    display: flex;
    gap: 20px;
}

.cta-images img {
    width: 50%;
    border-radius: 8px;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cta-images img:hover {
    transform: scale(1.03);
}

.cta-content h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.cta-btns {
    display: flex;
    gap: 15px;
}

.btn-accent {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 169, 59, 0.3);
}

.btn-accent:hover {
    background-color: #d4972d;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.8fr 1.8fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-desc {
    font-size: 13px;
    color: #aaa;
    margin: 15px 0 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 14px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-col p {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    color: #fff;
    border-radius: 4px 0 0 4px;
    width: 80%;
    outline: none;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--accent-gold);
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form button {
    background: var(--accent-gold);
    border: none;
    color: var(--primary-blue);
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #d4972d;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* =========================================================
   MEDIA QUERIES POUR ADAPTATION MOBILE ET TABLETTE (PORTRAIT & PAYSAGE)
   ========================================================= */

@media screen and (max-width: 992px) {
    .nav-flex {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        display: none;
        width: 100%;
        order: 10;
        background: #fff;
        padding: 15px 0;
        border-top: 1px solid #eee;
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .navbar .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
        padding-left: 15px;
        display: none;
    }

    .navbar .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .features-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }

    .about-grid, .cta-flex {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-flex {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-section {
        height: auto;
        padding: 60px 0;
    }

    .hero-content-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Ajustements spécifiques pour les tablettes et mobiles en mode PAYSAGE */
@media screen and (max-width: 992px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
        padding: 40px 0;
    }
    
    .features-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .features-bar, .programs-grid, .stats-flex, .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-flex {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-left span {
        display: block;
        margin-right: 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .nav-widgets {
        display: none; 
    }
    
    .cta-images {
        flex-direction: column;
    }
    
    .cta-images img {
        width: 100%;
        height: 200px;
    }
}

@media screen and (max-width: 576px) and (orientation: landscape) {
    .features-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}




/* Bouton "Remonter en haut" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-blue);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}




<style>
    /* Correctifs valables uniquement pour les mobiles sur cette page */
    @media screen and (max-width: 768px) {
        .about-grid {
            grid-template-columns: 1fr !important;
            gap: 20px !important;
        }
        .article-content img[style*="float: right"] {
            float: none !important;
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            margin: 0 auto 20px auto !important;
        }
        .article-content p[style*="direction: rtl"] {
            font-size: 16px !important;
        }
        .article-content blockquote {
            font-size: 24px !important;
            padding-right: 10px !important;
            margin: 15px 0 !important;
        }
        .about-section {
            padding: 30px 15px !important;
        }
    }
</style>