:root {
    --navy: #0A2540;
    --navy-light: #1A3A5C;
    --navy-dark: #051829;
    --spirulina: #00B894;
    --spirulina-light: #00D9A3;
    --spirulina-dark: #00A080;
    --gold: #F4A636;
    --white: #FFFFFF;
    --gray-50: #F8FAFB;
    --gray-100: #F1F4F6;
    --gray-200: #E4E9ED;
    --gray-300: #D1D9E0;
    --gray-400: #A8B4C0;
    --gray-500: #6B7A8F;
    --gray-600: #4A5A6F;
    --gray-700: #2E3A4F;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-unit: 8px;
    --section-padding: 120px;
    --container-max: 1280px;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-600);
}

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--spirulina), var(--spirulina-light));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===================== NAVIGATION ===================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--gray-200);
    box-shadow: 0 2px 24px rgba(10, 37, 64, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s var(--ease-smooth);
}

.nav.scrolled .nav-container {
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s var(--ease-smooth);
}

.nav.scrolled .logo {
    color: var(--navy);
}

.logo:hover {
    color: var(--spirulina);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--gray-600);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--spirulina);
    transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover {
    color: var(--spirulina-light);
}

.nav.scrolled .nav-links a:hover {
    color: var(--navy);
}

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

.nav-cta {
    padding: 0.6rem 1.5rem;
    background: var(--spirulina) !important;
    color: var(--white) !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s var(--ease-smooth) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--spirulina-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.35) !important;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.nav.scrolled .lang-switcher {
    border-left-color: var(--gray-200);
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s var(--ease-smooth);
    opacity: 0.5;
    display: flex;
    align-items: center;
}

.lang-btn img {
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lang-btn:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 2rem 80px;
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0, 184, 148, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(26, 58, 92, 0.6) 0%, transparent 60%),
        linear-gradient(160deg, #051829 0%, #0A2540 50%, #0d2e4a 100%);
    z-index: 0;
}

/* Floating orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.15) 0%, transparent 70%);
    animation: orbFloat linear infinite;
}

.hero-orb:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -100px; animation-duration: 20s; }
.hero-orb:nth-child(2) { width: 300px; height: 300px; bottom: 10%; left: 5%; animation-duration: 15s; animation-delay: -5s; }
.hero-orb:nth-child(3) { width: 200px; height: 200px; top: 30%; right: 20%; animation-duration: 25s; animation-delay: -10s; opacity: 0.5; }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    33% { transform: translateY(-30px) scale(1.05); }
    66% { transform: translateY(15px) scale(0.97); }
}

/* Bubble particles */
.hero-bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -30px;
    width: 48px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Cpath d='M0,10 C5,1 10,1 15,10 C20,19 25,19 30,10 C35,1 40,1 45,10 C50,19 55,19 60,10' fill='none' stroke='%2300D9A3' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    animation: bubbleRise linear infinite;
}

