h1, h2{
  text-align: center;
  color: #ec8f05;
}

h3{
  color: #ec8f05;
}

html {
  scroll-behavior: smooth;
}

ul {
  padding-left: 20px;
}

section {
  margin-bottom: 30px;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #070706;
}

footer {
  background-color: #fdd08c;
  text-align: center;
  font-size: 0.9em;
  color: #ec8f05;
  padding: 20px;
}

.note {
  font-style: italic;
  color: #ec8f05;
}

.titre-centre {
  text-align: center;
  margin-top: 30px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
  position: fixed; /*sticky*/
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #fdd08c !important;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(36, 18, 18, 0.1);
}

/* Style de nav */
.navbar ul {
  font-size: clamp(0.5rem, 1.5vw, 1.5rem);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  font-weight: bold;
  color: #ec8f05;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #0077cc;
}

@media (max-width: 600px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 600px) {
  .navbar ul {
    gap: 1rem;
  }
}

.intro-header {
  margin-top: 60px; /* Compense la navbar fixed */
  background-color: #fdd08c;
  color: white;
  padding: 20px 30px;
  text-align: center;
}

/* Animation fade + slide */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classe de base, éléments invisibles par défaut */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* Classe active déclenchée par le JS */
.fade-in.visible {
  animation: fadeSlideUp 0.8s ease-out forwards;
}

.card {
  background-color: #fefbf2;
  border: 1px solid #ec8f05;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

.tuto-card {
  background-color: #fefbf2;
  border: 1px solid #ec8f05;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.05);

  display: flex;
  flex-direction: column;
  gap: 15px; /* rétablit les espacements verticaux */
}

/*Accordeon*/
.accordion {
  margin-bottom: 15px;
}

.accordion-toggle {
  background-color: #ec8f05;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  width: 100%;
  text-align: left;
  display: flex;              /* ← pour aligner texte + flèche */
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-toggle:hover {
  background-color: #cf7c03;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 10px;
}

.accordion-content.open {
  max-height: 1350px;
  margin-top: 8px;
}

.arrow {
  transition: transform 0.3s ease;
}

.accordion-toggle.open .arrow {
  transform: rotate(180deg); /* ↷ fait tourner la flèche vers le haut */
}

/*photo de prof*/
.prof-photo {
  width: 250px;
  border-radius: 50%;
  border: 3px solid #ec8f05;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 10px auto; /* auto pour centrer si block */
  display: block;     /* important pour que le centrage fonctionne */
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.prof-section {
  text-align: center;
  margin-top: 30px;
}

.prof-photo:hover {
  transform: scale(1.1); /* Zoom léger */
}

.photo-container {
  position: relative;
  width: fit-content;
  margin: 20px auto;
}

/* Légende cachée au départ */
.caption {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Affichage au survol */
.photo-container:hover .caption {
  opacity: 1;
}

/* logo */
.site-logo {
  max-width: 100px;
  display: block;
  margin: 20px auto;
  transition: transform 0.3s ease-in-out;
}

.site-logo:hover {
  transform: scale(1.05);
}

.video-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.video-container video {
  width: 80%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.video-container video:hover {
  transform: scale(1.02);
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center; /* optionnel pour centrage vertical */
  margin-top: 2rem;
}

.btn-contact {
  background-color: #ec8f05; /* ton orange stylé */
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin: 8px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
  background-color: #cf7c04;
  transform: scale(1.05);
}

a {
  color: #3366cc;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/*Carte géographique*/
.map-section {
  margin-top: 2rem;
  text-align: center;
}

#toggleMap {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#toggleMap:hover {
  background-color: #1a252f;
}

#mapContainer {
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#map {
  width: 100%;
  height: 400px;
}

@media screen and (max-width: 600px) {
  #map {
    height: 300px;
  }

  #toggleMap {
    width: 90%;
  }
}

.map-note {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin: 10px 0;
}