/*-- KINAGI · PAGE DES STAGES -----------------------------------------------
  Cette feuille complète style.css. Les couleurs et tailles de titres restent
  définies dans style.css ; ici, ne modifier que la disposition des stages.
  Elle sert aussi aux pages détaillées des degrés (reiki1.html à reiki4.html).
----------------------------------------------------------------------------*/
/*-- 01 · COULEURS LOCALES DE LA PAGE ---------------------------------------*/
.stages-page {
  --background-stages-intro: transparent;
  --background-stage-outro: var(--color-paper-deep);
  --color-stage-copy: var(--color-muted);
  --color-stage-title: var(--color-ink);
  --color-stage-route: var(--color-line);
}

/*-- 02 · INTRODUCTION ------------------------------------------------------*/
.stages-intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(4rem, 8vw, 6.5rem);
  background: var(--background-stages-intro);
}
.stages-intro h1 {
  max-width: 900px;
  color: var(--color-stage-title);
}
.stages-intro-text {
  max-width: 650px;
  margin-top: 1.4rem;
  color: var(--color-stage-copy);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.stages-intro .button { margin-top: 1.7rem; }
.intro-ornament {
  position: absolute;
  right: 5%;
  bottom: 15%;
  width: clamp(120px, 19vw, 250px);
  aspect-ratio: 1;
  border: 1px solid var(--color-line);
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  opacity: .55;
  transform: rotate(-21deg);
  pointer-events: none;
}

/*-- 03 · CHEMIN VISUEL ET BLOCS DES QUATRE DEGRÉS --------------------------*/
.journey {
  position: relative;
  padding-block: 0 clamp(4.5rem, 9vw, 8rem);
}
.journey-route {
  position: absolute;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.journey-route path {
  fill: none;
  stroke: var(--color-stage-route);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}
.journey-route-desktop {
  top: 1%;
  bottom: 1%;
  left: calc(50% - 32px);
  width: 64px;
  height: 98%;
}
.journey-route-mobile { display: none; }
.stage-detail {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 510px;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 0;
  scroll-margin-top: 1rem;
}
.stage-visual {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  min-height: 350px;
  place-items: center;
}
/* Les classes de degré fixent l'alternance sans dépendre de la position
   des articles parmi leurs frères dans le HTML. */
.stage-detail-one .stage-visual,
.stage-detail-three .stage-visual { grid-column: 3; }
.stage-image {
  width: min(88%, 430px);
  height: clamp(280px, 33vw, 410px);
  box-shadow: 0 20px 60px rgb(36 38 36 / 8%);
}
.stage-image-one { border-radius: 46% 54% 43% 57% / 37% 43% 57% 63%; }
.stage-image-two { width: min(84%, 395px); height: clamp(300px, 34vw, 420px); border-radius: 56% 44% 49% 51% / 46% 58% 42% 54%; }
.stage-image-three { width: min(88%, 430px); height: clamp(290px, 32vw, 400px); border-radius: 41% 59% 57% 43% / 54% 42% 58% 46%; }
.stage-image-four { width: min(84%, 410px); height: clamp(280px, 32vw, 400px); border-radius: 58% 42% 43% 57% / 42% 54% 46% 58%; }
/* Largeur fixe commune : les deux blocs d'un même degré (intro et « tu apprends à »)
   occupent la même largeur, donc restent alignés même calés à droite (degrés 1 et 3). */
.stage-copy {
  width: 100%;
  max-width: 490px;
  box-sizing: border-box;
}
.stage-copy-intro { grid-column: 3; grid-row: 1; padding-top: 1rem; }
.stage-copy-learning { grid-column: 3; grid-row: 2; padding-bottom: 1rem; }
.stage-detail-one .stage-copy-intro,
.stage-detail-three .stage-copy-intro { grid-column: 1; grid-row: 1; justify-self: end; }
.stage-detail-one .stage-copy-learning,
.stage-detail-three .stage-copy-learning { grid-column: 1; grid-row: 2; justify-self: end; }
.stage-copy .eyebrow { margin-bottom: .9rem; }
.stage-copy h2 {
  margin-bottom: 1.15rem;
  color: var(--color-stage-title);
}
.stage-copy h2 span {
  display: inline-block;
  margin-top: .08em;
  color: var(--color-accent);
  font-size: .72em;
  line-height: 1.12;
}
.stage-copy > p:not(.eyebrow):not(.stage-lead):not(.stage-meta) {
  margin-top: .85rem;
  color: var(--color-stage-copy);
}
.stage-copy .stage-lead {
  max-width: 470px;
  margin-bottom: 1.1rem;
  color: var(--color-ink);
  font: 400 clamp(1.3rem, 2vw, 1.65rem)/1.3 var(--font-heading);
}
.stage-copy h3 {
  margin-top: 1.35rem;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.45;
}
.stage-points {
  display: grid;
  margin: .6rem 0 0;
  padding: 0;
  gap: .4rem;
  color: var(--color-stage-copy);
  font-size: var(--font-size-small);
  line-height: 1.5;
  list-style: none;
}
.stage-points li { position: relative; padding-left: 1.1rem; }
.stage-points li::before {
  position: absolute;
  top: .68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  content: '';
}
.stage-meta {
  margin-top: 1.15rem;
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .07em;
}
.stage-meta span { padding-inline: .35rem; color: var(--color-line); }
.stage-meta-upcoming { text-transform: uppercase; }
.stage-copy .text-link { margin-top: 1.1rem; }

/*-- 04 · FAQ ET APPEL À CONTACT --------------------------------------------*/
.stages-outro {
  display: flex;
  margin-bottom: clamp(4rem, 9vw, 8rem);
  padding: clamp(2rem, 5vw, 4rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--background-stage-outro);
}
.stages-outro > div { max-width: 600px; }
.stages-outro h2 { margin-bottom: .8rem; }
.stages-outro p:not(.eyebrow) { color: var(--color-stage-copy); }
.stages-outro .button { flex: 0 0 auto; }

.stage-faq {
  display: grid;
  padding-block: 0 clamp(4rem, 8vw, 7rem);
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 7vw, 7rem);
}
.stage-faq-heading { max-width: 390px; }
.stage-faq-list { border-top: 1px solid var(--color-line); }
.stage-faq-item { border-bottom: 1px solid var(--color-line); }
.stage-faq-item summary {
  position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  color: var(--color-ink);
  cursor: pointer;
  font: 400 clamp(1.1rem, 1.7vw, 1.35rem)/1.3 var(--font-heading);
  list-style: none;
}
.stage-faq-item summary::-webkit-details-marker { display: none; }
.stage-faq-item summary::after {
  position: absolute;
  top: 1.2rem;
  right: .25rem;
  color: var(--color-accent);
  content: '+';
  font: 400 1.4rem/1 var(--font-body);
}
.stage-faq-item[open] summary::after { content: '−'; }
.stage-faq-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.stage-faq-answer { max-width: 680px; padding: 0 2rem 1.3rem 0; }
.stage-faq-answer p { margin-top: .65rem; color: var(--color-stage-copy); }
.stage-faq-answer p:first-child { margin-top: 0; }

/*-- 05 · PAGES DÉTAILLÉES DES DEGRÉS (reiki1.html à reiki4.html) ----------*/
.degree-page-back { display: inline-flex; margin-bottom: 1.8rem; }
/* Information manquante dans une phrase : reste visible tant qu'elle n'est pas complétée. */
.degree-missing {
  padding: .05em .35em;
  border: 1px dashed var(--color-accent);
  color: var(--color-accent);
}

/* Fond des pages de degré : quelques courbes zen très légères, sans image.
   Pour les modifier, édite le fichier zen-bg.svg. */
.degree-page {
  background-image: url("zen-bg.svg");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: max(100%, 1100px) auto;
}

/* En-tête de page : un grand ensō discret derrière le titre. */
.degree-hero {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3.5rem, 7vw, 5.5rem);
}
.degree-hero::after {
  position: absolute;
  z-index: 0;
  top: clamp(1rem, 4vw, 3rem);
  right: -1%;
  width: clamp(200px, 26vw, 340px);
  aspect-ratio: 1;
  background: url("zen-enso.svg") center / contain no-repeat;
  opacity: .28;
  pointer-events: none;
  content: '';
}
.degree-hero > * { position: relative; z-index: 1; }
.degree-hero h1 { max-width: 780px; color: var(--color-stage-title); }
.degree-hero .stage-meta { margin-top: 1.4rem; }
.degree-hero .button { margin-top: 1.6rem; }
.degree-hero .degree-page-back { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* Blocs de contenu : une colonne de lecture. */
.degree-block {
  position: relative;
  display: grid;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
}
/* Séparateur : un trait fin qui s'estompe vers les bords, avec un petit point terracotta. */
.degree-block::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background:
    radial-gradient(circle, var(--color-accent) 0 3px, transparent 3.5px) center / 7px 7px no-repeat,
    linear-gradient(90deg, transparent, var(--color-line) 18%, var(--color-line) 82%, transparent) center / 100% 1px no-repeat;
  opacity: .9;
  content: '';
}
.degree-block-copy { max-width: 680px; }
.degree-block .eyebrow, .degree-offer .eyebrow { margin-bottom: .9rem; }
.degree-block h2, .degree-offer h2 { margin-bottom: 1.4rem; color: var(--color-stage-title); }
.degree-block-copy > p:not(.eyebrow) { color: var(--color-stage-copy); }
.degree-block-copy > p:not(.eyebrow) + p,
.degree-block-copy > .stage-points + p { margin-top: 1rem; }
.degree-block .stage-points, .degree-offer .stage-points { margin: 1.2rem 0 1.2rem; gap: .7rem; font-size: var(--font-size-p); }
.degree-block .stage-points strong { color: var(--color-ink); font-weight: 600; }

