/* ==========================================================================
   Latinea — page « La salle » (novembre 2026)
   Ordre : en-tête photo · 4 atouts · visite guidée (3 espaces en grand, en
   zigzag, puis 3 en mosaïque) · une salle qui vit (cours, soirées, stages,
   studio photo) · venir à la salle · bandeau final.
   Photos : assets/img/la-salle/. Les jetons viennent de site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. En-tête de page
   Même dispositif que les pages Cours, Équipe et Événements : photo de fond,
   voile horizontal pour la lisibilité du texte, voile vertical pour asseoir
   l'en-tête fixe. Règles reprises telles quelles — chaque page porte sa
   feuille, aucune n'en charge une autre.
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding:
    calc(var(--hauteur-entete) + clamp(56px, 8vw, 120px))
    var(--espace-horizontal)
    clamp(40px, 5vw, 72px);
  border-bottom: 1px solid rgba(242, 235, 221, .08);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Voile horizontal : sombre à gauche, transparent à droite. */
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(18, 18, 18, .88) 0%,
      rgba(18, 18, 18, .7) 34%,
      rgba(18, 18, 18, .3) 56%,
      rgba(18, 18, 18, .06) 74%,
      rgba(18, 18, 18, 0) 100%);
}

/* Voile vertical : assombrit le haut et le bas de l'image. */
.page-hero__veil--vertical {
  background: linear-gradient(180deg,
      rgba(18, 18, 18, .4) 0%,
      rgba(18, 18, 18, 0) 34%,
      rgba(18, 18, 18, .38) 100%);
}

.page-hero__copy {
  position: relative;
  z-index: 2;
}

.page-hero__eyebrow {
  margin-bottom: 26px;
}

.page-hero__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(34px, 5.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.page-hero__lead {
  margin: 28px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(242, 235, 221, .7);
}


.page-hero__copy {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.page-hero__actions .btn { padding: 10px 22px; font-size: 11px; }

/* Petites pastilles d'infos sous les boutons. */
.faits-salle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.faits-salle li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--arrondi-pilule);
  background: rgba(18, 17, 16, .72);
  border: 1px solid rgba(242, 235, 221, .12);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: rgba(242, 235, 221, .86);
}

/* --------------------------------------------------------------------------
   2. Ossature
   -------------------------------------------------------------------------- */
.salle-section {
  padding: clamp(64px, 8vw, 128px) var(--espace-horizontal);
  border-top: 1px solid rgba(242, 235, 221, .08);
}

.salle-section--halo { --position-halo: 76% 14%; background: var(--degrade-section); }
.salle-section--sombre { background: var(--degrade-sombre); }

.salle-wrap { max-width: 1180px; margin: 0 auto; }

.salle-head { margin-bottom: clamp(30px, 4vw, 48px); }
.salle-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.salle-head .section-title { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   3. Les 4 atouts
   -------------------------------------------------------------------------- */
.atouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atout {
  padding: 26px 22px;
  border-radius: var(--arrondi-carte);
  background: var(--fond-carte);
  border: 1px solid rgba(242, 235, 221, .06);
  transition: transform var(--t-moyen) var(--ease-doux), border-color var(--t-moyen) var(--ease-doux);
}

.atout:hover { transform: translateY(-4px); border-color: rgba(201, 168, 76, .35); }

.atout__ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(201, 168, 76, .12);
  border: 1px solid rgba(201, 168, 76, .32);
  font-size: 22px;
}

.atout__titre {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 18px;
  text-transform: uppercase;
}

.atout__texte { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(242, 235, 221, .66); }

/* --------------------------------------------------------------------------
   4. Visite guidée — zigzag photo / texte
   -------------------------------------------------------------------------- */
.espace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.espace + .espace { margin-top: clamp(48px, 7vw, 96px); }

.espace--inverse .espace__media { order: 2; }

.espace__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--arrondi-carte);
  overflow: hidden;
  background: var(--charbon);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .5);
}

.espace__media .slot { transition: transform 1.4s var(--ease-doux); }
.espace:hover .espace__media .slot { transform: scale(1.05); }

.espace__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 76, .7);
}

.espace__titre {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
}

.espace__texte { margin: 0; max-width: 46ch; font-size: 15.5px; line-height: 1.8; color: rgba(242, 235, 221, .72); }

.espace__lien {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dore);
}

