/* ============================================================
   myGiftList — Warm Editorial Gift Magazine Design System
   Typographie: Playfair Display (titres) + Jost (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --cream:       #FDF8F0;
  --cream-deep:  #F5EDD8;
  --paper:       #FFFCF7;
  --bordeaux:    #7D1F3A;
  --bordeaux-l:  #9E2F4E;
  --terra:       #C85D38;
  --gold:        #C49A3C;
  --text:        #1A0F0A;
  --text-muted:  #6B5247;
  --border:      rgba(122,60,40,0.12);
  --card-bg:     #FFFFFF;
  --nav-bg:      rgba(253,248,240,0.85);
  --shadow-sm:   0 2px 8px rgba(122,40,20,0.08);
  --shadow-md:   0 8px 32px rgba(122,40,20,0.12);
  --shadow-lg:   0 24px 64px rgba(122,40,20,0.14);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 40px;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Jost', system-ui, sans-serif;

  /* Aliases pour compatibilité avec les classes PHP existantes */
  --primary:        var(--bordeaux);
  --primary-hover:  var(--bordeaux-l);
  --primary-light:  rgba(125,31,58,0.08);
  --primary-muted:  rgba(125,31,58,0.2);
  --success:   #10b981;
  --danger:    #ef4444;
  --warning:   #f59e0b;
  --info:      #3b82f6;
  --bg:        var(--cream);
  --surface:   var(--card-bg);
  --surface-2: var(--cream-deep);
  --text-light: #9ca3af;
  --border-2:  rgba(122,60,40,0.2);
  --shadow:    var(--shadow-sm);
  --shadow-xl: var(--shadow-lg);
  --radius-sm:   var(--r-sm);
  --radius:      12px;
  --radius-md:   var(--r-md);
  --radius-lg:   var(--r-lg);
  --radius-xl:   var(--r-xl);
  --radius-full: 9999px;
  --font-display: var(--ff-display);
  --font-body:    var(--ff-body);
}

[data-theme="dark"] {
  --cream:       #24181E;
  --cream-deep:  #2E1F27;
  --paper:       #1E1218;
  --bordeaux:    #D4A84C;
  --bordeaux-l:  #E2BC6A;
  --terra:       #E8855A;
  --gold:        #D4A84C;
  --text:        #F0E6D0;
  --text-muted:  #A89880;
  --border:      rgba(212,168,76,0.15);
  --card-bg:     #2A1B22;
  --nav-bg:      rgba(30,18,24,0.92);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.5);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture subtile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================================
   Typographie
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: 2rem;    margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem;  margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.subtitle { color: var(--text-muted); font-size: 1.05rem; font-weight: 300; }

a { color: var(--bordeaux); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; flex: 1; }
.page-header { margin: 2rem 0 1.5rem; }
.breadcrumb { margin: 1rem 0; color: var(--text-muted); font-size: 0.875rem; }
.breadcrumb a { color: var(--bordeaux); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar, nav.site-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
}

.logo, .nav-logo {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bordeaux);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}
.logo:hover, .nav-logo:hover { opacity: 0.8; color: var(--bordeaux); }
.logo i { font-size: 1.1rem; }
.nav-logo span { font-style: italic; color: var(--terra); }

.nav-links, .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.nav-links a, .nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-link:hover { color: var(--bordeaux); opacity: 1; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  font-family: var(--ff-body);
}
.theme-toggle:hover {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
  transform: rotate(15deg);
}

