/* =============================================================
   Eloic Foucart — Portfolio
   Self-hosted fonts · Retina/P3 · Responsive · RGPD-ready
   ============================================================= */

/* ---- Polices : polices.css (typo de Matea-Wildlife) ---- */
/* ---- Design tokens ---- */
:root {
  color-scheme: light;

  /* Même papier ivoire que les pages de lecture (pages.css) et que l'écran
     de chargement : le site ne change pas de blanc en changeant de page. */
  --paper-0:   #faf7f0;
  --paper-1:   #f0ebe0;
  --paper-ink: #0d1113;
  --muted:     #6b7280;
  --muted-2:   #9aa1a6;
  --line:      rgba(0,0,0,.09);

  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   20px;

  /* L'espacement vit dans assets/css/echelle.css. */

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-pill: 999px;

  /* Le tempo du site vit dans tempo.css : les deux gabarits du site
     la chargent, celle-ci non. */

  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; height: 100%;
  background: var(--paper-0);
  color: var(--paper-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--paper-ink); color: var(--paper-0); }

/* Accessible focus */
:focus         { outline: none; }
:focus-visible {
  outline: 2px solid var(--paper-ink);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Cibles focalisées par programmation (titres de panneau, pour les lecteurs
   d'écran) : jamais atteignables au clavier → aucun anneau visible. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible { outline: none; }

/* Visually hidden but readable by screen readers & crawlers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

#app {
  height: 100vh;   /* fallback navigateurs sans svh */
  height: 100svh;  /* hauteur stable : ignore l'apparition/disparition de la barre d'URL mobile */
}

.wrap {
  max-width: min(max(1480px, 88vw), 2280px);   /* grands écrans : voir « GRANDS ÉCRANS » */
  margin: 0 auto;
  padding-left:  max(clamp(20px, 3.4vw, 48px), var(--sal));
  padding-right: max(clamp(20px, 3.4vw, 48px), var(--sar));
}

/* =============================================================
   KEYFRAMES
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0);   }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes ringPulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.4); opacity: 0;  }
  100% { transform: scale(1.4); opacity: 0;  }
}

/* =============================================================
   FLOATING HEADER
   ============================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding-top:    max(clamp(18px, 2.4vw, 30px), var(--sat));
  padding-bottom: clamp(18px, 2.4vw, 30px);
  padding-left:   max(clamp(20px, 3.4vw, 48px), var(--sal));
  padding-right:  max(clamp(20px, 3.4vw, 48px), var(--sar));
  pointer-events: none;
  transition: color var(--dur-enter) var(--ease-out),
              border-color var(--dur-enter) var(--ease-out);
  border-bottom: 1px solid transparent;
  animation: fadeIn 600ms 200ms var(--ease-out) both;
}
.topbar > * { pointer-events: auto; }

.topbar .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex; align-items: baseline; gap: var(--space-3);
}
.topbar .brand .role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  font-weight: 400;
  opacity: 0.7;
  white-space: nowrap;
}
.topbar.on-image {
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,.35);
}
.topbar.on-image .brand .role { opacity: 0.85; }
/* Le logo déposé depuis publier.php (Identité) prend la place du nom. */
.topbar .brand-logo {
  display: block; height: 30px; width: auto; max-width: 42vw;
  align-self: center; object-fit: contain;
}
.topbar .brand:has(.brand-logo) { align-items: center; }
@media (max-width: 560px) { .topbar .brand .role { display: none; } }

/* Menu button */
.menu-btn {
  display: flex; align-items: center; gap: var(--space-3);
  background: none; border: none; cursor: pointer; color: inherit;
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--text-sm);
  letter-spacing: -0.005em;
  padding: 8px 0;
  min-height: 44px;
  min-width:  44px;
}
.menu-btn .mb-text { min-width: 52px; text-align: right; }
.menu-btn .mb-icon {
  position: relative; width: 22px; height: 12px; display: inline-block;
}
.menu-btn .mb-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur-ui) var(--ease-out),
              top     var(--dur-ui) var(--ease-out);
}
.menu-btn .mb-icon i:nth-child(1) { top: 2px; }
.menu-btn .mb-icon i:nth-child(2) { top: 8px; }
.menu-btn.is-x .mb-icon i:nth-child(1) { top: 5px; transform: rotate(45deg);  }
.menu-btn.is-x .mb-icon i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* Topbar right group */
.topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 4px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.35;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.lang-btn.active { opacity: 1; }
@media (hover: hover) {
  .lang-btn:not(.active):hover { opacity: 0.7; }
}
.lang-sep { opacity: 0.2; }

