/* ============================================================
   FAAP.art — Atelier Curatorial
   EB Garamond (titres) + Inter (interface)
   Fond #111 · Ivoire #E8E3DC · Ambre #C4843A
   ============================================================ */

/* ── 1. Variables ─────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:          #111111;
  --bg-2:        #1a1a1a;
  --bg-3:        #1f1f1f;
  --bg-4:        #262626;
  --bg-input:    #1e1e1e;

  /* Texte */
  --text:        #E8E3DC;
  --text-2:      #8A8A8A;
  --text-3:      #555555;

  /* Bordures */
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --border-3:    rgba(255,255,255,0.18);

  /* Accent — utilisé avec parcimonie */
  --amber:       #C4843A;
  --amber-dim:   rgba(196,132,58,0.12);

  /* Sémantique */
  --danger:      #c0392b;
  --success:     #4E9B6F;
  --warning:     #C4843A;

  /* Typographie */
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Espacement */
  --section-gap:   120px;
  --section-gap-m: 72px;
  --section-gap-s: 48px;
  --container:     1440px;
  --gutter:        64px;

  /* Pas de border-radius — galerie = cadres nets */
  --radius: 0px;
}

/* ── 1b. Light mode ───────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #F5F0E8;
  --bg-2:        #EDE8DE;
  --bg-3:        #E5DFCF;
  --bg-4:        #DDD8C8;
  --bg-input:    #EAE5DA;

  --text:        #1A1A1A;
  --text-2:      #6B6B6B;
  --text-3:      #A0A0A0;

  --border:      rgba(0,0,0,0.08);
  --border-2:    rgba(0,0,0,0.13);
  --border-3:    rgba(0,0,0,0.20);

  --amber-dim:   rgba(196,132,58,0.1);
  --danger:      #b83228;
  --success:     #3d8059;
}

/* Navbar light mode */
[data-theme="light"] .navbar {
  background: rgba(245,240,232,0.92);
}
[data-theme="light"] .user-dropdown {
  background: var(--bg-3);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
[data-theme="light"] .sidebar {
  background: var(--bg-2);
}
[data-theme="light"] .dashboard-topbar {
  background: var(--bg-2);
}
[data-theme="light"] .artwork-media-full {
  background: #E8E2D8;
}
[data-theme="light"] .hero-placeholder {
  background: var(--bg-3);
}
[data-theme="light"] body::after {
  opacity: 0.015;
}

/* Bouton de thème */
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--text-2); cursor: pointer;
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--border-3); color: var(--text); }
.theme-btn .icon-sun  { display: none; }
.theme-btn .icon-moon { display: block; }
[data-theme="light"] .theme-btn .icon-sun  { display: block; }
[data-theme="light"] .theme-btn .icon-moon { display: none; }

/* ── 2. Reset + Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain très subtil — texture de salle de galerie */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9000;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10%  { transform: translate(-2%,-3%); }
  30%  { transform: translate(3%,-1%); }
  50%  { transform: translate(-1%, 3%); }
  70%  { transform: translate(2%, 1%); }
  90%  { transform: translate(-3%, 2%); }
}

a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber); }
img { max-width: 100%; display: block; object-fit: cover; }
button, input, select, textarea { font-family: var(--font-sans); }
::selection { background: var(--amber); color: #111; }

/* ── 3. Typographie ───────────────────────────────────────── */
.t-display {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.t-headline-lg {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
}
.t-headline {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.25;
}
.t-headline-sm {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}
.t-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.t-amber { color: var(--amber); }

/* ── 4. Container / Grille ────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 640px)  { .container { padding: 0 20px; } }

.grid   { display: grid; gap: 1px; }
.grid-2 { grid-template-columns: repeat(2,1fr); gap: 1px; }
.grid-3 { grid-template-columns: repeat(3,1fr); gap: 1px; }
.grid-4 { grid-template-columns: repeat(4,1fr); gap: 1px; }
.grid-gap { gap: 20px; }
.grid-gap-lg { gap: 32px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Masonry éditoriale */
.masonry { columns: 4 220px; column-gap: 1px; }
.masonry-item { break-inside: avoid; margin-bottom: 1px; display: block; }
@media (max-width: 900px) { .masonry { columns: 3 180px; } }
@media (max-width: 600px) { .masonry { columns: 2 140px; } }
@media (max-width: 380px) { .masonry { columns: 1; } }

/* ── 5. Boutons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: 1px solid; transition: background .2s, color .2s, border-color .2s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
/* Ghost — par défaut */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
/* Primaire — CTA important */
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
/* Ambre — très rare */
.btn-amber {
  background: var(--amber);
  color: #111;
  border-color: var(--amber);
}
.btn-amber:hover { background: transparent; color: var(--amber); border-color: var(--amber); }

.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: transparent; color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); font-size:10px; padding:8px 14px; }

