/* ============================================================
   EMILIE LUXE — Couche premium artistique
   Boutons haut de gamme, reliefs, ornements, atmosphère
   ============================================================ */

/* ---------- Variables luxe ---------- */
:root {
  --shadow-soft-1: 0 1px 2px rgba(58, 46, 38, 0.04);
  --shadow-soft-2: 0 4px 12px rgba(58, 46, 38, 0.06);
  --shadow-soft-3: 0 12px 32px rgba(58, 46, 38, 0.10);
  --shadow-deep:   0 22px 60px -10px rgba(58, 46, 38, 0.22),
                   0 10px 24px -6px rgba(58, 46, 38, 0.14),
                   0 2px 6px rgba(58, 46, 38, 0.08);
  --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 106, 0.18),
                     0 8px 28px -4px rgba(212, 175, 106, 0.34),
                     0 18px 48px -10px rgba(193, 122, 90, 0.20);
  --shadow-forest-glow: 0 0 0 1px rgba(122, 158, 135, 0.16),
                       0 8px 28px -4px rgba(122, 158, 135, 0.30),
                       0 18px 48px -10px rgba(92, 126, 105, 0.20);
  --grain-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.27 0 0 0 0 0.20 0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Anti-overflow horizontal ---------- */
html, body { overflow-x: hidden; }
.nav-links { max-width: 100vw; }

/* ---------- Grain subtil global ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain-svg);
  opacity: 0.08;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ---------- HERO : profondeur cinématographique ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  opacity: 0.95 !important;
  filter: saturate(1.08) contrast(1.02) brightness(0.95) !important;
  transform: scale(1.04);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.055) translate3d(0, -4px, 0); }
}
/* Voile chaud pour fusion image + couleurs */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(212, 175, 106, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 88%, rgba(193, 122, 90, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 82%, rgba(139, 123, 160, 0.14) 0%, transparent 50%);
  mix-blend-mode: screen;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 3; }

/* Particules de lumière flottantes */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(245, 240, 232, 0.55) 0, transparent 1.2px),
    radial-gradient(circle at 82% 18%, rgba(245, 240, 232, 0.45) 0, transparent 1.4px),
    radial-gradient(circle at 38% 72%, rgba(212, 175, 106, 0.55) 0, transparent 1.4px),
    radial-gradient(circle at 68% 64%, rgba(245, 240, 232, 0.5) 0, transparent 1.2px),
    radial-gradient(circle at 22% 52%, rgba(212, 175, 106, 0.4) 0, transparent 1px),
    radial-gradient(circle at 94% 46%, rgba(245, 240, 232, 0.5) 0, transparent 1.3px);
  z-index: 2;
  animation: particles-drift 24s ease-in-out infinite alternate;
}
@keyframes particles-drift {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.85; }
  50%  { opacity: 1; }
  100% { transform: translate3d(-8px, -14px, 0); opacity: 0.7; }
}

/* Titre hero — gradient lumineux subtil */
.hero h1 {
  position: relative;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
}
.hero h1 em {
  /* meme couleur que le reste du h1 (demande Maha 2026-05-19) */
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: inherit !important;
  filter: none;
}

/* ---------- BOUTONS PREMIUM ---------- */
.btn {
  position: relative;
  overflow: hidden;
  padding: 16px 36px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: transform 600ms var(--ease-luxe),
              box-shadow 600ms var(--ease-luxe),
              background 500ms var(--ease-luxe),
              color 400ms var(--ease-luxe) !important;
  isolation: isolate;
}
/* Effet shimmer (bande de lumière qui traverse) */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left 900ms var(--ease-luxe);
  z-index: 1;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn > * { position: relative; z-index: 2; }

/* Primaire — vert forêt avec lueur dorée au hover */
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, #8FB29A 0%, #7A9E87 45%, #5C7E69 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 8px 24px -4px rgba(122, 158, 135, 0.42),
    0 2px 6px rgba(58, 46, 38, 0.10) !important;
}
.btn-gold:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #D4AF6A 0%, #C17A5A 55%, #A05E40 100%) !important;
  transform: translateY(-3px) scale(1.025) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 14px 36px -6px rgba(193, 122, 90, 0.55),
    0 6px 16px -4px rgba(212, 175, 106, 0.40),
    0 0 0 1px rgba(212, 175, 106, 0.45) !important;
}

