/* HUMAN.PARIS — site vitrine
   Charte : fond Papaya Whip matiéré (organique, papier/enduit),
   3 tons de peau alternés (rose clair, california peach, marron clair). */

:root {
  --bg: #FAEDCD;                          /* papaya whip */
  --black: #6B4630;                       /* encre chaude par défaut */
  --white: #FAEDCD;                       /* « blanc » = crème de la charte */
  --grey: #B08968;                        /* texte secondaire chaud */
  --line: rgba(165, 107, 77, 0.28);       /* filets discrets */
  --tile: #2E1D12;                        /* tuiles vidéo brun profond */
  --tone-rose: #EFA59A;                   /* rose clair */
  --tone-peach: #FCBE6A;                  /* california peach */
  --tone-brown: #A56B4D;                  /* marron clair */
  --max: 1320px;
  --pad: clamp(20px, 5vw, 64px);
  --header-h: 72px;
}

/* ----- Reset léger ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  /* Matière : grain type papier/craie (bruit SVG) + très léger vignettage lumineux */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1400px 900px at 18% -10%, rgba(255, 252, 240, 0.5), transparent 60%),
    radial-gradient(1200px 800px at 90% 110%, rgba(230, 190, 140, 0.22), transparent 55%);
  color: var(--black);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Tons de peau (rotation aléatoire par groupe titre + texte) ----- */
.tone-1 { --tone: var(--tone-rose); }
.tone-2 { --tone: var(--tone-peach); }
.tone-3 { --tone: var(--tone-brown); }

/* Dans un groupe toné : titres et textes prennent le ton */
section[class*="tone-"] :is(h1, h2, h3, .statement, .lead, .eyebrow, .index) { color: var(--tone); }
section[class*="tone-"] p,
section[class*="tone-"] .col p,
section[class*="tone-"] .filters-note,
section[class*="tone-"] .stat .label,
section[class*="tone-"] .contact-info p,
section[class*="tone-"] .legal p,
section[class*="tone-"] .legal li {
  /* corps de texte : ton légèrement densifié pour la lisibilité */
  color: color-mix(in srgb, var(--tone) 78%, #6B4630);
}
section[class*="tone-"] .stat .num { color: var(--tone); }
section[class*="tone-"] .btn { border-color: var(--tone); color: var(--tone); }
section[class*="tone-"] .btn:hover { background: var(--tone); color: var(--bg); }
/* Les tuiles vidéo gardent leur texte crème, quel que soit le ton de la section */
section[class*="tone-"] .card .thumb-title,
section[class*="tone-"] .card .soon-label { color: var(--white); }
/* Wordmarks isolés (header / footer) : le ton s'applique aussi */
.brand[class*="tone-"],
.brand-foot[class*="tone-"] { color: var(--tone); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ----- Utilitaires ----- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 1.2rem;
}

.btn {
  display: inline-block;
  border: 1px solid var(--black);
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--black); color: var(--white); }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 237, 205, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 16px;               /* HUMAN.PARIS : réduit ~20 % (deux mots) */
  letter-spacing: 0.18em;
}
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.25s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  border: 0; background: none; cursor: pointer;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ----- Sélecteur de langue ----- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lang-switch a,
.lang-switch span { color: var(--grey); }
.lang-switch [aria-current="true"] { color: var(--black); }
.lang-switch a:hover { color: var(--black); }
.nav .lang-switch a::after { display: none; }

/* ----- Hero / splash ----- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mosaïque des contenus produits (collage précomposé, img/collage-hero.jpg),
   figée au scroll et voilée papaya pour rester dans la charte */
.hero--collage {
  background-image:
    linear-gradient(rgba(250, 237, 205, 0.9), rgba(250, 237, 205, 0.82) 55%, rgba(250, 237, 205, 0.94)),
    url("../img/collage-hero.jpg");
  background-size: auto, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
}
@media (max-width: 720px) {
  /* iOS gère mal fixed : on repasse en défilement normal sur mobile */
  .hero--collage { background-attachment: scroll, scroll; }
}
/* Sur le collage, contraste garanti : textes en brun, hors rotation des tons */
section.hero--collage .wordmark,
section.hero--collage .statement { color: var(--tone-brown); }
section.hero--collage .baseline,
section.hero--collage .scroll-hint,
section.hero--collage .eyebrow,
section.hero--collage .lead,
section.hero--collage p { color: var(--black); }

/* Bande d'images (page Studio) : extraits des films, plein cadre */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}
.strip img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 720px) {
  .strip { grid-template-columns: 1fr; }
}
.hero .wordmark {
  font-weight: 800;
  /* Taille de base prudente ; ajustée exactement à la largeur par JS (fitWordmark) */
  font-size: clamp(34px, 10vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
  white-space: nowrap;
}
.hero .baseline {
  max-width: 30ch;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.35;
  margin: clamp(20px, 4vh, 48px) 0 0;
  color: var(--black);
}
.hero .scroll-hint {
  margin-top: auto;
  padding-bottom: clamp(16px, 4vh, 40px);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ----- Sections ----- */
section { padding-block: clamp(64px, 12vh, 140px); }
.section-line { border-top: 1px solid var(--line); }

.section-title {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  max-width: 18ch;
}

.lead {
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 0;
}

/* Grande accroche / manifeste */
.statement {
  font-size: clamp(34px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}

/* Bande de chiffres-clés */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 6vh, 64px);
}
.stat .num {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 12px;
}
.stat .label {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  max-width: 24ch;
}

/* Fondamentaux / colonnes */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.col h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 0.8rem;
}
.col p { color: var(--grey); margin: 0; }
.col p + p { margin-top: 0.65rem; }
.col .index {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--grey);
  margin: 0 0 1.2rem;
}

