/* ============ ELFE STUDIO · main.css ============ */
/* Studio de cinéma IA · Et Lux Facta Est */

:root {
  --bg: #0a0a0e;
  --bg-2: #11111a;
  --bg-3: #181821;
  --surface: #1e1e2a;
  --surface-2: #25252f;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f0eee6;
  --text-dim: #a8a8a8;
  --text-faint: #6e6e6e;
  --gold: #c9a86a;
  --gold-light: #e6cf94;
  --gold-soft: rgba(201, 168, 106, 0.14);

  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-italic: 'Cormorant Garamond', Georgia, serif;

  --container: 1200px;
  --container-narrow: 780px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 220ms var(--ease); }

img, video { max-width: 100%; display: block; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ============ Layout helpers ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: var(--container-narrow); }
.center { text-align: center; }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: all 280ms var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
}
.nav-mark {
  width: 34px; height: 34px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold), #8a6b3a);
  color: #1a1208;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
}
.nav-textblock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2.2px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: none;
  white-space: nowrap;
}
.nav-tagline {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  font-weight: 400;
  white-space: nowrap;
  text-transform: lowercase;
  transition: color 220ms var(--ease);
}
.nav-elfe-init {
  color: var(--gold);
  font-weight: 600;
}
.nav-brand:hover .nav-name { color: var(--text); }
.nav-brand:hover .nav-elfe-init { color: var(--gold-light); }
.nav-brand:hover .nav-tagline { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.6px;
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold) !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 11.5px !important;
  transition: all 220ms var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  color: #1a1208 !important;
}
.nav-burger {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: var(--text);
  transition: all 220ms var(--ease);
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-burger span:nth-child(3) { bottom: 0; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(201, 168, 106, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(201, 168, 106, 0.04) 0%, transparent 50%),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.18), transparent 50%),
    radial-gradient(1px 1px at 50% 60%, rgba(201, 168, 106, 0.22), transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255, 255, 255, 0.14), transparent 50%),
    radial-gradient(1px 1px at 30% 80%, rgba(201, 168, 106, 0.2), transparent 50%),
    radial-gradient(1px 1px at 70% 75%, rgba(255, 255, 255, 0.1), transparent 50%);
  background-size: 600px 600px;
  animation: float-particles 80s linear infinite;
  opacity: 0.5;
}
@keyframes float-particles {
  from { transform: translate(0, 0); }
  to { transform: translate(-200px, -100px); }
}
.hero-letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  background: #000;
  z-index: 5;
  pointer-events: none;
}
.hero-letterbox.top { top: 0; }
.hero-letterbox.bottom { bottom: 0; }
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
}
.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up 1100ms 200ms var(--ease) forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: clamp(2px, 0.5vw, 8px);
  line-height: 1;
  color: var(--text);
  margin-bottom: 30px;
  opacity: 0;
  animation: fade-up 1400ms 500ms var(--ease) forwards;
}
.hero-sub-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--gold-light);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  opacity: 0;
  animation: fade-up 1200ms 1100ms var(--ease) forwards;
}
.hero-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fade-up 1200ms 1500ms var(--ease) forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  opacity: 0;
  animation: fade-up 1000ms 2000ms var(--ease) forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 12px;
  background: var(--gold);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(38px); opacity: 0; }
}
.hero-scroll-label {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============ Sections ============ */
.section {
  padding: 140px 0;
  position: relative;
}
.section.dark {
  background: var(--bg-2);
}
.section-head {
  margin-bottom: 70px;
}
.section-head.center { text-align: center; }
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
  font-weight: 500;
}
.section-eyebrow.gold {
  color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.section-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: -0.5px;
}
.section-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 22px;
  font-weight: 300;
}
.section-lead strong {
  color: var(--text);
  font-weight: 500;
}
.section-lead strong.accent {
  color: var(--gold);
}
.section-intro {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 620px;
}
.section-head.center .section-intro { margin: 0 auto; }

/* ============ Vision ============ */
.section.vision { padding-top: 180px; }

