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

/* ================= VARIABLES ================= */
:root {
  --jaune: #f7c600;
  --noir: #111;
  --blanc: #fff;
}

/* ================= 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;
}

/* ================= 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;
  }
}

.session-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.session-modal.active {
  display: flex;
}

.modal-content {
  position: relative; /* <-- essentiel pour que la croix reste cliquable */
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: pop 0.3s ease;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h3 {
  color: var(--jaune);
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10; /* assure qu'elle reste au-dessus */
}

.news-text {
  display: block;
  display: -webkit-box;       /* Chrome, Safari, Edge */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5em;         /* hauteur d’une ligne */
  max-height: calc(1.5em * 4); /* limite à 4 lignes */
  position: relative;
  word-break: break-word;     /* coupe les mots trop longs */
}

/* ajout des points de suspension */
.news-text::after {
  content: '…';
  position: absolute;
  bottom: 0;
  right: 0;
  padding-left: 5px;
  background: white;          /* ou la couleur du fond de la carte */
}

/* Désactive complètement le fond fixe sur mobile */
@media (max-width: 768px) {
  .hero {
    background: url("../img/baniere1.jpg") center center / cover no-repeat;
    background-attachment: scroll;
  }
}

/* ================= TROMBINOSCOPE CRÉATIF (Nos Licenciés) ================= */

/* Variables pour régler les tailles facilement */
:root {
  --size-pc: 180px;      /* Taille photos PC */
  --size-mobile: 140px;  /* Taille photos Mobile */
}

.trombinoscope-section {
  padding: 100px 20px 60px;
  background-color: #fafafa;
  min-height: 100vh;
  overflow: hidden;
}

.trombinoscope-header {
  text-align: center;
  margin-bottom: 60px;
}

.trombinoscope-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--noir);
  text-transform: uppercase;
}

.trombinoscope-header h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--jaune);
  margin: 10px auto;
  border-radius: 2px;
}

/* 
  MODIFICATION ICI : 
  max-width passe de 1000px à 1500px (ou 95%) pour prendre toute la largeur 
  gap est légèrement augmenté pour bien aérer
*/
.trombinoscope-grid {
  max-width: 1500px; 
  width: 95%;
  margin: 0 auto;
  display: flex; 
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px 50px; 
  padding: 0 10px;
}

/* Carte Licencié */
.licencie-card {
  width: var(--size-pc);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Effet décalage PC */
.licencie-card:nth-child(even) {
  margin-top: 40px;
}

/* Forme jaune arrière-plan */
.licencie-card::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 5px;
  width: var(--size-pc);
  height: var(--size-pc);
  background-color: var(--jaune);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: 1;
  transition: all 0.6s ease;
}

/* Zone image */
.licencie-img-wrapper {
  width: var(--size-pc);
  height: var(--size-pc);
  position: relative;
  z-index: 2;
  border-radius: 50% 50% 50% 70% / 50% 50% 70% 60%;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.6s ease;
}

.licencie-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Nom (Bulle) */
.licencie-info {
  background-color: var(--noir);
  padding: 8px 18px;
  border-radius: 20px;
  margin-top: -15px; 
  z-index: 3;
  transition: all 0.4s ease;
  width: 90%;
  text-align: center;
}

.licencie-info h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jaune);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- ANIMATIONS SURVOL --- */
.licencie-card:hover .licencie-img-wrapper { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translateY(-5px); }
.licencie-card:hover::before { transform: rotate(15deg) scale(1.05); }
.licencie-card:hover .licencie-img-wrapper img { transform: scale(1.1); }
.licencie-card:hover .licencie-info { background-color: var(--jaune); }
.licencie-card:hover .licencie-info h3 { color: var(--noir); }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
  /* On réduit l'espace pour forcer l'affichage sur 2 colonnes */
  .trombinoscope-grid { 
    gap: 40px 15px; 
  }

  .licencie-card { width: var(--size-mobile); }
  .licencie-img-wrapper { width: var(--size-mobile); height: var(--size-mobile); }
  .licencie-card::before { width: var(--size-mobile); height: var(--size-mobile); }
  
  /* On maintient le décalage pour l'effet destructuré */
  .licencie-card:nth-child(even) { margin-top: 35px; }
  
  .licencie-info { padding: 6px 12px; margin-top: -10px; }
  .licencie-info h3 { font-size: 0.75rem; }
}