/* Classe de composition mixte électro accoustique — design luxe contemporain */

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

html {
  scroll-behavior: auto;
  color-scheme: dark light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  line-height: 1.72;
  letter-spacing: 0.012em;
  background-color: var(--bg);
  background-image: none;
  isolation: isolate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 55%, var(--bg-deep) 100%);
  pointer-events: none;
}

html[data-theme="dark"] body::before {
  background: var(--bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  --accent: #c4ad8a;
  --accent-2: #a89272;
  --warn: #c4a86a;
  --danger: #b87a7a;
  --ok: #7a9a82;

  --radius-xs: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 28px; --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-14: 56px; --space-16: 64px;
  --space-18: 72px; --space-20: 80px; --space-24: 96px;
  --space-28: 112px; --space-32: 128px;

  --maxw: 1160px;
  --maxw-narrow: 760px;

  --font-body: "Jost", system-ui, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-calligraphy: "Caveat", "Segoe Print", cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-sm: none;
  --shadow-md: none;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
  --motion: 0.1s ease;

  --h1: clamp(2.85rem, 2rem + 3.8vw, 5rem);
  --h2: clamp(1.75rem, 1.35rem + 1.2vw, 2.35rem);
  --h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --grid-gap: 24px;
}

.mono { font-family: var(--font-mono); font-size: 0.92em; }

html[data-theme="dark"] {
  --bg: #07080c;
  --bg-tint: #07080c;
  --bg-deep: #07080c;
  --bg-glow-a: rgba(255, 255, 255, 0.02);
  --bg-glow-b: rgba(255, 255, 255, 0.015);
  --bg-section: rgba(255, 255, 255, 0.018);
  --card-surface: rgba(255, 255, 255, 0.028);
  --card-surface-hover: rgba(255, 255, 255, 0.045);
  --surface: transparent;
  --surface-2: rgba(255, 255, 255, 0.035);
  --stroke: rgba(236, 238, 242, 0.1);
  --stroke-2: rgba(236, 238, 242, 0.16);
  --text: #eceef2;
  --muted: #8a94a6;
  --faint: #565e6e;
  --header-bg: #07080c;
  --header-bg-solid: #07080c;
  --header-border: rgba(236, 238, 242, 0.07);
  --focus-ring: #b0a090;
  --card-hover-shadow: none;
  --btn-primary-fg: #e8e4de;
  --btn-primary-bg: rgba(176, 160, 144, 0.12);
  --btn-primary-hover-bg: rgba(176, 160, 144, 0.22);
  --btn-primary-border: rgba(176, 160, 144, 0.38);
  --card-hover-bg: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] {
  --bg: #fafaf9;
  --bg-tint: #ffffff;
  --bg-deep: #f7f6f4;
  --bg-glow-a: rgba(255, 255, 255, 0.95);
  --bg-glow-b: rgba(196, 173, 138, 0.05);
  --bg-section: #ffffff;
  --card-surface: #ffffff;
  --card-surface-hover: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f7f5;
  --stroke: rgba(20, 18, 16, 0.08);
  --stroke-2: rgba(20, 18, 16, 0.14);
  --text: #141210;
  --muted: #5c5854;
  --faint: #888480;
  --header-bg: #fafaf9;
  --header-bg-solid: #ffffff;
  --header-border: rgba(20, 18, 16, 0.06);
  --focus-ring: #a89272;
  --card-hover-shadow: 0 14px 36px rgba(20, 18, 16, 0.06);
  --btn-primary-fg: #4a4038;
  --btn-primary-bg: rgba(196, 173, 138, 0.16);
  --btn-primary-hover-bg: rgba(196, 173, 138, 0.26);
  --btn-primary-border: rgba(168, 146, 114, 0.4);
  --card-hover-bg: rgba(196, 173, 138, 0.04);
}

.wrap { width: min(var(--maxw), calc(100% - 2 * var(--space-10))); margin-inline: auto; }
.wrap.narrow { width: min(var(--maxw-narrow), calc(100% - 2 * var(--space-10))); }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }

.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 50;
  padding: 10px 14px;
  border-radius: 0;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  color: var(--text);
  transform: translateY(-200%);
  transition: transform var(--motion);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg-solid);
  border-bottom: 1px solid var(--header-border);
}
.header-inner { padding: 28px 0 24px; }
.header-brand-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap; }
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
  margin-left: auto;
}
.header-nav-link {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--motion);
  white-space: nowrap;
}
.header-nav-link:hover,
.header-nav-link.is-active {
  color: var(--text);
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.2vw, 28px);
  margin-left: auto;
}
.site-nav__link {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--motion);
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1.4;
}
.site-nav__link:hover,
.site-nav__link.is-active,
.site-nav__btn.is-active {
  color: var(--text);
}
.site-nav__btn .snipcart-items-count {
  font-size: inherit;
  letter-spacing: inherit;
  opacity: 0.75;
}
.site-header .brand-credit {
  display: none;
}
.brand { display: flex; align-items: flex-start; gap: 18px; flex: 0 1 auto; min-width: 0; }
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.92;
}
.brand-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand-lead {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.45;
}
.brand-class {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.45;
}
.brand-subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  background: linear-gradient(
    105deg,
    #7a6640 0%,
    #b89862 18%,
    #ead9a8 38%,
    #fff4d6 50%,
    #d4bc82 62%,
    #a08858 82%,
    #7a6640 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-gold-shimmer 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(212, 188, 130, 0.12));
}
.brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--muted);
  max-width: 28ch;
}
@media (prefers-reduced-motion: reduce) {
  .brand-subtitle {
    animation: none;
    background-position: 40% center;
  }
}
.brand-site-status {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 0.2rem;
  max-width: 42rem;
}
.brand-referent {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 2px;
}
.brand-credit {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--faint);
  line-height: 1.55;
  margin-top: 0;
  max-width: 42rem;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-8);
}
.about-prose { max-width: 72ch; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 1 auto; justify-content: flex-end; }
.header-tools--inline { margin-left: 0; }
@media (max-width: 640px) {
  .header-tools { width: 100%; justify-content: flex-start; }
  .header-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .header-tools--inline { margin-left: 0; }
  .brand-lead { font-size: 0.72rem; }
  .brand-class { font-size: 0.7rem; }
  .brand-subtitle { font-size: 0.9rem; }
  .brand-referent { font-size: 0.72rem; }
  .brand-credit { font-size: 0.68rem; }
}

.nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  align-items: center;
  padding-top: var(--space-4);
  margin-top: var(--space-3);
  border-top: 1px solid var(--header-border);
}
.nav-link {
  padding: 6px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--motion), border-color var(--motion);
}
.nav-link:hover {
  background: transparent;
  border-bottom-color: var(--stroke-2);
  color: var(--text);
}
.nav-link.active {
  background: transparent;
  border-bottom-color: var(--accent);
  color: var(--text);
  font-weight: 500;
}
.theme-switch { display: inline-flex; padding: 0; border-radius: 0; border: none; border-bottom: 1px solid var(--stroke); background: transparent; }
.theme-switch button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  cursor: pointer;
  transition: color var(--motion);
}
.theme-switch button.active { background: transparent; color: var(--text); }
.theme-switch button + button { border-left: 1px solid var(--stroke); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 0;
  border: 1px solid var(--stroke-2);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--motion), border-color var(--motion), background var(--motion);
}
.btn:hover { border-color: var(--text); background: transparent; }
.btn:active { transform: none; }
.btn:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 3px; }
.btn.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-border);
}
.btn.primary:hover {
  filter: none;
  transform: none;
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-fg);
  border-color: var(--accent);
}
.btn.ghost {
  background: transparent;
  border-color: var(--stroke);
}
.btn.ghost:hover { background: transparent; border-color: var(--stroke-2); }
.btn.danger { color: var(--danger); border-color: rgba(255,107,107,0.45); }
.btn.danger:hover { background: rgba(255,107,107,0.08); }
.btn.btn-sm { padding: 10px 20px; font-size: 0.62rem; letter-spacing: 0.14em; }
.btn.block { width: 100%; }
.btn.ghost.active {
  background: var(--surface-2);
  border-color: var(--stroke);
  color: var(--text);
}
.btn.primary.active { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav .btn.btn-sm { white-space: nowrap; }

.flash { padding: 12px 0; font-size: 0.95rem; border-bottom: 1px solid var(--stroke); }
.flash-success { background: rgba(109, 214, 160, 0.12); color: var(--text); }
.flash-error { background: rgba(255, 107, 107, 0.1); color: var(--text); }
.flash-info { background: rgba(196, 173, 138, 0.14); color: var(--text); }
.user-email-display {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  word-break: break-all;
}
.user-email-cell { min-width: 14rem; }
.user-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-2);
}
.user-email-input {
  min-width: 12rem;
  flex: 1;
  padding: 6px 8px;
  font-size: 0.85rem;
  border: 1px solid var(--stroke);
  background: var(--bg);
}
.request-email-hint { margin: var(--space-2) 0 0; font-size: 0.82rem; }

