/* ============================================================
   assets/style.css — Galerie Photo · Modern & Contrasté
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --bg:           #0d0d0d;
  --bg-2:         #141414;
  --bg-3:         #1c1c1c;
  --surface:      #1e1e1e;
  --surface-2:    #262626;
  --text:         #f0ece4;
  --text-2:       #8a8780;
  --text-3:       #4a4845;
  --accent:       #e8f425;
  --accent-dim:   rgba(232,244,37,.10);
  --accent-hover: #f0fc2a;
  --border:       rgba(240,236,228,.08);
  --border-2:     rgba(240,236,228,.14);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --font:         'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Syne', sans-serif;
  --ease:         cubic-bezier(.25,.46,.45,.94);
  --ease-spring:  cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================ PUBLIC HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 3rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,13,13,.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: .4rem;
}
.site-logo-dot {
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}
.site-nav { display: flex; align-items: center; gap: 2.5rem; }
.site-nav a {
  font-size: .78rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-2);
  position: relative; transition: color .2s;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ============================================================ MAIN */
.site-main { padding-top: 64px; min-height: 100vh; }

.flash {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 300; padding: .7rem 1.4rem;
  border-radius: 99px; font-size: .83rem; font-weight: 500;
  animation: flashIn .3s var(--ease-spring) both;
  white-space: nowrap;
}
@keyframes flashIn { from { opacity:0; transform: translateX(-50%) translateY(-10px); } }
.flash--success { background: var(--accent); color: #0d0d0d; }
.flash--error   { background: #ff4444; color: #fff; }
.flash--info    { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }

/* ============================================================ HERO */

/*
.hero {
  position: relative; padding: 7rem 3rem 4rem; overflow: hidden;
}
*/
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 55% 45% at 12% 65%, rgba(232,244,37,.055) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.hero-tag::before { content: ''; display: block; width: 22px; height: 1px; background: var(--accent); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem); /* était clamp(3rem, 8vw, 6.5rem) */
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  margin-bottom: 1.75rem;
}
/*.hero h1 em { font-style: normal; color: var(--accent); display: block; }*/

.hero h1 em { font-style: normal; color: var(--accent); display: inline; margin-left: .3em; }
.hero-sub { color: var(--text-2); font-size: .95rem; max-width: 360px; line-height: 1.75; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: 3rem; margin-bottom: 2rem;padding: .55rem 1rem .55rem .55rem;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 99px; font-size: .8rem; color: var(--text-2);
}
.hero-pill strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--accent);
  border-radius: 50%; font-size: .82rem; font-weight: 700; color: #0d0d0d;
}

/* ============================================================ ALBUMS GRID */
.container { max-width: 1380px; margin: 0 auto; padding: 0 3rem 6rem; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; letter-spacing: .04em;
}
.section-header span { font-size: .78rem; color: var(--text-3); }

.albums-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.albums-grid .album-card { grid-column: span 4; aspect-ratio: 4/3; }

.album-card {
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}
.album-card.has-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.05) 100%);
  z-index: 1;
}
.album-overlay {
  position: absolute; inset: 0; z-index: 2;
}
.album-cover-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: 0.3;
}
.album-cover { position: absolute; inset: 0; transition: transform .65s var(--ease); }
.album-card:hover .album-cover { transform: scale(1.05); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }

.album-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem; transition: background .35s;
}
.album-card:hover .album-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.3) 65%, transparent 100%);
}
.album-overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.8vw, 1.5rem);
  font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: .35rem;
}
.album-meta { font-size: .73rem; color: rgba(255,255,255,.5); }
.album-arrow {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #0d0d0d;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  transform: scale(0) rotate(-45deg);
  transition: transform .35s var(--ease-spring);
}
.album-card:hover .album-arrow { transform: scale(1) rotate(0deg); }

/* ============================================================ ALBUM DETAIL */
.album-header {
  padding: 3.5rem 3rem 2rem;
  max-width: 1380px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .73rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .875rem;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }
.album-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800; line-height: .92; letter-spacing: -.03em;
}
.album-desc { color: var(--text-2); margin-top: .75rem; font-size: .92rem; }
.album-stat .val {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--accent);
}
.album-stat .lbl { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px; padding: 0 3rem;
  max-width: 1380px; margin: 0 auto;
}
.photo-thumb {
  position: relative; overflow: hidden; aspect-ratio: 1;
  background: var(--bg-3); cursor: pointer;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo-thumb:hover img { transform: scale(1.07); }
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  font-size: 1.5rem; color: #fff;
}
.photo-thumb:hover .photo-overlay { opacity: 1; }
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: .6rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: rgba(255,255,255,.85); font-size: .72rem;
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.photo-thumb:hover .photo-caption { transform: translateY(0); }

/* ============================================================ LIGHTBOX */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.97);
  /* NE PAS mettre align-items/justify-content ici car lightbox-inner prend tout */
}
.lightbox.open { display: flex; }

.lightbox-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;   /* empêche tout débordement */
  position: relative;
  box-sizing: border-box;
}

/* Barre haute — hauteur fixe, ne se réduit jamais */
.lightbox-bar {
  flex-shrink: 0;
  height: 52px;
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.5);
}
.lightbox-counter {
  flex: 1;
  font-size: .75rem; letter-spacing: .1em; color: rgba(255,255,255,.3);
}
.lightbox-zoom-info {
  font-size: .82rem; font-weight: 700; color: var(--accent);
  min-width: 28px; text-align: center;
}
.lightbox-close {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all .2s;
}
.lightbox-close:hover { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }

/* Zone scrollable — prend tout l'espace restant */
.lightbox-scroll {
  flex: 1;
  min-height: 0;        /* ← correctif clé flexbox pour le scroll vertical */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mode zoomé : scroll H + V activés */
.lightbox-scroll.scrollable {
  overflow: auto;
  cursor: grab;
  align-items: flex-start;
  justify-content: flex-start;
}
.lightbox-scroll.scrollable:active { cursor: grabbing; }

/* Scrollbar stylisée (Webkit) */
.lightbox-scroll::-webkit-scrollbar        { width: 8px; height: 8px; }
.lightbox-scroll::-webkit-scrollbar-track  { background: rgba(255,255,255,.05); border-radius: 4px; }
.lightbox-scroll::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.3); border-radius: 4px; }
.lightbox-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.55); }
.lightbox-scroll::-webkit-scrollbar-corner { background: transparent; }

/* Image en zoom ×1 */
#lbImg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  cursor: zoom-in;
  flex-shrink: 0;
}
/* Image zoomée : taille libre, scrollable */
#lbImg.zoomed {
  max-width: none;
  max-height: none;
  margin: 0;
  cursor: zoom-out;
  flex-shrink: 0;
}

/* Légende — hauteur fixe, ne se réduit jamais */
.lightbox-caption {
  flex-shrink: 0;
  min-height: 36px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2rem;
  font-size: .78rem; color: rgba(255,255,255,.35);
  background: rgba(0,0,0,.5);
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  margin: 0;
}

/* Boutons prev / next */
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: all .2s; backdrop-filter: blur(8px);
  z-index: 10;
}
.lightbox-btn.prev { left: 1.25rem; }
.lightbox-btn.next { right: 1.25rem; }
.lightbox-btn:hover { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }

/* ============================================================ PAGINATION */
.pagination { display: flex; gap: .35rem; justify-content: center; margin: 3rem 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: .83rem; font-weight: 500; color: var(--text-2); transition: all .2s;
}
.pagination a:hover { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #0d0d0d; font-weight: 700; }

/* ============================================================ CONTACT */
.contact-wrap { max-width: 660px; margin: 0 auto; padding: 4rem 3rem 6rem; }
.label-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
}
.label-tag::before { content: ''; display: block; width: 18px; height: 1px; background: var(--accent); }
.contact-wrap h1 {
  font-family: var(--font-display);
  /*font-size: clamp(2.5rem, 6vw, 4rem);*/
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -.03em; line-height: .92; margin-bottom: .875rem;
}
.contact-wrap .sub { color: var(--text-2); font-size: .92rem; margin-bottom: 3rem; }

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block; font-size: .7rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: .55rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .825rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .93rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .825rem 1.875rem;
  background: var(--accent); color: #0d0d0d;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }
.btn-dark:hover { background: var(--surface); }

