/* ═══════════════════════════════════════════
   STYLE.CSS — Galerie + Admin UI
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ═══════════════════════════════
   THÈMES — 5 couleurs disponibles
═══════════════════════════════ */

/* Variables globales */
:root {
  --bg:        #F5F0E8;
  --bg-nav:    #F5F0E8;
  --fg:        #2E2B27;
  --accent:    #C8A97A;
  --subtle:    #8A847A;
  --bio-bg:    #1A1814;
  --bio-title: #FEFCF8;
  --bio-text:  rgba(254,252,248,0.65);
  --bio-muted: rgba(254,252,248,0.4);
  --bio-border:rgba(254,252,248,0.1);
  /* compat */
  --cream: #F5F0E8;
  --dark:  #1A1814;
  --warm:  #C8A97A;
  --muted: #8A847A;
  --text:  #2E2B27;
  --white: #FEFCF8;
}

/* ── BLANC ── */
[data-theme="blanc"] {
  --bg:        #FFFFFF;
  --bg-nav:    #FFFFFF;
  --fg:        #1A1A1A;
  --accent:    #777777;
  --subtle:    #AAAAAA;
  --bio-bg:    #1A1A1A;
  --bio-title: #FFFFFF;
  --bio-text:  rgba(255,255,255,0.7);
  --bio-muted: rgba(255,255,255,0.4);
  --bio-border:rgba(255,255,255,0.1);
  --cream:#FFFFFF; --dark:#1A1A1A; --warm:#777777; --muted:#AAAAAA; --text:#1A1A1A; --white:#FFFFFF;
}

/* ── NOIR ── */
[data-theme="noir"] {
  --bg:        #111111;
  --bg-nav:    #111111;
  --fg:        #DDDDDD;
  --accent:    #C8A97A;
  --subtle:    #777777;
  --bio-bg:    #000000;
  --bio-title: #EEEEEE;
  --bio-text:  rgba(220,220,220,0.75);
  --bio-muted: rgba(200,200,200,0.4);
  --bio-border:rgba(255,255,255,0.08);
  --cream:#111111; --dark:#DDDDDD; --warm:#C8A97A; --muted:#777777; --text:#DDDDDD; --white:#1E1E1E;
}

/* ── GRIS CLAIR ── */
[data-theme="gris"] {
  --bg:        #E8E8E8;
  --bg-nav:    #E8E8E8;
  --fg:        #2A2A2A;
  --accent:    #888888;
  --subtle:    #999999;
  --bio-bg:    #2A2A2A;
  --bio-title: #F0F0F0;
  --bio-text:  rgba(240,240,240,0.7);
  --bio-muted: rgba(240,240,240,0.4);
  --bio-border:rgba(255,255,255,0.1);
  --cream:#E8E8E8; --dark:#2A2A2A; --warm:#888888; --muted:#999999; --text:#2A2A2A; --white:#F0F0F0;
}

/* ── SABLE DORÉ (défaut) ── */
[data-theme="sable"] {
  --bg:        #F5F0E8;
  --bg-nav:    #F5F0E8;
  --fg:        #2E2B27;
  --accent:    #C8A97A;
  --subtle:    #8A847A;
  --bio-bg:    #1A1814;
  --bio-title: #FEFCF8;
  --bio-text:  rgba(254,252,248,0.65);
  --bio-muted: rgba(254,252,248,0.4);
  --bio-border:rgba(254,252,248,0.1);
  --cream:#F5F0E8; --dark:#1A1814; --warm:#C8A97A; --muted:#8A847A; --text:#2E2B27; --white:#FEFCF8;
}

/* ── VERT FORÊT ── */
[data-theme="foret"] {
  --bg:        #E8EFE8;
  --bg-nav:    #E8EFE8;
  --fg:        #1E2E1E;
  --accent:    #5A8A5E;
  --subtle:    #7A927A;
  --bio-bg:    #162418;
  --bio-title: #EEF4EE;
  --bio-text:  rgba(220,238,220,0.7);
  --bio-muted: rgba(200,230,200,0.4);
  --bio-border:rgba(200,230,200,0.1);
  --cream:#E8EFE8; --dark:#1E2E1E; --warm:#5A8A5E; --muted:#7A927A; --text:#1E2E1E; --white:#EEF4EE;
}