.btn-full { width: 100%; }
.btn-lg   { padding: 16px 36px; font-size: 11px; }
.btn-sm   { padding: 9px 18px; font-size: 10px; }
.btn-xs   { padding: 6px 12px; font-size: 10px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── 6. Formulaires ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
label small { font-weight: 400; letter-spacing: 0; text-transform: none; }

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus { outline: none; border-color: var(--amber); }
.form-input::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-select { cursor: pointer; }
.form-select-inline {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text);
  padding: 6px 10px; font-size: 12px; cursor: pointer;
}

.form-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); border-top: 1px solid var(--border); padding-top: 20px; margin-top: 8px;
}
.form-actions { display: flex; gap: 12px; padding-top: 8px; flex-wrap: wrap; }
.radio-group  { display: flex; gap: 24px; }
.radio-label  { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.required { color: var(--danger); }
@media (max-width:600px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }

/* ── 7. Badges / Chips / Tags ─────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid; border-radius: var(--radius);
}
.badge-category { color: inherit; }

.chip {
  display: inline-flex; align-items: center;
  padding: 7px 14px; font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border-2); color: var(--text-2);
  cursor: pointer; transition: all .2s; background: transparent;
  text-decoration: none;
}
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip-active { border-color: var(--text); color: var(--text); }

.tag {
  padding: 4px 10px; font-size: 11px; border: 1px solid var(--border-2);
  color: var(--text-2); letter-spacing: 0.04em;
}

.status-badge { padding: 3px 9px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid; }
.status-published { color: var(--success); border-color: rgba(78,155,111,.3); background: rgba(78,155,111,.06); }
.status-draft     { color: var(--text-2); border-color: var(--border); background: transparent; }
.status-hidden    { color: var(--danger); border-color: rgba(192,57,43,.3); background: rgba(192,57,43,.06); }
.status-artist    { color: var(--amber); border-color: rgba(196,132,58,.3); background: var(--amber-dim); }
.status-admin     { color: var(--amber); border-color: rgba(196,132,58,.3); background: var(--amber-dim); }
.status-visitor   { color: var(--text-2); border-color: var(--border); background: transparent; }

/* ── 8. Navigation ────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--gutter);
}
@media (max-width: 1024px) { .navbar-inner { padding: 0 32px; } }
@media (max-width: 640px)  { .navbar-inner { padding: 0 20px; } }

.navbar-brand {
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
}
.brand-dot    { display: none; }
.brand-accent { color: var(--amber); }
.navbar-brand:hover { color: var(--text); }

.navbar-links { display: flex; align-items: center; gap: 0; list-style: none; }
.navbar-links a {
  display: block; padding: 8px 16px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); transition: color .2s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text); }

.navbar-actions { display: flex; align-items: center; gap: 12px; }

/* User menu */
.user-menu { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--border-2);
  cursor: pointer; color: var(--text); font-size: 13px; font-weight: 500;
  background: transparent; transition: border-color .2s;
}
.user-trigger:hover { border-color: var(--border-3); }
.user-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-initials {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber-dim); border: 1px solid rgba(196,132,58,.4);
  color: var(--amber); display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700;
}
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--bg-3); border: 1px solid var(--border-2);
  min-width: 200px; padding: 4px 0;
  z-index: 300; box-shadow: 0 16px 48px rgba(0,0,0,.6);
}
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; padding: 11px 16px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-2); background: none; border: none; cursor: pointer;
  text-align: left; text-decoration: none; transition: background .15s, color .15s;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-4); color: var(--text); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-admin  { color: var(--amber) !important; }
.dropdown-logout { color: var(--danger) !important; }

.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 1px; background: var(--text); transition: .2s; display: block; }
@media (max-width: 768px) { .navbar-links { display: none; } .hamburger { display: flex; } }

