/* =========================================================
   Melidor — Livre d'Or réinventé — feuille de style principale
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0f1115;
  --card-dark: #16181d;
  --accent: #E91E63;
  --accent-hover: #D81B60;
  --white: #ffffff;
  --text-dark: #1A1A1A;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-light-soft: rgba(255, 255, 255, 0.05);
  --border-slate: #e2e8f0;
  --radius-full: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.font-serif { font-family: 'Playfair Display', serif; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(233, 30, 99, 0.2);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 32px;
  font-size: 1.125rem;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-white {
  background: var(--white);
  color: var(--bg-dark);
  padding: 10px 24px;
  font-size: 0.875rem;
}
.btn-white:hover { background: rgba(255, 255, 255, 0.9); }

.btn-white-lg {
  background: var(--white);
  color: var(--text-dark);
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: 12px;
}
.btn-white-lg:hover { background: rgba(255, 255, 255, 0.9); }

.btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.btn-outline:hover { background: #f8fafc; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light-soft);
}
.navbar .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  background: var(--white);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.navbar-logo img { height: 40px; width: auto; object-fit: contain; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.navbar-links a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .navbar-links { display: none; }
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
}
.badge-accent { background: var(--accent); color: var(--white); }
.badge-accent-soft { background: rgba(233, 30, 99, 0.1); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 200px 24px 130px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.8);
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.hero h1 em {
  color: var(--accent);
  font-style: italic;
}
.hero p.lead {
  font-size: 1.125rem;
  color: var(--slate-400);
  font-weight: 300;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .hero h1 { font-size: 6rem; }
}

/* ---------- About / Description ---------- */
.section-white {
  background: var(--white);
  color: var(--text-dark);
  padding: 96px 0;
}
.about-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-grid h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 32px;
}
@media (min-width: 768px) { .about-grid h2 { font-size: 3rem; } }
.about-grid h2 .accent { color: var(--accent); }
.about-grid p {
  color: var(--slate-600);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.about-image-wrap { position: relative; }
.about-image {
  position: relative;
  z-index: 10;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(233,30,99,0.1);
  border: 1px solid var(--border-slate);
}
.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.7s ease;
}
.about-image:hover img { transform: scale(1.05); }

.floating-card {
  position: absolute;
  bottom: -32px;
  right: -32px;
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-slate);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: floaty 4s ease-in-out infinite;
}
@media (max-width: 639px) { .floating-card { display: none; } }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating-card .icon-circle {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.floating-card p.title { font-weight: 700; margin: 0; color: var(--text-dark); }
.floating-card p.sub { color: var(--slate-500); font-size: 0.875rem; margin: 0; }

/* ---------- Features ---------- */
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
  padding: 96px 0;
}
.section-heading {
  text-align: center;
  margin-bottom: 80px;
}
.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .section-heading h2 { font-size: 3rem; } }
.section-heading p {
  color: var(--slate-400);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  gap: 8px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--card-dark);
  border: 1px solid var(--border-light-soft);
}
.feature-card .feature-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.feature-card .feature-head svg { color: var(--accent); flex-shrink: 0; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.feature-card p { color: var(--slate-400); margin: 0 0 0 40px; }

.phone-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  position: relative;
  width: 288px;
  height: 600px;
  background: #000;
  border-radius: 3rem;
  border: 8px solid #1f2937;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  overflow: hidden;
}
.phone-mockup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.phone-mockup img.active { opacity: 1; }
.phone-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 384px; height: 384px;
  background: rgba(109, 40, 217, 0.2);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  padding: 32px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.step-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}
.step-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; }
.step-card p { color: var(--slate-500); line-height: 1.7; margin: 0; }