.bubble:nth-child(1)  { left: 10%; width: 36px;  height: 12px; animation-duration: 8s;  animation-delay: 0s; }
.bubble:nth-child(2)  { left: 20%; width: 60px;  height: 20px; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(3)  { left: 35%; width: 30px;  height: 10px; animation-duration: 9s;  animation-delay: 4s; opacity: 0.5; }
.bubble:nth-child(4)  { left: 50%; width: 48px;  height: 16px; animation-duration: 11s; animation-delay: 1s; }
.bubble:nth-child(5)  { left: 62%; width: 24px;  height: 8px;  animation-duration: 7s;  animation-delay: 6s; opacity: 0.6; }
.bubble:nth-child(6)  { left: 75%; width: 72px;  height: 24px; animation-duration: 14s; animation-delay: 3s; opacity: 0.3; }
.bubble:nth-child(7)  { left: 85%; width: 36px;  height: 12px; animation-duration: 10s; animation-delay: 5s; }
.bubble:nth-child(8)  { left: 92%; width: 48px;  height: 16px; animation-duration: 13s; animation-delay: 7s; opacity: 0.4; }

@keyframes bubbleRise {
    0%   { transform: translateY(0) translateX(0);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.hero-title-line {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0;
    animation: heroLineIn 0.9s var(--ease-out-expo) forwards;
    line-height: 1.15;
}

.hero-title-line:nth-child(1) { animation-delay: 0.3s; }
.hero-title-line:nth-child(2) { animation-delay: 0.5s; }

.hero-title-accent {
    color: var(--spirulina-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.8;
    opacity: 0;
    animation: heroLineIn 0.9s var(--ease-out-expo) 0.7s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroLineIn 0.9s var(--ease-out-expo) 0.9s forwards;
}

.hero-visual {
    position: relative;
    opacity: 0;
    animation: fadeIn 1.2s var(--ease-smooth) 1.1s forwards;
}

@keyframes heroLineIn {
    from { opacity: 0; transform: translateY(40px) skewY(1deg); }
    to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,184,148,0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 184, 148, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 184, 148, 0.06) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--spirulina);
    opacity: 0.5;
}

.placeholder-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero stats */
.hero-stats {
    max-width: var(--container-max);
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-smooth);
    opacity: 0;
    animation: fadeInUp 0.7s var(--ease-smooth) forwards;
    backdrop-filter: blur(8px);
    cursor: default;
}

.stat:nth-child(1) { animation-delay: 1.3s; }
.stat:nth-child(2) { animation-delay: 1.45s; }
.stat:nth-child(3) { animation-delay: 1.6s; }

.stat:hover {
    transform: translateY(-6px);
    background: rgba(0, 184, 148, 0.12);
    border-color: rgba(0, 184, 148, 0.4);
    box-shadow: 0 12px 32px rgba(0, 184, 148, 0.15);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--spirulina-light);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--spirulina);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
    background: var(--spirulina-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 184, 148, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--spirulina);
    color: var(--spirulina-light);
    transform: translateY(-3px);
}

/* On white backgrounds */
section:not(.hero) .btn-secondary {
    color: var(--navy);
    border-color: var(--navy);
}

section:not(.hero) .btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* ===================== SECTION SHARED ===================== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding) 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* ---- Label vertical gauche ---- */
.section-label {
    position: absolute;
    left: -2.5rem;
    top: 0;
    writing-mode: vertical-rl;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--spirulina);
    white-space: nowrap;
    /* état initial animation */
    opacity: 0;
    transform: rotate(180deg) translateY(20px);
    transition: opacity 0.55s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.section-label.revealed {
    opacity: 1;
    transform: rotate(180deg) translateY(0);
    transition: opacity 0.55s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.section-label.parallax-active {
    transition: opacity 0.55s var(--ease-out-expo);
}

/* Hélices au-dessus et en-dessous du label vertical */
.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 48px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Cpath d='M0,10 C5,1 10,1 15,10 C20,19 25,19 30,10 C35,1 40,1 45,10 C50,19 55,19 60,10' fill='none' stroke='%2300B894' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    transition-delay: 0.35s;
}

.section-label::before {
    bottom: 100%;
    margin-bottom: 1.5rem;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: center;
}

.section-label::after {
    top: 100%;
    margin-top: 1.5rem;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: center;
}

.section-label.revealed::before,
.section-label.revealed::after {
    opacity: 0.6;
}