/* Mobile nav (ouvert) */
#navLinks.mobile-open {
  display: flex !important; flex-direction: column; gap: 0;
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 8px 0; z-index: 190;
}
#navLinks.mobile-open li a { padding: 14px var(--gutter); font-size: 13px; }
@media (max-width: 640px) { #navLinks.mobile-open li a { padding: 14px 20px; } }

/* ── 9. Contenu principal ─────────────────────────────────── */
.main-content { padding-top: 72px; min-height: calc(100vh - 200px); }

/* ── 10. Hero ─────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--border);
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--section-gap) var(--gutter);
  border-right: 1px solid var(--border);
}
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--amber);
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.015em;
  margin-bottom: 28px; color: var(--text);
}
.hero-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.75;
  max-width: 480px; margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stat-row {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-family: var(--font-serif); font-size: 32px; font-weight: 400;
  color: var(--text); display: block;
}
.hero-stat-lbl { font-size: 11px; color: var(--text-2); letter-spacing: 0.06em; }

/* Images héro */
.hero-img-item { overflow: hidden; position: relative; }
.hero-img-item:first-child { grid-column: 1; grid-row: 1 / 3; }
.hero-img-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.hero-img-item:hover img { transform: scale(1.03); }
.hero-placeholder {
  width: 100%; height: 100%; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 64px 32px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-right { height: 420px; }
}
@media (max-width: 640px) {
  .hero-left { padding: 48px 20px; }
  .hero-right { height: 280px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .hero-img-item:first-child { grid-column: 1; grid-row: 1; }
  .hero-stat-row { gap: 24px; }
}

/* ── 11. Sections ─────────────────────────────────────────── */
.section { padding: var(--section-gap) 0; }
.section-border { border-top: 1px solid var(--border); }
.section-dark { background: var(--bg-2); }
.section-sm { padding: var(--section-gap-s) 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 56px; flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px);
  font-weight: 400; line-height: 1.15; color: var(--text);
}
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; display: block;
}
.section-sub { color: var(--text-2); font-size: 15px; max-width: 500px; line-height: 1.7; }
.text-center { text-align: center; }

/* Séparateur éditorial */
.separator { height: 1px; background: var(--border); margin: 0; }

@media (max-width: 768px) {
  .section { padding: var(--section-gap-m) 0; }
  .section-head { margin-bottom: 36px; }
}

/* ── 12. Artwork Card ─────────────────────────────────────── */
.artwork-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color .25s;
}
.artwork-card:hover { border-color: var(--border-2); color: var(--text); }

.artwork-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
}
.artwork-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.artwork-card:hover .artwork-thumb img { transform: scale(1.03); }

.artwork-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 9px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(17,17,17,.85); border: 1px solid var(--border-2);
  color: var(--text-2); backdrop-filter: blur(4px);
}

.artwork-no-thumb {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; width: 100%; height: 100%;
  color: var(--text-3); gap: 8px;
}
.artwork-no-thumb svg { width: 32px; height: 32px; }
.artwork-no-thumb span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.artwork-info {
  padding: 16px 16px 18px;
  border-top: 1px solid var(--border);
}
.artwork-title-text {
  font-size: 14px; font-weight: 500; color: var(--text);
  margin-bottom: 6px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.artwork-meta-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.artwork-author { font-size: 12px; color: var(--text-2); }
.artwork-stats  { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.artwork-stats span { display: flex; align-items: center; gap: 4px; }

/* ── 13. Category card ────────────────────────────────────── */
.category-grid-editorial {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 768px) { .category-grid-editorial { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .category-grid-editorial { grid-template-columns: 1fr; } }

.cat-item {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: background .2s;
  position: relative;
}
.cat-item:hover { background: var(--bg-2); }
.cat-num {
  font-family: var(--font-serif); font-size: 28px; font-weight: 400;
  color: var(--amber); line-height: 1;
}
.cat-name {
  font-family: var(--font-serif); font-size: 20px; font-weight: 400;
  color: var(--text); line-height: 1.2;
}
.cat-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.cat-count { font-size: 11px; letter-spacing: .06em; color: var(--text-3); margin-top: auto; }
.cat-icon { color: var(--text-3); }
.cat-icon svg { width: 28px; height: 28px; }

/* ── 14. Artist card ──────────────────────────────────────── */
.artist-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: border-color .2s;
}
.artist-card:hover { border-color: var(--border-2); color: var(--text); }

.artist-card-thumb {
  aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3);
  position: relative;
}
.artist-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.artist-card:hover .artist-card-thumb img { transform: scale(1.03); }
.artist-mini-gallery {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  aspect-ratio: 3/1; background: var(--border); overflow: hidden;
}
.artist-mini-gallery-item { overflow: hidden; background: var(--bg-3); }
.artist-mini-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.artist-card-body {
  padding: 20px 20px 22px;
  border-top: 1px solid var(--border);
  display: flex; gap: 14px; align-items: flex-start;
}
.artist-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--border-2);
}
.artist-initials {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-4); border: 1px solid var(--border-2);
  color: var(--text-2); display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 500;
  font-family: var(--font-serif); flex-shrink: 0;
}
.artist-card-info { flex: 1; min-width: 0; }
.artist-card-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.artist-card-meta { font-size: 12px; color: var(--text-2); }
.artist-card-link { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--amber); margin-top: 10px; display: inline-block; }

