/* Empêche le scroll tant que le splash est présent */
body.no-scroll {
  overflow: hidden;
}
/* Conteneur plein écran blanc */
#splash {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
/* Logo animé : léger zoom + fade */
#splash .logo {
  opacity: 0;
  transform: scale(1);
  animation: splash-appear 1s forwards;
}
@keyframes splash-appear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Classe ajoutée après load pour disparaître */
#splash.fade-out {
  animation: splash-disappear 2s forwards;
}
@keyframes splash-disappear {
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
/* Masquer le splash définitivement */
#splash.hidden {
  display: none;
}
/* Contenu principal caché sous le splash */
#main-content {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
body.loaded #main-content {
  visibility: visible;
  opacity: 1;
}
:root {
  --bleu-marine: #192040;
  --blanc: #ffffff;
  --bleu-hover: #0f1431;
  --gris-clair: #f2f2f2;
  --cyan: #419c8a;
}
h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1rem;
}
.reglement {
  padding: 1rem;
  max-width: 1000px;
  margin: auto;
  color: var(--bleu-marine);
}
.reglement p {
  text-align: justify;
}
.reglement li {
  text-align: justify;
  padding-bottom: 0.2rem;
}

/* Tagline au-dessus du menu */
.tagline {
  text-align: center;
  color: var(--blanc);
  font-size: 1.3rem; /* Taille ligne principale */
}
.tagline-sub {
  display: block;
  font-size: 0.7rem; /* Taille réduite pour la seconde ligne */
  margin-top: 0.2rem;
}
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: #fdfaf4;
  color: var(--bleu-marine);
  font-size: 0.9rem;
  height: 100%;
}
header {
  background-color: var(--bleu-marine);
  padding-top: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: var(--bleu-marine);
}
header .social-icons {
  display: block;
  background: none;
  border: none;
  gap: 1rem;
  position: absolute;
  right: 2rem;
  top: 15%;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 1rem;
  background-color: var(--blanc);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo-wrapper {
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.7rem;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blanc);
  cursor: pointer;
  position: absolute;
  right: 1.6rem;
  top: 60%;
  transform: translateY(-40%);
}
nav {
  display: flex;
  align-items: center;
  margin: 0 auto; /* Centré horizontalement en mode non mobile */
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
nav li {
  position: relative;
}
nav > ul > li > a {
  color: var(--bleu-marine);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}
nav ul li a:hover {
  color: var(--cyan);
}
nav ul ul {
  display: none;
  font-size: 0.8rem;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background-color: var(--blanc);
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
nav ul li:hover > ul {
  display: block;
}
nav ul ul li a {
  color: var(--bleu-marine);
  display: block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
nav ul ul li a:hover {
  background-color: var(--blanc);
  color: var(--cyan);
}
.carousel {
  width: 100%;
  height: 80vh;
  position: relative;
  overflow: hidden;
}
.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.2);
  transition: transform 0.5s ease, opacity 1s ease-in-out;
}
.carousel img.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 1;
}
.carousel2 {
  width: 100%;
  height: 80vh;
  position: relative;
  overflow: hidden;
}
.carousel2 img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.2);
  transition: transform 2s ease, opacity 4s ease-in;
}
.carousel2 img.active2 {
  opacity: 1;
  transform: scale(1.05);
  z-index: 1;
}
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-caption a {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.4rem 1rem;
  background: #fff;
  color: var(--bleu-marine);
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem; /* Augmenté */
  text-decoration: none;
}

.carousel-caption-2 {
  position: absolute;
  top: 30%;
  left: 30%;
  max-width: 600px;
  background-color: #00000073;
  transform: translate(-50%, -50%);
  color: var(--blanc);
  font-size: 0.9rem;
  padding: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
}

.clubengage {
  display: flex; /* 1. flex container */
  flex-direction: column; /*    en colonne       */
  align-items: center; /* 2. centre les enfants */
  background-color: #5a5b58;
  color: var(--blanc);
  padding-bottom: 0.7rem;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  gap: 1rem;
  text-align: justify; /* justification par défaut */
}

.clubengage .contenu {
  width: 100%;
  max-width: 900px;
}

.clubengage .icons {
  display: flex; /* 4. flex pour les icônes */
  justify-content: center; /*    centré horizontalement */
  gap: 1rem;
}

.clubengage .icons img {
  width: 130px;
  height: auto;
}