.section-title {
    font-size: 2.75rem;
    color: var(--navy);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ---- Section title : remontée plus ample, décalée ---- */
.section-title {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    transition-delay: 0.15s;
}
.section-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Section intro : fondu décalé ---- */
.section-intro {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    transition-delay: 0.3s;
}
.section-intro.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ===================== ABOUT ===================== */
.about {
    background: var(--white);
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-intro .lead {
    margin-bottom: 2rem;
}

/* ===================== SYSTEM ===================== */
.system {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.system::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,184,148,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.system .section-label {
    color: var(--spirulina-light);
}

.system .section-title {
    color: var(--white);
}

.system-content {
    max-width: 800px;
    margin: 0 auto;
}

.system-content p {
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: var(--font-body);
    -webkit-font-smoothing: auto;
    text-align: center;
}


.system-content p:last-child { margin-bottom: 0; }

/* ===================== PRESTATION DIAGRAM =====================
   ViewBox 480×480, centre (240,240), rayon orbite 172.
   Points cardinaux sur l'anneau :
     top    → (240, 68)  = (50%,  14.17%)
     right  → (412, 240) = (85.83%, 50%)
     bottom → (240, 412) = (50%,  85.83%)
     left   → (68,  240) = (14.17%, 50%)
   Chaque nœud (64px) est centré sur son point cardinal via translate(-50%,-50%).
   L'animation d'entrée utilise `scale` (indépendant de `transform`) pour ne pas
   écraser le positionnement.
================================================================ */
.prestation-diagram {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 5rem auto 0;
    aspect-ratio: 1 / 1;
    user-select: none;
}

/* ---- SVG ---- */
.prestation-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Anneau intérieur statique */
.orbit-inner-ring {
    fill: none;
    stroke: rgba(0,184,148,0.2);
    stroke-width: 1;
}

/* Anneau orbital : se dessine à l'entrée puis tourne */
.orbit-track {
    fill: none;
    stroke: rgba(0,184,148,0.25);
    stroke-width: 1.5;
    stroke-dasharray: 12 8;
    stroke-dashoffset: 1082;
    transition: stroke-dashoffset 1.4s var(--ease-out-expo);
    transform-box: view-box;
    transform-origin: 50% 50%;
}

.prestation-diagram.revealed .orbit-track {
    stroke-dashoffset: 0;
    animation: orbit-track-spin 30s linear infinite;
    animation-delay: 1.5s;
}

@keyframes orbit-track-spin {
    to { transform: rotate(360deg); }
}

/* Satellite */
.orbit-satellite {
    transform-box: view-box;
    transform-origin: 50% 50%;
    opacity: 0;
    transition: opacity 0.4s;
    transition-delay: 1.4s;
}

.prestation-diagram.revealed .orbit-satellite {
    opacity: 1;
    animation: orbit-satellite-spin 30s linear infinite;
    animation-delay: 1.5s;
}

@keyframes orbit-satellite-spin {
    to { transform: rotate(360deg); }
}

.orbit-dot {
    fill: var(--spirulina);
}

.orbit-dot-glow {
    fill: rgba(0,184,148,0.2);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { r: 10; opacity: 0.2; }
    50%       { r: 14; opacity: 0.4; }
}

/* ---- Centre ---- */
.prestation-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background: rgba(0,184,148,0.12);
    border: 1.5px solid rgba(0,184,148,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--spirulina-light);
    text-transform: uppercase;
    z-index: 3;
    opacity: 0;
    scale: 0.4;
    transition: opacity 0.6s var(--ease-out-expo), scale 0.6s var(--ease-bounce);
}

.prestation-diagram.revealed .prestation-center {
    opacity: 1;
    scale: 1;
}

.prestation-center:hover {
    background: rgba(0,184,148,0.22);
    border-color: var(--spirulina);
}

/* Anneaux pulse */
.prestation-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(0,184,148,0.5);
    opacity: 0;
}

.prestation-pulse--2 {
    inset: -20px;
    border-color: rgba(0,184,148,0.25);
}

.prestation-diagram.revealed .prestation-pulse {
    animation: pulse-ring 3s ease-out 1s infinite;
}

.prestation-diagram.revealed .prestation-pulse--2 {
    animation: pulse-ring 3s ease-out 1.5s infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---- Nœuds ---- */
.prestation-node {
    position: absolute;
    width: 64px;
    height: 64px;
    z-index: 2;
    cursor: default;
    opacity: 0;
    scale: 0;
    transition: opacity 0.45s var(--ease-out-expo), scale 0.55s var(--ease-bounce);
}

/* Centre de chaque badge = point cardinal sur l'anneau */
.pn-top    { left: 50%;     top: 14.17%;   transform: translate(-50%, -50%); transition-delay: 0.35s; }
.pn-right  { left: 85.83%;  top: 50%;      transform: translate(-50%, -50%); transition-delay: 0.5s;  }
.pn-bottom { left: 50%;     top: 85.83%;   transform: translate(-50%, -50%); transition-delay: 0.65s; }
.pn-left   { left: 14.17%;  top: 50%;      transform: translate(-50%, -50%); transition-delay: 0.8s;  }

.prestation-diagram.revealed .prestation-node { opacity: 1; scale: 1; }

/* Badge */
.pn-badge {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(0,184,148,0.1);
    border: 1.5px solid rgba(0,184,148,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, scale 0.3s var(--ease-bounce);
    position: relative;
}

.pn-badge::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: border-color 0.3s, inset 0.3s;
}

.prestation-node:hover .pn-badge {
    background: rgba(0,184,148,0.22);
    border-color: var(--spirulina);
    box-shadow: 0 0 28px rgba(0,184,148,0.4);
    scale: 1.12;
}

.prestation-node:hover .pn-badge::after {
    border-color: rgba(0,184,148,0.35);
    inset: -10px;
}

.pn-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--spirulina-light);
    line-height: 1;
}

