/* =========================================================================
   ELYSIOR — SECTIONS DE CONTENU
   Services · Logements/Transformation (avant→après) · FAQ · Blog
   Charte stricte : blanc dominant, or en filets 1px, accents d'angle,
   ombres or diffuses, Cormorant Garamond pour les titres.
   ========================================================================= */

/* Reveal au scroll : le masquage initial est posé par site.js via gsap.set
   UNIQUEMENT si GSAP est présent. Sans JS / sans GSAP, le contenu reste
   pleinement visible (robuste + lisible Google/LLM). */

/* En-tête de section réutilisable */
.s-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: clamp(46px, 7vh, 84px);
}
.s-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.s-head__title .em { font-style: italic; color: var(--or); }
.s-head__lede {
  max-width: 60ch;
  color: var(--gris);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  font-weight: 300;
}

/* =========================================================================
   SERVICES
   ========================================================================= */
.services {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201,168,76,0.06), transparent 55%),
    var(--noir-soft);
  padding-block: clamp(72px, 11vh, 150px);
  border-top: 1px solid var(--filet-soft);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
.svc {
  position: relative;
  background: #fff;
  border-radius: 4px;
  padding: clamp(26px, 2.8vw, 38px);
  box-shadow: inset 0 0 0 1px var(--filet-soft), 0 14px 34px -28px rgba(20,17,11,0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
  overflow: hidden;
}
.svc::after {
  /* accent d'angle or, révélé au survol */
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 30px; height: 30px;
  border-top: 1px solid var(--or); border-right: 1px solid var(--or);
  opacity: 0; transform: translate(-6px, 6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.svc:hover {
  transform: translateY(-5px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--filet), 0 30px 56px -34px rgba(140,107,34,0.42);
}
.svc:hover::after { opacity: 1; transform: translate(0, 0); }
.svc__top { display: flex; align-items: center; justify-content: space-between; }
.svc__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--or);
  background: radial-gradient(120% 120% at 30% 20%, rgba(201,168,76,0.16), rgba(201,168,76,0.03));
  box-shadow: inset 0 0 0 1px var(--filet);
  transition: transform .5s var(--ease);
}
.svc:hover .svc__icon { transform: scale(1.06) rotate(-3deg); }
.svc__icon svg { width: 24px; height: 24px; }
.svc__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gris-3);
}
.svc__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--blanc);
}
.svc__desc { font-size: 14.5px; line-height: 1.6; color: var(--gris); font-weight: 300; }

@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   LOGEMENTS / LA TRANSFORMATION ELYSIOR (avant → après)
   ========================================================================= */
.gallery {
  background: var(--noir);
  padding-block: clamp(72px, 11vh, 150px);
}

/* --- comparateur avant / après --- */
.ba {
  position: relative;
  margin: 0 auto clamp(40px, 6vh, 70px);
  max-width: 940px;
}
.ba__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--filet), 0 34px 80px -42px rgba(140,107,34,0.55);
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
  --pos: 50%;
}
.ba__layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
}
/* AVANT — vraie photo dégradée (background-image en ligne sur le calque) */
.ba__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 2;
}
/* APRÈS — vraie photo pro (background-image en ligne sur le calque) */
.ba__after {
  z-index: 1;
}
.ba__ph {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 100px;
}
.ba__before .ba__ph { color: var(--gris-2); box-shadow: inset 0 0 0 1px rgba(20,17,11,0.18); }
.ba__after .ba__ph { color: var(--or-soft); box-shadow: inset 0 0 0 1px rgba(201,168,76,0.4); }
.ba__tag {
  position: absolute; top: 16px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 100px;
  backdrop-filter: blur(8px);
  z-index: 4;
}
.ba__tag--before { left: 16px; color: #14110B; background: rgba(255,255,255,0.72); box-shadow: inset 0 0 0 1px rgba(20,17,11,0.12); }
.ba__tag--after  { right: 16px; color: var(--or-soft); background: rgba(20,17,11,0.5); box-shadow: inset 0 0 0 1px rgba(201,168,76,0.4); }
.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--or);
  z-index: 3;
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20,17,11,0.55);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--or), 0 10px 26px -10px rgba(0,0,0,0.6);
  display: grid; place-items: center;
  color: var(--or-soft);
}
.ba__knob svg { width: 20px; height: 20px; }
.ba__cap {
  text-align: center;
  margin-top: 18px;
  font-size: 13.5px; color: var(--gris-2);
  letter-spacing: 0.02em;
}
.ba__cap b { color: var(--or); font-weight: 600; }

