@import url(https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;600;700;900&family=Inter:wght@300;400;600;700;800&display=swap);
/* Global shared styles and utilities */

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

/* Design tokens */
:root {
  --brand: #0066FF;
  --brand-2: #004FCC;
  --primary-blue: var(--brand);
  --dark-bg: #000b1d;
  --text-white: #ffffff;
  --muted: #9fb1cf;
}

/* Base typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-white);
  background: var(--dark-bg);
  min-height: 100vh;
}

/* Common container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8%;
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Gradient clipped text — used by hero and about */
.gradient-word,
.highlight {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 14px 40px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 20px 40px rgba(0,100,255,0.12);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  text-decoration: none;
}

footer .cta-button {
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,100,255,0.1);
}


.cta-button:focus-visible {
  outline: 4px solid rgba(0,102,255,0.12);
  outline-offset: 6px;
  border-radius: 999px;
}

.btn-small {
  display: inline-block;
  background: transparent;
  color: var(--brand);
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,102,255,0.12);
  transition: transform 140ms cubic-bezier(.2,.9,.2,1), box-shadow 140ms ease, background 160ms ease;
}

.btn-small:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 30px rgba(0,102,255,0.08); background: rgba(0,102,255,0.06); }

/* Glass / frosted card (used for stats) */
.card--glass,
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 50px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card--glass:hover,
.stat-card:hover { transform: translateY(-10px); border-color: var(--brand); }