/* Infos : positionnées vers l'extérieur, desc hors flux */
.pn-info {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    pointer-events: none;
}

.pn-top .pn-info {
    bottom: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}
.pn-right .pn-info {
    left: calc(100% + 0.4rem);
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-start;
}
.pn-bottom .pn-info {
    top: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}
.pn-left .pn-info {
    right: calc(100% + 0.4rem);
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
    text-align: right;
}

.pn-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    white-space: nowrap;
    transition: color 0.3s;
}

.prestation-node:hover .pn-label { color: var(--spirulina-light); }

/* desc hors flux : n'affecte pas la hauteur du label */
.pn-desc {
    position: absolute;
    font-size: 0.7rem;
    color: transparent;
    max-width: 120px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    transition: color 0.35s var(--ease-smooth);
    pointer-events: none;
}

.pn-top .pn-desc    { bottom: calc(100% + 0.1rem); }
.pn-bottom .pn-desc { top: calc(100% + 0.1rem); }
.pn-right .pn-desc  { top: calc(100% + 0.1rem); left: 0; text-align: left; }
.pn-left .pn-desc   { top: calc(100% + 0.1rem); right: 0; text-align: right; }

.prestation-node:hover .pn-desc { color: rgba(255,255,255,0.5); }

/* Pause rotation au hover */
.prestation-diagram:has(.prestation-node:hover) .orbit-track,
.prestation-diagram:has(.prestation-node:hover) .orbit-satellite {
    animation-play-state: paused;
}

/* Mobile */
@media (max-width: 768px) {
    .prestation-diagram { max-width: 360px; }
    .pn-badge { width: 52px; height: 52px; }
    .prestation-node { width: 52px; height: 52px; }
    .pn-desc { display: none; }
}

@media (max-width: 480px) {
    .prestation-diagram { max-width: 280px; }
    .prestation-center { width: 72px; height: 72px; font-size: 0.55rem; }
    .pn-badge { width: 44px; height: 44px; }
    .prestation-node { width: 44px; height: 44px; }
    .pn-num { font-size: 0.85rem; }
    .pn-label { font-size: 0.7rem; }
}

/* ===================== ADVANTAGES ===================== */
.advantages--flux {
    background: var(--gray-50);
}

.advantages-intro {
    max-width: 860px;
    margin: 0 auto 4rem;
    text-align: center;
}

