/* Page « L'histoire des Mogs ». S'appuie sur ../style.css (base du site, scène 3D, fond illustré)
   et ../focus/style.css (bouton retour, panneau flouté .focus-panel). */

body.story-page{background:#17181A;}

/* Fond illustré fixe derrière toute la page, couleur par chapitre (voir histoire.js) */
.story-bg{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(circle at 50% 42%, #1c1d20 0%, #17181A 70%);}
#storyIlluA .cls-1{fill:var(--story-illu-a, rgba(255,255,255,0.14));}
#storyIlluB .cls-1{fill:var(--story-illu-b, rgba(255,255,255,0.14));}
.story-bg .illu-fade{clip-path:circle(150% at 50% 50%);}

.story{position:relative;z-index:1;}

/* Panneau flouté : même rendu que les pages focus, sans le décalage propre à leur colonne */
.story .focus-panel{margin-left:0;max-width:none;}
.story .eyebrow{font-size:12px;letter-spacing:0.08em;color:#FFD23F;margin-bottom:10px;}

/* --- Ouverture ------------------------------------------------------------------------------- */
.story-hero{
  min-height:100dvh;position:relative;
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;
  gap:4vw;padding:80px 6vw 60px;
}
.story-hero-photo img{max-height:80dvh;}
.story-hero-text{padding:30px 34px 32px;max-width:560px;}
.story-title{font-family:'Anton',sans-serif;text-transform:uppercase;font-size:clamp(40px,6vw,84px);line-height:0.98;color:#FFD23F;}
.story-lead{margin-top:16px;font-family:'IBM Plex Mono',monospace;font-size:15px;font-weight:600;color:#EFE9DE;line-height:1.6;}
.story-scroll-hint{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);color:#B9B3A4;font-size:18px;animation:storyHint 1.8s ease-in-out infinite;}
@keyframes storyHint{0%,100%{transform:translate(-50%,0);opacity:0.5;}50%{transform:translate(-50%,6px);opacity:1;}}

/* --- Chapitres -------------------------------------------------------------------------------- */
.story-chapter{
  min-height:100dvh;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;
  gap:5vw;padding:80px 8vw;
}
.story-chapter.reverse .story-photo{order:2;}
.story-photo{margin:0;display:flex;justify-content:center;}
.story-photo img{
  display:block;width:auto;max-width:100%;max-height:78dvh;height:auto;
  border-radius:20px;box-shadow:0 18px 50px rgba(0,0,0,0.45);
}
.story-text{padding:28px 34px 32px;max-width:560px;}
.story-h2{font-family:'Anton',sans-serif;text-transform:uppercase;font-size:clamp(30px,3.6vw,50px);line-height:1.02;color:#EFE9DE;margin-bottom:18px;font-weight:400;}
.story-text p{font-size:15px;line-height:1.85;color:#EFE9DE;font-weight:500;}

/* Chapitre "dans la rue" : trois photos côte à côte */
.story-street{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);}
.story-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:center;}
.story-gallery .story-photo img{max-height:70dvh;border-radius:16px;}
.story-gallery .story-photo:nth-child(2){transform:translateY(-36px);}
.story-cta{margin:22px 0 0;}

/* --- Fin de page ------------------------------------------------------------------------------ */
.story-footer{padding:40px 24px 60px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:28px;}
.story-footer .story-home{position:static;transform:none;}
.story-footer .story-home:hover{transform:scale(1.04);}
.story-footer p{font-size:11px;color:#B9B3A4;}

/* --- Téléphone / petite tablette : tout empilé ------------------------------------------------ */
@media(max-width:860px){
  .story-hero{grid-template-columns:1fr;gap:10px;padding:70px 14px 70px;min-height:auto;}
  .story-hero-photo img{max-height:58dvh;}
  .story-hero-text{padding:20px 20px 22px;order:-1;} /* sur téléphone : le titre d'abord, la photo ensuite */
  .story-chapter, .story-street{grid-template-columns:1fr;gap:18px;padding:40px 14px;min-height:auto;}
  .story-chapter.reverse .story-photo{order:0;}
  .story-photo img{max-height:62dvh;}
  .story-text{padding:20px 20px 22px;max-width:none;}
  .story-text p{font-size:14px;}
  .story-gallery{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;margin:0 -14px;padding:0 14px 8px;}
  .story-gallery .story-photo{flex:0 0 72%;scroll-snap-align:center;}
  .story-gallery .story-photo:nth-child(2){transform:none;}
  .story-gallery .story-photo img{max-height:58dvh;}
}

/* Bouton « J'ai trouvé un Mog » inactif (teaser : les Mogs ne sont pas encore posés) */
.story-cta.is-soon{display:inline-flex;align-items:center;gap:10px;cursor:default;opacity:0.85;}
.story-cta.is-soon{pointer-events:none;} /* pas de survol ni de clic */
.soon-badge{
  padding:3px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:0.08em;
  background:#FFD23F;color:#17181A;
}

.about-footer-link{color:#EFE9DE;text-decoration:none;letter-spacing:0.08em;}
.about-footer-link:hover{text-decoration:underline;}
