/* =====================================================================
   CHÉTOU — PAGE D'ACCUEIL
   ---------------------------------------------------------------------
   Chaque carrousel occupe tout l'écran, sans aucune bordure. Le premier
   passe sous la barre du haut. Le titre est posé dans l'image, en bas,
   en alternance gauche / droite / gauche. Le paragraphe reste en dehors,
   sur sa bande noire.
   ===================================================================== */

/* Sur l'accueil, le contenu démarre tout en haut : la première photo
   passe sous la barre de navigation. */
.page-home .main {
  margin-top: 0;
}

/* ---------------------------------------------------------------------
   1. LES CARROUSELS
   --------------------------------------------------------------------- */

.hero-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* déborde jusqu'aux bords de la fenêtre */
  height: 100vh;
  overflow: hidden;
  background: #000;
  user-select: none;
}

.hero-viewport {
  height: 100%;
  overflow: hidden;
}

.hero-viewport .slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-viewport .slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* remplit tout l'écran, aucune bordure */
  object-position: center;   /* le recadrage mord en haut et en bas */
  display: block;
}

/* ---------------------------------------------------------------------
   2. LE TITRE, DANS L'IMAGE
   Pas de rectangle ni de flou : une simple ombre qui monte du bas,
   plus une ombre portée sur les lettres. Le titre reste lisible sur
   n'importe quelle photo sans qu'on voie de bandeau.
   --------------------------------------------------------------------- */

.hero-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 40px clamp(18px, 4vw, 60px) 22px;
  pointer-events: none;
  background: linear-gradient(to top,
              rgba(0, 0, 0, 0.62) 0%,
              rgba(0, 0, 0, 0.32) 45%,
              rgba(0, 0, 0, 0) 100%);
}

.hero-title h2 {
  margin: 0;
  font-family: var(--roboto);
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-title.gauche h2 { text-align: left;  }
.hero-title.droite h2 { text-align: right; }

/* ---------------------------------------------------------------------
   3. LES PARAGRAPHES — bandes noires entre les carrousels
   L'alternance gauche / droite du site d'origine est conservée.
   --------------------------------------------------------------------- */

/* Ces règles sont volontairement limitées à l'accueil (.page-home) :
   les mêmes classes servent sur la page manifesto, qui doit garder
   exactement sa présentation d'origine. */
.page-home .hero-text-0,
.page-home .hero-text-1 {
  background: #000;
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--roboto);
}

.page-home .hero-text-0 { margin: 60px 0 60px 50px; text-align: left;  }
.page-home .hero-text-1 { margin: 60px 50px 60px 0; text-align: right; }

.page-home .hero-text-0 p,
.page-home .hero-text-1 p {
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1.65;
  margin: 0;
}

.page-home .hero-text-0 h2,
.page-home .hero-text-1 h2 {
  font-size: clamp(18px, 1.9vw, 26px);
  margin: 0 0 18px;
}

/* ---------------------------------------------------------------------
   4. LES 3 VIGNETTES MANIFESTO / LOOKBOOK / SHOP
   Au repos : image nette, sans texte.
   Au survol : l'image se délave et le titre apparaît.
   Après 3 s sans mouvement de souris, elles s'effacent (js/site.js).
   --------------------------------------------------------------------- */

.hero-tiles {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 90px);
  padding: 0 clamp(16px, 4vw, 60px);
  transition: opacity 0.7s ease;
}

.hero-tiles.idle {
  opacity: 0;
  pointer-events: none;
}

.hero-tile {
  position: relative;
  display: block;
  width: clamp(120px, 16vw, 240px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: none;
  padding: 0;
  background: #000;
  cursor: crosshair;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: filter 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-tile span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--open-sans);
  font-size: clamp(15px, 1.5vw, 26px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #040404;
  /* text-shadow: 0 0 14px rgba(255, 255, 255, 0.85); */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.hero-tile:hover,
.hero-tile:focus-visible { transform: translateY(-6px); }

.hero-tile:hover img,
.hero-tile:focus-visible img {
  filter: grayscale(1) contrast(0.55) brightness(1.38);
  transform: scale(1.04);
}

.hero-tile:hover span,
.hero-tile:focus-visible span { opacity: 1; transform: translateY(0); }

.hero-tile:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero-tile,
  .hero-tile img,
  .hero-tile span,
  .hero-viewport .slider-track { transition: none; }
}

/* ---------------------------------------------------------------------
   5. MOBILE
   Les vignettes deviennent grandes, une seule visible à la fois, et on
   les fait défiler au doigt de gauche à droite. Chacune se cale d'elle-
   même au centre quand on relâche. L'ordre reste SHOP, LOOKBOOK,
   MANIFESTO. Les titres restent visibles en permanence, puisqu'il n'y a
   pas de survol possible.
   --------------------------------------------------------------------- */

@media screen and (max-width: 852px) {
  .hero-title {
    padding: 34px 16px 18px;
  }

  .hero-title h2 { font-size: 18px; }

  .page-home .hero-text-0 { margin: 40px 0 40px 14px; }
  .page-home .hero-text-1 { margin: 40px 14px 40px 0; }
  .page-home .hero-text-0 p, .page-home .hero-text-1 p { font-size: 12px; }
  .page-home .hero-text-0 h2, .page-home .hero-text-1 h2 { font-size: 15px; }

  .hero-tiles {
    inset: 0 0 96px 0;          /* au-dessus du titre */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 15vw;            /* permet de centrer la 1re et la dernière */

    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-tiles::-webkit-scrollbar { display: none; }

  .hero-tile {
    flex: 0 0 70vw;
    width: 70vw;
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
  }

  /* Pas de survol sur un écran tactile : le titre reste affiché. */
  .hero-tile img { filter: grayscale(1) contrast(0.55) brightness(1.38); }
  .hero-tile span { opacity: 1; transform: none; font-size: 20px; }
}
