/* ---------------------------------------------------------------------------
   Base — socle partagé par tous les thèmes.
   Ne contient aucune décision d'identité : uniquement la mécanique, les
   polices, les états et les surfaces du navigateur.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-100900-0.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/bricolage-200800-0.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../assets/fonts/spectral-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../assets/fonts/spectral-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-normal-1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../assets/fonts/spectral-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../assets/fonts/spectral-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-italic-0.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-400-0.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Spline Mono";
  src: url("../assets/fonts/spline-mono-400-0.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Spline Mono";
  src: url("../assets/fonts/spline-mono-500-1.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Le rebond élastique reste, le tirer-pour-recharger s'arrête ici. */
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  min-height: 100svh;
  overscroll-behavior-y: contain;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

picture {
  display: contents;
}

/* Protection des photos : pas de menu d'enregistrement à l'appui long.
   Le texte reste sélectionnable (aucun user-select:none global). */
img,
picture {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--select-bg, currentColor);
  color: var(--select-ink, Canvas);
}

:focus-visible {
  outline: 2px solid var(--focus, currentColor);
  outline-offset: 3px;
  border-radius: 1px;
}

* {
  scrollbar-color: var(--bar, #777) transparent;
  scrollbar-width: thin;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--skip-bg, #111);
  color: var(--skip-ink, #fff);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible {
  transform: none;
}

/* Conteneur d'image : le LQIP est porté par le parent, l'image le recouvre. */
.frame {
  position: relative;
  overflow: hidden;
  background-color: var(--tint, #1a1a1a);
  background-size: cover;
  background-position: center;
}
.frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

/* Révélation au défilement : visible par défaut, animée seulement si JS. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Réglages d'aperçu. */
.no-lightbox [data-lb] {
  cursor: default;
}


.no-intro .intro {
  display: none !important;
}

.no-captions figcaption,
.no-captions .lb-cap,
.no-captions .cap,
.no-captions .cap-no,
.no-captions .cap-row,
.no-captions .fr-cap,
.no-captions .shot-cap,
.no-captions .spread-caption,
.no-captions .tile-cap,
.no-captions .project-hero-cap,
.no-captions .shot figcaption,
.no-captions .plate figcaption,
.no-captions .fr figcaption {
  display: none !important;
}

/* Lightbox commune. */
dialog.lb {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--lb-bg, #0a0a0a);
  color: var(--lb-ink, #f2f2f2);
  overscroll-behavior: contain;
}
dialog.lb::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.lb[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 12px;
}
.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 18px;
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(100svh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px 22px;
  font-size: 12px;
}
.lb button {
  background: none;
  border: 1px solid currentColor;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.lb button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* Maison */
/* ---------------------------------------------------------------------------
   Maison — chaleureux, rond, storytelling.
--------------------------------------------------------------------------- */

:root {
  --bg: #f4e8da;
  --ink: #3a2a20;
  --muted: #7a6354;
  --accent: #a8442a;
  --rule: #e2cdb6;
  --card: #faf3e9;
  --pad: clamp(20px, 4.6vw, 68px);
  --radius: 26px;
  --display: "Bricolage", "Archivo", sans-serif;
  --serif: "Spectral", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Mono", ui-monospace, monospace;
  --focus: #3a2a20;
  --select-bg: #3a2a20;
  --select-ink: #f4e8da;
  --bar: #cbb49c;
}

html[data-mode="dark"] {
  --bg: #1a1310;
  --ink: #f2e6d8;
  --muted: #b9a392;
  --accent: #f08a5c;
  --rule: #3a2c24;
  --card: #221a15;
  --focus: #f2e6d8;
  --select-bg: #f2e6d8;
  --select-ink: #1a1310;
  --bar: #4a382c;
}

body {
  margin: 0;
  padding: 0 var(--pad);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

/* --- Bandeau ------------------------------------------------------------ */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.top-role {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pill:hover {
  background: var(--ink);
  color: var(--bg);
}

/* --- Accueil ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
  padding: clamp(30px, 5vw, 80px) 0 clamp(50px, 8vw, 120px);
}

.hero-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 0 0 20px;
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
}

.hero-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-media {
  display: block;
}

.hero-img {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Séries ------------------------------------------------------------- */

.series {
  padding: clamp(30px, 5vw, 70px) 0 clamp(40px, 6vw, 90px);
  border-top: 1px solid var(--rule);
}

.series-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.series-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 46px);
  letter-spacing: -0.03em;
}

.series-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.card {
  display: grid;
  gap: 12px;
}

.card-media {
  display: block;
}

.card-img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-media:hover .card-img img {
  transform: scale(1.02);
}

.card-text h3 {
  margin: 0 0 3px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 26px);
  letter-spacing: -0.02em;
}

.card-text h3 a {
  color: inherit;
  text-decoration: none;
}

.card-text h3 a:hover {
  color: var(--accent);
}

.card-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* --- Page série --------------------------------------------------------- */

.serie-head {
  max-width: 760px;
  padding: clamp(30px, 5vw, 80px) 0 clamp(34px, 5vw, 64px);
}

.serie-no {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.serie-head h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.serie-sum {
  margin: 0;
  max-width: 52ch;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}

.shots {
  columns: 2;
  column-gap: clamp(18px, 2.6vw, 34px);
  padding-bottom: clamp(40px, 6vw, 90px);
}

.shot {
  break-inside: avoid;
  margin: 0 0 clamp(20px, 2.6vw, 34px);
}

.shot-img {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}

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

.shot figcaption {
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}

.next {
  padding: clamp(26px, 4vw, 50px) 0;
  border-top: 1px solid var(--rule);
}

.next .mono {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.next a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
}

.next a:hover {
  color: var(--accent);
}

/* --- Pied --------------------------------------------------------------- */

.foot {
  display: grid;
  gap: 10px;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 70px);
  border-top: 1px solid var(--rule);
}

.foot-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.foot-mail {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  justify-self: start;
  padding-bottom: 2px;
}

.foot-mail:hover {
  border-color: var(--ink);
}

.foot-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.foot-meta a {
  color: inherit;
  text-decoration: none;
}

/* --- Intro -------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-content: center;
  background: var(--bg);
  pointer-events: none;
  animation: intro-out 0.75s cubic-bezier(0.76, 0, 0.24, 1) 1s forwards;
}

.intro-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: -0.03em;
  animation: intro-in 0.8s 0.1s both;
}

@keyframes intro-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes intro-out {
  to {
    opacity: 0;
  }
}

/* --- Coins et palettes -------------------------------------------------- */

html[data-coins="nets"] {
  --radius: 0px;
}

html[data-palette="olive"][data-mode="light"] {
  --bg: #eef0e4;
  --ink: #2a3122;
  --muted: #64705a;
  --accent: #56662f;
  --rule: #d3d8c4;
  --card: #f5f7ee;
}

html[data-palette="olive"][data-mode="dark"] {
  --bg: #12160f;
  --ink: #e9eddf;
  --muted: #9aa58f;
  --accent: #b9d27a;
  --rule: #2c3325;
  --card: #1a1f15;
}

html[data-palette="ocre"][data-mode="light"] {
  --bg: #f6efd9;
  --ink: #3a2f1a;
  --muted: #7a6a4a;
  --accent: #8a5a12;
  --rule: #e3d5b4;
  --card: #fbf5e6;
}

html[data-palette="ocre"][data-mode="dark"] {
  --bg: #1a1509;
  --ink: #f4ecd8;
  --muted: #bba98a;
  --accent: #e8b25c;
  --rule: #3a3220;
  --card: #221d10;
}

/* --- Adaptations -------------------------------------------------------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-media {
    order: -1;
  }

  .hero-img {
    aspect-ratio: 4 / 3;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .shots {
    columns: 1;
  }
}