/* =============================================================
   FULLSCREEN SCROLLER + SLIDES
   ============================================================= */
.scroller {
  height: 100vh; height: 100svh; overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: none;
}
.scroller::-webkit-scrollbar { display: none; }
.snap { scroll-snap-align: start; contain: layout paint; }

.slide {
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  contain: layout paint;
  display: flex; align-items: flex-end;
}
@supports not (height: 100svh) {
  .slide { height: 100vh; }
}

/* ---- Media background ---- */
.slide-media {
  position: absolute; inset: 0; overflow: hidden;
}
.slide-media .bg {
  position: absolute; inset: -2px;
  background: #d6dbd6;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  translate: 0 var(--parallax-y, 0px);
  transition: transform 8000ms linear;
  will-change: transform, translate;
}
.slide.is-active .slide-media .bg { transform: scale(1.12); }

.slide-media img {
  position: absolute; inset: -2px;
  width: calc(100% + 4px); height: calc(100% + 4px);
  object-fit: cover; object-position: center;
  transform: scale(1.04);
  transition: transform 8000ms linear;
  will-change: transform;
}
.slide.is-active .slide-media img { transform: scale(1.12); }

@media (prefers-reduced-motion: reduce) {
  .slide-media .bg,
  .slide.is-active .slide-media .bg,
  .slide-media img,
  .slide.is-active .slide-media img { transform: none; transition: none; }
}

/* ---- Gradient scrims ---- */
.slide-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top,    rgba(8,11,12,.68) 0%, rgba(8,11,12,.14) 36%, transparent 58%),
    linear-gradient(to bottom, rgba(8,11,12,.38) 0%, transparent 28%);
}

/* ---- Center play CTA ---- */
.slide-cta {
  position: absolute; inset: 0; z-index: 3; margin: auto;
  width: max-content; height: max-content;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  background: none; border: none; cursor: pointer; color: #fff;
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
  min-width: 44px; min-height: 44px;
}
.slide.is-active .slide-cta {
  opacity: 1; transform: none;
  transition-delay: 300ms;
}

.slide-cta .ring {
  position: relative;
  width: clamp(72px, 7vw, 96px); height: clamp(72px, 7vw, 96px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  transition: transform var(--dur-ui) var(--ease-out),
              background var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out);
}
/* Pulse ring */
.slide.is-active .slide-cta .ring::after {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  animation: ringPulse 2.8s var(--ease-out) infinite 1.2s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-active .slide-cta .ring::after { animation: none; }
}

.slide-cta .ring svg { margin-left: 3px; }
@media (hover: hover) {
  .slide-cta:hover .ring {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.9);
    transform: scale(1.07);
  }
}
.slide-cta .cta-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---- Slide info — entrance animation ---- */
.slide-info {
  position: relative; z-index: 2; color: #fff;
  padding-bottom: max(clamp(80px, 12vh, 130px), calc(var(--sab) + 60px));
  width: 100%;
}
.slide-meta {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
  margin-bottom: var(--space-4);
}
.slide-meta .slide-cat { color: #fff; }
.slide-meta .slide-dot { opacity: 0.45; }

.slide-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 7.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
}

/* Trigger entrance when slide is active */
.slide.is-active .slide-meta  { opacity: 0.92; transform: none; transition-delay: 80ms; }
.slide.is-active .slide-title { opacity: 1;    transform: none; transition-delay: 180ms; }

/* On first load: show immediately, animate on subsequent activations */
.slide.is-active.no-anim .slide-meta,
.slide.is-active.no-anim .slide-title {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .slide-meta  { opacity: 0.92; transform: none; transition: none; }
  .slide-title { opacity: 1;    transform: none; transition: none; }
  .slide.is-active .slide-meta,
  .slide.is-active .slide-title { transition-delay: 0ms; }
}