/* Reveal micro-animations */
.reveal-text { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-text.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Utility helpers */
.flex-center { display:flex; align-items:center; justify-content:center; }
.text-muted { color: rgba(160,174,192,1); }

/* Small responsive helpers */
@media (max-width: 900px) {
  .container { flex-direction: column; text-align: center; padding: 0 6%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Navbar component styles */

:root{
  --nav-bg-transparent: rgba(8,22,42,0.0);
  --nav-bg-scrolled: rgba(255,255,255,0.94);
  --nav-border-scrolled: rgba(2,6,23,0.06);
  --nav-text: rgba(255,255,255,0.92);
}

.navbar{
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  /* Transparent over hero; becomes solid when scrolled */
  background: var(--nav-bg-transparent);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  backdrop-filter: blur(6px) saturate(110%);
  border: none;
  box-shadow: none;
  transition: background 260ms ease, box-shadow 260ms ease, transform 220ms ease, color 220ms ease;
  color: var(--nav-text);
} 

/* Scrolled state (added by JS) */
.navbar.scrolled{
  background: var(--nav-bg-scrolled);
  box-shadow: 0 10px 30px rgba(16,24,40,0.12);
  transform: translateY(0);
  color: #0b253a;
  border-bottom: 1px solid var(--nav-border-scrolled);
}

/* Ensure links and brand invert color when scrolled */
.navbar.scrolled .nav-links a{ color: #475569; }
.navbar.scrolled .brand-text{ color: var(--brand); }
.navbar.scrolled .btn-small{ color: var(--brand); border-color: rgba(0,102,255,0.12); background: transparent; }

/* Slight interactive pop on hover when not scrolled */
.navbar:hover{
  transform: translateY(-1px);
}

/* Keep previous focus styles accessible */





.logo{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1);
}

.brand-mark:hover img, .brand-mark:focus-within img{
  transform: rotate(-6deg) scale(1.03);
}

.brand-text{
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nav-text);
  transition: color 220ms ease;
} 

.nav-links{
  display: flex;
  gap: 1.75rem; /* increased from 1rem for more space between links */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a{
  position: relative;
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.6rem 0.9rem; /* keep consistent with the other rule */
  border-radius: 6px;
  transition: color 180ms cubic-bezier(.2,.9,.2,1);
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
} 

.nav-links a::after{
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1);
}

.nav-links a:hover,
.nav-links a:focus{
  color: var(--brand);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus::after{
  transform: scaleX(1);
}



/* Responsive */
@media (max-width: 720px){
  .nav-links{ display: none; }
  .btn-small{ display: none; }
  .navbar{ padding: 0.75rem 1rem; }
  .brand-text{ font-size: 1rem; }
}

/* Accessibility focus states */
.nav-links a:focus-visible,
.btn-small:focus-visible{
  box-shadow: 0 0 0 6px rgba(0,102,255,0.12);
  border-radius: 8px;
  outline: none;
}

/* Ensure focus rings remain visible on dark hero background */
.nav-links a:focus-visible{ background: rgba(255,255,255,0.02); } 

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  color: #e6eef8;
  /* Deeper, premium background with a soft tech glow */
  background: radial-gradient(900px 400px at 8% 10%, rgba(0, 102, 255, 0.06), transparent), linear-gradient(180deg, #071024 0%, #08162a 60%, #061222 100%);
}

/* Hero Section (full-bleed, no card border) */
.hero-section {
  position: relative;
  padding: 6rem 8%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Soft abstract glow/shape to create depth */
.hero-section::after {
  content: '';
  position: absolute;
  right: -8%;
  top: -12%;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle at 30% 30%, rgba(0, 102, 255, 0.14), rgba(0, 160, 255, 0.04) 40%, transparent 60%);
  filter: blur(64px);
  transform: rotate(10deg);
  pointer-events: none;
}

.container {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  /* moins de largeur pour donner plus d'espace à l'image */
  max-width: 560px;
  z-index: 5;
}

/* Remove boxed card; keep semantic container */
.hero-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

h1 {
  font-family: 'Clash Display', 'Inter', system-ui;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.03;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.gradient-word {
  animation: slideGradient 6s linear infinite;
  transition: transform 180ms ease;
}

@keyframes slideGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-word:hover {
  transform: translateY(-2px) scale(1.02);
}

.subtle {
  font-weight: 400;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: rgba(255, 255, 255, 0.95);
  display: block;
  margin-top: 0.35rem;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 1.25rem 0 1.8rem;
  max-width: 44ch;
}

/* Primary CTA — filled, glowing, subtle scale on hover */
.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 14px 40px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 20px 40px rgba(0, 100, 255, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  text-decoration: none;
}

/* Accessible focus state */
.cta-button:focus-visible {
  outline: 4px solid rgba(0, 102, 255, 0.12);
  outline-offset: 6px;
  border-radius: 999px;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 30px 70px rgba(0, 100, 255, 0.18);
  filter: saturate(1.05);
}

.cta-button:active {
  transform: translateY(-2px) scale(0.985);
  box-shadow: 0 12px 30px rgba(0, 100, 255, 0.10);
}

/* Image layout — overlap slightly to break the grid and create depth */
.hero-image {
  /* donner plus d'espace à l'image pour qu'elle paraisse plus grande */
  flex: 1.4;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  /* image légèrement surdimensionnée pour occuper plus d'écran */
  width: 110%;
  max-width: 1100px;
  height: auto;
  transform: translateX(10%);
  transition: transform 420ms cubic-bezier(.2, .9, .2, 1), filter 420ms ease;
  z-index: 4;
  will-change: transform;
}

.hero-image img:hover {
  transform: translateX(5%) scale(1.04);
  filter: drop-shadow(0 22px 56px rgba(2, 24, 63, 0.40));
}

/* Entrance/float animation (subtle) */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-image img {
  animation: float 6s ease-in-out infinite;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-image img {
    animation: none;
    transition: none;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    margin-top: 36px;
    transform: none;
  }

  /* garder l'image plus large sur tablettes/phones */
  .hero-image img {
    transform: none;
    width: 88%;
    max-width: 640px;
  }

  h1 {
    font-size: clamp(1.8rem, 5.5vw, 3rem);
  }
}

/* Small tweaks for readability */
@media (max-width: 480px) {
  .cta-button {
    padding: 12px 28px;
    font-size: 0.97rem;
  }

  /* petites écrans : image encore plus présente */
  .hero-image img {
    width: 92%;
    max-width: 520px;
  }
}
.about-container {
            position: relative;
            background: var(--dark-bg);
            color: var(--text-white);
            padding: 100px 0;
            overflow: hidden;
            min-height: 100vh;
        }

        /* The "Miracle" Masked Effect */
        .parallax-window {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 500px;
            border-radius: 24px;
            overflow: hidden;
            z-index: 1;
        }

        .parallax-bg {
            position: absolute;
            top: -20%;
            left: 0;
            width: 100%;
            height: 140%;
            background-size: cover;
            background-position: center;
            filter: brightness(0.7);
            z-index: 1;
            transition: transform 0.1s ease-out;
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, transparent 0%, rgba(0, 11, 29, 0.5) 100%);
            z-index: 2;
        }

        .about-content {
            position: relative;
            z-index: 10;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
            padding: 60px 20px 0 20px;
        }

        .about-content h2 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 20px;
        }



        .about-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: #a0aec0;
            margin-bottom: 40px;
        }

       

        @media (max-width: 768px) {
            .about-content h2 {
                font-size: 2.5rem;
            }

            .parallax-window {
                width: 90%;
                height: 300px;
            }

            .stats-grid {
                flex-direction: column;
                align-items: center;
                margin-top: 350px;
            }

            .stat-card {
                width: 100%;
                max-width: 300px;
            }
        }
/* --- CONFIGURATION GÉNÉRALE --- */
.narrative-section {
    padding: 4rem 0;
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.narrative-title {
    font-family: 'STandingFlower', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: lowercase;
    letter-spacing: -1px;
}

@font-face {
    font-family: 'STandingFlower';
    src: url(assets/font/StandingFlower1.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- GRILLE & CARTE 'REVEAL' UNIFIÉE --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.reveal-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background: #1a1a1a; /* Fallback color */
    height: 450px; /* Hauteur fixe pour toutes les cartes */
}

/* On décale la carte du milieu vers le bas */
.reveal-card.center-piece {
    margin-top: 4rem; 
}

.reveal-card .img-wrapper {
    width: 100%;
    height: 100%;
}

.reveal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%); /* Grayscale by default */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.reveal-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

/* --- EFFETS AU SURVOL --- */
.reveal-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.8); /* Reveal color and darken slightly */
}

