/* ============================================================
   JOELLE KILEDJIAN — SOPHROLOGUE À AMBOISE
   Système dark / light — charte navy / or / crème
   Polices : Cormorant Garamond (titres) + Jost (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

/* ── PALETTES ── */
/* Dark mode par défaut (sans attribut ou avec data-theme="dark") */
:root,
:root[data-theme="dark"] {
  --bg:              #0B1F4A;
  --bg-card:         #112258;
  --bg-subtle:       #0e1e45;
  --gold:            #c8a24d;
  --gold-lt:         #e9d5a4;
  --gold-dim:        rgba(200,162,77,0.15);
  --gold-border:     rgba(200,162,77,0.28);
  --gold-border-soft:rgba(200,162,77,0.12);
  --text:            #f0ead8;
  --text-mid:        #b8aa8a;
  --text-soft:       #7a6e58;
  --nav-bg:          rgba(11,31,74,0.92);
  --nav-border:      rgba(200,162,77,0.12);
  --footer-bg:       rgba(8,16,38,0.8);
  --footer-border:   rgba(200,162,77,0.12);
  --encadre-bg:      #112258;
  --encadre-border:  rgba(200,162,77,0.12);
  --hero-gradient:   radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200,162,77,0.07) 0%, transparent 60%);
  --stars-visible:   1;
  /* Aliases pour compatibilité pages anciennes */
  --navy:       #16253f;
  --navy-mid:   #112258;
  --navy-light: #213460;
}

:root[data-theme="light"] {
  --bg:              #faf7f2;
  --bg-card:         #ffffff;
  --bg-subtle:       #f3ede3;
  --gold:            #b8922a;
  --gold-lt:         #c8a24d;
  --gold-dim:        rgba(184,146,42,0.10);
  --gold-border:     rgba(22,37,63,0.20);
  --gold-border-soft:rgba(22,37,63,0.10);
  --text:            #1a1612;
  --text-mid:        #4a3f30;
  --text-soft:       #8a7a65;
  --nav-bg:          rgba(250,247,242,0.95);
  --nav-border:      rgba(22,37,63,0.08);
  --footer-bg:       #f3ede3;
  --footer-border:   rgba(22,37,63,0.08);
  --encadre-bg:      #ffffff;
  --encadre-border:  rgba(22,37,63,0.10);
  --hero-gradient:   radial-gradient(ellipse 70% 50% at 50% 0%, rgba(184,146,42,0.07) 0%, transparent 60%);
  --stars-visible:   0;
  --navy:       #16253f;
  --navy-mid:   #ffffff;
  --navy-light: #f3ede3;
}

/* Valeurs constantes */
:root {
  --white:      #ffffff;
  --radius:     16px;
  --radius-sm:  8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ── TOGGLE THÈME (dans la nav) ── */
#theme-toggle {
  display: flex; align-items: center; gap: 7px;
  background: var(--gold-dim);
  border: 0.5px solid var(--gold-border);
  border-radius: 30px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 11px; font-weight: 400;
  color: var(--text-mid);
  transition: all 0.25s ease;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}
#theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

.toggle-track {
  width: 28px; height: 16px;
  background: var(--gold-dim);
  border-radius: 8px;
  border: 0.5px solid var(--gold-border);
  position: relative;
}
.toggle-track::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s ease;
}
[data-theme="light"] .toggle-track::after { transform: translateX(12px); }

/* ── ÉTOILES (dark only) ── */
.stars {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
  opacity: var(--stars-visible, 1);
  transition: opacity 0.4s;
}
.star {
  position: absolute; border-radius: 50%;
  background: var(--gold-lt); opacity: 0;
  animation: twinkle var(--d,4s) var(--delay,0s) infinite ease-in-out;
}
@keyframes twinkle { 0%,100%{opacity:0} 50%{opacity:var(--op,0.3)} }

.halo {
  position: fixed; top: -15%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: var(--hero-gradient);
  transition: background 0.4s;
}

/* ── LAYOUT ── */
main { position: relative; z-index: 1; }
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAVIGATION ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--nav-border);
  padding: 0 1.5rem;
  transition: background 0.4s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap; flex-shrink: 0;
  transition: color 0.4s;
}
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-size: 12px; font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  padding: 6px 10px; border-radius: 6px;
  letter-spacing: 0.05em;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: var(--gold-dim); }