/* ── 15. Gallery page ─────────────────────────────────────── */
.gallery-page { padding: 48px 0 var(--section-gap); }
.gallery-page-title {
  font-family: var(--font-serif); font-size: clamp(32px, 5vw, 56px);
  font-weight: 400; margin-bottom: 48px; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 20px;
}
.gallery-count {
  font-family: var(--font-sans); font-size: 14px; font-weight: 400;
  color: var(--text-2); letter-spacing: 0;
}

.gallery-filters { margin-bottom: 40px; }
.filter-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap; padding-top: 20px;
}
.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.search-wrap .form-input { padding-left: 40px; }

.sort-select { min-width: 160px; }

.empty-state {
  padding: 80px 20px; text-align: center; border: 1px solid var(--border);
}
.empty-state p { color: var(--text-2); margin-bottom: 24px; font-size: 15px; }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.pagination-info { font-size: 12px; color: var(--text-2); letter-spacing: .04em; }

/* ── 16. Artwork detail ───────────────────────────────────── */
.artwork-detail { padding: 0 0 var(--section-gap); }

/* Zone média pleine largeur */
.artwork-media-full {
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  padding: 60px var(--gutter);
  min-height: 60vh;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 1024px) { .artwork-media-full { padding: 40px 32px; min-height: 45vh; } }
@media (max-width: 640px)  { .artwork-media-full { padding: 32px 20px; min-height: 35vh; } }

.artwork-media-img {
  max-width: 900px; width: 100%;
  max-height: 75vh; object-fit: contain;
  display: block; margin: 0 auto;
}
.artwork-media-video { max-width: 900px; width: 100%; display: block; margin: 0 auto; }
.artwork-audio-wrap  { display: flex; justify-content: center; width: 100%; }
.artwork-audio       { width: 100%; max-width: 600px; }

/* Infos sous le média */
.artwork-info-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .artwork-info-grid { grid-template-columns: 1fr; } }

.artwork-main { padding: 48px var(--gutter); border-right: 1px solid var(--border); }
@media (max-width: 1024px) { .artwork-main { padding: 40px 32px; } }
@media (max-width: 640px)  { .artwork-main { padding: 32px 20px; border-right: none; } }

.artwork-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.artwork-detail-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12;
  margin-bottom: 32px; letter-spacing: -0.01em;
}
.artwork-detail-desc { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 32px; }
.artwork-tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

.artwork-actions-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-like {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border-2); background: transparent;
  color: var(--text-2); cursor: pointer; font-size: 12px;
  font-family: var(--font-sans); letter-spacing: .04em;
  transition: all .2s;
}
.btn-like:hover, .btn-like.liked { border-color: rgba(192,57,43,.4); color: var(--danger); }
.btn-like.liked svg { fill: var(--danger); stroke: var(--danger); }
.artwork-view-count { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

.artwork-sidebar { padding: 48px 32px; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 900px) { .artwork-sidebar { padding: 32px 20px; border-top: 1px solid var(--border); } }

.sidebar-label {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 16px;
}
.artist-mini {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--text);
  padding: 16px; border: 1px solid var(--border);
  transition: border-color .2s;
}
.artist-mini:hover { border-color: var(--border-2); }
.artist-avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.artist-initials-sm {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-4); border: 1px solid var(--border-2);
  color: var(--text-2); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 500;
  font-family: var(--font-serif);
}
.artist-mini-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.artist-mini-sub  { font-size: 11px; color: var(--text-2); letter-spacing: .04em; }
.artist-bio-short { font-size: 13px; color: var(--text-2); line-height: 1.65; }

