/* Orphéa — Massage bien-être à Abbeville · styles.css unique, mobile-first, sans framework */
/* Trois thèmes : "crème" (défaut, apaisant), "lotus" (noir + accents du logo)
   et "lotus-clair" (clair apaisant + cyan du logo).
   Sélection via <html data-theme="..."> — voir .theme-switch dans index.html. */
:root,
[data-theme="creme"] {
  --bg: #faf6ef;          /* crème chaud principal */
  --bg-soft: #f3ecdf;     /* bandeau de section alterné */
  --surface: #fffdf8;     /* cartes */
  --text: #3d3428;        /* brun profond, jamais noir sec */
  --muted: #7a6d5c;       /* brun doux secondaire */
  --gold: #b08a4f;        /* doré apaisé (accent + liens actifs) */
  --gold-soft: #8a6a33;   /* doré foncé : titres/CTA lisibles sur fond clair */
  --gold-tint: #e9dcc3;   /* doré très pâle : halo hero, survols */
  --line: #e5dbc8;        /* filets discrets */
  --btn-text: #fffdf8;    /* texte des boutons primaires */
  --btn-hover: #74571f;   /* survol bouton primaire */
  --header-veil: rgba(250, 246, 239, 0.86);
  --nav-bg: rgba(250, 246, 239, 0.98);
  --field-bg: #fffdf8;
  --placeholder: #b3a68f;
  --shadow-1: rgba(61, 52, 40, 0.05);
  --shadow-2: rgba(61, 52, 40, 0.08);
  --logo-badge: #121110;   /* pastille sombre derrière le logo (fond noir du logo) */
  --radius: 18px;
  --header-h: 72px;
}

/* Thème "lotus" : fond noir comme le logo, accents des touches de couleur du motif
   (rouge #ff0100, cyan #00ffff, vert #01ff00) adoucis pour rester apaisants. */
[data-theme="lotus"] {
  --bg: #121110;
  --bg-soft: #1a1815;
  --surface: #221f1b;
  --text: #f2ece4;
  --muted: #b5a89a;
  --gold: #4fd8d1;        /* cyan du logo, assombri/adouci */
  --gold-soft: #8ce8e3;   /* cyan clair lisible sur fond noir */
  --gold-tint: #0f2e2c;   /* halo cyan très sombre */
  --line: #37322b;
  --btn-text: #06211f;
  --btn-hover: #063835;
  --header-veil: rgba(18, 17, 16, 0.86);
  --nav-bg: rgba(26, 24, 21, 0.98);
  --field-bg: #1a1815;
  --placeholder: #6b6156;
  --shadow-1: rgba(0, 0, 0, 0.25);
  --shadow-2: rgba(0, 0, 0, 0.35);
  --logo-badge: #f2ece4;  /* pastille claire : le logo (fond noir) reste lisible */
}

/* Thème "lotus-clair" : l'esprit du lotus (cyan #00ffff du logo, adouci) sur un
   fond clair apaisant, comme le thème crème mais sans le doré. */
[data-theme="lotus-clair"] {
  --bg: #f2f8f7;          /* blanc cyan très pâle */
  --bg-soft: #e9f2f0;     /* bandeau de section alterné */
  --surface: #fbfdfc;     /* cartes */
  --text: #21403b;        /* vert-de-gris profond */
  --muted: #47635d;       /* vert-de-gris doux secondaire */
  --gold: #17908a;        /* cyan du logo, adouci (accent + liens actifs) */
  --gold-soft: #0d6f68;   /* cyan foncé : titres/CTA lisibles sur fond clair */
  --gold-tint: #d5ece9;   /* halo cyan très pâle : survols */
  --line: #cfe0dd;        /* filets discrets */
  --btn-text: #f4fbfa;    /* texte des boutons primaires */
  --btn-hover: #085a54;   /* survol bouton primaire */
  --header-veil: rgba(242, 248, 247, 0.86);
  --nav-bg: rgba(242, 248, 247, 0.98);
  --field-bg: #fbfdfc;
  --placeholder: #8fa8a3;
  --shadow-1: rgba(33, 64, 59, 0.05);
  --shadow-2: rgba(33, 64, 59, 0.08);
  --logo-badge: #121110;  /* pastille sombre : le logo Facebook est noir, comme le thème crème */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.075rem);
  line-height: 1.7;          /* aéré, lecture lente et confortable */
  font-weight: 300;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); }
ul { list-style: none; }
section, footer { scroll-margin-top: var(--header-h); }
::selection { background: var(--gold-tint); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid transparent;
}

/* Transparent en haut → voile crème translucide dès le scroll (.scrolled via main.js) */
.site-header.scrolled {
  background: var(--header-veil);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-logo img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--logo-badge); }