/* --- Vidéo de logement (section Vidéo + logements) --- */
.logement-video {
  position: relative;
  max-width: 940px;
  margin: 0 auto clamp(30px, 4.5vh, 56px);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--filet), 0 34px 80px -42px rgba(140,107,34,0.55);
}
.logement-video video { display: block; width: 100%; height: auto; background: #14110B; }
.logement-video__sound {
  position: absolute; bottom: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: none;
  background: rgba(20,17,11,0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.55), 0 8px 22px -8px rgba(0,0,0,0.6);
  color: var(--or-soft); z-index: 3;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.logement-video__sound:hover { background: rgba(20,17,11,0.74); transform: translateY(-2px); }
.logement-video__sound svg { width: 22px; height: 22px; }
.logement-video__sound .ic-on { display: none; }
.logement-video__sound[data-muted="false"] .ic-off { display: none; }
.logement-video__sound[data-muted="false"] .ic-on { display: block; }

/* --- grille de transformations (placeholders) --- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.gtile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
  background:
    radial-gradient(130% 130% at 70% 10%, rgba(201,168,76,0.16), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--noir-soft));
  box-shadow: inset 0 0 0 1px var(--filet-soft);
  display: flex; align-items: flex-end;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gtile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--filet), 0 26px 50px -34px rgba(140,107,34,0.4); }
.gtile__cap {
  position: relative; z-index: 1;
  padding: 18px 20px;
  font-family: var(--serif); font-size: 19px; color: var(--blanc);
  letter-spacing: 0.005em;
}
.gtile__cap span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or); margin-top: 4px; }

@media (max-width: 760px) { .gallery__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery__grid { grid-template-columns: 1fr; } }

/* --- Nos logements en gestion (photos réelles Bagneux / Montrouge / Vanves) --- */
.logements { margin-top: clamp(44px, 7vh, 80px); }
.logements__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; margin-bottom: clamp(28px, 4vh, 46px);
}
.logements__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(23px, 3vw, 36px); line-height: 1.1; color: var(--blanc); letter-spacing: -0.005em;
}
.logements__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.logements__chip {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--or); padding: 8px 16px; border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--filet);
  background: radial-gradient(120% 120% at 30% 20%, rgba(201,168,76,0.10), transparent 70%);
}
.logements__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.logements__grid figure {
  position: relative; margin: 0; aspect-ratio: 4 / 3;
  border-radius: 5px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--filet-soft), 0 14px 34px -28px rgba(20,17,11,0.5);
}
.logements__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.logements__grid figure:hover img { transform: scale(1.05); }
.logements__empty { text-align: center; color: var(--gris-2); font-size: 14px; }
.logements__empty code { color: var(--or); font-size: 13px; }
@media (max-width: 760px) { .logements__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .logements__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq {
  background: var(--noir-soft);
  padding-block: clamp(72px, 11vh, 150px);
  border-top: 1px solid var(--filet-soft);
}
.acc { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.acc__item {
  background: #fff;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--filet-soft);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.acc__item[data-open="true"] { box-shadow: inset 0 0 0 1px var(--filet); background: var(--surface); }
.acc__q {
  width: 100%;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--blanc);
  text-align: left;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 30px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  letter-spacing: 0.005em;
}
.acc__icon {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--or);
  box-shadow: inset 0 0 0 1px var(--filet);
  position: relative;
  transition: transform .45s var(--ease), background .45s var(--ease);
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute;
  background: currentColor; border-radius: 2px;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.acc__icon::before { width: 12px; height: 1.6px; }
.acc__icon::after  { width: 1.6px; height: 12px; }
.acc__item[data-open="true"] .acc__icon { transform: rotate(90deg); background: rgba(201,168,76,0.1); }
.acc__item[data-open="true"] .acc__icon::after { opacity: 0; }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.acc__item[data-open="true"] .acc__panel { grid-template-rows: 1fr; }
.acc__panelInner { overflow: hidden; }
.acc__a {
  padding: 0 clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 26px);
  font-size: 15px; line-height: 1.65; color: var(--gris); font-weight: 300;
  max-width: 64ch;
}
.acc__a a { color: var(--or); text-decoration: none; border-bottom: 1px solid var(--filet); }
.acc__a a:hover { color: var(--blanc); }

/* =========================================================================
   BLOG
   ========================================================================= */
.blog {
  background: var(--noir);
  padding-block: clamp(72px, 11vh, 150px);
}
.blog__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(38px, 5vh, 64px);
}
.blog__headL { display: flex; flex-direction: column; gap: 18px; }
.blog__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.8vw, 50px); line-height: 1.05; letter-spacing: -0.01em;
}
.blog__title .em { font-style: italic; color: var(--or); }
.blog__all {
  font-size: 13px; letter-spacing: 0.05em; color: var(--or);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--filet); padding-bottom: 3px; white-space: nowrap;
  transition: color .3s, border-color .3s;
}
.blog__all:hover { color: var(--blanc); border-color: var(--or); }
.blog__all svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.blog__all:hover svg { transform: translateX(3px); }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.post {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 5px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--filet-soft), 0 14px 34px -28px rgba(20,17,11,0.5);
  text-decoration: none; color: inherit;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--filet), 0 30px 56px -34px rgba(140,107,34,0.42); }
.post__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(165deg, #15110A, #0A0A0A);
}
.post__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.post:hover .post__media img { transform: scale(1.045); }
.post__cat {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or);
  padding: 6px 11px; border-radius: 100px;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--filet);
}
.post__body { padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.post__date { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris-3); }
.post__t {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(19px, 2vw, 23px); line-height: 1.2; color: var(--blanc);
  letter-spacing: -0.005em;
}
.post__ex { font-size: 14px; line-height: 1.6; color: var(--gris); font-weight: 300; }
.post__more {
  margin-top: 4px; font-size: 12.5px; letter-spacing: 0.05em; color: var(--or);
  display: inline-flex; align-items: center; gap: 7px;
}
.post__more svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.post:hover .post__more svg { transform: translateX(3px); }

@media (max-width: 900px) { .blog__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog__grid { grid-template-columns: 1fr; } }
