/* =============================================
   IFA - INSA Finance Association
   Styles principaux
   ============================================= */

/* Variables CSS - Charte IFA : Bleu marine + Or */
:root {
    --primary-color: #1a2a5e;
    --primary-light: #2a3d7a;
    --primary-dark: #0f1a3d;
    --secondary-color: #c9a227;
    --accent-color: #d4af37;
    --accent-light: #e6c85a;
    --gold: #c9a227;
    --gold-light: #d4af37;
    --gold-accessible: #7a5c00; /* version foncée pour texte/icône sur fond clair — ratio 5.7:1 sur blanc */
    --text-color: #2d3748;
    --text-light: #4a5568;
    --text-muted: #5d6b82; /* assombri : 5.1:1 sur blanc et bg-light (était #718096 → 3.7:1) */
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #edf2f7;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --gradient-primary: linear-gradient(135deg, #1a2a5e 0%, #2a3d7a 50%, #1a2a5e 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 42, 94, 0.72) 0%, rgba(42, 61, 122, 0.68) 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 54, 93, 0.98);
    transition: var(--transition);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    background: rgba(26, 54, 93, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.navbar:not(.scrolled) .logo-img {
    mix-blend-mode: normal;
    filter: none;
}

.navbar.scrolled .logo-img {
    mix-blend-mode: normal;
    filter: none;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 42px;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 260px;
    padding: 14px 16px;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
    z-index: 1002;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 4px 0;
}

.submenu a::after {
    background: var(--primary-color);
}

.nav-social {
    display: flex;
    gap: 10px;
}

.nav-social .instagram-link,
.nav-social .linkedin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-social .instagram-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: scale(1.1);
}

.nav-social .linkedin-link:hover {
    background: #0077b5;
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: var(--transition);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover no-repeat;
    animation: panBackground 25s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes panBackground {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-3%, -2%) scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.hero-scroll a {
    color: #fff;
    font-size: 2rem; /* Légèrement plus grand pour qu'on la voit mieux */
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Ombre pour plus de visibilité */
}

.hero-scroll a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gold-light);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =============================================
   About Section
   ============================================= */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-color);
}

.features-list li i {
    color: var(--gold-accessible);
    font-size: 1.2rem;
    width: 30px;
}

.about-card {
    background: var(--gradient-primary);
    color: #fff;
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.about-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    opacity: 0.9;
    font-size: 1rem;
}

/* =============================================
   Événements - Cartes
   ============================================= */

/* ========================
   TIMELINE ÉVÉNEMENTS
   ======================== */

/* Label section */
.tl-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 48px 0 16px 92px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.tl-section-label i { color: var(--gold-accessible); }
.tl-past-label { color: var(--text-muted); border-bottom-color: #ddd; margin-top: 52px; }
.tl-past-label i { color: var(--text-muted); }

/* Conteneur timeline */
.tl-timeline {
    position: relative;
    padding: 0;
}
/* Ligne verticale */
.tl-timeline::before {
    content: '';
    position: absolute;
    left: 62px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: #e5e9f0;
}

/* Chaque item */
.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 28px 0;
    border-bottom: 1px solid #f0f2f7;
    position: relative;
}
.tl-item:last-child { border-bottom: none; }
.tl-past { opacity: 0.65; }

/* Date à gauche */
.tl-date {
    width: 48px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 0;
    line-height: 1;
    padding-top: 2px;
}
.tl-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}
.tl-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-accessible);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Point sur la ligne */
.tl-dot {
    width: 28px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    position: relative;
    z-index: 1;
}
.tl-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--gold);
    display: block;
}

/* Contenu de l'événement */
.tl-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-left: 16px;
    transition: box-shadow 0.2s ease;
}
.tl-content:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.11); }