.nav-cta {
  font-size: 12px !important; font-weight: 500 !important;
  color: var(--bg) !important;
  background: var(--gold) !important;
  padding: 8px 16px !important; border-radius: 20px !important;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.85; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── ORNEMENTS ── */
.ornament { display: flex; align-items: center; gap: 12px; margin: 0.4rem auto; justify-content: center; max-width: 120px; }
.ornament-line { flex: 1; height: 0.5px; background: var(--gold-border); }
.ornament-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.7; }
.section-line { display: block; width: 50px; height: 1px; margin: 0 auto 1.5rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ── HERO ── */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  text-align: center; padding: 6rem 1.5rem 4rem; position: relative;
}
.hero-content { max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  border: 0.5px solid var(--gold-border); background: var(--gold-dim);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 2rem;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 7vw, 68px); font-weight: 300;
  line-height: 1.15; color: var(--text); margin-bottom: 0.75rem;
  transition: color 0.4s;
}
.hero h1 em { font-style: italic; background: linear-gradient(135deg, var(--gold) 30%, var(--gold-lt) 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 16px; color: var(--text-mid); font-weight: 300; max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* ── BOUTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--bg);
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 28px; border-radius: 30px;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0.5px solid var(--gold-border); color: var(--text-mid);
  background: transparent; font-size: 13px; font-weight: 400;
  letter-spacing: 0.06em; text-decoration: none;
  padding: 14px 28px; border-radius: 30px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-secondary:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-subtle); transition: background 0.4s; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title em { font-style: italic; background: linear-gradient(135deg, var(--gold) 30%, var(--gold-lt) 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 5vw, 44px); font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 0.75rem; transition: color 0.4s; }
.section-intro { font-size: 15px; color: var(--text-mid); max-width: 580px; margin: 0 auto; line-height: 1.8; }

/* ── CARTES THÉMATIQUES ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 2rem; }
.theme-card {
  position: relative; background: var(--bg-card);
  border: 0.5px solid var(--gold-border-soft); border-radius: var(--radius);
  padding: 2rem 1.75rem; text-decoration: none; color: inherit;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.theme-card:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.card-icon { font-size: 28px; margin-bottom: 1rem; display: block; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--text); margin-bottom: 0.6rem; }
.card-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ── PROSE ── */
.prose h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 3.5vw, 32px); font-weight: 400; color: var(--gold-lt); margin: 2.5rem 0 1rem; line-height: 1.3; }
.prose h2 em { font-style: italic; background: linear-gradient(135deg, var(--gold) 30%, var(--gold-lt) 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.prose h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: var(--text); margin: 1.75rem 0 0.75rem; }
.prose p { margin-bottom: 1rem; font-size: 15px; color: var(--text-mid); line-height: 1.8; }
.prose ul { list-style: none; margin: 1rem 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.prose ul li { font-size: 14px; color: var(--text-mid); padding-left: 1.4rem; position: relative; line-height: 1.6; }
.prose ul li::before { content: '•'; position: absolute; left: 0; color: var(--gold); font-size: 14px; top: 0; }

/* ── ENCADRÉS ── */
.encadre {
  background: var(--encadre-bg); border: 0.5px solid var(--encadre-border);
  border-radius: var(--radius); padding: 2rem; margin: 2rem 0;
  transition: background 0.4s, border-color 0.4s;
}
.encadre-gold { background: var(--gold-dim); border-color: var(--gold-border); }

/* ── TÉMOIGNAGES ── */
.testimonial { background: var(--bg-card); border: 0.5px solid var(--gold-border-soft); border-radius: var(--radius); padding: 1.75rem; position: relative; transition: background 0.4s; }
.testimonial::before { content: '"'; font-family: 'Cormorant Garamond', serif; font-size: 60px; color: var(--gold); opacity: 0.3; position: absolute; top: 8px; left: 20px; line-height: 1; }
.testimonial-text { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 1rem; padding-top: 1rem; }
.testimonial-author { font-size: 12px; color: var(--text-soft); letter-spacing: 0.08em; }
.testimonial-stars { color: var(--gold); font-size: 12px; margin-bottom: 4px; }

/* ── TARIFS ── */
.tarif-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tarif-card { background: var(--bg-card); border: 0.5px solid var(--gold-border-soft); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: background 0.4s; }
.tarif-card.featured { border-color: var(--gold-border); background: var(--gold-dim); }
.tarif-label { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.tarif-price { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 300; color: var(--text); line-height: 1; }
.tarif-price span { font-size: 20px; color: var(--text-soft); margin-left: 2px; }
.tarif-desc { font-size: 13px; color: var(--text-mid); margin-top: 0.5rem; line-height: 1.5; }

/* ── FAQ ── */
.faq-item { border-bottom: 0.5px solid var(--gold-border-soft); }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; text-align: left; gap: 1rem; }
.faq-question-text { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; color: var(--text); line-height: 1.4; }
.faq-arrow { width: 24px; height: 24px; border-radius: 50%; border: 0.5px solid var(--gold-border); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 14px; flex-shrink: 0; transition: transform var(--transition), background var(--transition); }
.faq-item.open .faq-arrow { transform: rotate(45deg); background: var(--gold-dim); }
.faq-answer { font-size: 14px; color: var(--text-mid); line-height: 1.75; padding: 0 0 1.25rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center; padding: 4rem 1.5rem;
  background: linear-gradient(135deg, rgba(200,162,77,0.06), transparent);
  border-top: 0.5px solid var(--gold-border-soft);
  border-bottom: 0.5px solid var(--gold-border-soft);
}
.cta-section h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 4vw, 38px); font-weight: 400; color: var(--text); margin-bottom: 0.75rem; }
.cta-section p { font-size: 14px; color: var(--text-mid); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  border-top: 0.5px solid var(--footer-border);
  padding: 3rem 1.5rem 2rem;
  position: relative; z-index: 1;
  transition: background 0.4s;
}
.footer-inner { max-width: 900px; margin: 0 auto; }