/* ---- Counter ---- */
.slide-counter {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; align-items: baseline; gap: var(--space-2); justify-content: flex-end;
  color: rgba(255,255,255,.85);
  padding-top: max(clamp(80px, 11vh, 120px), calc(var(--sat) + 60px));
  font-family: var(--font-mono);
}
.slide-counter .cur { font-size: var(--text-md); }
.slide-counter .tot { font-size: var(--text-xs); opacity: 0.6; }

/* =============================================================
   DOT NAVIGATION
   ============================================================= */
.dots {
  position: fixed;
  right: max(clamp(16px, 2vw, 30px), var(--sar));
  top: 50%; transform: translateY(-50%);
  z-index: 70;
  display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-end;
  transition: opacity var(--dur-ui) var(--ease-out);
  animation: fadeIn 600ms 500ms var(--ease-out) both;
}
.dot {
  position: relative;
  width: 44px; height: 44px;
  padding: 0; border: none; cursor: pointer;
  background: transparent;
  display: flex; align-items: center; justify-content: flex-end;
}
.dot::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 1.5px solid rgba(255,255,255,.65);
  transition: all var(--dur-ui) var(--ease-out);
  flex-shrink: 0;
}
.dot.on::after {
  width: 9px; height: 9px;
  background: #fff; border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
.dot-label {
  position: absolute; right: 50px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #fff;
  background: rgba(8,11,12,.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  opacity: 0; pointer-events: none;
  transition: all var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .dot:hover .dot-label { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.menu-open .dots { opacity: 0; pointer-events: none; }
@media (max-width: 680px) { .dots { display: none; } }

/* =============================================================
   SCROLL HINT
   ============================================================= */
.scroll-hint {
  position: fixed;
  left: 50%; bottom: max(clamp(20px, 4vh, 40px), var(--sab));
  transform: translateX(-50%);
  z-index: 65;
  color: rgba(255,255,255,.8);
  opacity: 0.9;
  transition: opacity var(--dur-enter) var(--ease-out);
  animation: hintFloat 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
.scroll-hint.hidden { opacity: 0; }
.menu-open .scroll-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}

/* =============================================================
   NAV OVERLAY — menu principal
   ============================================================= */
.nav-overlay {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(8, 11, 12, .90);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: max(clamp(80px,12vh,120px), var(--sat)) clamp(24px,5vw,80px)
           max(clamp(80px,12vh,120px), var(--sab));
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-enter) var(--ease-out), visibility 0s 500ms;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-overlay.is-open {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-enter) var(--ease-out);
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Liens principaux ---- */
.nav-links { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav-links li { opacity: 0; }
.nav-overlay.is-open .nav-links li {
  animation: nav-in 520ms calc(40ms + var(--i, 0) * 65ms) var(--ease-out) both;
}
.nav-links a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: rgba(255,255,255,.9);
  padding: .1em 0;
  text-decoration: none;
  transition: opacity var(--dur-ui) var(--ease-out),
              letter-spacing var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .nav-links:has(a:hover) a { opacity: .2; }
  .nav-links a:hover { opacity: 1 !important; letter-spacing: -0.02em; }
}

/* ---- Réseaux sociaux ---- */
.nav-socials {
  margin-top: clamp(28px, 4.5vh, 52px);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  opacity: 0;
}
.nav-overlay.is-open .nav-socials {
  animation: nav-in 520ms calc(40ms + 2 * 65ms) var(--ease-out) both;
}
.nav-social-link {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .nav-social-link:hover { color: rgba(255,255,255,.82); }
}

/* ---- Email ---- */
.nav-footer {
  position: absolute;
  bottom: max(clamp(32px, 5.5vh, 52px), var(--sab));
  left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.nav-overlay.is-open .nav-footer {
  animation: nav-in 520ms calc(40ms + 3 * 65ms) var(--ease-out) both;
}
.nav-clink {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .nav-clink:hover { color: rgba(255,255,255,.82); }
}

/* ---- Mentions légales ---- */
.nav-legal {
  position: absolute;
  bottom: max(clamp(10px, 2vh, 18px), var(--sab));
  left: 0; right: 0;
  text-align: center;
}
.nav-legal > summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.18);
  user-select: none;
  transition: color var(--dur-ui) var(--ease-out);
}
.nav-legal > summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
  .nav-legal > summary:hover { color: rgba(255,255,255,.45); }
}
.nav-legal-body {
  margin-top: var(--space-4);
  font-family: var(--font-body); font-size: 11px;
  line-height: 1.65; color: rgba(255,255,255,.35);
  max-width: 520px; margin-left: auto; margin-right: auto;
  padding: 0 var(--space-6);
  text-align: left;
}
.nav-legal-body p { margin: 0 0 var(--space-3); }
.nav-legal-body p:last-child { margin-bottom: 0; }
.nav-legal-body strong { color: rgba(255,255,255,.65); font-weight: 500; }
.nav-legal-body a { color: rgba(255,255,255,.45); text-decoration: underline; text-underline-offset: 2px; }

.menu-open .dots        { opacity: 0; pointer-events: none; }
.menu-open .scroll-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-overlay.is-open,
  .nav-links li, .nav-socials, .nav-footer,
  .nav-overlay.is-open .nav-links li,
  .nav-overlay.is-open .nav-socials,
  .nav-overlay.is-open .nav-footer {
    animation: none; opacity: 1; transform: none; transition: none;
  }
  .topbar { animation: none; }
  .dots   { animation: none; }
}

/* ---- Entrées animées (stagger) ---- */
/* La zone visuelle/lecteur reste visible d'emblée (le panneau fait déjà
   un fondu) — évite un rectangle sombre tant que l'animation n'a pas joué. */
.panel-proj-visual { opacity: 1; }

/* ---- Panel projet ---- */
.panel-proj-visual {
  position: relative;
  height: clamp(180px, 36vh, 440px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 0 clamp(32px, 5vh, 56px);
}
.panel-proj-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top,    rgba(8,11,12,.55) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(8,11,12,.30) 0%, transparent 30%);
}

