/* ==========================================================
   logements.css – page « Logements », style contemporain
   Charte du site : Outfit, beige / orange.
   Remplace les valeurs de repli par tes variables si besoin.
   ========================================================== */

.lg {
  --beige:   #f5ede3;
  --beige-2: #ece2d0;
  --orange:  #c9915a;
  --orange-fonce: #b17743;
  --encre:   #2e2621;
  --douce:   #5d5148;
  --blanc:   #fff;
  --r:       24px;

  font-family: "Outfit", system-ui, sans-serif;
  color: var(--encre);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.lg-wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

.lg a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================
   HERO (même mécanique que galerie / journal / visite virtuelle)
   ========================================================== */

.logements-hero {

  position: relative;

  height: var(--hero-height, 58vh);
  min-height: var(--hero-min-height, 480px);

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

  text-align: center;

  overflow: hidden;

  background:
    url('../img/hero/hero-logements-desktop.webp')
    center 62% / cover no-repeat;

  background-color: #2b211c;
}

.logements-overlay {

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.50),
      rgba(0, 0, 0, 0.38)
    );
}

.logements-hero-content {

  position: relative;
  z-index: 2;

  color: white;

  width: min(860px, 92%);

  padding: 20px;
}

.logements-hero-content .section-tag {

  display: inline-block;

  margin-bottom: 18px;
  margin-top: 60px;
}

.logements-hero-content h1 {

  font-size: clamp(2.6rem, 6vw, 5rem);

  font-weight: 300;

  line-height: 1.08;

  margin-bottom: 18px;

  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.45);
}

.logements-hero-content p {

  color: rgba(255, 255, 255, 0.78);

  font-size: 1.05rem;

  line-height: 1.8;
}

/* Boutons A1 / A2 : même style que les onglets de la galerie */

.logements-switch {

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  margin-top: 32px;
}

.logements-switch a {

  padding: 13px 26px;

  border-radius: 999px;

  background: white;

  color: #5d5148;

  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-decoration: none;

  transition: 0.25s ease;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.logements-switch a:hover {

  background: #c9915a;

  color: #2b211c;

  transform: translateY(-2px);
}

/* Le tag « Logements » fait doublon avec la navbar : masqué partout */

.logements-hero-content .section-tag {

  display: none;
}

@media (max-width: 768px) {

  /* Hero mobile : la hauteur s'adapte au contenu (plus de texte coupé) */

  .logements-hero {

    box-sizing: border-box;

    height: auto;
    min-height: 360px;

    padding: 104px 0 40px;

    background:
      url('../img/hero/hero-logements-mobile.webp')
      center center / cover no-repeat;

    background-color: #2b211c;
  }

  .logements-hero-content {

    padding: 0 20px;
  }


  .logements-hero-content h1 {

    font-size: clamp(2rem, 9vw, 2.6rem);

    margin-bottom: 14px;

    text-wrap: balance;
  }

  .logements-hero-content h1 br {

    display: none;
  }

  .logements-hero-content p {

    font-size: 0.95rem;

    line-height: 1.65;
  }

  .logements-hero-content p br {

    display: none;
  }

  .logements-switch {

    margin-top: 24px;
    gap: 8px;
  }

  .logements-switch a {

    padding: 11px 18px;

    font-size: 0.83rem;
  }
}

/* ---------- Appartement ---------- */
.lg-appart { padding: 4rem 0; scroll-margin-top: 90px; } /* 90px = hauteur de la barre de navigation */
/* Ces blocs apparaissent en fondu, sans glissement : sinon les boutons A1/A2 tombaient 40px trop bas */
.lg-appart.reveal { transform: none; }
.lg-appart--alt { background: var(--beige); border-radius: 40px 40px 0 0; }

.lg-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.lg-head h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}

.lg-head p { margin: 0; color: var(--douce); font-size: 1.1rem; max-width: 42ch; }

/* ---------- Chiffres clés ---------- */
.lg-stats {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blanc);
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.lg-stats li { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; }
.lg-stats li + li { border-left: 1px solid rgba(35,29,25,.1); }

.lg-stats strong {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--orange-fonce);
}

.lg-stats span { font-size: .92rem; color: var(--douce); line-height: 1.3; }

.lg-chapo {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 34ch;
  margin: 0 0 2rem;
}

/* ---------- Bento ---------- */
.lg-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.lg-card {
  grid-column: span 2;
  padding: 1.75rem;
  background: var(--blanc);
  border-radius: var(--r);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.lg-card--large { grid-column: span 4; }
.lg-card--half { grid-column: span 3; }

.lg-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
}

.lg-card p { margin: 0; color: var(--douce); max-width: 52ch; }

.lg-card--accent { background: linear-gradient(135deg, #9a6230, #6f4526); color: var(--blanc); }
.lg-card--accent p { color: rgba(255,255,255,.92); }

.lg-card--photo {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.lg-card--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
  transition: transform .6s ease;
}

.lg-card--photo:hover img { transform: scale(1.04); }

.lg-card-over {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 1.5rem 1.4rem;
  color: var(--blanc);
  background: linear-gradient(to top, rgba(20,15,12,.7), transparent);
  display: flex; flex-direction: column;
}

.lg-card-over strong { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.lg-card-over span { font-size: .95rem; opacity: .92; }

/* ---------- Fiche technique ---------- */
.lg-fiche {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
}

.lg-fiche > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(35,29,25,.14);
}

.lg-fiche dt { color: var(--douce); }
.lg-fiche dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------- Appel à l'action ---------- */
.lg-cta {
  text-align: center;
  padding: 5rem 1.25rem 6rem;
  background: var(--beige);
}

.lg-cta h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.75rem;
}

.lg-cta-btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

.lg-btn {
  padding: .85rem 1.6rem;
  border: 1.5px solid var(--encre);
  border-radius: 999px;
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.lg-btn:hover { background: var(--encre); color: var(--blanc); }
.lg-btn--plein { background: var(--orange); border-color: var(--orange); color: var(--encre); }
.lg-btn--plein:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

/* ---------- Tablette ---------- */
@media (max-width: 900px) {
  .lg-head { grid-template-columns: 1fr; }
  .lg-stats { grid-template-columns: repeat(2, 1fr); }
  .lg-stats li:nth-child(3) { border-left: 0; }
  .lg-stats li:nth-child(n+3) { border-top: 1px solid rgba(35,29,25,.1); }
  .lg-bento { grid-template-columns: repeat(2, 1fr); }
  .lg-card, .lg-card--large { grid-column: span 1; }
  .lg-card--large { grid-column: 1 / -1; }
  .lg-card--half { grid-column: span 1; }
  .lg-card--half:last-child { grid-column: 1 / -1; }
  .lg-card--photo { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .lg-fiche { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .lg-appart { padding: 2.75rem 0; }
  .lg-appart--alt { border-radius: 28px 28px 0 0; }
  .lg-stats li { padding: 1rem; }
  .lg-bento { grid-template-columns: 1fr; }
  .lg-card, .lg-card--large { grid-column: 1 / -1; }
  .lg-card { padding: 1.4rem; border-radius: 20px; }
  .lg-fiche > div { flex-direction: column; gap: 0; }
  .lg-fiche dd { text-align: left; }
}
