body {
  margin: 0;
  font-family: "Garamond", serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #b4e4c1;
}

header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)),
    url("../image/IMG1.jpg") center/cover no-repeat fixed;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

header a {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #2b6c4b;
  font-weight: bold;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

header a:hover {
  text-decoration: underline;
  color: #2d4739;
}

header img {
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

header h1 {
  margin: 0.5rem 0;
  font-size: 2.5rem;
}

header p {
  font-style: italic;
  font-size: 1.2rem;
  margin: 0.2rem 0;
}

header h2 {
  font-style: italic;
  font-size: x-large;
  margin: 0.2rem 0;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #faf7f2;
}

section {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

section h2 {
  text-align: center;
  color: #2d4739;
  border-bottom: 2px solid #d5e5d0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

h3 {
  color: #2d4739;
  margin-top: 1.5rem;
  text-align: center;
}

h4 {
  text-align: center;
  color: #2d4739;
}

img {
  max-width: 100%;
  border-radius: 15px;
  display: block;
  margin: 1rem auto;
}

ul {
  margin-left: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

td {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.quote {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 1rem;
}

.highlight {
  background-color: #fff6b3;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

footer {
  text-align: center;
  background-color: #2d4739;
  color: white;
  padding: 1.5rem;
  font-size: 0.9rem;
  margin: 0 auto;
}

.bloc {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.bloc button {
  position: relative;
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  color: #3b3b00;
  cursor: pointer;
  transition: transform 0.3s;
}

.bloc button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  width: 0;
  background: #3b3b00;
  transition: width 0.28s ease;
  border-radius: 2px;
}

.bloc button:hover::after {
  width: calc(100% - 24px);
}

.bloc button:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.9);
}

p {
  text-align: justify;
}

#v1 {
  font-size: x-large;
}

#n1 {
  text-align: center;
}

/* Planning */
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: white;
}

.planning {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.day {
  background-color: #f9f9f9;
  border: 2px solid #ececec;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.day h2 {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #666;
}

.course {
  margin: 5px 0;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9em;
  font-weight: 500;
}

/* Couleurs des cours */
.hatha {
  background-color: #f4b4b4;
}

.familles {
  background-color: #a7c7e7;
}

.doux {
  background-color: #ffe5b4;
}

.mix {
  background-color: #fcdca9;
}

.prenatal {
  background-color: #b4e4c1;
}

.atelier {
  background-color: #e2e2e2;
}

.legend {
  margin-top: 25px;
  border-top: 2px solid #ccc;
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
}

.legend-color {
  width: 25px;
  height: 10px;
  border-radius: 4px;
}

.marie {
  background-color: #b4d6f4;
}

.muriel {
  background-color: #b4f4b4;
}

.chloe {
  background-color: #f4deb4;
}

.raphael {
  background-color: #f4b4b4;
}

#p1 {
  font-size: xx-small;
}

#T1 {
  margin: 0 auto;
  text-align: center;
}

.bloque {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.6);
  color: #3b3b00;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bloque:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

#RTY200 {
  max-width: 200px;
}

#p {
  font-style: italic;
  font-size: 2rem;
  margin: 0.2rem 0;
  text-align: center;
}

#pp {
  font-style: italic;
  font-size: small;
  margin: 0.2rem 0;
  text-align: center;
}

@media (max-width: 400px) {
  header,
  .hero {
    height: auto;
    padding-top: 60px;
    padding-left: 1rem;
    padding-right: 1rem;
    background-attachment: scroll;
  }

  header img {
    max-width: 120px;
  }

  .bloc {
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    padding: 0.3rem 0.5rem;
    gap: 0.2rem;
    overflow-x: auto;
    max-width: 95vw;
    flex-wrap: nowrap;
  }

  .bloc button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    min-width: 70px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .bloc::-webkit-scrollbar {
    display: none;
  }

  main {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3,
  h4 {
    font-size: 1rem;
  }

  p,
  #p1,
  #pp {
    font-size: 0.9rem;
  }

  #p {
    font-size: 1.2rem;
  }

  /* Planning */
  .planning {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .day {
    padding: 8px;
  }

  .day h2 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .course {
    font-size: 0.8em;
    padding: 5px;
  }

  .legend {
    flex-direction: column;
    gap: 5px;
  }

  .legend-item {
    font-size: 0.8em;
  }

  #RTY200 {
    max-width: 120px;
  }

  .hero-content,
  header h1,
  header p {
    margin-top: 0.5rem;
  }
}
