/* ═══════════════════════════════════════════════════════════════════
   FEEL GREAT — Design "Nature Premium"
   Pages utilisateur : index.html · dashboard.html · section.html
   (l'admin garde style.css)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --forest:       #1b4332;
  --forest-deep:  #123124;
  --forest-soft:  #2d6a4f;
  --sage:         #74a892;
  --sage-light:   #b7d1c4;
  --cream:        #faf6ee;
  --cream-2:      #f3ecdd;
  --gold:         #c9a86a;
  --gold-soft:    #e5d3ae;
  --terra:        #d4846e;

  --text:         #22352c;
  --text-soft:    #5a6f64;
  --text-muted:   #8ba094;
  --text-cream:   #f5efe2;
  --text-cream-soft: rgba(245, 239, 226, 0.72);

  --card:         #ffffff;
  --border:       rgba(27, 67, 50, 0.10);
  --border-gold:  rgba(201, 168, 106, 0.35);

  --shadow-sm:    0 2px 10px rgba(27, 67, 50, 0.06);
  --shadow-md:    0 8px 30px rgba(27, 67, 50, 0.10);
  --shadow-lg:    0 20px 60px rgba(18, 49, 36, 0.18);

  --radius:       22px;
  --radius-sm:    14px;
  --radius-lg:    30px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', -apple-system, sans-serif;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-soft); color: var(--forest-deep); }

a { color: inherit; }

/* ── Animations globales ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -25px) scale(1.06); }
  66%  { transform: translate(-20px, 15px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes leafFall {
  0%   { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(60px); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(201, 168, 106, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.anim { opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.22s; }
.anim-d3 { animation-delay: 0.34s; }
.anim-d4 { animation-delay: 0.46s; }
.anim-d5 { animation-delay: 0.58s; }

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ── Boutons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 13px 26px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--forest-soft), var(--forest));
  color: var(--text-cream);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(27, 67, 50, 0.38);
}

.btn-gold {
  background: linear-gradient(135deg, #d8b57a, var(--gold) 55%, #b8945a);
  background-size: 200% auto;
  color: var(--forest-deep);
  box-shadow: 0 6px 22px rgba(201, 168, 106, 0.45);
}
.btn-gold:hover {
  transform: translateY(-2px);
  animation: shimmer 2.2s linear infinite;
  box-shadow: 0 10px 30px rgba(201, 168, 106, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(27, 67, 50, 0.05); color: var(--forest); }

.btn-lg   { padding: 16px 32px; font-size: 16px; }
.btn-sm   { padding: 9px 18px;  font-size: 13.5px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: wait; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE DE CONNEXION
   ═══════════════════════════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 44%) 1fr;
}

/* Panneau visuel gauche */
.login-visual {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% -10%, #2f5c48 0%, transparent 55%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 80%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  color: var(--text-cream);
}

.login-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 10 C 75 30, 75 55, 60 75 C 45 55, 45 30, 60 10 Z' fill='none' stroke='rgba(245,239,226,0.05)' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 120px;
  pointer-events: none;
}

.visual-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: drift 16s ease-in-out infinite;
  pointer-events: none;
}
.visual-blob-1 { width: 380px; height: 380px; background: rgba(116, 168, 146, 0.35); top: -100px; right: -80px; }
.visual-blob-2 { width: 320px; height: 320px; background: rgba(201, 168, 106, 0.22); bottom: -60px; left: -90px; animation-delay: -8s; }

.leaf {
  position: absolute;
  top: 0;
  font-size: 20px;
  animation: leafFall linear infinite;
  pointer-events: none;
  opacity: 0;
}

.visual-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.visual-brand-mark {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(245, 239, 226, 0.10);
  border: 1px solid rgba(245, 239, 226, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  backdrop-filter: blur(6px);
  animation: floaty 5s ease-in-out infinite;
}
.visual-brand-mark img { width: 70%; height: 70%; object-fit: contain; }
.visual-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.visual-brand-name em { font-style: italic; color: var(--gold-soft); }

.visual-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 0;
}

.visual-photo {
  max-width: 320px;
  width: 82%;
  margin: 0 auto 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(245, 239, 226, 0.15);
  animation: floaty 7s ease-in-out infinite;
  display: block;
}

.visual-illustration {
  width: 78%;
  max-width: 300px;
  margin: 0 auto 24px;
  animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.30));
}

