/* =============================================================================
   kntera — Le récit
   Feuille de style unique, écrite à la main. Aucune étape de build : le dossier
   src/ est servi tel quel par nginx.

   Pour retoucher la couleur d'accent de tout le site, une seule variable :
   --accent (ci-dessous). Les teintes dérivées suivent automatiquement.
   ========================================================================== */

/* ----------------------------------------------------------------- Polices */
/* Cormorant Garamond et Jost, sous-ensembles latin / latin-ext, auto-hébergés
   dans assets/fonts/ — aucune requête vers un tiers. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ Jetons */

:root {
  /* papiers */
  --paper: #FAF6EF;
  --paper-alt: #F2E9DB;
  --card: #FFFDF9;

  /* encres */
  --ink: #23201C;
  --ink-hero: #4A423A;
  --ink-body: #5A5147;
  --ink-quote: #3B342C;
  --ink-lead: #554D43;
  --nav-ink: #6B6157;
  --muted: #8A7F70;
  --muted-soft: #A69B8B;

  /* accent — seule couleur de marque, tout le reste en découle */
  --accent: #A4543A;
  --accent-strong: #8A4530;
  --accent-strong: color-mix(in srgb, var(--accent) 84%, var(--ink));
  --accent-wash: rgba(164, 84, 58, 0.07);
  --accent-wash: color-mix(in srgb, var(--accent) 8%, transparent);

  /* filets */
  --rule-faint: rgba(35, 32, 28, 0.08);
  --rule-soft: rgba(35, 32, 28, 0.14);
  --rule: rgba(35, 32, 28, 0.18);
  --rule-strong: rgba(35, 32, 28, 0.24);

  /* typographie */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* mesures */
  --header-h: 72px;
  --gutter: clamp(28px, 6vw, 96px);
  --shell: 1480px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------------- Socle */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .35s ease;
}
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; }

::selection { background: #EBD9BC; }

@keyframes kDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

/* ------------------------------------------------- Apparition progressive */
/* L'état masqué n'existe que si le JS a marqué <html class="js">. Sans JS,
   ou si le script échoue, tout le contenu reste visible. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}

/* ------------------------------------------------ Barre de progression */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 80;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ------------------------------------------------------------ En-tête fixe */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(250, 246, 239, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-faint);
}

.brand {
  flex: none;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 23px;
  letter-spacing: .06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.site-nav a { color: var(--nav-ink); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.is-cta {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* ------------------------------------------------------- Éléments communs */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
}
.eyebrow--center { justify-content: center; margin-bottom: clamp(30px, 4vw, 52px); }
.eyebrow__rule {
  display: block;
  flex: none;
  width: 34px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--center .eyebrow__rule { width: 26px; }
.eyebrow__label {
  font-size: 10.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 38px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .35s ease, border-color .35s ease, background-color .35s ease, transform .35s ease;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}
.btn--lg { padding: 17px 40px; }
.btn--solid {
  padding: 22px 62px;
  border-color: transparent;
  background: var(--accent);
  color: #FDFBF7;
  font-size: 11.5px;
  letter-spacing: .26em;
}
.btn--solid:hover {
  border-color: transparent;
  background: var(--accent-strong);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.prose {
  margin: 28px 0 0;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-body);
  text-wrap: pretty;
}
.prose--flush { margin-top: 0; }

.lead {
  margin: 26px 0 0;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-body);
  max-width: 52ch;
  text-wrap: pretty;
}
.lead--wide { max-width: 54ch; }

.section-cta { margin-top: clamp(48px, 5vw, 76px); }

/* ----------------------------------------------------------- Prologue */

.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 100vh;
  padding-top: var(--header-h);
  background-image: radial-gradient(900px 520px at 78% 4%, rgba(224, 181, 110, .13), rgba(250, 246, 239, 0) 72%);
}

.hero__text {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  min-width: 0;
}

.hero__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(62px, 8.5vw, 124px);
  line-height: .95;
  letter-spacing: -.025em;
  color: var(--ink);
}

.hero__lead {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.6;
  color: var(--ink-hero);
  max-width: 30em;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 48px;
}

.hint {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  animation: kDrift 3.4s ease-in-out infinite;
}

.hero__media {
  flex: 1.12 1 480px;
  position: relative;
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 62vh;
  max-height: 86vh;
  object-fit: cover;
  object-position: 52% 50%;
  mix-blend-mode: multiply;
}
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, var(--paper) 0%, rgba(250, 246, 239, .55) 9%, rgba(250, 246, 239, 0) 26%);
}

/* ----------------------------------------------------------- Chapitres */

.chapter {
  scroll-margin-top: 76px;
  padding: clamp(90px, 11vw, 168px) 0;
}
.chapter--tight { padding: clamp(70px, 9vw, 130px) 0; }
.chapter--tail { padding-bottom: clamp(90px, 11vw, 160px); }

