/**
 * Page d'accueil — styles spécifiques
 *
 * Sections :
 *   1. Hero Gaussian Splat (iframe SuperSplat + overlay)
 *   2. Philosophie (2 colonnes : texte + grille 3 photos)
 *   3. Mosaïque (placeholder, vraie grille en Batch 3B)
 *   4. Testimonials (placeholder)
 *   5. CTA "On papote ?" avec halo ambre
 *   6. Instagram
 */

/* ============================================
   SECTION HEAD GÉNÉRIQUE
   ============================================ */
.section-head {
  margin-bottom: var(--space-xl);
  max-width: 800px;
}

.section-head--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 0 0 var(--space-md);
  line-height: 1;
}

.section-head-deck {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  max-width: 600px;
}

.section-head--centered .section-head-deck {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   1. HERO — GAUSSIAN SPLAT
   ============================================ */
.hero-splat {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  background: #000;
  overflow: hidden;
}

/* Container du média (iframe OU image fallback) */
.hero-splat-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-splat-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Image fallback (mobile + low-end devices) */
.hero-splat-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Effet Ken Burns : zoom doux infini pour donner de la vie */
  animation: ken-burns 25s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0% {
    transform: scale(1.05) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-1.5%, -1%);
  }
}

/* Vidéo de fond (mobile) — plein cadre, pas de Ken Burns (elle bouge déjà) */
.hero-splat-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay subtil pour rendre le contenu lisible par-dessus le splat */
.hero-splat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, .5) 100%
  );
  pointer-events: none; /* permet l'interaction avec l'iframe en dessous */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Augmentation du padding-bottom pour laisser de la place à l'indicateur scroll */
  padding: 0 var(--container-padding) 130px;
  z-index: 2;
}

.hero-splat-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  pointer-events: auto; /* mais on garde les boutons cliquables */
  animation: hero-fade-in 1s ease-out 1s both;
}

.hero-splat-content .kicker {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero-splat-content h1 {
  color: #fff;
  font-size: clamp(64px, 9vw, 120px);
  letter-spacing: 4px;
  margin: 0 0 var(--space-md);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

.hero-splat-content h1 .accent {
  color: var(--accent);
}

.hero-splat-deck {
  font-size: 18px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .85);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Indicateur scroll bas */
.hero-splat-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0;
  animation: scroll-appear 1s ease-out 2s forwards;
  cursor: pointer;
  transition: border-color .25s ease;
}

.hero-splat-scroll:hover {
  border-color: var(--accent);
}

.hero-splat-scroll span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-appear {
  to { opacity: 1; }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: .3; }
}

/* ============================================
   2. SECTION PHILOSOPHIE
   ============================================ */
.section--philosophy {
  background: var(--bg);
}

.philosophy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.philosophy-text {
  position: sticky;
  top: 120px; /* compense le header sticky */
}

.philosophy-text .lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.philosophy-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
}

.philosophy-text strong {
  color: var(--fg);
  font-weight: 500;
}

.philosophy-text em {
  font-style: italic;
  color: var(--accent);
}

.philosophy-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.philosophy-photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-2);
}

.philosophy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}

.philosophy-photo:hover img {
  transform: scale(1.04);
}

.philosophy-photo--1 {
  aspect-ratio: 2/3;
  grid-row: 1 / 3; /* photo 1 prend 2 rangées */
}

.philosophy-photo--2 {
  aspect-ratio: 1/1;
}

.philosophy-photo--3 {
  aspect-ratio: 1/1;
}

.philosophy-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 1px dashed var(--line-2);
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================
   3. MOSAÏQUE (placeholder Batch 3A)
   ============================================ */
.section--mosaic {
  background: var(--bg-2);
}

.mosaic-placeholder,
.testimonials-placeholder,
.instagram-placeholder {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  border: 1px dashed var(--line-2);
  background: var(--bg);
  color: var(--fg-3);
  font-size: 14px;
}

/* ============================================
   4. TESTIMONIALS (placeholder)
   ============================================ */
.section--testimonials {
  background: var(--bg);
}

/* ============================================
   5. CTA "ON PAPOTE ?" — Halo ambre
   ============================================ */
.section--cta {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

/* Halo ambre derrière le bloc CTA */
.cta-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 165, 116, .15) 0%,
    rgba(212, 165, 116, .05) 30%,
    transparent 70%
  );
  pointer-events: none;
}

[data-theme="light"] .cta-halo {
  background: radial-gradient(
    ellipse at center,
    rgba(168, 112, 47, .12) 0%,
    rgba(168, 112, 47, .04) 30%,
    transparent 70%
  );
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.cta-inner h2 {
  font-size: clamp(64px, 10vw, 128px);
  margin: 0 0 var(--space-md);
}

.cta-deck {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   6. INSTAGRAM
   ============================================ */
.section--instagram {
  background: var(--bg-2);
  padding: var(--space-2xl) 0;
}

.instagram-handle {
  color: var(--accent);
  transition: color .25s ease;
}
.instagram-handle:hover {
  color: var(--accent-hover);
}

.instagram-placeholder {
  margin-top: var(--space-lg);
}

.instagram-placeholder .link-arrow {
  margin-top: var(--space-md);
  display: inline-flex;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .philosophy-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .philosophy-text {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-splat {
    height: 85vh;
    min-height: 500px;
  }

  .hero-splat-overlay {
    /* Sur mobile : encore plus d'espace en bas pour ne pas que le scroll indicator
       chevauche la tagline */
    padding-bottom: 110px;
  }

  .hero-splat-content h1 {
    font-size: 56px;
    letter-spacing: 2px;
  }

  .hero-splat-deck {
    font-size: 14px;
  }

  /* Scroll indicator plus compact + plus bas sur mobile */
  .hero-splat-scroll {
    bottom: 20px;
    width: 24px;
    height: 38px;
  }

  .philosophy-photos {
    gap: var(--space-sm);
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