.visual-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 380px;
  margin: 0 auto 14px;
}
.visual-headline em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold-soft), #f0e2c4, var(--gold-soft));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
.visual-sub {
  color: var(--text-cream-soft);
  font-size: 15px;
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

.visual-footer {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.visual-stat { text-align: center; }
.visual-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-soft);
  font-weight: 600;
}
.visual-stat-label {
  font-size: 12px;
  color: var(--text-cream-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Panneau formulaire droite */
.login-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(183, 209, 196, 0.25) 0%, transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(229, 211, 174, 0.30) 0%, transparent 70%),
    var(--cream);
}

.login-box {
  width: 100%;
  max-width: 420px;
}

.login-box-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 8px;
}
.login-box-sub {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 34px;
  font-weight: 300;
}

/* Étapes */
.step { animation: scaleIn 0.45s var(--ease-out); }
.step-hidden { display: none; }

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.15);
  color: var(--forest-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.form-input::placeholder { color: var(--text-muted); font-weight: 300; }
.form-input:focus {
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
  transform: translateY(-1px);
}

.form-error {
  display: none;
  font-size: 13px;
  color: var(--terra);
  margin-top: 7px;
  font-weight: 500;
}
.form-error.visible { display: block; animation: fadeIn 0.3s ease; }

.login-form .btn + .btn { margin-top: 10px; }

.login-legal {
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
  max-width: 380px;
}

/* Sélecteur de référent */
.referrer-search-wrap { position: relative; }
.referrer-search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.6;
  pointer-events: none;
}
.referrer-search-wrap .form-input { padding-left: 46px; }

.referrer-list {
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.referrer-list::-webkit-scrollbar { width: 8px; }
.referrer-list::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 8px; }

.referrer-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.18s ease;
  border-bottom: 1px solid rgba(27, 67, 50, 0.05);
  animation: fadeIn 0.3s ease;
}
.referrer-item:last-child { border-bottom: none; }
.referrer-item:hover { background: rgba(116, 168, 146, 0.10); }
.referrer-item.selected { background: rgba(45, 106, 79, 0.10); }

.referrer-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--forest-soft));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.referrer-item-name { font-weight: 600; font-size: 15px; color: var(--text); }
.referrer-item-check {
  margin-left: auto;
  color: var(--forest-soft);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.referrer-item.selected .referrer-item-check { opacity: 1; }

.referrer-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER (dashboard + section)
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.6s ease;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--forest-soft), var(--forest));
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
  transition: transform 0.3s var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-mark img { width: 68%; height: 68%; object-fit: contain; }
.logo-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--forest-deep);
}
.logo-text span { font-style: italic; color: var(--gold); }

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

.welcome-chip {
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.14);
  color: var(--forest);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════ */

.page { position: relative; }

.container-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding-top: 60px;
  padding-bottom: 20px;
  text-align: center;
  position: relative;
}

.hero-greeting {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero-greeting::before, .hero-greeting::after {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--gold-soft);
  vertical-align: middle;
  margin: 0 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title #heroName {
  font-style: italic;
  background: linear-gradient(120deg, var(--forest-soft), var(--sage) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
}

/* Carte boutique du référent */
.boutique-card {
  max-width: 620px;
  margin: 30px auto 6px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(201, 168, 106, 0.16) 0%, transparent 60%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 168, 106, 0.25);
  position: relative;
  overflow: hidden;
}
.boutique-card::before {
  content: '🌿';
  position: absolute;
  font-size: 110px;
  right: -18px;
  bottom: -34px;
  opacity: 0.09;
  transform: rotate(-15deg);
}
.boutique-info { text-align: left; }
.boutique-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 5px;
}
.boutique-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-cream);
  font-weight: 500;
}
.boutique-title em { font-style: italic; color: var(--gold-soft); }
.boutique-card .btn-gold { animation: pulseGlow 2.6s ease-in-out infinite; }

/* Disclaimer */
.disclaimer-banner {
  background: rgba(212, 132, 110, 0.08);
  border: 1px solid rgba(212, 132, 110, 0.25);
  color: #a05a44;
  font-size: 13px;
  line-height: 1.55;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  max-width: 860px;
  margin: 22px auto 8px;
  width: calc(100% - 48px);
  text-align: center;
}

/* Grille des sections */
.sections-area { padding: 34px 24px 70px; }

.sections-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sections-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards;
}
.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(183, 209, 196, 0.14) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 200% center;
  transition: background-position 0.9s ease;
  pointer-events: none;
}
.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 106, 79, 0.25);
}
.section-card:hover::before { background-position: -50% center; }