.chapter__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
}
/* wrap-reverse : le texte précède l'image dans le DOM, mais l'image repasse
   au-dessus dès que les colonnes s'empilent. */
.chapter__inner--reverse { flex-wrap: wrap-reverse; }

.chapter__media {
  flex: 1.2 1 430px;
  position: relative;
  min-width: 0;
}
.chapter__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.chapter__body {
  flex: 1 1 400px;
  max-width: 540px;
  min-width: 0;
}

.chapter-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}
.chapter-mark__numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
}
.chapter-mark__rule {
  display: block;
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--rule);
}
.chapter-mark__label {
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ink);
}

.chapter__body .btn { margin-top: 40px; }

/* ----------------------------------------------------------- Interlude */

.quote {
  background: var(--paper-alt);
  padding: clamp(84px, 11vw, 150px) var(--gutter);
  text-align: center;
}
.quote__text {
  margin: 0 auto;
  max-width: 17em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(27px, 3.4vw, 46px);
  line-height: 1.42;
  color: var(--ink-quote);
}
.quote__rule {
  display: block;
  width: 40px;
  height: 1px;
  margin: 40px auto 0;
  background: var(--accent);
}

/* ------------------------------------------------------ Note d'expertise */

.note { padding: clamp(80px, 10vw, 140px) var(--gutter); }

.note__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 80px);
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--rule-soft);
}

.note__aside { flex: 0 1 240px; min-width: 0; }
.note__label {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.note__title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  color: var(--ink);
}

.note__body { flex: 1 1 420px; min-width: 0; max-width: 620px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.tag {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}

/* -------------------------------------------------------------- Valeurs */

.values {
  scroll-margin-top: 76px;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.values__inner { max-width: 1280px; margin: 0 auto; }
.values__head { max-width: 720px; }

.values__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(48px, 5.5vw, 76px);
}

.value {
  flex: 1 1 240px;
  min-width: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(35, 32, 28, .16);
}
.value__label {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.value__title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.12;
  color: var(--ink);
}
.value__text {
  margin: 16px 0 0;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-body);
  text-wrap: pretty;
}

/* --------------------------------------------------------- Réalisations */

.work {
  scroll-margin-top: 76px;
  border-top: 1px solid var(--rule-faint);
  background: var(--paper-alt);
  padding: clamp(90px, 11vw, 160px) var(--gutter);
}
.work__inner { max-width: var(--shell); margin: 0 auto; }
.work__head { max-width: 760px; }

.work__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 3.4vw, 52px);
  margin-top: clamp(52px, 6vw, 84px);
}

.work-card { flex: 1 1 400px; min-width: 0; }

.work-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(35, 32, 28, .12);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Réservation visuelle pour une carte encore sans capture. */
.work-card__slot {
  margin: 0;
  padding: 0 24px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.work-card__head {
  margin-top: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.work-card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  color: var(--ink);
}
/* L'italique gris du sketch signalait un texte de reservation. Maintenant que
   les descriptions sont redigees, on repasse en corps de texte lisible. */
.work-card__note {
  margin: 18px 0 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-body);
  text-wrap: pretty;
}

/* -------------------------------------------------------------- Épilogue */

.epilogue {
  position: relative;
  scroll-margin-top: 76px;
  overflow: hidden;
  background: var(--paper-alt);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(40px, 5vw, 64px);
  text-align: center;
}

.epilogue__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  mix-blend-mode: multiply;
  opacity: .2;
  pointer-events: none;
}

.epilogue__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: auto;
}

.epilogue__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7.2vw, 116px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--ink);
}

.epilogue__lead {
  margin: clamp(30px, 3.6vw, 48px) auto 0;
  max-width: 40ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.65;
  color: var(--ink-lead);
  text-wrap: pretty;
}

.epilogue .btn--solid { margin-top: clamp(44px, 5vw, 72px); }

.colophon {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: auto auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(35, 32, 28, .12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.colophon__brand {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--ink);
}
.colophon__legal {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- Petits écrans */

@media (max-width: 640px) {
  .site-header { gap: 12px; padding: 0 18px; }
  .brand { font-size: 20px; }
  .site-nav {
    gap: 14px;
    font-size: 9.5px;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  .colophon { justify-content: center; text-align: center; }
}

/* Sous 480px les trois liens ne tiennent plus sur une ligne. On retire « Le
   récit » : le bouton « Explorer le récit » du prologue mène au même endroit,
   à un écran de distance. */
@media (max-width: 480px) {
  .site-nav a:first-child { display: none; }
}

/* --------------------------------------------------- Mouvement réduit */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hint { animation: none; }
  .btn, a { transition: none; }
  .btn--solid:hover { transform: none; }
}
