/* ==========================================================================
   SELENA — Voyance & guidance spirituelle
   Feuille de style principale
   Structure : 1) Variables  2) Reset  3) Typo  4) Layout global
               5) Fond étoilé  6) Composants  7) Sections  8) Responsive
   ========================================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  /* Palette */
  --midnight: #0d0b1f;
  --midnight-soft: #14112b;
  --violet-deep: #241448;
  --violet: #4b2e8f;
  --violet-soft: #6b4fb0;
  --gold: #c9a24b;
  --gold-light: #e9d9a1;
  --mist: #f2ecff;
  --mist-dim: rgba(242, 236, 255, 0.68);
  --line: rgba(201, 162, 75, 0.25);

  /* Typo */
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  /* Rythme */
  --radius: 14px;
  --container: 1120px;
  --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--violet-deep) 55%, var(--midnight) 100%);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. TYPOGRAPHIE ---------- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

p { color: var(--mist-dim); }

.lede {
  font-size: 1.1rem;
  color: var(--mist-dim);
  max-width: 620px;
}

/* Filet doré décoratif */
.divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}
.divider.left { margin: 1.5rem 0; }

/* ---------- 4. LAYOUT GLOBAL ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { position: relative; padding: 6rem 0; }
section.tight { padding: 4rem 0; }

.text-center { text-align: center; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---------- 5. FOND ETOILE (canvas) ---------- */
#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

main, header, footer { position: relative; z-index: 1; }

/* Halo violet ambiant derrière certaines sections */
.aura::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(75, 46, 143, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ---------- 6. COMPOSANTS ---------- */

/* -- Navigation -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(13, 11, 31, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.brand svg { width: 26px; height: 26px; color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--mist-dim);
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--mist);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--midnight); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* -- Boutons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--midnight);
  font-weight: 600;
  box-shadow: 0 8px 30px -8px rgba(201, 162, 75, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(201, 162, 75, 0.7); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--mist);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* -- Fade-in au scroll -- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -- Carte tarot (services) -- */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}

.tarot-card {
  perspective: 1400px;
  height: 320px;
}
.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.tarot-card:hover .tarot-card-inner,
.tarot-card.is-flipped .tarot-card-inner {
  transform: rotateY(180deg);
}
.tarot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.tarot-front {
  background: linear-gradient(160deg, var(--violet-deep), var(--midnight-soft));
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.tarot-front .tarot-icon {
  width: 52px; height: 52px;
  color: var(--gold);
}
.tarot-front .tarot-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 8px;
  pointer-events: none;
}
.tarot-back {
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  color: var(--midnight);
  transform: rotateY(180deg);
  justify-content: center;
}
.tarot-back h3 { color: var(--midnight); margin-bottom: 0.6rem; }
.tarot-back p { color: rgba(13, 11, 31, 0.78); font-size: 0.92rem; }
.tarot-card-hint {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}

/* -- Etapes (déroulement) -- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}
.step { text-align: center; }
.step-glyph {
  width: 74px; height: 74px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: radial-gradient(circle, rgba(75,46,143,0.4), transparent 70%);
}
.step-glyph svg { width: 30px; height: 30px; }
.step-phase {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* -- Témoignages -- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars-row { color: var(--gold); letter-spacing: 0.15em; font-size: 0.9rem; }
.testimonial-quote { font-style: italic; color: var(--mist-dim); flex-grow: 1; }
.testimonial-origin {
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* -- Tarifs -- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}
.price-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2.2rem 1.8rem;
  background: linear-gradient(160deg, rgba(75,46,143,0.18), rgba(13,11,31,0.4));
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform var(--transition), border-color var(--transition);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201,162,75,0.16), rgba(75,46,143,0.22));
  position: relative;
}
.price-card.featured::before {
  content: 'Le plus choisi';
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--midnight);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}
.price-duration { font-size: 0.85rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.price-amount { font-family: var(--font-display); font-size: 2.3rem; color: var(--mist); }
.price-amount span { font-size: 1rem; color: var(--mist-dim); font-family: var(--font-body); }
.price-list { display: flex; flex-direction: column; gap: 0.55rem; margin: 0.6rem 0 1rem; }
.price-list li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--mist-dim); }
.price-list li::before { content: '✦'; color: var(--gold); flex-shrink: 0; }

/* -- FAQ Accordéon -- */
.faq-list { max-width: 760px; margin: 3rem auto 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: left;
  color: var(--mist);
}
.faq-question .plus {
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq-answer p { padding: 0 0.2rem 1.4rem; }

/* -- Formulaire de contact -- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: start;
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--mist-dim); margin-top: 0.8rem; }

.info-block { margin-bottom: 2.2rem; }
.info-block h3 { margin-bottom: 0.6rem; color: var(--gold-light); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 0.4rem 0; border-bottom: 1px solid var(--line); color: var(--mist-dim); }
.hours-table td:last-child { text-align: right; color: var(--mist); }

.social-row { display: flex; gap: 0.9rem; margin-top: 1rem; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--mist-dim);
  position: relative;
  transition: all var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon.is-soon { cursor: default; opacity: 0.55; }
.social-icon:not(.is-soon):hover { border-color: var(--gold); color: var(--gold-light); }
.social-icon .tooltip {
  position: absolute;
  bottom: 120%; left: 50%;
  transform: translateX(-50%);
  background: var(--midnight-soft);
  border: 1px solid var(--line);
  color: var(--mist-dim);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.social-icon:hover .tooltip { opacity: 1; }

/* -- Bouton WhatsApp flottant -- */
#whatsapp-float {
  position: fixed;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fce7a, #25b95b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(37, 185, 91, 0.6);
  transition: transform 0.15s ease-out, background 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}