/* ---- Slides cliquables ---- */
.slide { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {.panel-proj-visual {
    opacity: 1; animation: none;
  }
}

/* =============================================================
   PROGRESS BAR
   ============================================================= */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: rgba(255, 255, 255, .55);
  z-index: 90;
  pointer-events: none;
  transition: width var(--dur-enter) var(--ease-out);
}

/* =============================================================
   GRAIN OVERLAY
   ============================================================= */
#app::after {
  content: '';
  position: fixed; inset: 0; z-index: 998;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
}

/* =============================================================
   INTRO — premier chargement
   ============================================================= */
#intro {
  position: fixed; inset: 0; z-index: 300;
  background: var(--paper-ink);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#intro.fade-out {
  animation: intro-out 600ms var(--ease-out) forwards;
}
@keyframes intro-out { to { opacity: 0; } }@media (prefers-reduced-motion: reduce) {
  #intro { animation: none; }
}

/* =============================================================
   CUSTOM CURSOR — hover + pointer:fine seulement
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }

  .cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .5);
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width var(--dur-ui) var(--ease-out), height var(--dur-ui) var(--ease-out),
                border-color var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out);
    will-change: transform;
  }
  .cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 5px; height: 5px; border-radius: 50%;
    background: #fff;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity var(--dur-ui) var(--ease-out);
    will-change: transform;
  }

  body.cursor-play .cursor-ring {
    width: 64px; height: 64px;
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .8);
  }
  body.cursor-play .cursor-dot { opacity: 0; }

  body.cursor-hover .cursor-ring {
    width: 18px; height: 18px;
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .7);
  }
}

/* =============================================================
   FILTRE CATÉGORIE — dots secondaires
   ============================================================= */
.dot.same-cat::after {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .10);
}

/* =============================================================
   GALERIE PROJET
   ============================================================= */
.panel-proj-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(100px, 16vw, 190px), 1fr));
  gap: clamp(6px, 1vw, 10px);
  margin-top: clamp(24px, 4vh, 40px);
}
.panel-proj-thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  transition: opacity var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .panel-proj-thumb:hover { opacity: 0.75; }
}
.panel-proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.panel-proj-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .15);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; border-radius: var(--radius-sm);
  touch-action: none;            /* on gère pinch/pan en JS */
  transform-origin: center center;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
.lightbox.zoomed { cursor: zoom-out; }
.lightbox.zoomed .lightbox-prev,
.lightbox.zoomed .lightbox-next { opacity: 0; pointer-events: none; }
.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vh, 32px); right: clamp(16px, 3vw, 32px);
  background: none; border: none; cursor: pointer;
  color: rgba(255, 255, 255, .55);
  font-size: 32px; line-height: 1; padding: 8px;
  transition: color var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .lightbox-close:hover { color: #fff; }
}

