@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  --noir: #0a0806;
  --encre: #12100e;
  --parchemin: #c8a97a;
  --parchemin-clair: #e8d5a8;
  --sang: #8b1a1a;
  --sang-vif: #c0392b;
  --or: #d4a843;
  --or-clair: #f0c060;
  --brume: #1e1a16;
  --texte: #d4c4a0;
  --texte-clair: #f0e8d0;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--noir);
  color: var(--texte);
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: default;
}

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

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,8,6,0.97), transparent);
  border-bottom: 1px solid rgba(212,168,67,0.15);
}

.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--or);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(212,168,67,0.4);
  transition: text-shadow 0.3s;
}
.nav-logo:hover { text-shadow: 0 0 35px rgba(212,168,67,0.8); }

.nav-logo span {
  color: var(--sang-vif);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchemin);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--or);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--or-clair); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--or);
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(139,26,26,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(212,168,67,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 80% 20%, rgba(139,26,26,0.08) 0%, transparent 60%),
    var(--noir);
}

/* Animated candle flicker */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.07) 0%, transparent 70%);
  border-radius: 50%;
  animation: flicker 4s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  25% { opacity: 0.7; transform: translateX(-50%) scale(0.97); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.02); }
  75% { opacity: 0.75; transform: translateX(-50%) scale(0.98); }
}

.hero-ornament {
  font-size: 1.5rem;
  color: var(--or);
  letter-spacing: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  animation: fadeIn 1.5s ease forwards;
}

.hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--or);
  text-shadow:
    0 0 40px rgba(212,168,67,0.5),
    0 0 80px rgba(212,168,67,0.2),
    2px 2px 0 rgba(139,26,26,0.5);
  animation: fadeInUp 1.2s ease forwards;
  letter-spacing: 0.05em;
}

.hero h1 .mystery-red {
  color: var(--sang-vif);
  text-shadow:
    0 0 40px rgba(192,57,43,0.6),
    0 0 80px rgba(192,57,43,0.3),
    2px 2px 0 rgba(80,0,0,0.5);
}

.hero-tagline {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--parchemin);
  margin: 1.5rem auto;
  max-width: 600px;
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.4s forwards;
}

.divider-rune {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
  width: fit-content;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
}
.divider-rune::before, .divider-rune::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--or));
}
.divider-rune::after { background: linear-gradient(to left, transparent, var(--or)); }
.divider-rune span { color: var(--or); font-size: 1.2rem; }

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.8s forwards;
}

/* ─── BUTTONS ─── */
.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: var(--sang);
  color: var(--parchemin-clair);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  box-shadow: 0 0 20px rgba(139,26,26,0.4);
}
.btn-primary:hover {
  background: var(--sang-vif);
  box-shadow: 0 0 40px rgba(192,57,43,0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--or);
  border: 1px solid rgba(212,168,67,0.4);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-secondary:hover {
  border-color: var(--or);
  box-shadow: 0 0 20px rgba(212,168,67,0.2), inset 0 0 20px rgba(212,168,67,0.05);
  transform: translateY(-2px);
}

/* ─── SECTIONS ─── */
section { padding: 5rem 2rem; position: relative; }

.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--or);
  text-align: center;
  text-shadow: 0 0 20px rgba(212,168,67,0.3);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  text-align: center;
  color: var(--parchemin);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ─── HOME: INTRO ─── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text p { margin-bottom: 1.2rem; color: var(--texte); }

.intro-portrait {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame {
  width: 300px;
  height: 380px;
  background: linear-gradient(135deg, var(--brume), var(--encre));
  border: 1px solid rgba(212,168,67,0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(0,0,0,0.5);
}

.portrait-frame::before, .portrait-frame::after {
  content: '';
  position: absolute;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid rgba(212,168,67,0.15);
}

.portrait-icon {
  font-size: 8rem;
  opacity: 0.3;
  filter: sepia(1) hue-rotate(10deg);
}

.portrait-label {
  position: absolute;
  bottom: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--or);
  opacity: 0.7;
}

/* ─── HOME: SERVICES PREVIEW ─── */
.services-dark {
  background: linear-gradient(to bottom, var(--noir), var(--encre), var(--noir));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: linear-gradient(135deg, rgba(30,26,22,0.9), rgba(18,16,14,0.9));
  border: 1px solid rgba(212,168,67,0.2);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: default;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,26,26,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(212,168,67,0.5); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--or);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.card p { color: var(--texte); font-size: 0.95rem; }

.card-corner {
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  border-left: 1px solid rgba(212,168,67,0.3);
  border-bottom: 1px solid rgba(212,168,67,0.3);
  transform: translate(1px, -1px);
}
.card-corner-bl {
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 40px;
  border-right: 1px solid rgba(212,168,67,0.3);
  border-top: 1px solid rgba(212,168,67,0.3);
  transform: translate(-1px, 1px);
}

/* ─── HOME: TESTIMONIALS ─── */
.testimonials {
  background: var(--encre);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  padding: 2rem;
  border-left: 2px solid var(--sang);
  background: rgba(139,26,26,0.05);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: 'Cinzel Decorative', serif;
  font-size: 4rem;
  color: var(--sang);
  opacity: 0.4;
  line-height: 1;
}

.testimonial p { font-style: italic; color: var(--texte); margin-bottom: 1rem; }
.testimonial cite {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--or);
  text-transform: uppercase;
}

