/* =========================================
   VARIABLES & RESET (VERSION MIDNIGHT BLUE)
========================================= */
:root {
    --bg-main: #0b1120;
    --bg-panel: rgba(30, 41, 59, 0.6);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-cyan: #00d2ff;
    --accent-orange: #ff7a00;
    --accent-red: #ff4757;
    --accent-gold: #f5b041;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* OPTIMISATION (Performance) : Déplacement de scroll-behavior */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Utilitaires globaux */
.text-center { text-align: center; }
.subtitle { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; color: var(--text-muted); }
.dark-bg { background-color: #0f172a; border-top: 1px solid rgba(0, 210, 255, 0.05); border-bottom: 1px solid rgba(0, 210, 255, 0.05); }

/* =========================================
   HEADER / NAVIGATION
========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.btn-nav {
    background: rgba(0, 210, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan) !important;
}

.btn-nav:hover {
    background: var(--accent-cyan);
    color: #0b1120 !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-primary-nav {
    background: var(--accent-cyan);
    color: #0b1120 !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary-nav:hover {
    background: #ffffff;
    color: var(--accent-cyan) !important;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

/* =========================================
   ICÔNES & COULEURS
========================================= */
/* OPTIMISATION (DRY) : Regroupement des marges communes */
.icon-huge, .icon-large, .icon-medium { margin-bottom: 15px; }
.icon-huge { font-size: 4rem; }
.icon-large { font-size: 2.5rem; }
.icon-medium { font-size: 1.5rem; margin-bottom: 10px; } /* Surcharge spécifique */

.cyan-color { color: var(--accent-cyan); text-shadow: 0 0 20px rgba(0, 210, 255, 0.4); }
.orange-color { color: var(--accent-orange); text-shadow: 0 0 20px rgba(255, 122, 0, 0.4); }
.red-color { color: var(--accent-red); text-shadow: 0 0 20px rgba(255, 71, 87, 0.4); }
.gold-color { color: var(--accent-gold); text-shadow: 0 0 20px rgba(245, 176, 65, 0.4); }
.warning-color { color: var(--accent-orange); }

/* =========================================
   EFFETS PARALLAXE ET HERO SECTION
========================================= */
.parallax-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.hero {
    min-height: 100vh;
    height: auto;

    /* Positionne l’ensemble vers le haut */
    align-items: flex-start;

    /* Laisse la place pour le header fixe */
    padding: 90px 20px 60px;

    background-image:
        linear-gradient(
            rgba(11, 17, 32, 0.7),
            rgba(11, 17, 32, 0.95)
        ),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
}

.hero-wrapper {
    width: 100%;
    max-width: 1200px;

    display: flex;
    flex-direction: column;
    align-items: center;

    /* Réduit l’espace entre le logo et le bloc */
    gap: 12px;
}

.hero-logo {
    display: block;
    width: clamp(260px, 34vw, 460px);
    height: auto;
    object-fit: contain;

    /* Conserve l’intégration du fond noir dans la page */
    mix-blend-mode: screen;

    /* Retire uniquement le blur / halo ajouté en CSS */
    filter: none;
}

.hero-content {
    width: 100%;
}

.middle-parallax {
    min-height: 60vh;
    padding: 80px 20px;
    background-image: linear-gradient(rgba(11, 17, 32, 0.8), rgba(11, 17, 32, 0.9)), url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?q=80&w=2072&auto=format&fit=crop');
}

.hero-icon {
    font-size: 5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    /* OPTIMISATION (DRY) : Fusion des étapes 0% et 100% qui sont identiques */
    0%, 100% { transform: translateY(0px); text-shadow: 0 10px 20px rgba(0, 210, 255, 0.2); }
    50% { transform: translateY(-10px); text-shadow: 0 20px 30px rgba(0, 210, 255, 0.5); }
}

.content {
    background: rgba(15, 23, 42, 0.6);
    padding: 70px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 1200px;
}

.wide-content { max-width: 1100px; width: 100%; }

.hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

/* =========================================
   INDICATEUR DE SCROLL (SOURIS + FLÈCHES)
========================================= */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    text-decoration: none;
    gap: 8px;
    cursor: pointer;
}

/* Dessin de la souris en CSS */
.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--accent-cyan);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