/* ============================================================ FOOTER */
.site-footer {
  border-top: 1px solid var(--border); padding: 1.75rem 3rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .78rem; color: var(--text-3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .78rem; color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ============================================================ EMPTY STATE */
.empty { text-align: center; padding: 6rem 2rem; color: var(--text-3); }
.empty-icon { font-size: 2rem; margin-bottom: .875rem; opacity: .35; }
.empty p { font-size: .88rem; max-width: 260px; margin: 0 auto; }

/* ============================================================ ADMIN */
.admin-body {
  --admin-bg:      #090909;
  --admin-surface: #0f0f0f;
  --admin-card:    #141414;
  --admin-border:  rgba(240,236,228,.07);
  --admin-border2: rgba(240,236,228,.12);
  background: var(--admin-bg);
}
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 216px; flex-shrink: 0;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex; flex-direction: column;
  position: fixed; inset-block: 0; left: 0; z-index: 100;
}
.admin-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
}
.admin-brand .brand-sup {
  font-size: .62rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: .5rem;
}
.admin-brand .brand-name {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: .4rem;
}
.admin-brand .brand-name::after {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; margin-left: auto;
}

.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-group-label {
  font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); padding: .75rem 1.25rem .25rem; display: block;
}
.admin-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .55rem 1.25rem;
  color: var(--text-2); font-size: .82rem; font-weight: 400;
  transition: all .2s; position: relative; border-left: 2px solid transparent;
}
.admin-nav a .nav-icon {
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  background: var(--admin-card);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; transition: background .2s;
}
.admin-nav a:hover { color: var(--text); }
.admin-nav a:hover .nav-icon { background: rgba(255,255,255,.06); }
.admin-nav a.active { color: var(--text); border-left-color: var(--accent); }
.admin-nav a.active .nav-icon { background: var(--accent); color: #0d0d0d; }
.nav-badge {
  margin-left: auto; font-size: .62rem; font-weight: 600; padding: .15rem .4rem;
  background: var(--accent); color: #0d0d0d; border-radius: 99px;
}
.admin-logout { padding: 1rem 1.25rem; border-top: 1px solid var(--admin-border); }
.admin-logout a {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--text-3); transition: color .2s;
}
.admin-logout a:hover { color: var(--text); }

/*.admin-content { margin-left: 216px; flex: 1; padding: 2rem 2.25rem; }*/

.admin-content { 
  margin-left: 216px; 
  flex: 1; 
  padding: 2rem 2.25rem; 
  min-width: 0;        /* ← correctif clé flexbox */
  overflow: hidden;
  box-sizing: border-box;
  width: calc(100% - 216px);
}
.admin-topbar {
  flex-direction: column; align-items: flex-start;
  gap: 1rem; width: 100%; overflow: hidden;
}
.admin-topbar h1 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em;
}
.admin-topbar .actions { width: 100%; }
.admin-topbar .actions .btn {
  width: 100% !important; justify-content: center;
  box-sizing: border-box; margin-bottom: 9px;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .875rem; margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--admin-card); border: 1px solid var(--admin-border);
  border-radius: var(--radius-md); padding: 1.375rem; position: relative; overflow: hidden;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--admin-border2); }
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.stat-card:hover::after { transform: scaleX(1); }
.stat-label {
  font-size: .65rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .7rem;
}
.stat-value {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--text);
}
.stat-card.accent .stat-value { color: var(--accent); }

.admin-table-wrap {
  background: var(--admin-card); border: 1px solid var(--admin-border);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1.5rem;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; font-size: .65rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  padding: .875rem 1.25rem; border-bottom: 1px solid var(--admin-border);
  background: rgba(255,255,255,.02);
}
.admin-table td {
  padding: .825rem 1.25rem; border-bottom: 1px solid var(--admin-border);
  font-size: .85rem; vertical-align: middle; color: var(--text-2);
}
.admin-table td strong { color: var(--text); font-weight: 500; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }

.admin-card {
  background: var(--admin-card); border: 1px solid var(--admin-border);
  border-radius: var(--radius-md); padding: 1.625rem; margin-bottom: 1.5rem;
}
.admin-card h2 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 1.375rem; padding-bottom: 1rem; border-bottom: 1px solid var(--admin-border);
}

.admin-body .form-group input,
.admin-body .form-group textarea,
.admin-body .form-group select {
  background: var(--admin-bg); border-color: var(--admin-border2);
}
.admin-body .form-group input:focus,
.admin-body .form-group textarea:focus,
.admin-body .form-group select:focus { border-color: var(--accent); }

