/* ===========================================================
   AAMEA 2026 — PDF additions
   Styles pour les nouveaux composants : équipe, summit,
   niveaux de sponsoring, contexte stratégique, blocs de
   contenu, page À propos enrichie.
   =========================================================== */

/* ---- Rich content (HTML wysiwyg) ---- */
.rich-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}
.rich-content p { margin-bottom: 1.1em; }
.rich-content strong { color: var(--color-primary); }
.rich-content a { color: var(--color-secondary); text-decoration: underline; }

.empty-section {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ===========================================================
   CONTEXTE STRATÉGIQUE
   =========================================================== */
.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.context-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 6px 20px rgba(10, 47, 110, 0.06);
    border-top: 4px solid var(--color-accent);
    transition: transform .3s ease, box-shadow .3s ease;
}
.context-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(10, 47, 110, 0.12);
}
.context-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.context-title {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 14px;
}
.context-body {
    color: #555;
    line-height: 1.7;
    font-size: 15.5px;
}

/* ===========================================================
   CARTE DU PRÉSIDENT
   =========================================================== */
.president-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    padding: 60px 48px;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    border-left: 6px solid var(--color-accent);
}
.president-quote-icon {
    position: absolute;
    top: 28px;
    right: 36px;
    font-size: 80px;
    color: var(--color-accent);
    opacity: 0.18;
    line-height: 1;
}

/* ===========================================================
   ÉQUIPE
   =========================================================== */
.team-section-title {
    font-size: 22px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-light-gray);
}
.team-section-title i { color: var(--color-accent); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.team-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
    text-align: center;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(10, 47, 110, 0.14);
}
.team-card-featured {
    box-shadow: 0 8px 24px rgba(10, 47, 110, 0.12);
    border-top: 4px solid var(--color-accent);
}

.team-photo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--color-light-gray), #eef1f7);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-photo-placeholder {
    font-size: 80px;
    color: rgba(10, 47, 110, 0.25);
}

.team-info {
    padding: 22px 18px;
}
.team-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}
.team-role {
    font-size: 14px;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 14px;
    min-height: 36px;
}
.team-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin-bottom: 14px;
}
.team-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.team-socials a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-light-gray);
    color: var(--color-primary);
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease;
}
.team-socials a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ===========================================================
   SUMMIT
   =========================================================== */
.summit-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1A4099 100%);
    color: #fff;
}
.summit-header h1 { color: #fff; }
.summit-header .breadcrumb a,
.summit-header .breadcrumb span { color: rgba(255,255,255,0.85); }

.summit-hero {
    position: relative;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,193,7,0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(21,101,192,0.08) 0%, transparent 40%),
        #fff;
}
.summit-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.summit-hero-inner h2 {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 18px;
    line-height: 1.25;
}
.summit-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-accent), #FFB300);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.35);
}
.summit-date-badge span {
    font-weight: 500;
    opacity: 0.85;
}
.summit-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
}

