/* ==========================================================================
   Voyance Espoir — design system
   Palette: violet profond, bleu nuit, doré élégant, blanc cassé
   ========================================================================== */

:root {
  --midnight: #0b0d24;
  --midnight-2: #12102b;
  --violet: #3a1856;
  --violet-deep: #240f3d;
  --violet-soft: #5c2e82;
  --gold: #cda45e;
  --gold-light: #e8cf9a;
  --gold-deep: #a3803c;
  --ivory: #f7f1e6;
  --ivory-dim: #e7dfd0;
  --ink: #14101f;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px rgba(6, 4, 20, 0.45);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ivory-dim); }

a { color: var(--gold-light); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
  position: relative;
}
.section--alt { background: linear-gradient(180deg, var(--midnight-2), var(--violet-deep) 120%); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--ivory-dim); }

/* Starfield background */
.stars-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.stars-bg::before,
.stars-bg::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(232, 207, 154, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(232, 207, 154, 0.7), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.2px 1.2px at 55% 45%, rgba(232, 207, 154, 0.6), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 92% 82%, rgba(255,255,255,0.5), transparent);
  background-size: 340px 340px;
  animation: drift 90s linear infinite;
  opacity: 0.8;
}
.stars-bg::after { animation-duration: 140s; animation-direction: reverse; opacity: 0.4; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-300px, -200px); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(205, 164, 94, 0.28);
}
.btn-gold:hover { box-shadow: 0 16px 40px rgba(205, 164, 94, 0.42); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(232, 207, 154, 0.55);
  color: var(--ivory);
}
.btn-outline:hover { background: rgba(232, 207, 154, 0.1); border-color: var(--gold-light); }
.btn-block { width: 100%; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 36, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(205, 164, 94, 0.16);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
}
.brand-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.03em;
}
.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1.4rem; }

.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(205, 164, 94, 0.35);
  background: transparent;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 30px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 78px 0 0 0;
    height: calc(100vh - 78px);
    height: calc(100dvh - 78px);
    background: linear-gradient(180deg, var(--midnight-2), var(--violet-deep));
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2rem 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a {
    padding: 18px 4px;
    border-bottom: 1px solid rgba(232, 207, 154, 0.1);
    font-size: 1.15rem;
    width: 100%;
  }
  .nav-links a::after { display: none; }
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: block; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(92, 46, 130, 0.55), transparent 60%),
    linear-gradient(180deg, var(--midnight) 0%, var(--violet-deep) 70%, var(--midnight-2) 100%);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-slogan {
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}
.hero h1 span { color: var(--gold-light); }
.hero-lead { font-size: 1.08rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art svg { max-width: 280px; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.feature-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  border: 1px solid rgba(205, 164, 94, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(205, 164, 94, 0.45); box-shadow: var(--shadow-soft); }
.feature-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,164,94,0.22), rgba(205,164,94,0.02));
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}
.feature-card p:last-child { margin-bottom: 0; }

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(205, 164, 94, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(205,164,94,0.4); }
.service-media {
  aspect-ratio: 16/10;
  position: relative;
}
.service-media svg { width: 100%; height: 100%; }
.service-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.service-name { font-size: 1.3rem; margin-bottom: 0.4rem; }
.service-desc { flex: 1; font-size: 0.95rem; }
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.price-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  font-weight: 600;
}
.service-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* Detail page */
.detail-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(205,164,94,0.2); }
.detail-media svg { width: 100%; height: auto; display: block; }
.includes-list { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.8rem; }
.includes-list li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  color: var(--ivory-dim);
}
.includes-list li::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15em;
}
@media (max-width: 860px) { .detail-hero { grid-template-columns: 1fr; } }

/* Testimonials */
.rating-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}
.rating-number { font-family: var(--font-display); font-size: 3.4rem; color: var(--gold-light); }
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1.2rem; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.testimonial-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  border: 1px solid rgba(205,164,94,0.15);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.testimonial-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet-soft), var(--violet-deep));
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 600;
  border: 1px solid rgba(205,164,94,0.35);
  flex-shrink: 0;
}
.testimonial-meta strong { display: block; font-size: 0.95rem; color: var(--ivory); }
.testimonial-meta span { font-size: 0.78rem; color: var(--ivory-dim); }
.testimonial-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(205,164,94,0.3);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 0.7rem;
}
.testimonial-card p { font-size: 0.93rem; margin: 0; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid rgba(205,164,94,0.18);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ivory);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.4rem 1.3rem; color: var(--ivory-dim); }

/* Forms */
.form-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(205,164,94,0.2);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"],
.field select,
.field textarea {
  width: 100%;
  background: rgba(8, 6, 20, 0.55);
  border: 1px solid rgba(205, 164, 94, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 50px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205, 164, 94, 0.18);
}
.field select option { background: var(--ink); color: var(--ivory); }

/* Phone / country selector */
.phone-field { position: relative; }
.phone-row { display: flex; gap: 0.6rem; }
.country-select {
  position: relative;
  flex: 0 0 150px;
}
.country-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 6, 20, 0.55);
  border: 1px solid rgba(205, 164, 94, 0.3);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  min-height: 50px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}
.country-trigger .flag { font-size: 1.2rem; }
.country-trigger .code { color: var(--ivory-dim); }
.country-trigger .chev { margin-left: auto; color: var(--gold); font-size: 0.7rem; }
.country-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, 90vw);
  max-height: 320px;
  background: var(--ink);
  border: 1px solid rgba(205, 164, 94, 0.3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  z-index: 50;
  display: none;
  flex-direction: column;
}
.country-panel.is-open { display: flex; }
.country-search {
  padding: 10px;
  border-bottom: 1px solid rgba(205,164,94,0.2);
}
.country-search input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(205,164,94,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ivory);
  font-size: 0.95rem;
}
.country-search input:focus { outline: none; border-color: var(--gold); }
.country-list { overflow-y: auto; padding: 6px; }
.country-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 10px;
  border-radius: 8px;
  color: var(--ivory);
  font-size: 0.92rem;
  cursor: pointer;
}
.country-option:hover, .country-option.is-active { background: rgba(205, 164, 94, 0.14); }
.country-option .name { flex: 1; }
.country-option .dial { color: var(--gold-light); font-size: 0.85rem; }
.phone-number { flex: 1; }

.form-note { font-size: 0.85rem; color: var(--ivory-dim); margin-top: 1rem; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

/* Confirmation panel */
.confirm-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(205,164,94,0.25);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.confirm-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Facebook band */
.fb-band {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  border-top: 1px solid rgba(205,164,94,0.2);
  border-bottom: 1px solid rgba(205,164,94,0.2);
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 0;
}

/* Footer */
.site-footer { background: var(--midnight-2); padding: 4rem 0 2rem; border-top: 1px solid rgba(205,164,94,0.15); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--ivory-dim); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ivory-dim);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Utility */
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.legal-content h2 { margin-top: 2.2rem; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content ul { color: var(--ivory-dim); }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Small screens polish */
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .btn { padding: 14px 22px; }
}
