/* ==========================================================================
   Sections de récit et de preuve
   Elles restent dans le noir du hero : avant / après juste après le protocole,
   puis les villas en étage épinglé et scrubé.
   Tokens portés par les sections, pas par :root.
   ========================================================================== */

.ba2,
.villa2 {
  --noir: #101010;
  --noir-creuse: #161616;
  --blanc: #fafafa;
  --blanc-mut: rgba(250, 250, 250, 0.72);
  --blanc-fnt: rgba(250, 250, 250, 0.45);
  --or: #c9a34a;
  --filet: rgba(250, 250, 250, 0.12);
  --gut: clamp(22px, 5vw, 76px);
  --ez: cubic-bezier(.4, 0, .2, 1);
}

/* ---- Intitulé de rubrique, commun aux deux ------------------------------ */

.recit-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--or);
}

.recit-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--or);
}

/* ==========================================================================
   Avant / après
   ========================================================================== */

.ba2 {
  position: relative;
  z-index: 2;
  background: var(--noir);
  color: var(--blanc);
  padding: clamp(72px, 11vh, 150px) var(--gut);
  text-align: center;
}

.ba2-inner {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.ba2 .recit-eyebrow { justify-content: center; }

.ba2-h2 {
  max-width: 18ch;
  margin: 26px auto 0;
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--blanc);
}

.ba2-h2 em { font-style: italic; color: var(--or); }

.ba2-lead {
  max-width: 54ch;
  margin: 22px auto 0;
  font-family: var(--font-b);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--blanc-mut);
}

/* Le curseur reprend le composant existant : mêmes identifiants, donc le
   script de glissement continue de fonctionner sans y toucher. */
.ba2 .ba-slider {
  max-width: none;
  margin-top: clamp(36px, 5vh, 64px);
  border: 1px solid var(--filet);
  background: var(--noir-creuse);
}

.ba2 .ba-label {
  font-family: var(--font-b);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  background: rgba(16, 16, 16, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ba2 .ba-handle { background: var(--or); }
.ba2 .ba-handle::before { background: var(--or); }
.ba2 .ba-handle::after { color: #101010; }

.ba2 .ba-caption {
  margin-top: 20px;
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanc-fnt);
}

/* ==========================================================================
   Villas — étage épinglé, scrubé par --p
   ========================================================================== */

.villa2 {
  position: relative;
  z-index: 2;
  height: 300svh;              /* la course de scrub vaut 200svh */
  background: var(--noir);
}

.villa2-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--noir);
}

/* Le cadrage respire lentement pendant toute la traversée. */
.villa2-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(calc(1.06 + .09 * var(--p, 0)))
             translate3d(0, calc(var(--p, 0) * -2.5%), 0);
}

.villa2-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(16,16,16,0.92) 0%, rgba(16,16,16,0.72) 42%, rgba(16,16,16,0.25) 100%),
    linear-gradient(to top, rgba(16,16,16,0.85), rgba(16,16,16,0) 45%);
}

.villa2-txt {
  position: relative;
  z-index: 2;
  width: min(48ch, 88vw);
  margin-left: max(var(--gut), calc(50vw - 610px + var(--gut)));
  transform: translate3d(0, calc(var(--p, 0) * -40px), 0);
}

.villa2-h2 {
  margin-top: 24px;
  font-family: var(--font-h);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--blanc);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.villa2-h2 em { font-style: italic; color: var(--or); }

.villa2-lead {
  max-width: 44ch;
  margin-top: 20px;
  font-family: var(--font-b);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--blanc-mut);
  /* s'efface sur les vingt derniers pour cent, quand la liste a pris la main */
  opacity: calc(1 - max(0, (var(--p, 0) - .8)) * 4);
}

/* Les lignes s'allument une à une, au rythme du scroll. */
.steps {
  margin-top: 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--filet);
  padding-top: 26px;
}

.steps li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-b);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.32);
  transform: translate3d(-6px, 0, 0);
  transition: color .5s var(--ez), transform .5s var(--ez);
}

.steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 11px;
  background: rgba(250, 250, 250, 0.22);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color .5s var(--ez), transform .5s var(--ez);
}

.steps li.lit {
  color: var(--blanc);
  transform: none;
}

.steps li.lit::before {
  background: var(--or);
  transform: scale(1.12);
}

