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

/* ================= VARIABLES ================= */
:root {
  --jaune: #f7c600;
  --noir: #111;
  --blanc: #ffffff;
  --gris: #f4f4f4;
  --texte: #2b2b2b;
}

/* ================= GLOBAL ================= */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--blanc);
  color: var(--noir);
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--noir);
  padding: 20px 40px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 40px;
  background-color: rgba(17,17,17,0.95);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= LOGO ================= */
.logo img {
  height: 60px;
  transition: height 0.3s ease;
}

.header.scrolled .logo img {
  height: 45px;
}

/* ================= NAVIGATION ================= */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li {
  position: relative;
}

.menu > li > a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 5px;
  display: block;
  transition: color 0.3s;
}

/* hover liens principaux */
.menu > li > a:hover {
  color: var(--jaune);
}

/* ================= SOUS-MENUS ================= */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--noir);
  list-style: none;
  min-width: 180px;
  display: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.submenu li a {
  color: var(--blanc);
  padding: 12px 15px;
  font-size: 14px;
  display: block;
  text-decoration: none;
}

/* hover sous-menu */
.submenu li a:hover {
  background-color: var(--jaune);
  color: var(--noir);
}

/* affichage desktop */
.dropdown:hover .submenu {
  display: block;
}

/* ================= HERO ================= */
.hero {
  height: 100vh; /* occupe tout l'écran */
  background: url("../img/baniere1.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* ← clé : image fixe */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* assombrit l'image pour lisibilité */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #f7c600;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}



/* ================= BURGER ================= */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--jaune);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--noir);
    display: none;
    flex-direction: column;
  }

  .nav.active {
    display: flex;
  }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu > li > a {
    padding: 15px;
    border-top: 1px solid #222;
  }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
  }

  .dropdown.open .submenu {
    display: block;
  }
}

@media (max-width: 500px) {
  .header {
    padding: 10px 20px;
  }

  .logo img {
    height: 45px;
  }
}



/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .training-schedule {
    padding: 60px 20px;
  }
}

.social-icons {
  display: flex;
  gap: 15px;          /* espace entre les icônes */
  justify-content: center; /* centré horizontalement */
  margin-top: 20px;   /* ou à ajuster selon l'emplacement */
}

.social-icons a img {
  width: 32px;        /* taille des icônes */
  height: 32px;
  transition: transform 0.3s, opacity 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.2); /* léger zoom au survol */
  opacity: 0.8;          /* effet visuel */
}

@media (max-width: 500px) {
  .social-icons a img {
    width: 24px;
    height: 24px;
  }
}


/* ================= TITRE PAGE ================= */
h1 {
  margin-top: 140px;
  margin-bottom: 80px;
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--noir);
}

h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--jaune);
  margin: 20px auto 0;
}

/* ================= ACTUALITÉ ================= */
.actu {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}


.actu img {
  width: 100%;
  object-fit: contain;
  max-height: 260px;
  margin: 0 auto 24px;
  display: block;
  background-color: #f2f2f2;
  border-radius: 8px;
}

/* Tablette */
@media (min-width: 768px) {
  .actu img {
    max-height: 360px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .actu img {
    max-height: 420px;
  }
}

/* Titre */
.actu h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--noir)
}

@media (min-width: 768px) {
  .actu h2 {
    font-size: 2rem;
  }
}

/* Date */
.actu small {
  display: block;
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: #777;
}

/* Texte */
.actu p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333;
}

/* Séparation entre actus */
.actu:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #ddd;
  margin-top: 80px;
}

/* ================= SOCIAL ================= */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 80px 0 40px;
}

.social-icons img {
  width: 36px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  h1 {
    font-size: 2.2rem;
  }

  .actu h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.9rem;
    margin-bottom: 60px;
  }

  .actu img {
    max-height: 300px;
  }

  .actu p {
    font-size: 1rem;
  }
}
