/* ============================================================
   FASHION — accueil et pages de saison (générées par tools/build-fashion.py)
   Chargé après style.css (nav, footer, reveal, lightbox de base).
   Direction artistique : les images dominent, deux familles seulement.
   · Titres : la condensée du logo (Bebas Neue) ; en grand seulement dans le hero,
     l'ouverture de saison et le nom de chaque maison, en taille moyenne ailleurs
   · Étiquettes et texte : Inter, petites capitales espacées, 12 px minimum
   · Noir profond, texte ivoire, gris chaud ; l'orange de la marque en accent unique :
     une ligne du hero, le survol des liens, un filet sous les titres de chapitre
   · Trois gabarits d'images : verticale seule, paire de même hauteur, horizontale
   ============================================================ */

.page-fashion,
.page-season {
  --black: #0a0a0a;
  --white: #e8e6e1;
  --grey-text: #9a968f;
  --grey-dark: #141414;
  --accent: #F5A623;            /* orange de la marque */
  --line: #262420;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 7vw, 128px);
  --gap: 28px;
  --fit-h: calc(100vh - var(--nav-height) - 48px);
  --fit-h: calc(100svh - var(--nav-height) - 48px);
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
}

img { max-width: 100%; }

/* Titres : la condensée du logo, toujours en capitales */
.fx-hero__title, .fx-hero__accent, .fx-section-title, .fx-season__title, .fx-house__brand,
.ss-opening__title, .ss-series__brand, .ss-series__designer, .ss-chapter__title, .ss-pager__title {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
}

/* pas de curseur personnalisé ni de grain dans Fashion : la photo telle qu'elle est */
.page-fashion .grain, .page-season .grain { display: none; }

/* ── Petites capitales : villes, dates, étiquettes, crédits ─── */
.label,
.fx-hero__tag, .fx-season__latest, .fx-season__kicker, .fx-season__houses, .fx-house__season,
.ss-opening__kicker,
.ss-opening__tag, .ss-series__meta, .ss-series__place, .ss-credits,
.ss-pager__link .label, .ss-pager__back, .ss-lightbox__caption, .ss-lightbox__counter {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--grey-text);
}

/* ── En-tête : logo à gauche, menu à droite ─────────────────── */
.page-fashion .nav__links a, .page-season .nav__links a,
.page-fashion .nav__mobile a, .page-season .nav__mobile a {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.2em;
}
.page-fashion .nav__links a, .page-season .nav__links a { font-size: 12px; color: var(--white); }
.fx-lang { display: flex; align-items: center; gap: 8px; margin-left: 40px; }
.fx-lang__btn {
  background: none;
  border: 0;
  padding: 0;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.2em;
  color: var(--grey-text);
  cursor: pointer;
  transition: color 0.25s ease;
}
.fx-lang__btn:hover, .fx-lang__btn.is-active { color: var(--white); }
.fx-lang__sep { color: var(--line); font-size: 12px; }
.nav__links { margin-left: auto; }
.fx-lang--menu { margin: 16px 0 0; }
.fx-lang--menu .fx-lang__btn { font-size: 13px; }

a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ── Accueil Fashion : hero ──────────────────────────────── */
.fx-hero { height: 100vh; height: 100svh; min-height: min(560px, 100svh); padding: 0; display: block; }
.fx-hero::before {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.7) 100%);
}
.fx-hero__link { position: absolute; inset: 0; display: block; color: inherit; }
/* image fixe, sans effet de parallaxe */
.fx-hero .hero__bg-img { transform: none !important; will-change: auto; }
.fx-hero__text {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 64px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* gros lettrage condensé ; la seule ligne orange de la page : la saison */
.fx-hero__title { font-size: clamp(56px, 8vw, 132px); color: var(--white); }
.fx-hero__accent { font-size: clamp(26px, 3vw, 48px); color: var(--accent); }
.fx-hero__tag { color: var(--white); }

/* ── Accueil Fashion : sections ──────────────────────────── */
.page-fashion .section { padding: 18vh var(--gutter) 0; }
.fx-section-head { margin-bottom: 48px; }
.fx-section-title { font-size: clamp(32px, 3vw, 44px); }

/* Saisons : une carte par saison, la grille occupe toute la largeur */
.fx-seasons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px var(--gap);
}
/* les dates des cartes restent alignées, même quand l'une porte « Dernière saison » */
.fx-season { display: flex; flex-direction: column; color: inherit; }
.fx-season img, .fx-season__empty {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: var(--fit-h);
  object-fit: cover;
  background: var(--grey-dark);
  transition: opacity 0.5s ease;
}
.fx-season:hover img { opacity: 0.86; }
/* Carte : la date en gros, l'année en orange ; au-dessus, « New York Fashion Week · SS27 » */
.fx-season__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding-top: 24px; }
.fx-season__latest { color: var(--accent); }
.fx-season__latest + .fx-season__kicker { margin-top: -6px; }
.fx-season__title { font-size: clamp(48px, 5vw, 84px); color: var(--white); white-space: nowrap; transition: color 0.3s ease; }
.fx-season__title .year, .ss-opening__name .year { color: var(--accent); }
.fx-season:hover .fx-season__title { color: var(--accent); }

