body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #173978;
  padding: 20px;
}

p {
  margin-top: 1em;     /* espace au-dessus du paragraphe */
  margin-bottom: 1em;  /* espace en dessous du paragraphe */
  line-height: 1.2;    /* hauteur de ligne confortable */
  color: #173978;      /* couleur du texte */
}

.accordion {
  max-width: 1200px;
  margin: auto;
}

.chapter {
  background: #cef0ff; /* #ffffff; */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

.chapter-header {
    cursor: pointer;
    padding: 18px 18px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky; /* clé pour garder en haut */
    top: 0;           /* distance du haut de la page */
    z-index: 10;      /* pour qu’il reste au-dessus du contenu */
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 18px;
}

.chapter.active .arrow {
  transform: rotate(90deg);
}

.chapter-content {
  max-height: 0;
  background: #ffffff;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0px 20px;
  text-align: justify;
    overflow-y: auto;
}

.chapter.active .chapter-content {
  padding-top: 0px;     /* espace réduit sous le titre */
  padding-bottom: 20px; /* garde de l’air en bas */
  padding-left: 20px;
  padding-right: 20px;
  max-height: 10000px;
}

.chapter.active {
  scroll-margin-top: 0; /* pour scrollIntoView */
}

.chapter-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 15px 0;
}

