/* Hypnose Barcelone — feuille de style
   Concept : « ouverture ». Un ciel qui se dissout dans l'ivoire, une colonne de lecture
   éditoriale décalée à gauche, des arcs souples empruntés aux fenêtres de la Casa Comalat. */
:root {
  --ivoire: #F7F5F0;
  --papier: #FBFAF7;
  --brume: #DCE7EC;
  --bleu-doux: #A8BCC8;
  --ardoise: #526D7A;
  --ardoise-fonce: #3F5864;
  --anthracite: #343C42;
  --texte-doux: #5B656C;
  --filet: #D9DFE1;
  --lumiere: #C8B27E;
  --todo-bg: #FFF4D6;
  --todo-fg: #7A5A12;

  --f-titre: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-texte: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  --t-xl: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --t-xxl: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);

  --col: 40rem;
  --large: 72rem;
  --rayon: 4px;
  --arc: 999px 999px 4px 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--anthracite);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ivoire); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ardoise); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ardoise-fonce); }
:focus-visible { outline: 2px solid var(--ardoise); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 500; line-height: 1.12; color: var(--anthracite); text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: var(--t-xxl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); }
h1 em, h2 em { font-style: italic; color: var(--ardoise); }
p { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.1rem; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--bleu-doux); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--anthracite); color: var(--papier); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Gabarits */
.wrap { width: 100%; max-width: var(--large); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--brume { background: var(--brume); }
.section--papier { background: var(--papier); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--texte-doux); max-width: 36rem; }
.surtitre { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--ardoise); font-weight: 500; }
.col { max-width: var(--col); }
.grille-2 { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .grille-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .grille-2--inv { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.grille-2 > * { min-width: 0; }
.entete-section { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); max-width: 44rem; }

/* En-tête du site */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ivoire) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--filet); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.marque { text-decoration: none; color: var(--anthracite); display: grid; line-height: 1.15; }
.marque__nom { font-family: var(--f-titre); font-size: 1.4rem; font-weight: 500; }
.marque__activite { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-doux); }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; color: var(--anthracite); font-size: var(--t-s); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ardoise); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--bleu-doux); text-underline-offset: 0.45em; }
@media (min-width: 1040px) { .nav { display: block; } .menu-bouton { display: none; } }

.menu-bouton { background: none; border: 1px solid var(--filet); color: var(--anthracite); font: inherit; font-size: var(--t-s); padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer; }
.menu-mobile { border-top: 1px solid var(--filet); background: var(--ivoire); padding-block: 1rem 1.5rem; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-mobile a { display: block; padding: 0.75rem 0; text-decoration: none; color: var(--anthracite); font-family: var(--f-titre); font-size: 1.35rem; border-bottom: 1px solid var(--filet); }
.menu-mobile .bouton { margin-top: 1.25rem; }
@media (min-width: 1040px) { .menu-mobile { display: none !important; } }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; padding: 0.85rem 1.5rem; border-radius: 999px; background: var(--ardoise); color: #fff; text-decoration: none; font-size: var(--t-s); font-weight: 500; letter-spacing: 0.01em; border: 1px solid var(--ardoise); cursor: pointer; transition: background .25s, color .25s, border-color .25s; font-family: var(--f-texte); }
.bouton:hover { background: var(--ardoise-fonce); border-color: var(--ardoise-fonce); color: #fff; }
.bouton--clair { background: transparent; color: var(--ardoise); }
.bouton--clair:hover { background: var(--ardoise); color: #fff; }
.bouton--petit { padding: 0.55rem 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.lien-fleche { font-weight: 500; text-decoration: none; font-size: var(--t-s); border-bottom: 1px solid var(--bleu-doux); padding-bottom: 2px; }
.lien-fleche::after { content: " →"; }

/* Héros */
.heros { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 2rem + 9vw, 9rem) clamp(2rem, 1rem + 3vw, 4rem); }
.heros__ciel { position: absolute; inset: 0; z-index: -1; }
.heros__ciel img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; }
.heros__ciel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(to bottom, transparent, var(--ivoire)); }
.heros .wrap { display: grid; gap: 1.6rem; }
.heros__grille { gap: 2.5rem !important; align-items: center; }
.heros__texte { display: grid; gap: 1.6rem; min-width: 0; }
.heros__photo { min-width: 0; }
.heros__photo .arc { aspect-ratio: 1 / 1; max-width: 26rem; box-shadow: 0 30px 60px -30px rgba(52, 60, 66, 0.35); }
@media (min-width: 900px) { .heros__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .heros__photo .arc { aspect-ratio: 4 / 5; margin-left: auto; } }
.heros h1 { max-width: 17ch; }
.heros__sous { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--anthracite); max-width: 34rem; }
.heros__infos { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--t-s); color: var(--texte-doux); padding-top: 0.5rem; }
.heros__infos span::before { content: "✦"; color: var(--lumiere); margin-right: 0.5em; font-size: 0.7em; vertical-align: 0.15em; }
.heros--page { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.heros--page h1 { max-width: 18ch; }

/* Citation Apollinaire */
.citation { text-align: left; padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); position: relative; overflow: hidden; }
.citation blockquote { margin: 0; max-width: 46rem; }
.citation p { font-family: var(--f-titre); font-style: italic; font-weight: 400; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.8rem); line-height: 1.1; color: var(--anthracite); text-wrap: balance; }
.citation cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-doux); }
.etoiles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.citation .wrap { position: relative; z-index: 1; }
.etoile { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--lumiere); opacity: 0.25; transition: opacity 2.4s ease; }
.citation.is-allumee .etoile { opacity: 0.9; }