.summit-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.summit-stat {
    text-align: center;
}
.summit-stat-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}
.summit-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summit-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}
.summit-block {
    background: #fff;
    padding: 36px 32px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.summit-block-accent {
    background: linear-gradient(135deg, var(--color-primary), #163C7A);
    color: #fff;
}
.summit-block-accent h3,
.summit-block-accent .summit-list li { color: #fff; }
.summit-block-accent .summit-list i { color: var(--color-accent); }

.summit-block-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.summit-block h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}
.summit-list {
    list-style: none;
    padding: 0;
}
.summit-list li {
    padding: 8px 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.summit-list i {
    color: var(--color-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Teaser sur la page d'accueil */
.summit-teaser {
    background: linear-gradient(135deg, var(--color-primary) 0%, #102a5c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.summit-teaser::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.summit-teaser-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.summit-teaser-content h2 {
    color: #fff;
    font-size: 32px;
    margin: 18px 0;
    line-height: 1.25;
}
.summit-teaser-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 28px;
}
.summit-teaser-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.summit-teaser-stats span {
    font-size: 15px;
    opacity: 0.9;
}
.summit-teaser-stats strong {
    color: var(--color-accent);
    font-size: 22px;
    margin-right: 6px;
}

/* ===========================================================
   NIVEAUX DE SPONSORING (TIERS)
   =========================================================== */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.tier-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.tier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 47, 110, 0.18);
}
.tier-card-featured {
    border: 2px solid var(--color-accent);
    transform: scale(1.03);
}
.tier-card-featured:hover {
    transform: scale(1.03) translateY(-10px);
}
.tier-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}
.tier-badge i { margin-right: 4px; }

.tier-header {
    padding: 32px 24px;
    text-align: center;
    color: var(--color-primary);
    background: linear-gradient(135deg, #FFD700, #FFC107);
}
.tier-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
}
.tier-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tier-body {
    padding: 30px 26px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tier-price {
    text-align: center;
    margin-bottom: 14px;
}
.tier-price-currency {
    font-size: 16px;
    color: #888;
    margin-right: 4px;
    vertical-align: top;
}
.tier-price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
}
.tier-tagline {
    text-align: center;
    color: #666;
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}
.tier-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}
.tier-benefits li {
    padding: 9px 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.tier-benefits li:last-child { border-bottom: none; }
.tier-benefits i {
    color: var(--color-accent);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 14px;
}
.tier-cta {
    width: 100%;
    text-align: center;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
    .context-grid,
    .team-grid,
    .team-grid-large,
    .tier-grid,
    .summit-two-col {
        grid-template-columns: 1fr;
    }
    .tier-card-featured { transform: none; }
    .tier-card-featured:hover { transform: translateY(-10px); }

    .summit-hero-inner h2 { font-size: 28px; }
    .summit-stats { gap: 30px; }
    .summit-stat-value { font-size: 34px; }
    .president-card { padding: 36px 24px; }
    .president-quote-icon { font-size: 56px; top: 18px; right: 20px; }

    .summit-teaser-content h2 { font-size: 24px; }
    .summit-teaser-stats { gap: 18px; }
    .summit-teaser-stats strong { font-size: 18px; }
}

@media (max-width: 480px) {
    .tier-header { padding: 24px 18px; }
    .tier-body { padding: 24px 18px; }
    .tier-price-value { font-size: 30px; }
    .summit-block { padding: 26px 22px; }
    .team-section-title { font-size: 18px; }
}

/* ===========================================================
   RTL (arabe)
   =========================================================== */
html[dir="rtl"] .team-section-title { border-bottom: 2px solid var(--color-light-gray); }
html[dir="rtl"] .president-card {
    border-left: none;
    border-right: 6px solid var(--color-accent);
}
html[dir="rtl"] .president-quote-icon { right: auto; left: 36px; }
html[dir="rtl"] .summit-list li,
html[dir="rtl"] .tier-benefits li,
html[dir="rtl"] .context-card { text-align: right; }
html[dir="rtl"] .tier-badge { right: auto; left: 16px; }

/* ============================================================
   FIX : espace excessif entre header et hero en mobile/tablette
   Le style.css de base met padding-top: 130px desktop et 140px
   en mobile, mais en mobile la top-bar est masquée donc le header
   ne mesure que ~65px. On corrige avec une valeur précise.
   ============================================================ */

@media (max-width: 992px) {
    .main-content {
        padding-top: 65px !important;  /* navbar seulement (top-bar masquée) */
    }
}

@media (max-width: 640px) {
    .main-content {
        padding-top: 60px !important;
    }
    /* Hero en mobile : padding-top réduit aussi puisqu'on a moins d'espace au-dessus */
    .hero {
        padding-top: 30px !important;
    }
}

/* ============================================================
   BRAND v4 — Adapté au Logo Guidelines officiel
   • Bleu vif AIESEC (#1E88E5 → #1565C0)
   • Logo conférence "REGIONAL ALUMNI CONFERENCE 2026"
   • Avatars masques africains
   • Sélecteur de langue mobile
   ============================================================ */

/* Surcharge du Hero : utiliser le bleu vif du guideline */
.hero {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 50%, #0D47A1 100%) !important;
}

.hero::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%) !important;
}

