/* --- VARIABLES & RESET --- */
:root {
    --bg-gradient-main: linear-gradient(180deg, #000910 0%, #001520 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #001824 0%, #002F4B 100%);
    --bg-cci: #001F2B; /* Fond spécifique CCI */
    --text-color: #EAEAEA;
    --accent-color: #C4B085;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-gradient-main);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- LOADER --- */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.loader-text { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.2em; margin-bottom: 20px; color: var(--accent-color); }
.loader-bar { width: 200px; height: 2px; background: #222; position: relative; overflow: hidden; }
.loader-progress { width: 0%; height: 100%; background: var(--accent-color); }
.loader-counter { margin-top: 15px; font-family: var(--font-display); font-size: 1rem; color: var(--accent-color); letter-spacing: 0.1em; position: relative; z-index: 10001; }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 200;
    color: #fff;
    transition: 0.4s ease;
    background: rgba(0, 18, 26, 0.0);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(0, 18, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 50px;
}
.nav-right { display: flex; align-items: center; gap: 40px; }
.lang-switch { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.1em; cursor: pointer; }
.lang-opt { opacity: 0.5; transition: 0.3s; }
.lang-opt.active, .lang-opt:hover { opacity: 1; color: var(--accent-color); }
.sep { margin: 0 5px; opacity: 0.3; }
.logo { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-btn { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; }
.lines { display: flex; flex-direction: column; gap: 4px; }
.line { width: 25px; height: 1px; background: #fff; transition: 0.3s; }
.menu-btn:hover .line:nth-child(1) { width: 35px; }

/* --- SIDEBAR --- */
.nav-sidebar {
    position: fixed; top: 0; right: 0; width: 450px; height: 100vh;
    background: linear-gradient(to bottom, #001018, #002030);
    z-index: 150; transform: translateX(100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 100px 50px 50px; border-left: 1px solid rgba(255,255,255,0.05);
}
.menu-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 140; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.nav-header { font-size: 0.8rem; letter-spacing: 0.2em; color: #555; text-transform: uppercase; }
.nav-menu-links { display: flex; flex-direction: column; gap: 25px; }
.nav-item { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; color: #888; transition: 0.3s; display: flex; align-items: center; gap: 20px; }
.nav-num { font-size: 0.9rem; color: var(--accent-color); letter-spacing: 0.1em; }
.nav-item:hover { color: #fff; transform: translateX(10px); }
.nav-footer p { font-size: 0.8rem; color: #555; line-height: 1.5; }

/* --- HERO --- */
.hero { height: 100vh; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,18,26,0.1) 30%, rgba(0,18,26,0.8) 100%);
    z-index: 0; 
}
.hero-content { text-align: center; z-index: 2; width: 100%; }
.hero-label { font-size: 0.9rem; letter-spacing: 0.3em; color: var(--accent-color); margin-bottom: 20px; text-transform: uppercase; overflow: hidden; }
.hero-label .anim-text { display: block; transform: translateY(100%); }
.hero-title { font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 8.5rem); line-height: 1; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(2px); }
.line-wrap { overflow: hidden; }
.anim-title { display: block; transform: translateY(100%); }
.hero-footer { position: absolute; bottom: 40px; width: 100%; padding: 0 50px; display: flex; justify-content: space-between; align-items: flex-end; }
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.7rem; letter-spacing: 0.2em; }
.scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.5); }
.hero-desc { text-align: right; font-size: 1rem; line-height: 1.4; opacity: 0.8; }

/* --- MANIFESTO --- */
.manifesto { padding: 150px 50px; background: var(--bg-gradient-main); }
.section-label { display: block; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent-color); margin-bottom: 30px; text-transform: uppercase; }
.big-text { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.3; max-width: 1200px; margin: 0 auto; color: #889; }
.highlight { color: #fff; }
.quote-block { margin-top: 80px; border-left: 2px solid var(--accent-color); padding-left: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }
blockquote { font-size: 1.5rem; font-style: italic; color: var(--text-color); opacity: 0.9; }

/* --- ROADMAP SPECTACULAR (LIVING) --- */
.roadmap-section { 
    position: relative; 
    background: #020b10; 
    padding: 0; 
    height: 150vh; 
    overflow: hidden;
    padding-bottom: 0;
}

/* Texture de fond (Grain subtil) */
.roadmap-bg-texture {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.roadmap-container {
    width: 100%; height: 100vh;
    position: sticky; top: 0;
    display: flex; justify-content: center; align-items: center;
    padding-top: 50px; 
    z-index: 1;
}

.roadmap-header-fixed { position: absolute; top: 15%; left: 10%; z-index: 10; }
.roadmap-header-fixed h3 {
    font-family: var(--font-display); font-size: 4rem; color: #fff; line-height: 0.9; margin-top: 10px;
    opacity: 0.2; transition: opacity 0.5s;
}

.map-wrapper { width: 100%; height: 90%; max-width: 800px; position: relative; }
.corridor-svg { width: 100%; height: 100%; overflow: visible; }

/* Lignes */
.path-bg { fill: none; stroke: rgba(255, 255, 255, 0.03); stroke-width: 2; }

.path-active {
    fill: none; stroke: url(#gold-gradient); stroke-width: 4; stroke-linecap: round;
    filter: url(#glow);
}

/* LA TOUCHE MAGIQUE : Le Flux d'Énergie */
.path-flow {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-dasharray: 10, 30; /* Tirets espacés */
    stroke-opacity: 0.6;
    animation: flowAnimation 1s linear infinite; /* Ça bouge tout le temps */
    /* Masqué par défaut, révélé par le JS en même temps que la ligne active */
    clip-path: url(#clip-path-dynamic); /* Sera géré par JS si besoin, ou simple opacité */
    opacity: 0; /* Révélé par JS */
}

@keyframes flowAnimation {
    to { stroke-dashoffset: -40; }
}

/* Villes & Radar */
.city-dot { fill: #000; stroke: var(--accent-color); stroke-width: 2; }
.city-dot-pulse { fill: var(--accent-color); opacity: 0; transform-origin: center; }

.city-radar {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1;
    opacity: 0;
    transform-origin: center;
    animation: radarPing 3s infinite;
}

@keyframes radarPing {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}

.city-label { font-family: var(--font-display); font-size: 24px; fill: #fff; opacity: 0; font-weight: bold; letter-spacing: 0.1em; }
.city-data { font-family: var(--font-body); font-size: 12px; fill: var(--accent-color); opacity: 0; letter-spacing: 0.2em; text-transform: uppercase; }
.text-right { text-anchor: end; }

.burst-line { stroke: var(--accent-color); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; opacity: 0.5; }
.europe-label { font-family: var(--font-display); font-size: 18px; fill: #fff; opacity: 0; letter-spacing: 0.3em; }

@media (max-width: 768px) {
    .roadmap-header-fixed { top: 5%; left: 5%; }
    .roadmap-header-fixed h3 { font-size: 2.5rem; }
    .city-label { font-size: 18px; }
    .city-data { font-size: 10px; }
}
}
/* --- HORIZONTAL SCROLL (100vw) --- */
.horizontal-section { width: 100%; height: 100vh; overflow: hidden; background: #000; position: relative; }
.horizontal-wrapper { display: flex; width: 300%; height: 100%; flex-wrap: nowrap; }

.panel { 
    width: 100vw; /* PLEIN ÉCRAN */
    height: 100vh; 
    display: flex; align-items: center; justify-content: flex-start; 
    position: relative; flex-shrink: 0; 
    padding: 0 10vw; box-sizing: border-box;
}

.img-box { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.img-box::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%); z-index: 2; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }

.panel-content { position: relative; z-index: 10; max-width: 650px; color: #fff; } 
.panel-number { font-family: var(--font-display); font-size: 10rem; color: rgba(255,255,255,0.1); position: absolute; top: -100px; left: -50px; z-index: -1; line-height: 1; }
.panel h2 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 6rem); text-transform: uppercase; line-height: 1; margin-bottom: 25px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.panel p { font-size: 1.3rem; color: var(--accent-color); max-width: 550px; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.8); border-left: 3px solid var(--accent-color); padding-left: 20px; }

/* --- ARCHITECTURE --- */
.architecture { padding: 150px 50px; background: #051016; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.arch-text h3 { font-family: var(--font-display); font-size: 3.5rem; margin-bottom: 30px; line-height: 1; }
.arch-text p { font-size: 1.1rem; margin-bottom: 20px; color: #aaa; max-width: 500px; }
.arch-visual { height: 600px; overflow: hidden; position: relative; }
.arch-visual img { width: 100%; height: 120%; object-fit: cover; }

/* --- DECARBONATION --- */
.decarbonation { padding: 150px 50px; position: relative; overflow: hidden; }
.decarb-bg { position: absolute; top: 0; right: 0; width: 100%; height: 100%; z-index: 0; background-image: url('assets/co2.jpg'); background-size: cover; background-position: center; }
.decarb-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 18, 26, 0.85); z-index: 1; }
.decarb-content { position: relative; z-index: 2; max-width: 800px; }
.decarb-content h3 { font-family: var(--font-display); font-size: 3.5rem; margin-bottom: 30px; color: #fff; }
.stats-grid { display: flex; gap: 60px; margin-top: 50px; }
.stat-num { display: block; font-family: var(--font-display); font-size: 4rem; color: var(--accent-color); line-height: 1; }
.stat-desc { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: #ccc; }

/* --- CCI SECTION (NEW) --- */
.cci-section { padding: 100px 50px; background: var(--bg-cci); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.cci-content { text-align: center; max-width: 900px; margin: 0 auto; }
.cci-label { display: block; font-size: 0.9rem; letter-spacing: 0.2em; color: var(--accent-color); margin-bottom: 20px; text-transform: uppercase; }
.cci-content h3 { font-family: var(--font-display); font-size: 3.5rem; color: #fff; margin-bottom: 30px; }
.cci-desc { font-size: 1.3rem; color: #ccc; line-height: 1.6; margin-bottom: 40px; }
.cci-logo-large { font-family: var(--font-display); font-size: 2rem; color: #fff; border: 1px solid var(--accent-color); display: inline-block; padding: 20px 40px; letter-spacing: 0.1em; }

/* --- PARTNERS --- */
.partners-section { padding: 150px 50px; background: var(--bg-gradient-main); }
.founders-block, .partners-block { margin-bottom: 60px; }
h4 { font-size: 0.9rem; letter-spacing: 0.2em; color: #666; margin-bottom: 40px; text-transform: uppercase; }
.founders-grid { display: flex; gap: 40px; }
.founder-card { border: 1px solid var(--border-color); padding: 30px; width: 300px; transition: 0.3s; }
.founder-card:hover { background: rgba(196, 176, 133, 0.05); border-color: var(--accent-color); }
.f-name { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 5px; }
.f-role { font-size: 0.8rem; color: var(--accent-color); }
.divider { height: 1px; background: #222; margin: 60px 0; }
.partners-grid { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.partner-logo { padding: 20px 40px; border: 1px solid #333; color: #888; font-weight: 600; letter-spacing: 0.1em; transition: 0.3s; height: 100%; display: flex; align-items: center; }
.partner-logo:hover { color: #fff; border-color: #fff; }

/* --- FOOTER --- */
.footer { height: 80vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background-image: url('assets/world.jpg'); background-size: cover; background-position: center; }
.footer::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 18, 26, 0.85); z-index: 1; }
.footer-content { position: relative; z-index: 2; width: 100%; }
.footer-cta { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 7rem); text-align: center; line-height: 0.9; margin-bottom: 50px; color: #fff; transition: 0.5s; }
.footer:hover .footer-cta { color: var(--accent-color); transform: scale(1.05); }
.footer-bottom { display: flex; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 30px; padding-left: 0; padding-right: 0; }
.email-link { display: block; color: #ccc; font-size: 1.1rem; margin-bottom: 5px; text-decoration: underline; text-underline-offset: 5px; transition: 0.3s; cursor: pointer; }
.email-link:hover { color: var(--accent-color); text-decoration-color: var(--accent-color); }
.linkedin-icon { color: #ccc; transition: 0.3s; display: block; }
.linkedin-icon svg { width: 30px; height: 30px; }
.linkedin-icon:hover { color: var(--accent-color); transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-sidebar { width: 80%; }
    .split-layout { grid-template-columns: 1fr; }
    .arch-visual { height: 400px; margin-top: 40px; }
    .stats-grid { flex-direction: column; gap: 30px; }
    .founders-grid { flex-direction: column; }
    .partners-grid { flex-direction: column; align-items: flex-start; }
    .panel { padding: 0 20px; justify-content: center; text-align: center; }
    .panel-content { width: 100%; }
    .panel p { margin: 0 auto; border-left: none; border-top: 3px solid var(--accent-color); padding-left: 0; padding-top: 15px; }
    .panel-number { top: -60px; left: 50%; transform: translateX(-50%); font-size: 6rem; }
    .footer-bottom { flex-direction: column; gap: 30px; text-align: center; align-items: center; }
    .navbar { padding: 15px 20px; }
    .map-line-container { flex-direction: column; height: 400px; }
    .map-line { width: 2px; height: 80px; }
    .map-line::after { width: 100%; height: 0%; transition: height 1s ease; }
}