/* HERO */
.hero { padding: var(--space-28) 0 var(--space-20); position: relative; }
.hero-compact { padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-16); align-items: center; }
.hero-grid--with-nav {
  grid-template-columns: minmax(0, 1fr) minmax(148px, 188px);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.hero-main { min-width: 0; }
.hero-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  position: sticky;
  top: 120px;
  border-left: none;
  padding-left: 0;
}
.hero-cat-nav-label {
  margin: 0 0 var(--space-6);
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-cat-link {
  display: block;
  padding: 11px 0;
  margin-left: 0;
  border-left: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: color var(--motion), border-color var(--motion);
}
.hero-cat-link:hover {
  color: var(--text);
  border-bottom-color: var(--stroke);
  padding-left: 0;
}
.hero-cat-link.active {
  color: var(--text);
  font-weight: 500;
  border-bottom-color: var(--accent);
  background: transparent;
  padding-left: 0;
}
@media (max-width: 900px) {
  .hero-grid--with-nav {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero-cat-nav {
    position: static;
    border-top: 1px solid var(--stroke);
    padding-top: var(--space-6);
    flex-flow: row wrap;
    gap: 0 var(--space-5);
  }
  .hero-cat-nav-label {
    width: 100%;
    margin-bottom: var(--space-4);
  }
  .hero-cat-link {
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid transparent;
  }
  .hero-cat-link.active {
    border-bottom-color: var(--accent);
    background: transparent;
  }
}
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0 0 var(--space-4);
  border: none;
  border-bottom: 1px solid var(--stroke);
  background: transparent;
  color: var(--accent);
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-8);
  max-width: none;
  text-wrap: balance;
}
.hero-grid--with-nav .hero-main h1 {
  max-width: none;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.hero-manifesto.manifesto--calligraphy {
  max-width: 18ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.hero-intro {
  max-width: 42rem;
}
.hero-intro__verse {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.65vw, 1.08rem);
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: 0.012em;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}
.hero-intro__verse + .hero-intro__verse {
  margin-top: 1.65em;
}
.hero-intro__verse--last {
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

/* Accueil épuré (fineterre.art) */
.cosmic-cloud {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.cosmic-cloud--subtle {
  opacity: 0.72;
}
html[data-theme="light"] .cosmic-cloud--subtle {
  opacity: 0.48;
}
.page-home #contenu,
.page-home .site-footer {
  position: relative;
  z-index: 1;
}
.page-home .hero--landing {
  padding: clamp(4rem, 10vw, 6rem) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: calc(clamp(4rem, 10vw, 6rem) + 2.5rem);
  position: relative;
  overflow: hidden;
}
.page-home .hero--landing > .wrap {
  position: relative;
  z-index: 1;
}
.page-home {
  --hero-gold-gradient: linear-gradient(
    105deg,
    #7a6640 0%,
    #b89862 18%,
    #ead9a8 38%,
    #fff4d6 50%,
    #d4bc82 62%,
    #a08858 82%,
    #7a6640 100%
  );
}
.page-home .hero-logo {
  --mono-w: clamp(12rem, 42vw, 22rem);
  --name-x: 68%;
  --name-bottom-nudge: calc(var(--mono-w) * 0.005);
  text-align: center;
  margin: 0 0 clamp(3.5rem, 9vw, 6rem);
  max-width: 100%;
}
.hero-logo__unit {
  position: relative;
  display: inline-block;
  width: var(--mono-w);
  max-width: 100%;
}
.hero-logo__mark {
  --earth-x: 60.136%;
  --earth-y: 40.65%;
  --earth-size: 12.55%;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 805 / 546;
  filter: drop-shadow(0 0 22px rgba(212, 188, 130, 0.16));
}
.hero-logo__monogram {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}
.hero-logo__earth {
  position: absolute;
  left: var(--earth-x);
  top: var(--earth-y);
  width: var(--earth-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.hero-logo__earth-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #346894;
}
.hero-logo__name {
  position: absolute;
  left: calc(var(--mono-w) * var(--name-x) / 100);
  bottom: 0;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(var(--name-bottom-nudge));
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.hero-logo__name-fine {
  background: var(--hero-gold-gradient);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-gold-shimmer 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(212, 188, 130, 0.1));
  opacity: 0.9;
}
.hero-logo__name-terre {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.2em;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
}
html[data-theme="light"] .hero-logo__name-terre {
  color: rgba(0, 0, 0, 0.88);
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo__name-fine {
    animation: none;
    background-position: 40% center;
    opacity: 0.88;
  }
}
@media (max-width: 520px) {
  .page-home .hero-logo {
    --mono-w: clamp(9rem, 48vw, 14rem);
    --name-x: 66%;
  }
  .hero-logo__name {
    font-size: clamp(1rem, 4.6vw, 1.35rem);
    letter-spacing: 0.14em;
  }
}
.home-lang {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  justify-content: center;
  padding: var(--space-4) var(--space-3) var(--space-5);
  margin-top: 0;
  pointer-events: none;
}
.home-lang a,
.home-lang .muted {
  pointer-events: auto;
}
.hero-landing {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.hero-wordmark {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 10vw, 5.75rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
.hero-wordmark--split .hero-wordmark__fin {
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
.hero-wordmark--split .hero-wordmark__terre {
  display: inline-block;
  background: var(--hero-gold-gradient);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-gold-shimmer 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(212, 188, 130, 0.14));
}
@keyframes hero-gold-shimmer {
  0%, 100% { background-position: 0% center; opacity: 0.92; }
  50% { background-position: 100% center; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark--split .hero-wordmark__terre {
    animation: none;
    background-position: 40% center;
  }
}
.page-home .hero-manifesto.manifesto--calligraphy {
  max-width: 18ch;
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  transform-origin: center bottom;
}
.page-home .hero-edition-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.35vw, 0.92rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.page-home .hero-edition-tagline__line {
  display: block;
}
.page-home .hero-edition-tagline__line--nowrap {
  white-space: nowrap;
}
.page-home .home-enter {
  display: flex;
  justify-content: center;
}
.home-enter {
  margin: 0;
}
.home-enter__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--motion), letter-spacing var(--motion);
}
.home-enter__link::after {
  content: "→";
  letter-spacing: 0;
  transition: transform var(--motion);
}
.home-enter__link:hover {
  color: var(--accent);
  letter-spacing: 0.28em;
}
.home-enter__link:hover::after {
  transform: translateX(3px);
}
@media (max-width: 820px) {
  .page-home .hero--landing {
    min-height: 100vh;
    padding-top: clamp(3rem, 8vw, 4rem);
  }
}
.page-catalogue .section--catalog-head {
  padding: var(--space-10) 0 0;
}
.manifesto--calligraphy {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  transform: rotate(-0.4deg);
  transform-origin: left bottom;
  display: inline-block;
}
html[data-theme="light"] .manifesto--calligraphy {
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
.hero-compact .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: none;
  max-width: 42ch;
  line-height: 1.45;
}
.hero-author {
  margin: 0 0 var(--space-8);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hero-gradient {
  display: inline;
  margin-left: 0.08em;
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.lead {
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  font-weight: 300;
  color: var(--muted);
  margin: 0 0 var(--space-10);
  max-width: 34rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
.hero .lead { margin-bottom: var(--space-10); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }

.hero + .section { padding-top: var(--space-6); }
.section + .legacy-portfolio { padding-top: var(--space-4); }
section[id="projets"] {
  scroll-margin-top: 110px;
  background: var(--bg-section);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}
html[data-theme="light"] section[id="projets"] {
  border-top-color: rgba(20, 18, 16, 0.06);
  border-bottom-color: rgba(20, 18, 16, 0.06);
}

.section { padding: var(--space-16) 0; }
section[id] { scroll-margin-top: 90px; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--h2);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-6);
}
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--h3);
  letter-spacing: 0;
  margin: 0 0 var(--space-4);
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6) var(--space-8);
  align-items: end;
  padding: var(--space-8) 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: var(--space-16);
}
.catalog-filters-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
}
.catalog-filters-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.catalog-filters-head__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}
.catalog-filters-head__actions .btn {
  padding: 0;
  min-height: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  border: none;
  background: transparent;
  gap: 0;
}
.catalog-filters-head__actions .btn.primary {
  color: var(--muted);
  background: transparent;
  border: none;
}
.catalog-filters-head__actions .btn.primary:hover {
  color: var(--accent);
  background: transparent;
  border: none;
}
.catalog-filters-head__actions .btn.ghost {
  color: var(--faint);
  border: none;
}
.catalog-filters-head__actions .btn.ghost:hover {
  color: var(--muted);
  background: transparent;
  border: none;
}
.filters--single-author {
  grid-template-columns: 2fr 1fr;
}
.field span {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.field input, .field select, .field textarea {
  padding: 12px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  font-weight: 300;
  transition: border-color var(--motion);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: none;
}
.filters .field.actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 880px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  border-top: none;
  padding-top: var(--space-2);
}
.project-card {
  --card-tint-base: var(--accent);
  --card-accent: var(--accent);
  --card-tag-bg: rgba(196, 173, 138, 0.1);
  --card-tag-fg: var(--accent);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 220px;
  padding: var(--space-8) var(--space-7);
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--stroke) 88%, var(--card-accent) 12%);
  border-left: 2px solid var(--card-accent);
  background: color-mix(in srgb, var(--card-tint-base) 8%, var(--bg) 92%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background var(--motion), border-color var(--motion), box-shadow var(--motion);
  position: relative;
}
.project-card--polyart {
  --card-tint-base: #c8b088;
  --card-accent: #b8a078;
  --card-tag-bg: rgba(184, 160, 120, 0.14);
  --card-tag-fg: #b8a078;
}
.project-card--electroacoustique {
  --card-tint-base: #8aab8e;
  --card-accent: #7a9480;
  --card-tag-bg: rgba(122, 148, 128, 0.12);
  --card-tag-fg: #7a9480;
}
.project-card--installations_generatives,
.project-card--net_art {
  --card-tint-base: #7a98a8;
  --card-accent: #688898;
  --card-tag-bg: rgba(104, 136, 152, 0.12);
  --card-tag-fg: #88a0b0;
}
.project-card--partitions_mixtes,
.project-card--mixte,
.project-card--partition,
.project-card--instrumentale {
  --card-tint-base: #9a94b8;
  --card-accent: #8884a0;
  --card-tag-bg: rgba(136, 132, 160, 0.12);
  --card-tag-fg: #8884a0;
}
.project-card--publications,
.project-card--ouvrage,
.project-card--article,
.project-card--ecrits {
  --card-tint-base: #c4ad8a;
  --card-accent: #b0a090;
  --card-tag-bg: rgba(176, 160, 144, 0.12);
  --card-tag-fg: #b0a090;
}
.project-card--mapping {
  --card-tint-base: #8a9eb0;
  --card-accent: #6a8498;
  --card-tag-bg: rgba(106, 132, 152, 0.12);
  --card-tag-fg: #6a8498;
}
.project-card--images_fixes {
  --card-tint-base: #a8a090;
  --card-accent: #908878;
  --card-tag-bg: rgba(144, 136, 120, 0.12);
  --card-tag-fg: #908878;
}
.project-card--disque {
  --card-tint-base: #a89078;
  --card-accent: #907860;
  --card-tag-bg: rgba(144, 120, 96, 0.12);
  --card-tag-fg: #907860;
}
.project-card--realite_virtuelle {
  --card-tint-base: #9898c8;
  --card-accent: #7878a8;
  --card-tag-bg: rgba(120, 120, 168, 0.12);
  --card-tag-fg: #7878a8;
}
.project-card--pedagogie {
  --card-tint-base: #98b088;
  --card-accent: #789868;
  --card-tag-bg: rgba(120, 152, 104, 0.12);
  --card-tag-fg: #789868;
}
.project-card--event,
.project-card--temps_reel {
  --card-tint-base: #b8949e;
  --card-accent: #a08890;
  --card-tag-bg: rgba(160, 136, 144, 0.12);
  --card-tag-fg: #a08890;
}
.project-card--video,
.project-card--installation {
  --card-tint-base: #c49a9a;
  --card-accent: #a08888;
  --card-tag-bg: rgba(160, 136, 136, 0.12);
  --card-tag-fg: #a08888;
}
html[data-theme="light"] .project-card {
  background: color-mix(in srgb, var(--card-tint-base) 11%, #ffffff 89%);
  box-shadow: 0 1px 0 rgba(20, 18, 16, 0.02), 0 8px 22px rgba(20, 18, 16, 0.03);
}
html[data-theme="light"] .project-card--polyart { --card-tag-fg: #7a6848; }
html[data-theme="light"] .project-card--electroacoustique { --card-tag-fg: #5a7262; }
html[data-theme="light"] .project-card--installations_generatives,
html[data-theme="light"] .project-card--net_art { --card-tag-fg: #4a6068; }
html[data-theme="light"] .project-card--partitions_mixtes,
html[data-theme="light"] .project-card--mixte,
html[data-theme="light"] .project-card--partition,
html[data-theme="light"] .project-card--instrumentale { --card-tag-fg: #5c5870; }
html[data-theme="light"] .project-card--publications,
html[data-theme="light"] .project-card--ouvrage,
html[data-theme="light"] .project-card--article,
html[data-theme="light"] .project-card--ecrits { --card-tag-fg: #6a5c48; }
html[data-theme="light"] .project-card--event,
html[data-theme="light"] .project-card--temps_reel { --card-tag-fg: #7a5860; }
html[data-theme="light"] .project-card--video,
html[data-theme="light"] .project-card--installation { --card-tag-fg: #7a5858; }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    background: color-mix(in srgb, var(--card-tint-base) 14%, var(--bg) 86%);
    border-color: color-mix(in srgb, var(--stroke) 50%, var(--card-accent) 50%);
    box-shadow: var(--card-hover-shadow);
  }
  html[data-theme="light"] .project-card:hover {
    background: color-mix(in srgb, var(--card-tint-base) 16%, #ffffff 84%);
    box-shadow: 0 2px 0 rgba(20, 18, 16, 0.02), 0 14px 32px rgba(20, 18, 16, 0.05);
  }
}
.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.project-card-top .muted.small {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.project-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.22;
  color: var(--text);
}
.project-card-desc {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--stroke) 80%, var(--card-accent) 20%);
}
.project-card-bot .muted.small {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--card-tag-fg, var(--accent)) 25%, transparent);
  background: var(--card-tag-bg, rgba(196, 173, 138, 0.1));
  font-size: 0.58rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--card-tag-fg, var(--accent));
}
.tag-polyart { color: #c8b898; background: rgba(184, 160, 120, 0.14); border-color: rgba(184, 160, 120, 0.24); }
.tag-electroacoustique { color: #8ea894; background: rgba(122, 148, 128, 0.12); border-color: rgba(122, 148, 128, 0.2); }
.tag-installations_generatives,
.tag-net_art { color: #88a0b0; background: rgba(104, 136, 152, 0.12); border-color: rgba(104, 136, 152, 0.22); }
.tag-partitions_mixtes,
.tag-mixte,
.tag-partition { color: #9c98b0; background: rgba(136, 132, 160, 0.12); border-color: rgba(136, 132, 160, 0.2); }
.tag-publications,
.tag-ouvrage,
.tag-article,
.tag-ecrits { color: #b0a090; background: rgba(176, 160, 144, 0.12); border-color: rgba(176, 160, 144, 0.22); }
.tag-mapping { color: #6a8498; background: rgba(106, 132, 152, 0.12); border-color: rgba(106, 132, 152, 0.2); }
.tag-images_fixes { color: #908878; background: rgba(144, 136, 120, 0.12); border-color: rgba(144, 136, 120, 0.2); }
.tag-disque { color: #907860; background: rgba(144, 120, 96, 0.12); border-color: rgba(144, 120, 96, 0.2); }
.tag-realite_virtuelle { color: #7878a8; background: rgba(120, 120, 168, 0.12); border-color: rgba(120, 120, 168, 0.2); }
.tag-pedagogie { color: #789868; background: rgba(120, 152, 104, 0.12); border-color: rgba(120, 152, 104, 0.2); }
.tag-event,
.tag-temps_reel { color: #b098a0; background: rgba(160, 136, 144, 0.12); border-color: rgba(160, 136, 144, 0.2); }
.tag-video,
.tag-installation { color: #b09898; background: rgba(160, 136, 136, 0.12); border-color: rgba(160, 136, 136, 0.2); }
.tag-instrumentale { color: #b0a088; background: rgba(160, 144, 120, 0.12); border-color: rgba(160, 144, 120, 0.22); }
.tag-link-out,
.tag-embed { color: var(--faint); background: var(--surface-2); border-color: var(--stroke); }
html[data-theme="light"] .tag-polyart { color: #7a6848; }
html[data-theme="light"] .tag-electroacoustique { color: #5a7262; }
html[data-theme="light"] .tag-installations_generatives,
html[data-theme="light"] .tag-net_art { color: #4a6068; }
html[data-theme="light"] .tag-partitions_mixtes,
html[data-theme="light"] .tag-mixte { color: #5c5870; }
html[data-theme="light"] .tag-publications,
html[data-theme="light"] .tag-ouvrage,
html[data-theme="light"] .tag-article,
html[data-theme="light"] .tag-ecrits,
html[data-theme="light"] .tag-instrumentale { color: #6a5c48; }
html[data-theme="light"] .tag-event,
html[data-theme="light"] .tag-temps_reel { color: #7a5860; }
html[data-theme="light"] .tag-video,
html[data-theme="light"] .tag-installation { color: #7a5858; }

.status {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  font-size: 0.58rem;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--faint);
}
.status-published { color: var(--ok); }
.status-draft { color: var(--warn); }
.status-frozen { color: #64748b; font-weight: 600; }
.tag-frozen {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}
.notice-frozen {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--warn);
  background: rgba(217, 119, 6, 0.08);
  border-radius: 0.35rem;
}
.freeze-admin-field {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.frozen-readonly p { margin: 0 0 0.85rem; }

.muted { color: var(--muted); }
.small { font-size: 0.78rem; font-weight: 300; letter-spacing: 0.02em; }
.center { text-align: center; }
.empty {
  padding: var(--space-20) var(--space-6);
  text-align: center;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: transparent;
}
.group-title {
  margin-top: var(--space-16);
  margin-bottom: var(--space-8);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--h2);
  letter-spacing: -0.01em;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--stroke);
}
.group-title--in-grid {
  grid-column: 1 / -1;
  margin-top: var(--space-8);
}

.back-link { color: var(--muted); font-size: 0.9rem; display: inline-block; margin-bottom: var(--space-4); }
.back-link:hover { color: var(--text); }
.project-header { padding-bottom: var(--space-6); margin-bottom: var(--space-8); border-bottom: 1px solid var(--stroke); }
.project-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-3); }

.project-serie {
  color: var(--accent, #6eb8cc);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.project-artist {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.05rem;
}
.project-copy {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.project-title { font-family: var(--font-display); font-size: var(--h1); font-weight: 300; margin: 0 0 var(--space-4); line-height: 1.05; letter-spacing: -0.01em; }
.project-affiches {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: 0 0 var(--space-6);
}
.project-affiche {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .project-affiche {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.project-affiche img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(82vh, 920px);
  object-fit: contain;
  background: #0a0a0a;
}
html[data-theme="light"] .project-affiche img {
  background: #f4f4f4;
}
.project-affiche figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
}
.project-videos {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: 0 0 var(--space-6);
}
.project-videos--after-text {
  margin-top: var(--space-8);
}
.project-video {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .project-video {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.project-video__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #0a0a0a;
}
html[data-theme="light"] .project-video__stage {
  background: #111;
}
.project-video__stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
}
.project-video__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: var(--space-3) var(--space-4);
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  margin: 0;
}
.project-video__download {
  margin-left: auto;
}
.h4-like {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: var(--space-6) 0 var(--space-3);
}
.youtube-links-panel { margin-bottom: var(--space-6); }
.youtube-links-list { margin-top: var(--space-4); }
.youtube-embed-wrap {
  width: 100%;
  margin: var(--space-2) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #000;
}
.youtube-embed-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
}
.youtube-embed-meta {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border-top: 1px solid var(--stroke);
}
.file-item--youtube { padding: var(--space-4); }
.youtube-public-list { margin-bottom: var(--space-8); }
.prose .youtube-embed-wrap.presentation-youtube,
.prose .presentation-youtube {
  margin: var(--space-6) 0;
}
.prose { color: var(--text); font-size: 1.04rem; line-height: 1.7; }
.prose h2 { margin-top: var(--space-8); }
.prose h3 { margin-top: var(--space-6); }
.prose p { margin: 0 0 var(--space-4); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 var(--space-4); }
.prose ol.presentation-numbered {
  list-style: none;
  counter-reset: presentation-steps;
  padding-left: 0;
  margin: 0 0 var(--space-5);
}
.prose ol.presentation-numbered > li {
  counter-increment: presentation-steps;
  position: relative;
  margin: 0 0 var(--space-2);
  padding-left: 2.4em;
}
.prose ol.presentation-numbered > li::before {
  content: counter(presentation-steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.prose blockquote { border-left: 3px solid var(--stroke-2); padding-left: var(--space-4); color: var(--muted); margin: var(--space-4) 0; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.prose a:hover { text-decoration-color: var(--accent); }
.presentation-live-preview {
  margin: var(--space-4) 0 var(--space-6);
}
.presentation-editor-stack--with-preview {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 960px) {
  .presentation-editor-stack--with-preview {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-5);
  }
  .presentation-live-preview {
    position: sticky;
    top: var(--space-4);
    margin: 0;
    max-height: min(72vh, 720px);
    display: flex;
    flex-direction: column;
  }
  .presentation-preview-box {
    flex: 1;
    min-height: 200px;
    max-height: min(64vh, 640px);
    overflow: auto;
  }
}
.presentation-live-preview.is-loading .presentation-preview-box {
  opacity: 0.55;
}
.presentation-live-preview__title {
  margin: 0 0 var(--space-2);
}
.presentation-html-field textarea,
.presentation-html-input {
  min-height: 220px;
  resize: vertical;
}
.page-admin-project-edit .presentation-html-field textarea,
.page-admin-project-edit .presentation-html-input {
  min-height: 280px;
  padding: 14px 16px;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  line-height: 1.55;
  cursor: text;
  pointer-events: auto;
  -webkit-user-modify: read-write-plaintext-only;
}
.page-admin-project-edit .presentation-html-field textarea:focus,
.page-admin-project-edit .presentation-html-input:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}
.presentation-html-field__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.presentation-preview-box {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  min-height: 96px;
  pointer-events: auto;
  user-select: text;
}

/* Editeur WYSIWYG de la presentation longue */
.presentation-wysiwyg-field {
  display: block;
  margin: var(--space-3) 0 var(--space-5);
}
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--stroke-2);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface-2);
}
.wysiwyg-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  padding: 6px 9px;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
}
.wysiwyg-btn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.wysiwyg-btn.is-active { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.wysiwyg-sep {
  width: 1px;
  align-self: stretch;
  margin: 2px 4px;
  background: var(--stroke);
}
.presentation-wysiwyg {
  min-height: 280px;
  padding: 14px 16px;
  border: 1px solid var(--stroke-2);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--surface-2);
  line-height: 1.6;
  cursor: text;
  overflow: auto;
}
.presentation-wysiwyg:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.presentation-wysiwyg:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted, #888);
  pointer-events: none;
}
.presentation-rendered-preview {
  margin-top: var(--space-4);
}
.presentation-code {
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  overflow: auto;
  font-size: 0.9em;
}
.presentation-inline-code {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.92em;
}

/* Boutons dans le contenu de projet (présentation IA, interface embarquée) */
.prose button,
.prose input[type="button"],
.prose input[type="submit"],
.prose .btn,
.portfolio-embed-shell button,
.portfolio-embed-shell input[type="button"],
.portfolio-embed-shell input[type="submit"],
.portfolio-embed-shell .btn,
#crr-proj-pres-host button,
#crr-proj-emb-host button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid var(--stroke-2);
  color: var(--text);
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border-radius: 0;
  box-shadow: none;
}
.prose button:hover,
.prose input[type="button"]:hover,
.prose input[type="submit"]:hover,
.prose .btn:hover,
.portfolio-embed-shell button:hover,
.portfolio-embed-shell .btn:hover,
#crr-proj-pres-host button:hover,
#crr-proj-emb-host button:hover {
  background: transparent !important;
  background-color: transparent !important;
  border-color: var(--text);
}
.prose .btn.primary,
.portfolio-embed-shell .btn.primary,
#crr-proj-pres-host .btn.primary,
#crr-proj-emb-host .btn.primary {
  background: transparent !important;
  color: var(--text);
  border-color: var(--stroke-2);
}

.portfolio-embed-shell {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: auto;
  max-width: 100%;
}
/* Visionneuse site heberge (iframe + plein ecran) */
.portfolio-embed-viewer {
  margin: var(--space-8) 0;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: var(--surface);
}
.portfolio-embed-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--stroke);
  background: var(--surface-2, rgba(255, 255, 255, 0.03));
}
.portfolio-embed-viewer__stage {
  position: relative;
  width: 100%;
  min-height: min(82vh, 960px);
  background: #0a0a0a;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.portfolio-embed-viewer.is-fitted .portfolio-embed-viewer__stage {
  min-height: 0;
  overflow: visible;
}
.portfolio-embed-viewer.is-fit-off .portfolio-embed-viewer__stage {
  min-height: min(82vh, 960px);
  overflow: auto;
}
.portfolio-embed-iframe {
  display: block;
  width: 100%;
  height: min(82vh, 960px);
  min-height: 400px;
  border: 0;
  background: #0a0a0a;
}
.portfolio-embed-viewer.is-fitted .portfolio-embed-iframe {
  height: var(--embed-iframe-height, min(82vh, 960px));
  min-height: 320px;
}
.portfolio-embed-viewer--inline .portfolio-embed-viewer__stage {
  min-height: 0;
  overflow: visible;
  background: var(--surface);
}
.portfolio-embed-inline {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}
.portfolio-embed-viewer--inline.is-fitted .portfolio-embed-viewer__stage {
  height: auto;
  min-height: var(--embed-iframe-height, min(82vh, 960px));
}
.portfolio-embed-viewer:fullscreen .portfolio-embed-inline,
.portfolio-embed-viewer.is-fullscreen-fallback .portfolio-embed-inline {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: var(--space-4);
}
.portfolio-embed-viewer:fullscreen,
.portfolio-embed-viewer.is-fullscreen-fallback {
  position: fixed;
  inset: 0;
  z-index: 9999;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
}
.portfolio-embed-viewer:fullscreen .portfolio-embed-viewer__stage,
.portfolio-embed-viewer.is-fullscreen-fallback .portfolio-embed-viewer__stage {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: auto;
}
.portfolio-embed-viewer:fullscreen .portfolio-embed-iframe,
.portfolio-embed-viewer.is-fullscreen-fallback .portfolio-embed-iframe {
  width: 100%;
  min-height: 100%;
  height: var(--embed-iframe-height, 100%);
  max-height: none;
}
html.crr-embed-fullscreen {
  overflow: hidden;
}
html.crr-embed-fullscreen body {
  overflow: hidden;
}
.proj-draft-banner {
  margin: var(--space-4) 0 var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 207, 102, 0.45);
  background: rgba(255, 207, 102, 0.1);
  font-size: 0.95rem;
  color: var(--text);
}
.portfolio-embed-same-site {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.portfolio-embed-same-site p { margin: 0 0 var(--space-4); color: var(--muted); max-width: 60ch; }
.portfolio-embed-same-site p:last-child { margin-bottom: 0; }
.portfolio-embed-notice {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--stroke);
  background: var(--surface-2, rgba(255, 255, 255, 0.03));
  max-width: 72ch;
}
.portfolio-embed-notice p { margin: 0; color: var(--muted); }
.file-list.compact { gap: var(--space-2); }
.file-item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.file-item audio, .file-item video, .file-item img { width: 100%; border-radius: var(--radius-sm); }
.file-media { display: flex; flex-direction: column; gap: var(--space-2); }
.file-media audio, .file-media video { width: 100%; min-height: 48px; border-radius: var(--radius-sm); }
.file-media-fallback { margin: 0; }
.file-item--pdf {
  padding: 0;
  border: none;
  background: transparent;
  gap: 0;
}
.pdf-viewer {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.pdf-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--stroke);
  background: var(--surface-2);
}
.pdf-viewer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.pdf-viewer__name { font-weight: 500; word-break: break-word; }
.file-download-request-form {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.file-download-request-form[hidden] {
  display: none !important;
}
.pdf-viewer__actions .file-download-request {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}
.file-item--with-access {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
}
.file-access-form .field-inline {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}
.pdf-viewer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex-shrink: 0;
}
.pdf-viewer__stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: min(72vh, 780px);
  background: var(--bg);
}
.pdf-viewer__watermark {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}
.pdf-viewer__watermark-grid {
  position: absolute;
  inset: -20%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  transform: rotate(-28deg);
}
.pdf-viewer__watermark-txt {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(20, 20, 20, 0.16);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.35);
}
.pdf-viewer:fullscreen .pdf-viewer__watermark-txt,
.pdf-viewer:-webkit-full-screen .pdf-viewer__watermark-txt,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__watermark-txt {
  color: rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}
.pdf-viewer__demo-tag {
  color: var(--accent, #8a5a2b);
}
.pdf-viewer__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.pdf-viewer__fs {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pdf-viewer__fs--inline {
  position: absolute;
  inset: 0;
  display: flex !important;
  flex-direction: column;
}
.pdf-viewer--demo .pdf-viewer__nav--fs {
  display: inline-flex;
}
.pdf-viewer--demo .pdf-viewer__status {
  display: block !important;
}
.pdf-viewer__fs[hidden] {
  display: none !important;
}
.pdf-viewer__frame[hidden] {
  display: none !important;
}
.pdf-viewer__canvas-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: auto;
  padding: var(--space-3);
  box-sizing: border-box;
}
.pdf-viewer__canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.pdf-viewer__nav {
  display: inline-flex;
  gap: var(--space-1);
}
.pdf-viewer__nav--fs:not([hidden]) {
  display: inline-flex;
}
.pdf-viewer__status {
  margin: 0;
  padding: var(--space-2) var(--space-4) var(--space-3);
}
.pdf-viewer__status[hidden] {
  display: none !important;
}
.pdf-viewer.is-fullscreen .pdf-viewer__nav--fs,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__nav--fs {
  display: inline-flex;
}
.pdf-viewer.is-fullscreen .pdf-viewer__status,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__status {
  display: block !important;
}
.pdf-viewer:fullscreen,
.pdf-viewer:-webkit-full-screen,
.pdf-viewer.is-fullscreen-fallback {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: var(--space-3);
  gap: var(--space-3);
  background: #1a1a1a;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.pdf-viewer:fullscreen .pdf-viewer__toolbar,
.pdf-viewer:-webkit-full-screen .pdf-viewer__toolbar,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__toolbar {
  flex-shrink: 0;
}
.pdf-viewer:fullscreen .pdf-viewer__stage,
.pdf-viewer:-webkit-full-screen .pdf-viewer__stage,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  width: 100%;
}
.pdf-viewer:fullscreen .pdf-viewer__fs,
.pdf-viewer:-webkit-full-screen .pdf-viewer__fs,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__fs {
  position: absolute;
  inset: 0;
  display: flex !important;
  flex-direction: column;
}
.pdf-viewer:fullscreen .pdf-viewer__canvas-wrap,
.pdf-viewer:-webkit-full-screen .pdf-viewer__canvas-wrap,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-4);
}
.pdf-viewer:fullscreen .pdf-viewer__canvas,
.pdf-viewer:-webkit-full-screen .pdf-viewer__canvas,
.pdf-viewer.is-fullscreen-fallback .pdf-viewer__canvas {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.pdf-viewer.is-fullscreen-fallback {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
html.crr-pdf-fullscreen {
  overflow: hidden;
}
html.crr-pdf-fullscreen body {
  overflow: hidden;
}
.file-list.compact .file-item { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-3); }
.file-name { font-weight: 500; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 280px);
  padding: var(--space-12) var(--space-4);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  border-radius: 0;
  border: 1px solid var(--stroke);
  background: transparent;
}
.auth-card h1 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-4);
  font-size: clamp(1.8rem, 1.15rem + 1vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.auth-card .muted { margin: 0; }
.auth-context-note {
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--stroke);
  background: var(--surface);
  line-height: 1.55;
  font-size: 0.95rem;
  color: var(--text);
}
.auth-dev-hint {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.08);
  font-size: 0.88rem;
  line-height: 1.5;
}
.auth-dev-hint code {
  font-size: 0.85em;
}
.auth-signup-callout {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--stroke);
}
.auth-signup-callout-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-signup-callout-lead {
  margin: 0 0 var(--space-4);
  line-height: 1.55;
}
.auth-signup-callout-btn {
  text-align: center;
  justify-content: center;
}
.auth-credit { margin-top: var(--space-5) !important; }
.form { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.form .field span { font-size: 0.78rem; }
.form .btn.primary.block { margin-top: var(--space-2); padding-top: 13px; padding-bottom: 13px; }
.form textarea { resize: vertical; min-height: 90px; }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.center.small { margin-top: var(--space-5); }
.center.small a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.center.small a:hover { color: var(--accent-2); }

#crr-global-loading {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 12, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion), visibility var(--motion);
  pointer-events: none;
}
#crr-global-loading.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.crr-global-loading__inner {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.crr-global-loading__inner p { margin: var(--space-4) 0 0; font-size: 0.95rem; color: var(--muted); }
.crr-global-loading__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid var(--stroke);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: crr-spin 0.8s linear infinite;
}
@keyframes crr-spin { to { transform: rotate(360deg); } }
html.crr-is-busy { cursor: wait; }