/* Domaines d'accompagnement */
.domaines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--filet); }
@media (min-width: 720px) { .domaines { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); } }
.domaines li { padding-block: 1.5rem; border-bottom: 1px solid var(--filet); display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.domaines h3 { font-size: 1.45rem; }
.domaines p { color: var(--texte-doux); font-size: var(--t-s); }

/* Étapes (vraie séquence) */
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 0; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--filet); }
.etapes li::before { content: counter(etape); font-family: var(--f-titre); font-size: 2rem; line-height: 1; color: var(--bleu-doux); font-style: italic; }
.etapes h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.etapes p { color: var(--texte-doux); }

/* Arc architectural — emplacements photo */
.arc { position: relative; border-radius: var(--arc); overflow: hidden; background: linear-gradient(170deg, var(--brume), var(--bleu-doux)); aspect-ratio: 3 / 4; max-width: 100%; display: grid; place-items: end start; }
.arc--large { aspect-ratio: 4 / 5; }
.arc--paysage { border-radius: 260px 260px 4px 4px; aspect-ratio: 4 / 3; }
.arc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-a-venir { position: relative; margin: 1rem; padding: 0.6rem 0.8rem; background: rgba(251, 250, 247, 0.92); border: 1px dashed var(--ardoise); border-radius: var(--rayon); font-size: var(--t-xs); line-height: 1.45; color: var(--anthracite); max-width: 22rem; }
.photo-a-venir strong { display: block; color: var(--ardoise-fonce); font-weight: 500; }
.galerie { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.galerie figure { margin: 0; display: grid; gap: 0.6rem; }
.galerie figcaption { font-size: var(--t-xs); color: var(--texte-doux); }

/* Motif d'arc décoratif (filet) */
.filet-arc { display: block; width: 100%; max-width: 12rem; height: auto; color: var(--bleu-doux); margin-bottom: 1.5rem; }

/* Encadrés informatifs */
.note { border-left: 2px solid var(--bleu-doux); padding: 0.25rem 0 0.25rem 1.25rem; color: var(--texte-doux); font-size: var(--t-s); }
.note strong { color: var(--anthracite); font-weight: 500; }
.encadre { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.encadre h2, .encadre h3 { margin-bottom: 0.75rem; }

/* Fiche pratique (libellé / valeur) */
.fiche { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--filet); }
.fiche > div { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding-block: 1rem; border-bottom: 1px solid var(--filet); }
@media (min-width: 600px) { .fiche > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; } }
.fiche dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ardoise); padding-top: 0.25rem; }
.fiche dd { margin: 0; }

