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

body {
  font-family: 'Montserrat', sans-serif;
  background: #1f1f1f;
  color: #f1f1f1;
  scroll-behavior: smooth;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Scrollbar personnalisée */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: #f3f3f3; }
body::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover { background: #4f46e5; }

/* ===================== NAVBAR ===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 2rem;
  background: #222;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.logo { font-weight: 700; font-size: 1.4rem; color: white; }
.logo:hover { color: #facc15; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: white; transition: color 0.3s ease; }
.nav-links a:hover { color: #facc15; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: linear-gradient(-45deg, #1f1f1f, #2a2a40, #202040, #1f1f1f);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-overlay { max-width: 800px; margin: auto; position: relative; z-index: 2; }
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #facc15;
  text-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.hero-intro { font-size: 1.3rem; margin-bottom: 1rem; }
.hero-lieu { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.hero-horaires { font-size: 1.1rem; opacity: 0.9; }
.icon-lieu { margin-right: 0.4rem; font-size: 1.3rem; }

/* Boutons Hero */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===================== CTA ===================== */
.animated-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(45deg, #facc15, #ffdd33);
  color: #222;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.animated-cta:hover { transform: scale(1.08); }
.animated-cta img { height: 40px; width: auto; }
.animated-cta .cta-text { position: relative; z-index: 2; }
.animated-cta .cta-shine {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
}
@keyframes shine {
  0% { left: -75%; }
  50% { left: 125%; }
  100% { left: 125%; }
}

/* Bouton secondaire */
.btn-secondary {
  background: transparent;
  border: 2px solid #facc15;
  color: #facc15;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #facc15;
  color: #222;
  transform: scale(1.05);
}

/* ===================== ORGANISATEUR ===================== */
.organisateur-section { padding: 4rem 2rem; text-align: center; }
.section-title { font-size: 2rem; }
.organisateur-card {
  margin: 2rem auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  background: linear-gradient(180deg, #2c2c2c, #252525);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 2rem;
  border: 1px solid rgba(250,204,21,0.25);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}
.organisateur-card.show { opacity: 1; transform: translateY(0); }
.organisateur-media {
  position: relative;
  display: grid;
  place-items: center;
  background: #1f1f1f;
  border-radius: 1rem;
  padding: 1.5rem;
}
.organisateur-media img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35));
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}
.badge-primary { background: #facc15; color: #222; }
.hide-on-mobile { display: inline-block; }
.organisateur-content h3 {
  font-size: 1.8rem;
  color: #facc15;
  margin-bottom: 0.75rem;
}
.center-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.btn.btn-outline { background: transparent; border: 2px solid #6366f1; }
.btn.btn-outline:hover { background: #4f46e5; }

/* ===================== ASSOCIATIONS ===================== */
.partenaires-section { padding: 4rem 2rem; text-align: center; }
.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: #2c2c2c;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 1.5rem;
  border: 1px solid rgba(250,204,21,0.25);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}
.card.show { opacity: 1; transform: translateY(0); }
.card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.card-content p, .card-content h3 { color: #f1f1f1; }

/* ===================== PARTENAIRES ===================== */
.partners-section { padding: 4rem 2rem; text-align: center; }
.partners-intro { opacity: 0.9; margin-bottom: 2rem; }
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
.partner img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.partner img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* ===================== CARTES ANIMÉES ===================== */

/* Organisateur : effet shine + 3D */
.organisateur-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.organisateur-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.organisateur-card:hover {
  transform: rotate3d(1,1,0,8deg) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}
.organisateur-card:hover::after {
  opacity: 1;
  animation: shineCard 1s forwards;
}
@keyframes shineCard {
  from { transform: translateX(-200%) rotate(25deg); }
  to   { transform: translateX(200%) rotate(25deg); }
}

/* Associations & partenaires : glow subtil */
.card,
.partner {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.4s ease;
}
.card:hover,
.partner:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  border-color: #facc15;
}


/* ===================== BOUTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #6366f1;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn:hover { background: #4f46e5; }

/* ===================== FOOTER ===================== */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* ===================== HAMBURGER MENU ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .cards { grid-template-columns: repeat(2,1fr); }
  .organisateur-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background-color: #1f1f1f;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 2000;
  }
  .nav-links.show { display: flex; }
  .nav-links a { font-size: 1.5rem; font-weight: bold; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hide-on-mobile { display: none; }
  .partner img { max-height: 60px; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .partners-logos { justify-content: center; }
}


/* ===================== INFO SECTIONS ===================== */
.info-section {
  padding: 4rem 2rem;
  text-align: center;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #facc15;
  text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.info-card {
  background: #2c2c2c;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  border: 1px solid rgba(250,204,21,0.25);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.info-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Bloc avantage billet */
.info-card.avantage {
  background: linear-gradient(180deg, #2c2c2c, #252525);
  border: 2px solid #facc15;
  font-weight: 600;
  color: #facc15;
  text-align: center;
}

/* ===================== BAR LISTE ===================== */
#bar ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  text-align: left;
}

#bar li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
}

#bar li strong {
  color: #facc15;
}

/* ===================== RESPONSIVE AJOUTS ===================== */
@media (max-width: 768px) {
  .info-card { padding: 1.5rem; }
  #bar li { font-size: 1rem; }
}


/* ===================== RGPD LINKS ===================== */
.info-card a {
  color: #facc15;
  text-decoration: underline;
  word-break: break-word;
}
.info-card a:hover {
  color: #ffdd33;
}



/* Nouveau bouton principal (En savoir plus) */
.btn-primary {
  background: linear-gradient(45deg, #6366f1, #4f46e5);
  color: white;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}
.btn-primary:hover {
  transform: scale(1.08);
  background: linear-gradient(45deg, #4f46e5, #3730a3);
}

/* Bouton secondaire (Inscription HelloAsso) */
.btn-secondary {
  background: transparent;
  border: 2px solid #facc15;
  color: #facc15;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #facc15;
  color: #222;
  transform: scale(1.05);
}

/* Boutons dans les cartes (ex: AIAAM) */
.btn {
  display: inline-flex;            /* centre le contenu */
  align-items: center;             /* vertical */
  justify-content: center;         /* horizontal */
  padding: 0.8rem 1.5rem;          /* un peu plus haut que large */
  background: #6366f1;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;                  /* évite que le texte remonte */
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}


/* Taille du logo dans la navbar */
.navbar > img {
  max-height: 70px;   /* desktop */
  width: auto;
  display: block;
}

/* un peu plus petit sur tablettes */
@media (max-width: 992px) {
  .navbar > img { max-height: 40px; }
}

/* encore plus petit sur mobile */
@media (max-width: 768px) {
  .navbar > img { max-height: 32px; }
}

/* ===================== BAR - Nouvelles options ===================== */
#bar .card h3 {
  color: #facc15;  /* Pour donner une couleur jaune aux titres des nouvelles catégories */
}

#bar .card ul li {
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
}

#bar .card ul li strong {
  color: #facc15;
}


.places-wrapper {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: .6rem 1rem;
  border: 2px solid #facc15;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.places-wrapper .places-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #22c55e; /* vert */
  box-shadow: 0 0 0 .2rem rgba(34,197,94,.2);
  animation: ping 1.5s infinite cubic-bezier(0,0,.2,1);
}

.places-wrapper.soldout {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.places-wrapper.soldout .places-dot {
  background: #ef4444;
  box-shadow: 0 0 0 .2rem rgba(239,68,68,.2);
}

@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