/* La molette animée */
.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    margin-top: 6px;
    animation: scroll-wheel 1.5s infinite;
    transition: all 0.3s ease;
}

/* Les petites flèches pointant vers le bas */
.scroll-indicator .arrows i {
    display: block;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    line-height: 0.6;
    animation: scroll-arrows 1.5s infinite;
    transition: all 0.3s ease;
}

/* Décalage de l'animation pour la deuxième flèche */
.scroll-indicator .arrows i:nth-child(2) {
    animation-delay: 0.2s;
}

/* Animations */
@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@keyframes scroll-arrows {
    0% { opacity: 0; transform: translateY(-5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(5px); }
}

/* Effet lumineux au survol (cohérent avec le reste du site) */
.scroll-indicator:hover .mouse {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.scroll-indicator:hover .wheel {
    background-color: #ffffff;
}

.scroll-indicator:hover .arrows i {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* =========================================
   BOUTONS
========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    color: #0b1120;
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    margin-top: 20px;
}

.btn:hover {
    background: #ffffff;
    color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.5);
}

.btn-large { font-size: 1.2rem; padding: 15px 40px; }

/* =========================================
   SECTIONS & GRILLES
========================================= */
.content-section { padding: 80px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-phase { max-width: 1400px; margin: 0 auto; }
.content-section h2 { font-size: 2.5rem; color: #ffffff; text-align: center; margin-bottom: 50px; text-transform: uppercase; }

.visual-grid { display: grid; gap: 30px; margin-bottom: 50px; }
.two-cols { grid-template-columns: 1fr 1fr; }
.three-cols { grid-template-columns: 1fr 1fr 1fr; }

.card, .stat-card {
    background: var(--bg-panel);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); 
    border-color: rgba(255, 255, 255, 0.15); 
}

.warning-card { border-top: 3px solid var(--accent-orange); }
.stat-card { border-top: 3px solid var(--accent-cyan); }

/* =========================================
   DIAGRAMMES ("Chicken Space" & "Clearing")
========================================= */
.diagram-box {
    background: var(--bg-panel);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    backdrop-filter: blur(8px);
}

.diagram-box h3 { text-align: center; margin-bottom: 40px; color: #ffffff; font-size: 1.8rem; }

.satellite-faceoff { display: flex; justify-content: space-between; align-items: center; }
.sat-item { flex: 1; text-align: center; position: relative; }
.gauge-item { flex: 1; text-align: center; padding: 0 20px; border-left: 1px dashed rgba(255,255,255,0.1); border-right: 1px dashed rgba(255,255,255,0.1); }

.speech-bubble {
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid var(--accent-orange);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--accent-orange) transparent transparent transparent;
}

.stalemate-text { margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

.clearing-diagram { display: flex; justify-content: space-between; align-items: stretch; gap: 20px; }

.actor-card {
    flex: 1;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.actor-card ul { list-style: none; margin: 20px 0; font-family: monospace; font-size: 1.1rem; color: #e2e8f0; }
.actor-card li { margin-bottom: 10px; }

.deal-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(245,176,65,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    text-align: center;
}

.highlight-profit {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: bold;
    border-radius: 8px;
    font-family: var(--font-heading);
}

.system-value { margin-top: 40px; font-size: 2rem; color: var(--accent-cyan); text-shadow: 0 0 15px rgba(0, 210, 255, 0.3); }

/* =========================================
   PROCESS PIPELINE & TIMELINE
========================================= */
.process-pipeline { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 120px; }
.process-step p { font-family: var(--font-heading); font-size: 0.9rem; margin-top: 15px; color: var(--text-main); }
.process-arrow { font-size: 2rem; color: rgba(255, 255, 255, 0.15); padding: 0 15px; }
.final-credit h3 { margin-top: 10px; }

.icon-timeline { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.timeline-box {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    border-top: 3px solid var(--accent-cyan);
    backdrop-filter: blur(8px);
}
.timeline-box h4 { margin-bottom: 15px; color: #ffffff; }
.timeline-box p { font-size: 1.1rem; color: var(--text-muted); }

/* =========================================
   FOOTER
========================================= */
.footer-section { padding: 80px 20px; background: #060b14; border-top: 2px solid var(--accent-cyan); }
.footer-section h2 { color: #ffffff; }
.footer-badges { margin: 40px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge i { color: var(--accent-cyan); }

/* =========================================
   COMMON ORBIT logo
========================================= */
.common-orbit{
  --co-size: 2rem;

  display:inline-flex;
  align-items:center;
  gap:.08em;
  font-weight:800;
  font-size:var(--co-size);
  letter-spacing:.02em;
  font-family:Inter, system-ui, sans-serif;
}

.common-orbit .co{
  display:inline-block;
  line-height:1;
}

.common-orbit .co-c{
  background:linear-gradient(135deg,#7c3aed,#06b6d4,#a855f7);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 .45em rgba(124,58,237,.22);
  transform:translateY(-0.03em) scale(1.08);
  text-transform:uppercase;
}

.common-orbit .co-c-dark{
  background:linear-gradient(135deg,#441a8d,#1097ae,#7239a6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 .45em rgba(124,58,237,.22);
  transform:translateY(-0.03em) scale(1.08);
  text-transform:uppercase;
}

.common-orbit .co-rest{
  color: var(--co-rest-color, #e5e7eb);
  text-transform: none;
}

.common-orbit .co-icon{
  margin:0 .18em;
  font-size:.72em;
  color:#06b6d4;
  opacity:.9;
}

.common-orbit .co-icon-dark{
  margin:0 .18em;
  font-size:.72em;
  color:#20325c; /* plus sombre */
  opacity:.95;
}

.common-orbit .co-icon, .co-icon-dark i{
  animation:co-spin 5s linear infinite;
}

@keyframes co-spin{
  to{ transform:rotate(360deg); }
}

/* =========================================
   RESPONSIVE (Mobiles et Tablettes)
========================================= */
@media (max-width: 1100px) {
    .header-container { padding: 10px 20px; }
    .main-nav ul li { display: none; }
    .main-nav ul li:last-child { display: block; }
}

@media (max-width: 768px) {
    .header-container { padding: 10px 15px; }
    .logo { font-size: 1.1rem; }
    .nav-text { display: none; } 
    .btn-primary-nav { padding: 8px 14px; font-size: 1.1rem; }

    .hero { padding: 78px 15px 40px;}

    .hero-wrapper { gap: 8px;}

    .hero-logo {
        width: min(55vw, 210px);
        filter: none;
        mix-blend-mode: normal;
    }

    .hero-content {
        width: 100%;
        padding: 30px 20px !important;
        margin: 0;
    }

    .hero-content h1 { font-size: 1.8rem !important; }
    .hero-content .subtitle { font-size: 1rem !important; margin-bottom: 20px; }
    
    .content-section h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.3rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; margin-top: 10px; }

    .two-cols { grid-template-columns: 1fr; }
    .satellite-faceoff, .clearing-diagram, .icon-timeline, .process-pipeline { flex-direction: column; gap: 40px; }
    
    .gauge-item { border: none; border-top: 1px dashed rgba(255,255,255,0.1); border-bottom: 1px dashed rgba(255,255,255,0.1); padding: 30px 0; }
    .process-arrow { transform: rotate(90deg); margin: 20px 0; }
    .content { padding: 30px 20px; }
}