.panel-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-6); padding: var(--space-6) var(--space-4); max-width: var(--maxw); margin: 0 auto; }
@media (max-width: 880px) { .panel-layout { grid-template-columns: 1fr; } }
.panel-nav {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: fit-content;
  position: sticky;
  top: 88px;
}
.panel-nav-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.panel-nav a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.panel-nav a:hover { background: var(--surface-2); color: var(--text); }
.panel-nav a.active { background: var(--surface-2); color: var(--text); }
.panel-nav-user { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--stroke); }
.user-name { font-weight: 600; }
.pill { background: var(--accent); color: #06121e; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.panel-content {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.panel-content h1 { font-family: var(--font-display); margin: 0 0 var(--space-5); font-size: 1.65rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head h1.inline { display: inline; margin-left: var(--space-3); }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-export-card {
  margin: 0 0 var(--space-8);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.admin-export-card .h4-like {
  margin: 0 0 var(--space-3);
}
.admin-export-lead {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
  line-height: 1.55;
}

.admin-rental-preview {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.admin-rental-preview__lead,
.admin-rental-preview__warn {
  max-width: 62ch;
  line-height: 1.55;
}
.admin-rental-preview__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}

.page-catalog-pdf {
  padding: var(--space-8) 0 var(--space-10);
  border-top: 1px solid var(--stroke);
  margin-top: var(--space-4);
}
.page-catalog-pdf__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.page-catalog-pdf__lead {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
  font-size: 0.95rem;
}
.page-catalog-pdf__btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}
.page-catalog-pdf--discrete {
  padding: var(--space-6) 0 var(--space-8);
  margin-top: var(--space-2);
  border-top: 1px solid color-mix(in srgb, var(--stroke) 65%, transparent 35%);
}
.page-catalog-pdf--discrete .page-catalog-pdf__title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.page-catalog-pdf--discrete .page-catalog-pdf__lead {
  font-size: 10px;
  line-height: 1.5;
  margin-bottom: var(--space-3);
  max-width: 52ch;
  color: color-mix(in srgb, var(--muted) 88%, transparent 12%);
}
.page-catalog-pdf--discrete .page-catalog-pdf__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--stroke);
  background: transparent;
  transition: color var(--motion), border-color var(--motion);
}
.page-catalog-pdf--discrete .page-catalog-pdf__link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke) 55%);
}
.page-end-cta {
  padding: var(--space-8) 0 var(--space-12);
  border-top: 1px solid var(--stroke);
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.kpi {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .kpi:hover { border-color: var(--stroke-2); background: var(--surface-2); }
}
.kpi-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.kpi-label { color: var(--muted); margin-top: 4px; font-size: 0.9rem; }

.card-list { display: flex; flex-direction: column; gap: var(--space-3); }
.request-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--surface);
  flex-wrap: wrap;
}
.request-name { font-weight: 600; font-size: 1.05rem; }
.request-message { margin: var(--space-2) 0 0; color: var(--muted); font-style: italic; max-width: 60ch; }
.request-actions { display: flex; gap: 8px; }
.inline-form { display: inline; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); }
.data-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.data-table tr:hover td { background: var(--surface-2); }

