/* ============================================================
   GOOD ALLURE — design system
   Inspiré de l'analyse : quatorzerunning.com (système à tokens,
   grille, radius 0, progress bar, boutons 48px) et
   sweatscollective.net (hero plein écran, section sombre
   #1c1c1c, marquee, hairlines, uppercase espacé).
   Titres majeurs : Open Sans, noir, stroke noir 1,5px (engraissé).
   Corps : Helvetica.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --noir: #000000;
  --blanc: #ffffff;
  --encre: #1c1c1c;          /* fond sombre, repris de Sweats */
  --gris-200: #f3f3f3;       /* fond de blocs, repris de Quatorze */
  --gris-400: #a8a8a8;       /* silver de Quatorze */
  --gris-600: #7f7f7f;
  --gris-800: #575757;
  --hairline: rgba(0, 0, 0, 0.14);
  --hairline-inverse: rgba(255, 255, 255, 0.2);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Open Sans", var(--sans);

  --bouton-h: 48px;          /* Quatorze : 48 mobile, 52 desktop */
  --bouton-h-lg: 52px;
  --radius: 0px;             /* angles droits partout */

  --conteneur: 1600px;       /* container max de Quatorze */
  --gouttiere: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 160px);
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --stroke-titre: 1.5px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Les ancres atterrissent sous le header sticky : on compense */
[id] { scroll-margin-top: 110px; }

/* ---------- Titres majeurs : Open Sans noir, stroke noir ---------- */
/* Le stroke noir sur texte noir épaissit le trait du glyphe :
   environ 0,75px gagné de chaque côté. Uniquement sur les gros titres. */
.titre-majeur {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--noir);
  -webkit-text-stroke: var(--stroke-titre) var(--noir);
  paint-order: stroke fill;
  text-transform: uppercase;
}

/* ---------- Conteneur ---------- */
.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.conteneur-etroit { max-width: 880px; }

/* ---------- Boutons : 48px, radius 0, uppercase espacé ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bouton-h);
  padding: 0 32px;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--noir);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.bouton:hover { background: var(--blanc); color: var(--noir); }
.bouton-blanc {
  background: var(--blanc);
  color: var(--noir);
  border-color: var(--blanc);
}
.bouton-blanc:hover { background: transparent; color: var(--blanc); }

/* ---------- Lien souligné animé (Quatorze) ---------- */
.lien-souligne {
  position: relative;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.lien-souligne::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.lien-souligne:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Bandeau d'annonce ---------- */
.annonce {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  background: var(--noir);
  color: var(--blanc);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.annonce-point { opacity: 0.5; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header.is-scrolle {
  background: var(--blanc);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-barre {
  position: relative;
  z-index: 60; /* au-dessus du panneau mobile : le burger reste cliquable */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-inline: var(--gouttiere);
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; }
.logo-img-blanc { display: none; }

/* Au-dessus du hero (pas encore scrollé), le header est transparent :
   texte et logo passent en blanc pour rester lisibles sur la photo. */
.header:not(.is-scrolle) .logo-img-noir { display: none; }
.header:not(.is-scrolle) .logo-img-blanc { display: block; }
.header:not(.is-scrolle) .nav-lien,
.header:not(.is-scrolle) .burger { color: var(--blanc); }

.nav { display: none; gap: 32px; }
.nav-lien {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--noir);
  position: relative;
  padding-bottom: 4px;
}
.nav-lien::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav-lien:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.nav-lien-action { display: none; }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.burger.is-ouvert span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger.is-ouvert span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Menu mobile : drawer plein écran (Quatorze) */
.menu-mobile {
  position: fixed;
  inset: 0;
  top: 36px;
  z-index: 49;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gouttiere);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.menu-mobile.is-ouvert { transform: translateX(0); }
.menu-mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.menu-mobile-lien {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  padding-block: 8px;
  border-bottom: 1px solid var(--hairline);
}

/* ---------- Hero : plein écran, titre superposé (Sweats) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: -108px; /* header sticky + annonce : le hero passe dessous */
  padding-top: 108px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-fond { position: absolute; inset: 0; }
.hero-fond img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: kenburns 10s var(--ease) both;
}
@keyframes kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero-voile {
  position: absolute;
  inset: 0;
  /* Dégradé au lieu d'un voile uniforme : le contraste du titre est assuré
     à gauche, la photo garde sa présence à droite */
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(255, 255, 255, 0.12) 100%);
}
.hero-contenu {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
  padding-block: 80px;
}
.hero-sur-titre {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-titre {
  font-size: clamp(3.5rem, 14vw, 11rem);
  margin-bottom: 40px;
}
.hero-cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 56px;
  background: var(--hairline);
  overflow: hidden;
}
.hero-scroll span {
  display: block;
  width: 1px; height: 24px;
  background: var(--noir);
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-24px); }
  60%, 100% { transform: translateY(56px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--noir);
  color: var(--blanc);
  overflow: hidden;
  padding-block: 14px;
  border-block: 1px solid var(--noir);
}
.marquee-piste {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-sep { opacity: 0.5; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-gris { background: var(--gris-200); }
.section-sombre { background: var(--encre); color: var(--blanc); }
.section-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}
.titre-section {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
}
.section-texte {
  max-width: 420px;
  font-size: 0.9375rem;
  color: var(--gris-800);
}
.section-pied { margin-top: 48px; }

/* ---------- Onglets (Quatorze) ---------- */
.onglets {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
  overflow-x: auto; /* les onglets défilent au lieu de déborder en mobile */
  scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }
.onglet {
  padding: 12px 24px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gris-600);
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.onglet.is-actif { color: var(--noir); border-bottom-color: var(--noir); }
.onglet:hover { color: var(--noir); }

/* ---------- Grille produits ---------- */
.grille-produits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.carte-produit.is-cache { display: none; }
.carte-media {
  display: block;
  overflow: hidden;
  background: var(--gris-200);
}
.carte-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.carte-produit:hover .carte-media img { transform: scale(1.03); }
.carte-infos {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}
.carte-nom {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.carte-lien {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-600);
  transition: color 0.3s var(--ease);
}
.carte-produit:hover .carte-lien { color: var(--noir); }

/* ---------- Carrousel essentiels (Quatorze : flèches + progress bar) ---------- */
.carrousel-controles { display: flex; gap: 8px; }
.carrousel-fleche {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--blanc);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.carrousel-fleche:hover { background: var(--noir); color: var(--blanc); }
.carrousel { position: relative; overflow: hidden; }
.carrousel-piste {
  display: flex;
  transition: transform 0.7s var(--ease);
}
.encart {
  flex: 0 0 100%;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gris-200);
}
.encart img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.encart:hover img { transform: scale(1.03); }
.encart-texte {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--blanc);
}
.encart-sur-titre {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.8;
}
.encart-titre {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.carrousel-progression {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  position: relative;
  height: 2px;
}
.carrousel-piste-grise {
  position: absolute;
  inset: 0;
  background: var(--gris-400);
  opacity: 0.4;
}
.carrousel-curseur {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 25%;
  background: var(--noir);
  transition: transform 0.7s var(--ease);
}

/* ---------- Split studio / marque ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.split-bloc { display: block; }
.split-media { overflow: hidden; background: var(--gris-200); }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.split-bloc:hover .split-media img { transform: scale(1.03); }
.split-texte { padding-top: 20px; }
.split-sur-titre {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gris-600);
  margin-bottom: 10px;
}
.split-titre {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

/* ---------- Citation sombre (Sweats) ---------- */
.citation-sombre {
  text-align: center;
  padding-block: 40px;
}
.citation-sombre-texte {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 48px;
}
.citation-sombre-pied { display: flex; justify-content: center; }

/* ---------- Presse ---------- */
.presse img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  margin-inline: auto;
  object-fit: contain;
}

