/* =======================
   Typo + Reset
======================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

/* =======================
   MENU (desktop par défaut)
======================= */
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-bottom: none;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}

.menu ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  transition: 0.3s;
}

.menu ul li a:hover {
  background: #1DD6D1;
  color: #fff;
}

/* Bouton spécial "Cours gratuit" */
.btnpopupInscriptionGratuite {
  display: inline-block;
  padding: 10px 20px;
  background: #1DD6D1;  /* émeraude clair */
  color: #000;          /* texte noir */
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btnpopupInscriptionGratuite:hover {
  background: #17B8B3;  /* émeraude foncé */
  color: #fff;
}

.intro_page{
  font-size: 20px;   /* tu peux mettre 18px, 22px, etc. */
  line-height: 1.8;  /* améliore la lisibilité */
}

.seo-texte {
  position: absolute;
  left: -9999px;  /* décale le texte hors écran */
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Pour la page professeur */

.mosaic-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 10px; /* espace entre les cases */
  max-width: 800px; /* largeur max de la mosaïque */
  margin: auto; /* centrer */
}

.mosaic-images div {
  overflow: hidden;
  border-radius: 8px; /* coins arrondis */
}

.mosaic-images img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* garde le cadrage propre */
  transition: transform 0.3s ease;
}

.mosaic-images img:hover {
  transform: scale(1.05); /* petit zoom au survol */
}




/* =======================
   RESPONSIVE
======================= */
@media (max-width: 900px) {
  /* Burger */
  .menu-toggle {
    display: block;
    font-size: 32px;
    cursor: pointer;
    color: #1DD6D1;
    margin-left: 15px;
    z-index: 2000;
    position: relative;
  }

  /* Menu overlay */
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    max-height: 60vh;   /* hauteur réduite */
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .menu.active {
    display: flex;
  }

  /* Logo mobile */
  .menu-logo {
    padding: 15px 0;
  }
  .menu-logo img {
    max-height: 80px;
  }

  /* Liens */
  .menu ul {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
  }

  .menu ul li {
    list-style: none;
  }

  .menu ul li a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    text-align: center;
  }

  /* Bouton Fermer collé en bas */
  .menu ul li.close-item {
    margin-top: auto; /* pousse le li en bas */
  }
  .menu ul li.close-item a {
    background: #1DD6D1;
    color: white;
    font-weight: bold;
    padding: 14px 0;
    border-top: 2px solid #17B8B3;
    font-size: 18px;
    border-radius: 0;
  }
}

/* Desktop : cache burger et éléments mobiles */
@media (min-width: 901px) {
  .menu-toggle,
  .menu ul li.close-item {
    display: none;
  }
  .menu-logo {
    display: none !important;
  }
}



/* =======================
   BODY & footer(desktop par défaut)
======================= */



body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding-bottom: 50px; /* espace blanc sous le footer */
}


/* Section Contact */
/* Mise en page contact */
.contact-section {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  align-items: flex-start;   /* image et formulaire alignés en haut */
  justify-content: flex-start;
  gap: 40px;
  padding: 20px;
}

.contact-section img {
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-form {
  flex: 1;
  max-width: 600px;
}

.top-banner {
  background: #1DD6D1;   /* vert émeraude */
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
  width: 100%;           /* prend toute la largeur */
  margin: 0;             /* enlève marges */
  box-sizing: border-box;
  display: block;  
  border-bottom: none;      /* s’assure que c’est un bloc */
}

.header {
  background: #fff;
  border-bottom: none;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.label{
  font-weight: bold;
  color: #1DD6D1;
}

h1 {
  text-align: center;
  margin-top: 20px;
}

h2 {
  text-align: center;
  color: #1DD6D1;
}

p {
  font-size: 17px;
  line-height: 1.6; /* optionnel : rend le texte plus lisible */
}

.galerie_banniere_video {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
  gap: 15px;
  justify-items: center;
  max-width: 1300px;
  margin: 20px auto;
}

.galerie_banniere {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
  gap: 15px;
  justify-items: center;
  max-width: 1300px;
  margin: 20px auto;
}

.galerie_banniere img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Container principal des tarifs */
.tarif-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.subtitle{
  text-align: center;
}

.tarif-container.top {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tarif-container.top .tarif-card {
  flex: 1 1 100%;
  max-width: 400px; /* largeur contrôlée */
}

.tarif-container.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);;
  gap: 25px;
  justify-content: center;
}

/* Ajustements spécifiques à la page index*/
.index-section h1 {
  font-size: 50px;
  text-align: center;
  color: #1DD6D1;
}

.index-section h2 {
  font-size: 30px;
  text-align: center;
  color: #1DD6D1;
}

.index-formations{
  display: flex;         
  justify-content: center;
  align-items: center;     
  gap: 20px;              
}

.index-formations p {
  text-align: center;
  font-size: 20px;
}


.tarif-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 25px;                             /* espace entre cartes */
  max-width: 1000px;                     /* limite largeur */
  margin: 30px auto;
}

