/* =========================================================
   1. VARIABLES (GLOBAL DESIGN SYSTEM)
========================================================= */

:root {
  --bg: #05070d;
  --bg-alt: #0b0f1a;

  --text: #e6e6eb;
  --muted: #bfc3d6;
  --muted-2: #8a8fa3;

  --accent: #6cf2c2;
  --accent-2: #4ea3ff;

  --radius: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   2. RESET + BASE HTML
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibilité clavier */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 8px;
}

/* =========================================================
   3. ELEMENTS GLOBAUX
========================================================= */

section {
  padding: clamp(60px, 6vw, 110px) 8%;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Petit texte introductif */
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted-2);
  margin-bottom: 16px;
  display: block;
}

/* =========================================================
   4. TYPOGRAPHIE
========================================================= */

h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 28px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Texte accentué */
.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   5. COMPONENT — CTA BUTTONS
========================================================= */

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  margin-top: 32px;
  padding: 14px 32px;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;

  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glow CTA */
.cta::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: blur(25px);
  opacity: 0.5;
  z-index: -1;
}

.cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 60px rgba(108, 242, 194, 0.35);
}

/* Variante secondaire */
.cta.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta.secondary::before {
  background: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   6. COMPONENT — LAYOUT GRID
========================================================= */

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.layout-center {
  max-width: 820px;
  margin: auto;
  text-align: center;
}

/* =========================================================
   7. COMPONENT — BULLETS LIST
========================================================= */

.bullets {
  list-style: none;
  margin-top: 24px;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullets li {
  position: relative;
  padding-left: 32px;
  color: var(--text);

  transition: transform 0.3s ease, color 0.3s ease;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;

  width: 9px;
  height: 9px;
  border-radius: 50%;

  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(108, 242, 194, 0.7);
}

.bullets li:hover {
  transform: translateX(6px);
  color: var(--accent);
}

/* =========================================================
   8. COMPONENT — MEDIA IMAGE BLOCK (SQUARE & STABLE)
========================================================= */

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* ratio carré garanti */

  overflow: hidden;
  border-radius: var(--radius);
}

/* Image */
.media img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center; /* CENTRE = comportement le plus stable */

  transition: transform 0.6s ease, box-shadow 0.6s ease;
  box-shadow: 0 0 90px rgba(255, 255, 255, 0.12);
}

/* Halo au hover */
.media::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at center,
    rgba(108, 242, 194, 0.18),
    transparent 70%
  );

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Hover effect */
.media:hover img {
  transform: scale(1.04);
  box-shadow: 0 0 120px rgba(78, 163, 255, 0.4);
}

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


/* =========================================================
   9. SECTION — VISION
========================================================= */

.vision {
  position: relative;
  padding: 100px 8% 40px;
  background: transparent;
  text-align: center;
}

/* =========================================================
   10. COMPONENT — TAGS (Vision)
========================================================= */

.tags {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.tag {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;

  color: #ffffff;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);

  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Glow tag */
.tag::before {
  content: "";
  position: absolute;
  inset: -6px;

  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  filter: blur(18px);
  z-index: -1;

  transition: opacity 0.3s ease;
}

.tag:hover {
  transform: translateY(-3px);
  color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.tag:hover::before {
  opacity: 0.35;
}

/* =========================================================
   11. SECTION — LOGOS STRIP (Preuve sociale)
========================================================= */

.logos-strip {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  margin: 0 auto;
}

.logos-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 32px;
  color: var(--text);
}

/* Fade edges */
.logos-strip::before,
.logos-strip::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logos-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.logos-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

/* Track animation */
.logos-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;

  animation: logosScroll 45s linear infinite;
  will-change: transform;
}

.logos-strip:hover .logos-track {
  animation-play-state: paused;
}

.logos-track img {
  width: 90px;
  height: 90px;
  object-fit: contain;

  filter: brightness(0) invert(1);
  opacity: 0.6;

  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.logos-track img:hover {
  opacity: 1;
  transform: scale(1.12);
  filter: brightness(1) invert(0);
}

/* Keyframes */
@keyframes logosScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   12. SECTION — PROGRAMS + CARDS
========================================================= */

.programs {
  text-align: center;
}

.programs .subtitle {
  margin-top: 12px;
  color: #9aa0b8;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

/* Card base */
.card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

/* Card image */
.card-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: translateZ(0);
}

/* Gradient overlay */
.card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(5, 7, 13, 0) 0%,
    rgba(5, 7, 13, 0.06) 35%,
    rgba(5, 7, 13, 0.18) 50%,
    rgba(5, 7, 13, 0.42) 62%,
    rgba(5, 7, 13, 0.72) 74%,
    rgba(5, 7, 13, 0.92) 86%,
    rgba(5, 7, 13, 1) 100%
  );
}

