/* ------------------------------------------------------------------
   chmoarbes.com — feuille de style unique
   Charte : papier ivoire, crayon bleu d'animation, ambre pour le
   développement. Bande perforée en colonne des crédits.
   Gabarito (titres) · Figtree (texte et repères).
   ------------------------------------------------------------------ */

:root {
  --paper:      #F3EFE7;
  --sheet:      #FBFAF6;
  --ink:        #1B2028;
  --muted:      #5C5A54;
  --pencil:     #2A5AA6;
  --amber:      #8C5A18;
  --hair:       rgba(27, 32, 40, 0.13);
  --perf:       rgba(42, 90, 166, 0.20);

  --display: "Gabarito", "Trebuchet MS", sans-serif;
  --body:    "Figtree", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pencil); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

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

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: 0.75rem; z-index: 20;
  background: var(--ink); color: var(--sheet);
  padding: 0.5rem 0.9rem; border-radius: 3px; font-size: 0.85rem;
}

/* ---------- utility labels (no typewriter face) ---------- */

.eyebrow {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 239, 231, 0.9);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}
.masthead__inner {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding-block: 1.15rem; flex-wrap: wrap;
}
.masthead__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.masthead nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: baseline; }
.masthead nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--pencil); }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.lang { padding-left: 1.4rem; border-left: 1px solid var(--hair); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.25rem, 8vw, 6.5rem) clamp(2.25rem, 5vw, 3.5rem); }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--pencil); }
.hero__thesis {
  font-size: clamp(1.1rem, 2.1vw, 1.38rem);
  line-height: 1.55;
  max-width: 47ch;
  margin: 0 0 2.4rem;
}
.hero__titles {
  border-top: 1px solid var(--hair);
  padding-top: 1.4rem;
  max-width: var(--measure);
  font-size: 0.95rem;
  line-height: 2;
  color: var(--muted);
}
.hero__titles b { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */

.section { padding-block: clamp(2.75rem, 6vw, 5rem); border-top: 1px solid var(--hair); }
.section--open { border-top: 0; }
.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 1.4rem;
}
.section p { max-width: var(--measure); }
.lede { font-size: 1.1rem; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 1.1rem;
}
.page-head p { max-width: var(--measure); font-size: 1.1rem; margin: 0; }

/* ---------- credits: the perforated spine ---------- */

.reel { margin-top: 2.5rem; position: relative; }
.reel__strip {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 15px;
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  background-image: repeating-linear-gradient(
    to bottom, var(--perf) 0 9px, transparent 9px 26px);
  background-position: 0 6px;
  pointer-events: none;
}

.credit {
  display: grid;
  grid-template-columns: 5.5rem 8rem 1fr 14rem;
  gap: 0.4rem 1.6rem;
  padding: 1.05rem 0 1.05rem 3.25rem;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.credit:last-child { border-bottom: 0; }

.credit > picture { display: block; }

/* bouton qui enveloppe la vignette */
.credit__zoom {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 3px;
  line-height: 0;
}
.credit__zoom img { transition: opacity 0.15s ease; }
.credit__zoom:hover img { opacity: 0.82; }

.credit__still {
  width: 5.5rem; aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--sheet);
}
.credit__still--empty {
  background: var(--sheet);
  border-color: var(--hair);
}

.credit__year {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.1rem;
}
.credit__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
}
.credit__role {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.credit__co { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

.rights {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: var(--measure);
  line-height: 1.55;
}

/* ---------- development slate ---------- */

.slate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  margin-top: 2.25rem;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
}
.slate article { background: var(--sheet); padding: 1.7rem 1.55rem 1.85rem; }
.slate h3 {
  font-family: var(--display);
  font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.015em; margin: 0 0 0.25rem;
}
.slate__format {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 0.85rem;
}
.slate p { margin: 0; font-size: 0.97rem; }

/* ---------- ghostwriting ---------- */

.desk {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: clamp(1.7rem, 4vw, 2.85rem);
  margin-top: 2.25rem;
  max-width: 46rem;
}
.desk ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.6rem; }
.desk li { padding-left: 1.5rem; position: relative; font-size: 1rem; }
.desk li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
}

.cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--sheet);
  background: var(--ink);
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.cta:hover, .cta:focus-visible {
  background: var(--pencil); border-color: var(--pencil); color: var(--sheet);
}
.cta__note { font-size: 0.85rem; color: var(--muted); margin-top: 0.95rem; }

/* ---------- columns ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.6rem, 4vw, 3.25rem);
  margin-top: 2rem;
}
.cols h3 {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hair);
}
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { font-size: 0.97rem; padding-block: 0.22rem; }

.contact-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0; word-break: break-word;
}
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.colophon {
  border-top: 1px solid var(--hair);
  padding-block: 2rem 3rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex; gap: 1.4rem; flex-wrap: wrap;
}
.colophon a { color: var(--muted); text-decoration: none; }
.colophon a:hover { color: var(--pencil); }

/* ---------- responsive ---------- */

@media (max-width: 52rem) {
  .credit { grid-template-columns: 5.5rem 1fr; }
  .credit__year { grid-column: 2; order: -1; }
  .credit > picture,
  .credit > .credit__zoom,
  .credit > .credit__still { grid-row: span 3; }
  .credit__co { grid-column: 2; }
}

@media (max-width: 34rem) {
  .reel__strip { display: none; }
  .credit { grid-template-columns: 1fr; padding-left: 0; gap: 0.3rem; }
  .credit > picture,
  .credit > .credit__zoom,
  .credit > .credit__still { grid-row: auto; }
  .credit__zoom, .credit__zoom img { width: 100%; max-width: 12rem; }
  .credit__still { width: 100%; max-width: 12rem; margin-bottom: 0.4rem; }
  .credit__year, .credit__co { grid-column: auto; }
  .masthead { position: static; }
  .masthead__inner { gap: 0.8rem 1.1rem; }
  .lang { padding-left: 0; border-left: 0; }
}


/* ---------- visionneuse ---------- */

.visionneuse[hidden] { display: none; }
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.visionneuse__fond {
  position: absolute;
  inset: 0;
  background: rgba(27, 32, 40, 0.88);
}
.visionneuse__cadre {
  position: relative;
  max-width: min(52rem, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}
.visionneuse__image {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: var(--sheet);
}
.visionneuse__legende {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sheet);
  text-align: center;
  margin: 0;
}
.visionneuse__barre { display: flex; gap: 0.6rem; align-items: center; }
.visionneuse button {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.visionneuse button:hover,
.visionneuse button:focus-visible {
  background: var(--pencil);
  color: var(--sheet);
}
.visionneuse :focus-visible { outline: 2px solid var(--sheet); outline-offset: 3px; }

@media (max-width: 34rem) {
  .visionneuse__image { max-height: 62vh; }
}