/* Éléments à compléter */
.todo { background: var(--todo-bg); color: var(--todo-fg); border: 1px dashed #D4A93C; border-radius: 3px; padding: 0.05em 0.4em; font-size: 0.92em; font-family: var(--f-texte); font-style: normal; white-space: normal; }

/* Citation personnelle */
.phrase { font-family: var(--f-titre); font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.75rem); line-height: 1.2; font-style: italic; color: var(--ardoise-fonce); border: 0; margin: 0; padding: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--f-titre); font-size: 1.45rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1.15rem; font-family: var(--f-texte); font-weight: 300; font-size: 1.5rem; color: var(--ardoise); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .reponse { padding-bottom: 1.5rem; max-width: var(--col); color: var(--anthracite); }
.faq .reponse > * + * { margin-top: 0.8em; }

/* Formulaire */
.formulaire { display: grid; gap: 1.15rem; }
.champ { display: grid; gap: 0.4rem; }
.champ label, .champ legend { font-size: var(--t-s); font-weight: 500; }
.champ .aide { font-size: var(--t-xs); color: var(--texte-doux); }
.champ input, .champ textarea, .champ select { font: inherit; font-size: 1rem; color: var(--anthracite); background: var(--papier); border: 1px solid #C9D3D7; border-radius: var(--rayon); padding: 0.75rem 0.9rem; width: 100%; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--bleu-doux); outline-offset: 0; border-color: var(--ardoise); }
.champ textarea { min-height: 9rem; resize: vertical; }
fieldset.champ { border: 0; padding: 0; margin: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.choix label { font-weight: 400; display: inline-flex; gap: 0.45rem; align-items: center; }
.consentement { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--t-s); }
.consentement input { margin-top: 0.35rem; width: auto; }
.piege { position: absolute; left: -9999px; }
.message-envoi { padding: 1rem 1.25rem; border-radius: var(--rayon); background: var(--brume); font-size: var(--t-s); }

/* Contact rapide */
.coordonnees { display: grid; gap: 1.25rem; }
.coordonnees div { display: grid; gap: 0.2rem; justify-items: start; }
.coordonnees .libelle { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ardoise); }

/* Bandeau rendez-vous */
.appel { background: var(--anthracite); color: var(--ivoire); }
.appel h2 { color: var(--ivoire); }
.appel h2 em { color: var(--bleu-doux); }
.appel p { color: #C9D2D6; }
.appel .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .appel .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.appel .bouton { background: var(--ivoire); color: var(--anthracite); border-color: var(--ivoire); }
.appel .bouton:hover { background: var(--brume); border-color: var(--brume); color: var(--anthracite); }
.appel .bouton--clair { background: transparent; color: var(--ivoire); border-color: #6E7A82; }
.appel .bouton--clair:hover { background: var(--ivoire); color: var(--anthracite); }

/* Pied de page */
.site-footer { background: var(--papier); border-top: 1px solid var(--filet); padding-block: 3.5rem 2.5rem; font-size: var(--t-s); color: var(--texte-doux); }
.site-footer .wrap { display: grid; gap: 2.5rem; }
.pied-grille { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pied-grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.pied-grille h2 { font-family: var(--f-texte); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ardoise); font-weight: 500; margin-bottom: 0.8rem; }
.pied-grille ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.pied-grille a { color: var(--anthracite); text-decoration: none; }
.pied-grille a:hover { color: var(--ardoise); text-decoration: underline; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--filet); font-size: var(--t-xs); }

/* Fil d'Ariane */
.ariane { font-size: var(--t-xs); color: var(--texte-doux); }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.ariane li + li::before { content: "/"; margin-right: 0.4rem; color: var(--bleu-doux); }
.ariane a { color: var(--texte-doux); }

/* Liens entre pages */
.suite { display: grid; gap: 1rem; grid-template-columns: 1fr; border-top: 1px solid var(--filet); padding-top: 2rem; margin-top: 3rem; }
@media (min-width: 720px) { .suite { grid-template-columns: 1fr 1fr; } }
.suite a { text-decoration: none; display: grid; gap: 0.2rem; color: var(--anthracite); }
.suite small { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ardoise); }
.suite span { font-family: var(--f-titre); font-size: 1.5rem; }
.suite a:hover span { color: var(--ardoise); }