.tarif-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.tarif-card:hover {
  transform: scale(1.05);
}

.tarif-card h2 {
  color: #1DD6D1;
  font-size: 22px;
  margin-bottom: 10px;
}

.tarif-card p {
  margin: 8px 0;
}

.tarif-card .prix {
  font-weight: bold;
  color: #1DD6D1;
  font-size: 20px;
}

.tarif-card .btn-inscription {
  display: inline-block;
  background: #1DD6D1;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.3s;
}

.tarif-card .btn-inscription:hover {
  background: #17b8b3;
}

/* Ajustements spécifiques à la page Activités */
.course-section h1 {
  text-align: center;
  color: #1DD6D1;
}

.course-info {
  flex-grow: 1;
}

.course-info-1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1 1 calc(25% - 20px);
  min-width: 220px;
  max-width: 240px;
  border: 1px solid #ddd;
  padding: 0;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-bottom: 50px;
}

/* Bouton du haut */
.course-info-1 .btn-inscription:first-of-type {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0;
  text-align: center;
}

.btn-google-map{
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #1DD6D1;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

/* Image */
.course-info-1 img {
  max-width: 80%;
  height: auto;
  margin: 10px auto; /* centrée */
  object-fit: contain;
  object-fit: cover;
  border-radius: 0;
}

.course-info-1:hover {
  transform: scale(1.05);
}

/* Texte */
.course-info-1 p {
  padding: 10px;
  flex-grow: 1;
}

/* Bouton du bas */
.course-info-1 .btn-inscription:last-of-type {
  margin: 10px auto 15px;
}

.course-info p {
  text-align: justify;
}

.course-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.course-info-1 {
  flex: 1 1 calc(25% - 20px);
  min-width: 220px;
  max-width: 240px;
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Popup global */
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  max-width: 950px;
  width: 95%;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #1DD6D1;
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: #17b8b3;
}

/

/* Formulaire */
.form-row {
  display: flex;
  gap: 10px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 2px solid #1DD6D1;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #17b8b3;
  box-shadow: 0 0 8px rgba(23,184,179,0.3);
}

input::placeholder, textarea::placeholder {
  color: #aaa;
}

textarea {
  resize: none;
  min-height: 80px;
}

.btn-envoyer {
  background: #1DD6D1;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-envoyer:hover {
  background: #17b8b3;
  transform: translateY(-2px);
}

.btn-signup_openInscription {
  margin-top: 20px;
  border: none;
  display: inline-block;       /* permet marges et centrage */
  padding: 20px 40px;          /* espace intérieur */
  background-color: #1DD6D1;   /* turquoise/émeraude */
  color: white;                /* texte en blanc */
  font-weight: bold;           /* texte en gras */
  font-size: 16px;             /* taille du texte */
  text-align: center;          /* centre le texte */
  text-decoration: none;       /* supprime soulignement si lien */               /* pas de bordure */          /* coins arrondis */
  cursor: pointer;
  border-radius: 4px; 
}

.btn-signup_openInscription:hover {
  background: #17B8B3;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.activites-section {
  margin: 50px auto;
  max-width: 1200px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}


.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.course-card:hover img {
  filter: brightness(50%); /* image devient sombre */
}

/* texte au centre exact de l'image */
.visite-guide {
  position: absolute;
  top: 50%;              /* centré verticalement */
  left: 50%;             /* centré horizontalement */
  transform: translate(-50%, -50%); /* centre exact */
  font-size: 22px;
  font-weight: bold;
  color: white;
  opacity: 0;            /* caché par défaut */
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}


/* quand on survole le lien */
.activite-card:hover .visite-guide {
  opacity: 1;                /* ✅ texte devient visible */
}

.activite-card:hover img {
  filter: brightness(50%);   /* ✅ image s’assombrit */
}

/* lien = toute la carte cliquable */
.activite-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ================================
   Overlay sur les cartes Activités
================================ */
.course-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-image {
  position: relative;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  display: block;
}

.course-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* container image */
.image-container {
  position: relative;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.image-container:hover img {
  filter: brightness(50%);
}

.image-container:hover .visite-guide {
  opacity: 1;
}

.overlay-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 1.3em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.course-image:hover::before,
.course-image:hover .overlay-text {
  opacity: 1;
}

.btn-signup_openInscription {
  position: relative;
  z-index: 5; /* reste cliquable au-dessus de l’overlay */
}
.btn-inscription{
  position: relative;
  z-index: 5; /* reste cliquable au-dessus de l’overlay */
}


/* ================================
   Mise en page blocs formation
================================ */
.formation-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
  flex-wrap: wrap;
}

/* ================================
   Mise en page blocs Dessin_Manga_BD
================================ */

.formation-block.reverse {
  flex-direction: row-reverse;
}

.formation-text {
  flex: 1;
  min-width: 300px;
}

.formation-text h2 {
  color: #1DD6D1;
  margin-bottom: 15px;
  text-align: left;
}

.formation-text p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.formation-image {
  flex: 1;
  text-align: center;
}

.formation-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ================================
   Section Avis Étudiants
================================ */
.avis-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
  background: #f9f9f9;
}

