/* ================= BASE ================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;

  background: url('images/stadium.png') center / cover no-repeat fixed;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  background: rgba(26, 18, 64, 0.85);
  backdrop-filter: blur(10px);

  border-radius: 15px;
  padding: 15px 30px;
  z-index: 1000;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* LOGO */
.logo {
  height: 140px;
  position: absolute;
  top: -20px;
  left: 0;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

/* NAV */
nav {
  margin-left: 160px;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

nav a:hover {
  color: gold;
}

/* ================= HERO ================= */
.hero {
  min-height: auto;

  display: flex;
  justify-content: center;
  align-items: flex-start; /* 👈 clé */

  padding-top: 160px; /* 👈 espace sous navbar/logo */
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: var(--section-spacing);
}

/* HERO BOX (la vraie carte) */
.hero-box {
  width: 70%;
  max-width: 1300px;

  padding: 40px 50px;

  background: rgba(15, 10, 40, 0.75);
  backdrop-filter: blur(12px);

  border-radius: 25px;
  padding: 40px 50px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);

  transition: 0.3s;
}

.hero-box:hover {
  transform: scale(1.01);
}

/* HERO CONTENT */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

/* TEXTE */
.hero-text {
  max-width: 480px;
}

/* Question d’accroche */
.subtitle {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Texte principal */
.description {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* Punchline */
.hero-text .highlight {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  color: gold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 25px 0 10px;
}

/* BOUTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(45deg, gold, orange);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(255, 200, 0, 0.4);

  color: black;
  text-decoration: none;
  font-weight: bold;

  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

.play-icon {
  height: 35px;
}

:root {
  --section-spacing: clamp(60px, 8vh + 2vw, 400px);
}

/* ================= CAROUSEL ================= */
.carousel-wrapper {
  width: fit-content;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 0 auto;
}

/* CONTAINER */
.carousel-container {
  position: relative;
  width: 520px;
  overflow: hidden;
}

/* TRACK */
.carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

/* IMAGES */
.carousel img {
  width: 220px;   /* 👈 un peu plus large */
  height: 380px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* FLÈCHES */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

   width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(20, 15, 50, 0.8);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,0.1);
  color: white;

  font-size: 18px;
  cursor: pointer;

  border-radius: 50%;

  transition: 0.3s;
}

.arrow:hover {
  background: rgba(255, 200, 0, 0.9);
  color: black;
}

.carousel-wrapper .arrow.left {
  left: -25px;
}

.carousel-wrapper .arrow.right {
  right: -25px;
}

.section-carousel-wrapper .arrow.left {
  left: -30px;
}

.section-carousel-wrapper .arrow.right {
  right: -30px;
}

/* ================= SECTIONS ================= */
/* BOX IDENTIQUE AU HERO */
.section-box {
  width: 70%;
  max-width: 1300px;
  max-height: 400px;
  margin: auto;

  background: rgba(15, 10, 40, 0.75);
  backdrop-filter: blur(12px);

  border-radius: 25px;
  padding: 50px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);

  transition: 0.3s;
}

.section-box:hover {
  transform: scale(1.01);
}

.section {
  padding: var(--section-spacing) 0;
  display: flex;
  justify-content: center;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 👈 50/50 */
  align-items: center;
  gap: 50px;
}

.section-img {
  max-height: 380px;
  width: auto;
  border-radius: 20px;
  object-fit: contain;
}

.section-text {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 20px;
}

.section-img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  justify-self: center;
}

/* GALERIE */
.rules-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
}

/* IMAGES */
.rules-gallery img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 15px;

  transition: transform 0.3s;
}

.rules-gallery img:hover {
  transform: scale(1.05);
}

/* ================= SECTIONS CAROUSEL ================= */
.section-carousel-wrapper {
  width: fit-content;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

/* CONTAINER */
.section-carousel-container {
  position: relative;
  width: 500px; /* 👈 ajuste pour 1 image + 1/3 */
  overflow: hidden;
  justify-self: center;
}

/* TRACK */
.section-carousel {
  display: flex;
  gap: 0px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.section-carousel::-webkit-scrollbar {
  display: none;
}

/* IMAGES */
.section-carousel img {
  width: 220px; /* 👈 base */
  height: 380px;
  border-radius: 15px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* ================= FOOTER ================= */

.footer {
  background: rgba(26, 18, 64, 0.85);
  padding: 60px 10% 30px;
  color: white;
}

/* CONTENU */
.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 40px;
  margin-bottom: 30px;
}

/* ALIGNEMENTS PAR COLONNE */
.footer-col:nth-child(1) {
  text-align: left;
}

.footer-col:nth-child(2) {
  text-align: center;
}

.footer-col:nth-child(3) {
  text-align: right;
}

/* COLONNES */
.footer-col h3 {
  font-family: 'Anton', sans-serif;
  margin-bottom: 10px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col p {
  opacity: 0.8;
  font-size: 14px;
}

/* LIENS */
.footer-col a {
  display: block;
  text-decoration: none;
  color: white;
  opacity: 0.8;
  margin-bottom: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.footer-col a:hover {
  opacity: 1;
  color: gold;
}

/* SOCIAL */
.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  text-decoration: none;
}

.socials a:hover {
  background: gold;
  color: black;
}

/* BAS DU FOOTER */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  opacity: 0.8;
}

/* PAGE LEGALE */
.legal-page {
  padding-top: 180px;
  padding-bottom: 100px;

  display: flex;
  justify-content: center;
}

/* BLOC CENTRAL */
.legal-box {
  width: 70%;
  max-width: 1000px;
  max-height: none;

  background: rgba(15, 10, 40, 0.75);
  backdrop-filter: blur(12px);

  border-radius: 25px;
  padding: 50px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* TITRES */
.legal-box h1 {
  font-family: 'Anton', sans-serif;
  margin-bottom: 20px;
}

.legal-box h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

/* TEXTE */
.legal-box p {
  line-height: 1.6;
  opacity: 0.9;
}

/* ================= TYPO ================= */
h1, h2 {
  font-family: 'Anton', sans-serif;
  letter-spacing: 1px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {

  .hero-content {
  grid-template-columns: 1fr; /* 👈 clé */
  justify-items: center;
  text-align: center;
  gap: 30px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-box {
    padding: 30px 20px;
  }

  nav {
    margin-left: 120px;
  }

  .carousel-container {
    width: 100%;
    margin-top: 20px;
  }

  .carousel img {
  width: 180px;
  height: auto; /* 👈 clé */
  }

  .section-content {
    grid-template-columns: 1fr; /* 👈 passe en colonne */
    text-align: center;
  }

  .section-img {
    margin-top: 20px;
  }
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}