/* Admin tables : selects et boutons sans fond sombre */
.data-table select,
.panel-content select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid var(--stroke-2);
  border-radius: 0;
  padding: 8px 32px 8px 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239c9890' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.data-table select:focus-visible,
.panel-content select:focus-visible {
  outline: 1px solid var(--focus-ring);
  outline-offset: 2px;
}
.page-panel .panel-content .btn,
.page-panel .panel-content .btn.primary,
.page-panel .panel-content .btn.danger {
  background: transparent;
}
.page-panel .panel-content .btn.primary {
  color: var(--text);
  border-color: var(--stroke-2);
}
.page-panel .panel-content .btn.primary:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.page-panel .panel-content .btn.danger:hover {
  background: transparent;
}

.edit-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-6); }
@media (max-width: 1080px) { .edit-grid { grid-template-columns: 1fr; } }
.edit-flow { display: block; }
.edit-assistant {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mode-fieldset {
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-5) 0 var(--space-8);
  background: var(--surface-2);
}
.mode-fieldset legend {
  padding: 0 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}
.mode-fieldset-intro {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 62ch;
}
.student-new-lead {
  margin: 0 0 var(--space-6);
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.55;
  font-size: 1.05rem;
}
.form-section-title {
  margin: var(--space-8) 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.35;
}
.form-submit-row {
  margin-top: var(--space-6);
}
.form-new-publication .mode-fieldset + .form-section-title {
  margin-top: var(--space-6);
}
.form-new-publication .field-block {
  margin-bottom: var(--space-2);
}
.form-section-lead {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
  line-height: 1.55;
}
.publication-process-guide {
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  max-width: 72ch;
}
.publication-process-guide__lead {
  margin: 0 0 var(--space-3);
  line-height: 1.55;
  color: var(--text);
}
.publication-process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.92rem;
}
.publication-process-steps li {
  padding-left: 0;
}
.publication-process-steps li + li {
  margin-top: 0.35rem;
}
.publication-process-steps a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.publication-process-steps a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Admin — édition publication (ordre chronologique) */
.admin-edit-header {
  margin-bottom: var(--space-5);
}
.admin-edit-header h1 {
  margin-bottom: var(--space-4);
}
.admin-edit-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.admin-edit-meta__item { margin: 0; }
.admin-edit-meta dt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.25rem;
}
.admin-edit-meta dd {
  margin: 0;
  line-height: 1.45;
}
.admin-edit-meta__item--actions dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.admin-edit-form-anchor {
  display: none;
}
.admin-edit-step {
  margin: 0 0 var(--space-8);
  padding: var(--space-6) var(--space-6) var(--space-7);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-margin-top: 96px;
}
.admin-edit-step__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.admin-edit-step__subtitle {
  margin: var(--space-6) 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
}
.admin-edit-step__lead {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
  line-height: 1.55;
}
.admin-edit-step__note {
  margin: 0 0 var(--space-6);
  max-width: 62ch;
}
.admin-edit-step__subsection {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--stroke);
}
.admin-edit-file-list {
  margin-top: var(--space-4);
}
.admin-edit-form__save {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--stroke);
}
.admin-edit-step--commerce,
.admin-edit-step--verify {
  padding: 0;
  border: none;
  background: transparent;
}
.admin-edit-step--commerce .admin-commerce,
.admin-edit-step--verify .admin-rental-preview {
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-6);
}
.admin-edit-step--verify .admin-rental-preview {
  border-color: rgba(124, 107, 255, 0.35);
  background: rgba(124, 107, 255, 0.04);
}
.admin-edit-footer-note {
  margin-top: var(--space-4);
  max-width: 62ch;
}
.page-admin-project-edit .admin-edit-step .form-section-title {
  display: none;
}
.page-admin-project-edit .admin-edit-step .form-section-lead:first-of-type {
  margin-top: 0;
}