.avis-section h2 {
  color: #1DD6D1;
  margin-bottom: 30px;
}

.avis-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  /* largeur définie par le JS → NE PAS fixer ici */
}

.avis-card {
  flex: 0 0 100%; /* chaque avis occupe 100% */
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
}

.avis-carousel {
  overflow: hidden;
  position: relative;   /* permet de positionner les flèches correctement */
  overflow: hidden;
}

.avis-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.avis-card h4 {
  margin: 10px 0 5px;
  color: #333;
}

.avis-card .role {
  font-size: 14px;
  color: #888;
  display: block;
  margin-bottom: 15px;
}

.avis-card .comment {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  font-style: italic;
}

/* Boutons navigation */
.avis-btn {
  background: #1DD6D1;
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s;
  z-index: 10;
}

.avis-btn:hover {
  background: #17b8b3;
}

.avis-btn.prev {
  left: 10px;
}

.avis-btn.next {
  right: 10px;
}

.tarifs-section-bouton{
  margin-top: 40px;
  text-align: center;
  flex-direction: column;
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement (si tu veux dans la hauteur du conteneur) */    
}

.tarifs-container{
  margin-top: 35px;
  margin-bottom: 35px;
}

.tarifs-section h2{
    color: #1DD6D1;
    font-size: 35px;
}

.highlight-text {
  font-weight: bold;   /* gras */
  font-size: 22px;     /* plus grand */
  color: #1DD6D1;      /* optionnel : couleur émeraude */
}

/* =================================
   Galerie + Footer
================================= */
.galerie-section {
  margin: 50px auto;
  max-width: 1200px;
  padding: 20px;
}