/* =============================================================
   EMBED VIDÉO — panel projet
   ============================================================= */
.panel-proj-embed {
  position: relative; aspect-ratio: 16/9;
  width: 100%; border-radius: var(--radius-sm);
  overflow: hidden; background: #000;
  margin-bottom: clamp(24px, 4vh, 40px);
}
/* =============================================================
   LECTEUR VIDÉO INTERNE
   ============================================================= */
.vp {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: #000; overflow: hidden;
  outline: none;
}
.vp-video {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  background: #000; cursor: pointer;
}
.vp:fullscreen .vp-video { object-fit: contain; }

/* Gros bouton lecture central (état initial / pause) */
.vp-bigplay {
  position: absolute; inset: 0; margin: auto;
  width: max-content; height: max-content;
  background: none; border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.vp-bigplay .ring {
  width: clamp(64px, 7vw, 88px); height: clamp(64px, 7vw, 88px);
}
.vp-bigplay svg { margin-left: 4px; }
.vp.vp-playing .vp-bigplay { opacity: 0; transform: scale(.8); pointer-events: none; }
@media (hover: hover) {
  .vp-bigplay:hover .ring { background: rgba(255,255,255,.2); border-color: #fff; transform: scale(1.07); }
}

/* Spinner de chargement */
.vp-spinner {
  position: absolute; inset: 0; margin: auto;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: vpSpin .8s linear infinite; pointer-events: none;
}
@keyframes vpSpin { to { transform: rotate(360deg); } }

/* Barre de contrôles */
.vp-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: var(--space-3);
  padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  font-family: var(--font-mono);
}
.vp.vp-show .vp-controls,
.vp:not(.vp-playing) .vp-controls { opacity: 1; transform: none; }
.vp-controls .vp-btn {
  flex-shrink: 0; width: 34px; height: 34px; padding: 6px;
  background: none; border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.vp-controls .vp-btn svg { width: 100%; height: 100%; }
@media (hover: hover) { .vp-controls .vp-btn:hover { opacity: .75; } }
.vp-time { font-size: 11px; color: rgba(255,255,255,.85); flex-shrink: 0; min-width: 38px; }
.vp-time.vp-dur { text-align: right; }

/* Barre de progression */
.vp-bar {
  position: relative; flex: 1; height: 24px; cursor: pointer;
  display: flex; align-items: center; touch-action: none;
}
.vp-bar::before {
  content: ''; position: absolute; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.25); border-radius: 2px;
}
.vp-buffered, .vp-played {
  position: absolute; left: 0; height: 3px; border-radius: 2px;
}
.vp-buffered { background: rgba(255,255,255,.4); width: 0; }
.vp-played   { background: #fff; width: 0; }
.vp-knob {
  position: absolute; left: 0; top: 50%;
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--dur-micro) var(--ease-out);
}
.vp-bar:hover .vp-knob, .vp-bar:focus-visible .vp-knob { transform: translate(-50%, -50%) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .vp-spinner { animation: none; }
  .vp-bigplay, .vp-controls { transition: none; }
}

/* =============================================================
   DARK MODE
   ============================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    /* Le noir forestier de l'écran de chargement et des pages de lecture. */
    --paper-0:   #0f1411;
    --paper-1:   #171e1a;
    --paper-ink: #eef0ee;
    --muted:     #8a9099;
    --muted-2:   #5a6166;
    --line:      rgba(255,255,255,.07);
  }
}

/* =============================================================
   SKIP TO CONTENT (accessibilité)
   ============================================================= */
.skip-link {
  position: fixed; top: -120%; left: 50%;
  transform: translateX(-50%);
  background: var(--paper-ink); color: var(--paper-0);
  padding: 10px 22px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: top var(--dur-ui) var(--ease-out);
}
.skip-link:focus { top: 0; outline: none; }

/* =============================================================
   CROSSFADE FLASH entre slides
   ============================================================= */
#slide-flash {
  position: fixed; inset: 0; z-index: 71;
  background: rgba(8, 11, 12, .22);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-micro) var(--ease-out);
}
#slide-flash.active { opacity: 1; }

/* =============================================================
   TOAST NOTIFICATION
   ============================================================= */