/* Outline — bord doré, fond cristal */
.btn-outline {
  background: linear-gradient(135deg, rgba(245, 240, 232, 0.06), rgba(245, 240, 232, 0.02)) !important;
  border: 1.5px solid rgba(212, 175, 106, 0.65) !important;
  color: var(--lumiere-doree) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(245, 240, 232, 0.10),
    0 6px 18px -6px rgba(0, 0, 0, 0.30) !important;
}
.btn-outline:hover {
  background: linear-gradient(135deg, #D4AF6A 0%, #EFD9A8 100%) !important;
  color: #2E2620 !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.025) !important;
  box-shadow:
    0 14px 36px -6px rgba(212, 175, 106, 0.55),
    0 0 0 1px rgba(212, 175, 106, 0.65) !important;
}

/* CTA boutons formulaires (Premier souffle, contact) */
.tirage-form button[type="submit"],
.contact-form button[type="submit"],
button.btn-gold,
button.btn-primary {
  letter-spacing: 0.14em;
}

/* ---------- CARTES : reliefs multi-shadows ---------- */
.souffle-card,
.soin-card,
.promesse-card,
.temoignage-card,
.ecrit-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(245, 240, 232, 0.20) 100%),
    var(--souffle-ivoire) !important;
  border: 1px solid rgba(212, 175, 106, 0.18) !important;
  box-shadow: var(--shadow-soft-2), var(--shadow-soft-1) !important;
  transition: transform 600ms var(--ease-luxe),
              box-shadow 600ms var(--ease-luxe),
              border-color 500ms var(--ease-luxe) !important;
  isolation: isolate;
}
/* Liseré gradient haut */
.souffle-card::after,
.soin-card::after,
.promesse-card::after,
.ecrit-card::after {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.55), transparent);
  pointer-events: none;
}
.souffle-card:hover,
.soin-card:hover,
.promesse-card:hover,
.temoignage-card:hover,
.ecrit-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(212, 175, 106, 0.42) !important;
  box-shadow: var(--shadow-deep) !important;
}

/* Carte signature — premium absolu */
.soin-card.signature {
  background:
    linear-gradient(140deg, rgba(212, 175, 106, 0.12) 0%, rgba(245, 240, 232, 0.50) 50%, rgba(193, 122, 90, 0.08) 100%),
    var(--souffle-ivoire) !important;
  border: 1.5px solid rgba(212, 175, 106, 0.50) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    var(--shadow-gold-glow) !important;
}
.soin-card.signature::before {
  background: linear-gradient(135deg, var(--lumiere-doree), var(--terre-sacree)) !important;
  box-shadow: 0 4px 14px -2px rgba(212, 175, 106, 0.55) !important;
}
.soin-card.signature:hover {
  transform: translateY(-10px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    0 24px 60px -10px rgba(212, 175, 106, 0.45),
    0 12px 30px -6px rgba(193, 122, 90, 0.28),
    0 0 0 1.5px rgba(212, 175, 106, 0.65) !important;
}

/* Roman numerals souffles — relief doré */
.souffle-card .souffle-roman {
  background: linear-gradient(135deg, #D4AF6A 0%, #C17A5A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(193, 122, 90, 0.25));
  text-shadow: none;
}

/* Icônes soins — pastille dorée délicate */
.soin-card .soin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(212, 175, 106, 0.18), rgba(245, 240, 232, 0.50));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    inset 0 -1px 0 rgba(193, 122, 90, 0.10),
    0 4px 12px -2px rgba(212, 175, 106, 0.22);
  color: var(--terre-sacree-dark);
}

/* Symbole promesses */
.promesse-card .promesse-symbol {
  background: linear-gradient(135deg, var(--lumiere-doree), var(--terre-sacree));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 106, 0.30));
}