/* ─── FORMULAS PAGE ─── */
.formulas-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: radial-gradient(ellipse at center, rgba(139,26,26,0.15), transparent 70%);
  text-align: center;
}

.formula-section { padding: 2rem 2rem 4rem; }

.formula-category {
  margin-bottom: 4rem;
}

.formula-category-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--sang-vif);
  border-bottom: 1px solid rgba(139,26,26,0.4);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.formula-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.formula-card {
  border: 1px solid rgba(212,168,67,0.2);
  background: linear-gradient(160deg, rgba(30,26,22,0.95), rgba(18,16,14,0.95));
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.formula-card:hover {
  border-color: rgba(212,168,67,0.5);
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.formula-card-header {
  background: linear-gradient(to right, rgba(139,26,26,0.4), rgba(139,26,26,0.1));
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(212,168,67,0.15);
}

.formula-card-header h3 {
  font-family: 'Cinzel', serif;
  color: var(--parchemin-clair);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.formula-card-header .duration {
  font-size: 0.8rem;
  color: var(--or);
  margin-top: 0.3rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}

.formula-card-body {
  padding: 1.5rem 2rem;
}

.formula-details {
  list-style: none;
  margin-bottom: 1.5rem;
}

.formula-details li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--texte);
  border-bottom: 1px solid rgba(212,168,67,0.07);
}

.formula-details li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--sang-vif);
  font-size: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.formula-price {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  color: var(--or);
  text-shadow: 0 0 15px rgba(212,168,67,0.3);
}
.formula-price small {
  font-family: 'IM Fell English', serif;
  font-size: 0.9rem;
  color: var(--parchemin);
}

.formula-badge {
  position: absolute;
  top: 1rem;
  right: -1px;
  background: var(--or);
  color: var(--noir);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
}

/* ─── FAQ ─── */
.faq-section { background: var(--encre); }

.faq-item {
  border-bottom: 1px solid rgba(212,168,67,0.15);
  padding: 1.5rem 0;
}

.faq-question {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--parchemin-clair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

.faq-question:hover { color: var(--or); }
.faq-question span { color: var(--sang-vif); font-size: 1.2rem; transition: transform 0.3s; }
.faq-question.open span { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.95rem;
  color: var(--texte);
}
.faq-answer.open {
  max-height: 200px;
  padding-top: 1rem;
}

/* ─── CONTACT PAGE ─── */
.contact-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212,168,67,0.08), transparent 70%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Cinzel', serif;
  color: var(--or);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212,168,67,0.1);
}

.contact-detail-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }

.contact-detail-text strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--or);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.contact-detail-text span { color: var(--texte); font-size: 0.95rem; }

.response-note {
  background: rgba(139,26,26,0.1);
  border: 1px solid rgba(139,26,26,0.3);
  padding: 1.2rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--parchemin);
  margin-top: 2rem;
}

/* ─── FORM ─── */
.form-container {
  background: linear-gradient(160deg, rgba(30,26,22,0.9), rgba(12,10,8,0.9));
  border: 1px solid rgba(212,168,67,0.2);
  padding: 3rem;
  position: relative;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--sang), var(--or), var(--sang), transparent);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(10,8,6,0.8);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 0;
  color: var(--texte-clair);
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  transition: all 0.3s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(212,168,67,0.6);
  box-shadow: 0 0 20px rgba(212,168,67,0.1);
}

.form-group select option { background: var(--encre); }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  padding: 1.2rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(139,26,26,0.1);
  border: 1px solid rgba(139,26,26,0.3);
  margin-top: 1rem;
}
.form-success h4 {
  font-family: 'Cinzel', serif;
  color: var(--or);
  margin-bottom: 0.5rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--encre);
  border-top: 1px solid rgba(212,168,67,0.15);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--or);
  margin-bottom: 1rem;
}

.footer-logo span { color: var(--sang-vif); }

footer p {
  font-size: 0.85rem;
  color: rgba(212,196,160,0.4);
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
  list-style: none;
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchemin);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--or); }

/* ─── DECORATIVE ELEMENTS ─── */
.rune-divider {
  text-align: center;
  margin: 3rem auto;
  color: rgba(212,168,67,0.3);
  font-size: 1.5rem;
  letter-spacing: 2rem;
}

.section-stamp {
  position: absolute;
  opacity: 0.03;
  font-family: 'Cinzel Decorative', serif;
  font-size: 12rem;
  color: var(--or);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,8,6,0.98); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid rgba(212,168,67,0.2); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-portrait { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-container { padding: 2rem 1.5rem; }
}