.flux-phases {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flux-phase {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0 3rem;
    padding: 3.5rem 0;
    border-top: 1px solid var(--gray-200);
    position: relative;
}

.flux-phase:last-child {
    border-bottom: 1px solid var(--gray-200);
}

.flux-phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--spirulina), transparent);
    transition: width 0.6s var(--ease-out-expo);
}

.flux-phase.revealed::before {
    width: 100%;
}

.flux-phase-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
    position: sticky;
    top: 120px;
    align-self: start;
}

.flux-phase-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gray-200);
    line-height: 1;
    transition: color 0.4s var(--ease-smooth);
}

.flux-phase.revealed .flux-phase-number {
    color: rgba(0, 184, 148, 0.2);
}

.flux-phase-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--spirulina);
    margin: 0;
}

.flux-phase-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.flux-card {
    padding: 1.75rem;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    transition: all 0.35s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.flux-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--spirulina), var(--spirulina-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-smooth);
}

.flux-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10, 37, 64, 0.1);
    border-color: var(--spirulina);
}

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

.flux-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.flux-card p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin: 0 0 1rem;
}

/* Growth timeline card */
.flux-card--growth {
    grid-column: 1 / -1;
}

.growth-timeline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.growth-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 80px;
}

.growth-photo-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
}

.growth-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s var(--ease-smooth);
}

.flux-card--growth:hover .growth-photo {
    transform: scale(1.04);
}

.growth-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--spirulina);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.growth-arrow {
    font-size: 1.25rem;
    color: var(--gray-300);
    flex-shrink: 0;
    align-self: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .growth-timeline {
        gap: 0.4rem;
    }
    .growth-arrow {
        font-size: 1rem;
    }
}

/* ===================== PROJECTS ===================== */
.projects {
    background: var(--white);
}

.projects--implementation {
    background: var(--gray-50);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.projects-grid--single {
    grid-template-columns: 1fr;
    margin-bottom: 5rem;
}

.section-header--sub {
    margin-top: 5rem;
}

.section-intro {
    max-width: 640px;
    color: var(--gray-500);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-top: 0.75rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: var(--gray-50);
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: 0 0 0 2px var(--spirulina);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(10, 37, 64, 0.12);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 420px;
    overflow: hidden;
}

.project-image {
    height: 100%;
    min-height: 320px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-image .project-media {
    flex: 1;
    height: 100%;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 184, 148, 0.06) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.project-content {
    padding: 2.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 184, 148, 0.12);
    color: var(--spirulina-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    border: 1px solid rgba(0, 184, 148, 0.25);
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.project-card p {
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.project-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label { color: var(--gray-500); font-size: 0.85rem; }
.spec-value { color: var(--navy); font-weight: 600; }

/* ===================== FOUNDERS ===================== */
.founders-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.founders-section::before {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,184,148,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.founders-section .section-label {
    color: var(--spirulina-light);
}

.founders-section .section-title {
    color: var(--white);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.founders-together {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    border-left: 3px solid var(--spirulina);
    background: rgba(0,184,148,0.07);
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(4px);
}

.founders-together p {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    line-height: 1.75;
    margin: 0;
    font-style: italic;
}

.founder-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

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

.founder-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(0, 184, 148, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

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

.founder-image-placeholder {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(0,184,148,0.2) 0%, rgba(0,184,148,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 184, 148, 0.3);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem;
}

.founder-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.founder-role {
    color: var(--spirulina-light);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.founder-bio {
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    font-size: 1rem;
}

/* ===================== CONTACT ===================== */
.contact {
    background: var(--gray-50);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}


.contact-info .lead { margin-bottom: 3rem; }

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-smooth);
}

.contact-method:hover {
    border-color: var(--spirulina);
    box-shadow: 0 4px 16px rgba(0,184,148,0.08);
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail-icon {
    font-size: 1rem;
    color: var(--spirulina);
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.contact-detail-link {
    color: var(--navy);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s var(--ease-smooth);
}

.contact-detail-link:hover {
    color: var(--spirulina);
}

.contact-method p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.contact-method p:last-child { margin-bottom: 0; }

.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 40px rgba(10, 37, 64, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
    background: var(--gray-50);
    color: var(--navy);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--spirulina);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

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

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 184, 148, 0.1);
    color: var(--spirulina-dark);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--spirulina), transparent);
    opacity: 0.4;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 360px;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
    font-size: 1rem;
}

.footer-links a:hover { color: var(--spirulina-light); }

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ===================== MEDIA ELEMENTS ===================== */

/* Hero image */
.hero-media {
    aspect-ratio: 4/3;
    border-radius: 16px;
    border: 1px solid rgba(0, 184, 148, 0.3);
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.03);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}

.hero-media:hover .hero-img {
    transform: scale(1.03);
}

/* Project media */
.project-media {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--gray-100);
}

.project-media--card {
    height: 200px;
    border-bottom: 1px solid var(--gray-200);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-smooth);
}

.project-card:hover .project-img {
    transform: scale(1.04);
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video block */
.video-media {
    cursor: pointer;
}

.video-poster-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-poster-wrap .project-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quand le poster est manquant, fond gris + label */
.poster-missing-fallback {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--gray-100);
    align-items: center;
    justify-content: center;
}

.video-poster-wrap.poster-missing .video-poster-img { display: none; }
.video-poster-wrap.poster-missing .poster-missing-fallback { display: flex; }

.poster-missing-label {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--gray-400);
    text-align: center;
    padding: 1rem;
}

