/* ======== Disposition générale ======== */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3); /* Pour un léger voile */
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.dashboard {
  padding: 2rem;
  background: #f8f8f8;
}

.section {
  margin-bottom: 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h3 {
  color: #d40000;
  margin-bottom: 0.5rem;
}

/* ======== Navbar ======== */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.navbar a {
  text-decoration: none;
  color: #d40000;
  font-weight: bold;
}


/* ======== Hero (Accueil) ======== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
  text-align: center;
}

.slider {
  
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: contain;
background-repeat: no-repeat;
background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ======== Burger menu (mobile) ======== */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #d40000;
  font-weight: bold;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
  }

  .burger {
    display: block;
  }
}

/* ======== Logo ======== */
.logo {
  width: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* ======== Footer ======== */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* ======== Actualités en cartes (alternative statique) ======== */
.actualites {
  background: #f8f8f8;
  padding: 4rem 2rem;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}

.card.actu img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}



/* ======== Carrousel d'actualités ======== */
.news-carousel {
  position: relative;
  height: 75vh;
  overflow: hidden;
}

.news-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: contain;
background-repeat: no-repeat;
background-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;

}

.news-slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  color: white;
  max-width: 70%;
}

.overlay h2 {
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  background: #ffffff;
  color: #000;
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
}

/* ======== Défilement horizontal (non utilisé ici) ======== */
.news-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 20px;
}

.news-img {
  max-height: 180px;
  cursor: pointer;
  transition: transform 0.2s;
}

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

/* ======== cours ======== */

.section-cours {
  padding: 4rem 2rem;
  background: #f8f8f8;
  text-align: center;
}

.section-cours h2 {
  font-size: 2.5rem;
  color: #d40000;
  margin-bottom: 2rem;
}

.cours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.cours-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.cours-card h3 {
  margin-bottom: 0.5rem;
  color: #d40000;
}

.cours-card span {
  display: block;
  font-size: 0.95rem;
  color: #666;
  margin-top: 5px;
}
.cours-accordeon {
  padding: 4rem 2rem;
  background: #fff;
  max-width: 800px;
  margin: auto;
}

.cours-accordeon h2 {
  text-align: center;
  color: #d40000;
  margin-bottom: 2rem;
}

