/* =========================================================
   BASE / LAYOUT GÉNÉRAL
   ========================================================= */

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F2E6E9;
}

:root{
  --header-h: 160px;
  --header-wave: 75px;
}

/* header plus petit sur mobile */
@media (max-width: 700px){
  :root{
    --header-h: 120px;
    --header-wave: 55px;
  }
}


/* =========================================================
   NAVIGATION INTERNE (PAGES CACHÉES / AFFICHÉES)
   ========================================================= */

.page {
  display: none;
}

.page.active {
  display: block;
}

/* =========================================================
   MAIN
   ========================================================= */

.site-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;

  /* header fixe + vague */
  padding: calc(var(--header-h) + var(--header-wave) + 1rem) 1rem 2.5rem;

  position: relative;
  z-index: 0;
  background: transparent;
}

/* titres de sections */
.section-title {
  margin: 0 0 1.25rem 0;
  text-align: center;
  font-size: 1.6rem;
}

/* =========================================================
   BLOC PIÈCE (PROCHAINE PIÈCE)
   ========================================================= */

.event-card {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 2rem;
  padding: 1.25rem;

  background: transparent;
  border-radius: 10px;
  align-items: stretch;
}

/* média (PIÈCE) */
.event-media{
  height: 100%;
  border-radius: 10px;
  overflow: hidden;

  display: flex;
  align-items: center;  
  justify-content: center;
}

.event-media img{
  width: 100%;
  height: 100%; 
  max-height: 100%;

  object-fit: contain; 
  object-position: center;

  display: block;
}



/* texte */
.event-text h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
}

.event-text h4 {
  margin: 1rem 0 0.35rem 0;
  font-size: 1rem;
}

.event-text p {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.event-text ul {
  margin: 0.35rem 0 0 1.1rem;
  padding: 0;
}

/* texte centré pour la pièce */
.event-text-centered{
  text-align: center;
}

.event-text-centered p{
  max-width: 520px;          /* largeur de lecture agréable */
  margin: 0.6rem auto;       /* centré horizontalement */
  line-height: 1.6;
}

.event-text-centered h3{
  margin-bottom: 1rem;
}

.event-text-centered h4{
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.event-highlight{
  font-weight: 600;
}

.event-text-centered hr{
  width: 60px;
  margin: 1.5rem auto;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.25);
}


/* =========================================================
   BLOC NOTRE TROUPE
   ========================================================= */

.troupe-block {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

/* photos */
.troupe-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.troupe-photos img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* texte */
.troupe-text {
  font-family: "Quicksand", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.troupe-text p {
  margin: 0 0 1rem 0;
}

.troupe-text em {
  font-style: italic;
}

/* =========================================================
   BLOC MENTIONS LÉGALES
   ========================================================= */

#mentions {
  font-size: 0.95rem;
  line-height: 1.6;
}

#mentions p {
  max-width: 800px;
  margin: 0 auto 1rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

  /* pièce */
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-media img {
    height: auto;
    max-height: 360px;
  }

  /* troupe */
  .troupe-block {
    grid-template-columns: 1fr;
  }

  .troupe-photos {
    grid-template-columns: 1fr 1fr;
  }
}