/* ----- Catalogue / grille de travaux ----- */
.filters {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filters-note {
  color: var(--grey);
  font-size: 14px;
  max-width: 64ch;
  margin: 0 0 clamp(28px, 5vh, 56px);
}
.filter {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter:hover { color: var(--black); }
.filter[aria-pressed="true"] {
  color: var(--black);
  border-color: var(--black);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.card { display: block; }

/* Vignette « anneau lecture » : tuile noire, point play centré, titre dessous.
   Quand un vrai visuel est dispo, ajouter <img class="thumb-img"> dans .thumb. */
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--tile);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 20px;
}
.card .thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity 0.3s ease, transform 0.5s ease;
}
.card:hover .thumb-img { opacity: 0.72; transform: scale(1.02); }

/* Carte mise en avant (ex. Denovo) : pleine largeur, format cinéma */
.card--feature { grid-column: 1 / -1; }
.card--feature .thumb { aspect-ratio: 21 / 9; }

/* Carte statique : visuel teaser sans player (non cliquable).
   L'image s'affiche en intégralité, à son ratio naturel (pas de recadrage). */
.card--static { cursor: default; }
.card--static .thumb {
  aspect-ratio: auto;
  display: block;
  padding: 0;
  position: relative;
}
.card--static .thumb-img {
  position: static;
  height: auto;
  opacity: 1;
}
.card--static:hover .thumb-img { opacity: 1; transform: none; }
/* Titre sous le visuel (le teaser parle de lui-même) : titre à gauche, tag à droite */
.card.card--static .meta { justify-content: space-between; }
.card--static .static-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

/* Distinction / prix (ex. AACC) */
.card .award {
  display: inline-block;
  border: 1px solid currentColor;
  color: var(--grey);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-top: 10px;
}
.card .ring {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(250, 237, 205, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.card .ring i {
  width: 0;
  height: 0;
  border-left: 12px solid var(--white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
  transition: border-left-color 0.3s ease;
}
.card .thumb-title {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}
.card:hover .ring {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.06);
}
.card:hover .ring i { border-left-color: var(--tile); }

.card .meta {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
}
.card .meta .client { display: none; }
.card .meta .tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

.card[hidden] { display: none; }

/* Carte « à venir » : non cliquable, label au lieu de l'anneau de lecture */
.card--soon { cursor: default; }
.card--soon .thumb { background: #241811; }
.soon-label {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(250, 237, 205, 0.4);
  color: rgba(250, 237, 205, 0.75);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
}

/* ----- Aperçu accueil (3 travaux) ----- */
.preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vh, 56px);
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}
.contact-info p { margin: 0 0 0.4rem; }
.contact-info a { border-bottom: 1px solid var(--black); }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--black);
  background: none;
  font: inherit;
  padding: 10px 0;
  color: var(--black);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--grey); }

/* Honeypot anti-spam : hors écran pour les humains, rempli par les bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Message de confirmation / erreur après envoi du formulaire */
.form-status {
  border: 1px solid currentColor;
  padding: 14px 18px;
  font-size: 15px;
  margin: 0 0 26px;
}

/* Références (page Communauté) : liens vers les productions de l'artiste */
.links-fieldset {
  border: 0;
  padding: 0;
  margin: 34px 0 0;
}
.form-legend {
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.add-link {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--grey);
  padding: 2px 0;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}
.add-link:hover { color: var(--black); }

/* ----- Lightbox vidéo (Vimeo) ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(30, 19, 11, 0.96);
}
.lightbox.open { display: flex; }
.lightbox-frame {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #1e130b;
}
.lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  border: 1px solid rgba(250, 237, 205, 0.6);
  background: rgba(30, 19, 11, 0.45);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.lightbox-tag:empty { display: none; }
.lightbox-close {
  position: absolute;
  top: clamp(16px, 4vh, 32px);
  right: var(--pad);
  border: 1px solid rgba(250, 237, 205, 0.6);
  background: none;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { background: var(--white); color: var(--black); }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--grey);
  font-size: 14px;
}
.site-footer .brand-foot { font-weight: 800; font-size: 14px; letter-spacing: 0.18em; }
.site-footer a { color: var(--grey); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--black); }

/* ----- Page légale / mentions ----- */
.legal { max-width: 70ch; }
.legal h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: clamp(40px, 6vh, 72px) 0 1rem;
}
.legal p { margin: 0 0 1.1rem; }
.legal ul { margin: 0 0 1.1rem 1.1rem; padding: 0; }
.legal li { margin-bottom: 0.5rem; }
.legal a { border-bottom: 1px solid var(--black); }

/* ----- Apparitions au scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 18px var(--pad); border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .lang-switch { padding: 18px var(--pad); border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