/* ============================================================
   Boutons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.375rem;
  border: none;
  border-radius: var(--r-xl);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--bordeaux);
  color: var(--paper);
  box-shadow: 0 4px 16px rgba(125,31,58,0.28);
}
.btn-primary:hover {
  background: var(--bordeaux-l);
  color: var(--paper);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(125,31,58,0.38);
}
[data-theme="dark"] .btn-primary {
  box-shadow: 0 4px 16px rgba(212,168,76,0.25);
  color: var(--cream);
}

.btn-nav {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--bordeaux);
  padding: 10px 22px;
  border-radius: var(--r-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-nav:hover {
  background: var(--bordeaux-l);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--cream-deep);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
  opacity: 1;
  border-color: rgba(122,60,40,0.25);
}

.btn-danger   { background: var(--danger);  color: white; }
.btn-danger:hover  { background: #dc2626; color: white; opacity: 1; }
.btn-warning  { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; color: white; opacity: 1; }
.btn-success  { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; opacity: 1; }

.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: var(--r-xl); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.35s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Alertes
   ============================================================ */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
  border-left: 3px solid;
  font-size: 0.9375rem;
  font-weight: 400;
}
.alert-success { background: #d1fae5; border-color: var(--success); color: #065f46; }
.alert-error   { background: #fee2e2; border-color: var(--danger);  color: #991b1b; }
.alert-warning { background: #fef3c7; border-color: var(--warning); color: #92400e; }
.alert-info    { background: #dbeafe; border-color: var(--info);    color: #1e40af; }

[data-theme="dark"] .alert-success { background: #14532d; color: #bbf7d0; }
[data-theme="dark"] .alert-error   { background: #7f1d1d; color: #fecaca; }
[data-theme="dark"] .alert-warning { background: #78350f; color: #fde68a; }
[data-theme="dark"] .alert-info    { background: #1e3a5f; color: #bfdbfe; }

.info-banner {
  background: linear-gradient(135deg, var(--bordeaux) 0%, #5C1535 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  margin-bottom: 2rem;
}

/* ============================================================
   Formulaires
   ============================================================ */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-family: var(--ff-body);
  font-weight: 300;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(125,31,58,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.form-row .flex-1 { flex: 1; }
.form-row .flex-2 { flex: 2; }

/* ============================================================
   Auth form
   ============================================================ */
.auth-form {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--bordeaux);
}
.auth-form h1 { text-align: center; margin-bottom: 0.25rem; font-size: 1.6rem; }
.auth-form > .subtitle { text-align: center; margin-bottom: 1.75rem; }

.text-center { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.text-center a { color: var(--bordeaux); font-weight: 500; }

/* ============================================================
   Lists grid
   ============================================================ */
.lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.list-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(125,31,58,0.2); }
.list-card h3 { color: var(--text); font-size: 1.05rem; }
.list-description { color: var(--text-muted); margin-bottom: 0.875rem; font-size: 0.9rem; font-weight: 300; }
.list-meta { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 1rem; opacity: 0.7; }
.list-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ============================================================
   Gifts grid
   ============================================================ */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.gift-card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.gift-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(125,31,58,0.2); }
.gift-card.reserved { opacity: 0.82; }

.gift-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
}
.gift-image img { width: 100%; height: 100%; object-fit: cover; }
.gift-content { padding: 1.1rem 1.25rem 1.25rem; }
.gift-description { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; line-height: 1.55; font-weight: 300; }
.gift-price {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}
.gift-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ============================================================
   Badges
   ============================================================ */
.reserved-badge {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: white;
  padding: 0.35rem 0.875rem;
  border-radius: var(--r-xl);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  display: inline-block;
}
.purchased-badge {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  padding: 0.35rem 0.875rem;
  border-radius: var(--r-xl);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  display: inline-block;
}
.list-closed { opacity: 0.72; border-left: 3px solid var(--warning); }
.closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--warning);
  color: white;
  font-size: 0.6875rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-xl);
  vertical-align: middle;
  margin-left: 0.5rem;
  font-weight: 600;
}
.closed-banner {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}
.closed-banner i { margin-right: 0.5rem; }

/* ============================================================
   Priority stars
   ============================================================ */
.priority-stars { display: flex; gap: 0.2rem; margin-bottom: 0.5rem; }
.priority-stars i { color: var(--gold); font-size: 0.875rem; }
.star-rating { display: flex; gap: 0.2rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 1.5rem; color: var(--border); transition: color var(--transition); }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--gold); }

/* ============================================================
   Gift quantity + notes
   ============================================================ */
.gift-quantity {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.private-notes {
  background: #fef3c7;
  border-left: 3px solid var(--gold);
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
}
[data-theme="dark"] .private-notes { background: #78350f; color: #fde68a; }

/* ============================================================
   Stats
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--card-bg);
  padding: 1.375rem 1.5rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--bordeaux);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 1.75rem; color: var(--bordeaux); opacity: 0.7; flex-shrink: 0; }
.stat-value { font-family: var(--ff-display); font-size: 1.625rem; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; font-weight: 300; }

/* ============================================================
   Share URL
   ============================================================ */
.share-url-container { display: flex; gap: 0.5rem; margin-top: 1rem; }
.share-url {
  flex: 1;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream-deep);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--ff-body);
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--text-muted); }
.empty-state p { margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 300; }

/* ============================================================
   Modal
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,15,10,0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-content {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: modalSlideIn 0.2s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-content h2 { margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ============================================================
   Footer (app pages)
   ============================================================ */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 300;
  transition: background var(--transition), border-color var(--transition);
}

