/* Démasquées — landing page
   Mobile d’abord (Figma « Landing — Mobile 390 »), desktop à partir de 1024 px
   (Figma « Landing — Desktop 1440 » : contenu de 1200 px centré). */

/* ========== Tokens (variables Figma) ========== */
:root {
  --black: #000;
  --white: #fff;
  --gris: #8e8e8e;
  --gold: #a27f3e;
  --anthracite: #161616;
  --filet: #2a2a2a;
  --tag: #333;
  --rule: rgba(255, 255, 255, 0.18);

  /* Helvetica Neue voulue ; Inter n’est qu’un remplaçant dans le Figma. */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-h: 56px;
  --sticky-h: 64px;
  --gutter: 24px;
  --pad-x: var(--gutter);        /* marge latérale des blocs pleine largeur */
  --section-pad: 56px;           /* marge verticale des sections */
  --stack: 32px;                 /* espacement entre blocs */
  --content-max: 1200px;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
    --pad-x: max(var(--gutter), (100% - var(--content-max)) / 2);
    --section-pad: 80px;
    --stack: 80px;
  }
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  color: var(--black);
}
.skip-link:focus { top: 8px; }

@media (max-width: 1023px) {
  .only-desktop { display: none; }
}

/* ========== Typographie (styles de texte Figma « LP/… ») ========== */
.caption {                       /* LP/Légende */
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gris);
}

.h-section {                     /* LP/Titre Section */
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.01em;
}

.body {                          /* LP/Corps */
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.price {                         /* LP/Prix */
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
}

.tagline {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

@media (min-width: 1024px) {
  .h-section { font-size: 48px; line-height: 54px; }
  .h-section--story { font-size: 44px; line-height: 50px; }
  .tagline { font-size: 40px; line-height: 46px; }
}

/* ========== Boutons (LP/Bouton) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn--primary {
  height: 52px;
  background: var(--white);
  color: var(--black);
}
.btn--primary:hover { background: #e6e6e6; }

.btn--outline {
  border: 1px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--black); }

.btn--sm { height: 34px; }
.btn--lg { height: 60px; }

@media (min-width: 1024px) {
  .btn--primary { height: 56px; width: 360px; }
  .btn--lg { height: 60px; width: 400px; }
}

/* ========== Médias et emplacements ========== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--anthracite);
}
.media picture { height: 100%; }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Repérage des contenus provisoires : ajouter ?todo à l’URL pour les entourer. */
.show-todo .todo { outline: 2px dashed var(--gold); outline-offset: -2px; }

/* ========== Header ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: var(--black);
}
.site-header__logo img { width: 112px; height: auto; }

/* ========== Sections ========== */
.section {
  display: flex;
  flex-direction: column;
  gap: var(--stack);
  padding: var(--section-pad) var(--pad-x);
}

/* ========== S1 Hero ========== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(600px, calc(100svh - var(--header-h)));
  padding: 0 var(--pad-x) 32px;
  overflow: hidden;
  background: var(--anthracite);
}

.hero__media,
.hero__media picture,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media { container-type: size; }

/* Vidéo : invisible tant qu’elle ne joue pas, la photo reste dessous. */
.hero__media video,
.hero__media iframe {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero__media .is-playing { opacity: 1; }

/* Lecteur Vimeo recadré pour couvrir le hero comme object-fit: cover
   (--video-ratio = largeur / hauteur, réglé par js/main.js). */
.hero__media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 100cqh * var(--video-ratio, 1.7778));
  height: max(100cqh, 100cqw / var(--video-ratio, 1.7778));
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__fade {
  position: absolute;
  inset: 0;
  /* Mobile : fondu sur les 560 px du bas (sur 844). */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 33.6%, rgba(0, 0, 0, 0.92) 100%);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 480px;
}

.hero__logo img { width: 256.5px; height: auto; }
.hero__cta { width: 100%; }

.hero__more {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 1024px) {
  .hero {
    min-height: clamp(640px, calc(100svh - var(--header-h)), 860px);
    padding-bottom: 96px;
  }
  .hero__fade { background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.92)); }
  .hero__content { gap: 20px; max-width: 560px; }
  /* Desktop : la mention tient sur une ligne. */
  .hero__byline { white-space: nowrap; }
  .hero__byline br { display: none; }
  .hero__cta { width: 360px; }
}

/* ========== Chiffres clés (S2 et S3) ========== */
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.figure { display: flex; flex-direction: column; gap: 6px; }
.figure .caption { max-width: 159px; }

