/* ============================================================
   HENKA HYPNOSE — style.css
   Thème clair/sombre automatique via prefers-color-scheme
   ============================================================ */

/* ---------- Variables ---------------------------------------- */
:root {
  /* Palette claire */
  --bg:           #f8f9f4;
  --bg-section:   #e8f1f4;
  --bg-card:      #dce9ef;
  --text:         #263a56;
  --text-muted:   #5f7484;
  --accent:       #506a84;
  --accent-light: #a9cddd;
  --accent-hover: #2f4568;
  --brush:        rgba(169, 205, 221, 0.42);   /* lavis aquarelle */
  --border:       rgba(80, 106, 132, 0.22);
  --btn-bg:       #506a84;
  --btn-text:     #ffffff;
  --shadow:       0 4px 24px rgba(38, 58, 86, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #101929;
    --bg-section:   #18263a;
    --bg-card:      #22364d;
    --text:         #eef4f5;
    --text-muted:   #aec1cb;
    --accent:       #a9cddd;
    --accent-light: #5f7484;
    --accent-hover: #dce9ef;
    --brush:        rgba(95, 116, 132, 0.34);
    --border:       rgba(169, 205, 221, 0.22);
    --btn-bg:       #a9cddd;
    --btn-text:     #101929;
    --shadow:       0 4px 24px rgba(0, 0, 0, 0.40);
  }
}

/* ---------- Reset & Base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  line-height: 1.7;
  transition: background-color 0.3s, color 0.3s;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- Typography -------------------------------------- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1rem; letter-spacing: 0.18em; }

p { margin-bottom: 1em; }

/* ---------- Utility ----------------------------------------- */
.container {
  width: min(90%, 860px);
  margin-inline: auto;
}

.section { padding: 80px 0; }
.section-alt { background-color: var(--bg-section); }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* Trait décoratif sous les titres */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  display: block;
  height: 2px;
  width: 60%;
  margin: 0.5rem auto 0;
  background: var(--accent-light);
  border-radius: 2px;
}

/* ---------- Brush stroke background (aquarelle) ------------- */
.brush {
  position: relative;
  z-index: 0;
}
.brush::before {
  content: '';
  position: absolute;
  inset: -10% -8%;
  background: var(--brush);
  border-radius: 60% 40% 55% 45% / 40% 55% 45% 60%;
  filter: blur(28px);
  z-index: -1;
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
#hero {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}

.hero-logo {
  width: clamp(140px, 30vw, 200px);
  margin-inline: auto;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(1.7rem, 5vw, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.hero-sub {
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Lavis vert derrière le titre héro */
.hero-brush-wrap {
  position: relative;
  display: inline-block;
  padding: 0.5rem 2rem;
}
.hero-brush-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brush);
  border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
  filter: blur(20px);
  z-index: -1;
}

/* ============================================================
   NAV (mini sticky)
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }

/* ============================================================
   SECTION: L'HYPNOSE POUR QUOI
   ============================================================ */
#pourquoi {
  text-align: center;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.tag-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  position: relative;
  overflow: hidden;
}

.tag-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brush);
  border-radius: inherit;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.tag-item:hover::before { opacity: 1; }
.tag-item span { position: relative; z-index: 1; }

/* ============================================================
   SECTION: SÉANCE D'HYPNOSE
   ============================================================ */
#seance {
  text-align: center;
}

.seance-sub {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.seance-text {
  max-width: 680px;
  margin-inline: auto;
  text-align: left;
}

/* Tarifs */
.tarifs {
  margin-top: 3rem;
  text-align: center;
}

.tarifs h3 {
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.tarif-row {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.tarif-row strong {
  color: var(--text);
  font-weight: 600;
}

.tarif-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  font-style: italic;
}

/* ============================================================
   SECTION: QUI SUIS-JE
   ============================================================ */
#qui {
  background-color: var(--bg-section);
}

.qui-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.qui-text h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
}

.qui-text p { color: var(--text-muted); }

.qui-text .signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.qui-image img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ============================================================
   SECTION: LE CABINET
   ============================================================ */
#cabinet {
  text-align: left;
}

.cabinet-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cabinet-text h2 {
  margin-bottom: 1.2rem;
}

.cabinet-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cabinet-address {
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: normal;
}

.cabinet-address strong {
  display: block;
  color: var(--text);
  text-decoration: underline;
  margin-bottom: 0.2rem;
}

.cabinet-address .phone {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.cabinet-image img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  max-height: 360px;
  box-shadow: var(--shadow);
}

/* ---------- CTA Button --------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  margin-top: 1.5rem;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Logo inversion en mode sombre ------------------- */
@media (prefers-color-scheme: dark) {
  .hero-logo,
  .footer-logo {
    filter: invert(1);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer .footer-logo {
  width: 60px;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: 1rem;
  opacity: 0.75;
}

footer .social-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
footer .social-link:hover { color: var(--accent); }

footer .social-link svg {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  fill: currentColor;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .section { padding: 56px 0; }

  .qui-inner,
  .cabinet-inner {
    grid-template-columns: 1fr;
  }

  .qui-image { order: -1; }

  .tags-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.7rem;
  }

  nav ul { gap: 0.8rem; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.5rem; }
  .tags-grid  { grid-template-columns: 1fr 1fr; }
}