.contact {
  padding: 2rem 1rem;
  background-color: var(--gris-clair);
}
.stats {
  padding: 2rem 8rem;
  background-color: #fdfaf4;
}
footer {
  background-color: var(--bleu-marine);
  color: var(--blanc);
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 0.4rem;
}
footer p {
  margin: 0;
  line-height: 1.1;
}
footer a {
  color: var(--blanc);
  text-decoration: none;
}
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  justify-items: center;
}
.stat-item {
  padding: 1.5rem;
  border-radius: 0.6rem;
  text-align: center;
  transition: transform 0.4s ease;
}
.stat-number {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--bleu-marine);
  color: var(--blanc);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.stat-number:hover {
  background-color: var(--cyan);
}
.stat-number:active {
  background-color: var(--cyan);
}
.stat-number .number {
  font-size: 2rem;
  line-height: 1;
}
.stat-number .label {
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 0.25rem;
}

.mot-du-president {
  margin: auto;
  max-width: 1200px;
  color: var(--bleu-marine);
}
.president-message {
  position: relative;
  text-align: justify;
  padding: 1rem;
  font-size: 1.05rem;
  font-style: italic;
  font-family: sans-serif;
  color: var(--bleu-marine);
}
.president-message:before {
  content: "“";
  font-size: 4rem;
  position: absolute;
  top: 0px;
  left: 5px;
  color: #ccc;
}
.president-message:after {
  content: "”";
  font-size: 4rem;
  position: absolute;
  bottom: -15px;
  right: 20px;
  color: #ccc;
}
.signature {
  position: relative;
  text-align: right;
  font-weight: bold;
  font-style: italic;
  top: -30px;
  margin-bottom: 2em;
  margin-right: 1em;
  color: var(--bleu-marine);
}

.img_information {
  display: flex;
  justify-content: center;
  padding: 2rem 0.5rem;
}

.img_information img {
  width: 40%;
}

.intro {
  margin: auto;
  max-width: 1000px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.intro-inner {
  width: min(900px, 100% - 40px);
  margin-inline: auto;
  text-align: center;
}

.intro h1 {
  margin: 0 0 12px;
}

.intro p {
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* Tablette: réduire police menu et espacement */
@media (max-width: 1024px) and (min-width: 769px) {
  nav > ul {
    gap: 1rem;
  }
  nav > ul > li > a {
    font-size: 0.8rem;
    padding: 0.6rem 0.4rem;
  }
  .stats {
    padding: 2rem 8rem;
  }
  .stat-number {
    width: 80px;
    height: 80px;
  }
  .stat-item {
    padding: 0.8rem;
  }
  .stat-number .label {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-top: 0.25rem;
  }
  .stat-number .number {
    font-size: 1.4rem;
    line-height: 1;
  }
  .carousel {
    height: 50vh;
  }
  .carousel-caption-2 {
    left: 35%;
  }
  .carousel-caption-3 {
    right: -20%;
  }
}
/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 0.8rem;
  }
  h1 {
    font-size: 1.2rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .tagline-sub {
    font-size: 0.7rem;
  }
  .menu-toggle {
    display: block;
  }
  .navbar {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--blanc);
    z-index: 999;
    flex-direction: column;
  }
  nav.active {
    display: flex;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0 0;
    gap: 0;
  }
  nav ul li a {
    display: block;
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: var(--bleu-marine);
  }
  nav ul ul {
    display: none;
    position: static;
    background-color: var(--gris-clair);
    padding-left: 1rem;
  }
  nav ul li.show-submenu > ul {
    display: block;
  }
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }
  .navbar img {
    display: none;
  }
  .mobile-title {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
  }
  .carousel-caption-2 {
    font-size: 0.8rem;
    left: 0%;
    padding: 0.5rem;
    transform: translate(0%, -82%);
  }
  .carousel-caption a {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }
  footer {
    font-size: 0.8rem;
  }
  .contact {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .stats {
    padding: 2rem 1rem;
  }
  .stat-item {
    padding: 0.6rem;
  }
  .stat-number {
    width: 80px;
    height: 80px;
  }
  .stat-number .label {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-top: 0.25rem;
  }
  .stat-number .number {
    font-size: 1.4rem;
    line-height: 1;
  }
  .mot-du-president {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .president-message {
    font-size: 0.9rem;
  }

  .signature {
    font-size: 0.8rem;
  }

  .clubengage .contenu {
    font-size: 0.8rem;
  }
  .clubengage .icons img {
    width: 80px;
    height: auto;
  }

  .img_information img {
    width: 100%;
  }
}
