/* ==========================================================================
   PATICHE • Façonné à Troyes — MOTEUR D'EXPÉRIENCE HAUTE FACTURE & SCROLL PARALLAXE
   Direction Artistique : Cinematic Hero, Pinned Scrollytelling, Profondeur & Matières
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. HALO LUMINEUX DORÉ AMBIANT (SANS POINT CURSEUR)
   -------------------------------------------------------------------------- */
.torch-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

body.torch-active .torch-glow {
  opacity: 1;
}

@media (max-width: 1024px) {
  .torch-glow { display: none !important; }
}

/* --------------------------------------------------------------------------
   1. HERO CINEMATIC SCROLL ZOOM & CURTAIN
   -------------------------------------------------------------------------- */
.hero-cinematic-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0D1611;
  color: #FFFFFF;
  padding: 80px 0 100px 0;
}

.hero-cinematic-bg-wrap {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-cinematic-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: contrast(1.1) brightness(0.9);
  transform: scale(1);
  will-change: transform;
}

.hero-cinematic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(18, 33, 24, 0.3) 0%, #0D1611 90%),
              linear-gradient(180deg, rgba(13, 22, 17, 0.4) 0%, rgba(13, 22, 17, 0.95) 100%);
  z-index: 2;
}

.hero-cinematic-container {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  will-change: transform, opacity;
}

.hero-craft-emblem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 6px 20px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-monumental-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  color: #FFFFFF;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5D77F 40%, #D4AF37 80%, #AA8222 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.hero-manifesto-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #CBD5E1;
  max-width: 640px;
  margin: 0 auto 36px auto;
}

.hero-cta-group-cinematic {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.hero-scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-gold-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse-wheel {
  width: 3px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   2. PINNED SCROLLYTELLING DES 4 UNIVERS (STICKY SCREEN)
   -------------------------------------------------------------------------- */
.pinned-scrolly-section {
  padding: 100px 0 120px 0;
  background: var(--bg-light-subtle);
  position: relative;
}

.scrolly-header-intro {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 60px auto;
}

.scrolly-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: start;
  position: relative;
}

/* COLONNE GAUCHE : NARRATION DÉFILANTE */
.scrolly-chapters-col {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
  padding-left: 28px;
}

/* TIMELINE VERTICALE DORÉE */
.scrolly-timeline-track {
  position: absolute;
  top: 10px;
  bottom: 40px;
  left: 0;
  width: 2px;
  background: rgba(30, 58, 43, 0.15);
  border-radius: 2px;
}

.scrolly-timeline-fill {
  width: 100%;
  height: 25%;
  background: linear-gradient(180deg, #D4AF37, #1E3A2B);
  border-radius: 2px;
  transition: height 0.4s ease-out;
}

.scrolly-chapter-block {
  padding: 36px 30px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  opacity: 0.55;
  transform: translateX(-8px);
}

.scrolly-chapter-block.active {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--color-gold);
  box-shadow: 0 16px 36px -8px rgba(30, 58, 43, 0.12), 0 0 25px rgba(212, 175, 55, 0.15);
}

.scrolly-chapter-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.scrolly-chapter-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--text-dark-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.scrolly-chapter-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dark-secondary);
  margin-bottom: 20px;
}

.scrolly-specs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.scrolly-spec-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-light-subtle);
  border: 1px solid var(--border-light);
  color: var(--color-forest);
}

/* COLONNE DROITE : VISUEL ÉPINGLÉ (STICKY) */
.scrolly-sticky-col {
  position: sticky;
  top: 100px;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25), 0 0 35px rgba(212, 175, 55, 0.2);
  background: #122118;
}

.sticky-image-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.sticky-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-slide-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.sticky-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(18, 33, 24, 0.88);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
  z-index: 5;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.sticky-badge-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold-light);
  font-weight: 700;
}

.sticky-badge-sub {
  font-size: 0.75rem;
  color: #CBD5E1;
}

/* --------------------------------------------------------------------------
   3. LE PARCOURS DE FABRICATION (THE CRAFT JOURNEY)
   -------------------------------------------------------------------------- */
.craft-journey-section {
  padding: 90px 0;
  background: #122118;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.journey-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.journey-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.journey-step-card:hover {
  background: rgba(30, 58, 43, 0.6);
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(212,175,55,0.2);
}

.journey-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 12px;
  opacity: 0.9;
}

.journey-step-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.journey-step-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   4. MATIÉROTHÈQUE 3D & SCANNER TACTILE
   -------------------------------------------------------------------------- */
.matierotheque-section {
  padding: 90px 0;
  background: #0B130E;
  color: #FFFFFF;
  position: relative;
}

.scanner-box {
  background: #152219;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}

.scanner-interactive-stage {
  position: relative;
  min-height: 380px;
  user-select: none;
  overflow: hidden;
  background: #000000;
}

.scanner-layer-before,
.scanner-layer-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.scanner-layer-before img,
.scanner-layer-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-layer-after {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s linear;
}

.scanner-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  cursor: ew-resize;
  z-index: 10;
}

.scanner-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-forest);
  border: 2px solid var(--color-gold);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 15px rgba(212,175,55,0.4);
}

.scanner-label-pill {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.label-left {
  left: 16px;
  background: rgba(0,0,0,0.7);
  color: #CBD5E1;
  border: 1px solid rgba(255,255,255,0.2);
}

.label-right {
  right: 16px;
  background: rgba(30, 58, 43, 0.85);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
}

.scanner-info-pane {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mat-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.mat-tab-btn {
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  color: var(--text-light-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mat-tab-btn.active, .mat-tab-btn:hover {
  background: var(--color-forest-light);
  border-color: var(--color-gold);
  color: #FFFFFF;
}

.mat-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
  padding: 16px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
}

.mat-spec-label {
  font-size: 0.7rem;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mat-spec-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   5. EXPÉRIENCE INTERACTIVE "UNBOXING L'ÉCRIN"
   -------------------------------------------------------------------------- */
.unboxing-section {
  padding: 85px 0;
  background: #FAF7F2;
  border-top: 1px solid var(--border-kraft);
  border-bottom: 1px solid var(--border-kraft);
}

.unboxing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.unboxing-card-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(154, 103, 53, 0.25);
  border: 2px solid var(--border-kraft);
  background: #FFFFFF;
  cursor: pointer;
}

.unboxing-card-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.unboxing-card-visual:hover img {
  transform: scale(1.03);
}

.wax-seal-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #D4AF37 0%, #AA8222 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 2px 6px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #122118;
  font-weight: 800;
}

.unboxing-steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.unboxing-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 2px;
}

.step-text p {
  font-size: 0.8rem;
  color: var(--text-dark-secondary);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-monumental-title { font-size: 2.8rem; }
  .scrolly-grid-container { grid-template-columns: 1fr; }
  .scrolly-sticky-col { position: relative; top: 0; height: 380px; margin-bottom: 30px; order: -1; }
  .journey-grid-4 { grid-template-columns: 1fr 1fr; }
  .scanner-box { grid-template-columns: 1fr; }
  .unboxing-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .hero-monumental-title { font-size: 2.1rem; }
  .hero-manifesto-sub { font-size: 0.98rem; }
  .journey-grid-4 { grid-template-columns: 1fr; }
  .scrolly-sticky-col { height: 300px; }
  .scrolly-chapter-title { font-size: 1.45rem; }
}