/* Admin — commerce central (phase 2c) */
.admin-commerce-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--stroke);
}
.admin-commerce-nav a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}
.admin-commerce-nav a:hover,
.admin-commerce-nav a.active {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.admin-commerce-lead { max-width: 62ch; margin-bottom: var(--space-5); }
.admin-commerce-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: flex-end;
  margin-bottom: var(--space-5);
}
.admin-commerce-filters .field { margin: 0; min-width: 10rem; }
.admin-commerce-order-meta { margin-bottom: var(--space-6); }
.admin-commerce-raw { margin-top: var(--space-6); }
.admin-commerce-raw__pre {
  max-height: 20rem;
  overflow: auto;
  padding: var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
}
.status-active { color: var(--accent); }
.status-expired,
.status-revoked { color: #c44; }
.admin-commerce-env-status {
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.radio-line { display: flex; gap: 12px; align-items: flex-start; margin: var(--space-4) 0; cursor: pointer; padding: var(--space-3) 0; border-top: 1px solid var(--stroke); }
.radio-line:first-of-type { border-top: none; padding-top: 0; }
.radio-line input { margin-top: 5px; flex-shrink: 0; }
.radio-line > span { flex: 1; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.radio-line strong { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.radio-line-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.checkbox-line { display: flex; gap: 12px; align-items: flex-start; margin: var(--space-3) 0; cursor: pointer; }
.checkbox-line input { margin-top: 4px; flex-shrink: 0; }
.checkbox-line > span { flex: 1; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.edit-side {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
  top: 88px;
  height: fit-content;
  max-height: calc(100vh - 120px);
}
.chat {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 300px;
  max-height: 50vh;
}
.chat-msg {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 92%;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-user { align-self: flex-end; background: var(--accent); color: #141210; }
.chat-assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--stroke); color: var(--text); }
.chat-form { display: flex; flex-direction: column; gap: 8px; }
.chat-form textarea {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.ai-hint { display: block; margin-top: 4px; }

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: var(--space-16) 0 var(--space-20);
  margin-top: var(--space-32);
  color: var(--muted);
  background: transparent;
}
.site-footer-inner { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.footer-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  width: 100%;
  max-width: 52rem;
}
.footer-line {
  margin: 0;
  line-height: 1.55;
}
.footer-line1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--text);
}
.footer-line2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-line2-text { line-height: 1.5; }
.footer-contact-link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--motion);
}
.footer-contact-link:hover {
  color: var(--accent);
}
.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}
.footer-utility-sep {
  color: var(--faint);
  font-size: 9px;
  user-select: none;
}
.footer-theme-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer-theme-btn.is-active,
.footer-theme-btn.active {
  color: var(--text);
}
.footer-line2 .btn.btn-sm { flex-shrink: 0; }
.footer-stats {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-stats strong {
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.footer-lang a.is-active { color: var(--accent); }
.footer-copyright {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-stats > span:not(.footer-stats-sep) {
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  font-variant-numeric: tabular-nums;
}
.footer-stats > span:not(.footer-stats-sep)::after {
  content: "·";
  margin-left: var(--space-3);
  color: var(--stroke-2);
}
.footer-stats > span:not(.footer-stats-sep):last-child::after {
  content: none;
}

::selection { background: rgba(176, 160, 144, 0.22); }

.footer-stats-sep { display: none; }

:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 3px; }
button:focus-visible, .btn:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 3px; }

@media print {
  body { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .panel-nav, .skip-link { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crr-global-loading__spinner { animation: none; border-color: var(--accent); }
  .project-card,
  .btn,
  .nav-link,
  .theme-switch button,
  .hero-cat-link,
  .skip-link,
  #crr-global-loading { transition: none; }
  .project-card:hover { background: transparent; }
}

/* Sélecteur de langue (footer) */
.footer-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.footer-lang a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.footer-lang a:hover,
.footer-lang a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.legacy-portfolio {
  display: grid;
  gap: var(--space-16);
  padding-top: var(--space-12);
  padding-bottom: var(--space-18);
  margin-top: var(--space-10);
  border-top: 1px solid var(--stroke);
  background: var(--bg);
}

.legacy-portfolio .section { position: relative; }
.legacy-portfolio .section + .section { padding-top: var(--space-2); }

.legacy-portfolio .section-title h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.legacy-portfolio .section .wrap,
.legacy-portfolio .section .wrap.narrow { position: relative; }

.legacy-portfolio .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.legacy-portfolio .kicker::before {
  content: "";
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.legacy-portfolio .prose { max-width: 72ch; }
.legacy-portfolio .prose a {
  text-decoration: underline;
  text-decoration-color: rgba(124, 247, 213, 0.5);
  text-underline-offset: 0.18em;
}
.legacy-portfolio .prose a:hover { text-decoration-color: var(--accent); }

.legacy-portfolio .section-title { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.legacy-portfolio .section-title .subtitle { max-width: 75ch; color: var(--muted); }

.legacy-portfolio .panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.legacy-portfolio .panel-inner { padding: clamp(16px, 14px + 1.2vw, 28px); }

.legacy-portfolio .grid { display: grid; gap: var(--grid-gap, 18px); }
.legacy-portfolio .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legacy-portfolio .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legacy-portfolio .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .legacy-portfolio .grid.cols-3,
  .legacy-portfolio .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .legacy-portfolio .grid.cols-2,
  .legacy-portfolio .grid.cols-3,
  .legacy-portfolio .grid.cols-4 { grid-template-columns: 1fr; }
}

.legacy-portfolio .card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 16px 16px 14px;
  overflow: hidden;
  min-height: 120px;
}
@media (hover: hover) and (pointer: fine) {
  .legacy-portfolio .card:hover {
    border-color: var(--stroke-2);
    background: var(--surface-2);
  }
}
.legacy-portfolio .card:focus-within {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}

.legacy-portfolio .card-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.legacy-portfolio .card p { color: var(--muted); font-size: 0.96rem; }
.legacy-portfolio .card .meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legacy-portfolio .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--muted);
}
.legacy-portfolio .tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.legacy-portfolio .tag.blue .dot { background: var(--accent-2); }
.legacy-portfolio .tag.warn .dot { background: var(--warn); }

.legacy-portfolio ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.legacy-portfolio .li { display: flex; gap: 12px; align-items: flex-start; }
.legacy-portfolio .li .bullet {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--accent);
}
.legacy-portfolio .li .text { color: var(--muted); }

