:root {
  --color-background: #0d0a1f;
  --color-surface: #1a1530;
  --color-text: #e8e3d8;
  --color-primary: #d4af37;
  --color-accent: #8b6f47;
}

/* Reset léger (Webflow-friendly) */
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  background: var(--color-background);
  color: var(--color-text);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
}

/* Typo */
.font-cormorant {
  font-family: "Cormorant Garamond", Georgia, serif;
}
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.seal-decoration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
}

.nav-glass {
  background: rgba(10, 5, 3, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(218, 165, 32, 0.1);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-gold {
  background: linear-gradient(135deg, #daa520 0%, #b8860b 50%, #cd853f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
}
.section {
  padding: 80px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
    ellipse at top,
    rgba(212, 175, 55, 0.15) 0%,
    transparent 60%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.mystical-number {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent),
    var(--color-primary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
  margin: 0 0 24px;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: rgba(232, 227, 216, 0.85);
}

/* Ornement */
.ornament {
  position: relative;
  width: 120px;
  height: 24px;
  margin: 3rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ornament::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  animation: shimmer-ornament 3s infinite;
}

.ornament::after {
  content: "◆";
  position: relative;
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-background);
  padding: 0 1rem;
  z-index: 1;
  text-shadow: 0 0 20px var(--color-primary);
}

/* Particules */
.floating-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite;
}

/* Cartes */
.card {
  background: linear-gradient(
    135deg,
    rgba(26, 21, 48, 0.6) 0%,
    rgba(13, 10, 31, 0.4) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.1);
}

@media (min-width: 768px) {
  .card {
    padding: 48px;
    border-radius: 32px;
  }
}

/* Lecture */
.reading-text {
  font-size: 1.25rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .reading-text {
    font-size: 1.375rem;
    line-height: 2;
  }
}
@media (max-width: 768px) {
  .reading-text {
    font-size: 1.125rem;
  }
}

.reading-heading {
  margin-left: auto;
  margin-right: auto;
}

.drop-cap::first-letter {
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.15em 0 0;
  color: var(--color-primary);
  font-weight: 700;
}

.quote-box {
  border-left: 4px solid var(--color-primary);
  padding: 2rem 2rem 2rem 3rem;
  margin: 2.5rem auto;
  max-width: 70ch;
  transition: all 0.3s ease;
  position: relative;
}

.quote-box::before {
  content: "❝";
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.quote-box:hover {
  border-left-width: 6px;
  padding-left: 3.5rem;
  transform: translateX(10px);
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 100%
  );
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

/* Listes avec barre */
.bar-list {
  max-width: 70ch;
  margin: 32px auto;
  padding-left: 24px;
  border-left: 4px solid var(--color-primary);
}
.bar-list p {
  margin: 0 0 16px;
}

/* Navigation latérale */
.nav-menu {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(26, 21, 48, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  padding: 1.5rem 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}
.nav-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  margin: 1rem auto;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  border: none;
  display: block;
}
.nav-dot:hover {
  background: var(--color-primary);
  transform: scale(1.3);
}
.nav-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary);
}

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 21, 48, 0.95);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.nav-dot:hover::after {
  opacity: 1;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(26, 21, 48, 0.5);
  z-index: 9999;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--color-primary);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

/* Menu mobile */
.menu-toggle {
  width: 50px;
  height: 50px;
  background: rgba(26, 21, 48, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.menu-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .nav-menu {
    right: 1rem;
    padding: 1rem 0.75rem;
    display: none;
  }
  .nav-menu.mobile-open {
    display: block;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-dot::after {
    display: none;
  }
  .drop-cap::first-letter {
    font-size: 3.5em;
  }
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Card Hover */
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.1);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--color-primary);
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 20px 50px;
  margin: 0 auto;
  font-family: Orbitron, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0a0e27;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cta-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}
.cta-button:hover:before {
  left: 100%;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.6);
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  text-align: center;
}
.footer-note {
  color: rgba(232, 227, 216, 0.5);
  font-size: 0.9rem;
}

.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .social-container {
    gap: 1.5rem;
  }
}

.social-icon {
  width: 2rem;
  height: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-container a:hover .social-icon {
  transform: scale(1.2);
  opacity: 0.8;
}

.section-ornament {
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #daa520 50%,
    transparent 100%
  );
  margin: 0 auto;
  position: relative;
}

.section-ornament::before,
.section-ornament::after {
  content: "◆";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #daa520;
  font-size: 8px;
}

.section-ornament::before {
  left: -15px;
}

.section-ornament::after {
  right: -15px;
}

.developer {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(100px, -100px) scale(1.5);
    opacity: 0.6;
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}
@keyframes shimmer-ornament {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out both;
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}

/* Accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