/* ---------- TITRES DE SECTION : gradient subtil + ornement ---------- */
.section-title em {
  background: linear-gradient(135deg, var(--terre-sacree) 0%, var(--lumiere-doree) 50%, var(--terre-sacree-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(193, 122, 90, 0.18));
}
/* Wrapper qui contient le ::before / ::after sans déborder */
.section-eyebrow {
  position: relative;
  display: block;
  text-align: center;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: clamp(20px, 6vw, 60px);
  height: 1px;
  margin: 0 14px 4px;
  background: linear-gradient(90deg, transparent, var(--lumiere-doree));
}
.section-eyebrow::after {
  background: linear-gradient(90deg, var(--lumiere-doree), transparent);
}

/* ---------- CITATION : drop cap + relief ---------- */
.quote-section {
  position: relative;
}
.quote-section::before,
.quote-section::after {
  content: "❋";
  font-size: 24px;
  color: var(--lumiere-doree);
  opacity: 0.65;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 106, 0.32));
  animation: ornament-float 7s ease-in-out infinite alternate;
}
.quote-section::after { animation-delay: -3.5s; }
@keyframes ornament-float {
  0%   { transform: translateX(-50%) translateY(0) rotate(0deg); opacity: 0.55; }
  100% { transform: translateX(-50%) translateY(-8px) rotate(8deg); opacity: 0.85; }
}

/* ---------- TIRAGE / PREMIER SOUFFLE — fond profond avec étoiles ---------- */
.tirage-section {
  position: relative;
  overflow: hidden;
}
.tirage-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(212, 175, 106, 0.45) 0, transparent 1.4px),
    radial-gradient(circle at 78% 38%, rgba(245, 240, 232, 0.35) 0, transparent 1.2px),
    radial-gradient(circle at 42% 78%, rgba(212, 175, 106, 0.40) 0, transparent 1.3px),
    radial-gradient(circle at 88% 82%, rgba(245, 240, 232, 0.40) 0, transparent 1.2px);
  opacity: 0.6;
  animation: particles-drift 30s ease-in-out infinite alternate;
}
.tirage-section > * { position: relative; z-index: 1; }

/* Formulaire premium */
.tirage-form input,
.tirage-form select,
.tirage-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(245, 240, 232, 0.06) !important;
  border: 1px solid rgba(212, 175, 106, 0.30) !important;
  color: var(--souffle-ivoire) !important;
  transition: all 400ms var(--ease-luxe);
  backdrop-filter: blur(4px);
}
.tirage-form input:focus,
.tirage-form select:focus,
.tirage-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--lumiere-doree) !important;
  background: rgba(245, 240, 232, 0.10) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.18), 0 8px 20px -4px rgba(0, 0, 0, 0.30) !important;
  outline: none !important;
}

/* ---------- ÉCRITS DU VIVANT : cartes manuscrites ---------- */
.ecrit-card {
  position: relative;
}
.ecrit-card::before {
  content: "❋";
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 14px;
  color: var(--lumiere-doree);
  opacity: 0.45;
  transition: all 600ms var(--ease-luxe);
}
.ecrit-card:hover::before {
  opacity: 0.85;
  transform: rotate(45deg) scale(1.15);
}

/* ---------- TÉMOIGNAGES : guillemets typo + relief ---------- */
.temoignage-card {
  position: relative;
}
.temoignage-card::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 90px;
  line-height: 1;
  color: var(--lumiere-doree);
  opacity: 0.20;
  pointer-events: none;
}

/* ---------- FAQ : items premium ---------- */
.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.40), rgba(245, 240, 232, 0.18)) !important;
  border: 1px solid rgba(212, 175, 106, 0.18) !important;
  box-shadow: var(--shadow-soft-2) !important;
  transition: all 500ms var(--ease-luxe);
}
.faq-item:hover {
  border-color: rgba(212, 175, 106, 0.42) !important;
  box-shadow: var(--shadow-soft-3) !important;
}
.faq-item[open] {
  border-color: rgba(122, 158, 135, 0.45) !important;
  box-shadow:
    inset 3px 0 0 var(--foret-profonde),
    var(--shadow-soft-3) !important;
}