/* ============ Services Grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 40px 32px 44px;
  transition: background 280ms var(--ease);
  position: relative;
}
.service-card:hover {
  background: var(--bg-3);
}
.service-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 22px;
}
.service-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 300;
}

/* ============ ELFE.app section ============ */
.elfe-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.elfe-app-text .section-title { margin-bottom: 32px; }
.elfe-app-visual {
  display: flex;
  justify-content: center;
}
.elfe-app-frame {
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 106, 0.06);
}
.elfe-app-frame-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
  background: var(--bg-2);
}
.elfe-app-frame-bar .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.elfe-app-frame-content {
  padding: 32px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.elfe-app-frame-image {
  display: block;
  width: 100%;
  line-height: 0;
  background: var(--bg);
  position: relative;
}
.elfe-app-frame-image img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.elfe-app-frame:has(.elfe-app-frame-image) .elfe-app-frame-caption {
  padding: 14px 16px 16px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.elfe-app-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.mini-cell {
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.mini-cell.active {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.mini-cell.pulse {
  border-color: var(--gold);
  animation: cell-pulse 2.4s ease-in-out infinite;
}
@keyframes cell-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(201, 168, 106, 0); }
}
.elfe-app-frame-caption {
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
}

/* ============ Buttons ============ */
.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.cta-row.center {
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 280ms var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary.gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary.gold:hover {
  background: var(--gold-light);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text-dim);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============ Portfolio ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-tile {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 280ms var(--ease);
}
.portfolio-tile::after {
  content: 'à venir';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.portfolio-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Tuile portfolio remplie par une vraie image générée */
.portfolio-tile.filled {
  background: #000;
}
.portfolio-tile.filled::after {
  content: none;
}
.portfolio-tile.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
  filter: saturate(0.92) contrast(1.04);
}
.portfolio-tile.filled:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.08);
}

/* ============ Tools / Sisters ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 280ms var(--ease);
  display: block;
}
.tool-card:hover {
  border-color: var(--gold);
  background: var(--bg-3);
  transform: translateY(-2px);
}
.tool-card.disabled {
  opacity: 0.7;
  cursor: default;
}
.tool-card.disabled:hover {
  border-color: var(--border);
  transform: none;
}
.tool-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.tool-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 18px;
}
.tool-link {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ Contact ============ */
.contact-block {
  margin: 48px 0 32px;
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--gold);
  letter-spacing: 1px;
  transition: color 220ms var(--ease);
  display: inline-block;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.contact-email:hover {
  border-bottom-color: var(--gold);
}
.contact-meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-mark {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), #8a6b3a);
  color: #1a1208;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 4px;
}
.footer-tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 300;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}
.footer-latin {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav { padding: 18px 28px; }
  .nav.scrolled { padding: 12px 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .elfe-app-grid { grid-template-columns: 1fr; gap: 50px; }
  .portfolio-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 50px; }
  .footer-cols { gap: 30px; }
}

@media (max-width: 720px) {
  .nav { padding: 16px 22px; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    transform: translateY(-110%);
    transition: transform 320ms var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: block; }
  .nav-textblock { display: none; } /* mobile : on garde juste le mark E */
  .hero-letterbox { height: 48px; }
  .section { padding: 80px 0; }
  .section.vision { padding-top: 100px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .tools-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 18px; text-align: center; }
}

/* ============ Hero cinema animations ============ */

/* Aurora dorée — deux couches qui pulsent et dérivent */
.hero-aurora {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 2;
}
.hero-aurora-1 {
  width: 110vw;
  height: 80vh;
  max-width: 1600px;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 168, 106, 0.38) 0%,
    rgba(201, 168, 106, 0.14) 30%,
    transparent 65%
  );
  filter: blur(50px);
  animation:
    hero-aurora-pulse 9s ease-in-out infinite,
    hero-aurora-drift 28s ease-in-out infinite;
}
.hero-aurora-2 {
  width: 60vw;
  height: 50vh;
  max-width: 900px;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 200, 140, 0.22) 0%,
    transparent 60%
  );
  filter: blur(70px);
  animation:
    hero-aurora-pulse 12s ease-in-out 2s infinite,
    hero-aurora-drift-2 32s ease-in-out infinite;
}
@keyframes hero-aurora-pulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes hero-aurora-drift {
  0%, 100% { translate: -50% -50%; }
  33%      { translate: -45% -55%; }
  66%      { translate: -55% -45%; }
}
@keyframes hero-aurora-drift-2 {
  0%, 100% { translate: -50% -50%; }
  50%      { translate: -42% -42%; }
}

/* Canvas particules de poussière dorée */
.hero-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* Grain pellicule animé */
.hero-grain {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  z-index: 4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: hero-grain 0.7s steps(6) infinite;
}
@keyframes hero-grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -5%); }
  30%  { transform: translate(3%, -2%); }
  50%  { transform: translate(-3%, 4%); }
  70%  { transform: translate(2%, 1%); }
  90%  { transform: translate(-1%, -3%); }
  100% { transform: translate(0, 0); }
}

/* Vignette cinéma */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

/* Glow doré qui respire sur le titre */
.hero-title {
  text-shadow:
    0 0 30px rgba(201, 168, 106, 0.12),
    0 0 60px rgba(201, 168, 106, 0.06);
  animation:
    fade-up 1400ms 500ms var(--ease) forwards,
    hero-title-glow 7s ease-in-out 2.5s infinite;
}
@keyframes hero-title-glow {
  0%, 100% {
    text-shadow:
      0 0 30px rgba(201, 168, 106, 0.12),
      0 0 60px rgba(201, 168, 106, 0.06);
  }
  50% {
    text-shadow:
      0 0 50px rgba(201, 168, 106, 0.32),
      0 0 90px rgba(201, 168, 106, 0.14);
  }
}