.figure__value {                 /* LP/Chiffre clé */
  font-size: 44px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .figures--four {
    grid-template-columns: repeat(4, minmax(0, 240px));
    gap: 0 64px;
    align-content: start;
    min-height: 176px;
  }
  .figures--four .figure .caption { max-width: none; }
}

/* ========== S2 L’objet ========== */
.object__visual { aspect-ratio: 342 / 305; }

.object__specs { display: flex; flex-direction: column; gap: 28px; }
.fabrication { display: flex; flex-direction: column; gap: 24px; }

/* Mobile : carrousel horizontal avec aimantation. */
.spreads {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.spreads::-webkit-scrollbar { display: none; }
.spread {
  flex: 0 0 225px;
  height: 300px;
  scroll-snap-align: start;
}

@media (max-width: 1023px) {
  .object__cta { width: 100%; }
}

/* Desktop : visuel à gauche, texte à droite, doubles pages en 2 rangées de 3 dessous. */
@media (min-width: 1024px) {
  .object {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto 1fr auto;
    grid-template-areas:
      "visual  label"
      "visual  title"
      "visual  intro"
      "visual  specs"
      "visual  cta"
      "spreads spreads";
    gap: 32px 96px;
  }
  .object__label   { grid-area: label; }
  .object__title   { grid-area: title; }
  .object__intro   { grid-area: intro; }
  .object__specs   { grid-area: specs; }
  .object__cta     { grid-area: cta; align-self: start; }
  .object__visual  { grid-area: visual; align-self: start; height: 640px; aspect-ratio: auto; }
  .object__spreads { grid-area: spreads; margin-top: 32px; }

  .object .figures { grid-template-columns: repeat(3, 1fr); }

  .spreads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    overflow: visible;
  }
}

/* ========== S3 L’histoire ========== */
.story__cols,
.story__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mosaic .media { aspect-ratio: 108 / 150; }

@media (min-width: 1024px) {
  .story__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
  .story__col { gap: 24px; }
  .story__col--offset { padding-top: 40px; }

  .mosaic { gap: 16px; }
  .mosaic .media { height: 300px; aspect-ratio: auto; }
}

/* ========== Bouton lecture/pause des vidéos (S4 et S5) ========== */
/* Le parent porte .is-playing et peut placer l’icône via --play-top / --play-shift
   (par défaut : centrée). Toute la surface de la vidéo est cliquable. */
.play-toggle {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
}
.play-toggle__icon {
  position: absolute;
  top: var(--play-top, 50%);
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, var(--play-shift, -50%));
  transition: opacity 0.2s;
}

/* Icône pause : deux barres de 5,33 × 16 px (Figma). */
.play-toggle__icon--pause { display: none; }
.play-toggle__icon--pause::before,
.play-toggle__icon--pause::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 5.333px;
  height: 16px;
  border-radius: 1.333px;
  background: var(--white);
}
.play-toggle__icon--pause::before { left: 25.333px; }
.play-toggle__icon--pause::after { right: 25.333px; }

.is-playing .play-toggle__icon--play { display: none; }
.is-playing .play-toggle__icon--pause { display: block; }

/* Pendant la lecture, la pause n’apparaît qu’au survol ou au focus (écrans à pointeur). */
@media (hover: hover) {
  .is-playing .play-toggle__icon--pause { opacity: 0; }
  .is-playing:hover .play-toggle__icon--pause,
  .is-playing .play-toggle:focus-visible .play-toggle__icon--pause { opacity: 1; }
}

/* ========== S4 L’application ========== */
.app__cols,
.app__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app__video { display: flex; justify-content: center; }
/* Teaser de l’application au format écran de téléphone. */
.app__phone {
  position: relative;
  width: 240px;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--filet);
  background: var(--anthracite);
}
.app__phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app__lead { font-size: 20px; line-height: 30px; }

