/* ═══════════════════════════════════════════
   Voyance en Vendée — Theme CSS
   Dark mystique, or/ambre, asymétrique
   System fonts, 0 external deps
   ═══════════════════════════════════════════ */

/* ── Palette ── */
:root {
  --void: #0a0a0f;
  --obsidian: #111118;
  --charcoal: #1a1a24;
  --slate: #2a2a38;
  --graphite: #3a3a4a;
  --warm-copper: #c4956c;
  --amber-glow: #d4a574;
  --deep-violet: #2d1f3d;
  --soft-violet: rgba(80, 50, 120, 0.15);
  --pearl: #f0ece4;
  --smoke: #b8b0a8;
  --mist: #8a8078;
  --ash: #5a544e;

  /* Typo — system stack + serif */
  --font-heading: 'Georgia', 'Times New Roman', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Georgia', serif;

  /* Layout */
  --max-w: 1140px;
  --content-w: 720px;
  --radius: 6px;
  --radius-lg: 12px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--smoke);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--pearl);
  line-height: 1.25;
  font-weight: 400;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; color: var(--warm-copper); }

p { margin-bottom: 1rem; }
strong { color: var(--pearl); font-weight: 600; }
em { font-style: italic; }

a {
  color: var(--warm-copper);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--amber-glow); }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--smoke);
}

/* ── Layout utils ── */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-narrow {
  max-width: var(--content-w);
  margin: 0 auto;
}

.content-rich {
  max-width: 800px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-compact {
  padding: 3rem 0;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 149, 108, 0.08);
}

.header-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--warm-copper) !important;
  letter-spacing: 0.02em;
  font-weight: 400;
}

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

.nav-link {
  color: var(--smoke) !important;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--warm-copper);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--pearl) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Hero (asymétrique) ── */
.section-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(45, 31, 61, 0.25), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(196, 149, 108, 0.06), transparent),
    var(--void);
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(180deg, rgba(45, 31, 61, 0.1), transparent 60%);
  pointer-events: none;
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Cards ── */
.card-quote {
  background: rgba(42, 42, 56, 0.4);
  border: 1px solid rgba(196, 149, 108, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  position: relative;
}

.card-quote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 18px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(196, 149, 108, 0.2);
  line-height: 1;
}

.card-minimal {
  background: rgba(26, 26, 36, 0.6);
  border-left: 3px solid var(--warm-copper);
  padding: 2rem 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.card-elevated {
  background: rgba(42, 42, 56, 0.3);
  border: 1px solid rgba(196, 149, 108, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card-elevated:hover {
  border-color: rgba(196, 149, 108, 0.3);
  transform: translateY(-2px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--warm-copper), var(--amber-glow));
  color: var(--void) !important;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 149, 108, 0.25);
  color: var(--void) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--warm-copper) !important;
  border: 1px solid rgba(196, 149, 108, 0.4);
}

.btn-ghost:hover {
  background: rgba(196, 149, 108, 0.08);
  border-color: var(--warm-copper);
  color: var(--warm-copper) !important;
}

.btn-text {
  background: none;
  color: var(--warm-copper) !important;
  padding: 0.85rem 0.5rem;
  font-weight: 500;
}

.btn-text:hover {
  color: var(--pearl) !important;
}

/* ── Forms ── */
.form-elegant {
  background: rgba(26, 26, 36, 0.5);
  border: 1px solid rgba(196, 149, 108, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--smoke);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(196, 149, 108, 0.12);
  border-radius: var(--radius);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(196, 149, 108, 0.4);
  box-shadow: 0 0 0 3px rgba(196, 149, 108, 0.06);
}

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

.form-select {
  cursor: pointer;
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 1.5rem 0 0;
  margin-top: 70px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item {
  font-size: 0.85rem;
  color: var(--mist);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--ash);
}

.breadcrumb-link {
  color: var(--mist) !important;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--warm-copper) !important;
}

/* ── FAQ accordion (CSS only) ── */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid rgba(196, 149, 108, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(196, 149, 108, 0.2);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(26, 26, 36, 0.4);
  border: none;
  color: var(--pearl);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.25s;
}

.faq-question:hover {
  background: rgba(42, 42, 56, 0.5);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--warm-copper);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--smoke);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem 1.5rem 1.5rem;
}

/* ── Footer ── */
.footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  background: var(--obsidian);
  border-top: 1px solid rgba(196, 149, 108, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--warm-copper);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--mist) !important;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pearl) !important;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(196, 149, 108, 0.06);
  color: var(--ash);
  font-size: 0.85rem;
}

/* ── Blockquote ── */
blockquote {
  font-family: var(--font-heading);
  position: relative;
}

/* ── Grid layouts ── */
.grid-photo-text {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.grid-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-asymmetric {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .section-hero::before {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .grid-photo-text {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .wrapper {
    padding: 0 1.2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .header-nav {
    padding: 0.8rem 1.2rem;
  }

  .logo {
    font-size: 1.05rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .lead { font-size: 1rem; }

  .form-elegant {
    padding: 1.5rem;
  }

  .card-quote {
    padding: 1.5rem;
  }

  .grid-form-2col {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Prevent any horizontal overflow */
  * {
    max-width: 100%;
    word-break: break-word;
  }

  .section-hero, .section, .section-compact {
    overflow: hidden;
  }

  .card-quote {
    max-width: 100% !important;
  }

  blockquote {
    font-size: 1.3rem !important;
  }

  .nav-links {
    display: none;
  }
}

/* ── Subtle ambient animation ── */
@keyframes shimmer {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

.section-hero::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 149, 108, 0.08), transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
  pointer-events: none;
  transform: translateX(-50%);
}