/* ── SÉLECTEUR DE THÈME ── */
/* ── SÉLECTEUR DE THÈME — discret ── */
.theme-switcher {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 5px;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
.theme-switcher:hover { opacity: 1; }

.theme-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  outline: none;
}
.theme-btn:hover { transform: scale(1.5); }
.theme-btn.active {
  transform: scale(1.4);
  box-shadow: 0 0 0 2px rgba(128,128,128,0.4);
}
.theme-btn[data-theme="blanc"] { background: #CCCCCC; }
.theme-btn[data-theme="noir"]  { background: #333333; }
.theme-btn[data-theme="gris"]  { background: #AAAAAA; }
.theme-btn[data-theme="sable"] { background: #C8A97A; }
.theme-btn[data-theme="foret"] { background: #7A9E7E; }

/* Tooltip */
.theme-tooltip {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.theme-btn:hover .theme-tooltip { opacity: 1; }

@media (max-width: 768px) {
  .theme-switcher {
    top: auto;
    bottom: 20px;
    right: 12px;
    flex-direction: row;
    transform: none;
    opacity: 0.4;
  }
  .theme-tooltip { display: none; }
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-weight: 300; min-height: 100vh; }
body.is-admin { padding-bottom: 70px; }

/* ── HEADER ── */
header { position: relative; height: 100vh; min-height: 600px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.header-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1800&q=80') center/cover no-repeat; filter: brightness(0.45); animation: zoomOut 8s ease-out forwards; }
@keyframes zoomOut { from { transform: scale(1.08); } to { transform: scale(1.00); } }
.header-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,24,20,0.1) 0%, rgba(26,24,20,0.04) 50%, rgba(26,24,20,0.6) 100%); }
.header-content { position: relative; text-align: center; color: var(--white); animation: fadeUp 1.2s ease-out 0.3s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.header-eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase; color: var(--warm); margin-bottom: 20px; }
.header-title { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.header-title em { font-style: italic; color: var(--warm); }
.header-subtitle { font-size: 14px; font-weight: 300; letter-spacing: 0.12em; color: rgba(254,252,248,0.6); margin-top: 18px; }
.header-date { font-size: 11px; font-weight: 300; letter-spacing: 0.15em; color: rgba(254,252,248,0.35); margin-top: 10px; text-transform: capitalize; }
.header-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(254,252,248,0.5); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; animation: scrollPulse 2.5s ease-in-out infinite; }
.header-scroll svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); } 50% { opacity: 0.9; transform: translateX(-50%) translateY(6px); } }
.edit-btn-header { position: relative; margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: rgba(200,169,122,0.15); border: 1px solid rgba(200,169,122,0.4); border-radius: 40px; color: var(--warm); font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.edit-btn-header:hover { background: rgba(200,169,122,0.25); }
.edit-btn-header svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background-color: var(--bg-nav); border-bottom: 1px solid rgba(26,24,20,0.08); backdrop-filter: blur(10px); }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav-logo { font-size: 16px; font-weight: 400; color: var(--dark); text-decoration: none; letter-spacing: 0.05em; }
.nav-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-btn { background: none; border: none; padding: 6px 18px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 40px; transition: all 0.22s ease; white-space: nowrap; }
.filter-btn:hover { color: var(--dark); background: rgba(26,24,20,0.06); }
.filter-btn.active { background: var(--dark); color: var(--cream); }

/* ── GALLERY ── */
.gallery-wrapper { max-width: 1400px; margin: 0 auto; padding: 0 40px 200px; }
.gallery-section { padding-top: 72px; transition: opacity 0.45s ease, transform 0.45s ease; }
.gallery-section.hiding { opacity: 0; transform: translateY(16px); pointer-events: none; }
.gallery-section.hidden { display: none; }
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: 1.6rem; font-weight: 300; color: var(--dark); letter-spacing: -0.01em; }
.section-count { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.section-line { flex: 1; height: 1px; background: rgba(26,24,20,0.1); }
.section-add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: none; border: 1px solid var(--warm); border-radius: 40px; color: var(--warm); font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.section-add-btn:hover { background: var(--warm); color: var(--dark); }
.section-add-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }

/* ── GRID ── */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.photo-card { aspect-ratio: 4/3; position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; box-shadow: 0 2px 8px rgba(26,24,20,0.10), 0 1px 2px rgba(26,24,20,0.06); transition: box-shadow 0.35s ease, transform 0.35s ease; }
.photo-card:hover { box-shadow: 0 6px 20px rgba(26,24,20,0.16); transform: translateY(-2px); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.photo-card:hover img { transform: scale(1.05); }
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,24,20,0.72) 0%, transparent 55%); opacity: 0; transition: opacity 0.35s ease; display: flex; align-items: flex-end; padding: 16px; }
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-name { font-size: 13px; font-weight: 400; color: var(--white); margin-bottom: 2px; }
.photo-tag { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--warm); }
.photo-delete-btn { position: absolute; top: 8px; right: 8px; background: rgba(200,50,50,0.85); border: none; border-radius: 50%; width: 28px; height: 28px; color: white; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 10; }
.photo-card:hover .photo-delete-btn { opacity: 1; }
.photo-delete-btn:hover { transform: scale(1.1); background: rgba(200,50,50,1); }
.empty-state { grid-column: 1/-1; padding: 50px 20px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed rgba(26,24,20,0.15); border-radius: 4px; }
.empty-state strong { display: block; font-size: 15px; font-weight: 400; color: var(--text); margin-bottom: 8px; }

/* ── LIGHTBOX ── */
#lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(20,18,15,0.96); display: none; align-items: center; justify-content: center; }
#lightbox.open { display: flex; animation: lbFade 0.28s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
#lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
#lb-close { position: absolute; top: 22px; right: 28px; background: none; border: none; color: rgba(254,252,248,0.55); font-size: 32px; cursor: pointer; transition: color 0.2s; }
#lb-close:hover { color: var(--white); }
#lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.15em; color: rgba(254,252,248,0.4); }
#lb-prev, #lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 1px solid rgba(254,252,248,0.15); color: rgba(254,252,248,0.6); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
#lb-prev { left: 28px; } #lb-next { right: 28px; }
#lb-prev:hover, #lb-next:hover { background: rgba(254,252,248,0.1); color: var(--white); }

/* ── BIO ── */
.bio-section { background: var(--bio-bg); color: var(--bio-title); padding: 100px 40px; margin-top: 100px; }
.bio-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: center; }
.bio-photo { position: relative; }
.bio-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; filter: grayscale(20%); }
.bio-photo::before { content: ''; position: absolute; top: 16px; left: 16px; right: -16px; bottom: -16px; border: 1px solid rgba(200,169,122,0.3); border-radius: 2px; z-index: 0; pointer-events: none; }
.bio-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; color: var(--warm); margin-bottom: 16px; }
.bio-name { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--bio-title); }
.bio-role { font-size: 13px; font-weight: 300; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 32px; }
.bio-text { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--bio-text); margin-bottom: 16px; }
.bio-stats { display: flex; gap: 40px; margin: 36px 0; padding: 28px 0; border-top: 1px solid var(--bio-border); border-bottom: 1px solid var(--bio-border); }
.bio-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 2rem; font-weight: 300; color: var(--accent); line-height: 1; }
.stat-label { font-size: 11px; letter-spacing: 0.1em; color: var(--bio-muted); text-transform: uppercase; }
.bio-contact { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.bio-btn { display: inline-block; padding: 12px 32px; border: 1px solid var(--warm); color: var(--warm); text-decoration: none; font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; border-radius: 40px; transition: all 0.25s ease; }
.bio-btn:hover { background: var(--warm); color: var(--dark); }
.bio-socials { display: flex; gap: 16px; }
.bio-socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--bio-border); border-radius: 50%; color: var(--bio-muted); text-decoration: none; transition: all 0.25s ease; }
.bio-socials a:hover { border-color: var(--warm); color: var(--warm); }
.bio-socials svg { width: 16px; height: 16px; }
.bio-edit-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; padding: 8px 18px; background: rgba(200,169,122,0.1); border: 1px solid rgba(200,169,122,0.3); border-radius: 40px; color: var(--warm); font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.bio-edit-btn:hover { background: rgba(200,169,122,0.2); }