/* Bouton play */
.video-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    background: rgba(0, 184, 148, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 24px rgba(0, 184, 148, 0.5);
    transition: all 0.3s var(--ease-smooth);
    backdrop-filter: blur(4px);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: var(--spirulina);
    box-shadow: 0 6px 32px rgba(0, 184, 148, 0.7);
}

.project-video.hidden { display: none; }

/* Founder photo */
.founder-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 184, 148, 0.3);
    position: relative;
    background: rgba(0,184,148,0.08);
    flex-shrink: 0;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Fallback when media is missing */
.hero-media.media-missing .hero-img,
.project-media.media-missing .project-img,
.project-media.media-missing .project-video,
.founder-photo.media-missing .founder-img {
    display: none;
}

.media-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.hero-media.media-missing .media-fallback {
    display: flex;
    position: absolute;
    inset: 0;
}

.hero-media.media-missing .media-fallback .placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--spirulina);
    opacity: 0.4;
}

.hero-media.media-missing .media-fallback .placeholder-text {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    font-family: monospace;
}

.media-missing-label {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--gray-400);
    padding: 1rem;
    line-height: 1.6;
    background: var(--gray-50);
}

.project-media.media-missing .media-missing-label,
.founder-photo.media-missing .media-missing-label {
    display: flex;
}

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

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ===================== EDITORIAL VARIANT (unused but kept) ===================== */
.advantages--editorial { background: var(--navy); }
.advantages--editorial .section-label { color: var(--spirulina); }
.advantages--editorial .section-title { color: var(--white); }
.advantages--editorial .advantages-intro .lead { color: rgba(255,255,255,0.65); }
.editorial-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 0; }
.editorial-item { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 2rem 2rem 2rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.editorial-item:nth-child(odd) { padding-right: 3rem; border-right: 1px solid rgba(255,255,255,0.08); }
.editorial-item:nth-child(even) { padding-left: 3rem; }
.editorial-item:nth-last-child(-n+2) { border-bottom: none; }
.editorial-num { font-family: 'Libre Baskerville',serif; font-size: 2.5rem; font-weight: 700; color: var(--spirulina); opacity: 0.4; line-height: 1; padding-top: 0.25rem; }
.editorial-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.editorial-content p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin: 0; }

/* ===================== HAMBURGER (hidden on desktop) ===================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}
.nav.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== RESPONSIVE ===================== */