.toast {
  position: fixed;
  bottom: 88px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: rgba(8, 11, 12, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  z-index: 500; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================================
   BOUTON PARTAGER
   ============================================================= */
.panel-share-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: 24px;
  background: none; border: 1px solid rgba(255,255,255,.18);
  padding: 9px 20px; border-radius: var(--radius-pill);
  color: rgba(255,255,255,.45);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
@media (hover: hover) {
  .panel-share-btn:hover { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.9); }
}

/* =============================================================
   LIGHTBOX — nav prev / next
   ============================================================= */
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45);
  font-size: 44px; line-height: 1;
  padding: 16px; min-height: 80px;
  display: flex; align-items: center;
  transition: color var(--dur-ui) var(--ease-out);
  user-select: none;
}
.lightbox-prev { left: clamp(6px, 1.5vw, 20px); }
.lightbox-next { right: clamp(6px, 1.5vw, 20px); }
@media (hover: hover) {
  .lightbox-prev:hover, .lightbox-next:hover { color: #fff; }
}
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }

/* =============================================================
   AMBIENT COLOR — cursor + progress bar
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  .cursor-ring { border-color: var(--cursor-ambient, rgba(255,255,255,.5)); }
}
.progress-bar { background: var(--progress-ambient, rgba(255,255,255,.55)); }

/* =============================================================
   DRAG DESKTOP — curseur grab
   ============================================================= */
body.is-dragging .scroller { cursor: grabbing !important; }

/* =============================================================
   LQIP / BLUR-UP
   ============================================================= */
.bg[data-src] {
  filter: blur(12px);
  transform: scale(1.08);
  transition: filter var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
}
.bg[data-src].loaded {
  filter: none;
  transform: scale(1.04);
}
.slide.is-active .bg[data-src].loaded { transform: scale(1.12); }

/* =============================================================
   PRINT
   ============================================================= */