/* ---------- CONTACT : carte premium sombre ---------- */
.contact {
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 106, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(122, 158, 135, 0.12) 0%, transparent 50%);
}
.contact > * { position: relative; z-index: 1; }

/* ---------- FOOTER : finitions ---------- */
.footer-col a {
  position: relative;
  transition: color 400ms var(--ease-luxe);
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--lumiere-doree);
  transition: width 400ms var(--ease-luxe);
}
.footer-col a:hover::after { width: 100%; }

/* ---------- ANIMATIONS d'entrée raffinées ---------- */
@keyframes luxe-rise {
  0%   { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.js .fade-in.visible {
  animation: luxe-rise 1000ms var(--ease-luxe) both;
}

/* ---------- NAV : translucide premium ---------- */
.nav {
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.nav-link {
  position: relative;
  transition: color 400ms var(--ease-luxe);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--terre-sacree), var(--lumiere-doree));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 500ms var(--ease-luxe);
}
.nav-link:hover::after,
.nav-link.active::after { width: 70%; }

/* ---------- Marquee : touche dorée ---------- */
.marquee {
  background: linear-gradient(90deg, #3a2e26 0%, #4a3a30 50%, #3a2e26 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(212, 175, 106, 0.20);
}

/* ---------- Scroll cue : pulsation premium ---------- */
.scroll-cue {
  filter: drop-shadow(0 2px 8px rgba(212, 175, 106, 0.40));
  animation: cue-pulse 2.6s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ---------- Sélection texte personnalisée ---------- */
::selection {
  background: rgba(212, 175, 106, 0.35);
  color: var(--texte-principal);
}

/* ---------- Scroll-bar discrète ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--souffle-ivoire-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lumiere-doree), var(--terre-sacree));
  border-radius: 10px;
  border: 2px solid var(--souffle-ivoire-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--terre-sacree), var(--terre-sacree-dark));
}

/* ---------- Responsive : alléger les effets coûteux sur mobile ---------- */
@media (max-width: 768px) {
  body::before { display: none; } /* moins de grain mobile */
  .hero-bg-img { animation: none; transform: none; }
  .hero::before { animation: none; }
  .tirage-section::after { animation: none; }

  /* Footer bas : passage en colonne, footer-legal centré et lisible */
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-bottom .footer-legal {
    justify-content: center;
    gap: 14px 18px;
    row-gap: 10px;
  }
  .footer-bottom .footer-legal a {
    white-space: nowrap;
  }
  /* Espace anti-chevauchement avec le bouton flottant TES RETOURS */
  .footer-bottom { padding-bottom: 64px; }
  .admin-fab { bottom: 14px; left: 14px; right: auto; padding: 8px 14px; font-size: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====================================================== */
/* GALERIE — Emilie en présence                            */
/* ====================================================== */
.galerie-section {
  padding: 110px 0 120px;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(212, 175, 106, .12), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(122, 158, 135, .10), transparent 60%),
    linear-gradient(180deg, var(--souffle-ivoire) 0%, var(--souffle-ivoire-deep) 100%);
  position: relative;
  overflow: hidden;
}
.galerie-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 106, .06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 82%, rgba(193, 122, 90, .05) 0 1px, transparent 1.5px);
  background-size: 280px 280px, 360px 360px;
  pointer-events: none;
  opacity: .7;
}
.galerie-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.galerie-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 18px 38px -22px rgba(80, 50, 30, .35),
    0 6px 14px -10px rgba(80, 50, 30, .25);
  background: var(--souffle-ivoire);
  transition: transform .65s cubic-bezier(.22,.9,.28,1.2), box-shadow .55s ease;
  cursor: zoom-in;
}
.galerie-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 106, .0);
  box-shadow: 0 0 0 0 rgba(212, 175, 106, 0);
  transition: border-color .45s ease, box-shadow .55s ease;
  pointer-events: none;
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(1) contrast(1);
}
.galerie-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .65) inset,
    0 28px 50px -22px rgba(80, 50, 30, .45),
    0 10px 22px -12px rgba(212, 175, 106, .35);
}
.galerie-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}
.galerie-item:hover::after {
  border-color: rgba(212, 175, 106, .55);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, .15);
}
.galerie-item.span-2 { grid-column: span 2; }
.galerie-item.tall   { grid-row: span 2; }