.legacy-portfolio .note {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 207, 102, 0.35);
  background: rgba(255, 207, 102, 0.08);
  padding: 14px;
  color: var(--text);
}

.legacy-portfolio .divider,
.legacy-portfolio .hr {
  border: 0;
  height: 1px;
  margin: var(--space-8) 0;
  background: var(--stroke);
}

.legacy-portfolio .callout {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  padding: clamp(14px, 12px + 0.8vw, 20px);
}
@media (hover: hover) and (pointer: fine) {
  .legacy-portfolio .callout:hover { border-color: var(--stroke-2); }
}

.legacy-portfolio .link-card {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 14px;
}
@media (hover: hover) and (pointer: fine) {
  .legacy-portfolio .link-card:hover {
    border-color: var(--stroke-2);
    background: var(--surface-2);
  }
}
.legacy-portfolio .link-card:focus-visible { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: 2px; }
.legacy-portfolio .link-card .title { font-weight: 700; letter-spacing: -0.01em; }
.legacy-portfolio .link-card .desc { color: var(--muted); font-size: 0.96rem; }

.legacy-portfolio .quote {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: var(--muted);
}
.legacy-portfolio .quote strong { color: var(--text); }

.legacy-portfolio .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--muted);
}

.legacy-portfolio details {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 12px 14px;
}
.legacy-portfolio summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
  list-style: none;
}
.legacy-portfolio summary::-webkit-details-marker { display: none; }
.legacy-portfolio summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}
.legacy-portfolio details[open] summary::after { content: "▴"; }
.legacy-portfolio details > *:not(summary) { margin-top: 10px; color: var(--muted); }

