/* Accueil V2 — « Cinéma Saint-Germain ».
   Direction bold et animée de la page d'accueil, commutable avec la V1.
   Tout est scopé sous [data-accueil="2"] ; la V1 n'est jamais touchée.
   Animations : une entrée composée sur le hero, des révélations pilotées
   par le défilement (animation-timeline: view()) avec repli statique, et
   prefers-reduced-motion respecté partout. */

html[data-accueil-pref='2'] [data-accueil='1'] {
  display: none;
}

/* ------------------------------------------------------------------ hero */

/* Le bloc de titre se pose dans le tiers bas, pas sur l'arête inférieure :
   collé au bord, il paraissait tomber hors de l'image. */
.v2-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1.15fr auto 0.85fr;
  overflow: hidden;
  background: #14130f;
  color: #f4f1ea;
}

.v2-hero__inner {
  grid-row: 2;
}

.v2-hero__media {
  position: absolute;
  inset: 0;
}

.v2-hero__media video,
.v2-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.v2-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 12, 9, 0.88) 0%, rgba(13, 12, 9, 0.35) 42%, rgba(13, 12, 9, 0.18) 100%),
    linear-gradient(to right, rgba(13, 12, 9, 0.45), transparent 60%);
}

.v2-hero__inner {
  position: relative;
  width: 100%;
  padding-block: clamp(24px, 4vh, 48px);
}

.v2-hero__rule {
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin-bottom: clamp(16px, 3vh, 28px);
}

/* Phrase longue en titre : corps contenu, mesure bornée. */
.v2-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 0 0 clamp(12px, 2.5vh, 22px);
  text-wrap: balance;
}

.v2-hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  max-width: 44ch;
  margin: 0 0 clamp(22px, 4vh, 36px);
  color: rgba(244, 241, 234, 0.92);
}

.v2-hero .btn-row {
  margin: 0;
}

.v2-btn-ghost {
  border: 1px solid rgba(244, 241, 234, 0.55);
  color: #f4f1ea;
}

.v2-btn-ghost:hover {
  border-color: #f4f1ea;
  background: rgba(244, 241, 234, 0.08);
}

.v2-hero__cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 1px;
  height: 44px;
  background: rgba(244, 241, 234, 0.55);
  transform-origin: top;
}

/* Entrée du hero : un seul moment composé, joué au chargement. */
@media (prefers-reduced-motion: no-preference) {
  [data-accueil='2']:not([hidden]) .v2-hero__rule,
  [data-accueil='2']:not([hidden]) .v2-hero h1,
  [data-accueil='2']:not([hidden]) .v2-hero__sub,
  [data-accueil='2']:not([hidden]) .v2-hero .btn-row {
    animation: v2-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  [data-accueil='2']:not([hidden]) .v2-hero h1 { animation-delay: 90ms; }
  [data-accueil='2']:not([hidden]) .v2-hero__sub { animation-delay: 190ms; }
  [data-accueil='2']:not([hidden]) .v2-hero .btn-row { animation-delay: 290ms; }

  [data-accueil='2']:not([hidden]) .v2-hero__media {
    animation: v2-settle 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  [data-accueil='2']:not([hidden]) .v2-hero__cue {
    animation: v2-cue 2200ms cubic-bezier(0.45, 0, 0.55, 1) 1200ms infinite;
  }
}

@keyframes v2-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes v2-settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

@keyframes v2-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------------------------------------------------ histoire / valeurs */

/* Même fond que la V1 (bande + plan Turgot) ; la hiérarchie change :
   un titre serif dominant, deux colonnes étiquetées dessous. */
.v2-histoire__inner {
  position: relative;
  padding-block: clamp(64px, 9vh, 120px);
}

.v2-histoire h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 clamp(28px, 4vh, 44px);
  color: var(--ink);
  max-width: 24ch;
}

.v2-histoire__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 72px);
}

.v2-histoire h3 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-texte);
  font-weight: 600;
  margin: 0 0 10px;
}

.v2-histoire p {
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 0 18px;
}

/* ------------------------------------------------------ domaines en rangs */

.v2-domaines {
  padding-block: clamp(64px, 10vh, 120px);
  background: var(--paper);
}

.v2-domaines h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin: 0 0 clamp(28px, 5vh, 48px);
  color: var(--ink);
}

.v2-rows {
  border-top: 1px solid var(--line);
}

.v2-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vh, 28px) 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 200ms, padding-left 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-row__titre {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  transition: color 200ms;
}

.v2-row__note {
  font-size: 0.92rem;
  color: var(--ink-2);
  text-align: right;
  max-width: 34ch;
  flex: 0 1 auto;
}

.v2-row:hover,
.v2-row:focus-visible {
  background: var(--accent);
  padding-inline: clamp(10px, 2vw, 22px);
}

.v2-row:hover .v2-row__titre,
.v2-row:focus-visible .v2-row__titre {
  color: var(--accent-ink);
}

.v2-row:hover .v2-row__note,
.v2-row:focus-visible .v2-row__note {
  color: var(--accent-ink);
  opacity: 0.85;
}

/* ----------------------------------------------------- notaires en frise */

.v2-notaires {
  padding-block: clamp(64px, 10vh, 120px);
  background: var(--paper-2);
  overflow: hidden;
}

.v2-notaires__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.v2-notaires h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin: 0;
  color: var(--ink);
}

.v2-notaires__intro {
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.6;
  margin: -8px 0 clamp(24px, 4vh, 40px);
}

/* --------------------------------------------------------- bande finale */

.v2-final {
  background: #171614;
  color: #f0eeea;
  padding-block: clamp(64px, 10vh, 128px);
}

.v2-final__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.v2-final h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}

.v2-final p {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(240, 238, 234, 0.8);
  max-width: 46ch;
  margin: 0 0 clamp(22px, 4vh, 32px);
  line-height: 1.6;
}

.v2-final address {
  font-style: normal;
  margin-top: clamp(20px, 3vh, 28px);
  font-size: 0.95rem;
  color: rgba(240, 238, 234, 0.72);
  line-height: 1.7;
}

.v2-final address a {
  color: inherit;
}

/* La carte, fondue dans la bande : passée en camaïeu sombre, cadrée d'un
   filet clair, décalée d'un liseré rouge — élément de composition, pas
   widget posé là. */
.v2-final__carte {
  position: relative;
}

.v2-final__carte iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(240, 238, 234, 0.22);
  filter: grayscale(1) invert(0.92) contrast(0.86) brightness(0.92);
}

.v2-final__carte::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  pointer-events: none;
}

@media (max-width: 820px) {
  .v2-final__grille {
    grid-template-columns: 1fr;
  }

  .v2-final__carte {
    margin-right: 14px;
  }

  .v2-final__carte iframe {
    aspect-ratio: 16 / 10;
  }
}

/* --------------------------------------- révélations au défilement */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .v2-reveal {
      animation: v2-rise linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 55%;
    }
  }
}

@keyframes v2-glisse {
  from { transform: translateX(6%); }
  to { transform: translateX(-6%); }
}

@keyframes v2-derive {
  from { transform: translateY(-4%); }
  to { transform: translateY(4%); }
}

/* En V2, la bande finale sombre touche le pied de page : pas de couloir
   blanc entre les deux. */
body.accueil-v2-active .site-footer {
  margin-top: 0;
}

/* ----------------------------------------------------------- impression */

@media print {
  [data-accueil='2'] .v2-hero__media video {
    display: none;
  }
}