/* Cercles photos entre badge et titre */
.tl-circles {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}
.tl-circle {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

/* Badge type */
.tl-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    background: #e8ecf4;
    color: var(--primary-color);
}
.tl-badge.conference  { background: #dde6f7; color: #1a365d; }
.tl-badge.afterwork   { background: #fdeede; color: #c05621; }
.tl-badge.table-ronde { background: #dcf5e8; color: #276749; }
.tl-badge.visite      { background: #daeaf9; color: #2c5282; }
.tl-badge.interview   { background: #ede8f9; color: #553c9a; }
.tl-badge.salon       { background: #fce4f1; color: #702459; }

/* Titre */
.tl-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 14px;
    line-height: 1.4;
}

/* Métas */
.tl-metas { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.tl-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.tl-meta i { color: var(--gold-accessible); width: 14px; flex-shrink: 0; }
.tl-lieu-link {
    color: var(--text-light);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.tl-lieu-link:hover {
    color: var(--gold);
    text-decoration-color: var(--gold);
}

/* Description */
.tl-description {
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 8px 0 14px;
    white-space: pre-line;
}

/* Bouton s'inscrire */
.tl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, gap 0.2s;
    margin-top: 4px;
}
.tl-btn:hover { background: var(--gold-accessible); gap: 12px; }

/* État vide */
.construction-banner {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.construction-banner i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}
.construction-banner p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.construction-banner span {
    font-size: 0.95rem;
}

.events-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.events-empty i { font-size: 3.5rem; color: var(--gold); opacity: 0.5; margin-bottom: 20px; display: block; }
.events-empty p { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.events-empty span { font-size: 0.95rem; }

/* Responsive timeline */
@media (max-width: 640px) {
    .tl-timeline::before { left: 44px; top: 36px; }
    .tl-section-label { margin-left: 64px; }
    .tl-date { width: 34px; }
    .tl-day { font-size: 1.25rem; }
    .tl-dot { width: 20px; }
    .tl-content { padding: 14px 16px; margin-left: 10px; }
    .tl-two-imgs { flex-direction: column; }
    .tl-two-imgs img { width: 100%; max-height: 180px; }
}

/* =============================================
   Partenaires
   ============================================= */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.partenaire-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.partenaire-card:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.13);
    transform: translateY(-4px);
}

.partenaire-logo {
    width: 140px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.partenaire-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.partenaire-logo-placeholder i {
    font-size: 2rem;
    color: var(--gold);
}

.partenaire-nom {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.partenaire-description {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.partenaires-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.partenaires-empty i { font-size: 3rem; color: var(--gold); opacity: 0.5; margin-bottom: 20px; display: block; }

@media (max-width: 640px) {
    .partenaires-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* =============================================
   Programme Section (ancien - conservé)
   ============================================= */
.programme {
    padding: 100px 0;
    background: var(--bg-color);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--gold));
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.timeline-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.timeline-date .month {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--gold);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.event-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.event-type.conference {
    background: rgba(26, 54, 93, 0.1);
    color: var(--primary-color);
}

.event-type.afterwork {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.event-type.table-ronde {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.event-type.visite {
    background: rgba(99, 179, 237, 0.1);
    color: var(--secondary-color);
}

.event-type.interview {
    background: rgba(159, 122, 234, 0.1);
    color: #9f7aea;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-content p i {
    color: var(--gold-accessible);
    width: 16px;
}

/* =============================================
   Actualités Section
   ============================================= */
.actualites {
    padding: 100px 0;
    background: var(--bg-light);
}

/* Carrousel actualités */
.actu-carousel-outer {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.actu-track-wrapper {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    cursor: grab;
    user-select: none;
}
.actu-track-wrapper:active { cursor: grabbing; }

.actu-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.actu-track .article-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.actu-nav-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 2;
}
.actu-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,54,93,0.25);
}

.actu-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.actu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.actu-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* Responsive carrousel */
@media (max-width: 1023px) {
    .actu-track .article-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}
@media (max-width: 639px) {
    .actu-track .article-card {
        flex: 0 0 100%;
    }
    .actu-nav-btn { width: 36px; height: 36px; font-size: 0.85rem; }
}

/* Ancienne grille (conservée pour compatibilité) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-card.featured {
    grid-column: span 1;
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-no-image {
    position: relative;
    padding: 15px 25px 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-no-image .article-category {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
}

.article-content {
    padding: 25px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.article-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.article-description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-color);
}

/* =============================================
   Videos Section
   ============================================= */
.videos {
    padding: 100px 0;
    background: var(--bg-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.play-button i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 5px;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

.video-card:hover .play-button i {
    color: #fff;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.video-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================
   Sondages Section
   ============================================= */
.sondages {
    padding: 100px 0;
    background: var(--bg-light);
}

.poll-container {
    max-width: 700px;
    margin: 0 auto;
}

.poll-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.poll-status {
    background: var(--success-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.poll-ends {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.poll-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.poll-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.poll-option:hover {
    background: var(--bg-dark);
}

.poll-option input[type="radio"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.poll-option label {
    cursor: pointer;
    font-weight: 500;
    z-index: 1;
}

.poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(49, 130, 206, 0.15);
    width: 0;
    transition: width 1s ease;
}

.poll-form .btn {
    margin-top: 20px;
    align-self: flex-start;
}

.poll-participants {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   Newsletter Section
   ============================================= */
.newsletter {
    padding: 80px 0;
    background: var(--gradient-primary);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 150px;
    padding: 16px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form .btn {
    background: var(--gold);
    color: var(--primary-dark);
    white-space: nowrap;
    font-weight: 700;
}

.newsletter-form .btn:hover {
    background: var(--gold-light);
}

.newsletter-form .input--hidden {
    display: none;
}

.newsletter-consent {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-row input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    min-width: 16px;
    accent-color: var(--gold);
    flex: 0 0 auto;
}

.consent-row label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.newsletter-error {
    display: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 500;
}

/* =============================================
   Adhésion Section
   ============================================= */
.adhesion {
    padding: 100px 0;
    background: var(--bg-color);
}

.membership-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.membership-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    cursor: pointer; /* Indique que toute la carte est cliquable */
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.membership-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.membership-icon i {
    font-size: 2rem;
    color: #fff;
}

.membership-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.membership-card > p {
    color: var(--text-light);
    margin-bottom: 25px;
    min-height: 60px;
}

.membership-card > p.membership-poles-title { /* Plus spécifique pour écraser le p générique */
    margin-top: 30px;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    min-height: auto;
}

.membership-active-list {
    margin-bottom: 0;
}

.membership-card ul {
    list-style: none;
    text-align: left;
}

.membership-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--bg-dark);
}

.membership-card ul li:last-child {
    border-bottom: none;
}

.membership-card ul li i {
    color: var(--success-color);
}

.membership-poles-icons {
    margin-top: 0;
    margin-bottom: 25px; /* Ajoute de l'espace avant le bouton */
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.membership-poles-icons span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.membership-poles-icons i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.membership-form-container {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 30px 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85); /* Semi-transparent background */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: var(--gold);
}

/* Card Button Styling */
.btn-adhesion {
    margin-top: auto;
    width: 100%;
    display: inline-block;
    text-align: center;
}

.membership-form-container h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* =============================================
   Form Styles
   ============================================= */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--bg-dark);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--bg-dark);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover {
    border-color: var(--gold);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.radio-option label {
    cursor: pointer;
    flex: 1;
}

.radio-option label strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.radio-option label span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    height: 40px;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-3px);
}

.social-link:nth-child(2):hover {
    background: #0077b5;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =============================================
   Nous connaître / Équipe Section
   ============================================= */
.equipe {
    padding: 100px 0;
    background: var(--bg-color);
}

.fondateur-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.fondateur-image {
    position: relative;
}

.fondateur-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--gold);
}

.fondateur-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.fondateur-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.fondateur-role {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.fondateur-quote {
    position: relative;
    padding: 25px 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--gold);
}

.fondateur-quote i {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.5;
}

.fondateur-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding-left: 25px;
}

@media (max-width: 768px) {
    .fondateur-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .fondateur-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .fondateur-image::before {
        display: none;
    }
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .membership-types {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 18px;
        padding: 90px 28px 30px;
        overflow-y: auto;
        transition: var(--transition);
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        display: inline-block;
        padding: 4px 0;
    }

    .submenu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        margin-left: 8px;
        padding: 4px 0 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        gap: 8px;
    }

    .submenu a {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        font-size: 0.9rem;
    }

    .submenu a::after {
        background: var(--gold);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-social {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-date {
        width: 40px;
    }
    
    .timeline-date .day {
        font-size: 1.5rem;
    }
    
    .timeline-date .month {
        font-size: 0.7rem;
    }
    
    .timeline-content::before {
        left: -22px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .poll-card {
        padding: 25px;
    }
    
    .membership-form-container {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* =============================================
   TradingView Widget
   ============================================= */
.tradingview-widget-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #1a2a5e;
}

.tradingview-widget-container__widget {
    height: 46px;
}


.inner-page .programme:first-of-type,
.inner-page .about:first-of-type,
.inner-page .equipe:first-of-type {
    padding-top: 160px;
}

/* =============================================
   Bureau Members Carousel
   ============================================= */
.bureau-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px;
}

.bureau-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.bureau-member {
    min-width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bureau-member.active {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: center;
    opacity: 1;
}

.member-image {
    position: relative;
}

.member-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--gold);
    aspect-ratio: 1;
    object-fit: cover;
}

.member-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.member-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.member-role {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.member-quote {
    position: relative;
    padding: 25px 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--gold);
}

.member-quote i {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.5;
}

.member-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding-left: 25px;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--gold);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-light);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .bureau-carousel-container {
        padding: 0 40px;
    }
    
    .bureau-member.active {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .member-image {
        max-width: 220px;
        margin: 0 auto;
    }
    
    .member-image::before {
        display: none;
    }
    
    .member-info h3 {
        font-size: 1.6rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .bureau-carousel-container {
        padding: 0 35px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
}

/* =============================================
   Active Nav Link
   ============================================= */
.nav-links a.active {
    color: var(--gold) !important;
}
.nav-links a.active::after {
    width: 100% !important;
}

/* =============================================
   Page Hero (Inner Pages)
   ============================================= */
.page-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 60px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover no-repeat;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

.page-hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 25px;
    font-weight: 300;
}

.page-hero-breadcrumb {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.page-hero-breadcrumb a {
    color: var(--gold);
    font-weight: 600;
}
.page-hero-breadcrumb a:hover {
    text-decoration: underline;
}
.page-hero-breadcrumb span {
    opacity: 0.6;
}

/* =============================================
   Stats Section
   ============================================= */
.stats-section {
    background: var(--gradient-primary);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
}

.stat-item {
    color: #fff;
    padding: 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-item:nth-child(2)::after,
    .stat-item:nth-child(4)::after {
        display: none;
    }
}

/* =============================================
   Scroll to Top Button
   ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 997;
    transform: translateY(10px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* =============================================
   Mobile Menu Overlay
   ============================================= */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* =============================================
   Mobile : masquer TradingView sur petits écrans
   ============================================= */
@media (max-width: 768px) {
    .tradingview-widget-container {
        display: none;
    }

    /* La navbar remonte tout en haut sans le widget */
    .navbar {
        top: 0;
    }

    /* Le hero n'a plus besoin de compenser le widget */
    .hero {
        padding-top: 0;
    }

    /* Le page-hero des pages internes : compense juste la navbar */
    .page-hero {
        padding-top: 90px;
    }
}