/* Lightbox simple */
.galerie-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 12, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 2000;
}
.galerie-lightbox.is-open { opacity: 1; pointer-events: auto; }
.galerie-lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 106, .25);
  transform: scale(1.02);
  filter: blur(8px);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2,.9,.3,1), filter .55s ease-out, opacity .5s ease-out;
}
.galerie-lightbox.is-open img { transform: scale(1); filter: blur(0); opacity: 1; }
.galerie-lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, .55);
  background: rgba(245, 240, 232, .12);
  color: var(--souffle-ivoire);
  font-size: 22px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.galerie-lightbox-close:hover { background: rgba(245, 240, 232, .22); transform: rotate(90deg); }

@media (max-width: 980px) {
  .galerie-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
  }
}
@media (max-width: 720px) {
  .galerie-section { padding: 80px 0 90px; }
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 12px;
  }
  .galerie-item.span-2 { grid-column: span 2; }
  .galerie-item.tall { grid-row: span 1; }
  .galerie-lightbox-close { top: 14px; right: 14px; }
}

/* ====================================================== */
/* HERO FULL-BLEED — Photo immersive d'Emilie              */
/* ====================================================== */
.hero {
  min-height: 100vh;
}
.hero-bg-img {
  background-position: center center;
}
/* Vignette : scrim chaud dégradé bottom→top pour lisibilité texte */
.hero-vignette {
  background:
    linear-gradient(180deg,
      rgba(26, 20, 16, 0.18) 0%,
      rgba(26, 20, 16, 0.10) 35%,
      rgba(26, 20, 16, 0.55) 80%,
      rgba(26, 20, 16, 0.78) 100%
    ),
    radial-gradient(ellipse at 50% 65%, rgba(26, 20, 16, 0.45) 0%, transparent 60%) !important;
}
/* Renforcement lisibilité texte hero */
.hero h1 {
  text-shadow:
    0 2px 8px rgba(26, 20, 16, 0.55),
    0 6px 30px rgba(26, 20, 16, 0.35);
}
.hero-eyebrow {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.70),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 4px 18px rgba(26, 20, 16, 0.55),
    0 8px 32px rgba(26, 20, 16, 0.40),
    0 0 24px rgba(0, 0, 0, 0.30);
}
.hero-tagline,
.hero-words {
  text-shadow: 0 2px 10px rgba(26, 20, 16, 0.65);
}
.hero-cta .btn {
  box-shadow:
    0 12px 30px -10px rgba(26, 20, 16, 0.55),
    0 2px 6px rgba(26, 20, 16, 0.25);
}
.scroll-cue {
  text-shadow: 0 2px 8px rgba(26, 20, 16, 0.6);
}

/* Mobile : ajuster le focus de la photo (souvent portraits → centrer le visage) */
@media (max-width: 720px) {
  .hero-bg-img {
    background-position: center center;
  }
  .hero-vignette {
    background:
      linear-gradient(180deg,
        rgba(26, 20, 16, 0.22) 0%,
        rgba(26, 20, 16, 0.18) 30%,
        rgba(26, 20, 16, 0.65) 75%,
        rgba(26, 20, 16, 0.85) 100%
      ) !important;
  }
}

/* ====================================================== */
/* GRAIN PAPIER — texture bruit subtile (papier vergé)     */
/* ====================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
/* Désactivé en mobile (perf + déjà moins visible sur petit écran) */
@media (max-width: 720px) {
  body::before { display: none; }
}