/* Boutons d'accent (jaune AIESEC sur bleu) */
.btn-accent {
    background: var(--color-accent) !important;
    color: #0D47A1 !important;
    font-weight: 700 !important;
}
.btn-accent:hover {
    background: #FFB300 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

/* Topbar coloured */
.top-bar {
    background: linear-gradient(90deg, #0D47A1 0%, #1565C0 100%) !important;
}

/* Logo du header : plus de respiration et taille adaptée */
.navbar-brand .logo {
    height: 50px;
    width: auto;
}
.navbar-brand .brand-name {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ============================================================
   SÉLECTEUR DE LANGUE MOBILE — visible directement dans la navbar
   (pas besoin d'ouvrir le menu burger pour changer de langue)
   ============================================================ */
.navbar-lang-mobile {
    display: none; /* masqué en desktop : déjà présent dans la top-bar */
}

@media (max-width: 992px) {
    .navbar .container {
        /* Permet d'aligner logo | lang-switcher | burger */
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;  /* permet la troncature du brand-name si long */
    }
    .navbar-brand .brand-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
    }

    .navbar-lang-mobile {
        display: flex !important;
        gap: 4px;
        margin-left: auto;
        margin-right: 8px;
        align-items: center;
    }
    .navbar-lang-mobile a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
        font-weight: 600;
        color: var(--color-primary);
        background: transparent;
        border: 1.5px solid #e0e7ef;
        border-radius: 6px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .navbar-lang-mobile a.active {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: #fff;
    }
    .navbar-lang-mobile a:hover:not(.active) {
        border-color: var(--color-primary);
        background: rgba(30,136,229,0.08);
    }

    .mobile-toggle {
        flex: 0 0 auto;
    }
}

/* Très petits écrans : compacter encore */
@media (max-width: 380px) {
    .navbar-lang-mobile a {
        min-width: 30px;
        height: 30px;
        padding: 0 5px;
        font-size: 11px;
    }
    .navbar-brand .brand-name {
        max-width: 90px;
        font-size: 13px;
    }
}

/* ============================================================
   AVATARS MASQUES — fond bleu doux pour mettre en valeur
   ============================================================ */
.team-photo-wrapper {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
}
.team-card .team-photo {
    padding: 12px;
    object-fit: contain !important;
    background: transparent;
}

/* Page d'accueil : section équipe avec masques */
.team-card {
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}
.team-card:hover {
    border-top-color: var(--color-accent);
}

/* ============================================================
   FOOTER : logo et brand alignés
   ============================================================ */
.footer-logo {
    max-height: 60px !important;
    width: auto;
    margin-bottom: 12px;
}
/* Si pas de logo_footer dédié défini → on inverse le logo header pour qu'il soit blanc sur fond sombre */
.footer-logo-invert {
    filter: brightness(0) invert(1);
}

/* ============================================================
   FIX : espace excessif entre header et hero en mobile/tablette
   ============================================================ */
@media (max-width: 992px) {
    .main-content {
        padding-top: 65px !important;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding-top: 60px !important;
    }
    .hero {
        padding-top: 30px !important;
    }
}

/* ============================================================
   PATTERN ETHNIQUE DE FOND (subtil, pour certaines sections)
   ============================================================ */
.section-pattern {
    position: relative;
    overflow: hidden;
}
.section-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../uploads/avatars/mask-default.png');
    background-repeat: no-repeat;
    background-position: 110% 50%;
    background-size: 400px;
    opacity: 0.04;
    pointer-events: none;
}

/* ============================================================
   DESIGN MOCKUP v5 — adapté pixel-précis au CC_WEBSITE.pdf
   ============================================================ */

:root {
    --mockup-blue:        #1E88E5;
    --mockup-blue-dark:   #0D47A1;
    --mockup-yellow:      #FFC107;
    --mockup-yellow-bg:   #FFB300;
    --mockup-text-dark:   #0a1f3d;
    --mockup-text-body:   #333;
    --mockup-bg-light:    #FAFBFC;
}

/* ============================================================
   HEADER : BLANC avec navigation bleu — NE PAS METTRE SOMBRE
   ============================================================ */
.main-header {
    background: #fff !important;
    color: var(--mockup-blue-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.top-bar {
    background: #fafbfc !important;
    border-bottom: 1px solid #eee;
}
.top-bar a,
.top-bar .social-links a,
.top-bar .lang-switcher a {
    color: #666 !important;
}
.top-bar .lang-switcher a.active {
    color: var(--mockup-blue-dark) !important;
    font-weight: 700;
}

.navbar {
    background: #fff !important;
    padding: 12px 0 !important;
}
.navbar-brand .brand-name {
    color: var(--mockup-blue-dark) !important;
    font-weight: 700;
    font-size: 16px;
}
.navbar-brand .logo {
    filter: none;  /* logo couleur, pas inversé */
    height: 50px;
    width: auto;
}
.nav-menu li a {
    color: var(--mockup-blue) !important;
    font-weight: 500;
    font-size: 15px;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--mockup-blue-dark) !important;
}
.nav-menu li a.btn-register {
    background: var(--mockup-yellow) !important;
    color: var(--mockup-text-dark) !important;
    font-weight: 700;
    border-radius: 30px !important;
    padding: 10px 22px !important;
    font-size: 14px;
}
.nav-menu li a.btn-register:hover {
    background: var(--mockup-yellow-bg) !important;
}

/* Mobile : menu sur fond blanc */
@media (max-width: 992px) {
    .nav-menu {
        background: #fff !important;
    }
    .nav-menu li a {
        border-bottom: 1px solid #f0f0f0;
        padding: 14px 18px !important;
        color: var(--mockup-blue) !important;
    }
    .mobile-toggle span {
        background: var(--mockup-blue-dark) !important;
    }
    .navbar-lang-mobile a {
        color: var(--mockup-blue) !important;
        background: transparent;
        border-color: #ddd !important;
    }
    .navbar-lang-mobile a.active {
        background: var(--mockup-blue) !important;
        border-color: var(--mockup-blue) !important;
        color: #fff !important;
    }
}

/* ============================================================================
   ★ HOMEPAGE DESIGN — Reproduction pixel-précise du mockup CC_WEBSITE.pdf
   ============================================================================ */

:root {
    --hp-blue:       #1565C0;   /* bleu principal mockup */
    --hp-blue-dark:  #0A1F3D;   /* bleu nuit (footer) */
    --hp-yellow:     #FFB85C;   /* jaune-orange CTA */
    --hp-text:       #1a1a1a;
    --hp-text-muted: #555;
}

/* ============================================================
   HERO — Image/vidéo en fond + overlay sombre + textes centrés
   ============================================================ */
.hero {
    position: relative;
    background: #2a2a2a;
    color: #fff;
    min-height: 620px;
    padding: 90px 0 80px;
    overflow: hidden;
    text-align: center;
    /* Annule le ::before du style.css de base */
}
.hero::before { display: none; }
.hero-bg,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 40, 0.72);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 auto 22px;
    max-width: 950px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 19px;
    color: rgba(255,255,255,0.95);
    margin: 0 auto 42px;
    max-width: 720px;
    line-height: 1.5;
    font-weight: 400;
}
.hero-info {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin-bottom: 42px;
}
.hero-info-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}
.hero-info-item i {
    color: var(--hp-yellow);
    font-size: 22px;
}
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2.5px solid transparent;
    min-width: 220px;
}
.btn-hero-primary {
    background: var(--hp-yellow);
    color: var(--hp-text);
    border-color: var(--hp-yellow);
    box-shadow: 0 8px 22px rgba(255, 184, 92, 0.35);
}
.btn-hero-primary:hover {
    background: #FFA640;
    border-color: #FFA640;
    transform: translateY(-2px);
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-hero-outline:hover {
    background: #fff;
    color: var(--hp-text);
}

@media (max-width: 992px) {
    .hero { min-height: 540px; padding: 60px 0 50px; }
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 30px; }
    .hero-info { gap: 18px; margin-bottom: 30px; }
    .hero-info-item { font-size: 15px; }
}
@media (max-width: 600px) {
    .hero { min-height: 460px; padding: 40px 0; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .hero-info { flex-direction: column; gap: 10px; }
    .btn-hero { min-width: 200px; padding: 13px 28px; font-size: 13px; }
}

/* ============================================================
   COUNTDOWN — Section dédiée fond blanc + flip-clock noir
   ============================================================ */
.countdown-section {
    background: #fff;
    padding: 55px 0 30px;
    text-align: center;
}
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.countdown-digits {
    background: #1a1a1a;
    color: #fff;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 62px;
    line-height: 1;
    padding: 16px 14px 14px;
    border-radius: 8px;
    min-width: 130px;
    letter-spacing: -2px;
    position: relative;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 8px 24px rgba(0,0,0,0.35);
    /* Ligne horizontale au milieu (effet flip) */
}
.countdown-digits::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 2px;
    background: rgba(0,0,0,0.85);
    transform: translateY(-1px);
    z-index: 1;
    pointer-events: none;
}
.countdown-digits::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}
.countdown-label {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2.5px;
    margin-top: 12px;
}
.countdown-sep {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    padding-bottom: 38px;
}