/* Maisons : titre de section et noms en grand dans la condensée du logo ;
   à droite, saisons et ville en petites capitales ; un filet fin entre les lignes */
.fx-houses .display-title { font-family: var(--display); color: var(--white); }
.fx-houses { padding-bottom: 18vh; }
.fx-houses__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fx-house {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 32px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.fx-house__brand { font-size: clamp(38px, 5vw, 88px); line-height: 0.9; transition: color 0.3s ease; }
.fx-house:hover .fx-house__brand { color: var(--accent); }
.fx-house__season { text-align: right; }

/* ── Page de saison : ouverture ──────────────────────────── */
.ss-opening {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: min(560px, 100svh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--black);
}
.ss-opening::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.75) 100%);
}
.ss-opening__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-opening__text {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ss-opening__title { font-size: clamp(56px, 8vw, 132px); }
.ss-opening__kicker { color: var(--white); }

.ss-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 16vh var(--gutter) 0;
  box-sizing: content-box;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--white);
  text-align: center;
}

/* ── Chapitre par maison : une page de titre aérée ───────── */
.ss-series { padding: 0 var(--gutter); }
.ss-series__head {
  min-height: 46vh;
  min-height: 46svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 0;
}
/* gros lettrage condensé sur le nom de la maison, un filet orange dessous */
.ss-series__brand { font-size: clamp(48px, 7vw, 116px); }
.ss-series__brand::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin: 28px auto 0;
  background: var(--accent);
}
.ss-series__designer { margin-top: 20px; font-size: clamp(24px, 2vw, 30px); color: var(--white); }
.ss-series__meta { margin-top: 22px; }
.ss-series__place { margin-top: 2px; }

/* Marque à plusieurs créateurs (GFC) : un sous-titre par créateur */
.ss-chapter__head { text-align: center; padding: 6vh 0 8vh; }
.ss-chapter__title { font-size: clamp(26px, 2.2vw, 34px); }
.ss-anchor { display: block; }
.ss-series, .ss-chapter, .ss-anchor { scroll-margin-top: calc(var(--nav-height) + 32px); }

/* ── Images : trois gabarits, jamais plus hautes que l'écran ── */
.ss-row { display: flex; justify-content: center; gap: var(--gap); margin-bottom: 12vh; }
.ss-item { margin: 0; }
.ss-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--fit-h);
  cursor: zoom-in;
  transition: opacity 0.4s ease;
}
.ss-item:hover img { opacity: 0.92; }
/* 1. verticale seule, centrée, le noir autour (tirage exposé) */
.ss-row--solo .ss-item img { max-height: var(--fit-h); }
/* 2. paire de verticales de même hauteur : --ar = somme des proportions des deux photos */
.ss-row--pair .ss-item img {
  height: min(var(--fit-h), calc((100vw - 2 * var(--gutter) - var(--gap) - 16px) / var(--ar)));
  max-height: none;
}
/* 3. horizontale pleine largeur (dans les marges) */
.ss-row--full .ss-item img { width: 100%; max-height: var(--fit-h); object-fit: contain; }

.ss-credits { text-align: center; margin: -4vh auto 0; max-width: 900px; }