#whatsapp-float svg { width: 28px; height: 28px; color: #fff; }
#whatsapp-float.is-pending {
  background: linear-gradient(135deg, var(--violet-soft), var(--violet-deep));
  box-shadow: 0 10px 26px -6px rgba(75, 46, 143, 0.6);
}
#whatsapp-float:hover { transform: scale(1.08); }
#whatsapp-float .wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--midnight-soft);
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--mist);
  opacity: 0;
  transform: translateX(6px);
  transition: all var(--transition);
  pointer-events: none;
}
#whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* -- Google Translate : on masque l'interface native, on pilote tout via notre bouton -- */
#google_translate_element,
.goog-te-gadget,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-text-highlight,
#goog-gt-tt {
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}
body { top: 0 !important; position: static !important; }
font[style] { background: none !important; box-shadow: none !important; } /* Google entoure parfois le texte traduit */

/* -- Bouton de traduction flottant (suit le curseur, comme le bouton WhatsApp) -- */
#lang-float {
  position: fixed;
  z-index: 61;
}
#lang-toggle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--midnight);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(201, 162, 75, 0.55);
  transition: transform 0.15s ease-out;
}
#lang-toggle svg { width: 24px; height: 24px; }
#lang-toggle:hover { transform: scale(1.08); }
#lang-toggle[aria-expanded="true"] { transform: scale(1.05); }

.lang-menu {
  position: absolute;
  bottom: 66px;
  right: 0;
  min-width: 190px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--midnight-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.lang-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu li { list-style: none; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--mist-dim);
  transition: background var(--transition), color var(--transition);
}
.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: rgba(201, 162, 75, 0.14);
  color: var(--gold-light);
  outline: none;
}

@media (max-width: 720px) {
  #lang-float { right: 20px !important; left: auto !important; bottom: 86px !important; top: auto !important; position: fixed !important; }
  .lang-menu { bottom: 62px; }
}

/* -- Lien d'évitement (accessibilité clavier) -- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 100;
  background: var(--gold);
  color: var(--midnight);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  transition: top 0.25s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--mist);
  outline-offset: 2px;
}

/* -- Bandeau de consentement cookies -- */
#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: -200px;
  z-index: 80;
  max-width: 640px;
  margin: 0 auto;
  background: var(--midnight-soft);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,0.6);
  transition: bottom 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#cookie-banner.is-visible { bottom: 20px; }
#cookie-banner p { font-size: 0.86rem; margin-bottom: 1rem; }
#cookie-banner a { color: var(--gold-light); border-bottom: 1px solid var(--gold); }
#cookie-banner .cookie-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
#cookie-banner .btn { padding: 0.6rem 1.3rem; font-size: 0.86rem; }

@media (max-width: 720px) {
  #cookie-banner { left: 12px; right: 12px; padding: 1.2rem; }
}

/* -- Footer -- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { max-width: 320px; }
.footer-brand p { margin-top: 0.8rem; font-size: 0.9rem; }
.footer-links h4, .footer-hours h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--mist-dim);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mist-dim);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* -- Bandeau CTA générique -- */
.cta-banner {
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, rgba(201,162,75,0.12), rgba(75,46,143,0.2));
  padding: 3.5rem 2rem;
}
.cta-banner .divider { margin-bottom: 1.6rem; }

/* -- Page header (sous-pages) -- */
.page-hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
}

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps { grid-template-columns: 1fr; gap: 2.8rem; }
}

@media (max-width: 720px) {
  .nav-links { 
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 11, 31, 0.97);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform var(--transition);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; }
  .nav-toggle { display: flex; }
  section { padding: 4rem 0; }
  #whatsapp-float { width: 52px; height: 52px; bottom: 20px !important; right: 20px !important; left: auto !important; top: auto !important; }
  #whatsapp-float .wa-tooltip { display: none; }
}

@media (max-width: 560px) {
  .tarot-grid { grid-template-columns: 1fr 1fr; }
  .tarot-card { height: 260px; }
}

@media (max-width: 400px) {
  .tarot-grid { grid-template-columns: 1fr; }
}
