/* ---------------------------------------------------------------------------
   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;
  }
}


/* Pastille */
/* ---------------------------------------------------------------------------
   Pastille — jaune acide, disques qui se chevauchent, boutons en pilules.
--------------------------------------------------------------------------- */

:root {
  --yellow: #f2ff3b;
  --ink: #111110;
  --white: #fdfcf6;
  --muted: #4a4a36;
  --radius: 30px;
  --pad: clamp(16px, 3vw, 46px);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Mono", ui-monospace, monospace;
  --focus: #111110;
  --select-bg: #111110;
  --select-ink: #f2ff3b;
  --bar: #b9c22a;
}

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

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

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 40px) 0 18px;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  margin: 0;
  font-size: clamp(38px, 7vw, 92px);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-1px);
}

.pill--light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}

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

/* --- Disques ------------------------------------------------------------ */

.reel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(18px, 3vw, 32px);
  border-bottom: 2px solid var(--ink);
}

.reel-title {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

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

.reel {
  padding: clamp(20px, 3.4vw, 44px) 0 clamp(20px, 3vw, 40px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.reel::-webkit-scrollbar {
  display: none;
}

.discs {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
}

.disc-item {
  position: relative;
  z-index: 1;
}

.disc-item + .disc-item {
  margin-left: clamp(-90px, -6vw, -30px);
}

/* Le disque survolé passe au-dessus de ses voisins. */
.disc-item:hover,
.disc-item:focus-within {
  z-index: 10;
}

.disc {
  display: block;
  width: clamp(210px, 25vw, 340px);
  text-decoration: none;
  color: inherit;
}

.disc-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--white);
}

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

.disc-num {
  margin-right: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.disc-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.disc-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(17 17 16 / 0.32);
}

.disc-cta {
  position: relative;
  z-index: 1;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.disc:hover .disc-hover,
.disc:focus-visible .disc-hover {
  opacity: 1;
}

.disc:hover .disc-img img,
.disc:focus-visible .disc-img img {
  transform: scale(1.06);
}

.disc {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.disc:hover,
.disc:focus-visible {
  transform: translateY(-8px);
}

.disc-title {
  display: inline-block;
  margin: 14px 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.disc:hover .disc-title {
  background: var(--ink);
  color: var(--yellow);
}

.disc-meta {
  display: block;
  margin: 8px 0 0 16px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* --- À propos ----------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(34px, 6vw, 80px) 0;
  border-top: 2px solid var(--ink);
}

.statement {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.about-side {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 40ch;
}

.about-side p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

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

.about-side .pill {
  justify-self: start;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.foot p {
  margin: 0;
}

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

.foot a:hover {
  text-decoration: underline;
}

/* --- Page projet -------------------------------------------------------- */

.top .back {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.top .back:hover {
  text-decoration: underline;
}

.project {
  padding-bottom: clamp(30px, 5vw, 60px);
}

.project-head {
  padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px);
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.project-head h1 {
  margin: 0 0 12px;
  font-size: clamp(44px, 9vw, 132px);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

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

.project-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(10px, 2vw, 24px) 0 clamp(30px, 5vw, 60px);
  text-decoration: none;
  color: inherit;
}

.project-circle {
  display: block;
  width: min(56vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ink);
}

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

.project-hero:hover .project-circle img {
  transform: scale(1.04);
}

.project-hero-cap {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  text-align: center;
}

.plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 30px);
}

.plate {
  margin: 0;
}

.plate-img {
  display: block;
  aspect-ratio: var(--ar);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.plate-link:hover .plate-img img {
  transform: scale(1.03);
}

.plate figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--muted);
}

.next {
  margin-top: clamp(36px, 6vw, 70px);
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.next a {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.next span {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.next strong {
  font-size: clamp(28px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

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

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

.intro span {
  width: clamp(90px, 16vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--ink);
  animation: intro-disc 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes intro-disc {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
}

@keyframes intro-out {
  to {
    transform: translateY(-101%);
  }
}

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

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .top {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .project-circle {
    width: 78vw;
  }

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

  .disc {
    width: 62vw;
  }

  .disc-item + .disc-item {
    margin-left: -14vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .disc-img img,
  .plate-img img {
    transition: none;
  }
}

/* --- Sortie d'intro : effondrement sur le disque --- */

/* Sortie : l'écran s'effondre sur le disque. */
@keyframes intro-out {
  to {
    opacity: 0;
    transform: scale(0.06);
    border-radius: 50%;
  }
}

/* --- Options du thème --------------------------------------------------- */

html[data-size="large"] .disc {
  width: clamp(260px, 32vw, 420px);
}

html.no-labels .disc-title,
html.no-labels .disc-meta {
  display: none;
}

html[data-mode="dark"] {
  --yellow: #121210;
  --ink: #f2ff3b;
  --white: #1e1e19;
  --muted: #b8c23f;
  --focus: #f2ff3b;
  --select-bg: #f2ff3b;
  --select-ink: #121210;
  --bar: #4b4b37;
}


/* --- Palettes ----------------------------------------------------------- */



/* Palettes : variantes du mode opposé. */

/* --- Palettes ----------------------------------------------------------- */

html[data-palette="rose"][data-mode="light"] {
  --yellow: #ff9ed7;
  --ink: #111110;
  --white: #fdf6fa;
  --muted: #3d2433;
  --bar: #d97fb5;
  --select-bg: #111110;
  --select-ink: #ff9ed7;
}

html[data-palette="rose"][data-mode="dark"] {
  --yellow: #200f18;
  --ink: #ff9ed7;
  --white: #2a1822;
  --muted: #e0a8c4;
  --bar: #5a3a4a;
  --select-bg: #ff9ed7;
  --select-ink: #200f18;
}

html[data-palette="menthe"][data-mode="light"] {
  --yellow: #a6f7c9;
  --ink: #0f1a14;
  --white: #f6fdf8;
  --muted: #2f4a3c;
  --bar: #6fbf93;
  --select-bg: #0f1a14;
  --select-ink: #a6f7c9;
}

html[data-palette="menthe"][data-mode="dark"] {
  --yellow: #0f1c14;
  --ink: #a6f7c9;
  --white: #18281e;
  --muted: #9fd8b8;
  --bar: #3f5a4a;
  --select-bg: #a6f7c9;
  --select-ink: #0f1c14;
}