@media print {
  #slide-flash, #intro, .cursor-ring, .cursor-dot,
  .nav-overlay, .progress-bar, #app::after,
  .dots, .scroll-hint, .topbar-right { display: none !important; }
  .scroller { overflow: visible; height: auto; scroll-snap-type: none; }
  .snap { height: auto; page-break-inside: avoid; }
  .slide { min-height: 60vh; }
  body { background: #fff; color: #000; }
}

/* =============================================================
   OVERLAY RACCOURCIS CLAVIER (#12)
   ============================================================= */
.shortcuts-overlay {
  position: fixed; inset: 0; z-index: 450;
  background: rgba(8,11,12,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 200ms var(--ease-out) both;
}
.sc-card {
  position: relative; background: var(--paper-0); color: var(--paper-ink);
  border-radius: var(--radius-md); padding: clamp(24px,4vw,38px);
  width: min(440px, 90vw); box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.sc-card h3 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.sc-card dl { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.sc-card dl > div { display: flex; align-items: baseline; gap: var(--space-4); }
.sc-card dt {
  font-family: var(--font-mono); font-size: 12px; min-width: 92px;
  color: var(--paper-ink); background: var(--paper-1);
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}
.sc-card dd { margin: 0; font-size: 14px; color: var(--muted); }
.sc-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 26px; line-height: 1;
  cursor: pointer; color: var(--muted-2);
}
@media (hover: hover) { .sc-close:hover { color: var(--paper-ink); } }

/* =============================================================
   VIDÉO DE FOND EN BOUCLE SUR LES SLIDES (#7)
   ============================================================= */
.slide-media .bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 800ms var(--ease-out);
}
.slide.is-active .slide-media .bg-video.ready { opacity: 1; }

/* =============================================================
   CONTRÔLES VIDÉO SUPPLÉMENTAIRES (#8 — vitesse, PiP)
   ============================================================= */
.vp-speed {
  font-family: var(--font-mono); font-size: 11px; min-width: 38px;
  letter-spacing: .04em;
}
@media (max-width: 480px) { .vp-pip { display: none; } }

/* =============================================================
   DIAPORAMA — bouton lecture auto dans la lightbox (#9)
   ============================================================= */
.lightbox-play {
  position: absolute; bottom: clamp(16px,3vh,30px); left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 9px 18px; min-height: 40px;
  transition: background var(--dur-ui) var(--ease-out);
}
@media (hover: hover) { .lightbox-play:hover { background: rgba(255,255,255,.2); } }
.lightbox.playing .lightbox-play { background: rgba(255,255,255,.22); }

/* =============================================================
   #1 — EXIF dans la lightbox
   ============================================================= */
.lightbox-exif {
  position: absolute; left: clamp(16px, 3vw, 30px);
  bottom: max(clamp(16px, 3vh, 30px), var(--sab));
  margin: 0; max-width: min(70vw, 520px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: rgba(255,255,255,.62);
  background: rgba(8,11,12,.42); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 13px; border-radius: var(--radius-pill);
  pointer-events: none;
}
.lightbox-exif[hidden] { display: none; }

/* =============================================================
   #5 — View Transitions (fondu entre photos)
   ============================================================= */
.lightbox-img { view-transition-name: ef-photo; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(ef-photo),
  ::view-transition-new(ef-photo) { animation-duration: 280ms; }
}

/* =============================================================
   #4 — Badge « lecture auto » (mode showreel)
   ============================================================= */
.showreel-badge {
  position: fixed; z-index: 66;
  left: 50%; top: max(clamp(70px, 11vh, 110px), calc(var(--sat) + 54px));
  transform: translateX(-50%) translateY(-6px);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  background: rgba(8,11,12,.4); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: var(--radius-pill);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
}
.showreel-badge.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================================
   #11 — Mode économie de données : on allège le rendu
   ============================================================= */
html.save-data #app::after { display: none; }          /* pas de grain */
html.save-data .slide-media .bg-video { display: none; }

.nav-clink { padding-block: 5px; }

/* « Mentions légales » ouvre un <details> : la cible est le <summary>, pas un
   lien — c'est lui qu'il faut viser, et il ne mesurait que 12 px de haut. */
.nav-legal > summary { padding-block: 7px; }

/* Les liens dans le corps des mentions légales, une fois dépliées. */
.nav-legal-body a { padding-block: 5px; }

/* Une icône de 20 px de côté : il lui manquait les deux dimensions. */
.nav-social-link {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* =============================================================
   FUSION — les touches Matea-Wildlife dans la DA du portfolio
   -------------------------------------------------------------
   Une seule entité, une seule grammaire. Depuis septembre 2026,
   c'est la typo de Matea (voir « TYPO DE MATEA-WILDLIFE » en fin
   de fichier et polices.css). De Matea on garde aussi :
     · la serif italique (Cormorant Garamond, la fonte déjà
       hébergée par la galerie) pour les accroches ;
     · l'orange « braise » pour signaler l'univers terrain.
   Mesuré : #D96B2B sur l'encre #0d1113 donne 5,4:1 — lisible en
   petit texte (AA). On ne l'emploie jamais sur fond clair.
   ============================================================= */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --braise:     #D96B2B;
}

/* ---- Slides : la catégorie terrain prend la braise ---- */
.slide[data-univers="terrain"] .slide-meta .slide-cat { color: var(--braise); }

    

/* ---- Pages complètes et journal : liens depuis les panneaux ---- */
.panel-proj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-6); }

.nav-tel { display: block; margin-top: 6px; }

/* ---- Menu plein écran : il doit tenir, et sinon défiler ----
   Six entrées depuis l'ajout du Journal, plus les réseaux et les mentions :
   à 108 px par ligne, la colonne dépassait la hauteur d'un portable. Et un
   bloc centré par « justify-content: center » qui déborde sort des DEUX
   côtés — le haut devient inatteignable, même en défilant.
   D'où deux gestes : la taille suit aussi la hauteur de l'écran (vh), et le
   centrage passe par des marges automatiques, qui retombent à zéro quand la
   place manque au lieu de repousser le contenu hors de l'écran. */
.nav-overlay { justify-content: flex-start; }
/* Le bloc centré = les liens + les réseaux. Le pied (email, mentions) est en
   position absolue : sa marge ne compte pas, ce ne sont donc pas eux, mais
   .nav-socials, qui portent la marge du bas. */
.nav-overlay > nav { margin-top: auto; }
.nav-overlay > .nav-socials { margin-bottom: auto; }
/* Écrans très bas (téléphone à l’horizontale) : plus la place de coller le
   pied au bas de l’écran sans qu’il chevauche les réseaux. Il rentre dans le
   flux, sous eux, et le menu défile si besoin. */
