/* ==========================================================
   Les salles du studio (page Notre école) et note de location
   ========================================================== */

/* Trois salles côte à côte, l'une sous l'autre sur téléphone */
.rooms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.rooms__item {
  margin: 0;
}

/* Cadre vertical, la photo remplit le cadre (jamais recadrée dans le fichier) */
.rooms__photo {
  margin: 0 0 1rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-tint);
}

.rooms__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooms__item h3 {
  margin: 0 0 0.35rem;
}

.rooms__item p {
  margin: 0;
  color: var(--color-muted);
}

/* Invitation sous les salles : centrée */
.rooms-invite {
  max-width: var(--measure);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  text-align: center;
}

/* Note de location sous les salles : en complément, plus discrète */
.rooms-rental {
  max-width: var(--measure);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--color-line, rgba(0, 0, 0, 0.1));
  font-size: 0.95rem;
}

.rooms-rental h3 {
  margin-top: 0;
}

/* Page Location de salle : la location est le sujet, texte à taille normale */
.rooms-rental--page {
  font-size: inherit;
}

.rooms-rental--page h2:first-child {
  margin-top: 0;
}

@media (max-width: 48em) {
  .rooms {
    grid-template-columns: minmax(0, 1fr);
    max-width: 28rem;
    margin-inline: auto;
  }
}