/* ── Navigation entre saisons ────────────────────────────── */
.ss-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  margin-top: 18vh;
  padding: 56px var(--gutter);
  border-top: 1px solid var(--line);
}
.ss-pager__link { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.ss-pager__link .label { margin: 0; }
.ss-pager__link--next { text-align: right; align-items: flex-end; }
.ss-pager__title { font-size: clamp(24px, 2.2vw, 32px); transition: color 0.3s ease; }
.ss-pager__link:hover .ss-pager__title { color: var(--accent); }
.ss-pager__back { color: var(--white); transition: color 0.3s ease; }
.ss-pager__back:hover { color: var(--accent); }

/* ── Pied de page : une ligne ────────────────────────────── */
.page-fashion footer, .page-season footer {
  font: 500 12px/1.7 var(--sans);
  letter-spacing: 0.2em;
  color: var(--grey-text);
  border-top: 1px solid var(--line);
}
.page-fashion footer a, .page-season footer a { color: var(--white); }
.page-fashion footer a:hover, .page-season footer a:hover { color: var(--accent); }

/* ── Lightbox : flèches, clavier, glisser, légende ──────── */
.ss-lightbox .lightbox__backdrop { background: var(--black); }
.ss-lightbox__figure { position: relative; z-index: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ss-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88vw;
  max-height: 82vh;
  max-height: 82svh;
  object-fit: contain;
}
.ss-lightbox__caption { text-align: center; padding: 0 16px; }
.ss-lightbox__counter { position: absolute; top: 24px; left: 24px; z-index: 3; }
.ss-lightbox__close,
.ss-lightbox__nav {
  position: absolute;
  z-index: 3;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 300;
  transition: color 0.25s ease;
}
.ss-lightbox__close { top: 14px; right: 16px; width: 44px; height: 44px; font-size: 28px; }
.ss-lightbox__nav { top: 50%; width: 56px; height: 56px; margin-top: -28px; font-size: 36px; line-height: 1; }
.ss-lightbox__nav--prev { left: 12px; }
.ss-lightbox__nav--next { right: 12px; }
.ss-lightbox__close:hover, .ss-lightbox__nav:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .fx-lang { display: none; }
  .fx-lang--menu { display: flex; }
  .ss-pager { grid-template-columns: 1fr 1fr; }
  .ss-pager__back { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Mobile : une colonne, images en pleine largeur avec 16 px de marge, paires empilées */
@media (max-width: 700px) {
  .page-fashion, .page-season { --gutter: 16px; }
  /* le nom en grand, coupé seulement entre deux mots ; les infos dessous */
  .fx-house { grid-template-columns: 1fr; gap: 10px; }
  .fx-house__brand { font-size: min(11vw, 52px); overflow-wrap: normal; word-break: normal; hyphens: none; }
  .fx-house__season { text-align: left; }
  .ss-series__brand { font-size: min(8.4vw, 48px); }   /* « Global Fashion Collective » sur une ligne */
  .fx-hero__title, .ss-opening__title { font-size: min(14vw, 64px); }
  .fx-season__title { font-size: min(15vw, 64px); }   /* « Septembre 2026 » sur une ligne */
  .ss-series__head { min-height: 0; padding: 14vh 0 10vh; }
  .ss-row { flex-direction: column; align-items: center; gap: 16px; margin-bottom: 9vh; }
  .ss-row .ss-item, .ss-row--pair .ss-item { width: 100%; }
  .ss-row .ss-item img, .ss-row--pair .ss-item img { width: 100%; height: auto; max-height: var(--fit-h); object-fit: contain; }
  .ss-credits { margin-top: -3vh; }
  .ss-lightbox__nav { top: auto; bottom: 16px; margin-top: 0; }
  .ss-lightbox__img { max-width: 94vw; max-height: 74vh; max-height: 74svh; }
}

/* Bannières (hero de l'accueil Fashion, ouverture de saison) : des photos horizontales.
   Sur un écran vertical, on ne les recadre pas en portrait : la photo entière, le titre dessous. */
@media (max-width: 768px), (orientation: portrait) {
  .fx-hero, .ss-opening { height: auto; min-height: 0; display: block; padding-top: var(--nav-height); }
  .fx-hero::before, .ss-opening::after { display: none; }
  .fx-hero__link { position: relative; }
  .fx-hero .hero__bg-img { position: relative !important; height: auto !important; transform: none !important; }
  .ss-opening__img { position: relative; height: auto; }
  .fx-hero__text, .ss-opening__text { position: relative; left: auto; right: auto; bottom: auto; padding: 28px var(--gutter) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-season img, .ss-item img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
