/* =========================================================
 * Soléa — Cinema Cuts (audit DP)
 *
 * 3 transitions cinéma référencées dans l'audit DP :
 *   1. MATCH CUT — Lawrence d'Arabie allumette → soleil
 *      Le toit de la maison hero se transforme en barre de frise
 *   2. SMASH CUT — Whiplash final
 *      Module comparatif : 2 cards "bad" en 200ms / silence 800ms / Soléa 600ms thump
 *   3. IRIS CIRCLE — Méliès
 *      Hero contact/estimer s'ouvre en cercle qui grandit depuis le S central
 *
 * Implémentation : CSS keyframes + JS triggers + IntersectionObserver.
 * ========================================================= */

/* =========================================================
 *  1. MATCH CUT — Hero home → Frise narrative
 *  Quand l'utilisateur scrolle de la home vers la section frise narrative,
 *  un SVG mask interpole le contour du TOIT de la maison hero vers le
 *  RECTANGLE de la frise. Fait via une transition SVG path morph.
 *
 *  Activé par .match-cut-roof appliqué à un overlay temporaire au scroll.
 * ========================================================= */
.match-cut-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  transition: opacity 0.4s ease;
}
.match-cut-overlay.is-active {
  opacity: 1;
}
.match-cut-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}
.match-cut-overlay .mc-shape {
  fill: var(--fx-ink, #0d0d10);
  transition: d 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================================================
 *  2. SMASH CUT — Module comparatif
 *  Au reveal de .fx-single-entity : les 2 cards "bad" apparaissent
 *  vite ensemble (200ms), silence 800ms, puis la card Soléa déboule
 *  en 600ms avec un thump (translateY 30px → 0 + scale 0.95 → 1).
 *
 *  Override le data-fx-stagger normal pour ces 3 cards.
 * ========================================================= */
.fx-single-entity .fx-compare-card-bad {
  /* Apparition rapide ensemble */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s linear, transform 0.2s var(--ease-pose-ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.fx-single-entity .fx-compare-card-good {
  /* Apparition décalée après silence */
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition:
    opacity 0.6s var(--ease-accent-ease, cubic-bezier(0.34, 1.56, 0.64, 1)) 1.0s,
    transform 0.6s var(--ease-accent-ease, cubic-bezier(0.34, 1.56, 0.64, 1)) 1.0s;
}
.fx-single-entity.is-cut-revealed .fx-compare-card-bad {
  opacity: 1;
  transform: none;
}
.fx-single-entity.is-cut-revealed .fx-compare-card-bad:nth-child(1) { transition-delay: 0s; }
.fx-single-entity.is-cut-revealed .fx-compare-card-bad:nth-child(2) { transition-delay: 0.1s; }
.fx-single-entity.is-cut-revealed .fx-compare-card-good {
  opacity: 1;
  transform: none;
}

/* "Thump" visuel : flash or radial subtle sur la card Soléa au moment de l'arrivée */
.fx-single-entity .fx-compare-card-good::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(246, 183, 44, 0.4) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.fx-single-entity.is-cut-revealed .fx-compare-card-good::after {
  animation: smashThump 1s cubic-bezier(0.65, 0, 0.35, 1) 1.6s forwards;
}
@keyframes smashThump {
  0%   { opacity: 0; transform: scale(0.8); }
  20%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* =========================================================
 *  3. IRIS CIRCLE — Méliès opening
 *  Au load de page-contact et page-estimer-mon-projet, l'image hero
 *  s'ouvre en cercle qui grandit depuis le centre.
 *  clip-path: circle(0%) → circle(150%) sur 1.6s.
 * ========================================================= */
body.page-contact .hero-luxe-media,
body.page-estimer .hero-luxe-media {
  clip-path: circle(0% at 50% 50%);
  animation: irisOpen 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
@keyframes irisOpen {
  0%   { clip-path: circle(0% at 50% 50%); }
  100% { clip-path: circle(150% at 50% 50%); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-contact .hero-luxe-media,
  body.page-estimer .hero-luxe-media {
    clip-path: none !important;
    animation: none !important;
  }
  .fx-single-entity .fx-compare-card-bad,
  .fx-single-entity .fx-compare-card-good {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
 *  DAWN-TO-DUSK TERRITOIRES (audit DP)
 *  7 territoires héritent d'une température de couleur différente,
 *  comme si le soleil tournait sur la Gironde au long de la page.
 *
 *  Médoc       → bleu froid 5600K   (matin)
 *  Bassin      → neutre 5000K       (mi-matinée)
 *  Pessac-Léo  → warm 4200K         (midi-doré)
 *  Libournais  → sépia 3800K        (fin journée)
 *  Rive droite → ambre 3500K        (golden hour)
 *  Entre-deux-Mers → ivoire 4800K   (lumière vigne)
 *  1re couronne → blanc neutre      (lumière urbaine)
 * ========================================================= */
.solea-compass-svg .card-N .card-label,
.home-territory[data-territory="medoc"] {
  --temp-tint: rgba(70, 100, 150, 0.10);
  --temp-hue:  205deg;
}
.solea-compass-svg .card-O .card-label,
.home-territory[data-territory="bassin-arcachon"] {
  --temp-tint: rgba(120, 150, 180, 0.08);
  --temp-hue:  200deg;
}
.solea-compass-svg .card-S .card-label,
.home-territory[data-territory="sud-leognan"] {
  --temp-tint: rgba(220, 180, 100, 0.12);
  --temp-hue:  40deg;
}
.solea-compass-svg .card-E .card-label,
.home-territory[data-territory="libournais"] {
  --temp-tint: rgba(180, 130, 80, 0.14);
  --temp-hue:  25deg;
}
.solea-compass-svg .card-NE .card-label,
.home-territory[data-territory="rive-droite"] {
  --temp-tint: rgba(200, 150, 90, 0.13);
  --temp-hue:  30deg;
}
.solea-compass-svg .card-SE .card-label,
.home-territory[data-territory="entre-deux-mers"] {
  --temp-tint: rgba(210, 200, 170, 0.08);
  --temp-hue:  45deg;
}
.solea-compass-svg .card-NO .card-label,
.home-territory[data-territory="premiere-couronne"] {
  --temp-tint: rgba(230, 230, 220, 0.05);
  --temp-hue:  0deg;
}

/* Application de la teinte sur les blocs territoires de la home */
.home-territory {
  position: relative;
  isolation: isolate;
}
.home-territory::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--temp-tint, transparent);
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
  transition: background 0.6s ease;
}

/* =========================================================
 *  3 INSTALLATIONS SCÉNOGRAPHIQUES (audit scénographe)
 *  Bonus : 3 sections "art installation" qui transforment
 *  le site en parcours scénographié.
 *
 *  Activables séparément, opt-in via classes.
 * ========================================================= */

/* INSTALLATION 1 — CHAMBRE D'ÉCOUTE (v2 refonte plein viewport)
   3 cercles 220-280px en composition triangulaire, ondes concentriques au play.
   Refonte audit Creative Director : vignette 80px → installation signature plein viewport. */
.solea-listen-room {
  background: var(--fx-ink, #0d0d10);
  color: var(--fx-cream, #fbf8f2);
  padding: clamp(120px, 18vh, 200px) 0;
  text-align: center;
  position: relative;
  isolation: isolate;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solea-listen-room::before {
  /* Audit Pentagram : rgba(166, 60, 50, 0.05) = rouge hors charte. Remplacé par variation chaude or. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(246, 183, 44, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 30%, rgba(246, 183, 44, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.solea-listen-room::after {
  /* Grille architecturale subtile en fond, comme l'intro */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 183, 44, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 183, 44, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.solea-listen-room .container {
  position: relative;
  z-index: 1;
}
.listen-room-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fx-gold, #f6b72c);
  margin: 0 0 28px;
}
.listen-room-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.08;
  margin: 0 auto clamp(80px, 12vh, 140px);
  letter-spacing: -0.012em;
  max-width: 880px;
}

/* Composition triangulaire (au lieu de flex row) */
.listen-room-circles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(40px, 8vw, 120px);
  max-width: 980px;
  margin: 0 auto clamp(80px, 12vh, 120px);
  position: relative;
}
/* Le 2e cercle (la main) est en bas du triangle, légèrement descendu */
.listen-room-circles > .listen-circle:nth-child(2) {
  transform: translateY(clamp(24px, 4vh, 60px));
}

.listen-circle {
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  border-radius: 50%;
  border: 1px solid rgba(246, 183, 44, 0.32);
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Point central : un point or qui pulse subtilement, suggère l'écoute */
.listen-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-gold, #f6b72c);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px rgba(246, 183, 44, 0.6);
  z-index: 1;
}

/* Anneaux concentriques : 2 anneaux dormants */
.listen-circle::after {
  content: "";
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1px solid rgba(246, 183, 44, 0);
  transition: border-color 0.6s, transform 0.6s;
  pointer-events: none;
}
.listen-circle:hover {
  border-color: var(--fx-gold, #f6b72c);
  box-shadow:
    0 0 0 1px rgba(246, 183, 44, 0.18),
    0 0 60px rgba(246, 183, 44, 0.32);
}
.listen-circle:hover::after {
  border-color: rgba(246, 183, 44, 0.35);
}

/* Animation playing : ondes concentriques sortant du cercle */
.listen-circle.is-playing {
  border-color: var(--fx-gold, #f6b72c);
  box-shadow:
    0 0 0 1px rgba(246, 183, 44, 0.28),
    0 0 80px rgba(246, 183, 44, 0.5);
}
.listen-circle.is-playing::before {
  animation: listenCorePulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes listenCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.8); opacity: 0.65; }
}

/* 3 ondes concentriques émanent quand on joue (ajoutées en sous-éléments via ::after multi-effet) */
.listen-circle .listen-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 183, 44, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.listen-circle.is-playing .listen-wave {
  animation: listenWaveOut 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.listen-circle.is-playing .listen-wave:nth-child(2) { animation-delay: 0.7s; }
.listen-circle.is-playing .listen-wave:nth-child(3) { animation-delay: 1.4s; }
@keyframes listenWaveOut {
  0%   { opacity: 0.6; transform: scale(1); border-width: 1.5px; }
  100% { opacity: 0; transform: scale(2.6); border-width: 0.4px; }
}

.listen-circle-label {
  position: absolute;
  bottom: clamp(-44px, -3vh, -52px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(251, 248, 242, 0.85);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.listen-circle-desc {
  position: absolute;
  bottom: clamp(-70px, -5vh, -82px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.42);
  white-space: nowrap;
}
.listen-room-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  color: rgba(251, 248, 242, 0.62);
  max-width: 640px;
  margin: clamp(72px, 10vh, 100px) auto 0;
}

/* Mobile : 3 cercles verticaux (column), pas triangle */
@media (max-width: 640px) {
  .listen-room-circles {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  .listen-room-circles > .listen-circle:nth-child(2) {
    transform: none;
  }
  .listen-circle {
    width: 180px;
    height: 180px;
  }
}

/* INSTALLATION 2 — MUR DES ÉCHELLES
   Section horizontale scrollable lateralement, 6 frames 100vw.
   De la vue satellite au geste de la main. */
.solea-scale-wall {
  position: relative;
  overflow: hidden;
  background: var(--fx-cream, #fbf8f2);
}
.scale-wall-header {
  padding: clamp(64px, 9vh, 120px) clamp(24px, 4vw, 48px) clamp(32px, 5vh, 64px);
  text-align: center;
}
.scale-wall-track {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scale-wall-track::-webkit-scrollbar { display: none; }
.scale-wall-frame {
  flex: 0 0 100vw;
  scroll-snap-align: center;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px;
}
.scale-wall-frame img,
.scale-wall-frame .scale-wall-svg {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  object-fit: contain;
}
.scale-wall-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 13, 16, 0.85);
  color: var(--fx-cream, #fbf8f2);
  padding: 16px 28px;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.scale-wall-progress {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 30vw, 320px);
  height: 1px;
  background: rgba(13, 13, 16, 0.12);
  overflow: hidden;
}
.scale-wall-progress::after {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--fx-gold, #f6b72c);
  transition: right 0.3s linear;
}
.scale-wall-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--fx-gold, #f6b72c);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.18s linear;
}

/* Tooltip stones-calendar */
.solea-stones-tip {
  position: fixed;
  z-index: 9999;
  background: var(--fx-ink, #0d0d10);
  color: var(--fx-cream, #fbf8f2);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(8px);
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 12px 32px -8px rgba(13, 13, 16, 0.4);
  white-space: nowrap;
  max-width: 280px;
}
.solea-stones-tip.is-on {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(0);
}
.solea-stones-tip .tip-eyebrow {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fx-gold, #f6b72c);
  margin-bottom: 4px;
}
.solea-stones-tip .tip-note {
  display: block;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: rgba(251, 248, 242, 0.92);
}

/* INSTALLATION 3 — CALENDRIER DES PIERRES
   Grille 12×4 (12 mois × 4 territoires). Couleur du sol au hover. */
.solea-stones-calendar {
  background: var(--calcaire, #e9dfc8);
  padding: clamp(64px, 9vh, 120px) clamp(24px, 4vw, 48px);
}
.stones-grid {
  display: grid;
  grid-template-columns: auto repeat(12, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 56px auto 0;
  background: rgba(13, 13, 16, 0.06);
  padding: 2px;
}
.stones-row-label {
  background: var(--fx-cream, #fbf8f2);
  padding: 12px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--fx-ink, #0d0d10);
  display: flex;
  align-items: center;
}
.stones-col-label {
  background: var(--fx-cream, #fbf8f2);
  padding: 8px 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13, 13, 16, 0.6);
  text-align: center;
}
.stone-cell {
  background: var(--stone-color, #d4c8a8);
  aspect-ratio: 1;
  transition: transform 0.4s var(--ease-pose-ease, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.4s;
  cursor: pointer;
}
.stone-cell:hover {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 16px 32px -8px rgba(13, 13, 16, 0.3);
}

@media (max-width: 720px) {
  .stones-grid {
    grid-template-columns: 1fr;
  }
  .stones-row-label,
  .stones-col-label { display: none; }
  .stone-cell { aspect-ratio: 3/1; }
}

@media (prefers-reduced-motion: reduce) {
  .listen-circle, .listen-circle.is-playing,
  .stone-cell, .scale-wall-progress::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
 *  INSTALLATION 4 — LA LETTRE (page contact)
 *
 *  Cérémonie d'engagement plein viewport entre hero et formulaire.
 *  Papier crème texturé, cachet de cire rouge avec monogramme S,
 *  copy Cormorant italique. Animation : lift + fade au scroll-in,
 *  cachet qui se "pose" avec léger délai.
 * ========================================================= */
.solea-letter {
  background: var(--fx-ink, #0d0d10);
  color: var(--fx-cream, #fbf8f2);
  padding: clamp(80px, 14vh, 160px) clamp(20px, 4vw, 48px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.solea-letter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(246, 183, 44, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.letter-stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.letter-halo {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(255, 215, 150, 0.08), transparent 65%);
  filter: blur(60px);
  z-index: -1;
  animation: letterHalo 14s ease-in-out infinite;
}
@keyframes letterHalo {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50%      { transform: scale(1.08) rotate(8deg); opacity: 1; }
}

.letter-paper {
  position: relative;
  background:
    linear-gradient(180deg, #faf4e6 0%, #f3ead4 100%);
  color: #2a261f;
  padding: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 80px);
  max-width: 640px;
  width: 100%;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 48px -16px rgba(0, 0, 0, 0.65),
    0 60px 120px -32px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.6deg);
  opacity: 0;
  transform-origin: center top;
  animation: letterLift 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* Texture papier subtile via gradient + noise */
.letter-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 22%, rgba(120, 95, 60, 0.05) 1px, transparent 2px),
    radial-gradient(circle at 85% 78%, rgba(120, 95, 60, 0.04) 1px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(120, 95, 60, 0.03) 1px, transparent 2px);
  background-size: 80px 80px, 96px 96px, 60px 60px;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.7;
}
/* Ombre intérieure très douce — relief feuille */
.letter-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.4),
    inset -1px -1px 0 rgba(0, 0, 0, 0.04);
  pointer-events: none;
  border-radius: inherit;
}

@keyframes letterLift {
  from { opacity: 0; transform: translateY(40px) rotate(-2deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-0.6deg); }
}

/* Cachet — pose sans rebond (audit Hermès : "Le sceau Hermès ne rebondit pas. Il est posé.") */
.letter-seal {
  position: absolute;
  top: -28px;
  right: clamp(24px, 6vw, 56px);
  width: clamp(72px, 9vw, 100px);
  height: clamp(72px, 9vw, 100px);
  opacity: 0;
  transform: scale(1.05) rotate(-8deg) translateY(-6px);
  animation: sealPose 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.42));
  z-index: 2;
}
.letter-seal svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes sealPose {
  from { opacity: 0; transform: scale(1.05) rotate(-12deg) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) rotate(-8deg) translateY(0); }
}

/* En-tête de la lettre */
.letter-head {
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(80, 60, 30, 0.18);
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.letter-from {
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 18px);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  color: #3a2f20;
}
.letter-address {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(58, 47, 32, 0.6);
  margin: 0;
}
.letter-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(13px, 1.3vw, 16px);
  color: rgba(58, 47, 32, 0.7);
  margin: 6px 0 22px;
  text-align: right;
}

/* Corps de la lettre */
.letter-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.003em;
  color: #2a261f;
}
.letter-salutation {
  font-size: clamp(16px, 1.8vw, 20px);
  margin: 0 0 24px;
  color: rgba(42, 38, 31, 0.78);
}
.letter-line {
  margin: 0 0 10px;
}
.letter-line-spacing {
  margin-top: 24px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
}

/* Pied de page */
.letter-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(80, 60, 30, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.letter-signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: #3a2f20;
  margin: 0;
}

/* CTA "Écrire à Soléa" — ink button qui contraste avec le papier */
.letter-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--fx-ink, #0d0d10);
  color: var(--fx-cream, #fbf8f2);
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.letter-cta:hover {
  background: var(--fx-gold, #f6b72c);
  color: var(--fx-ink, #0d0d10);
  transform: translateY(-2px);
}
.letter-cta-arrow {
  /* SVG inline (refonte audit Hermès : Unicode ↓ remplacé par tracé or fin cohérent) */
  display: inline-block;
  width: 14px;
  height: 14px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  color: currentColor;
}
.letter-cta:hover .letter-cta-arrow {
  transform: translateY(4px);
}

/* Mobile */
@media (max-width: 640px) {
  .letter-paper {
    padding: 40px 28px;
    transform: rotate(-0.3deg);
  }
  .letter-seal {
    width: 56px;
    height: 56px;
    top: -18px;
    right: 16px;
  }
  .letter-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .letter-paper,
  .letter-seal,
  .letter-halo {
    animation: none !important;
    transform: none;
    opacity: 1;
  }
}

/* =========================================================
 *  BANDE RE2020 — pivot manifeste sur home
 *
 *  Pleine viewport ink, phrase Cormorant italique manifeste (4 lignes max),
 *  eyebrow Montserrat or texte, CTA vers /guides/re2020-carbone-construction-gironde/.
 *  Placé entre Défilé des Époques et Chambre Lignée (audit SpaceX).
 * ========================================================= */
.solea-re2020-band {
  background: var(--fx-ink, #0d0d10);
  color: var(--fx-cream, #fbf8f2);
  padding: clamp(96px, 16vh, 180px) clamp(20px, 4vw, 48px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.solea-re2020-band::before {
  /* Halo or central très subtil */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(246, 183, 44, 0.06), transparent 70%);
  pointer-events: none;
}
.solea-re2020-band::after {
  /* Trait or fin sur les deux bords latéraux — comme un cartouche officiel */
  content: "";
  position: absolute;
  top: clamp(48px, 8vh, 80px);
  bottom: clamp(48px, 8vh, 80px);
  left: clamp(28px, 5vw, 56px);
  right: clamp(28px, 5vw, 56px);
  border-left: 1px solid rgba(246, 183, 44, 0.18);
  border-right: 1px solid rgba(246, 183, 44, 0.18);
  pointer-events: none;
}
.re2020-band-shell {
  max-width: 920px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.re2020-band-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--fx-gold, #f6b72c);
  margin: 0 0 clamp(28px, 4vh, 44px);
}
.re2020-band-phrase {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--fx-cream, #fbf8f2);
  margin: 0 0 clamp(40px, 6vh, 60px);
}
.re2020-band-phrase em {
  font-style: italic;
  color: var(--fx-gold, #f6b72c);
  font-weight: 500;
}
.re2020-band-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.re2020-band-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: transparent;
  border: 1px solid rgba(246, 183, 44, 0.55);
  color: var(--fx-cream, #fbf8f2);
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.re2020-band-cta:hover {
  background: var(--fx-gold, #f6b72c);
  border-color: var(--fx-gold, #f6b72c);
  color: var(--fx-ink, #0d0d10);
  transform: translateY(-2px);
}
.re2020-band-cta svg {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.re2020-band-cta:hover svg {
  transform: translateX(4px);
}
.re2020-band-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(13px, 1.3vw, 15px);
  color: rgba(251, 248, 242, 0.55);
  max-width: 580px;
  margin: 12px auto 0;
}
.re2020-band-note strong {
  font-style: normal;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fx-gold, #f6b72c);
}

@media (max-width: 640px) {
  .re2020-band-phrase br { display: none; }
  .re2020-band-phrase { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .re2020-band-cta,
  .re2020-band-cta svg { transition: none !important; }
}

body.palette-strict .solea-re2020-band { background: #000; }

/* Palette stricte */
body.palette-strict .solea-letter { background: #000; }
body.palette-strict .letter-paper { background: #fff; }
