@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,600,600italic,700");
@import url("fontawesome-all.min.css");

/* Header */

:root {
  --bg: #ffffff;
  --text: #000000;
  --nav-bg: #f8f9fa;
  --nav-link: #000000;
  --nav-hover: #e0e0e0;
  --button-bg: #dddddd;
  --button-text: #000000;
}

body.dark {
  --bg: #1a1a1a;
  --text: #f4f4f4;
  --nav-bg: #2c2c2c;
  --nav-link: #f4f4f4;
  --nav-hover: #444;
  --button-bg: #333;
  --button-text: #fff;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

header {
  background-color: var(--nav-bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

#nav .container {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

#nav .container li a {
  text-decoration: none;
  color: var(--nav-link);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#nav .container li a:hover {
  background-color: var(--nav-hover);
}

.header-actions {
  display: flex;
  align-items: center;
}

#theme-toggle {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  #nav .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Footer */

.footer-complet {
  /*background-color: var(--nav-bg);*/
  color: var(--text);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  /*border-top: 1px solid #ccc;*/
}

.footer-complet a {
  color: var(--text);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: opacity 0.2s ease;
}

.footer-complet a:hover {
  opacity: 0.7;
}

.footer-socials {
  margin: 1rem 0;
  font-size: 1.5rem;
}

.footer-legal {
  margin-top: 0.5rem;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > header,
body > section,
body > nav {
  flex: 0 0 auto;
}

body > footer {
  margin-top: auto;
}

/* Accueil */

.accueil {
  padding: 4rem 2rem;
  background: linear-gradient(to right, #f8f8f8, #eaeaea);
  color: var(--text, #222);
}

body.dark .accueil {
  background: linear-gradient(to right, #1a1a1a, #2a2a2a);
  color: var(--text, #f0f0f0);
}

.accueil-contenu {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Image à gauche */
.accueil-gauche img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.accueil-gauche img:hover {
  transform: scale(1.03);
}

/* Texte à droite */
.accueil-droite {
  flex: 1;
  min-width: 280px;
}

.accueil-droite h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: inherit;
}

.accueil-droite p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
  color: inherit;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .accueil-contenu {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .accueil-gauche img {
    margin-bottom: 2rem;
  }
}

/* Programme */

/*
.programme {
  padding: 4rem 2rem;
  background: #f8f8f8;
  color: var(--text, #222);
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
*/

body.dark .programme {
  background: #1f1f1f;
  color: var(--text, #f0f0f0);
}

.programme h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.flyer img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.programme-blocs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.infos-programme,
.regles {
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

body.dark .infos-programme,
body.dark .regles {
  background: rgba(40, 40, 40, 0.9);
}

.infos-programme ul,
.regles ul {
  list-style: none;
  padding-left: 0;
}

.infos-programme li,
.regles li {
  padding: 0.5rem 0;
  font-size: 1.1rem;
  border-bottom: 1px dashed #ccc;
}

body.dark .infos-programme li,
body.dark .regles li {
  border-color: #444;
}

.infos-programme li:last-child,
.regles li:last-child {
  border-bottom: none;
}

.flyer img {
  width: 100%;
  max-width: 600px; /* Taille max raisonnable sur desktop */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.flyer img:hover {
  transform: scale(1.05)
}

/* Galerie */
.galerie {
  background-color: var(--nav-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes fixes */
  gap: 1.5rem;
  margin-top: 2rem;
}

.galerie-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galerie-grid img:hover {
  transform: scale(1.05);
}

/* Responsive - si l'écran est plus petit */
@media (max-width: 1024px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }
}

@media (max-width: 600px) {
  .galerie-grid {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
  }
}

/* Vidéos */

.teaser {
  padding: 2rem 1rem;
  text-align: center;
}

.video-container {
  position: relative;
  padding-bottom: 0; /* On enlève le ratio 16:9 ici */
  height: auto; /* ← Laisse la vidéo gérer sa propre hauteur */
  max-width: 800px;
  margin: 1rem auto; /* Petit espace autour */
}

.video-container iframe {
  width: 100%;
  height: 400px; /* ou 360px / 480px si tu veux adapter */
  border-radius: 1rem;
  border: none;
}

/* Countdown */
.countdown-section {
  text-align: center;
  padding: 2rem;
  background-color: var(--nav-bg);
  margin-top: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.countdown-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.countdown-timer {
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* Mentions légales */

.mentions-legales {
  margin: 0rem auto;
  padding: 2rem;
  border-radius: 12px;
  line-height: 1.6;
}

.mentions-legales h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.mentions-legales p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Politique de confidentialité */

.politique-confidentialite {
  margin: 0rem auto;
  padding: 2rem;
  border-radius: 12px;
  line-height: 1.6;
}

.politique-confidentialite h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.politique-confidentialite p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Staff */
.equipe {
  background-color: var(--nav-bg);
  padding: 3rem 1rem;
  text-align: center;
}

.equipe h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.team-card p {
  font-size: 0.95rem;
}