.villa2-lnk {
  position: relative;
  display: inline-block;
  margin-top: 34px;
  padding-bottom: 5px;
  font-family: var(--font-b);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  /* n'apparaît qu'une fois la liste allumée */
  opacity: clamp(0, calc((var(--p, 0) - .55) * 5), 1);
}

.villa2-lnk::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--or);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform .5s var(--ez);
}

.villa2-lnk:hover::after,
.villa2-lnk:focus-visible::after { transform: scaleX(1); }

/* Repère de progression, discret, à droite du pin. */
.villa2-jauge {
  position: absolute;
  z-index: 2;
  right: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 120px;
  background: var(--filet);
  overflow: hidden;
}

.villa2-jauge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--or);
  transform: scaleY(var(--p, 0));
  transform-origin: top center;
}

/* ==========================================================================
   Téléphone — l'étage n'est plus épinglé
   Le bloc de texte, quatre points compris, dépassait 100svh sur un écran de
   640 px : le lien se retrouvait coupé par l'overflow du pin. Et la barre
   d'adresse, qui réapparaît dès qu'on remonte, changeait la hauteur de la
   fenêtre en plein scrub : la course sautait et l'image clignotait.
   Sur téléphone la section redevient donc un bloc normal qui se lit d'une
   traite. Les quatre points s'allument à l'entrée dans l'écran, gérés par
   recit.js, pas par le scroll.
   ========================================================================== */

@media (max-width: 767px), (max-height: 560px) {
  .villa2 { height: auto; }

  .villa2-pin {
    position: static;
    height: auto;
    min-height: 82svh;
    display: block;
    padding-block: clamp(64px, 11vh, 104px);
  }

  .villa2-shot { transform: none; }

  .villa2-veil {
    background:
      linear-gradient(to top, rgba(16,16,16,0.94) 18%, rgba(16,16,16,0.38) 100%),
      rgba(16, 16, 16, 0.32);
  }

  .villa2-txt {
    width: auto;
    margin-inline: var(--gut);
    transform: none;
  }

  .villa2-lead { opacity: 1; }
  .villa2-lnk { opacity: 1; }
  .villa2-jauge { display: none; }
}

/* ==========================================================================
   Réduction des animations : sans scrub, --p reste figé. Tout ce qui part
   d'un état invisible doit être rouvert ici, sinon la section s'affiche vide.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .villa2 { height: auto; }
  .villa2-pin {
    position: static;
    height: auto;
    min-height: 70svh;
    padding-block: clamp(56px, 9vh, 110px);
  }
  .villa2-shot { transform: none; }
  .villa2-txt { transform: none; }
  .villa2-lead { opacity: 1; }
  .villa2-lnk { opacity: 1; }
  .steps li { transform: none; color: var(--blanc); }
  .steps li::before { background: var(--or); }
  .villa2-jauge { display: none; }
}

/* ==========================================================================
   Avis clients — remontés avant les tarifs, en surface sombre
   Le composant de carrousel est conservé tel quel : mêmes classes, mêmes
   identifiants, le script de défilement n'est pas touché. Seules les
   couleurs et la typographie changent.
   ========================================================================== */

.testis--noir {
  --noir: #101010;
  --blanc: #fafafa;
  --blanc-mut: rgba(250, 250, 250, 0.72);
  --blanc-fnt: rgba(250, 250, 250, 0.45);
  --or: #c9a34a;
  --filet: rgba(250, 250, 250, 0.12);
  --gut: clamp(22px, 5vw, 76px);

  position: relative;
  z-index: 2;
  background: var(--noir);
  padding-block: clamp(80px, 12vh, 160px);
}

.testis--noir .testis-header { margin-bottom: clamp(36px, 5vh, 60px); }

.testis--noir .testis-header h2 {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--blanc);
}

.testis--noir .testis-header h2 em { font-style: italic; color: var(--or); }

.testis--noir .ts-mark { color: var(--or); opacity: 0.35; }
.testis--noir .ts-stars { color: var(--or); }

.testis--noir .ts-txt {
  font-family: var(--font-b);
  font-size: clamp(1.02rem, 1.5vw, 1.26rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.85;
  color: var(--blanc);
  max-width: 62ch;
  margin-inline: auto;
}

.testis--noir .ts-name {
  font-family: var(--font-h);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--blanc);
}

.testis--noir .ts-role {
  display: block;
  margin-top: 6px;
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanc-fnt);
}