.legacy-portfolio table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.legacy-portfolio th,
.legacy-portfolio td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}
.legacy-portfolio th {
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
}
@media (hover: hover) and (pointer: fine) {
  .legacy-portfolio tr:hover td { background: var(--surface-2); }
}

.legacy-portfolio code,
.legacy-portfolio kbd {
  font-family: var(--font-mono);
  font-size: 0.93em;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  padding: 2px 6px;
  border-radius: 8px;
}
.legacy-portfolio pre {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg);
  padding: 14px;
  overflow: auto;
}
.legacy-portfolio pre code { background: transparent; border: none; padding: 0; }

.legacy-portfolio .mt-0 { margin-top: 0; }
.legacy-portfolio .mt-2 { margin-top: var(--space-2); }
.legacy-portfolio .mt-4 { margin-top: var(--space-4); }
.legacy-portfolio .mt-6 { margin-top: var(--space-6); }
.legacy-portfolio .mt-8 { margin-top: var(--space-8); }
.legacy-portfolio .mb-0 { margin-bottom: 0; }
.legacy-portfolio .mb-4 { margin-bottom: var(--space-4); }
.legacy-portfolio .mb-8 { margin-bottom: var(--space-8); }
.legacy-portfolio .form-hint { font-size: 0.9rem; color: var(--muted); margin: 0; }