/* ============================================================
   Responsive (app)
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .navbar .container { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  nav.site-nav { padding: 1rem 1.25rem; }
  .form-row { flex-direction: column; }
  .lists-grid { grid-template-columns: 1fr; }
  .gifts-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
  .list-actions, .gift-actions { flex-direction: column; }
  .share-url-container { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-form { margin: 1.5rem auto; padding: 1.75rem 1.25rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* === HERO === */
.landing-hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 3rem 5rem;
  gap: 4rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.landing-hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,60,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow, .landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before, .landing-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--terra);
}

.landing-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.landing-hero-title em { font-style: italic; color: var(--bordeaux); }

.landing-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.75rem;
  font-weight: 300;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-badges {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-badge::before { content: '✓'; color: var(--terra); font-weight: 700; }

/* Mockup visuel */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.mockup-wrapper { position: relative; width: 100%; max-width: 460px; }
.mockup-shadow {
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  width: 75%; height: 50px;
  background: rgba(125,31,58,0.12);
  filter: blur(24px);
  border-radius: 50%;
}
[data-theme="dark"] .mockup-shadow { background: rgba(212,168,76,0.08); }

.mockup-browser {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
  transition: background var(--transition);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%       { transform: translateY(-10px) rotate(-0.5deg); }
}
.browser-bar {
  background: var(--cream-deep);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.browser-url {
  flex: 1;
  background: var(--cream);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: monospace;
  border: 1px solid var(--border);
}
.mockup-content { padding: 18px; }
.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-title { font-family: var(--ff-display); font-size: 0.95rem; font-weight: 700; color: var(--bordeaux); }
.mock-badge {
  background: rgba(125,31,58,0.08);
  color: var(--bordeaux);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-xl);
  letter-spacing: 0.05em;
}
[data-theme="dark"] .mock-badge { background: rgba(212,168,76,0.12); }
.mock-items { display: flex; flex-direction: column; gap: 7px; }
.mock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--cream);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.mock-item-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.mock-item-info { flex: 1; }
.mock-item-name { font-size: 0.7rem; font-weight: 500; color: var(--text); display: block; }
.mock-item-price { font-size: 0.6rem; color: var(--text-muted); }
.mock-item-status { font-size: 0.6rem; font-weight: 600; padding: 2px 7px; border-radius: var(--r-xl); }
.status-free     { background: rgba(200,93,56,0.1); color: var(--terra); }
.status-reserved { background: rgba(16,185,129,0.1); color: #059669; }
.mock-progress { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border); }
.mock-progress-label { display: flex; justify-content: space-between; font-size: 0.6rem; color: var(--text-muted); margin-bottom: 5px; }
.mock-progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.mock-progress-fill { height: 100%; width: 66%; background: linear-gradient(90deg, var(--bordeaux), var(--terra)); border-radius: 2px; }

/* Float cards */
.float-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 13px;
  box-shadow: var(--shadow-md);
  font-size: 0.73rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.float-card-1 { top: -12px; right: -28px; animation: float2 5s ease-in-out infinite 1s; }
.float-card-2 { bottom: 36px; left: -36px; animation: float2 5s ease-in-out infinite 2.5s; }
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.float-dot { width: 7px; height: 7px; border-radius: 50%; }

/* === SECTIONS === */
.landing-section { padding: 6rem 3rem; }
.landing-section-alt { background: var(--cream-deep); }
.landing-section:not(.landing-section-alt) { background: var(--cream); }

.section-tag, .landing-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}
.section-tag::before, .landing-section-tag::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--terra);
}

.landing-section-title, .section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 0;
}
.landing-section-title em, .section-title em { font-style: italic; color: var(--bordeaux); }