@media (max-width: 992px) {
    .countdown { gap: 4px; }
    .countdown-digits { font-size: 42px; min-width: 90px; padding: 12px 10px 10px; }
    .countdown-label { font-size: 11px; letter-spacing: 1.5px; }
    .countdown-sep { font-size: 32px; padding-bottom: 28px; }
}
@media (max-width: 600px) {
    .countdown-section { padding: 30px 0 20px; }
    .countdown-digits { font-size: 28px; min-width: 60px; padding: 8px 6px 6px; letter-spacing: -1px; }
    .countdown-label { font-size: 9px; letter-spacing: 1px; margin-top: 8px; }
    .countdown-sep { font-size: 22px; padding-bottom: 22px; }
}

/* ============================================================
   SECTION HEADERS — Tag jaune + titre bleu géant
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-tag {
    display: inline-block;
    color: var(--hp-yellow);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: transparent;
    padding: 0;
}
.section-title {
    color: var(--hp-blue);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
}

@media (max-width: 992px) {
    .section-header { margin-bottom: 36px; }
    .section-title { font-size: 34px; }
    .section-tag { font-size: 12px; letter-spacing: 2px; }
}
@media (max-width: 600px) {
    .section-title { font-size: 26px; }
}

/* ============================================================
   KEY FIGURES — 4 cartes carrées photo + panneau translucide
   ============================================================ */