.badge {
  display: inline-flex; align-items: center;
  padding: .18rem .55rem; border-radius: 99px;
  font-size: .65rem; font-weight: 600; letter-spacing: .05em;
}
.badge-green  { background: rgba(0,220,100,.1);   color: #00d45e; }
.badge-gray   { background: rgba(255,255,255,.05); color: var(--text-3); }
.badge-yellow { background: var(--accent-dim);     color: var(--accent); }
.badge-red    { background: rgba(255,68,68,.1);    color: #ff6060; }
.badge-orange { background: rgba(255,160,50,.1);   color: #ffaa32; }

.action-links { display: flex; gap: .875rem; align-items: center; }
.action-links a { font-size: .75rem; color: var(--text-3); transition: color .2s; }
.action-links a:hover { color: var(--text); }
.action-links a.del:hover { color: #ff6060; }

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--admin-bg); position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; bottom: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(232,244,37,.06) 0%, transparent 65%);
  pointer-events: none;
}
.login-box {
  background: var(--admin-card); border: 1px solid var(--admin-border2);
  border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 390px;
}
.login-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
  display: flex; align-items: center; gap: .4rem; margin-bottom: 1.875rem;
}
.login-logo span { color: var(--accent); }
.login-logo::after {
  content: ''; display: block; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50; margin-left: auto; margin-top: 2px;
}
.login-box .sub {
  font-size: .83rem; color: var(--text-2); margin-bottom: 1.875rem;
  padding-bottom: 1.375rem; border-bottom: 1px solid var(--admin-border);
}
.error-msg {
  background: rgba(255,68,68,.08); color: #ff6060;
  border: 1px solid rgba(255,68,68,.18);
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-size: .83rem; margin-bottom: 1.125rem;
}

