/* ══════════════════════════════════════════════
   Anthony Chassier · Psychologue & Olfactothérapeute  — Styles partagés
   ══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Variables ── */
:root {
  --vert:       #2D5A3D;
  --vert-clair: #3d7a54;
  --bordeaux:   #8B2E2E;
  --terra:      #A0412A;
  --beige:      #F5F0E8;
  --beige-fonce:#E8E0D0;
  --brun:       #3a2a1a;
  --brun-doux:  #5a4030;
  --blanc:      #faf7f2;
  --vert-fonce:  #1e4029;
  --brun-clair:  #9a8070;
  --brun-nuit:   #2a1a0e;
}

/* ── Base ── */
body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: var(--beige);
  color: var(--brun);
  line-height: 1.75;
  font-size: 18px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(45, 90, 61, 0.15);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--vert);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brun);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--vert); }
.nav-links a.active { opacity: 1; color: var(--vert); }
.nav-rdv {
  background: var(--vert) !important;
  color: var(--blanc) !important;
  opacity: 1 !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: 2px;
}
.nav-rdv:hover { background: var(--vert-clair) !important; }

/* ── Boutons ── */
.btn {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  border: 1px solid transparent;
}
.btn-vert {
  background: var(--vert);
  color: var(--blanc);
  border-color: var(--vert);
}
.btn-vert:hover { background: var(--vert-clair); border-color: var(--vert-clair); }
.btn-outline-vert {
  background: transparent;
  color: var(--vert);
  border-color: var(--vert);
}
.btn-outline-vert:hover { background: var(--vert); color: var(--blanc); }
.btn-outline-blanc {
  background: rgba(255,255,255,0.1);
  color: var(--blanc);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-outline-blanc:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.7); }
.btn-bordeaux {
  background: var(--bordeaux);
  color: var(--blanc);
  border-color: var(--bordeaux);
}
.btn-bordeaux:hover { background: var(--terra); border-color: var(--terra); }

/* ── Hero page intérieure ── */
.page-hero {
  padding: 9rem 2rem 5rem;
  background: linear-gradient(160deg, var(--vert) 0%, var(--vert-fonce) 50%, var(--bordeaux) 85%, var(--terra) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-pretitle {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 1rem;
  display: block;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--blanc);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Stars décoratives ── */
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star {
  position: absolute;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

/* ── Sections ── */
section { padding: 5.5rem 2rem; }
.section-beige      { background: var(--beige); }
.section-beige-fonce{ background: var(--beige-fonce); }
.section-blanc      { background: var(--blanc); }
.section-vert {
  padding: 6.5rem 2rem;
  background: linear-gradient(170deg, var(--vert) 0%, var(--vert-fonce) 60%, var(--brun-nuit) 100%);
  color: var(--blanc);
}
.section-vert .section-label { color: rgba(255,255,255,0.68); }
.section-vert h2             { color: var(--blanc); }
.section-vert p              { color: rgba(255,255,255,0.82); }

/* ── Containers ── */
.container      { max-width: 780px; margin: 0 auto; }
.container-wide { max-width: 1050px; margin: 0 auto; }

/* ── Typographie commune ── */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vert-clair);
  margin-bottom: 1.25rem;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 2rem;
  color: var(--brun);
}
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
  color: var(--vert);
}
p { margin-bottom: 1.35rem; }
p:last-child { margin-bottom: 0; }

/* ── Citation ── */
.quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.6;
  color: var(--vert);
  border-left: 3px solid var(--vert);
  padding-left: 1.75rem;
  margin: 2.5rem 0;
}
.quote-blanc {
  color: rgba(255,255,255,0.9);
  border-left-color: rgba(255,255,255,0.4);
}

/* ── Divider ── */
.divider {
  width: 36px; height: 1px;
  background: var(--vert);
  margin: 1.75rem 0;
  opacity: 0.6;
}
.divider-center { margin: 1.75rem auto; }

/* ── Photo placeholder ── */
.photo-placeholder {
  background: var(--beige-fonce);
  border: 1.5px dashed rgba(45,90,61,0.25);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(45,90,61,0.4);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 0.5rem;
  min-height: 320px;
}
.photo-placeholder svg { opacity: 0.3; }

/* ── Grille 2 colonnes ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Cards ── */
.card {
  background: var(--blanc);
  border-top: 2px solid var(--vert);
  padding: 2rem;
  box-shadow: 0 2px 14px rgba(45,90,61,0.06);
}
.card-bordeaux { border-top-color: var(--bordeaux); }
.card-bordeaux h3 { color: var(--bordeaux); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--brun-doux); line-height: 1.65; }

/* ── Timeline (parcours) ── */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 20px; bottom: 20px;
  width: 1px;
  background: rgba(255,255,255,0.2);
}
.timeline-item { position: relative; padding: 1.1rem 0; }
.timeline-dot {
  position: absolute;
  left: -2.25rem;
  top: 1.4rem;
  width: 10px; height: 10px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.timeline-year {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.2rem;
  display: block;
}
.timeline-item strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--blanc);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.timeline-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ── Section CTA ── */
.section-cta {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--beige);
}
.section-cta h2 { max-width: 520px; margin: 0 auto 1rem; }
.section-cta .cta-sub {
  max-width: 440px;
  margin: 0 auto 2.25rem;
  color: var(--brun-doux);
  font-size: 0.97rem;
}
.cta-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  color: var(--brun-clair);
}

/* ── Footer ── */
footer {
  background: #1a1008;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,0.9); }

/* ── Mobile Menu Toggle ── */
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
  padding: 0.5rem;
}
.nav-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brun);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.nav-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.nav-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(45, 90, 61, 0.15);
  }
  .nav-links.active {
    max-height: 100vh;
  }
  .nav-links li {
    border-bottom: 1px solid rgba(45, 90, 61, 0.08);
  }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-rdv {
    background: var(--vert) !important;
    color: var(--blanc) !important;
    margin: 1rem 1.5rem !important;
    border-radius: 2px;
    width: calc(100% - 3rem) !important;
    text-align: center;
  }
  
  section { padding: 3.5rem 1.25rem; }
  .page-hero { padding: 7rem 1.5rem 3.5rem; }
  
  @supports (padding: clamp(1rem, 1vw, 2rem)) {
    body { font-size: 16px; }
    section { padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 3vw, 1.5rem); }
  }
}

@media (max-width: 480px) {
  nav { height: 56px; padding: 0 0.75rem; }
  .nav-brand { font-size: 1rem; }
  .page-hero { padding: 6.5rem 1rem 3rem; }
  section { padding: 2.75rem 1rem; }
  h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--vert);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Préférence mouvement réduit ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Constellation Vulpecula (Le Renard) ── */
.vulpecula-constellation {
  position: absolute;
  top: 14%;
  left: 5%;
  right: auto;
  width: min(50%, 440px);
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

/* ── Étoiles ambiantes (scintillement CSS, remplace les animations GSAP infinies) ── */
@keyframes ambient-twinkle {
  0%, 100% { opacity: var(--star-op, 0.2); }
  50%       { opacity: calc(var(--star-op, 0.2) * 0.22); }
}
.ambient-star {
  opacity: var(--star-op, 0.2);
  animation: ambient-twinkle var(--star-dur, 3s) ease-in-out infinite;
  animation-delay: var(--star-delay, 0s);
}

/* ── Pissenlit animé ── */
.dandelion-anim {
  position: absolute;
  bottom: 0;
  right: 8%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
  width: min(16%, 175px);
}