.galerie-section h2 {
  text-align: center;
  color: #1DD6D1;
  font-size: 2rem;
  margin-bottom: 25px;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.galerie-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.formations {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #f9f9f9;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
  margin: 30px auto;
  max-width: 1300px;
}


.btn-inscription {
  background: #1DD6D1;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  padding: 10px 20px;
  margin-top: 10px;
  text-decoration: none;
  display: inline-block;
}

.btn-inscription:hover {
  background: #17b8b3;
}

.video {
  text-align: center;
  margin: 40px auto;
}

.video iframe {
  width: 560px;
  height: 315px;
  max-width: 100%;
  border-radius: 12px;
}

.essai {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0px auto;
  text-align: center;
}

.essai p {
  margin: 0;
  line-height: 1;
}

.essai h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.btn-essai {
  background: #1DD6D1;
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.btn-essai:hover {
  background: #17b8b3;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* ✅ Footer avec ligne grise au-dessus */
.footer-info {
  border-top: 4px solid #eee;
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.social-block img{
  max-width: 100px;  /* ajuste selon la taille (avant c'était ~300px, donc 100px ≈ 3x plus petit) */
  height: auto;
  display: block;
  margin: 0 auto 8px; /* centre l'image et espace avec le texte */
}

.consulter{
  font-weight: bold;
}

.footer-info div {
  flex: 1;
  min-width: 180px;
}

.footer-info h3 {
  margin-bottom: 10px;
}

.footer-info a {
  color: #1DD6D1;
  text-decoration: none;
}


  /* Style spécial bouton "Réserver un cours gratuit" */
.menu ul li a#btnpopupInscriptionGratuite {
  background: rgba(29, 214, 209, 0.2);
  color: #1DD6D1;
  border-radius: 8px;
  padding: 8px 16px;   /* même hauteur que les autres liens */
  line-height: 1.2;    /* évite de trop gonfler le bouton */
  transition: all 0.3s ease;
}

/* Hover : vert émeraude foncé + texte blanc */
.menu ul li a#btnpopupInscriptionGratuite:hover {
  background: #17B8B3;
  color: #fff;
}

.menu ul {
  display: flex;
  align-items: center; /* aligne tous les items verticalement */
  gap: 25px;           /* espace entre les onglets */
}

.menu ul li a {
  display: inline-block;
  padding: 8px 12px;  /* idem pour tous */
  font-size: 18px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* === Zoom Overlay Galerie === */
.zoom-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.zoom-overlay img.zoom-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.zoom-legende {
  color: white;
  font-size: 18px;
  text-align: center;
  max-width: 80%;
}

.close-zoom {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  gap: 15px;
  text-align: center;
}

.galerie-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galerie-item img {
  width: 100%;
  max-width: 350px; /* ajuste si besoin */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.galerie-item .legende {
  margin-top: 8px;
  font-size: 15px;
  color: #555;
}

/* Page Dessin Manga BD*/

.course-images {
  display: flex;
  align-items: flex-start; /* tout en haut */
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
}

.course-left {
  flex: 1;
  display: flex;
  flex-direction: column; /* texte + image en colonne */
  gap: 20px;
}

.course-text {
  flex: 1;                /* prend toute la largeur dispo à gauche */
  max-width: 70%;         /* limite la largeur */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.course-text h2 {
  margin-bottom: 15px;
  text-align: left;
}

.course-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.course-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* conteneur pour regrouper les 2 images à droite */
.course-images .course-img:nth-of-type(2),
.course-images .course-img:nth-of-type(3) {
  flex: unset;
  width: 50%;
}

/* petite astuce pour mettre les 2 images l’une au-dessus de l’autre */
.course-images {
  display: flex;
}
.course-images .course-text {
  flex: 1;
}
.course-images .course-img {
  flex: none;
}
.course-images .course-img:nth-of-type(2),
.course-images .course-img:nth-of-type(3) {
  display: block;
  width: 300px;    /* largeur des images */
}

.tarif-card.btnpopupInscription .btn-signup{
  margin-top: 20px;
  border: none;
  display: inline-block;       /* permet marges et centrage */
  padding: 20px 40px;          /* espace intérieur */
  background-color: #1DD6D1;   /* turquoise/émeraude */
  color: white;                /* texte en blanc */
  font-weight: bold;           /* texte en gras */
  font-size: 16px;             /* taille du texte */
  text-align: center;          /* centre le texte */
  text-decoration: none;       /* supprime soulignement si lien */               /* pas de bordure */          /* coins arrondis */
  cursor: pointer;
  border-radius: 4px;       
}

.course-text button.btnpopupActivite{
  margin-top: 20px;
  border: none;
  display: inline-block;       /* permet marges et centrage */
  padding: 20px 42%;          /* espace intérieur */
  background-color: #1DD6D1;   /* turquoise/émeraude */
  color: white;                /* texte en blanc */
  font-weight: bold;           /* texte en gras */
  font-size: 16px;             /* taille du texte */
  text-align: center;          /* centre le texte */
  text-decoration: none;       /* supprime soulignement si lien */               /* pas de bordure */          /* coins arrondis */
  cursor: pointer;
  border-radius: 4px; 

}

.course-card .btnpopupInscription,
.course-card .btnpopupActivite{
  margin-top: 20px;
  border: none;
  display: inline-block;       /* permet marges et centrage */
  padding: 20px 40px;          /* espace intérieur */
  background-color: #1DD6D1;   /* turquoise/émeraude */
  color: white;                /* texte en blanc */
  font-weight: bold;           /* texte en gras */
  font-size: 16px;             /* taille du texte */
  text-align: center;          /* centre le texte */
  text-decoration: none;       /* supprime soulignement si lien */               /* pas de bordure */          /* coins arrondis */
  cursor: pointer;
  border-radius: 4px; 
}



/* Responsive */
@media (max-width: 900px) {

  .menu-logo {
    
  }
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr); /* tablette */
  }

  .menu {
    display: none; /* caché par défaut */
    flex-direction: column;
    align-items: center;
    gap: 0px; /* texte plus rapproché */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-bottom: none;
    padding: 20px 0 0 0;
    z-index: 999;
  }

  .menu.active {
    display: flex; /* menu ouvert */
  }

  .menu ul {
    flex-direction: column;
    width: 100%;
    margin: -10px;
    padding: 0;
    text-align: center;
    gap: 0; /* aucune séparation automatique */
  }

  .menu ul li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .menu ul li a {
    display: block;
    padding: 1px 0;      /* juste un petit espace */
    font-size: 17px;
    line-height: 1.1;    /* réduit hauteur de ligne */
    margin: -10px;           /* supprime toute marge */
  }

  /* Bouton fermer */
  .close-menu {
  padding: 8px 0;              /* réduit la hauteur */
  background: #1DD6D1;
  color: white;
  font-weight: bold;
  text-align: center;          /* centre le texte */
  cursor: pointer;
  width: 100%;                 /* occupe toute la largeur */
  border-top: 2px solid #17B8B3;
  font-size: 18px;             /* taille de texte homogène */
  box-sizing: border-box;      /* évite les marges fantômes */
  margin-top: auto;
}


  /* Burger */
  .menu-toggle {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: #1DD6D1;
    margin-left: 15px;
  }

 

  .course-info-1 {
    flex: 1 1 100%;
  }
  .menu-logo {
    text-align: center;
    padding: 10px 0;
  }

  .menu-logo img {
    height: 150px;       /* taille adaptée */
    max-width: 150px;
  }

}


@media (min-width: 769px){
  .menu-toggle,
  .close-menu {
    display: none;
  }
}


@media (max-width: 1024px){
  .course-info-1 {
    flex: 1 1 calc(50% - 20px);
  }
}

/* ✅ Popup cours gratuit optimisé responsive */

@media (max-width: 900px) {

  .close-menu1 {
  text-align: center; 
  background: #1DD6D1;
  color: white;
  font-weight: bold;
  text-align: center;          /* centre le texte */
  cursor: pointer;
  width: 100%;
  font-size: 18px;             /* taille de texte homogène */
  box-sizing: border-box;  

 }

  .popup-right {
    display: none ;
  }


  .popup-right img.instagram{
    display: none ;
  }
}


@media (min-width: 901px) {

  .close-menu1 {
  display: none;
 }

    .menu-logo {
      display: none;
  }

   /* Lien "Réserver un cours gratuit" stylisé */
  .menu ul li a#btnpopupInscriptionGratuite {
    background: rgba(29, 214, 209, 0.2); /* vert émeraude translucide */
    color: #1DD6D1;
    font-weight: bold;
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
    width: auto;
    margin: 0px;
    transition: all 0.3s ease;
  }

  .menu ul li a#btnpopupInscriptionGratuite:hover {
    background: #1DD6D1;
    color: white;
  }

  /* Layout en 2 colonnes */
  .popup-columns {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
  }

  .popup-left, .popup-right {
    flex: 1;
    min-width: 280px;
  }

  .popup-left h2,
  .popup-right h2 {
    color: #1DD6D1;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
  }

  /* Amélioration zone Contact */
  .popup-right {
    background: #f9fdfd;
    border-left: 3px solid #1DD6D1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
  }

  .popup-right p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
  }

  .popup-right a {
    color: #1DD6D1;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .popup-right a:hover {
    color: #17b8b3;
  }

  .popup-right img {
    max-width: 180px;
    margin-top: 25px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  }
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;     /* empile image et formulaire */
    align-items: center;        /* centre horizontalement */
    text-align: center;
  }

  .contact-section img {
    max-width: 55%;            /* image prend toute la largeur dispo */
    margin-bottom: 20px;
  }

  .contact-form {
    width: 100%;                /* formulaire prend toute la largeur */
    max-width: 500px;           /* limite pour garder joli */
  }
}

.formation-block {
    flex-direction: column;
    text-align: center;
  }
  .formation-text h2 {
    text-align: center;
  }
  .formation-text p {
    text-align: center;
  }
}


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