.testis--noir .ts-nav {
  border-color: var(--filet);
  color: var(--blanc-fnt);
}

.testis--noir .ts-nav:hover { border-color: var(--or); color: var(--or); }

.testis--noir .ts-dot { background: rgba(250, 250, 250, 0.22); }
.testis--noir .ts-dot.ts-dot-active { background: var(--or); }

/* Les deux chiffres de preuve, de part et d'autre de la citation. */
.testis--noir .testi-stat { color: var(--blanc); }
.testis--noir .testi-stat-n { color: var(--or); }
.testis--noir .testi-stat-n-sm { color: var(--or); opacity: 0.6; }
.testis--noir .testi-stat-stars { color: var(--or); }
.testis--noir .testi-stat-l,
.testis--noir .testi-stat-cta {
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanc-fnt);
}
.testis--noir .testi-stat-cta { color: var(--or); }
.testis--noir .g-google { color: var(--blanc-mut); }

.testis--noir .btn--ol {
  border-color: var(--filet);
  color: var(--blanc);
}

.testis--noir .btn--ol:hover { border-color: var(--or); color: var(--or); }

/* ==========================================================================
   La maison — identité et philosophie fusionnées
   Graphite et non noir : c'est le changement de surface qui sépare cette
   section des avis qui la précèdent, pas un filet.
   ========================================================================== */

.maison {
  --graphite: #171717;
  --blanc: #fafafa;
  --blanc-mut: rgba(250, 250, 250, 0.72);
  --blanc-fnt: rgba(250, 250, 250, 0.45);
  --or: #c9a34a;
  --filet: rgba(250, 250, 250, 0.12);
  --gut: clamp(22px, 5vw, 76px);
  --ez: cubic-bezier(.4, 0, .2, 1);

  position: relative;
  z-index: 2;
  background: var(--graphite);
  color: var(--blanc);
  padding: clamp(80px, 12vh, 160px) var(--gut);
}

.maison-inner {
  width: min(1220px, 100%);
  margin-inline: auto;
}

.maison-haut {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}

.maison-h2 {
  max-width: 15ch;
  margin-top: 26px;
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--blanc);
}

.maison-h2 em { font-style: italic; color: var(--or); }

.maison-p {
  max-width: 46ch;
  margin-top: 22px;
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--blanc-mut);
}

.maison-lnk {
  position: relative;
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 5px;
  font-family: var(--font-b);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
}

.maison-lnk::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--or);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform .5s var(--ez);
}

.maison-lnk:hover::after,
.maison-lnk:focus-visible::after { transform: scaleX(1); }

/* La citation du fondateur porte la section : c'est la seule voix humaine
   de la page, elle est traitée comme un titre, pas comme un encadré. */
.maison-cite {
  margin: 0;
  padding-left: clamp(22px, 3vw, 40px);
  border-left: 2px solid var(--or);
}

.maison-cite p {
  font-family: var(--font-h);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--blanc);
}

.maison-cite figcaption {
  margin-top: 20px;
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanc-fnt);
}

/* Trois piliers, sans numérotation : ce n'est pas une séquence. */
.maison-piliers {
  display: grid;
  gap: 1px;
  margin-top: clamp(48px, 7vh, 96px);
  background: var(--filet);
  border-block: 1px solid var(--filet);
}

.maison-pilier {
  background: var(--graphite);
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 34px);
}

.maison-pilier h3 {
  font-family: var(--font-h);
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--or);
}

.maison-pilier p {
  margin-top: 12px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--blanc-mut);
}

@media (min-width: 900px) {
  .maison-haut { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
  .maison-piliers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Placement explicite du carrousel sous 768 px. En placement automatique, la
   citation retombait dans la colonne de 40 px reservee a la fleche, et le
   texte s'affichait un mot par ligne. */
@media (max-width: 768px) {
  .testis--noir .testi-spot {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-areas:
      "note note note"
      "cite cite cite"
      "prev dots next"
      "tous tous tous";
  }
  .testis--noir .testi-stat--l { grid-area: note; }
  .testis--noir .ts-content   { grid-area: cite; padding-inline: 0; }
  .testis--noir .ts-prev      { grid-area: prev; }
  .testis--noir .ts-dots      { grid-area: dots; margin-top: 0; align-self: center; }
  .testis--noir .ts-next      { grid-area: next; }
  .testis--noir .testi-stat--r { grid-area: tous; }
}