/* ---- Tablette paysage (≤ 1024px) ---- */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }

    .founders-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .contact-info { position: static; }

    .flux-phase { grid-template-columns: 160px 1fr; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card.featured { grid-template-columns: 1fr 1fr; }

    /* NAV — écrans intermédiaires */
    .nav-links { gap: 1.1rem; }
    .nav-links a { font-size: 0.82rem; }

    /* Label vertical — masqué si pas assez de place */
    .section-label { display: none; }
}

/* ---- Tablette portrait (≤ 768px) ---- */
@media (max-width: 768px) {
    :root { --section-padding: 72px; }

    /* NAV */
    .nav-container { padding: 1rem 1.25rem; flex-wrap: nowrap; justify-content: space-between; }
    .hamburger { display: flex; }
    .nav-right {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1050;
        padding: 2rem;
    }
    .nav-right.open { display: flex; }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }
    .nav-links a { font-size: 1.15rem; color: rgba(255,255,255,0.9) !important; }
    .nav-links a::after { display: none; }
    .nav-cta { width: 100%; text-align: center; }
    .lang-switcher {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding: 1.5rem 0 0;
        gap: 1.25rem;
        width: 100%;
        justify-content: center;
    }
    .lang-btn { opacity: 0.7; }
    .lang-btn img { width: 32px; height: 24px; }

    /* HERO */
    .hero { padding: 110px 1.25rem 60px; }
    .hero-title-line { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.05rem; max-width: 100%; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 0 1.25rem; margin-top: 2.5rem; }
    .stat { padding: 1.25rem 0.75rem; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.75rem; }

    /* SECTIONS */
    .section-container { padding: var(--section-padding) 1.25rem; }
    .section-title { font-size: 2rem; }
    .section-header { margin-bottom: 2.5rem; }

    /* Label : retour position normale sur mobile */
    .section-label {
        position: static;
        writing-mode: horizontal-tb;
        transform: none;
        display: inline-block;
        margin-bottom: 0.75rem;
        opacity: 0;
        transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
        transform: translateY(10px);
    }
    .section-label.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .section-label::before { display: none; }

    /* SYSTEM */
    .system-content { padding: 0; }

    /* ADVANTAGES */
    .advantages-intro { margin-bottom: 2.5rem; }
    .flux-phase { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
    .flux-phase-header { position: static; flex-direction: row; align-items: center; gap: 1rem; }
    .flux-phase-number { font-size: 2.5rem; }
    .flux-phase-cards { grid-template-columns: 1fr; }
    .flux-card { padding: 1.5rem; }

    /* PROJECTS */
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-template-columns: 1fr; max-height: none; }
    .project-image { max-height: 260px; min-height: 220px; }
    .project-content { padding: 2rem 1.5rem; }
    .section-header--sub { margin-top: 3rem; }

    /* FOUNDERS */
    .founders-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .founder-card { padding: 2rem; }
    .founders-together { padding: 1.5rem 2rem; }

    /* CONTACT */
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info { position: static; }
    .contact-form-container { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }

    /* FOOTER */
    .footer { padding: 3rem 1.25rem 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; }
    .footer-links { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
}

/* ---- Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
    :root { --section-padding: 56px; }

    .hero { padding: 90px 1rem 50px; }
    .hero-title-line { font-size: 1.875rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; padding: 0 1rem; }
    .stat { padding: 1.25rem; }
    .stat-number { font-size: 2.25rem; }
    .stat-label { font-size: 0.85rem; }

    .section-container { padding: var(--section-padding) 1rem; }
    .section-title { font-size: 1.75rem; }

    .project-content { padding: 1.5rem 1.25rem; }
    .project-image { max-height: 220px; }
    .founder-card { padding: 1.5rem; }
    .contact-form-container { padding: 1.5rem 1rem; }
    .founders-together { padding: 1.25rem 1.5rem; }
    .footer { padding: 2.5rem 1rem 1.5rem; }
}
