/* ============================================================
   CLARET — feuille de style unique
   Style : éditorial / magazine · papier crème · accent claret
   ============================================================ */

:root {
  --paper: #f4f0e7;
  --paper-2: #ece6d9;
  --ink: #181513;
  --ink-soft: #5d564c;
  --claret: #7a1228;       /* le rouge "claret" — clin d'œil au nom */
  --claret-deep: #5a0d1e;
  --line: rgba(24, 21, 19, 0.16);
  --line-strong: rgba(24, 21, 19, 0.4);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ff: "TikTok Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ff-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ── Reset léger ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Utilitaires typographiques ──────────────────────────── */
.kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 1.3rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}
.section-label::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--claret);
  flex: none;
}

/* ── Header / nav ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.34em;
  font-size: 0.98rem;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-soft); transition: color 0.18s;
}
.nav a:hover { color: var(--ink); }

.lang {
  display: inline-flex; align-items: center; gap: 0.15rem;
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 2px; margin-left: 0.4rem;
}
.lang button {
  border: 0; background: transparent; color: var(--ink-soft);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 2px; line-height: 1;
}
.lang button.is-active { background: var(--ink); color: var(--paper); }

.menu-toggle { display: none; border: 0; background: transparent; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.2s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #f6f2ea;
  overflow: hidden;
}
.hero__media.media { position: absolute; inset: 0; z-index: 0; background: #211d1a; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,9,8,0.45) 0%, rgba(12,9,8,0.05) 30%, rgba(12,9,8,0.75) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(28px, 6vw, 64px); padding-top: 90px; }
.hero__top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(246,242,234,0.85); margin-bottom: auto; }
.hero__title {
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0.2em 0 0.3rem;
  text-transform: uppercase;
}
.hero__role { font-size: clamp(0.85rem, 2vw, 1.05rem); font-weight: 600; letter-spacing: 0.04em; color: rgba(246,242,234,0.92); }
.hero__scroll { margin-top: 1.6rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(246,242,234,0.7); display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__scroll::before { content: ""; width: 34px; height: 1px; background: rgba(246,242,234,0.6); }

/* ── Sections génériques ─────────────────────────────────── */
section { padding-block: clamp(56px, 9vw, 120px); }
.section--alt { background: var(--paper-2); }

/* ── Dernière sortie (vidéo) ─────────────────────────────── */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.6);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__caption { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ── À propos ────────────────────────────────────────────── */
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__lead { font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.3; margin: 0 0 1.6rem; }
.about__body p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 56ch; }
.about__media { position: relative; }

/* ── Crédits ─────────────────────────────────────────────── */
.credits__intro { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 2.2rem; max-width: 52ch; }
.credits { border-top: 1px solid var(--line); }
.credit {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr auto;
  gap: 1.5rem; align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.credit__main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.credit__title { font-weight: 700; font-size: 1.08rem; }
.credit--featured .credit__title { color: var(--claret-deep); }
.credit--featured .credit__title::after {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--claret); margin-left: 9px; vertical-align: middle;
}
.credit__artist { font-size: 0.85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.credit__roles { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.role { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em; padding: 3px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); white-space: nowrap; }
.credit__date { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.credits__empty { padding: 1.5rem 0; color: var(--ink-soft); }
.credits__more { margin-top: 2.2rem; }

/* ── Galerie ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  grid-auto-flow: dense;
}
.gallery-grid figure {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-grid figure.g-tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; image-orientation: from-image; transition: filter 0.4s ease; }
.gallery-grid figure:hover img { filter: brightness(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.8rem; font-size: 0.76rem; letter-spacing: 0.02em;
  color: #f6f2ea; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(12,9,8,0.7));
}
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure.g-tall { grid-row: auto; }
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.8rem 1.4rem; border-radius: 2px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--claret { background: var(--claret); border-color: var(--claret); color: #fff; }
.btn--claret:hover { background: var(--claret-deep); border-color: var(--claret-deep); }
.btn__arrow { font-size: 0.9em; opacity: 0.7; }

/* ── Bloc Services (teaser sur l'accueil) ────────────────── */
.services-teaser__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.services-teaser h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; margin: 0.5rem 0 0.8rem; line-height: 1.12; }
.services-teaser p { color: var(--ink-soft); max-width: 46ch; margin: 0; }

/* ── Contact ─────────────────────────────────────────────── */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 1rem; }
.contact__lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 40ch; }
.links { display: flex; flex-direction: column; }
.links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-top: 1px solid var(--line);
  font-weight: 600; transition: padding 0.18s, color 0.18s;
}
.links a:last-child { border-bottom: 1px solid var(--line); }
.links a:hover { padding-left: 0.5rem; color: var(--claret); }
.links a .ext { font-size: 0.78rem; color: var(--ink-soft); }

/* ── Page Services ───────────────────────────────────────── */
.sv-hero { padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.sv-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1; margin: 0.6rem 0 1.1rem; }
.sv-hero p { font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--ink-soft); max-width: 40ch; margin: 0; }

.service { padding-block: clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.service__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.service__tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--claret); }
.service h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; margin: 0.7rem 0 0.6rem; line-height: 1.04; }
.service__desc { font-size: 1.1rem; color: var(--ink-soft); max-width: 50ch; margin: 0 0 2.6rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.feature { border-top: 1px solid var(--ink); padding-top: 1rem; }
.feature h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

.sv-cta { padding-block: clamp(56px, 9vw, 120px); text-align: center; }
.sv-cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.sv-cta p { color: var(--ink-soft); margin: 0 auto 2rem; max-width: 38ch; }
.sv-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer .brand { font-size: 0.92rem; }
.footer-logo { height: 68px; width: auto; }
.site-footer__meta { font-size: 0.76rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* ── Placeholder image manquante (utile en test) ─────────── */
.media { position: relative; background: #e7e2d7; overflow: hidden; }
.media--missing img { visibility: hidden; }

/* ── Pairing serif (Newsreader) sur les grands titres ────── */
.hero__title,
.about__lead,
.services-teaser h2,
.service h2,
.sv-hero h1,
.sv-cta h2,
.contact__title {
  font-family: var(--ff-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__title { font-weight: 500; letter-spacing: 0.01em; }
.about__lead {
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  line-height: 1.32;
}
/* italique éditorial pour la légende vidéo */
.video__caption { font-family: var(--ff-serif); font-style: italic; font-size: 0.98rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    transform: translateY(-120%); transition: transform 0.25s; z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .lang { margin: 0.8rem 0 0; }
  .menu-toggle { display: block; }
  .about__grid, .contact__grid, .services-teaser__grid { grid-template-columns: 1fr; }
  .credit { grid-template-columns: 1fr auto; gap: 0.5rem 1rem; }
  .credit__roles { grid-column: 1 / -1; order: 3; }
  .credit__date { order: 2; }
}