/* Bloc sous-accordéon */
.subchapter {
  /*background: #f9f9f9;*/
  background: linear-gradient(
  135deg,
  rgba(198, 245, 230, 1.0),
  rgba(214, 236, 255, 0.5)
);
  border-radius: 8px;
  margin-bottom: 10px;
  margin-left: 10px; /* indentation visuelle */
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Header */
.subchapter-header {
  cursor: pointer;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Flèche */
.subarrow {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.subchapter.active .subarrow {
  transform: rotate(90deg);
}

/* Contenu */
.subchapter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  font-size: 1em;
}

.subchapter.active .subchapter-content {
  padding: 0px 15px 15px 15px;
  max-height: 5000px;
}


.programme-box {
  /*background: linear-gradient(135deg, #c6f5e6, #d6ecff);*/
  background: linear-gradient(
  135deg,
  rgba(198, 245, 230, 1.0),
  rgba(214, 236, 255, 0.5)
);
  padding: 15px 20px;
  border-radius: 15px;
  margin: 0px 0px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.custom-list {
  list-style: none;      /* supprime les puces */
  padding-left: 10px;           
  margin: 0;             /* supprime la marge par défaut */
  font-size: 1.5em;      /* augmente la taille du texte */
}

.custom-list li {
  margin-bottom: 10px;   /* espace entre les lignes */
}

.list-titre {
  list-style: none;
  padding-left: 0px;
  margin-left: 0;
  text-align: left;
  font-size: 1.1em;   /* texte principal plus grand */
}

.list-titre > li {
  margin-bottom: 16px;
}

/* Sous-listes */
.sublist-titre {
  list-style: "✔ ";
  padding-left: 40px;   /* indentation de quelques pixels */
  margin-top: 8px;
  font-size: 0.85em;    /* texte plus petit que le parent */
}

/* Espacement sous-points */
.sublist-titre  li {
  margin-bottom: 6px;
}

.sublist {
  list-style: "✔ ";
  padding-left: 15px;   /* indentation de quelques pixels */
  margin-top: 12px;
  font-size: 1em;    /* texte plus petit que le parent */
}

/* Ajouter de l'espace entre les items */
.sublist li {
  margin-bottom: 4px;  /* espace entre chaque point */
}

.sublist2 {
  list-style: "✔ ";
  padding-left: 15px;   /* indentation de quelques pixels */
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 1em;    /* texte plus petit que le parent */
}

/* Ajouter de l'espace entre les items */
.sublist2 li {
  margin-bottom: 4px;  /* espace entre chaque point */
}

.sublist3 {
  list-style: square;
  padding-left: 30px;   /* indentation de quelques pixels */
  margin-top: 0px;
  margin-bottom: 8px;
  font-size: 0.95em;    /* texte plus petit que le parent */
}

/* Ajouter de l'espace entre les items */
.sublist3 li {
  margin-bottom: 0px;  /* espace entre chaque point */
}

.sublist-10pts {
  list-style: "✔ ";
  padding: 0px 40px;   /* indentation de quelques pixels */
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 1em;    /* texte plus petit que le parent */
}

/* Ajouter de l'espace entre les items */
.sublist-10pts li {
  margin-bottom: 4px;  /* espace entre chaque point */
}

.presentation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.presentation-text {
    background: linear-gradient(90deg, #eef7ff 0%, #ffffff 100%);
    padding: 10px 20px;
    border-radius: 15px;
    margin: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    flex: 3; /* 3/4 */
}

.presentation-image {
  flex: 1; /* 1/4 */
}

.presentation-image img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  display: block;
}



  
.site-logo-left {
  position: fixed;
  top: 20px;
  left: 20px; 
  z-index: 1000;
}

.site-logo-left img {
  width: calc((100vw - 1200px) / 2 - 40px);
  min-width: 0px;     /* largeur minimale */
  max-width: 250px;    /* largeur maximale */
  height: auto;     /* garde les proportions */
  display: block;
  /*transition: width 0.3s ease;*/
}

.site-logo-right {
  position: fixed;
  top: 20px;
  right: 20px; 
  z-index: 1000;
}

.site-logo-right img {
  width: calc((100vw - 1200px) / 2 - 40px);
  min-width: 0px;     /* largeur minimale */
  max-width: 250px;    /* largeur maximale */
  height: auto;     /* garde les proportions */
  display: block;
  /*transition: width 0.3s ease;*/
}

/* Afficher logo mobile en bas */
.site-logo-mobile {
    width: auto;
    z-index: 1000;
    display:block;
    text-align: center;
    margin: 0 auto;
}

.site-logo-mobile img {
    width: 300px;       /* taille adaptée mobile */
    max-width: 50%;     /* jamais trop large */
    height: auto;
    display: block;
    margin: 0 auto;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto; /* centre la galerie */
}

.gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip:hover::after {
  opacity: 1;
}


.section-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: flex-start;
}

.section-content2 {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 3/4 texte, 1/4 vidéo */
  gap: 30px;
  align-items: flex-start;
}

/* 3/4 */
.text-content {
  flex: 3;
}

/* 1/4 */
.video-content {
  flex: 1;
}

/* Vidéo responsive */
.video-container {
  position: relative;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 9 / 16; /* IMPORTANT: vidéo verticale */
  border: 0;
  display: block;
}

/* Masquer sous 1200px */
@media screen and (max-width: 1400px) {
  .site-logo-left {
    display: none;
  }
  
  .site-logo-right {
    display: none;
  }
  
  .site-logo-mobile {
    display: block;
  }
  
}

/* Masquer le logo mobile sur desktop */
@media screen and (min-width: 1401px) {
  .site-logo-mobile {
    display: none;
  }
}

/* --- Media query pour mobile --- */
@media (max-width: 768px) { 
  body {
    padding-left: 0px;   /* annule les marges latérales */
    padding-right: 0px;
  }
  
  .chapter, .chapter-content, .chapter.active, .chapter-header {
    padding-left: 2px;  /* léger padding interne */
    padding-right: 2px;
	margin-left: 0px; /* indentation visuelle */
  }
  
  .subchapter, .subchapter-content, .subchapter-header, .subchapter.active {
    padding-left: 2px;  /* léger padding interne */
    padding-right: 2px;
	margin-left: 0px; /* indentation visuelle */
	margin-right: 0px; /* indentation visuelle */
  }
  
    .programme-box {
  padding: 6px 2px;
  border-radius: 6px;
	margin-left: 0px; /* indentation visuelle */
	margin-right: 0px; /* indentation visuelle */
  }
  
  .sublist-10pts {
  list-style: "✔ ";
  padding: 0px 20px;   /* indentation de quelques pixels */
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 1em;    /* texte plus petit que le parent */
    }
    
    /* Ajouter de l'espace entre les items */
    .sublist-10pts li {
      margin-bottom: 4px;  /* espace entre chaque point */
    }
    
    /* Sous-listes */
    .sublist-titre {
      list-style: "✔ ";
      padding-left: 30px;   /* indentation de quelques pixels */
      margin-top: 6px;
      font-size: 0.8em;    /* texte plus petit que le parent */
    }

  .site-logo {
    display: none;
  }

  p {
    margin-left: 0px; 
    margin-right: 0px;
    line-height: 1.0;
  }

  .sublist2 {
    padding-left: 10px;  /* indentation plus serrée pour mobile */
  }
  
.sublist3 {
    padding-left: 10px;  /* indentation plus serrée pour mobile */
  }
  
    .presentation {
    flex-direction: column;
  }

  .presentation-text,
  .presentation-image {
    flex: 1;
  }

  .presentation-image img {
    max-width: 250px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .gallery {
    flex-direction: column;
  }
  
    .gallery img {
    cursor: default;  /* plus de clic sur mobile */
  }
  
  .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .section-content2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
    .text-content {
    width: 100%;
  }
  
     .video-container iframe {
        width: 100%; /* force pleine largeur mobile */
        height: auto;
        
    }
  
    .video-content {
    order: 1;
    justify-content: center;
  }

  .text-content {
    order: 2;
  }
  
}