/* ── FOOTER ── */
footer { border-top: 1px solid rgba(128,128,128,0.15); padding: 36px 40px; text-align: center; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

/* ══════════════════════════════════════
   ADMIN UI
══════════════════════════════════════ */

/* Barre admin flottante */
.admin-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--dark); border-top: 1px solid rgba(200,169,122,0.2); height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 16px; }
.admin-bar-left { display: flex; align-items: center; gap: 20px; }
.admin-bar-logo { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--warm); }
.admin-bar-date { font-size: 11px; color: rgba(254,252,248,0.3); letter-spacing: 0.08em; }
.admin-bar-actions { display: flex; align-items: center; gap: 8px; }
.admin-bar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 40px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: all 0.2s; border: 1px solid rgba(254,252,248,0.15); color: rgba(254,252,248,0.7); background: none; white-space: nowrap; }
.admin-bar-btn:hover { border-color: rgba(254,252,248,0.4); color: var(--white); }
.admin-bar-btn.primary { background: var(--warm); border-color: var(--warm); color: var(--dark); }
.admin-bar-btn.primary:hover { opacity: 0.85; }
.admin-bar-btn.danger { color: #e07070; border-color: rgba(220,100,100,0.3); }
.admin-bar-btn.danger:hover { background: rgba(220,100,100,0.1); border-color: #e07070; }

/* Bouton login FAB */
.admin-login-fab { position: fixed; bottom: 28px; right: 28px; z-index: 500; width: 48px; height: 48px; border-radius: 50%; background: var(--dark); border: 1px solid rgba(200,169,122,0.3); color: var(--warm); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(26,24,20,0.3); transition: all 0.25s; }
.admin-login-fab:hover { background: #2a2724; transform: scale(1.08); }

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(26,24,20,0.7); display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 20px; }
.modal-overlay.active { display: flex; animation: lbFade 0.25s ease; }
.modal { background: var(--white); border-radius: 8px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(26,24,20,0.25); overflow: hidden; }
.modal-large { max-width: 720px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(26,24,20,0.08); }
.modal-title { font-size: 14px; font-weight: 500; letter-spacing: 0.05em; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--dark); }
.modal-body { padding: 24px; max-height: 65vh; overflow-y: auto; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-full { grid-column: 1/-1; }
.modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.modal-label { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.modal-input { background: var(--cream); border: 1px solid rgba(26,24,20,0.12); border-radius: 4px; padding: 10px 14px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300; color: var(--text); outline: none; transition: border-color 0.2s; width: 100%; }
.modal-input:focus { border-color: var(--warm); }
.modal-textarea { resize: vertical; min-height: 80px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid rgba(26,24,20,0.08); background: var(--cream); }
.modal-btn { padding: 9px 22px; border-radius: 40px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.modal-btn.secondary { background: none; border-color: rgba(26,24,20,0.2); color: var(--muted); }
.modal-btn.secondary:hover { border-color: var(--dark); color: var(--dark); }
.modal-btn.primary { background: var(--dark); color: var(--cream); }
.modal-btn.primary:hover { opacity: 0.8; }
.modal-toast { display: none; padding: 10px 16px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; }
.modal-toast.success { background: rgba(100,180,100,0.12); border: 1px solid rgba(100,180,100,0.3); color: #5aad5a; display: block; }
.modal-toast.error   { background: rgba(220,100,100,0.1); border: 1px solid rgba(220,100,100,0.3); color: #c05050; display: block; }
.upload-preview { margin-top: 12px; border-radius: 4px; overflow: hidden; max-height: 180px; }
.upload-preview img { width: 100%; height: 180px; object-fit: cover; display: block; }

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo { display: none; }
  .gallery-wrapper { padding: 0 16px 60px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .bio-section { padding: 60px 20px; }
  .bio-inner { grid-template-columns: 1fr; gap: 40px; }
  .bio-photo::before { display: none; }
  .bio-stats { gap: 24px; }
  .admin-bar { padding: 0 16px; }
  .admin-bar-date { display: none; }
  .modal-grid { grid-template-columns: 1fr; }
}

/* ── BOUTON TÉLÉCHARGER ── */
.download-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20,18,15,0.45);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s;
  color: rgba(255,255,255,0.85);
  z-index: 10;
  backdrop-filter: blur(4px);
  text-decoration: none;
}
.photo-card:hover .download-btn { opacity: 0; display: none; }
.download-btn:hover {
  background: rgba(20,18,15,0.75);
  transform: scale(1.1);
}

/* ── BARRE DE RECHERCHE ── */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.search-toggle {
  background: none;
  border: none;
  color: var(--subtle, #8A847A);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.search-toggle:hover {
  color: var(--fg, #2E2B27);
  background: rgba(128,128,128,0.1);
}
.search-box {
  display: flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.search-box.open {
  max-width: 240px;
  opacity: 1;
}
#search-input {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(128,128,128,0.3);
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--fg, #2E2B27);
  padding: 4px 4px;
  width: 200px;
  transition: border-color 0.2s;
}
#search-input:focus { border-color: var(--accent, #C8A97A); }
#search-input::placeholder { color: var(--subtle, #8A847A); opacity: 0.7; }
.search-clear {
  background: none;
  border: none;
  color: var(--subtle, #8A847A);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
  display: none;
  align-items: center;
  transition: color 0.2s;
}
.search-clear:hover { color: var(--fg, #2E2B27); }

/* ── FORMULAIRE DE CONTACT ── */
.contact-section {
  background: var(--bg, #F5F0E8);
  padding: 100px 40px;
  border-top: 1px solid rgba(128,128,128,0.1);
}
.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}
.contact-header {
  text-align: center;
  margin-bottom: 56px;
}
.contact-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent, #C8A97A);
  margin-bottom: 14px;
}
.contact-titre {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--fg, #2E2B27);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-sous {
  font-size: 14px;
  font-weight: 300;
  color: var(--subtle, #8A847A);
  letter-spacing: 0.05em;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.contact-full { grid-column: 1 / -1; }
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle, #8A847A);
}
.contact-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(128,128,128,0.2);
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--fg, #2E2B27);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-input:focus { border-color: var(--accent, #C8A97A); }
.contact-input::placeholder { color: var(--subtle, #8A847A); opacity: 0.5; }
.contact-textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-footer-form {
  display: flex;
  align-items: center;
  gap: 24px;
}
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: var(--fg, #2E2B27);
  color: var(--bg, #F5F0E8);
  border: none;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.contact-submit:hover { opacity: 0.8; transform: translateY(-1px); }
.contact-note {
  font-size: 11px;
  color: var(--subtle, #8A847A);
  letter-spacing: 0.08em;
}
.contact-toast {
  display: none;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 300;
}
.contact-toast.success {
  background: rgba(100,180,100,0.1);
  border: 1px solid rgba(100,180,100,0.3);
  color: #5a9a5a;
}
.contact-toast.error {
  background: rgba(200,80,80,0.08);
  border: 1px solid rgba(200,80,80,0.25);
  color: #c05050;
}
@media (max-width: 768px) {
  .contact-section { padding: 60px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-footer-form { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── BOUTON PARTAGER ── */
.share-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20,18,15,0.45);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s;
  color: rgba(255,255,255,0.85);
  z-index: 10;
  backdrop-filter: blur(4px);
}
.photo-card:hover .share-btn { opacity: 1; }
.share-btn:hover { background: rgba(20,18,15,0.75); transform: scale(1.1); }

/* Menu partage */
#share-menu {
  background: var(--bg, #F5F0E8);
  border: 1px solid rgba(128,128,128,0.15);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 180px;
  animation: shareIn 0.2s ease;
}
@keyframes shareIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.share-menu-titre {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle, #8A847A);
  padding: 4px 10px 8px;
  border-bottom: 1px solid rgba(128,128,128,0.1);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--fg, #2E2B27);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.share-menu-item:hover { background: rgba(128,128,128,0.08); }

/* ── LOADER ── */
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 280px;
}
.loader-logo {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: #C8A97A;
  animation: loaderPulse 2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.loader-bar {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}
.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #C8A97A, #e8c99a);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.loader-texte {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: opacity 0.2s ease;
}

/* ── FAVORIS ── */
.favori-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(20,18,15,0.45);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s ease, background 0.2s;
  color: rgba(255,255,255,0.7);
  z-index: 10;
  backdrop-filter: blur(4px);
}
.photo-card:hover .favori-btn { opacity: 1; }
.favori-btn.actif {
  opacity: 1 !important;
  color: #e05555;
  background: rgba(20,18,15,0.6);
}
.favori-btn:hover { background: rgba(20,18,15,0.7); }
.favori-filtre-btn { display: inline-flex; align-items: center; gap: 5px; }
.favori-filtre-btn svg { color: #e05555; }
.favori-filtre-btn #favori-count { font-size: 10px; color: var(--accent, #C8A97A); }

/* ── Cacher les flèches lightbox sur mobile/tablette ── */
@media (pointer: coarse) {
  #lb-prev, #lb-next { display: none; }
}

/* ── Double tap animation ── */
@keyframes heartPop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ── Masquer like et partage dans la lightbox ── */
#lightbox .favori-btn,
#lightbox .share-btn,
#lightbox .download-btn { display: none !important; }

/* ── Bouton like toujours visible sur mobile ── */
@media (pointer: coarse) {
  .favori-btn { opacity: 0.85 !important; }
  .favori-btn.actif { opacity: 1 !important; }
}

/* ── Cacher like et partage sur mobile/tablette ── */
@media (pointer: coarse) {
  .favori-btn,
  .share-btn { display: none !important; }
}