.key-figures-section {
    background: #fff;
    padding: 40px 0 90px;
}
.key-figures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.figure-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1565C0; /* fallback bleu */
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.figure-card.has-image::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}
.figure-inner {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 28px 16px 30px;
    margin: 18px;
    width: calc(100% - 36px);
    text-align: center;
}
.figure-icon {
    color: #1a1a1a;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 14px;
}
.figure-number {
    color: var(--hp-blue);
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -2px;
}
.figure-label {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .key-figures { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .figure-inner { padding: 22px 12px; margin: 14px; width: calc(100% - 28px); }
    .figure-number { font-size: 40px; }
    .figure-icon { font-size: 32px; }
    .figure-label { font-size: 11px; letter-spacing: 1.4px; }
    .key-figures-section { padding: 30px 0 60px; }
}
@media (max-width: 480px) {
    .figure-number { font-size: 32px; }
    .figure-icon { font-size: 26px; }
    .figure-label { font-size: 10px; }
}

/* ============================================================
   WHY PARTICIPATE — Image floutée + 4 ronds bleus icône jaune
   ============================================================ */
.why-section {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background: #e8f1fb;
}
.why-bg {
    position: absolute; inset: 0;
    background-image: url('../uploads/placeholders/why-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(1.1);
    transform: scale(1.05);
    z-index: 0;
}
.why-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 50%, rgba(232,241,251,0.85) 100%);
    z-index: 1;
}
.why-overlay::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='25,5 75,5 95,50 75,95 25,95 5,50' fill='none' stroke='%231565C0' stroke-width='0.6' opacity='0.5'/></svg>");
    background-size: 110px 110px;
    opacity: 0.35;
    pointer-events: none;
}
.why-content {
    position: relative;
    z-index: 2;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.why-item {
    text-align: center;
    padding: 0 8px;
}
.why-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--hp-blue);
    color: var(--hp-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(21, 101, 192, 0.35);
}
.why-name {
    color: var(--hp-blue);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
}
.why-desc {
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 240px;
    font-weight: 400;
}

