/* ============================================================
   Cabinet d'Hypnothérapie — feuille de style
   Palette « Seuil » : indigo nuit, brume claire, teal profond,
   et une unique lueur chaude réservée au halo qui respire.
   ============================================================ */

:root {
  --night:       #161C33;
  --night-2:     #222B4D;
  --halo:        #F0CE9A;   /* lueur de bougie — signature uniquement */
  --halo-soft:   #F6E2BF;
  --mist:        #ECEFEF;   /* fond clair, frais */
  --white:       #FFFFFF;
  --text:        #1B2430;
  --muted:       #5E6B73;
  --accent:      #2F6E68;   /* teal — interactions */
  --accent-dark: #234F4A;
  --line:        rgba(22, 28, 51, 0.10);
  --line-light:  rgba(255, 255, 255, 0.16);

  --maxw: 1160px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilitaires ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.wrap--narrow { max-width: 800px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--halo); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--solid { background: var(--accent); color: var(--white); }
.btn--solid:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line-light); color: var(--white); }
.btn--ghost:hover { border-color: var(--halo); color: var(--halo); transform: translateY(-2px); }
.btn--full { width: 100%; padding: 1rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22, 28, 51, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.65rem; color: var(--white); }
.nav__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--halo-soft), var(--halo) 45%, transparent 72%);
  box-shadow: 0 0 14px rgba(240, 206, 154, 0.55);
  flex: none;
}
.nav__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  flex: none;
  /* léger halo doré si fond transparent / foncé */
  filter: drop-shadow(0 0 6px rgba(240,206,154,0.35));
}
.nav__name { font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; letter-spacing: 0.01em; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: rgba(255,255,255,0.82); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--white); }
.nav__cta {
  border: 1.5px solid var(--line-light);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav__cta:hover { border-color: var(--halo); color: var(--halo) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — le halo qui respire (signature)
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 5rem;
  background:
    radial-gradient(120% 90% at 50% 8%, #1E2647 0%, var(--night) 55%, #11162A 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

/* ---- Fog Vanta ---- */
.hero__fog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
/* Vanta injecte un <canvas> enfant — on s'assure qu'il couvre bien */
.hero__fog canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero__content { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.hero__title {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 1.5rem;
  max-width: 16ch;
}
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.84); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2.2rem 0 2.5rem; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.95rem; color: rgba(255,255,255,0.7);
}
.hero__meta strong { color: var(--halo); font-weight: 600; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.hero__scroll-line { width: 1px; height: 38px; background: linear-gradient(var(--halo), transparent); animation: drift 2.4s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: scaleY(0.6); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   SECTIONS génériques
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--mist { background: var(--mist); }
.section--night { background: var(--night); color: var(--white); }
.section--contact { background: var(--white); }

.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.01em; }
.section__intro { margin-top: 1.1rem; color: var(--muted); font-size: 1.1rem; }
.section--night .section__intro { color: rgba(255,255,255,0.72); }
.section__aim {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-style: italic; color: var(--accent-dark); max-width: 60ch;
}

/* ---------- Piliers (approche) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { padding: 2rem 1.75rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.pillar__num { font-family: var(--font-display); font-size: 1.4rem; color: var(--halo); display: block; }
.pillar h3 { font-size: 1.3rem; margin: 0.8rem 0 0.6rem; }
.pillar p { color: var(--muted); font-size: 1rem; }
.section--mist .pillar__num { color: var(--accent); }

/* ---------- Cartes (pourquoi) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { padding: 1.9rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(22,28,51,0.35); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.services li {
  position: relative;
  padding: 1.45rem 1rem 1.45rem 2.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
}
.services li::before {
  content: ""; position: absolute; left: 0.4rem; top: 1.85rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Étapes (séance) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
.step__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--halo); line-height: 1; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.step p { color: rgba(255,255,255,0.7); font-size: 0.98rem; }

/* ---------- Équipe — cartes split horizontales ---------- */
.section--team { background: var(--night); }
.section--team .section__head { color: var(--white); }
.section--team .section__title { color: var(--white); }
.section--team .section__intro { color: rgba(255,255,255,0.60); }
.section--team .eyebrow { color: var(--halo); }

.team {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Carte ── */
.therapist {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease),
              background 0.4s var(--ease);
  cursor: default;
  perspective: 800px;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.therapist:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(240,206,154,0.25);
  box-shadow: 0 28px 60px -20px rgba(0,0,0,0.55),
              0 0 0 1px rgba(240,206,154,0.10) inset;
}

/* Numéro watermark */
.therapist__num {
  position: absolute;
  top: -0.15em; right: 1.2rem;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  transition: color 0.4s var(--ease);
}
.therapist:hover .therapist__num { color: rgba(240,206,154,0.06); }

/* ── Colonne photo ── */
.therapist__photo-col {
  position: relative;
  overflow: hidden;
}
.therapist__photo-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.therapist__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
  transform: scale(1.04);
  filter: saturate(0.85) brightness(0.92);
}
.therapist:hover .therapist__photo {
  transform: scale(1.09);
  filter: saturate(1) brightness(1);
}

/* Dégradé droit de la photo vers le fond de carte */
.therapist__photo-col::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    transparent 55%,
    rgba(14,10,24,0.7) 80%,
    rgba(14,10,24,0.98) 100%);
}