/* « C'est pour toi si » / « Ce n'est pas pour toi si » */
.degree-audience {
  display: grid;
  margin-top: 1.8rem;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.degree-audience-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgb(214 199 187 / 70%);
  border-radius: 2rem .9rem 2rem .9rem;
  background: linear-gradient(160deg, rgb(255 255 255 / 55%), rgb(255 255 255 / 15%));
}
.degree-audience-card.is-not { border-radius: .9rem 2rem .9rem 2rem; background: linear-gradient(200deg, rgb(238 233 223 / 70%), rgb(238 233 223 / 25%)); }
.degree-audience-card h3 { font-size: var(--font-size-h3); color: var(--color-stage-title); }
.degree-audience-card .stage-points { margin-bottom: 0; }
.degree-audience-card.is-not .stage-points li::before { background: var(--color-muted); }

/* Bloc de l'offre, sur fond légèrement plus soutenu. */
.degree-offer {
  position: relative;
  overflow: hidden;
  margin-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 5vw, 4rem) clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, var(--color-paper-deep), #f1e1d7);
}
/* Grand ensō en filigrane, à droite de l'offre. */
.degree-offer::after {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 1;
  background: url("zen-enso.svg") center / contain no-repeat;
  opacity: .16;
  pointer-events: none;
  content: '';
}
.degree-offer > * { position: relative; z-index: 1; }
/* Sur les pages des degrés, le bloc d'inscription prend la même forme douce que l'offre. */
.degree-offer, .degree-offer ~ .stages-outro { box-sizing: border-box; }
.degree-offer ~ .stages-outro {
  border-radius: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 5vw, 4rem) clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(225deg, var(--color-paper-deep), #f3e6dd);
}
.degree-offer .degree-block-copy > p:not(.eyebrow) { color: var(--color-stage-copy); }
.degree-offer .degree-block-copy > p.degree-price { color: var(--color-ink); font: 400 clamp(1.3rem, 2vw, 1.65rem)/1.3 var(--font-heading); }
.degree-offer .button { margin-top: 1.8rem; }