.artwork-meta-list { display: flex; flex-direction: column; }
.artwork-meta-row-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.artwork-meta-row-item:first-child { border-top: 1px solid var(--border); }
.meta-key { color: var(--text-2); }

.related-section { padding: var(--section-gap) var(--gutter); border-top: 1px solid var(--border); }
@media (max-width: 1024px) { .related-section { padding: var(--section-gap-m) 32px; } }
@media (max-width: 640px)  { .related-section { padding: var(--section-gap-s) 20px; } }

/* ── 17. Profile ──────────────────────────────────────────── */
.profile-page { padding-bottom: var(--section-gap); }

.profile-banner {
  height: 320px; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--border);
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-banner-default {
  height: 100%;
  background: linear-gradient(160deg, #1a1410 0%, #111 60%, #0d0d0d 100%);
}
.profile-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(17,17,17,.9) 100%);
}
@media (max-width: 640px) { .profile-banner { height: 200px; } }

.profile-body { position: relative; }

.profile-header {
  padding: 0 var(--gutter) 48px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-top: -60px; position: relative; z-index: 1;
}
@media (max-width: 1024px) { .profile-header { padding: 0 32px 40px; } }
@media (max-width: 640px)  { .profile-header { padding: 0 20px 32px; gap: 20px; margin-top: -40px; } }

.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-2);
}
.profile-initials {
  width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-4); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 36px; font-weight: 400; color: var(--text-2);
}
@media (max-width: 640px) { .profile-avatar, .profile-initials { width: 72px; height: 72px; } }

.profile-meta { flex: 1; min-width: 0; }
.profile-name {
  font-family: var(--font-serif); font-size: clamp(24px, 4vw, 40px);
  font-weight: 400; line-height: 1.1; color: var(--text); margin-bottom: 6px;
}
.profile-realname { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.profile-cats { display: flex; flex-wrap: wrap; gap: 6px; }

.profile-stats { display: flex; gap: 32px; flex-shrink: 0; align-self: flex-end; }
.stat { text-align: right; }
.stat-value {
  display: block; font-family: var(--font-serif); font-size: 28px;
  font-weight: 400; color: var(--text); line-height: 1;
}
.stat-label { font-size: 11px; color: var(--text-2); letter-spacing: .05em; }
@media (max-width: 640px) { .profile-stats { gap: 20px; } .stat { text-align: left; } }

.profile-content {
  display: grid; grid-template-columns: 280px 1fr;
  border-top: 0;
}
@media (max-width: 900px) { .profile-content { grid-template-columns: 1fr; } }

.profile-sidebar {
  padding: 48px var(--gutter) var(--section-gap);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 40px;
}
@media (max-width: 1024px) { .profile-sidebar { padding: 40px 32px; } }
@media (max-width: 900px)  { .profile-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 20px; } }

.profile-sidebar-section { display: flex; flex-direction: column; gap: 16px; }
.profile-bio { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.profile-link {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2);
  text-decoration: none; transition: color .2s;
}
.profile-link:hover { color: var(--amber); }
.profile-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.profile-info-item { font-size: 13px; color: var(--text-2); }
.profile-info-key { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 4px; }

.profile-gallery {
  padding: 48px var(--gutter) var(--section-gap);
}
@media (max-width: 1024px) { .profile-gallery { padding: 40px 32px; } }
@media (max-width: 640px)  { .profile-gallery { padding: 32px 20px; } }

.profile-gallery-title { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 32px; }

/* ── 18. Auth ─────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 20px;
}
.auth-card {
  width: 100%; max-width: 520px;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 48px;
}
@media (max-width: 640px) { .auth-card { padding: 32px 24px; } }

.auth-logo {
  text-align: center; margin-bottom: 40px;
  font-size: 18px; font-weight: 600; letter-spacing: .04em;
}
.auth-logo a { color: var(--text); text-decoration: none; }
.auth-logo .brand-accent { color: var(--amber); }

.auth-tabs {
  display: flex; border-bottom: 1px solid var(--border); margin-bottom: 36px;
}
.auth-tab {
  flex: 1; padding: 14px; text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; margin-bottom: -1px;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--text); }
.auth-tab:hover  { color: var(--text); }

.auth-title {
  font-family: var(--font-serif); font-size: 32px; font-weight: 400;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.auth-sub { font-size: 14px; color: var(--text-2); margin-bottom: 32px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 24px; }
.auth-switch a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.auth-switch a:hover { color: var(--amber); }

/* ── 19. Dashboard sidebar ────────────────────────────────── */
.dashboard-body { display: flex; min-height: 100vh; background: var(--bg); }