/* ====================================================== */
/* RUPTURE DE RYTHME — Citation rituelle pleine page       */
/* ====================================================== */
.ritual-break {
  position: relative;
  padding: 140px 24px 150px;
  background: var(--souffle-ivoire);
  text-align: center;
  overflow: hidden;
}
.ritual-break::before,
.ritual-break::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--lumiere-doree) 50%, transparent);
  opacity: .55;
}
.ritual-break::before { top: 40px; }
.ritual-break::after  { bottom: 40px; }
.ritual-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--lumiere-doree);
  margin: 0 auto 28px;
  letter-spacing: .04em;
  opacity: .8;
  animation: ritual-pulse 6s ease-in-out infinite;
}
@keyframes ritual-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .95; transform: scale(1.08); }
}
.ritual-quote {
  font-family: 'Caveat', 'Cormorant Garamond', cursive;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.25;
  color: var(--terre-sacree);
  font-weight: 500;
  max-width: 880px;
  margin: 0 auto 22px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.ritual-signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: .35em;
  color: var(--foret-profonde);
  text-transform: uppercase;
  opacity: .75;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .ritual-break { padding: 90px 22px 100px; }
  .ritual-quote { font-size: clamp(28px, 7vw, 42px); }
}

/* ====================================================== */
/* EASTER EGG — Silence rituel (clic long sur ❋)           */
/* ====================================================== */
.silence-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1a120c 0%, #050302 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease;
}
.silence-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.silence-star {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 14vw, 180px);
  color: var(--lumiere-doree);
  text-shadow:
    0 0 30px rgba(212, 175, 106, .8),
    0 0 80px rgba(212, 175, 106, .5),
    0 0 140px rgba(212, 175, 106, .3);
  animation: silence-breathe 6s ease-in-out infinite;
}
@keyframes silence-breathe {
  0%, 100% { opacity: .65; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.12) rotate(45deg); }
}
.silence-text {
  margin-top: 50px;
  font-family: 'Caveat', cursive;
  font-size: clamp(20px, 2.5vw, 28px);
  color: rgba(245, 240, 232, .75);
  letter-spacing: .04em;
  opacity: 0;
  animation: silence-fadein 4s ease 2s forwards;
}
@keyframes silence-fadein {
  to { opacity: 1; }
}
.silence-countdown {
  position: absolute;
  bottom: 40px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: .25em;
  color: rgba(245, 240, 232, .35);
  text-transform: uppercase;
}
.silence-hint {
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(245, 240, 232, .4);
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 16px;
  border: 1px solid rgba(212, 175, 106, .25);
  border-radius: 30px;
  transition: color .3s ease, border-color .3s ease;
}
.silence-hint:hover {
  color: rgba(245, 240, 232, .8);
  border-color: rgba(212, 175, 106, .55);
}

/* Indicateur de pression long sur ❋ */
.brand-emilie {
  position: relative;
  cursor: pointer;
}
.brand-emilie::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--lumiere-doree);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.brand-emilie.is-pressing::after {
  opacity: 1;
  transform: scale(1);
  animation: brand-fill 1.4s linear forwards;
}
@keyframes brand-fill {
  from { clip-path: polygon(50% 50%, 50% 0%, 50% 0%); }
  to   { clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%); }
}

/* ====================================================== */
/* MICRO-TYPOGRAPHIE — finesse Cormorant Garamond          */
/* ====================================================== */
html {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hero h1,
.section-title,
.about-quote,
.ritual-quote,
.footer-brand h3,
.footer-coda-quote {
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "calt" 1, "swsh" 1, "salt" 1;
  font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
}
/* Petites capitales vraies pour eyebrows & sections-eyebrow */
.section-eyebrow,
.hero-eyebrow,
.nav-tag,
.footer-coda-sign,
.ritual-signature {
  font-feature-settings: "smcp" 1, "kern" 1;
  font-variant-caps: small-caps;
  letter-spacing: .22em;
}
/* Chiffres tabulaires pour dates / numéros */
.footer-bottom,
.num,
.testi-author small,
.audio-temoin time {
  font-feature-settings: "tnum" 1, "kern" 1;
  font-variant-numeric: tabular-nums;
}
/* Italiques élégantes : pas d'oblique forcée */
em, i {
  font-style: italic;
  font-feature-settings: "kern" 1, "liga" 1, "salt" 1;
}

/* ====================================================== */
/* CURSEUR DORÉ — survol galerie                           */
/* ====================================================== */
.galerie-grid {
  cursor: none;
}
.dot-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lumiere-doree) 0%, rgba(212,175,106,.7) 50%, transparent 75%);
  box-shadow: 0 0 24px rgba(212,175,106,.55), 0 0 56px rgba(212,175,106,.25);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.9,.3,1.3);
  mix-blend-mode: screen;
}
.dot-cursor.is-visible { opacity: 1; transform: scale(1); }
.dot-cursor.is-hover    { transform: scale(2.2); opacity: .85; }
@media (hover: none), (max-width: 720px) {
  .galerie-grid { cursor: zoom-in; }
  .dot-cursor { display: none !important; }
}