.section-card.featured {
  background: linear-gradient(135deg, #fdfaf3, #faf3e2);
  border: 1.5px solid var(--border-gold);
}

.section-emoji {
  width: 58px; height: 58px;
  flex-shrink: 0;
  border-radius: 17px;
  background: rgba(45, 106, 79, 0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  transition: transform 0.35s var(--ease-spring);
}
.section-card:hover .section-emoji { transform: scale(1.12) rotate(-6deg); }
.section-card.featured .section-emoji { background: rgba(201, 168, 106, 0.14); }

.section-info { flex: 1; min-width: 0; }

.featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a3822f;
  background: rgba(201, 168, 106, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.section-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  color: var(--forest-deep);
  margin-bottom: 4px;
  line-height: 1.3;
}
.section-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
  font-weight: 300;
}

.section-arrow {
  color: var(--sage);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), color 0.3s ease;
}
.section-card:hover .section-arrow { transform: translateX(6px); color: var(--forest-soft); }

/* ═══════════════════════════════════════════════════════════════════
   PAGE SECTION
   ═══════════════════════════════════════════════════════════════════ */

.back-nav { padding-top: 28px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  transition: all 0.25s ease;
}
.back-btn:hover {
  color: var(--forest);
  border-color: rgba(45, 106, 79, 0.3);
  transform: translateX(-3px);
}

.section-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 26px;
  animation: fadeUp 0.7s var(--ease-out);
}

.section-hero-emoji {
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(45,106,79,0.10), rgba(201,168,106,0.12));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  animation: floaty 6s ease-in-out infinite;
}

.section-hero-info h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.2;
  margin-bottom: 6px;
}
.section-hero-info p {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 300;
}

.media-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest-soft);
  background: rgba(45, 106, 79, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
}

.media-area { padding-bottom: 70px; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.media-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-card img, .media-card video {
  width: 100%;
  display: block;
  background: #0d1f17;
}
.media-card img { max-height: 420px; object-fit: cover; }

.video-wrapper { position: relative; }
.btn-fullscreen {
  position: absolute;
  bottom: 52px; right: 10px;
  background: rgba(18, 49, 36, 0.75);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
  font-family: var(--font-body);
}
.btn-fullscreen:hover { background: rgba(18, 49, 36, 0.95); }

.media-info { padding: 18px 20px; }

.media-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--forest-deep);
  margin-bottom: 6px;
}
.media-comment {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 8px;
}
.media-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  animation: fadeIn 0.8s ease;
}
.empty-state-icon { font-size: 52px; margin-bottom: 16px; animation: floaty 5s ease-in-out infinite; display: inline-block; }
.empty-state p { font-size: 15px; line-height: 1.7; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(13, 31, 23, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.25s ease;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: scaleIn 0.3s var(--ease-out);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER + COOKIES
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--forest-deep);
  color: var(--text-cream-soft);
  text-align: center;
  padding: 34px 24px;
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 40px;
}
.site-footer a { color: var(--gold-soft); text-decoration: underline; }

.cookie-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 760px;
  z-index: 200;
  background: rgba(18, 49, 36, 0.96);
  color: var(--text-cream-soft);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 106, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.6s var(--ease-out);
}
.cookie-bar a { color: var(--gold-soft); }
.cookie-bar strong { color: var(--text-cream); }
.cookie-actions { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual {
    min-height: unset;
    padding: 30px 24px;
    gap: 18px;
  }
  .visual-center { padding: 6px 0; }
  .visual-photo, .visual-illustration { max-width: 190px; margin-bottom: 16px; }
  .visual-headline { font-size: 22px; }
  .visual-sub { display: none; }
  .visual-footer { display: none; }
  .login-form-panel { padding: 36px 22px 60px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .boutique-card { padding: 22px; justify-content: center; text-align: center; }
  .boutique-info { text-align: center; }
  .sections-grid { grid-template-columns: 1fr; }
  .section-hero { flex-direction: column; text-align: center; }
  .media-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 16px; }
  .welcome-chip { display: none; }
  .cookie-bar { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ── FIX : formulaire visible + pas de scroll ── */
.step { opacity: 1 !important; animation: scaleIn 0.5s var(--ease-out) 0.15s both !important; }
.step-hidden { display: none !important; }
.login-page { height: 100vh; overflow: hidden; }
.login-form-panel { overflow-y: auto; }
@media (max-width: 900px) { .login-page { height: auto; min-height: 100vh; overflow: visible; } }
@media (max-height: 800px) and (min-width: 901px) {
  .visual-photo, .visual-illustration { max-width: 200px; margin-bottom: 14px; }
  .visual-headline { font-size: 22px; }
  .visual-sub { display: none; }
}