.sidebar {
  width: 240px; min-height: 100vh; flex-shrink: 0;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto;
}
.sidebar-admin { border-right-color: rgba(196,132,58,.15); }

.sidebar-header {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-brand {
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  color: var(--text); text-decoration: none;
}
.sidebar-brand .brand-accent { color: var(--amber); }
.badge-admin {
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid rgba(196,132,58,.35);
  color: var(--amber); background: var(--amber-dim);
}

.sidebar-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); padding: 20px 24px 8px;
}
.sidebar-nav { flex: 1; padding: 8px 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 0; }

.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 24px;
  font-size: 12px; font-weight: 500; letter-spacing: .03em;
  color: var(--text-2); background: none; border: none; cursor: pointer;
  text-decoration: none; width: 100%; transition: all .15s; border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-3); }
.sidebar-link.active { color: var(--text); background: var(--bg-3); border-left-color: var(--amber); }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.sidebar-link.active svg, .sidebar-link:hover svg { opacity: 1; }
.sidebar-logout { color: var(--danger) !important; }
.sidebar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }

.sidebar-user {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.sidebar-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sidebar-initials {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-4); border: 1px solid var(--border-2);
  color: var(--text-2); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-family: var(--font-serif);
}
.sidebar-username { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.2; }
.sidebar-role { font-size: 11px; color: var(--text-2); }

.dashboard-main {
  margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-width: 0;
}
.dashboard-topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; border-bottom: 1px solid var(--border);
  background: var(--bg-2); flex-shrink: 0;
}
@media (max-width: 1024px) { .dashboard-topbar { padding: 0 24px; } }

.dashboard-title-bar { font-family: var(--font-serif); font-size: 20px; font-weight: 400; }
.dashboard-content { padding: 40px; flex: 1; }
@media (max-width: 1024px) { .dashboard-content { padding: 28px 24px; } }
.dashboard-page { display: flex; flex-direction: column; gap: 32px; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 32px rgba(0,0,0,.5); }
  .dashboard-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
}

/* ── 20. Dashboard components ─────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg-2); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-card-label {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.stat-card-value {
  font-family: var(--font-serif); font-size: 40px; font-weight: 400;
  color: var(--text); line-height: 1; letter-spacing: -0.02em;
}
.stat-card-delta { font-size: 12px; color: var(--success); }
.stat-icon { display: none; }
.stat-body .stat-value { display: block; font-family: var(--font-serif); font-size: 36px; font-weight: 400; color: var(--text); }
.stat-body .stat-label { font-size: 11px; color: var(--text-2); letter-spacing: .06em; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-header h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.empty-dashboard {
  padding: 80px 20px; text-align: center; border: 1px solid var(--border);
}
.empty-dashboard-title { font-family: var(--font-serif); font-size: 24px; margin-bottom: 12px; }
.empty-dashboard-text { font-size: 14px; color: var(--text-2); margin-bottom: 28px; line-height: 1.6; }

/* ── 21. Table ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); background: var(--bg-3);
}
.table td { color: var(--text-2); vertical-align: middle; }
.table td a { color: var(--text); }
.table td a:hover { color: var(--amber); }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table-thumb img { width: 40px; height: 40px; object-fit: cover; }
.table-actions { display: flex; gap: 6px; align-items: center; }
.search-form { display: flex; gap: 8px; }

/* ── 22. Upload / Artwork form ────────────────────────────── */
.artwork-form { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .artwork-form { padding: 24px 20px; } }