@media (max-width: 992px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .why-section { padding: 60px 0 70px; }
    .why-name { font-size: 22px; }
    .why-icon { width: 72px; height: 72px; font-size: 28px; }
}
@media (max-width: 480px) {
    .why-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   PROGRAM PILLARS — 5 cartes : photo bordure bleue + texte dessous
   ============================================================ */
.pillars-section {
    background: #fff;
    padding: 80px 0 100px;
}
.pillars-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px !important;
    justify-content: center;
    grid-template-columns: none !important;
}
.pillar-item {
    text-align: center;
    /* Par défaut : 3 cartes par ligne = col-4 Bootstrap (33.33% - gap) */
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
}
/* Les 2 dernières cartes (4ème et 5ème) = col-6 Bootstrap (50% - gap) */
.pillar-item:nth-child(4),
.pillar-item:nth-child(5) {
    flex: 0 0 calc((100% - 30px) / 2);
    max-width: calc((100% - 30px) / 2);
}
.pillar-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    border: 4px solid var(--hp-blue);
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 22px rgba(21, 101, 192, 0.15);
    overflow: hidden;
    position: relative;
}
.pillar-photo-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(21, 101, 192, 0.3);
    font-size: 64px;
}
.pillar-title {
    color: var(--hp-blue);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
}
.pillar-desc {
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .pillars-section { padding: 60px 0 70px; }
    .pillar-title { font-size: 22px; }
    /* 2 cartes par ligne pour tout le monde */
    .pillar-item,
    .pillar-item:nth-child(4),
    .pillar-item:nth-child(5) {
        flex: 0 0 calc((100% - 22px) / 2);
        max-width: calc((100% - 22px) / 2);
    }
    .pillars-grid { gap: 30px 22px; }
}
@media (max-width: 600px) {
    /* 1 carte par ligne */
    .pillar-item,
    .pillar-item:nth-child(4),
    .pillar-item:nth-child(5) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================================
   SUMMIT TEASER — Bandeau sombre + watermark + alignement gauche
   ============================================================ */
.summit-section {
    position: relative;
    background: var(--hp-blue-dark);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0 90px;
    overflow: hidden;
}
.summit-watermark {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.10);
    font-size: 76px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    text-align: right;
    pointer-events: none;
    text-transform: uppercase;
    z-index: 1;
    max-width: 50%;
}
.summit-watermark span {
    font-weight: 400;
    color: rgba(255,255,255,0.12);
}
.summit-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.summit-spotlight {
    display: inline-block;
    color: var(--hp-yellow);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.summit-title {
    color: #fff;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 28px;
    letter-spacing: -0.5px;
}
.summit-desc {
    color: rgba(255,255,255,0.95);
    font-size: 16.5px;
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 720px;
}
.summit-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 36px;
}
.summit-stat {
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    font-weight: 500;
}
.summit-stat strong {
    color: var(--hp-yellow);
    font-size: 24px;
    font-weight: 800;
    margin-right: 6px;
}
.summit-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--hp-yellow);
    color: var(--hp-blue);
    padding: 6px 30px 6px 6px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(255, 184, 92, 0.3);
}
.summit-btn:hover {
    background: #FFA640;
    transform: translateY(-2px);
}
.summit-btn-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hp-blue);
    color: var(--hp-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

@media (max-width: 992px) {
    .summit-watermark { font-size: 44px; max-width: 70%; right: 2%; opacity: 0.6; }
    .summit-title { font-size: 32px; }
    .summit-spotlight { font-size: 14px; }
    .summit-desc { font-size: 15px; }
}
@media (max-width: 600px) {
    .summit-section { padding: 50px 0 60px; }
    .summit-watermark { display: none; }
    .summit-title { font-size: 24px; }
    .summit-stats { gap: 18px; }
    .summit-stat { font-size: 14px; }
    .summit-stat strong { font-size: 19px; }
}

/* ============================================================
   TESTIMONIALS — Photos alternées sur fond pattern réseau
   ============================================================ */
.testimonials-section {
    position: relative;
    background: #fff;
    padding: 80px 0 100px;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'><g fill='none' stroke='%23bbb' stroke-width='1' opacity='0.5'><circle cx='50' cy='80' r='4' fill='%23ccc'/><circle cx='200' cy='40' r='3' fill='%23ccc'/><circle cx='350' cy='100' r='5' fill='%23ccc'/><circle cx='480' cy='60' r='3' fill='%23ccc'/><circle cx='580' cy='130' r='4' fill='%23ccc'/><circle cx='100' cy='200' r='3' fill='%23ccc'/><circle cx='260' cy='220' r='4' fill='%23ccc'/><circle cx='420' cy='180' r='3' fill='%23ccc'/><circle cx='540' cy='250' r='4' fill='%23ccc'/><circle cx='80' cy='320' r='3' fill='%23ccc'/><circle cx='220' cy='340' r='4' fill='%23ccc'/><circle cx='380' cy='300' r='3' fill='%23ccc'/><circle cx='500' cy='360' r='4' fill='%23ccc'/><line x1='50' y1='80' x2='200' y2='40'/><line x1='200' y1='40' x2='350' y2='100'/><line x1='350' y1='100' x2='480' y2='60'/><line x1='480' y1='60' x2='580' y2='130'/><line x1='100' y1='200' x2='260' y2='220'/><line x1='260' y1='220' x2='420' y2='180'/><line x1='420' y1='180' x2='540' y2='250'/><line x1='80' y1='320' x2='220' y2='340'/><line x1='220' y1='340' x2='380' y2='300'/><line x1='380' y1='300' x2='500' y2='360'/><line x1='50' y1='80' x2='100' y2='200'/><line x1='350' y1='100' x2='420' y2='180'/><line x1='200' y1='40' x2='260' y2='220'/><line x1='540' y1='250' x2='500' y2='360'/></g></svg>");
    background-size: 800px 600px;
    background-position: center;
    opacity: 0.6;
    pointer-events: none;
}
.testimonials-tag {
    text-align: center;
    color: var(--hp-yellow);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}
.testimonials-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 2;
}
.testi {
    display: flex;
    align-items: center;
    gap: 40px;
}
.testi-left { flex-direction: row; }
.testi-right { flex-direction: row-reverse; text-align: right; }
.testi-photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    background: #f0f0f0;
}
.testi-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.testi-body {
    flex: 1;
    min-width: 0;
}
.testi-quote {
    font-size: 17px;
    line-height: 1.6;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0 0 16px;
}
.testi-name {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.testi-role {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .testimonials-section { padding: 50px 0 60px; }
    .testimonials-tag { font-size: 12px; letter-spacing: 2px; margin-bottom: 40px; }
    .testi, .testi-left, .testi-right {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px;
    }
    .testi-photo { width: 110px; height: 110px; }
    .testi-quote { font-size: 15px; }
}

/* ============================================================
   FIX : sticky desktop hero space (le main-content gère le space)
   ============================================================ */
.hero { margin-top: 0 !important; }