/* Mobile : on désactive le canvas et on adoucit l'aurora pour économiser la batterie */
@media (max-width: 720px) {
  .hero-dust { display: none; }
  .hero-aurora-1 { filter: blur(35px); }
  .hero-aurora-2 { filter: blur(50px); }
  .hero-grain { opacity: 0.07; }
}

/* ============ ELFE letter reveal ============ */
/* Cycle de 22s : 4 lettres E·L·F·E s'illuminent en séquence, puis restent
   allumées ensemble pendant ~6s avec une respiration en cascade (chaque
   lettre a son peak décalé → vague lumineuse). */
.elfe-letter {
  display: inline-block;
  position: relative;
  color: inherit;
  transform-origin: center bottom;
  will-change: color, text-shadow, transform;
  animation-duration: 22s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-delay: 4s; /* laisse la fade-up initiale finir */
}
.elfe-e1 { animation-name: elfe-glow-e1; }
.elfe-l  { animation-name: elfe-glow-l; }
.elfe-f  { animation-name: elfe-glow-f; }
.elfe-e2 { animation-name: elfe-glow-e2; }

/* E (de "Et") — solo 12-16%, groupé 53-80% (peak respiration 62%) */
@keyframes elfe-glow-e1 {
  0%, 9%, 19%, 49%, 83%, 100% {
    color: inherit;
    text-shadow: none;
    transform: scale(1);
  }
  12%, 16%, 53%, 80% {
    color: var(--gold-light);
    text-shadow:
      0 0 28px rgba(232, 200, 140, 0.7),
      0 0 54px rgba(232, 200, 140, 0.35);
    transform: scale(1.04);
  }
  62% {
    color: var(--gold-light);
    text-shadow:
      0 0 38px rgba(232, 200, 140, 0.9),
      0 0 72px rgba(232, 200, 140, 0.5);
    transform: scale(1.055);
  }
}
/* L (de "Lux") — solo 19-23%, groupé 53-80% (peak respiration 66%) */
@keyframes elfe-glow-l {
  0%, 16%, 26%, 49%, 83%, 100% {
    color: inherit;
    text-shadow: none;
    transform: scale(1);
  }
  19%, 23%, 53%, 80% {
    color: var(--gold-light);
    text-shadow:
      0 0 28px rgba(232, 200, 140, 0.7),
      0 0 54px rgba(232, 200, 140, 0.35);
    transform: scale(1.04);
  }
  66% {
    color: var(--gold-light);
    text-shadow:
      0 0 38px rgba(232, 200, 140, 0.9),
      0 0 72px rgba(232, 200, 140, 0.5);
    transform: scale(1.055);
  }
}
/* F (de "Facta") — solo 26-30%, groupé 53-80% (peak respiration 70%) */
@keyframes elfe-glow-f {
  0%, 23%, 33%, 49%, 83%, 100% {
    color: inherit;
    text-shadow: none;
    transform: scale(1);
  }
  26%, 30%, 53%, 80% {
    color: var(--gold-light);
    text-shadow:
      0 0 28px rgba(232, 200, 140, 0.7),
      0 0 54px rgba(232, 200, 140, 0.35);
    transform: scale(1.04);
  }
  70% {
    color: var(--gold-light);
    text-shadow:
      0 0 38px rgba(232, 200, 140, 0.9),
      0 0 72px rgba(232, 200, 140, 0.5);
    transform: scale(1.055);
  }
}
/* E (de "Est") — solo 33-37%, groupé 53-80% (peak respiration 74%) */
@keyframes elfe-glow-e2 {
  0%, 30%, 40%, 49%, 83%, 100% {
    color: inherit;
    text-shadow: none;
    transform: scale(1);
  }
  33%, 37%, 53%, 80% {
    color: var(--gold-light);
    text-shadow:
      0 0 28px rgba(232, 200, 140, 0.7),
      0 0 54px rgba(232, 200, 140, 0.35);
    transform: scale(1.04);
  }
  74% {
    color: var(--gold-light);
    text-shadow:
      0 0 38px rgba(232, 200, 140, 0.9),
      0 0 72px rgba(232, 200, 140, 0.5);
    transform: scale(1.055);
  }
}

/* Respecte les utilisateurs qui demandent moins d'animations */
@media (prefers-reduced-motion: reduce) {
  .hero-aurora-1, .hero-aurora-2 {
    animation: none;
    opacity: 0.5;
  }
  .hero-grain { animation: none; }
  .hero-title { animation: fade-up 1400ms 500ms var(--ease) forwards; }
  .hero-dust { display: none; }
  .elfe-letter { animation: none; }
}