.reveal-card:hover .card-info {
    transform: translateY(0);
}


/* --- TEXTES DANS LA CARTE --- */
.card-info h4 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.card-info .role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PARTIE 2 : SLIDER & AJUSTEMENTS --- */
.horizontal-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.horizontal-slider::-webkit-scrollbar {
    display: none;
}

/* Ajustements pour les cartes DANS le slider */
.horizontal-slider .reveal-card {
    height: 400px; /* Hauteur légèrement réduite pour le slider */
    flex-shrink: 0; /* Empêche les cartes de rétrécir */
}

.horizontal-slider .course-card {
    min-width: 320px;
    scroll-snap-align: center;
    margin-top: 0;
}


/* --- Styles restants (Transformation, Navigation, etc.) --- */
.slider-wrapper, .transformation-card, .nav-btn, .progress-container, .overlay-content, .mission-title, .mission-description {
    position: relative; 
}
.slider-wrapper { max-width: 1200px; margin: 0 auto; }
.transformation-card { width: 100%; height: 400px; border-radius: 24px; overflow: hidden; margin-top: 2rem; }
.transformation-card img { width: 100%; height: 100%; object-fit: cover; }
.transformation-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0)); pointer-events: none; z-index: 1; }
.overlay-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; color: white; text-align: center; z-index: 2; }
.mission-title, .mission-description { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, 'Helvetica Neue', Arial, sans-serif; }
.cta-button.cta-under { margin-top: 1.25rem; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(30, 30, 30, 0.5); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); color: white; font-size: 1.5rem; cursor: pointer; z-index: 10; display:flex; align-items:center; justify-content:center; }
.nav-btn:hover { background: rgba(0, 0, 0, 0.7); transform: translateY(-50%) scale(1.1); }
.nav-btn.prev { left: -25px; }
.nav-btn.next { right: -25px; }
.progress-container { width: 100px; height: 4px; background: #e0e0e0; margin: 1.5rem auto 0; border-radius: 10px; overflow: hidden; }
.progress-bar { width: 33%; height: 100%; background: #333; transition: width 0.3s ease; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .reveal-card.center-piece {
        margin-top: 0;
    }
    .narrative-title {
        font-size: 1.8rem;
    }
    .nav-btn {
        display: none;
    }
    .horizontal-slider .course-card {
        min-width: 75vw;
        height: 350px;
    }
}
/* Footer Section Styles */

.footer-section {
    background-color: #000714; /* A slightly lighter shade of the dark background */
    color: var(--muted);
    padding: 4rem 8% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-brand {
    flex: 2; /* Allow brand to take more space */
    min-width: 250px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-mark {
    width: 32px;
    height: 32px;
}

.footer-brand .brand-mark img {
    width: 100%;
    height: 100%;
}

.footer-brand .brand-text {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-white);
}

.footer-brand .tagline {
    font-size: 0.95rem;
    max-width: 25ch;
}

.footer-socials, .footer-cta {
    flex: 1;
    min-width: 200px;
}

.footer-socials p, .footer-cta p {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-icons a {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.social-icons img {
    width: 100%;
    height: 100%;
    filter: grayscale(1) invert(1) brightness(0.8);
}

.footer-cta .cta-button {
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 700;
}

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

/* Responsive adjustments */
@media (max-width: 960px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand, .footer-socials, .footer-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    
    .footer-socials, .footer-cta {
        margin-top: 2rem;
    }
}