/* Nav mobile : panneau déroulant sous le header, fermé par défaut (checkbox #nav-toggle) */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1.5rem;
}
.nav-links { display: flex; flex-direction: column; }
.nav-links a {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.nav-links a:last-child { border-bottom: 0; }
#nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Hamburger : label + 3 barres (span + ::before/::after) */
.site-header label[for="nav-toggle"] {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.site-header label[for="nav-toggle"]::before,
.site-header label[for="nav-toggle"] span,
.site-header label[for="nav-toggle"]::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
.site-header label[for="nav-toggle"]::before { top: 15px; }
.site-header label[for="nav-toggle"] span { top: 21px; }
.site-header label[for="nav-toggle"]::after { top: 27px; }
/* ordre attendu : <input id="nav-toggle"><label><span></label><nav class="site-nav"> */
#nav-toggle:checked ~ .site-nav { display: flex; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.btn-primary { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--gold-soft); }
.btn-ghost:hover { background: var(--gold-tint); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4.5rem;
  background:
    radial-gradient(ellipse 85% 60% at 50% 0%, var(--gold-tint), transparent 70%),
    radial-gradient(ellipse 55% 40% at 50% 100%, color-mix(in srgb, var(--gold-tint) 50%, transparent), transparent 75%),
    var(--bg);
}
.hero-inner { max-width: 46rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero-kicker { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase; }
.hero h1, .hero .font-display { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.4rem); color: var(--text); }
.hero-subtitle { color: var(--muted); max-width: 34rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1rem; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 0.6rem auto 0;
  background: var(--gold);
  transform-origin: top;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.25rem; }
.section:nth-of-type(even) { background: var(--bg-soft); }
.section-head {
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  color: var(--gold-soft);
  line-height: 1.15;
}
.section-head p { color: var(--muted); }

/* ---------- Cartes prestations ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 64rem; margin: 0 auto; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 1px 3px var(--shadow-1);
}
.card:hover { border-color: var(--gold); box-shadow: 0 10px 24px var(--shadow-2); }
.card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
}
.card-duration { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card-desc { color: var(--muted); font-size: 0.98rem; }
.card-price { margin-top: auto; padding-top: 0.6rem; color: var(--gold-soft); font-size: 1.05rem; letter-spacing: 0.03em; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; max-width: 60rem; margin: 0 auto; }
.about-logo {
  width: min(220px, 60%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  padding: 6px;
  margin: 0 auto;
  background: var(--logo-badge);
}
.about h2, .about .font-display { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.8rem); color: var(--gold-soft); margin-bottom: 1rem; }
.about p { color: var(--muted); margin-bottom: 1rem; }
.values { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.value { display: flex; align-items: baseline; gap: 0.75rem; color: var(--text); }
.value::before { content: "—"; color: var(--gold); flex: none; }

/* ---------- Tarifs ---------- */
.price-rows { max-width: 40rem; margin: 0 auto; }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.price-row strong, .price-row .label { color: var(--text); font-size: 1.05rem; }
.price-row .price, .price-row span:last-child {
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.pricing-note {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 60rem; margin: 0 auto; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 1px 3px var(--shadow-1);
}
.contact-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold-soft);
}
.contact-card p, .contact-card address { color: var(--muted); font-style: normal; }
.contact-card .hours, .contact-card strong { color: var(--text); }
.contact-form-card { max-width: 40rem; margin: 1.25rem auto 0; }
.contact-card .btn { margin-top: 0.4rem; }

/* ---------- Formulaire ---------- */
form .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
form .field label {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
form .field input, form .field textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}
form .field textarea { min-height: 7rem; resize: vertical; }
form .field input:focus, form .field textarea:focus { outline: none; border-color: var(--gold); }
form .field input::placeholder, form .field textarea::placeholder { color: var(--placeholder); }
.form-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--muted);
}
.footer-legal { font-size: 0.85rem; color: var(--muted); }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero, .section, footer { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 1024px) {
  .site-header { padding: 0 2.5rem; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav-links { flex-direction: row; gap: 1.75rem; }
  .nav-links a { border: 0; padding: 0.25rem 0; font-size: 0.98rem; color: var(--muted); }
  .nav-links a:hover { color: var(--gold-soft); }
  .site-header label[for="nav-toggle"] { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: minmax(220px, 1fr) 2fr; text-align: left; }
  .about-logo { width: 100%; max-width: 260px; margin: 0; justify-self: center; }
  .section { padding: 6rem 2.5rem; }
}

/* ---------- Sélecteur de thème ---------- */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch button[aria-pressed="true"] {
  background: var(--gold-soft);
  color: var(--btn-text);
}
.theme-switch svg { width: 1.05rem; height: 1.05rem; display: block; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"]:hover { color: var(--btn-text); }

/* ---------- Mouvements apaisants ---------- */
/* Apparition au scroll : main.js + IntersectionObserver ajoute .visible. */
/* Tout mouvement reste doux et lent, uniquement si l'utilisateur l'accepte. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .reveal.visible, .reveal.is-visible { opacity: 1; transform: none; }
  .site-header, .btn, .nav-links a, .card, .contact-card,
  form .field input, form .field textarea {
    transition: background-color 0.45s ease, border-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
  }
  .theme-switch button { transition: background-color 0.45s ease, color 0.45s ease; }
  html.theme-anim, html.theme-anim body, html.theme-anim .hero,
  html.theme-anim .site-header, html.theme-anim .site-nav, html.theme-anim .card, html.theme-anim .contact-card,
  html.theme-anim form .field input, html.theme-anim form .field textarea,
  html.theme-anim .theme-switch, html.theme-anim .site-logo img {
    transition: background-color 0.45s ease, border-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
  }
  .card, .btn { transform: none; }
  .card:hover { transform: translateY(-4px); }
  .btn-primary:hover { transform: translateY(-1px); }
  @keyframes cue {
    0%, 100% { transform: scaleY(1); opacity: 0.75; }
    50% { transform: scaleY(0.7); opacity: 0.35; }
  }
  .scroll-cue::after { animation: cue 3s ease-in-out infinite; }
}
