/* ==========================================================================
   Hypno-Corps — feuille de style
   Palette tirée du logo (arbre pétrole) : pétrole, brume, sauge, ambre.
   ========================================================================== */

@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --petrole: #0e4654;
  --petrole-deep: #08313b;
  --brume: #f1f4f2;
  --papier: #fbfcfb;
  --sauge: #a9bfb2;
  --sauge-pale: #dde7e0;
  --encre: #172529;
  --encre-doux: #4a5a5e;
  --ambre: #c99a4b;
  --ambre-clair: #e3c58f;
  --trait: #d3ddd7;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--petrole); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--petrole-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.3; font-weight: 500; }
p { max-width: 64ch; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--encre-doux); line-height: 1.6; }

.section { padding: var(--section) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin-top: 18px; color: var(--encre-doux); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--petrole); color: #fff; }
.btn-primary:hover { background: var(--petrole-deep); }
.btn-ghost { color: var(--petrole); border-color: var(--trait); background: transparent; }
.btn-ghost:hover { border-color: var(--petrole); }
.btn-light { background: var(--ambre-clair); color: var(--petrole-deep); }
.btn-light:hover { background: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 251, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--trait); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--petrole-deep); }
.brand img { width: 38px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .975rem; color: var(--encre-doux); transition: color .2s; }
.nav-links a:hover { color: var(--petrole); }
.nav-links .btn { color: #fff; padding: 12px 20px; font-size: .95rem; }
.nav-links .btn:hover { color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--petrole-deep); border-radius: 10px;
}
.menu-toggle svg { width: 26px; height: 26px; margin: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero-place { color: var(--petrole); font-weight: 500; margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.hero-place svg { width: 18px; height: 18px; }
.hero h1 em { font-style: italic; }
.hero .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: .925rem; color: var(--encre-doux); }

/* Le moment mémorable : un arbre qui « respire » au centre d'ondes lentes */
.breath { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin-left: auto; display: grid; place-items: center; }
.breath .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--sauge);
  animation: breathe 10s ease-in-out infinite;
}
.breath .ring:nth-child(1) { inset: 0;   opacity: .35; animation-delay: 0s; }
.breath .ring:nth-child(2) { inset: 9%;  opacity: .5;  animation-delay: .35s; }
.breath .ring:nth-child(3) { inset: 18%; opacity: .7;  animation-delay: .7s; }
.breath .disc {
  position: absolute; inset: 27%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--sauge-pale) 100%);
  animation: breathe 10s ease-in-out infinite; animation-delay: 1s;
}
.breath img { position: relative; width: 30%; height: auto; }
.breath-label {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; color: var(--encre-doux); font-size: .95rem; white-space: nowrap;
}
@keyframes breathe {
  0%, 100% { transform: scale(.94); }
  40%      { transform: scale(1.03); }
}

/* ---------- Motifs de consultation ---------- */
.motifs { background: var(--brume); }
.motif-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 80px); }
.motif { padding: 28px 0; border-top: 1px solid var(--trait); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.motif-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--petrole); display: grid; place-items: center; }
.motif-icon svg { width: 22px; height: 22px; }
.motif h3 { margin-bottom: 6px; }
.motif p { color: var(--encre-doux); }
.disclaimer {
  margin-top: 40px; padding: 18px 22px; border-left: 3px solid var(--ambre);
  background: #fff; border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--encre-doux); max-width: none;
}

/* ---------- Déroulé à domicile ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--petrole); color: var(--petrole);
  font-family: var(--serif); font-size: 1.15rem; display: grid; place-items: center;
}
.step::after { content: ""; position: absolute; top: 22px; left: 56px; right: -20px; height: 1px; background: var(--trait); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--encre-doux); font-size: 1rem; }
.home-note {
  margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--brume); border-radius: var(--radius); padding: 28px clamp(22px, 4vw, 36px);
}
.home-note svg { width: 28px; height: 28px; color: var(--petrole); margin-top: 2px; }
.home-note p { max-width: 75ch; color: var(--encre-doux); }
.home-note strong { color: var(--encre); font-weight: 600; }

/* ---------- Autres approches ---------- */
.approches { background: var(--petrole-deep); color: #dfe8e3; }
.approches h2, .approches h3 { color: #fff; }
.approches .section-head p { color: #b9cbc2; }
.approche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.approche { border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.approche h3 { font-size: 1.6rem; margin-bottom: 12px; }
.approche p { color: #c5d4cc; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-visual {
  aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius);
  background: linear-gradient(180deg, var(--sauge-pale) 0%, var(--brume) 100%);
  display: grid; place-items: center; overflow: hidden;
}
.about-visual img { width: 58%; height: auto; opacity: .92; }
.about-visual img.portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; opacity: 1; }
.about-role { font-weight: 600; color: var(--petrole); margin: 12px 0 24px; }
.about-text h2 { margin-bottom: 4px; }
.about-text p { color: var(--encre-doux); }
.about-text .btn { margin-top: 32px; }

/* ---------- Formations ---------- */
.formations { background: var(--brume); }
.formation-list { border-top: 1px solid var(--trait); }
.formation {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px 40px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--trait);
}
.formation p { color: var(--encre-doux); margin-top: 6px; }
.formation-meta { display: flex; gap: 20px; margin-top: 12px; font-size: .95rem; color: var(--encre-doux); flex-wrap: wrap; }
.formation-meta span { display: inline-flex; align-items: center; gap: 6px; }
.formation-meta svg { width: 16px; height: 16px; color: var(--petrole); }
.price { font-family: var(--serif); font-size: 1.75rem; color: var(--petrole-deep); white-space: nowrap; }
.price small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--encre-doux); }