.espace__lien:hover { color: var(--creme); }

/* Mosaïque des 3 petits espaces */
.mosaique {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(56px, 8vw, 104px);
}

.tuile-salle {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  margin: 0;
  border-radius: var(--arrondi-carte);
  overflow: hidden;
  border: 1px solid rgba(242, 235, 221, .08);
}

.tuile-salle .slot { z-index: -2; transition: transform 1.4s var(--ease-doux); }
.tuile-salle:hover .slot { transform: scale(1.06); }

.tuile-salle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 12, 11, 0) 35%, rgba(12, 12, 11, .9) 100%);
}

.tuile-salle figcaption {
  padding: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(242, 235, 221, .8);
}

.tuile-salle figcaption b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--creme);
}

/* --------------------------------------------------------------------------
   5. Une salle qui vit
   -------------------------------------------------------------------------- */
.usages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 22px;
  border-radius: var(--arrondi-carte);
  background: var(--fond-feature);
  border: 1px solid rgba(242, 235, 221, .08);
}

.usage__quand {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--arrondi-pilule);
  border: 1px solid rgba(201, 168, 76, .5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dore);
}

.usage__titre {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 20px;
  text-transform: uppercase;
}

.usage__texte { margin: 0; flex: 1; font-size: 14px; line-height: 1.6; color: rgba(242, 235, 221, .68); }
.usage__lien { font-size: 13.5px; font-weight: 600; color: var(--dore); }
.usage__lien:hover { color: var(--creme); }

/* --------------------------------------------------------------------------
   6. Venir à la salle
   -------------------------------------------------------------------------- */
.venir-salle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 40px;
  border-radius: var(--arrondi-carte);
  background: var(--fond-feature);
  border: 1px solid rgba(201, 168, 76, .32);
}

.venir-salle .eyebrow { display: inline-block; margin-bottom: 10px; }

.venir-salle__titre {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(24px, 2.6vw, 32px);
  text-transform: uppercase;
}

.venir-salle__texte { margin: 0; max-width: 58ch; color: rgba(242, 235, 221, .72); }
.venir-salle__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* --------------------------------------------------------------------------
   7. Bandeau final
   -------------------------------------------------------------------------- */
.salle-cta { padding: clamp(48px, 6vw, 80px) var(--espace-horizontal) clamp(64px, 8vw, 96px); }

.salle-cta__carte {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 40px;
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(180deg, #FBF6EC 0%, #EFE7D8 100%);
  color: #101010;
}

.salle-cta__titre {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.06;
  text-transform: uppercase;
  color: #101010;
}

.salle-cta__texte { margin: 0 0 24px; color: rgba(16, 16, 16, .66); }

/* --------------------------------------------------------------------------
   8. Cadrage
   -------------------------------------------------------------------------- */
/* En-tête : la piste et le mur de miroirs, sans trop de plafond. */
.slot--cadre-hero-salle { object-position: center 62%; }

/* --------------------------------------------------------------------------
   9. Responsive — paliers existants (1080 / 860 / 767.98)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .atouts, .usages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaique .tuile-salle:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .page-hero__veil {
    background: linear-gradient(180deg,
        rgba(18, 18, 18, .34) 0%,
        rgba(18, 18, 18, .6) 42%,
        rgba(18, 18, 18, .86) 100%);
  }
  .espace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .espace--inverse .espace__media { order: 0; }
}

@media (max-width: 767.98px) {
  .atouts { gap: 10px; }
  .atout { padding: 18px 16px; }
  .atout__ico { width: 40px; height: 40px; margin-bottom: 12px; font-size: 18px; }
  .atout__texte { font-size: 12.5px; }
  .usages, .mosaique { grid-template-columns: minmax(0, 1fr); }
  .mosaique .tuile-salle:last-child { grid-column: auto; }
  .tuile-salle { min-height: 260px; }
  .venir-salle { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .salle-cta__carte { padding: 40px 22px; }
  .faits-salle li { font-size: 12px; }

  /* Le palier mobile du socle impose les tailles de h3 en !important. */
  .espace__titre.espace__titre { font-size: 28px !important; }
  .atout__titre.atout__titre { font-size: 15px !important; }
  .usage__titre.usage__titre { font-size: 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .atout, .espace__media .slot, .tuile-salle .slot { transition: none; }
}