@media (max-width: 1100px) {
  /* Tablette : l'ensō se fait plus petit pour ne pas toucher le titre. */
  .degree-hero::after { right: -3rem; width: 220px; opacity: .2; }
}

/*-- 06 · ADAPTATION MOBILE -------------------------------------------------*/
@media (max-width: 760px) {
  .stages-intro { padding-block: 3.5rem 3rem; }
  .stages-intro h1 { max-width: 600px; }
  .intro-ornament { right: -3rem; bottom: 9%; width: 130px; opacity: .35; }
  .journey { padding-bottom: 3rem; }
  .journey-route-desktop { display: none; }
  .journey-route-mobile {
    top: 1.5rem;
    bottom: 1.5rem;
    left: -20px;
    display: block;
    width: 46px;
    height: calc(100% - 3rem);
  }
  .journey-route-mobile path { stroke-width: 1.3; }
  .stage-detail {
    min-height: 0;
    padding-block: 2rem 3rem;
    padding-left: 2.5rem;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .stage-visual,
  .stage-detail-one .stage-visual,
  .stage-detail-three .stage-visual {
    min-height: 0;
    grid-column: 1;
    grid-row: 2;
    justify-items: center;
    margin-top: 1.2rem;
  }
  .stage-image,
  .stage-image-two,
  .stage-image-three,
  .stage-image-four {
    width: min(72%, 300px);
    height: clamp(210px, 58vw, 280px);
  }
  .stage-copy,
  .stage-detail-one .stage-copy-intro,
  .stage-detail-three .stage-copy-intro,
  .stage-detail-one .stage-copy-learning,
  .stage-detail-three .stage-copy-learning,
  .stage-copy-intro,
  .stage-copy-learning {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    max-width: 620px;
    padding: 0;
  }
  .stage-copy-intro { grid-row: 1; }
  .stage-copy-learning { grid-row: 3; }
  .stage-copy .eyebrow { font-size: .65rem; }
  .stage-copy > p:not(.eyebrow):not(.stage-lead):not(.stage-meta) { margin-top: .75rem; }
  .stage-copy h3 { margin-top: 1.1rem; }
  .stages-outro { margin-bottom: 4rem; padding: 1.5rem; align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .stage-faq { padding-bottom: 4rem; grid-template-columns: 1fr; gap: 1.4rem; }
  .stage-faq-heading { max-width: 600px; }
  .stage-faq-item summary { padding-block: 1rem; font-size: 1.15rem; }
  .stage-faq-item summary::after { top: 1rem; }
  .stage-faq-answer { padding-right: .5rem; }
  .degree-hero::after { top: .5rem; right: -2rem; width: 180px; opacity: .16; }
  .degree-offer::after { right: -18%; bottom: -10%; width: 200px; opacity: .1; }
  .degree-audience { grid-template-columns: 1fr; }
  .degree-offer { padding: 1.5rem; }
}

/* Les transitions et animations globales respectent la préférence de mouvement
   réduit dans style.css, chargé avant cette feuille. */

/*-- MOBILE : AUCUN DÉCOR NE DÉPASSE À DROITE --------------------------------*/
@media (max-width: 760px) {
  .stages-outro { box-sizing: border-box; }
}