/* Card content */
.card-content {
  position: relative;
  z-index: 1;

  padding: 28px 30px 34px;
  margin-top: -70px;
  text-align: left;
}

.card-content h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.card-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

/* Highlight card */
.card.highlight {
  border: 1px solid rgba(108, 242, 194, 0.45);
  box-shadow: 0 0 70px rgba(108, 242, 194, 0.2);
}

/* Card link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  position: relative;

  transition: transform 0.3s ease, color 0.3s ease;
}

.card-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0%;
  height: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

.card-link:hover {
  transform: translateX(6px);
  color: #ffffff;
}

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

.card-link .arrow {
  font-size: 1.2rem;
}

/* =========================================================
   13. SECTION — FOOTER
========================================================= */

.footer {
  padding: 100px 8% 40px;
  background: transparent;
  text-align: center;
}

.footer-top h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 60px;
  color: var(--text);
}

/* Social cards */
.footer-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  max-width: 1000px;
  margin: 0 auto 70px;
}

.social-card {
  padding: 26px 20px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);

  text-decoration: none;
  color: #ffffff;

  display: flex;
  flex-direction: column;
  gap: 8px;

  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border 0.35s ease;

  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  inset: -40%;

  background: radial-gradient(
    circle,
    rgba(108, 242, 194, 0.18),
    transparent 60%
  );

  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(108, 242, 194, 0.45);
}

.social-card:hover::before {
  opacity: 1;
}

.social-name {
  font-size: 1rem;
  font-weight: 500;
}

.social-count {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #7d8299;
}

/* =========================================================
   14. SECTION — HEADER + NAVIGATION
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 999;

  width: 100%;
  padding: 18px 8%;

  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Logo */
.logo {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--accent);
}

/* Header CTA */
.header-cta {
  margin-top: 0;
  padding: 12px 22px;
  font-size: 0.9rem;
}

/* =========================================================
   15. COMPONENT — BURGER MENU (Mobile)
========================================================= */

.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* CTA inside mobile menu */
.mobile-cta {
  display: none;
}


/* =========================================================
   16. RESPONSIVE — MOTION SAFE
========================================================= */

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

/* =========================================================
   17. RESPONSIVE — 1100px
========================================================= */

@media (max-width: 1100px) {
  .footer-socials {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   18. RESPONSIVE — 1024px
========================================================= */

@media (max-width: 1024px) {
  /* Cards */
  .cards {
    grid-template-columns: 1fr;
  }

  .card-content {
    margin-top: -62px;
  }

  .card {
    min-height: 340px;
  }

  /* Optionnel : cards simples dans layout-center */
  .layout-center .cards {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   19. RESPONSIVE — 900px (Header + Menu + Layout)
========================================================= */

@media (max-width: 900px) {
  /* Header */
  .nav {
    display: none;
  }

  .header-container {
    justify-content: space-between;
  }

  .burger {
    display: block;
  }

  /* Mobile menu dropdown */
  .nav {
    position: absolute;
    top: 85px;
    right: 8%;

    flex-direction: column;
    gap: 18px;

    background: rgba(5, 7, 13, 0.95);
    padding: 22px;
    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    display: none;
  }

  .nav.active {
    display: flex;
  }

  /* CTA desktop hidden, CTA mobile shown */
  .header-cta {
    display: none;
  }

  .mobile-cta {
    display: inline-flex;
    margin-top: 10px;
  }

  /* Layout 2 colonnes -> 1 colonne */
  .layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Bullets */
  .bullets {
    align-items: center;
    text-align: left; /* tu l'avais dans ton CSS initial */
  }

  /* Footer padding */
  .footer {
    padding: 80px 6% 40px;
  }
}

/* =========================================================
   20. RESPONSIVE — 768px
========================================================= */

@media (max-width: 768px) {
  .logos-track {
    gap: 40px;
  }

  .logos-track img {
    width: 70px;
    height: 70px;
  }

  .logos-strip::before,
  .logos-strip::after {
    width: 70px;
  }
}

/* =========================================================
   21. RESPONSIVE — 600px
========================================================= */

@media (max-width: 600px) {
  .logos-track {
    animation-duration: 25s;
  }

  .footer-socials {
    grid-template-columns: 1fr;
  }
}