/* Bandeau démo */
.bandeau-demo { background: var(--todo-bg); color: var(--todo-fg); font-size: var(--t-xs); text-align: center; padding-block: 0.5rem; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.heros--page h1.h1-citation { font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.4rem); font-style: italic; font-weight: 400; max-width: 26ch; line-height: 1.25; }

/* Citation d'Apollinaire sur une seule ligne sur grand écran */
@media (min-width: 1000px) {
  .citation blockquote { max-width: none; }
  .citation p { white-space: nowrap; font-size: clamp(2.4rem, 1rem + 2.6vw, 3.4rem); }
}

/* Citation sur ciel étoilé, dans les tons de l'illustration de la Thérapie Symbolique Avancée */
.citation--nuit { background: #4F6C83; isolation: isolate; }
.citation__ciel { position: absolute; inset: 0; z-index: -1; }
.citation__ciel img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.citation--nuit p { color: #FBF8F1; text-shadow: 0 1px 18px rgba(30, 45, 60, 0.35); }
.citation--nuit cite { color: #DCE6EC; }
.citation--nuit .etoile { background: #FFF1CC; box-shadow: 0 0 8px 2px rgba(255, 236, 190, 0.55); }

/* Sur grand écran, l'image accompagne la lecture : elle reste visible pendant que le texte défile */
@media (min-width: 860px) {
  .grille-2 > .arc,
  .grille-2 > :has(> .arc),
  .grille-2 > :has(> h2 + .arc) {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 6.5rem);
    align-self: start;
  }
}

/* Page « Qui suis-je » : la phrase d'accroche et la ligne qui suit tiennent sur une ligne sur grand écran */
@media (min-width: 1000px) {
  .heros--page h1.h1-citation { max-width: none; text-wrap: nowrap; white-space: nowrap; }
  .heros--page h1.h1-citation + .lede { max-width: none; }
}

/* Sur grand écran, les titres et textes d'introduction profitent de toute la largeur */
@media (min-width: 1000px) {
  .heros--page h1 { max-width: none; }
  .heros--page .lede { max-width: 56rem; }
  .entete-section { max-width: 60rem; }
  .entete-section .lede { max-width: 56rem; }
}

/* Croissant de lune toujours visible, quel que soit l'écran */
.citation__lune { position: absolute; z-index: 0; width: clamp(34px, 2rem + 2vw, 64px); height: auto; top: clamp(1.25rem, 1rem + 2vw, 2.5rem); right: max(1.5rem, calc(env(safe-area-inset-right, 0px) + 1.5rem), calc((100% - 72rem) / 2 + 2rem)); filter: drop-shadow(0 0 10px rgba(255, 236, 190, 0.45)); }
.encadre.ouverture { background: linear-gradient(135deg, var(--papier), var(--brume)); border-color: transparent; }

/* Menu mobile : le bouton « Prendre rendez-vous » garde son texte blanc, bien lisible */
.menu-mobile a.bouton { display: inline-flex; color: #fff; font-family: var(--f-texte); font-size: var(--t-m); border-bottom: 0; padding: 0.85rem 1.6rem; margin-top: 1.25rem; }
.menu-mobile a.bouton:hover { color: #fff; }
.site-header .menu-mobile .wrap { display: block; min-height: 0; }
.menu-mobile ul { width: 100%; }
