/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0c0b09;
  --bg-2:       #141210;
  --bg-3:       #1e1c19;
  --text:       #e8e2d8;
  --text-muted: #7a7468;
  --accent:     #b8965a;
  --accent-dim: rgba(184,150,90,.15);
  --white:      #f5f0e8;
  --border:     rgba(255,255,255,.07);
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;
  --nav-h:      64px;
  --ease:       cubic-bezier(.16,1,.3,1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Navigation ─────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.site-nav.scrolled { background: rgba(12,11,9,.96); backdrop-filter: blur(12px); }

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--white);
}
.brand-sub {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────── */
.site-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 3rem;
  padding-left: clamp(1.25rem, 8vw, 8rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  position: relative;
}
.hero-content { max-width: 480px; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--white);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-count {
  margin-top: 1.5rem;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-line {
  position: absolute;
  bottom: 0; left: clamp(1.25rem, 8vw, 8rem);
  width: 40px;
  height: 1px;
  background: var(--accent);
}

/* ── Filtres ─────────────────────────────────────────── */
.filters-section {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-section::-webkit-scrollbar { display: none; }

.filters-track {
  display: flex;
  gap: .5rem;
  width: max-content;
  min-width: 100%;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.filter-pill:hover { border-color: var(--accent-dim); color: var(--text); }
.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 400;
}
.filter-count {
  font-size: .65rem;
  opacity: .6;
}

/* ── Galerie Masonry ─────────────────────────────────── */
.gallery-container {
  padding: 2rem clamp(1rem, 3vw, 2.5rem) 5rem;
}

.masonry-grid {
  columns: 2;
  column-gap: .75rem;
}
@media (min-width: 640px)  { .masonry-grid { columns: 3; } }
@media (min-width: 900px)  { .masonry-grid { columns: 4; } }
@media (min-width: 1200px) { .masonry-grid { columns: 5; } }
@media (min-width: 1500px) { .masonry-grid { columns: 6; } }

.painting-card {
  break-inside: avoid;
  margin-bottom: .75rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  animation: fadeUp .5s var(--ease) both;
  animation-delay: calc(var(--delay) * 50ms);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.card-img-wrap img {
  width: 100%;
  display: block;
  transition: transform .6s var(--ease);
}
.painting-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .75rem;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.painting-card:hover .card-overlay,
.painting-card:focus-within .card-overlay { opacity: 1; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: .5rem;
}
.card-tag {
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .15rem .4rem;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  color: var(--white);
}

.btn-contact {
  width: 100%;
  padding: .5rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background .2s, transform .1s;
}
.btn-contact:hover { background: var(--white); }
.btn-contact:active { transform: scale(.98); }

/* ── Load more ───────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: 3rem;
}
.btn-load-more {
  padding: .75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all .25s var(--ease);
}
.btn-load-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Gallery Empty ───────────────────────────────────── */
.gallery-empty {
  padding: 6rem 0;
  text-align: center;
  color: var(--text-muted);
}
.btn-reset {
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.btn-reset:hover { border-color: var(--accent); color: var(--accent); }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lb-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.lb-close:hover { color: var(--white); background: rgba(255,255,255,.08); }

.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.lb-nav:hover { color: var(--white); background: rgba(255,255,255,.08); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 4.5rem; }
@media (max-width: 640px) {
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
}

/* ── Modal Contact ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }

.modal-panel {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  animation: slideUp .35s var(--ease);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 600px) {
  .modal-panel {
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr;
    max-height: 85vh;
  }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 1;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--white); background: rgba(255,255,255,.08); }

.modal-painting-preview {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 240px;
}
@media (min-width: 600px) {
  .modal-painting-preview {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    max-height: none;
  }
}
.modal-painting-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-form-side {
  padding: 2rem 1.5rem;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: .35rem;
}
.modal-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* ── Forms ───────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .9rem;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: .5; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 96px; }

.form-error {
  font-size: .7rem;
  color: #e07070;
  min-height: 1em;
}

.form-status {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  margin-bottom: 1rem;
}
.form-status.success { background: rgba(90,180,90,.15); color: #7ecb7e; border: 1px solid rgba(90,180,90,.25); }
.form-status.error   { background: rgba(200,70,70,.12); color: #e07070; border: 1px solid rgba(200,70,70,.2); }

.btn-submit {
  width: 100%;
  padding: .75rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .2s, transform .1s;
}
.btn-submit:hover { background: var(--white); }
.btn-submit:active { transform: scale(.99); }
.btn-submit:disabled { opacity: .5; pointer-events: none; }

.spinner {
  width: 18px; height: 18px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: .9rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); }
.footer-sep { opacity: .3; }

/* ── Cookie Banner ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  width: calc(100% - 2.5rem);
  max-width: 640px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  animation: slideUp .4s var(--ease);
}
.cookie-banner.hidden { display: none; }

.cookie-inner p {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.cookie-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

.btn-cookie-accept {
  padding: .5rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 100px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--white); }

.btn-cookie-info {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Admin login page ────────────────────────────────── */
.admin-login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.login-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: .25rem;
}
.login-sub {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.login-error {
  padding: .65rem .9rem;
  background: rgba(200,70,70,.12);
  border: 1px solid rgba(200,70,70,.2);
  border-radius: var(--radius-sm);
  color: #e07070;
  font-size: .8rem;
  margin-bottom: 1.25rem;
}

/* ── Admin dashboard ─────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100dvh;
}
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
}
.admin-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 0 1.5rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.admin-nav { list-style: none; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.5rem;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.admin-nav a.active { color: var(--accent); }

.admin-main {
  padding: 2rem;
  overflow-x: hidden;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--white);
}

/* Admin table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.admin-table th {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,.02); }

.thumb-small { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }

.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 100px;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-green { background: rgba(90,180,90,.15); color: #7ecb7e; }
.badge-red   { background: rgba(200,70,70,.12); color: #e07070; }

.btn-sm {
  padding: .3rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all .2s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm-danger:hover { border-color: #e07070; color: #e07070; }

/* Admin tag input */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 42px;
  align-items: center;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  background: var(--accent-dim);
  border-radius: 100px;
  font-size: .7rem;
  color: var(--accent);
}
.tag-chip-remove {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  opacity: .6;
  transition: opacity .2s;
}
.tag-chip-remove:hover { opacity: 1; }
.tag-inline-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: .82rem;
  min-width: 80px;
  flex: 1;
}

/* Pagination admin */
.pagination {
  display: flex;
  gap: .35rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.page-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  color: var(--text-muted);
  transition: all .2s;
}
.page-link:hover, .page-link.active { border-color: var(--accent); color: var(--accent); }

/* ── Utilities ───────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ══════════════════════════════════════════════════════
   AMÉLIORATIONS GRAPHIQUES
   ══════════════════════════════════════════════════════ */

/* ── 1. Hero immersif plein écran ────────────────────── */
.site-hero-full {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0%,    0%); }
  33%  { transform: scale(1.06) translate(-1.5%, -0.5%); }
  66%  { transform: scale(1.04) translate(0.5%,  -1%); }
  100% { transform: scale(1.08) translate(1.5%,  0.5%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.4)  40%,
    rgba(0,0,0,.2)  70%,
    rgba(0,0,0,.35) 100%
  );
}

.hero-content-full {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 8vw, 8rem);
}
.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-title-full {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--white);
}
.hero-title-full em {
  font-style: italic;
  color: var(--accent);
}
.hero-count-full {
  margin-top: 1.75rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .3s;
}
.hero-scroll:hover { color: var(--accent); }
.scroll-label {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-dot {
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ── 2. Section vedette (2 toiles en grand) ──────────── */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}
@media (max-width: 600px) {
  .featured-section { grid-template-columns: 1fr; }
}

.featured-card {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}
.featured-card .card-img-wrap { height: 100%; }
.featured-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-card:first-child {
  aspect-ratio: 3/2;
}
@media (min-width: 900px) {
  .featured-section {
    grid-template-columns: 2fr 1fr;
  }
  .featured-card:first-child {
    aspect-ratio: auto;
    min-height: 480px;
  }
  .featured-card:last-child {
    min-height: 480px;
  }
}

/* ── Transition galerie (filtres AJAX) ───────────────── */
.gallery-body {
  transition: opacity .3s var(--ease);
}
.gallery-body.loading {
  opacity: .3;
  pointer-events: none;
}
.gallery-body.refreshing .painting-card {
  animation: fadeUp .45s var(--ease) both;
  animation-delay: calc(var(--delay, 0) * 40ms);
}

/* ── 3. Curseur personnalisé ─────────────────────────── */
@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, opacity .3s, background .2s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .2s, opacity .3s;
  opacity: 0;
}
.cursor-dot.active { opacity: 1; }
.cursor-ring.active { opacity: 1; }

.cursor-dot.hover  { width: 10px; height: 10px; background: var(--accent); }
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--accent); opacity: .5; }

/* ── 5. Trail d'images ───────────────────────────────── */
.trail-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  overflow: hidden;
}
.trail-img {
  position: absolute;
  width: 110px;
  height: 145px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -65%) scale(.82) rotate(0deg);
  transition: opacity .15s, transform .5s var(--ease);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  will-change: transform, opacity;
}
.trail-img.show {
  opacity: .92;
  transform: translate(-50%, -65%) scale(1) rotate(var(--rot, 0deg));
}
.trail-img.hide {
  opacity: 0;
  transform: translate(-50%, -65%) scale(.9) rotate(var(--rot, 0deg));
  transition: opacity .4s, transform .5s var(--ease);
}