.cours-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.cours-toggle {
  width: 100%;
  background: #f5f5f5;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: left;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.cours-details {
  padding: 1rem;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.arrow {
  transition: transform 0.3s;
}

.cours-item.open .arrow {
  transform: rotate(180deg);
}

.cours-item.open .cours-details {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bandeau-couleur {
  height: 6px;
  width: 100%;
  margin-top: 1rem;
  border-radius: 0 0 6px 6px;
  animation: growBar 0.6s ease-out;
}

/* Couleurs par groupe */
.degrade-babys {
  background: linear-gradient(to right, #fbfbfad5, #fafe03d6);
}

.degrade-enfants-1 {
  background: linear-gradient(to right, #f6f60ed5, #f8b703de);
}

.degrade-enfants-2 {
  background: linear-gradient(to right, #f4ae2de5, #04f520de);
}

.degrade-ados {
  background: linear-gradient(to right, #1af706d6, #030ff7de);
}

.degrade-compet {
  background: linear-gradient(to right, #252cf5e7, #b47603ed);
}

.degrade-ceintures {
  background: linear-gradient(to right, #cc7f03ef, #060400ec); /* Sobriété pour les gradés */
}

.cours-slider {
  width: 100vw;
  height: 50vh;
  margin: 0 auto;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.cours-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.cours-slide.active {
  opacity: 1;
}

.cours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem;
 max-width: 1200px;
  margin: 0 auto; 
}

@media (min-width: 1280px) {
  .cours-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.cours-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.cours-card p{
font-size: 0.8rem;
}

.image-wrapper {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.image-wrapper:hover img {
  transform: scale(1.08);
}

.btn-toggle {
  background: #d40000;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.cours-description {
  display: none;
  margin-top: 1rem;
  text-align: left;
}

.cours-caption-static {
  text-align: center;
  color: #d40000;
  margin: 2rem auto;
  padding: 1rem 2rem;
  max-width: 800px;
}

.cours-caption-static h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cours-caption-static p {
  font-size: 1.1rem;
  color: #444;
}

.scroll-menu {
  position: fixed;
  right: 15px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.scroll-menu a {
  display: block;
  background: #d40000;
  color: white;
  padding: 10px 12px;
  border-radius: 50%;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.scroll-menu a:hover {
  transform: scale(1.1);
}

html {
  scroll-behavior: smooth;
}
/* Equipe */
.section-equipe {
  padding: 4rem 2rem;
  background: #f8f8f8;
  text-align: center;
}

.section-equipe h2 {
  color: #d40000;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.equipe-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.equipe-card:hover {
  transform: scale(1.02);
}

.equipe-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  aspect-ratio: 3/4; 
  border-radius: 8px;
  margin-bottom: 1rem;
}

.role {
  color: #d40000;
  font-weight: bold;
}

/* ========================== */
/* === Modale Carte (Dojo) === */
/* ========================== */

#modal-carte {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-carte-content {
  background-color: #fff;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.fermer-carte {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
  color: #333;
}

.fermer-carte:hover {
  color: #d40000;
  transform: scale(1.1);
  transition: all 0.2s ease-in-out;
}

/* Responsive Carte */
@media (max-width: 600px) {
  .fermer-carte {
    font-size: 1.5rem;
    top: 5px;
    right: 5px;
  }
}


/* =========================== */
/* === Modale Équipe Staff === */
/* =========================== */

#modal-equipe {
  display: none;
  position: fixed;
  z-index: 2010;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-equipe-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-equipe-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.modal-equipe-content h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.modal-role {
  color: #d40000;
  margin-bottom: 1rem;
}

.fermer-equipe {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.4rem;
  cursor: pointer;
  font-weight: bold;
  z-index: 2100;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 🎬 Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 🎨 Style du modal de connexion */
#loginModal {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* 🧩 Contenu du modal */
.modal-connexion-content {
  background-color: #ffffff;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: 'Poppins', sans-serif;
  animation: fadeIn 0.4s ease-in-out;
}

/* 🖋️ Titre */
.modal-connexion-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #223f7a;
}

/* 🧷 Champs */
.modal-connexion-content label {
  font-weight: 600;
  margin-top: 1rem;
  display: block;
  color: #333;
}

.modal-connexion-content input {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* 🟦 Bouton */
.modal-connexion-content button {
  margin-top: 1.5rem;
  width: 100%;
  background-color: #223f7a;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-connexion-content button:hover {
  background-color: #2c56a4;
}

/* ❌ Bouton de fermeture */
.fermer-connexion {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

.fermer-connexion:hover {
  color: #d40000;
  transform: scale(1.1);
}

#loginModal {
  display: none;
}


.pdf-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.pdf-card {
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
  display: flex;
  width: 220px;
  height: 320px; /* 📏 Hauteur définie pour que le fond s'affiche en entier */
  background-size: contain; /* 🖼️ Permet d’afficher l’image entière sans la couper */
  justify-content: space-between;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  color: #2a2a2a;
  font-family: 'Georgia', serif;
}

.pdf-cover {
  background-image: url("../../docs/actus/Reglement_Interieur.pdf");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 160px; /* Ajuste selon le ratio de ton visuel */
  margin-bottom: 12px;
}

/* Fond parchemin spécifique pour chaque carte */
.pdf-card:nth-child(1) {
  background-image: url("../../public/backgrounds/parchemin_reglement.png");
}
.pdf-card:nth-child(2) {
  background-image: url("../../public/backgrounds/parchemin_livret.png");
}
.pdf-card:nth-child(3) {
  background-image: url("../../public/backgrounds/parchemin_code_moral.png");
}


.pdf-card h4 {
  margin: 10px 0;
  font-size: 1.1em;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}

.pdf-thumb {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0078D4;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn.download {
  background-color: #00A859;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.pdf-viewer {
  margin-top: 30px;
  border: 1px solid #ccc;
}

.grade-block {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.ceinture-icon {
  width: 50px;
  margin-right: 10px;
}

.highlighted-grade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  border: 2px solid #0078D4;
  background: linear-gradient(to right, #e9f4ff, #f5faff);
  border-radius: 12px;
}
.highlighted-grade h2 {
  font-size: 1.6em;
  color: #0078D4;
  margin: 0;
}

.photo-profil {
  max-height: 180px;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 6px;
  background-color: #fff;
}

.texte-original {
  background-color: rgba(255, 255, 255, 0.95);
  color: #222;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.texte-original.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.validation-ok {
  display: inline-block;
  margin-left: 10px;
  color: green;
  font-size: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

input[type="text"]:not([name="Email"]),
input[type="tel"],
input[name="Code_postal"],
input[name="Adresse"],
input[name="Commune"] {
  text-transform: uppercase;
}
input[type="email"] {
  text-transform: none;
}

.scrolling-container {
  width: 100%;
  overflow: hidden;
  background-color: #f9f9f9; /* tu peux changer la couleur */
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  min-width: 150%; /* ← ajoute cette ligne */
  padding: 10px 0;
  font-size: 1.1em;
  animation: defilement 30s linear infinite;
}


@keyframes defilement {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