/* Liens navigation footer (nouvelles pages) */
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 0.75rem; list-style: none;
  margin: 0 0 2rem; padding: 1.25rem 0;
  border-top: 0.5px solid var(--gold-border-soft);
  border-bottom: 0.5px solid var(--gold-border-soft);
}
.footer-nav li { list-style: none; padding: 0; }
.footer-nav a {
  font-size: 13px; font-weight: 500; color: var(--text);
  text-decoration: none; letter-spacing: 0.05em;
  padding: 5px 10px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover { color: var(--gold); background: var(--gold-dim); }
.footer-info { text-align: center; margin-bottom: 1.5rem; }

/* Footer ancien style (pages existantes) */
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--text); margin-bottom: 0.3rem; transition: color 0.4s; }
.footer-tagline { font-size: 12px; color: var(--text-soft); margin-bottom: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; list-style: none; margin-bottom: 2rem; }
.footer-links a { font-size: 12px; color: var(--text-soft); text-decoration: none; letter-spacing: 0.06em; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { text-align: center; font-size: 11px; color: var(--text-soft); letter-spacing: 0.06em; }

/* ── PAGE HERO (pages intérieures) ── */
.page-hero { padding: 7rem 1.5rem 3rem; text-align: center; position: relative; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 6vw, 56px); font-weight: 400; line-height: 1.2; color: var(--text); max-width: 720px; margin: 0 auto 1rem; transition: color 0.4s; }
.page-hero h1 em { font-style: italic; background: linear-gradient(135deg, var(--gold) 30%, var(--gold-lt) 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-sub { font-size: 16px; color: var(--text-mid); max-width: 600px; margin: 0 auto 2rem; line-height: 1.8; }

/* ── OUTILS EMBED ── */
.outil-embed { background: var(--bg-card); border: 0.5px solid var(--gold-border); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; transition: background 0.4s; }
.outil-embed iframe { width: 100%; border: none; display: block; min-height: 720px; }

/* ── LIENS NOTION ── */
.notion-link {
  display: flex; align-items: center; gap: 14px;
  background: var(--gold-dim); border: 0.5px solid var(--gold-border-soft);
  border-radius: 12px; padding: 1rem 1.25rem;
  text-decoration: none; color: inherit;
  transition: border-color var(--transition), background var(--transition);
  margin-top: 0.75rem;
}
.notion-link:hover { border-color: var(--gold-border); }
.notion-link-icon { font-size: 20px; flex-shrink: 0; }
.notion-link-text { font-size: 14px; color: var(--text-mid); }
.notion-link-text strong { color: var(--text); font-weight: 500; display: block; font-size: 15px; margin-bottom: 2px; }
.notion-link-arrow { margin-left: auto; color: var(--gold); font-size: 18px; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); padding: 2rem 1.5rem; gap: 0.25rem;
    overflow-y: auto; z-index: 99;
  }
  .nav-links.open a { padding: 12px 0; font-size: 15px; border-bottom: 0.5px solid var(--gold-border-soft); }
  .nav-burger { display: flex; }
  .hero { min-height: 80vh; padding: 5rem 1rem 3rem; }
  .section { padding: 3.5rem 0; }
  .footer-nav { gap: 0.4rem 0.5rem; }
}