.legacy-portfolio .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap, 18px);
}
@media (max-width: 900px) { .legacy-portfolio .photo-grid { grid-template-columns: 1fr; } }

.legacy-portfolio .photo-card {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
}
.legacy-portfolio .photo-card img { width: 100%; height: 220px; object-fit: cover; }
.legacy-portfolio .photo-card figcaption {
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.legacy-portfolio .photo-card figcaption a { text-decoration: underline; text-underline-offset: 0.15em; }

.legacy-portfolio .contact-form { display: grid; gap: var(--space-4); }
.legacy-portfolio .contact-form .field { display: grid; gap: 6px; }
.legacy-portfolio .contact-form label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.legacy-portfolio .contact-form input,
.legacy-portfolio .contact-form select,
.legacy-portfolio .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--bg);
  color: var(--text);
}
.legacy-portfolio .contact-form input:focus-visible,
.legacy-portfolio .contact-form select:focus-visible,
.legacy-portfolio .contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
}
.legacy-portfolio .contact-form textarea { min-height: 140px; resize: vertical; }

.legacy-portfolio .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.legacy-portfolio .form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.legacy-portfolio #form-status { font-size: 0.95rem; color: var(--muted); margin: 0; }
.legacy-portfolio #form-status.success { color: var(--accent); }
.legacy-portfolio #form-status.error { color: var(--danger); }
.legacy-portfolio .faq details { margin-bottom: 10px; }

.contact-lead { margin-bottom: 1.25rem; max-width: 42rem; }
.contact-form { max-width: 36rem; }
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-message-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.contact-message-item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--surface);
}
.contact-message-item.contact-message-new { border-left: 4px solid var(--accent); }
.contact-message-head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: baseline; margin-bottom: 0.65rem; }
.contact-message-body { white-space: pre-wrap; line-height: 1.55; margin: 0.5rem 0 0.75rem; }
.contact-message-actions { margin-top: 0.5rem; }
.contact-message-date { margin-left: auto; }
.commerce-key-entry {
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
}
.commerce-key-entry__lead { max-width: 52ch; margin-bottom: var(--space-4); }
.commerce-key-entry__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
}
.commerce-key-entry__field { flex: 1 1 16rem; margin: 0; }
.commerce-key-entry__error { color: #c44; margin: 0 0 var(--space-3); }
.commerce-key-entry__success { color: var(--accent); margin: 0; }

/* Admin — commercialisation (phase 2a) */
.admin-commerce {
  margin: 0;
  padding: 0;
  border-top: none;
}
.admin-commerce__lead { max-width: 42rem; margin-bottom: var(--space-5); }
.admin-commerce-status {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}
.admin-commerce-status__title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 var(--space-3);
}
.admin-commerce-status__list {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}
.admin-commerce-status__list dt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.25rem;
}
.admin-commerce-status__list dd { margin: 0; word-break: break-all; }
.admin-commerce-status__empty,
.admin-commerce-status__hint,
.admin-commerce-status__ok { margin: 0 0 var(--space-2); max-width: 52ch; }
.admin-commerce-status__ok { color: var(--accent); }
.admin-commerce-status__offers { margin-top: var(--space-4); }
.admin-commerce-status__offers-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 var(--space-2);
}
.admin-commerce-status__offers-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.admin-commerce-edit { margin-top: var(--space-5); }
.admin-commerce-edit__summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.admin-commerce-settings input,
.admin-commerce-settings select,
.admin-commerce-settings textarea {
  color: var(--text);
}
.admin-commerce-settings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--space-4) var(--space-6);
  margin: var(--space-5) 0;
}
.admin-commerce-offers-title {
  font-family: var(--font-display);
  font-size: var(--h4);
  font-weight: 400;
  margin: var(--space-6) 0 var(--space-2);
}
.admin-commerce-offers-wrap { overflow-x: auto; margin-bottom: var(--space-4); }
.admin-commerce-offers {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-commerce-offers th,
.admin-commerce-offers td {
  border-bottom: 1px solid var(--stroke);
  padding: 0.45rem 0.35rem;
  vertical-align: middle;
  text-align: left;
}
.admin-commerce-offers th {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}
.admin-commerce-offers input,
.admin-commerce-offers select {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.25rem;
  font-size: 0.82rem;
  border: none;
  border-bottom: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
}
.admin-commerce-offers input.narrow { max-width: 4.5rem; }
.admin-commerce-offer-active { text-align: center; }
.admin-commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}
.admin-commerce-template-form { margin: 0; }
.admin-commerce-partition {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  max-width: 40rem;
}
.admin-commerce-partition__title {
  margin: 0 0 var(--space-2);
  font-weight: 600;
}
.admin-commerce-partition__steps {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
}
.admin-commerce-partition__steps li { margin-bottom: var(--space-1); }
.admin-commerce-partition__price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.admin-commerce-partition__price .field--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}
.admin-commerce-partition__price input.narrow {
  width: 5rem;
}
.field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field--checkbox input { width: auto; }
