/* --- Réinitialisation --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 120px;
  height: 100%;
}

/* --- Police et Body --- */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Conteneur principal --- */
.container {
  width: 90%;
  margin: 0 auto;
  flex: 1;
}

/* --- Header --- */
header {
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 90px;
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* Animation du hamburger en croix */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Navigation Menu --- */
.nav-menu {
  display: flex;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #0077cc;
}

/* --- Responsive Menu --- */
@media (max-width: 768px) {
  .hamburger {
      display: flex;
  }

  .nav-menu {
      display: none;
      position: absolute;
      top: 120px;
      left: 0;
      width: 100%;
      background-color: white;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      z-index: 999;
  }

  .nav-menu.active {
      display: block;
  }

  .nav-menu ul {
      flex-direction: column;
      padding: 20px;
      gap: 10px;
  }

  .nav-menu li {
      text-align: center;
  }

  .nav-menu a {
      display: block;
      padding: 10px;
      font-size: 1.1rem;
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('Img/Assos.jpg') center/cover no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: #003366;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* --- Boutons --- */
.btn-primary,
.btn-participer,
.btn-inscription,
.fullscreen-modal .close-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover,
.fullscreen-modal .close-btn:hover {
  background-color: #005fa3;
}

.btn-participer:hover,
.btn-inscription:hover {
  background-color: #1815eb;
  transform: scale(1.05);
}

.btn-participer:active {
  background-color: #1815eb;
  transform: scale(1);
}

.btn-participer:focus,
.btn-inscription:focus {
  outline: none;
}

.modal-buttons {
  margin-top: 20px;
}

.modal-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 10px;
  border: none;
  cursor: pointer;
}

.btn-continuer {
  background-color: rgb(0, 45, 128);
  color: white;
}

.btn-retour {
  background-color: red;
  color: white;
}

/* --- Sections Générales --- */
section {
  padding: 60px 20px;
}

/* --- Titres --- */
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #0077cc;
}

/* --- Grilles --- */
.grid, .contact-grid, #tarifs .grid, #equipe .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

#equipe .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* --- Cartes --- */
.card, .contact-card, .tarif-card, .equipe-card, .age-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover, .contact-card:hover, .tarif-card:hover, .equipe-card:hover, .age-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card h3, .contact-card h3, #tarifs .card h3, #equipe .equipe-info h3, .age-card h3 {
  color: #003366;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p, .contact-card p, .tarif-card p, #tarifs .card ul li, #equipe .equipe-info p, .age-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* --- Horaires Section --- */
#horaires .intro-text {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.age-card-header {
  padding: 10px;
  border-radius: 8px 8px 0 0;
  color: white;
  text-align: center;
}

.age-card-header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.schedule-list {
  list-style: none;
  padding: 15px;
  text-align: left;
}

.schedule-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

.schedule-item i {
  margin-right: 10px;
  color: #00b894;
  font-size: 1.2rem;
}

.schedule-item strong {
  color: #003366;
}

/* --- Activités & Horaires --- */
#activites-horaires {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

#activites-horaires .intro-text {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.horaires-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.horaires-table th, .horaires-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.horaires-table th {
  background-color: #0077cc;
  color: white;
  font-weight: 600;
}

.horaires-table td {
  color: #333;
}

.horaires-table tr:nth-child(even) {
  background-color: #f5f5f5;
}

.horaires-table .icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.age-card p {
  margin: 10px 0;
}

.age-card .btn-primary {
  margin-top: 15px;
}

#activites-horaires .card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 15px 0;
}

#activites-horaires .card ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #666;
}

#activites-horaires .card ul li::before {
  content: "✔️ ";
  color: #00b894;
}

@media (max-width: 768px) {
  .horaires-table th, .horaires-table td {
      font-size: 0.9rem;
      padding: 8px;
  }

  .grid {
      grid-template-columns: 1fr;
  }

  .age-card-header h4 {
      font-size: 1.1rem;
  }

  .schedule-item {
      font-size: 0.95rem;
  }
}

/* --- Tarifs --- */
#tarifs {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.tarif-card .price {
  font-size: 2rem;
  color: #00aaff;
  margin: 15px 0;
  font-weight: bold;
}