.upload-zone {
  border: 1px dashed var(--admin-border2); border-radius: var(--radius-md);
  padding: 2.5rem 2rem; text-align: center; cursor: pointer; transition: all .2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent); background: var(--accent-dim);
}
.upload-zone input[type=file] { display: none; }
.upload-zone-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--admin-surface); border: 1px solid var(--admin-border2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .875rem; font-size: 1.1rem; color: var(--text-2);
}
.upload-zone p { color: var(--text-2); font-size: .85rem; }
.upload-zone small { color: var(--text-3); font-size: .75rem; display: block; margin-top: .25rem; }
.preview-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.125rem; justify-content: center; }
.preview-item {
  width: 68px; height: 51px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--admin-border2);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1100px) {
  .albums-grid .album-card { grid-column: span 6 !important; aspect-ratio: 1/1 !important; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: clamp(1.8rem, 8vw, 3rem); line-height: 1.05; }
  .hero-sub { font-size: 1rem; }
  .album-overlay h2 { font-size: clamp(1rem, 4vw, 1.5rem); }
  .album-header h1 { font-size: clamp(1.75rem, 8vw, 3rem); }
  .album-desc { font-size: 1rem; }
  .back-link { font-size: .85rem; }
  .section-header h2 { font-size: 1.1rem; }
  .album-meta { font-size: .85rem; }

  .site-header { padding: 0 1.5rem; }
  .site-nav {
    gap: 1.5rem; overflow-x: auto; padding-bottom: 5px;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-overflow-scrolling: touch;
  }
  .site-nav a { white-space: nowrap; font-size: 0.75rem; }
  .hero { padding: 5.5rem 1.25rem 2.5rem; }
  .container { padding: 0 1rem 3rem; }
  .album-header { padding: 2.5rem 1rem 1.5rem; }
  .photos-grid {
    padding: 0 1rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
  .contact-wrap { padding: 2rem 1.25rem 4rem; }
  .site-footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .lightbox-btn.prev { left: .5rem; }
  .lightbox-btn.next { right: .5rem; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    display: flex; width: 100%; height: auto;
    position: sticky; top: 0;
    border-right: none; border-bottom: 1px solid var(--admin-border);
    flex-direction: row; align-items: center;
    padding: 0.5rem 1rem; overflow-x: auto; z-index: 1001;
  }
  .admin-brand { padding: 0; border-bottom: none; margin-right: 1.5rem; }
  .admin-brand .brand-sup { display: none; }
  .admin-nav { display: flex; padding: 0; flex-direction: row; }
  .admin-nav-group-label { display: none; }
  .admin-nav a {
    padding: 0.5rem 0.75rem; border-left: none;
    border-bottom: 2px solid transparent; white-space: nowrap;
  }
  .admin-nav a.active { border-left-color: transparent; border-bottom-color: var(--accent); }
  .admin-logout { padding: 0; border-top: none; margin-left: auto; }
  .admin-content { margin-left: 0; padding: 1.5rem 1rem; }
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .topbar-actions { width: 100%; }
  .topbar-actions .btn { width: 100%; justify-content: center; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table th, .admin-table td { padding: 0.75rem 1rem; min-width: 120px; }
}

@media (max-width: 600px) {
  /* Albums : 1 par ligne sur petit mobile pour que les photos soient grandes */
  .albums-grid .album-card { grid-column: span 24 !important; aspect-ratio: 4/3 !important; }
  .album-stat { display: flex; align-items: baseline; gap: 0.5rem; }
  .album-stat .val { font-size: 2rem; }

  /* Grille photos : 1 colonne pour des photos plus grandes */
  .photos-grid {
    grid-template-columns: 1fr !important;
    padding: 0 1rem !important;
    gap: 3px !important;
  }

  /* Typographie légèrement augmentée */
  body { font-size: 1.05rem; }
  .hero-sub { font-size: 1.05rem; }
  .album-meta { font-size: .88rem; }
}

/* ============================================================ ADMIN PHOTOS GRID */

.admin-body .photos-grid {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: .75rem !important;
}

.admin-body .photo-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
}

.admin-body .photo-thumb {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.admin-body .photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================ MOBILE TOPBAR & MENU */

/* Cache la topbar mobile sur desktop */
.mobile-topbar { display: none; }
.mobile-menu   { display: none; }
.mobile-overlay { display: none; }

@media (max-width: 768px) {

  /* Cache la sidebar desktop */
  .admin-sidebar { display: none; }

  /* Topbar mobile */
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1001;
    height: 52px;
    padding: 0 1rem;
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    width: 100%;
  }

  .mobile-brand {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
  }

  /* Bouton hamburger */
  .mobile-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0 8px;
    transition: border-color .2s;
  }
  .mobile-hamburger:hover { border-color: var(--accent); }
  .mobile-hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
  }

  /* Hamburger → croix quand ouvert */
  .mobile-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-hamburger.open span:nth-child(2) { opacity: 0; }
  .mobile-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menu dépliable */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    transform: translateY(-110%);
    transition: transform .3s cubic-bezier(.25,.46,.45,.94);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .mobile-menu.open { transform: translateY(0); }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: .5rem 0;
  }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1.25rem;
    font-size: .88rem;
    color: var(--text-2);
    border-left: 3px solid transparent;
    transition: all .2s;
  }
  .mobile-menu nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
  .mobile-menu nav a.active {
    color: var(--text);
    border-left-color: var(--accent);
    background: rgba(232,244,37,.04);
  }
  .mobile-menu nav a .nav-icon {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    background: var(--admin-card);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; flex-shrink: 0;
  }
  .mobile-menu nav a.active .nav-icon { background: var(--accent); color: #0d0d0d; }

  /* Overlay sombre derrière le menu */
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .mobile-overlay.open { opacity: 1; pointer-events: all; }

  /* Contenu admin */
  .admin-content {
    margin-left: 0;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Topbar titre + bouton */
  .admin-topbar h1 { font-size: 1.15rem; }
  .admin-topbar .actions .btn { width: 100%; justify-content: center; box-sizing: border-box; }

  /* Filtres albums scrollables */
  .album-filters {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
  }
  .album-filters::-webkit-scrollbar { display: none; }
  .album-filters a { white-space: nowrap; flex-shrink: 0; }

  /* Grille photos admin */
  .admin-body .photos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .5rem !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .stat-value { font-size: 1.75rem; }

  /* Tableaux */
  .admin-table-wrap { overflow-x: auto; }
  .admin-table th, .admin-table td { padding: .6rem .75rem; font-size: .78rem; }
}

@media (max-width: 400px) {
  .admin-body .photos-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* mobile-responsive corrections appliquées dans les media queries ci-dessus */