/* === STEPS === */
.landing-steps, .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.landing-step, .step-card {
  background: var(--card-bg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
}
.landing-step:first-child, .step-card:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.landing-step:last-child, .step-card:last-child   { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.landing-step:hover, .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); z-index: 1; }

.step-number-bg, .landing-step-number-bg {
  position: absolute;
  top: -24px; right: 20px;
  font-family: var(--ff-display);
  font-size: 7rem;
  font-weight: 700;
  color: var(--bordeaux);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.step-icon-wrap, .landing-step-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--bordeaux), var(--terra));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.landing-step h3, .step-title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.landing-step p, .step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}

/* backward-compat : ancien design des steps */
.landing-step-number {
  width: 2.75rem; height: 2.75rem;
  background: var(--bordeaux);
  color: var(--paper);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 10px rgba(125,31,58,0.3);
}

/* === OCCASIONS / USE CASES === */
.landing-usecases, .occasions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 3.5rem;
}
.landing-usecase-card, .occ-card {
  padding: 2.25rem 2rem;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  color: white;
}
.landing-usecase-card:hover, .occ-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.occ-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.occ-card:nth-child(1) { grid-column: 1/2; background: linear-gradient(135deg, #8B2252, #5C1535); }
.occ-card:nth-child(2) { grid-column: 2/3; background: linear-gradient(135deg, #C85D38, #9A3E20); }
.occ-card:nth-child(3) { grid-column: 3/4; background: linear-gradient(135deg, #2D5A6B, #1A3A47); }
.occ-card:nth-child(4) { grid-column: 1/2; background: linear-gradient(135deg, #5C6B2D, #3A4A1A); }
.occ-card:nth-child(5) { grid-column: 2/4; background: linear-gradient(135deg, #4A2D6B, #2D1A47); }

/* backward compat : ancien .landing-usecase-card */
.landing-usecase-card:not(.occ-card) {
  background: var(--cream-deep);
  border: 1.5px solid var(--border);
  color: var(--text);
}
.landing-usecase-card span { font-size: 2.25rem; display: block; margin-bottom: 0.5rem; line-height: 1; }
.landing-usecase-card p { font-weight: 600; color: var(--text); margin: 0; font-size: 0.875rem; }

.occ-icon { font-size: 2.4rem; display: block; margin-bottom: 1.25rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2)); }
.occ-title { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.occ-desc { font-size: 0.85rem; color: rgba(255,255,255,0.72); font-weight: 300; line-height: 1.6; }
.occ-arrow {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  transition: all var(--transition);
}
.occ-card:hover .occ-arrow { background: rgba(255,255,255,0.24); transform: translate(2px,-2px); }

/* === FEATURES / BENEFITS === */
.landing-features, .benefits-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
.landing-features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.benefits-layout  { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; margin-top: 0; }

.landing-feature {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--r-sm);
  background: var(--cream-deep);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.landing-feature:hover { border-color: rgba(125,31,58,0.2); box-shadow: var(--shadow-sm); }
.landing-feature-icon { font-size: 1.35rem; flex-shrink: 0; width: 2.25rem; text-align: center; padding-top: 0.1rem; }
.landing-feature strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--text); font-family: var(--ff-display); }
.landing-feature p { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; font-weight: 300; }

/* Benefits list */
.benefits-list { display: flex; flex-direction: column; gap: 0; }
.benefit-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
}
.benefit-item:first-child { padding-top: 0; }
.benefit-item:last-child  { border-bottom: none; }
.benefit-item:hover { padding-left: 4px; }
.benefit-num { font-family: var(--ff-display); font-size: 0.75rem; font-weight: 700; color: var(--terra); padding-top: 4px; flex-shrink: 0; width: 24px; }
.benefit-title { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.benefit-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; font-weight: 300; }

/* Benefits stats visual */
.benefits-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.benefits-stat-card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}
.benefits-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.benefits-stat-card:nth-child(2) { margin-top: 1.5rem; }
.benefits-stat-card:nth-child(3) { margin-top: -1.5rem; }
.benefits-stat-number { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 700; color: var(--bordeaux); line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.04em; }
.benefits-stat-label  { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; line-height: 1.4; }

/* === CTA === */
.landing-cta {
  padding: 5rem 3rem;
}
.landing-cta-box {
  background: linear-gradient(135deg, var(--bordeaux) 0%, #5C1535 100%);
  border-radius: var(--r-xl);
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
[data-theme="dark"] .landing-cta-box {
  background: linear-gradient(135deg, #1A0F08 0%, #0F0A04 100%);
  border: 1px solid rgba(212,168,76,0.2);
}
.landing-cta-box::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .landing-cta-box::before {
  background: radial-gradient(ellipse, rgba(212,168,76,0.07) 0%, transparent 70%);
}
.landing-cta-box > * { position: relative; }

.cta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  display: block;
}
[data-theme="dark"] .cta-label { color: rgba(212,168,76,0.7); }

.landing-cta h2, .cta-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
[data-theme="dark"] .landing-cta h2, [data-theme="dark"] .cta-title { color: var(--text); }

.landing-cta p, .cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.75rem;
  font-weight: 300;
}
[data-theme="dark"] .landing-cta p, [data-theme="dark"] .cta-sub { color: var(--text-muted); }

.btn-cta {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bordeaux);
  background: #FFFFFF;
  padding: 1.1rem 2.75rem;
  border-radius: var(--r-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: inline-block;
  text-decoration: none;
}
[data-theme="dark"] .btn-cta {
  background: var(--bordeaux);
  color: var(--cream);
  box-shadow: 0 4px 24px rgba(212,168,76,0.18);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,0.28); opacity: 1; }

.cta-micro-badges { display: flex; justify-content: center; gap: 1.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.cta-badge { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 400; }
[data-theme="dark"] .cta-badge { color: var(--text-muted); }
.cta-badge-check { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .cta-badge-check { color: var(--terra); }

/* === FOOTER LANDING === */
.landing-footer {
  background: #1E1218;
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.landing-footer a { color: rgba(255,255,255,0.72); font-weight: 500; }
.landing-footer a:hover { color: white; opacity: 1; }
.landing-footer p { margin: 0.25rem 0; font-size: 0.875rem; }

.footer-logo { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700; color: var(--bordeaux); }
.footer-logo span { font-style: italic; color: var(--terra); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: rgba(255,255,255,0.9); opacity: 1; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); font-weight: 300; }

/* === ANIMATIONS landing === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow   { animation: fadeUp 0.6s ease both 0.1s; }
.landing-hero-title { animation: fadeUp 0.6s ease both 0.2s; }
.landing-hero-subtitle { animation: fadeUp 0.6s ease both 0.35s; }
.landing-hero-actions { animation: fadeUp 0.6s ease both 0.5s; }
.hero-badges    { animation: fadeUp 0.6s ease both 0.65s; }
.hero-visual    { animation: fadeUp 0.8s ease both 0.4s; }

/* === RESPONSIVE LANDING === */
@media (max-width: 960px) {
  .landing-hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3.5rem; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 2rem; }
  .landing-hero-subtitle { margin: 0 auto 2.25rem; }
  .landing-hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .mockup-wrapper { max-width: 340px; margin: 0 auto; }
  .float-card-1, .float-card-2 { display: none; }
  .landing-section { padding: 4.5rem 1.5rem; }
  .landing-steps, .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .landing-step:first-child, .step-card:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .landing-step:last-child, .step-card:last-child   { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .landing-usecases, .occasions-grid { grid-template-columns: 1fr 1fr; }
  .occ-card:nth-child(1) { grid-column: 1/2; }
  .occ-card:nth-child(2) { grid-column: 2/3; }
  .occ-card:nth-child(3) { grid-column: 1/2; }
  .occ-card:nth-child(4) { grid-column: 2/3; }
  .occ-card:nth-child(5) { grid-column: 1/3; }
  .benefits-layout { grid-template-columns: 1fr; gap: 3rem; }
  .landing-cta { padding: 3.5rem 1.5rem; }
  .landing-cta-box { padding: 3.5rem 2rem; }
  .landing-footer { flex-direction: column; gap: 1.25rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .cta-micro-badges { gap: 1rem; }
}
@media (max-width: 640px) {
  .landing-hero-actions { flex-direction: column; align-items: center; }
  .landing-hero-actions .btn { width: 100%; max-width: 280px; }
  .landing-section { padding: 3rem 1rem; }
}