/* ---------- Showcase (parallax banner) ---------- */
.showcase {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
}
.showcase-bg { position: absolute; inset: 0; z-index: 0; }
.showcase-bg img { width: 100%; height: 100%; object-fit: cover; }
.showcase-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.showcase-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.showcase-content h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
@media (min-width: 768px) { .showcase-content h2 { font-size: 3.75rem; } }
.showcase-content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  line-height: 1.7;
  margin: 0 auto 40px;
  max-width: 640px;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.faq-wrap > h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
}
@media (min-width: 768px) { .faq-wrap > h2 { font-size: 3rem; } }
.faq-wrap > .subtitle {
  color: var(--slate-500);
  text-align: center;
  margin-bottom: 64px;
}
.faq-item { border-bottom: 1px solid var(--border-slate); padding: 24px 0; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-question h4 { font-size: 1.125rem; font-weight: 700; margin: 0; }
.faq-question svg { flex-shrink: 0; }
.faq-answer {
  color: var(--slate-500);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; margin-top: 16px; }

.faq-contact-cta { margin-top: 64px; text-align: center; }
.faq-contact-cta p { color: var(--slate-500); margin-bottom: 24px; }

/* ---------- Contact Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 512px;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  color: var(--text-dark);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.modal-head h3 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.modal-hint { font-size: 0.75rem; color: var(--slate-500); font-style: italic; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent);
}
.form-group textarea { height: 128px; resize: none; }
.form-hint {
  font-size: 10px;
  color: #9ca3af;
  text-align: right;
  margin: 4px 0 0;
}
.form-submit {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover { background: var(--accent-hover); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status { text-align: center; padding: 32px 0; }
.form-status .status-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.form-status.success .status-icon { background: #dcfce7; color: #22c55e; }
.form-status.error .status-icon { background: #fee2e2; color: #ef4444; }
.form-status h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.form-status p { color: #6b7280; margin: 0 0 32px; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-light-soft);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .site-footer .container { flex-direction: row; } }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 640px) { .footer-links { gap: 24px; } }
.footer-links button {
  color: var(--slate-500);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.footer-links button:hover { color: var(--white); }
.footer-links p { color: var(--slate-500); font-size: 0.875rem; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.in-view { opacity: 1; transform: translate(0, 0); }

/* =========================================================
   Page de connexion / écran d'accueil (Melidor)
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: grid;
  background: var(--white);
  color: var(--text-dark);
}
@media (min-width: 960px) {
  .login-page { grid-template-columns: 1fr 1fr; }
}
.login-image {
  position: relative;
  min-height: 320px;
  display: none;
}
@media (min-width: 960px) { .login-image { display: block; } }
.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
}
.login-back-btn {
  width: 100%;
  max-width: 420px;
  background: transparent;
  color: var(--slate-500);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 12px;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.login-back-btn:hover { color: var(--text-dark); background: #f1f5f9; }
.login-logo { margin-bottom: 40px; }
.login-logo img { height: 56px; width: auto; margin: 0 auto; }
.login-brand {
  color: var(--slate-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.login-brand strong { color: var(--accent); font-weight: 700; }
.login-panel h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  max-width: 500px;
  margin: 0 0 24px;
}
.login-panel h1 .script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--accent);
}
.login-panel p.lead {
  color: var(--slate-500);
  max-width: 420px;
  line-height: 1.7;
  margin: 0 0 40px;
}
.login-cta {
  width: 100%;
  max-width: 420px;
  background: var(--accent);
  color: var(--white);
  padding: 18px 32px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
}
.login-cta:hover { background: var(--accent-hover); }

.login-view { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 32px;
}
.auth-tab {
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate-500);
  transition: all 0.2s ease;
}
.auth-tab.active {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form { width: 100%; }
.auth-form .form-group { margin-bottom: 16px; text-align: left; }
.auth-form .login-cta { width: 100%; margin-top: 8px; }
.auth-hint {
  text-align: center;
  color: var(--slate-500);
  font-size: 0.875rem;
  margin: 20px 0 0;
}
.auth-hint a { color: var(--accent); font-weight: 500; }
.auth-hint a:hover { text-decoration: underline; }

/* =========================================================
   Tableau de bord (liste des livres d'or + création)
   ========================================================= */
.dashboard-body { background: #f8fafc; color: var(--text-dark); min-height: 100vh; }

.dashboard-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-slate);
}
.dashboard-nav .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-nav .navbar-logo { box-shadow: none; border: 1px solid var(--border-slate); }

