/* =============================================
   MAISON EUROPE AFRIQUE - STARS AESTHETIC
   ============================================= */

/* ----- VARIABLES ----- */
:root {
    --color-bg: #051121;
    --color-bg-alt: #071528;
    --color-accent: #D4AF37;
    --color-accent-light: #f0d77c;
    --color-text: #f4f4f5;
    --color-text-muted: #9ca8b8;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
    --container-width: 1400px;
    --gutter: clamp(1.5rem, 4vw, 3rem);
}

/* ----- RESET ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ----- PRELOADER ----- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-bg);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--color-accent);
    transition: width 0.1s linear;
}

/* ----- STARS CANVAS ----- */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ----- AURORA ORBS ----- */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.aurora-orb-1 {
    top: -20%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    animation: float1 25s ease-in-out infinite;
}

.aurora-orb-2 {
    bottom: -25%;
    right: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.2) 0%, transparent 60%);
    animation: float2 30s ease-in-out infinite;
}

.aurora-orb-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5vw, 8vh); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-6vw, -5vh); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3vw, -3vh) scale(1.1); }
}

/* ----- NAVIGATION ----- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem var(--gutter);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(5, 17, 33, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem var(--gutter);
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-logo {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

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

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--color-accent);
}

/* ----- LAYOUT ----- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(80px, 12vw, 150px) 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
}

em {
    font-style: italic;
    color: var(--color-accent);
}

.section-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-intro {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* ----- HERO ----- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 500px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    border-color: var(--color-accent);
    padding-left: 1rem;
}

.hero-cta svg {
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-big-logo {
    max-width: 400px;
    width: 100%;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(212, 175, 55, 0.2));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 3px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ----- VISION SECTION ----- */
.vision-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 2rem;
}

.big-statement {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--color-text);
}

.vision-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.vision-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-card {
    padding: 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.03);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.legal-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    font-style: italic;
}

/* ----- 5 CERCLES ----- */
.cercles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cercle-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
    position: relative;
}

.cercle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cercle-card:hover::before {
    transform: scaleX(1);
}

.cercle-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

.cercle-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
}

.cercle-icon {
    display: block;
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.cercle-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.cercle-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ----- ÉVÉNEMENT ----- */
.event-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.event-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(30, 60, 114, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-date {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-accent);
    border-radius: 8px;
    color: var(--color-bg);
}

.date-day {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.date-year {
    display: block;
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.event-content {
    padding: 1rem 0;
}

.event-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.event-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.event-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.link-gold {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.link-gold:hover {
    padding-left: 0.5rem;
}

/* ----- GOUVERNANCE / TEAM ----- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.team-intro {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.member {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.member:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.03);
}

.member h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.member span {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bureau-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.bureau-link:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateX(8px);
}

.bureau-link svg {
    transition: transform 0.3s ease;
}

.bureau-link:hover svg {
    transform: translateX(5px);
}

.team-visual {
    position: relative;
}

.team-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.photo-caption {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
}

/* ----- FOOTER ----- */
.footer {
    padding: clamp(60px, 10vw, 120px) 0 2rem;
    background: var(--color-bg-alt);
}

.footer-main {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.footer-address {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.huge-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.huge-cta:hover {
    transform: scale(0.98);
}

.cta-main {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 500;
    background: linear-gradient(135deg, #fff 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.huge-cta:hover .cta-main {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.cta-sub {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

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

.footer-legal {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-big-logo {
        max-width: 280px;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 140px;
    }
    
    .event-wrapper {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-btn {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .team-list {
        grid-template-columns: 1fr;
    }
    
    .scroll-indicator {
        display: none;
    }
}