.upload-zone {
  border: 1px dashed var(--border-2); cursor: pointer;
  transition: border-color .2s; overflow: hidden;
}
.upload-zone:hover { border-color: var(--amber); }
.upload-input { position: absolute; opacity: 0; pointer-events: none; }
.upload-placeholder {
  padding: 56px 20px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; color: var(--text-2); text-align: center;
}
.upload-placeholder svg { width: 36px; height: 36px; color: var(--text-3); }
.upload-placeholder .upload-cta { color: var(--amber); font-size: 13px; font-weight: 500; }
.upload-placeholder .upload-hint { font-size: 12px; color: var(--text-3); }
.upload-preview { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.current-media { padding: 16px; margin-bottom: 8px; border: 1px solid var(--border); }
.danger-zone {
  padding: 24px; border: 1px solid rgba(192,57,43,.2) !important;
  background: rgba(192,57,43,.04);
}
.danger-zone h3 { color: var(--danger); margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.danger-zone p  { font-size: 13px; color: var(--text-2); margin-bottom: 16px; line-height: 1.6; }

.avatar-section { padding: 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.profile-avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.profile-initials-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-4); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 28px; font-weight: 400; color: var(--text-2);
}
.profile-form { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .profile-form { padding: 24px 20px; } }

/* ── 23. Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding: 64px var(--gutter) 48px;
}
@media (max-width: 1024px) { .footer-inner { padding: 48px 32px; grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 640px)  { .footer-inner { padding: 40px 20px; grid-template-columns: 1fr; gap: 32px; } }

.footer-brand-col {}
.footer-logo {
  font-size: 16px; font-weight: 600; letter-spacing: .04em;
  color: var(--text); text-decoration: none; display: inline-block; margin-bottom: 16px;
}
.footer-logo .brand-accent { color: var(--amber); }
.footer-tagline { font-size: 14px; color: var(--text-2); line-height: 1.65; max-width: 280px; }

.footer-col-title {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .2s; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  font-size: 12px; color: var(--text-3); flex-wrap: wrap; gap: 12px;
}
@media (max-width: 1024px) { .footer-bottom { padding: 16px 32px; } }
@media (max-width: 640px)  { .footer-bottom { padding: 16px 20px; } }

/* ── 24. Errors ───────────────────────────────────────────── */
.error-page { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.error-content { text-align: center; max-width: 500px; }
.error-code {
  font-family: var(--font-serif); font-size: clamp(80px, 15vw, 140px);
  font-weight: 400; color: var(--text-3); line-height: 1; display: block; margin-bottom: 24px;
}
.error-content h1 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.error-content p  { font-size: 15px; color: var(--text-2); margin-bottom: 32px; line-height: 1.65; }

/* ── 25. Flash messages ───────────────────────────────────── */
.glass-card.border-green-500 {
  background: rgba(78,155,111,.06) !important; border: 1px solid rgba(78,155,111,.25) !important;
  color: #6dbe94; padding: 14px 18px; margin-bottom: 16px; font-size: 14px;
}
.glass-card.border-red-500 {
  background: rgba(192,57,43,.06) !important; border: 1px solid rgba(192,57,43,.25) !important;
  color: #e07068; padding: 14px 18px; margin-bottom: 16px; font-size: 14px;
}
.glass-card.border-violet-500 {
  background: var(--amber-dim) !important; border: 1px solid rgba(196,132,58,.25) !important;
  color: var(--amber); padding: 14px 18px; margin-bottom: 16px; font-size: 14px;
}

/* ── 26. Misc / Utilities ─────────────────────────────────── */
.card { background: var(--bg-2); border: 1px solid var(--border); }
.card-inner { padding: 24px; }
.glass-card { background: var(--bg-2); border: 1px solid var(--border); }

.text-muted { color: var(--text-2); }
.text-amber { color: var(--amber); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.relative { position: relative; }
.p-4 { padding: 16px; }
.p-5 { padding: 24px; }
.p-6 { padding: 32px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

/* Champs hérités */
.brand-dot   { display: none; }
.form-select-inline { background: var(--bg-3); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; font-size: 12px; }
.profile-grid { display: grid; grid-template-columns: 280px 1fr; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-links { display: flex; flex-direction: column; gap: 10px; }
.profile-links a { font-size: 13px; color: var(--text-2); }

/* ── 27. Responsive mobile ────────────────────────────────── */
@media (max-width: 640px) {
  .btn-lg { padding: 13px 24px; }
  .auth-card { padding: 28px 20px; }
  .artwork-form, .profile-form { padding: 20px 16px; }
  .section { padding: var(--section-gap-s) 0; }
  .section-head { margin-bottom: 28px; }
  .profile-header { gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── 28. Accessibilité / focus ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── 29. Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, body::after { animation: none !important; transition: none !important; }
}