.dashboard-nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}
@media (min-width: 768px) { .dashboard-nav-links { display: flex; } }
.dashboard-nav-links a { color: var(--slate-500); transition: color 0.2s ease; padding: 8px 0; border-bottom: 2px solid transparent; }
.dashboard-nav-links a:hover { color: var(--text-dark); }
.dashboard-nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dashboard-user span { color: var(--slate-600); font-weight: 500; }
.dashboard-user a.logout-link {
  color: var(--slate-500);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.dashboard-user a.logout-link:hover { color: var(--accent); }

.dashboard-main { max-width: 1000px; margin: 0 auto; padding: 120px 24px 96px; }

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.dashboard-header h1 { font-size: 2rem; font-weight: 700; margin: 0; }
.dashboard-header p { color: var(--slate-500); margin: 6px 0 0; }

.flash-banner {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fef2f2; color: #991b1b; }

.btn-new-livre {
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-new-livre:hover { background: var(--accent-hover); }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border: 1px dashed var(--border-slate);
  border-radius: 24px;
}
.empty-state p { color: var(--slate-500); margin: 0 0 28px; font-size: 1.05rem; }

.livres-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .livres-grid { grid-template-columns: 1fr 1fr; }
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 20px;
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.event-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: #e2e8f0; }
.event-card-clickable { display: block; color: inherit; cursor: pointer; }
.event-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}
.event-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.event-card-details { color: var(--slate-500); font-size: 0.95rem; line-height: 1.8; margin: 0 0 20px; }
.event-card-details strong { color: var(--text-dark); font-weight: 500; }
.event-card-type { display: inline-flex; align-items: center; gap: 6px; }
.event-card-type svg { color: var(--accent); flex-shrink: 0; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.status-attente { background: #fef3c7; color: #92400e; }
.status-actif { background: #dcfce7; color: #166534; }
.status-ouvert { background: #dbeafe; color: #1e40af; }
.status-supprime { background: #f1f5f9; color: #64748b; }

.event-card-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.event-card-actions .btn-whatsapp {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-activer {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-activer:hover { background: var(--accent-hover); }
.btn-secondaire {
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondaire:hover { background: #e2e8f0; }

/* ---------- Formulaire création de livre d'or ---------- */
.form-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}
.form-page h1 { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.form-page > p { color: var(--slate-500); margin: 0 0 32px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 20px;
  padding: 32px;
}
.form-card label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  margin-bottom: 6px;
}
.form-card .form-group { margin-bottom: 20px; }
.form-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 500px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Page récap d'un livre d'or : bandeau hero thématique ---------- */
.detail-hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--white);
  overflow: hidden;
  padding: 132px 24px 40px;
}
.detail-hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}
.detail-hero::after {
  /* fondu vers le bas pour ancrer le bandeau au contenu qui suit */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.detail-hero-share {
  background: linear-gradient(135deg, #0c040a 0%, #3d0a20 100%);
}
.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.detail-hero-toprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.detail-hero-back {
  display: inline-block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.detail-hero-back:hover { color: var(--white); }

.detail-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}
.detail-hero-eyebrow svg { flex-shrink: 0; }

.detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
}
@media (min-width: 640px) { .detail-hero h1 { font-size: 3rem; } }

.detail-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.detail-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.detail-fact svg { flex-shrink: 0; opacity: 0.8; }

.detail-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.detail-hero-share .btn-whatsapp { margin-top: 0; }
.detail-hero-share .share-card-hint { margin: 16px 0 0; max-width: 420px; }
.btn-generer-souvenir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease;
}
.btn-generer-souvenir:hover { background: rgba(255,255,255,0.18); }

.detail-page-body { padding-top: 40px; }

.detail-card { margin-bottom: 20px; }
.detail-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }

.invitation-link-box {
  background: #f8fafc;
  border: 1px solid var(--border-slate);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--slate-600);
  word-break: break-all;
  margin-bottom: 16px;
}
.detail-share-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-share-actions .btn { padding: 12px 24px; border-radius: var(--radius-full); font-weight: 500; }

/* ---------- Messages reçus (onglets Vidéo / Audio) ---------- */
.messages-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}
.messages-tab {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.messages-tab.active { background: var(--white); color: var(--text-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.messages-count {
  background: #e2e8f0;
  color: var(--slate-600);
  border-radius: var(--radius-full);
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.messages-tab.active .messages-count { background: var(--accent); color: var(--white); }

.messages-empty { color: var(--slate-500); margin: 0; padding: 24px 0; text-align: center; font-style: italic; }

.messages-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .messages-list:not(.messages-list-audio) { grid-template-columns: 1fr 1fr; } }

.message-item {
  border: 1px solid var(--border-slate);
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}
.message-item video { width: 100%; display: block; max-height: 280px; background: #000; }
.message-item-audio audio { width: 100%; display: block; margin: 16px; width: calc(100% - 32px); }
.message-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--slate-500);
}
.message-download { color: var(--accent); font-weight: 500; }
.message-download:hover { text-decoration: underline; }

/* ---------- Page invitation (invités) ---------- */
.invite-standalone-message {
  max-width: 480px;
  margin: 120px auto;
  padding: 0 24px;
  text-align: center;
}
.invite-standalone-message h1 { font-size: 2rem; margin: 0 0 16px; }
.invite-standalone-message p { color: var(--slate-500); }

.invite-hero { padding-top: 56px; }
.invite-hero-logo { margin-bottom: 24px; }
.invite-hero-logo img { height: 40px; width: auto; background: var(--white); border-radius: 10px; padding: 6px 10px; }

.invite-main { max-width: 640px; }
.invite-welcome { background: #fdf2f8; border-color: #fbcfe8; }

.record-slot .record-idle { text-align: center; padding: 12px 0; }
.record-live { text-align: center; }
.record-preview {
  width: 100%;
  max-height: 320px;
  background: #000;
  border-radius: 12px;
  margin-bottom: 16px;
  object-fit: cover;
}
.record-audio-indicator {
  padding: 32px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.record-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 16px;
}
.record-recording-active { background: #dc2626; }
.record-recording-active:hover { background: #b91c1c; }

.record-pending-note {
  font-size: 0.85rem;
  color: var(--slate-500);
  background: #fffbeb;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}
.record-done-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  font-weight: 500;
  margin: 12px 0 0;
}

/* ---------- Partage de photos (invité) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.photo-item { padding: 0; overflow: hidden; }
.photo-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}
.photo-item .record-pending-note,
.photo-item .record-done-note,
.photo-item .detail-share-actions {
  padding: 0 12px;
}
.photo-item .record-done-note { padding-bottom: 12px; }
.photo-item .detail-share-actions { padding-bottom: 12px; flex-wrap: wrap; }
.photo-upload-zone { text-align: center; }
.photo-upload-status { margin: 10px 0 0; font-size: 0.85rem; }

/* ---------- Bouton WhatsApp + texte d'indication (intégrés au bandeau) ---------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.btn-whatsapp:hover { background: #1DA851; }
.share-card-hint {
  font-style: italic;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ---------- Mes Souvenirs ---------- */
.souvenirs-section { margin-bottom: 32px; }
.souvenirs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.souvenirs-header h2 { font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--text-dark); }
.souvenirs-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.badge-ready { background: #dcfce7; color: #166534; }
.badge-waiting { background: #f1f5f9; color: var(--slate-500); }

.souvenirs-box {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  color: var(--slate-500);
}
.souvenirs-box svg { color: var(--slate-500); margin-bottom: 12px; }
.souvenirs-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; }
.souvenirs-text { margin: 0; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---------- Messages reçus (onglets pleine largeur) ---------- */
.messages-section { margin-bottom: 32px; }
.messages-tabs-full {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
}
.messages-tab-full {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--slate-500);
  transition: all 0.2s ease;
}
.messages-tab-full.active { background: var(--accent); color: var(--white); }

.message-download-locked {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-style: italic;
}

/* =========================================================
   Espace administrateur
   ========================================================= */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-card { width: 100%; max-width: 400px; }

.admin-main { max-width: 1100px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 800px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 16px;
  padding: 24px;
}
.stat-card-accent { background: linear-gradient(135deg, #0c040a 0%, #3d0a20 100%); border: none; }
.stat-card-accent .stat-label { color: rgba(255,255,255,0.6); }
.stat-card-accent .stat-value { color: var(--white); }
.stat-label { font-size: 0.85rem; color: var(--slate-500); margin: 0 0 8px; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.stat-currency { font-size: 1rem; font-weight: 500; opacity: 0.7; }

.admin-section { margin-bottom: 40px; }
.admin-section h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 16px; color: var(--text-dark); }

.type-breakdown {
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.type-breakdown-row { display: flex; align-items: center; gap: 16px; }
.type-breakdown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 180px;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.type-breakdown-label svg { color: var(--accent); flex-shrink: 0; }
.type-breakdown-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: var(--radius-full); overflow: hidden; }
.type-breakdown-bar { height: 100%; background: var(--accent); border-radius: var(--radius-full); }
.type-breakdown-count { width: 32px; text-align: right; font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 16px;
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-slate);
}
.admin-table td { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 0.9rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-primary { font-weight: 600; color: var(--text-dark); }
.admin-table-secondary { font-size: 0.8rem; color: var(--slate-500); }
.admin-table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.qr-modal-box { text-align: center; max-width: 340px; }
.qr-code-container { display: flex; justify-content: center; margin: 0 auto; }
.qr-code-container img, .qr-code-container canvas { border-radius: 8px; }
.qr-modal-lien { font-size: 0.75rem; color: var(--slate-500); word-break: break-all; margin: 12px 0 0; }

.contact-messages-list { display: flex; flex-direction: column; gap: 10px; }
.contact-message-row {
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 14px;
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-message-row:hover { border-color: var(--accent); }
.contact-message-unread { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.contact-message-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.contact-message-row-meta { font-size: 0.85rem; color: var(--slate-500); }

/* Réutilisés dans la modale de lecture */
.contact-message-meta { font-size: 0.85rem; color: var(--slate-500); margin: 0 0 14px; }
.contact-message-body { color: var(--text-dark); line-height: 1.7; margin: 0; white-space: pre-wrap; }

/* ---------- Filtre période (dashboard admin) ---------- */
.admin-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-filter-form select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-slate);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--text-dark);
}
.admin-filter-form select:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Graphique chiffre d'affaires mensuel ---------- */
.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
  padding: 28px 16px 0;
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 16px;
}
.revenue-chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.revenue-chart-value { font-size: 0.7rem; color: var(--slate-500); margin-bottom: 6px; white-space: nowrap; }
.revenue-chart-bar {
  width: 100%;
  max-width: 34px;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  transition: height 0.3s ease;
}
.revenue-chart-label { font-size: 0.75rem; color: var(--slate-500); margin-top: 10px; }

/* ---------- Page légale (mentions légales, etc.) ---------- */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.legal-page h1 { font-size: 2.25rem; margin: 0 0 8px; }
.legal-updated { color: var(--slate-500); font-size: 0.9rem; margin: 0 0 40px; }
.legal-page section { margin-bottom: 32px; }
.legal-page h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; color: var(--text-dark); }
.legal-page p { color: var(--slate-600); line-height: 1.75; margin: 0 0 12px; }
.legal-page ul { color: var(--slate-600); line-height: 1.75; padding-left: 20px; margin: 0 0 12px; }
.legal-modal-box { max-width: 720px; }
.legal-modal-content h1 { display: none; } /* le titre est déjà dans l'en-tête du modal */
.legal-modal-content .legal-updated { margin-top: -8px; }
.legal-modal-content section:last-child { margin-bottom: 0; }

/* ---------- Menu déroulant personnalisé (type d'événement + icônes) ---------- */
.custom-select { position: relative; }
.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: var(--white);
  font-size: 1rem;
  color: var(--text-dark);
  text-align: left;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.custom-select-trigger:focus,
.custom-select-trigger.open { border-color: transparent; box-shadow: 0 0 0 2px var(--accent); }
.custom-select-trigger svg { color: var(--slate-500); flex-shrink: 0; transition: transform 0.15s ease; }
.custom-select-trigger.open svg { transform: rotate(180deg); }
.custom-select-value.placeholder { color: #9ca3af; }
.custom-select-value-inner { display: flex; align-items: center; gap: 10px; }

.custom-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-slate);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  padding: 6px;
}
.custom-select-panel.open { display: block; }
.custom-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.custom-select-option:hover { background: #f8fafc; }
.custom-select-option.selected { background: #fdf2f8; color: var(--accent); font-weight: 500; }
.custom-select-option .option-icon { color: var(--accent); display: flex; flex-shrink: 0; }

/* ---------- Champ mot de passe avec bouton "afficher" ---------- */
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.toggle-password {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}
.toggle-password:hover { color: var(--text-dark); background: #f1f5f9; }

/* =========================================================
   Générateur de souvenir (montage photo)
   ========================================================= */
.souvenir-page { max-width: 720px; }
.souvenir-card { margin-bottom: 20px; }

.souvenir-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.souvenir-select-actions { display: flex; gap: 8px; }

.souvenir-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.souvenir-photo-check {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
}
.souvenir-photo-check input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.souvenir-photo-check img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.45; transition: opacity 0.15s ease; }
.souvenir-photo-check input:checked ~ img { opacity: 1; }
.souvenir-photo-check input:checked { }
.souvenir-photo-check:has(input:checked) { border-color: var(--accent); }
.souvenir-photo-check-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.15);
}
.souvenir-photo-check input:checked ~ .souvenir-photo-check-mark {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.souvenir-photo-disabled { cursor: not-allowed; }
.souvenir-photo-disabled img { opacity: 0.2; filter: grayscale(1); }
.souvenir-photo-disabled .souvenir-photo-check-mark { display: none; }

.souvenir-progress-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.souvenir-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

/* =========================================================
   Visionneuse plein écran (photos)
   ========================================================= */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 2;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(0,0,0,0.75); }
.lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  background: rgba(0,0,0,0.5);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin: 0;
  z-index: 2;
}

/* =========================================================
   Boutons Annuler / Supprimer (page modification livre d'or)
   ========================================================= */
.btn-annuler-action {
  width: 100%;
  max-width: 420px;
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 18px 32px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 12px;
}
.btn-annuler-action:hover { background: #e2e8f0; }

.btn-noir {
  width: 100%;
  max-width: 420px;
  background: #000000;
  color: var(--white);
  padding: 18px 32px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
}
.btn-noir:hover { background: #262626; }

/* ---------- Modale de confirmation générique ---------- */
.confirm-modal-box { max-width: 420px; text-align: center; }
.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.confirm-modal-actions .btn { flex: 1; padding: 14px 20px; border-radius: var(--radius-full); font-weight: 700; }