@media (max-height: 520px) {
  .nav-overlay { padding-top: max(72px, var(--sat)); padding-bottom: max(20px, var(--sab)); }
  .nav-overlay > .nav-socials { margin-bottom: 0; margin-top: 18px; }
  .nav-footer, .nav-legal { position: static; margin-top: 14px; }
  .nav-overlay > :last-child { margin-bottom: auto; }
  .nav-links a { font-size: clamp(24px, 8.5vh, 40px); }
}
.nav-links a { font-size: clamp(30px, min(8.5vw, 7.2vh), 108px); }

/* =============================================================
   REPRISES DE MATEA-WILDLIFE (septembre 2026)
   Titres wildlife en Playfair Display, grain et rayures sur les photos de
   terrain, coordonnées en mono, vue grille ou liste des projets.
   ============================================================= */

/* ---- Grain et rayures (Matea : hero-grain, hero-stripes) ---- */
.slide-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.slide-grain::before, .slide-grain::after { content: ''; position: absolute; inset: 0; }
.slide-grain::before { background-image: repeating-linear-gradient(135deg, rgba(245,239,228,.025) 0 1px, transparent 1px 24px); }
.slide-grain::after {
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

/* ---- Coordonnées le long du bord (Matea : hero-side) ---- */
.slide-coords {
  position: absolute; z-index: 2; left: clamp(14px, 2.4vw, 26px); top: 50%; margin: 0;
  transform: translateY(-50%) rotate(-90deg); transform-origin: left center; translate: .6em 0;
  font: 400 10px/1 var(--font-mono); letter-spacing: .4em; text-transform: uppercase;
  color: rgba(245,239,228,.5); white-space: nowrap; pointer-events: none;
}
@media (max-width: 760px) { .slide-coords { display: none; } }

/* =============================================================
   TYPO DE MATEA-WILDLIFE (septembre 2026)
   Les grands titres en Playfair gras et en capitales, serrés ; les titres
   de second rang en Playfair droit ; le texte en Inter ; la barre du haut
   et les liens courts en mono espacée. Les polices : polices.css.
   ============================================================= */.slide-title {
  font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .92;
}
.nav-links a { font-weight: 500; letter-spacing: -.01em; }
.nav-links a:hover, .nav-links a:focus-visible { font-style: italic; }
/* La marque, quand aucun logo n'est déposé : capitales espacées, comme Matea. */
.topbar .brand { font-weight: 700; font-size: var(--text-sm); letter-spacing: .14em; text-transform: uppercase; }
.topbar .brand .role { font-family: var(--font-mono); font-weight: 400; letter-spacing: .12em; }
.menu-btn { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
/* Petits téléphones : la marque en capitales espacées prend de la place,
   on resserre la barre pour garder un vrai espace avant FR / EN. */
@media (max-width: 400px) {
  .topbar { gap: var(--space-3); }
  .topbar-right { gap: var(--space-4); }
  .topbar .brand { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
}

/* ═══ Display P3 — généré par bin/couleurs-p3.php, ne pas modifier à la main ═══ */
@supports (color: color(display-p3 0 0 0)) {
  @media (color-gamut: p3) {
    :root {
      --paper-0: color(display-p3 0.9783 0.969 0.9439);
      --paper-1: color(display-p3 0.9377 0.9222 0.8828);
      --paper-ink: color(display-p3 0.054 0.0662 0.0736);
      --muted: color(display-p3 0.4246 0.4462 0.497);
      --muted-2: color(display-p3 0.6089 0.6305 0.6488);
      --line: color(display-p3 0 0 0 / 0.09);
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --paper-0: color(display-p3 0.0626 0.0778 0.0674);
        --paper-1: color(display-p3 0.0956 0.1168 0.103);
        --paper-ink: color(display-p3 0.9347 0.9409 0.9339);
        --muted: color(display-p3 0.5454 0.5639 0.5966);
        --muted-2: color(display-p3 0.358 0.3795 0.3979);
        --line: color(display-p3 1 1 1 / 0.07);
      }
    }
    :root {
      --braise: color(display-p3 0.7958 0.4432 0.2334);
    }
  }
}
/* ═══ fin du bloc Display P3 ═══ */