.steps { display: flex; flex-direction: column; gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.steps__text {
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .app__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
  .app__phone { width: 320px; }
  .app__text { justify-content: center; gap: 28px; }
  .app__lead { font-size: 32px; line-height: 38px; }
  .steps { gap: 28px; }
}

/* ========== S5 Les voix ========== */
/* Vignettes vidéo : empilées en mobile, rangée de 3 en desktop. */
.muses {
  display: grid;
  gap: 9px;
}

.muse {
  --play-top: 190px;             /* position du bouton dans le Figma */
  --play-shift: 0;
  position: relative;
  aspect-ratio: 1078 / 1356;
  overflow: hidden;
  border-radius: 20px;
  background: var(--black);
}
.muse__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voices__film {
  aspect-ratio: 16 / 9;
  background: var(--anthracite);
}
.voices__film iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 1024px) {
  .muses {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ========== S6 Témoignages et artiste ========== */
.witness__quotes,
.witness__artist,
.witness__bio {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.quote__open { width: 44px; height: auto; transform: scaleX(-1); }
.quote__close { align-self: flex-end; width: 32px; height: auto; }
.quote__text {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.015em;
}
.quote__author {
  padding: 8px 14px;
  background: var(--tag);
  font-size: 22px;
  font-weight: 700;
  line-height: 16px;
}

.witness__portrait { aspect-ratio: 342 / 400; }

@media (min-width: 1024px) {
  .witness__quotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
  .quote__text { font-size: 32px; line-height: 40px; }

  .witness__artist {
    display: grid;
    grid-template-columns: 564fr 540fr;
    gap: 96px;
  }
  /* Le portrait prend la hauteur de la bio (Figma : 564 × 308). */
  .witness__portrait { aspect-ratio: auto; }
  .witness__portrait picture { position: absolute; inset: 0; }
  .witness__bio { gap: 24px; }
}

/* ========== S7 Conversion finale + FAQ ========== */
.buy__cols,
.buy__panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.buy__visual { aspect-ratio: 1; }
.buy__logo img { width: 256.5px; height: auto; }
.summary { display: flex; flex-direction: column; gap: 8px; }
.buy__note { text-align: center; }

@media (max-width: 1023px) {
  .buy__cta { width: 100%; }
}

/* Séparation avec le bloc de commande : 40 px de plus que l’écart habituel entre blocs (à la place de l’ancien filet). */
.faq { margin-top: calc(var(--stack) + 40px); }

.faq__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.faq__item:first-child { padding-top: 0; }

.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
}
.faq__item[open] summary::after { content: "–"; }

.faq__item p {
  margin-top: 10px;
  color: var(--gris);
}

@media (min-width: 1024px) {
  .buy__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 96px;
  }
  .buy__visual { height: 552px; aspect-ratio: auto; }
  .buy__panel { gap: 24px; }
  .buy__logo { order: -1; }
  .buy__note { text-align: left; }
}

/* ========== Footer ========== */
/* Collé au bloc FAQ (écart = --stack) ; en mobile, réserve la place du sticky CTA. */
.site-footer {
  margin-top: calc(var(--stack) - var(--section-pad));
  padding: 0 var(--pad-x) calc(var(--section-pad) + var(--sticky-h) + env(safe-area-inset-bottom));
  text-align: center;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

@media (min-width: 1024px) {
  .site-footer { padding-bottom: var(--section-pad); }
}

/* ========== Sticky CTA (mobile) ========== */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--sticky-h) + env(safe-area-inset-bottom));
  padding: 0 var(--gutter) env(safe-area-inset-bottom);
  border: 1px solid var(--filet);
  background: var(--black);
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.sticky-cta.is-visible {
  visibility: visible;
  transform: none;
  transition: transform 0.3s ease;
}
.sticky-cta__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sticky-cta__btn { width: 120px; height: 40px; }

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* ========== Pages secondaires (merci, pages légales) ========== */
.page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 720px;
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}
.page h2 { font-size: 20px; font-weight: 700; line-height: 30px; }
.page .body { color: var(--gris); }
.page .body a { color: var(--white); }

/* Pages légales : titre et paragraphes groupés par section. */
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal ul.body { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; }
.legal strong { color: var(--white); }
.legal-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--rule);
}

.badges { display: flex; gap: 20px; }
.badges a { flex: 0 1 160px; }
.badges img { width: 100%; height: auto; }

/* ========== Bandeau cookies (js/consent.js) ========== */
.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--filet);
  background: var(--black);
}
/* Contenu centré, sur une colonne de 560 px au plus. */
.consent > * { width: 100%; max-width: 560px; }
.consent__text { font-size: 13px; line-height: 20px; color: var(--gris); text-align: center; }
.consent__text a { color: var(--white); }

.consent__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 13px;
  line-height: 20px;
}
.consent__details { align-items: center; }
.consent__details legend { width: 100%; margin-bottom: 10px; padding: 0; text-align: center; }
.consent__details label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.consent__details input { width: 18px; height: 18px; margin: 0; accent-color: var(--white); }

.consent__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.consent__actions .btn { flex: 1 1 0; height: 44px; }
.consent__more { flex-basis: 100%; }

/* Bouton présenté comme un lien (« Gérer les cookies », « Personnaliser »). */
.link-button,
.consent__more {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent__more { color: var(--gris); }
.consent__more:hover, .link-button:hover { color: var(--white); }

@media (min-width: 1024px) {
  .consent { padding-block: 24px; }
}