/* ---------- Partenaires ---------- */
.partners { padding: 56px 0; border-bottom: 1px solid var(--trait); }
.partners-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.partners h2 { font-size: 1.25rem; }
.partner-list { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.partner-list a { display: block; transition: opacity .2s; opacity: .85; }
.partner-list a:hover { opacity: 1; }
.partner-list img { height: 56px; width: auto; max-width: 200px; object-fit: contain; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--trait); }
.faq-list details:first-child { border-top: 1px solid var(--trait); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; color: var(--petrole-deep);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--petrole); border-bottom: 1.5px solid var(--petrole);
  transform: rotate(45deg); transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 0 24px; color: var(--encre-doux); }

/* ---------- Contact ---------- */
.contact { background: var(--petrole); color: #e3ece7; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 96px); align-items: end; }
.contact .lead { color: #c5d6cd; margin-top: 18px; }
.phone-big {
  display: inline-block; margin-top: 36px; text-decoration: none;
  font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 3.6rem); color: #fff; letter-spacing: -0.01em; line-height: 1.1;
  border-bottom: 2px solid var(--ambre); padding-bottom: 4px;
}
.phone-big:hover { color: var(--ambre-clair); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.contact .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.contact .btn-ghost:hover { border-color: #fff; }
.contact-facts { display: grid; gap: 0; }
.contact-facts div { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-facts dt { font-size: .9rem; color: #a9c2b6; margin-bottom: 4px; }
.contact-facts dd { color: #fff; font-size: 1.05rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--petrole-deep); color: #a9c2b6; padding: 36px 0; font-size: .925rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal .updated { color: var(--encre-doux); margin-bottom: 48px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--encre-doux); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--encre); font-weight: 600; }
.legal a { color: var(--petrole); }
.todo { background: #fff3d9; color: #7a5300; padding: 0 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--trait);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--trait); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 16px; justify-content: center; width: 100%; padding: 16px; }

  .hero-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid .breath { order: -1; max-width: 220px; margin: 0 auto; }
  .breath-label { display: none; }
  .about-visual { max-width: 360px; aspect-ratio: 1; border-radius: var(--radius); }
  .motif-list, .approche-grid { grid-template-columns: 1fr; }
  .formation { grid-template-columns: 1fr auto; }
  .formation .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; justify-content: center; }
  .home-note { grid-template-columns: 1fr; }
  .partner-list { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath .ring, .breath .disc { animation: none; }
  * { transition: none !important; }
}

/* ==========================================================================
   Ajouts : titre principal SEO, zone, pages par motif, pied de page
   ========================================================================== */

/* Le h1 porte le mot-clé ; la grande phrase reste l'élément visuel */
h1.hero-place {
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.4;
  letter-spacing: 0; color: var(--petrole);
}
.hero-title {
  font-family: var(--serif); font-weight: 400; color: var(--petrole-deep);
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em; max-width: none;
}
.hero-title em { font-style: italic; }

/* Liens dans les titres de motifs */
.motif h3 a, .approche h3 a { text-decoration: none; }
.motif h3 a:hover { color: var(--petrole); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.approche h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.home-note a, .section-head a, .prose a { color: var(--petrole); }

/* Zone d'intervention */
.zone { background: var(--brume); }
.zone-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.zone .section-head { margin-bottom: 0; }
.zone .section-head p + p { margin-top: 14px; }
.town-list { columns: 3; column-gap: 32px; }
.town-list li {
  break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--trait);
  display: flex; justify-content: space-between; gap: 12px; font-size: .975rem;
}
.town-list li span { color: var(--encre-doux); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* Contact : liens */
.contact-facts dd a { color: #fff; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.contact-facts dd a:hover { text-decoration-color: #fff; }

/* Pages par motif */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); background: var(--brume); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { margin-top: 22px; }
.crumbs { font-size: .9rem; color: var(--encre-doux); margin-bottom: 28px; }
.crumbs a { color: var(--petrole); }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--encre-doux); }
.prose .disclaimer { margin-top: 48px; }
.faq-band { background: var(--brume); }
.related h2 { font-size: 1.5rem; margin-bottom: 20px; }
.related-list { display: flex; flex-wrap: wrap; gap: 12px; }
.related-list a {
  display: inline-block; padding: 12px 20px; border: 1.5px solid var(--trait); border-radius: 999px;
  text-decoration: none; color: var(--petrole); font-weight: 500; transition: border-color .2s;
}
.related-list a:hover { border-color: var(--petrole); }

/* Pied de page enrichi */
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 28px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer-cols ul { display: grid; gap: 6px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 860px) {
  .zone-grid { grid-template-columns: 1fr; }
  .town-list { columns: 2; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .page-hero .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Ajustements */
.wrap.prose { max-width: var(--wrap); }
.prose > * { max-width: 70ch; }
.zone-grid { grid-template-columns: 1fr; gap: 40px; }
.zone .section-head { max-width: 720px; }
.town-list { columns: 4; column-gap: 40px; }
@media (max-width: 960px) { .town-list { columns: 3; } }
@media (max-width: 640px) { .town-list { columns: 2; column-gap: 24px; } }

/* Portrait */
.about-visual picture { display: block; width: 100%; height: 100%; }
@media (max-width: 860px) {
  .about-visual { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); }
}