#tarifs .card ul {
  list-style: none;
  padding: 0;
}

#tarifs .card ul li::before {
  content: "✔️ ";
  color: #00b894;
}

/* --- Formulaire --- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

input, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Réseaux sociaux --- */
.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.socials a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.socials img {
  width: 24px;
  margin-right: 8px;
}

.socials a:hover {
  transform: scale(1.2);
}

/* --- Footer --- */
footer {
  background: #333;
  color: #f9f9f9;
  text-align: center;
  padding: 20px;
  width: 100%;
  position: relative;
  bottom: 0;
}

/* --- Carousel --- */
.carousel {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.carousel-item.active {
  opacity: 1;
  z-index: 2;
}

.carousel-item img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 30px;
  transition: transform 0.5s ease;
}

.carousel-item.active img {
  transform: scale(1.02);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  margin: 10px auto 0 auto;
  font-size: 1rem;
}

/* --- Équipe --- */
#equipe .equipe-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 2px solid #eee;
}

#equipe .equipe-info {
  padding: 1.5rem;
  background: #f7f7f7;
  border-radius: 0 0 12px 12px;
}

#equipe .card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Contact --- */
.contact-email {
  text-align: center;
  margin-top: 40px;
}

.contact-email a {
  color: #0077cc;
  text-decoration: none;
}

.contact-email a:hover {
  color: #ffc400;
}

/* --- Modals --- */
.modal, .fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 60px;
  z-index: 9999;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content, .fullscreen-modal-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 60%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fullscreen-modal {
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

.modal h4, .fullscreen-modal h4 {
  color: #0077cc;
  font-size: 1.5rem;
}

.modal p, .fullscreen-modal p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.close, .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

.close:hover, .close:focus, .close-btn:hover {
  color: black;
  text-decoration: none;
}

/* --- Accordéons --- */
.accordion {
  margin-top: 40px;
}

.accordion-btn {
  background-color: #0077cc;
  color: white;
  cursor: pointer;
  padding: 15px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  margin-top: 10px;
}

.accordion-btn:hover {
  background-color: #005fa3;
}

.panel {
  padding: 0 15px;
  display: none;
  flex-direction: column;
  background-color: #f1f1f1;
  border-radius: 8px;
  margin-top: 5px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.panel img {
  margin: 10px 0;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* --- Images Galerie --- */
.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.images img {
  opacity: 1;
  transform: none;
  transition: none;
  width: 30%;
  height: 100px;
  object-fit: cover;
}

.images img.visible {
  opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  max-height: 80%;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.lightbox-arrow.left {
  left: 10px;
}

.lightbox-arrow.right {
  right: 10px;
}

.citation {
  font-style: italic;
  font-size: 0.95em;
  color: #555;
  margin-top: 0.5em;
}

.cgu-modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  background-image: url(Img/Capture\ site.png);
}

.cgu-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  border-radius: 12px;
  max-height: 85%;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.cgu-scroll {
  max-height: 300px;
  overflow-y: scroll;
  padding-right: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.cgu-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.cgu-buttons button {
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.accept-btn {
  background-color: #28a745;
  color: white;
}

.decline-btn {
  background-color: #dc3545;
  color: white;
}

.blocked-message {
  color: white;
  text-align: center;
  font-size: 1.2rem;
  padding: 30px;
}

.cgu-scroll p {
  margin-bottom: 1em;
}

.hamburger {
  display: flex;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 120px;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-menu.active {
  display: block;
}

.nav-menu ul {
  flex-direction: column;
  padding: 20px;
  gap: 10px;
}

.nav-menu li {
  text-align: center;
}

.nav-menu a {
  display: block;
  padding: 10px;
  font-size: 1.1rem;
}

h3 {
  font-size: 1.5em;
  margin-bottom: 20px; /* Espacement sous les titres */
  margin-top: 20px;    /* Espacement au-dessus des titres */
}

.button-container {
  display: flex; /* Utilisation de flexbox */
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement (si le conteneur a une hauteur) */
  height: 100vh; /* Pour centrer verticalement sur la page entière */
}

.petit-bouton {
  background-color: transparent;
  border: 2px solid gray;
  color: gray;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.petit-bouton:hover {
  background-color: #f0f0f0;
  color: black;
}