/* ── Colonne contenu ── */
.therapist__content {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.2rem 2.2rem 1.6rem;
  gap: 1.2rem;
  min-height: 320px;
}

.therapist__role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--halo);
  margin: 0 0 0.4rem;
}
.therapist__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--white);
  margin: 0;
}

/* Séparateur animé */
.therapist__divider {
  height: 1px;
  background: rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
}
.therapist__divider::after {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(to right, transparent, var(--halo), transparent);
  transition: left 0.6s var(--ease);
}
.therapist:hover .therapist__divider::after { left: 100%; }

/* Credentials */
.therapist__creds {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
  flex: 1;
}
.therapist__creds li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  transition: color 0.3s var(--ease), transform 0.35s var(--ease);
  transform: translateX(0);
}
.therapist__creds li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--halo);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}
.therapist:hover .therapist__creds li { color: rgba(255,255,255,0.88); }
.therapist:hover .therapist__creds li::before { opacity: 1; transform: scale(1.3); }

/* Animation cascade au hover (délais inline via CSS nth-child) */
.therapist:hover .therapist__creds li:nth-child(1) { transition-delay: 0.00s; }
.therapist:hover .therapist__creds li:nth-child(2) { transition-delay: 0.05s; }
.therapist:hover .therapist__creds li:nth-child(3) { transition-delay: 0.10s; }
.therapist:hover .therapist__creds li:nth-child(4) { transition-delay: 0.15s; }
.therapist:hover .therapist__creds li:nth-child(5) { transition-delay: 0.20s; }

/* Footer badges */
.therapist__footer {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 0.4rem;
}
.t-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--halo);
  border: 1px solid rgba(240,206,154,0.35);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: rgba(240,206,154,0.07);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.therapist:hover .t-badge {
  background: rgba(240,206,154,0.14);
  border-color: rgba(240,206,154,0.6);
}

/* Accent bar gauche */
.therapist__accent {
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 999px;
  background: var(--halo);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.therapist:hover .therapist__accent {
  opacity: 1;
  transform: scaleY(1);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: none; cursor: pointer;
  padding: 1.5rem 0.25rem;
  text-align: left;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 500; color: var(--text);
}
.faq__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px;
  background: var(--accent); border-radius: 2px; transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.open .faq__icon::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 0 1.5rem; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 1.75rem; }
.place { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.place:last-child { border-bottom: none; }
.place h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.place p { color: var(--muted); }
.place__link { display: inline-block; margin-top: 0.5rem; color: var(--accent); font-weight: 600; }
.place__link:hover { text-decoration: underline; }
.place--email .place__link { word-break: break-word; }
.place__note { margin-top: 0.85rem; font-size: 0.92rem; }

.contact__form { background: var(--mist); padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.field input.error, .field textarea.error { border-color: #C0573E; background: #FBF3F0; }

.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 0.4rem 0 1.4rem; cursor: pointer; }
.consent input { margin-top: 0.2rem; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }

.form__status { margin-top: 1rem; font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.form__status.ok { color: var(--accent); }
.form__status.err { color: #C0573E; }
.contact--solo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.contact--solo .place { border-bottom: none; padding-bottom: 0; }

@media (max-width: 720px) {
  .contact--solo { grid-template-columns: 1fr; }
}
/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--night); color: rgba(255,255,255,0.75); padding: 3rem 0; }
.footer__inner { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__name { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); }
.footer__role { font-size: 0.95rem; }
.footer__meta { font-size: 0.92rem; margin-top: 0.5rem; }
.footer__legal { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }

/* ============================================================
   RÉVÉLATION AU SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .pillars, .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .therapist { grid-template-columns: 200px 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(22, 28, 51, 0.97);
    backdrop-filter: blur(14px);
    padding: 0.5rem 1.25rem 1.5rem;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    border-bottom: 1px solid var(--line-light);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--line-light); }
  .nav__cta { border: none; padding: 0.95rem 0.25rem; color: var(--halo) !important; }
  .nav__toggle { display: flex; }

  .pillars, .cards, .steps, .services { grid-template-columns: 1fr; }
  .therapist { grid-template-columns: 1fr; }
  .therapist__photo-col { height: 240px; position: relative; }
  .therapist__photo-col::after { background: linear-gradient(to bottom, transparent 50%, rgba(14,10,24,0.98) 100%); }
  .therapist__num { font-size: 5rem; }
  .hero { min-height: 88vh; }
  .hero__scroll { display: none; }
}

/* ---------- Respect du mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__fog { display: none; }
}