/* ---------- Citation claire ---------- */
.citation { text-align: center; padding-block: 24px; }
.citation-texte {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.citation-auteur {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gris-600);
}

/* ---------- Newsletter (Sweats) ---------- */
.newsletter { text-align: center; }
.newsletter-sur-titre {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gris-600);
  margin-bottom: 16px;
}
.newsletter-titre { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.newsletter-texte { color: var(--gris-800); margin-bottom: 32px; }
.newsletter-forme {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-inline: auto;
}
.newsletter-champ {
  flex: 1;
  min-height: var(--bouton-h);
  padding: 0 20px;
  font: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--noir);
  border-radius: var(--radius);
  background: var(--blanc);
}
.newsletter-champ:focus { outline: 1.5px solid var(--noir); outline-offset: 2px; }
.newsletter-confirmation {
  margin-top: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--noir);
  color: var(--blanc);
  padding-block: 64px 32px;
}
.footer-haut {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline-inverse);
}
.footer-baseline { color: var(--gris-400); margin-top: 16px; font-size: 0.875rem; }
.footer-colonnes { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-colonne { display: flex; flex-direction: column; gap: 10px; }
.footer-titre {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gris-400);
  margin-bottom: 6px;
}
.footer-lien {
  font-size: 0.875rem;
  color: var(--blanc);
  transition: opacity 0.3s var(--ease);
}
.footer-lien:hover { opacity: 0.6; }
.footer-bas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-size: 0.75rem;
  color: var(--gris-400);
}
.footer-liens-legaux { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Reveal au scroll (IntersectionObserver) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].est-revele {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (min-width: 1000px) {
  .nav { display: flex; }
  .nav-lien-action { display: inline; }
  .burger { display: none; }
  .menu-mobile { display: none; }
  .bouton { min-height: var(--bouton-h-lg); }
  .encart { flex-basis: 33.333%; }
  .encart img { aspect-ratio: 3 / 4; }
  .carrousel-curseur { width: 33.333%; }
}

@media (max-width: 999px) {
  .grille-produits { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  /* En mobile le hero passe sous le header mais reste sous l'annonce :
     il mesure le viewport moins l'annonce pour finir pile au pli */
  .hero { margin-top: -72px; padding-top: 72px; min-height: calc(100svh - 36px); }
  .hero-voile { background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0.25)); }
  .menu-mobile { top: 0; }
  .annonce { position: relative; }
}

@media (max-width: 640px) {
  .grille-produits { grid-template-columns: 1fr; }
  .newsletter-forme { flex-direction: column; }
  .encart img { aspect-ratio: 4 / 5; }
}

/* ---------- Motion réduite ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-fond img { animation: none; }
  .marquee-piste { animation: none; }
  .hero-scroll span { animation: none; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