/* ====================================================== */
/* FOOTER CODA — Signature graphique de fin                */
/* ====================================================== */
.footer-coda {
  position: relative;
  margin: 70px auto 20px;
  padding: 50px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 106, .18);
}
.footer-coda::before {
  content: "❋";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(180px, 22vw, 280px);
  color: var(--lumiere-doree);
  opacity: .055;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}
.footer-coda-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--lumiere-doree);
  opacity: .85;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.footer-coda-quote {
  font-family: 'Caveat', cursive;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
  color: var(--souffle-ivoire);
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}
.footer-coda-sign {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--lumiere-doree);
  opacity: .7;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .footer-coda { margin-top: 50px; padding: 38px 0 18px; }
}

/* ============================================================
   TEXTURES VIVANTES — intégration subtile (v=012)
   ============================================================ */

/* Footer — nimbe végétal mystique (fittonia) */
footer { position: relative; isolation: isolate; overflow: hidden; }
footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/textures/texture-fittonia.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
footer > * { position: relative; z-index: 1; }

/* Ritual break — nervures organiques (veins) */
.ritual-break { position: relative; isolation: isolate; }
.ritual-break::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/textures/texture-veins.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.09;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* Promesses — mur végétal sombre en accent diagonal */
.promesses { position: relative; isolation: isolate; }
.promesses::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/textures/texture-mur-vegetal.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* Mobile — réduire intensité pour ne pas charger */
@media (max-width: 720px) {
  footer::before { opacity: 0.045; }
  .ritual-break::before { opacity: 0.06; }
  .promesses::after { opacity: 0.045; }
}

/* ============================================================
   VAGUE 12/10 — micro-typo + scroll progress + fade + sceau
   ============================================================ */

html { font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1, 'calt' 1; }
.hero h1, h2, h3, .pull-quote, .testimonial-quote, blockquote { font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1, 'onum' 1; }
.hero h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Scroll progress bar */
.scroll-progress-idx {
  position: fixed; top: 0; left: 0;
  height: 2px;
  width: var(--scroll-pct, 0%);
  background: linear-gradient(90deg, var(--lumiere-doree, #D4AF6A), var(--terre-sacree, #C17A5A));
  z-index: 9999;
  opacity: 0.5;
  pointer-events: none;
  transition: width 80ms linear;
}

/* Fade-in au scroll */
.fade-rev {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.fade-rev.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-rev { opacity: 1; transform: none; transition: none; }
}

/* Sceau signature filigrane bas page */
.page-seal {
  display: block;
  margin: 0 auto;
  width: 70px;
  height: auto;
  opacity: 0.12;
  margin-top: 28px;
  pointer-events: none;
}

/* Triple-clic Yantra overlay */
.yantra-overlay {
  position: fixed; inset: 0;
  display: none;
  z-index: 9990;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(212, 175, 106, 0.22) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.yantra-overlay.is-on { display: block; opacity: 1; }
.yantra-overlay svg {
  position: absolute; top: 50%; left: 50%;
  width: min(70vmin, 540px);
  height: min(70vmin, 540px);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: yantra-rotate 26s linear infinite;
}
@keyframes yantra-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus rings dorés */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lumiere-doree, #D4AF6A);
  outline-offset: 3px;
  border-radius: 3px;
}
