/* ==========================================================================
   SR Editer — Page d'accueil (index.html)
   Écran de chargement, hero typographique, scène produit, manifeste,
   studios (média collant), détails (bento), mur de surfaces, méthode,
   licences. Animations : js/pages/home.js.
   ========================================================================== */

.aww-home .site-bg-video {
  opacity: 0.85;
}
/* Voile général plus léger sur l'accueil : la vidéo reste lumineuse */
.aww-home .site-bg-overlay {
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.35) 0%, rgba(8, 7, 6, 0) 20%, rgba(8, 7, 6, 0) 75%, rgba(8, 7, 6, 0.6) 100%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}
/* Voile qui assombrit la vidéo une fois le hero passé (opacité pilotée par home.js) */
.home-bg-dim {
  position: absolute;
  inset: 0;
  background: var(--bg-color);
  opacity: 0;
}

/* Titres de niveau 3 de l'accueil : casse normale, plus lisibles */
.aww-home main h3 {
  text-transform: none;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* ── Hero : titre géant centré et deux boutons, rien d'autre ── */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 7rem var(--gutter) 4rem;
}
.home-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.home-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(3.2rem, 13.5vw, 15rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: center;
}
.home-title-row {
  display: block;
  overflow: hidden;
  padding: 0.02em 0 0.06em;
}
.home-title-word {
  display: inline-block;
}
.home-title-word--accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  padding-right: 0.03em;
}
.home-char {
  display: inline-block;
}

/* ── Manifeste & chiffres ── */
.home-manifesto {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem var(--gutter) 6rem;
}
.home-manifesto-text {
  font-family: var(--font-heading);
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 7rem;
  border-top: 1px solid var(--line-soft);
}
.home-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2rem 2rem 0 0;
}
.home-stat + .home-stat {
  padding-left: 2rem;
  border-left: 1px solid var(--line-soft);
}
.home-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.home-stat dd {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 24ch;
}

/* ── En-têtes de section ── */
.home-head {
  margin-bottom: 5rem;
}
.home-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-head-lead {
  max-width: 36ch;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.home-head--center .home-head-lead {
  max-width: 58ch;
  margin-top: 2rem;
}
.home-head-num {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.home-studios,
.home-pricing {
  max-width: 1440px;
  margin: 0 auto;
  padding: 9rem var(--gutter);
}

/* ── Étiquettes ── */
.home-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.home-tags li {
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Studios (média collant) ── */
.home-studios-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}
.home-studios-media {
  position: sticky;
  top: calc(50vh - 15.5rem);
}
.home-studios-frame {
  position: relative;
  aspect-ratio: 1920 / 1032;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0c0a;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 30px 80px -50px rgba(255, 107, 53, 0.5);
}
.home-studios-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.08);
  transition: clip-path 0.95s var(--ease-out-quint), transform 1.3s var(--ease-out-quint);
}
.home-studios-shot.is-active {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
.home-studios-shot.was-active {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
.home-studios-hud {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.home-studios-index {
  font-variant-numeric: tabular-nums;
}
.home-studios-index span {
  color: var(--text-primary);
}
.home-studios-progress {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.home-studios-progress span {
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  transform-origin: left;
  transform: scaleX(0.2);
}
.home-studios-name {
  color: var(--accent);
}

.home-studios-list {
  list-style: none;
}
.home-studio {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  border-top: 1px solid var(--line-soft);
  transition: opacity 0.6s ease;
}
.home-studio:first-child {
  min-height: 60vh;
  justify-content: flex-start;
  border-top: 0;
  padding-top: 1rem;
}
.js-studios .home-studio {
  opacity: 0.22;
}
.js-studios .home-studio.is-active {
  opacity: 1;
}
.home-studio-shot {
  display: none;
}
.home-studio-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.aww-home .home-studio-title {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.home-studio-text {
  max-width: 40ch;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── Licences ── */
.home-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
}
.home-plan {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30, 25, 21, 0.82) 0%, rgba(14, 12, 10, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-plan:hover {
  background: linear-gradient(180deg, rgba(36, 30, 25, 0.86) 0%, rgba(16, 13, 11, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.16);
}
.home-plan.is-featured {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0) 70%),
    linear-gradient(180deg, rgba(34, 24, 18, 0.9) 0%, rgba(14, 11, 9, 0.94) 100%);
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow: 0 40px 90px -40px rgba(255, 107, 53, 0.45);
}
.aww-pricing-badge {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}
.aww-pricing-tier {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-plan-desc {
  margin-top: 0.75rem;
  min-height: 3.2em;
  line-height: 1.55;
  color: var(--text-secondary);
}
.aww-pricing-amount {
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
.aww-pricing-amount small {
  margin-left: 0.45rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}
.home-plan-list {
  list-style: none;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.75rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line-soft);
}
.home-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.4;
}
.home-plan-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(255, 107, 53, 0.14);
}
.home-plan .aww-btn {
  width: 100%;
}
.home-plans-note {
  margin-top: 2.5rem;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .home-studios-layout {
    grid-template-columns: 1fr;
  }
  .home-studios-media {
    display: none;
  }
  .home-studio,
  .home-studio:first-child {
    min-height: 0;
    padding: 3rem 0;
    border-top: 1px solid var(--line-soft);
  }
  .js-studios .home-studio {
    opacity: 1;
  }
  .home-studio-shot {
    display: block;
    margin-bottom: 2rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1920 / 1032;
    background: #0f0c0a;
  }
  .home-studio-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-plans {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .home-hero {
    padding: 6.5rem 1.25rem 3rem;
  }
  .home-hero-actions .aww-btn {
    flex: 1 1 auto;
  }
  .home-manifesto {
    padding: 5rem 1.25rem 3rem;
  }
  .home-stats {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
  }
  .home-stat,
  .home-stat + .home-stat {
    padding: 1.5rem 1rem 1.5rem 0;
    border-left: 0;
  }
  .home-stat + .home-stat {
    border-top: 1px solid var(--line-soft);
  }
  .home-studios,
  .home-pricing {
    padding: 5rem 1.25rem;
  }
  .home-head {
    margin-bottom: 3rem;
  }
  .home-plan {
    padding: 2rem 1.5rem;
  }
}
/* Aperçu 3D du modèle exporté */
.model-showcase { padding-block: clamp(80px, 12vw, 160px); }
.model-stage { position: relative; width: 100%; max-width: 1500px; height: clamp(360px, 78vh, 860px); margin-inline: auto; }
.model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.model-canvas:active { cursor: grabbing; }
.model-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.model-hint { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font-family: var(--font-mono, monospace); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted, #a699c2); pointer-events: none; opacity: 0; transition: opacity 0.6s; }
.model-stage.is-ready .model-hint { opacity: 0.8; }
.model-stage.is-fallback .model-canvas { display: none; }
.model-stage.is-fallback .model-fallback { display: block; }
