/* ==========================================================================
   Cercle des Bâtisseuses — version « Mélange »
   L'univers illustré (stickers, doodles, couleurs pop) + la mise en scène
   de « Deux mondes » (cercles qui se rejoignent, cartes en arche au scroll).
   ========================================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d6;
  --card: #fffcf6;
  --ink: #1f1b1a;
  --ink-2: #4e4643;
  --ink-3: #847a76;

  --sky-1: #d6e6f6;
  --sky-2: #9dbde6;
  --sky-3: #6f9bd8;
  --cobalt: #2152d9;
  --pink: #f5b8d6;
  --pink-2: #ec8cbc;
  --cocoa: #521f17;
  --cocoa-2: #6b2d22;
  --mint: #aed8bc;
  --butter: #f6d66e;
  --peach: #f4b795;
  --lilac: #bfa8de;

  --font-display: "Fraunces", Georgia, serif;
  --font-hand: "Shantell Sans", "Comic Sans MS", cursive;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* Échelle d'espacement : chaque écart du site vient de ces paliers */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: clamp(20px, 2.5vw, 28px);
  --space-l: clamp(32px, 4vw, 48px); /* titre → texte dans la même colonne */
  --space-xl: clamp(44px, 6vw, 72px); /* titre → contenu */
  --space-2xl: clamp(64px, 8vw, 110px); /* entre deux blocs d'une section */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(90px, 12vw, 160px); /* marge intérieure des blocs colorés */
  --section-gap: clamp(120px, 13vw, 200px); /* écart entre deux sections, quelles qu'elles soient */
  --card-w: clamp(220px, 18vw, 270px);
  --radius: 28px;
  --border: 2px solid var(--ink);
  --shadow-hard: 4px 5px 0 var(--ink);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain de papier */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

svg {
  display: block;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Doodles & stickers ---------- */

.doodle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.sticker {
  color: var(--ink);
  fill: var(--fill, var(--pink));
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  filter:
    drop-shadow(3px 0 0 var(--card))
    drop-shadow(-3px 0 0 var(--card))
    drop-shadow(0 3px 0 var(--card))
    drop-shadow(0 -3px 0 var(--card))
    drop-shadow(0 8px 10px rgba(31, 27, 26, 0.16));
}

/* ---------- Typographie ---------- */

.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  line-height: 1.2;
}

.display,
.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Les mots en italique deviennent des mots surlignés au feutre */
.display em,
.arch__title em {
  font-style: normal;
  padding: 0 0.1em;
  background: linear-gradient(176deg, transparent 52%, var(--pink) 52%, var(--pink) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-s);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cobalt);
}

.label::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c4 30 14 40 46 46-32 6-42 16-46 46-4-30-14-40-46-46 32-6 42-16 46-46z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c4 30 14 40 46 46-32 6-42 16-46 46-4-30-14-40-46-46 32-6 42-16 46-46z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lead {
  font-size: 1.16em;
  line-height: 1.55;
  color: var(--ink) !important;
}

.underlined {
  position: relative;
  display: inline-block;
}

.underlined__line {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.3em;
  color: var(--cobalt);
  stroke-width: 3.5;
}

/* ---------- Boutons, étiquettes ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: var(--border);
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn:hover {
  background: var(--pink-2);
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--ghost {
  background: var(--card);
}

.btn--small {
  padding: 9px 20px;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- En-tête & progression ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Sur le fond bordeaux du haut de page, le nom passe en clair */
.brand {
  transition: color 0.4s var(--ease);
}

.site-header:not(.is-scrolled) .brand {
  color: var(--paper);
}

.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 0 var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

/* Pastille de chapitre : c'est aussi le sommaire, elle s'ouvre au clic */
.progress {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(24px, 2.5vw, 36px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.progress__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.progress__toggle:hover,
.progress__toggle[aria-expanded="true"] {
  translate: -2px -2px;
  box-shadow: 5px 5px 0 var(--ink);
}

.progress__toggle:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.progress__dial {
  position: relative;
  display: grid;
  place-items: center;
}

.progress__icon {
  position: absolute;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Les trois traits du menu deviennent une croix quand le sommaire est ouvert */
.progress__line {
  transform-origin: 8px 8px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.progress__toggle[aria-expanded="true"] .progress__line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.progress__toggle[aria-expanded="true"] .progress__line:nth-child(2) {
  opacity: 0;
}

.progress__toggle[aria-expanded="true"] .progress__line:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Le sommaire, comme une petite fenêtre d'appli : barre de titre à trois pastilles, liste numérotée */
.progress__menu {
  display: flex;
  flex-direction: column;
  width: 280px;
  max-height: min(74vh, 620px);
  margin: 0;
  overflow: hidden;
  border: var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 4px 5px 0 var(--ink);
  transform-origin: bottom right;
  animation: menu-in 0.25s var(--ease);
}

.progress__menu[hidden] {
  display: none;
}

.progress__title {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 10px 16px;
  border-bottom: var(--border);
  background: var(--sky-1);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

/* Les trois pastilles de la barre de fenêtre */
.progress__title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 17px 0 0 -1.5px var(--butter), 17px 0 0 0 var(--ink), 34px 0 0 -1.5px var(--mint), 34px 0 0 0 var(--ink);
  translate: 0 -50%;
}

.progress__list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}

.progress__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.progress__page {
  order: -1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--paper-2);
  font-size: 0.8rem;
  color: var(--ink-2);
}

.progress__list a:hover,
.progress__list a:focus-visible {
  background: var(--paper);
  outline: none;
}

/* Section en cours */
.progress__list a[aria-current="true"] {
  background: var(--pink);
}

.progress__list a[aria-current="true"] .progress__page {
  background: var(--card);
  color: var(--ink);
}

@keyframes menu-in {
  from { opacity: 0; scale: 0.92; translate: 0 8px; }
}

.progress__name {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 600;
}

.progress__ring {
  width: 36px;
  height: 36px;
  transform: rotate(-60deg);
}

.progress__track,
.progress__bar {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.progress__track {
  stroke: var(--paper-2);
  stroke-dasharray: 0.88 1;
}

.progress__bar {
  stroke: var(--pink-2);
  stroke-dasharray: 0 1;
}

/* ---------- Ouverture ---------- */

/* Le haut de page démarre bord à bord, puis se rétracte en carte arrondie au défilement (animé en JS) */
.hero {
  --hero-inset: 12px;
  --hero-radius: clamp(24px, 3vw, 40px);
  padding: 0;
}

.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding: clamp(96px, 13vh, 130px) var(--gutter) 28px;
  overflow: hidden;
  clip-path: inset(var(--hero-inset) round var(--hero-radius));
  background: linear-gradient(180deg, var(--cocoa-2) 0%, var(--cocoa) 100%);
  text-align: center;
}

.hero__title {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem);
  line-height: 0.98;
  color: var(--paper);
}

.hero__subtitle {
  max-width: 760px;
  margin: 18px auto 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pink);
  text-wrap: balance;
}

.hero__note {
  position: absolute;
  right: 100%;
  top: 34%;
  margin: 0;
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  color: var(--card);
  rotate: -6deg;
}

.hero__note-arrow {
  display: block;
  width: 80px;
  height: 46px;
  margin: 8px 0 0 70px;
  color: var(--card);
  stroke-width: 3.5;
  rotate: 18deg;
}

@media (max-width: 1100px) {
  .hero__note {
    display: none;
  }
}

.hero__stage {
  position: relative;
  width: min(100%, 860px, 80svh);
  margin-top: clamp(4px, 2vh, 24px);
}

.merge {
  width: 100%;
  height: auto;
  overflow: visible;
}

.merge__shadow circle {
  fill: var(--ink);
}

.merge__fill--left {
  fill: var(--card);
}

.merge__fill--right {
  fill: var(--pink);
}

/* Contour clair : il se détache sur le fond bordeaux du haut de page */
.merge__outline {
  fill: none;
  stroke: var(--card);
  stroke-width: 3.5;
}

.merge__seam {
  fill: none;
  stroke: var(--card);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.merge__label {
  font-family: var(--font-hand);
  font-size: 21px;
  font-weight: 600;
  fill: var(--ink);
}

.hero__sticker {
  position: absolute;
  animation: bob 5s ease-in-out infinite alternate;
}

.hero__sticker--sparkle {
  width: 7%;
  right: -7%;
  top: 42%;
}

.hero__sticker--heart {
  width: 8%;
  right: 6%;
  top: 2%;
  rotate: 12deg;
  animation-delay: -2s;
}

.hero__sticker--leaf {
  width: 7%;
  right: 12%;
  bottom: 4%;
  animation-delay: -4s;
}

.hero__doodle {
  position: absolute;
  color: var(--card);
}

.hero__doodle--smiley {
  width: 48px;
  height: 48px;
  left: 8%;
  bottom: 10%;
  stroke-width: 4;
}

.hero__doodle--wave {
  width: 70px;
  height: 22px;
  left: 14%;
  bottom: 24%;
  stroke-width: 5;
}

.hero__hint {
  margin: 12px 0 0;
  font-size: 1.05rem;
  color: var(--card);
}

@keyframes bob {
  to {
    translate: 0 -10px;
  }
}

.js .hero__anim {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1.2s var(--ease) forwards;
}

.js .hero__anim:nth-child(2) {
  animation-delay: 0.1s;
}

.js .hero__anim:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Introduction ---------- */

.intro {
  max-width: 1040px;
  margin: 0 auto;
  padding: calc(var(--section-gap) - 12px) var(--gutter) calc(var(--section-gap) / 2);
  text-align: center;
}

.intro__question {
  margin: 0 0 var(--space-l);
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem);
  font-weight: 500;
  line-height: 1.14;
}

.intro__invite {
  max-width: 620px;
  margin: 0 auto var(--space-l);
  color: var(--ink-2);
}

/* ---------- Mondes : cartes-stickers en arche ---------- */

.worlds {
  position: relative;
  padding: 8vh 0 10vh;
}

.worlds__head {
  max-width: 1100px;
  padding: 0 var(--gutter);
}

.worlds__title {
  font-size: clamp(2rem, min(1.4rem + 2.8vw, 7svh), 4rem);
  line-height: 1.06;
}

.worlds__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 7vh var(--gutter) 4vh;
}

.worlds__viewport::-webkit-scrollbar {
  display: none;
}

.worlds__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 64px);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.worlds--pinned {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  height: 100svh;
  padding: 76px 0 0;
  overflow: hidden;
}

/* Écrans peu hauts : cartes un peu plus petites pour tenir en entier */
@media (max-height: 760px) and (min-width: 601px) {
  :root {
    --card-w: clamp(200px, min(18vw, 30svh), 250px);
  }
}

/* La section qui suit les cartes démarre plus près pour éviter un grand vide */
#entre-deux {
  padding-top: calc(var(--section-gap) / 2);
}

.worlds--pinned .worlds__viewport {
  overflow: visible;
  padding-top: 9svh;
}

.worlds--pinned .worlds__track {
  padding: 0 calc(50vw - var(--card-w) / 2) 0 46vw;
}

.arch {
  --arch-bg: var(--butter);
  position: relative;
  flex-shrink: 0;
  width: var(--card-w);
  padding: 10px 10px 24px;
  border: var(--border);
  border-radius: 999px 999px 26px 26px;
  background: var(--card);
  box-shadow: var(--shadow-hard);
  text-align: center;
  scroll-snap-align: center;
}

.arch--emploi {
  --arch-bg: var(--sky-1);
}

.arch--coeur {
  --arch-bg: var(--peach);
}

.arch--sensible {
  --arch-bg: var(--mint);
}

.arch--spirit {
  --arch-bg: var(--lilac);
}

.arch--cercle {
  --arch-bg: var(--butter);
}

.arch__window {
  display: grid;
  place-items: center;
  aspect-ratio: 200 / 230;
  border: var(--border);
  border-radius: 999px 999px 16px 16px;
  background: var(--arch-bg);
}

.arch__symbol {
  width: 76%;
  height: auto;
}

.arch__body {
  padding: 22px 8px 0;
}

.arch__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem);
  line-height: 1.08;
}

.arch__caption {
  margin: 8px 0 0;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-2);
}

/* ---------- Chapitres ---------- */

/* Chaque section porte la moitié de l'écart : deux sections voisines sont toujours séparées de --section-gap */
.chapter {
  max-width: calc(1180px + var(--gutter) * 2);
  margin: 0 auto;
  padding: calc(var(--section-gap) / 2) var(--gutter);
}

.chapter p {
  color: var(--ink-2);
}

.chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-2xl);
  align-items: start;
}

.chapter__aside {
  position: sticky;
  top: 110px;
}

/* Le dernier élément d'une colonne ne rajoute pas d'espace : c'est l'écart de la grille qui compte */
.chapter__aside > :last-child,
.chapter__body > :last-child,
.night__inner--split > div > :last-child {
  margin-bottom: 0;
}

.chapter__kicker {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink) !important;
}

.chapter__head {
  max-width: 860px;
  margin-bottom: var(--space-xl);
}

.chapter__title {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  line-height: 1.06;
}

.chapter__intro {
  margin: var(--space-m) 0 0;
}

.lines {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.lines li {
  position: relative;
  padding: 13px 0 13px 42px;
  color: var(--ink);
}

.lines li + li {
  border-top: 2px dotted rgba(31, 27, 26, 0.18);
}

/* Listes « est / n'est pas » et « pour toi / pas pour toi » : sans séparateurs */
.lines--dot li + li,
.lines--dash li + li {
  border-top: 0;
}

.lines--dot li,
.lines--dash li {
  padding-block: 9px;
}

.lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 28px;
  height: 14px;
  background: var(--dot, var(--cobalt));
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}

.lines {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14'%3E%3Cpath d='M2 9c4-7 7-7 9 0s6 7 9 0 6-7 8 0' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.lines li:nth-child(3n + 2) {
  --dot: var(--pink-2);
}

.lines li:nth-child(3n + 3) {
  --dot: #4c9a6a;
}

.lines--dot {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 52c10 8 18 20 24 30 14-30 32-52 54-70' fill='none' stroke='%23000' stroke-width='13' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lines--dot li {
  --dot: var(--ink) !important;
}

.lines--dash {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 22c22 20 42 40 60 58M80 20C58 42 40 60 22 82' fill='none' stroke='%23000' stroke-width='13' stroke-linecap='round'/%3E%3C/svg%3E");
}

.lines--dash li {
  --dot: #c9463d !important;
  color: var(--ink-2);
}

.lines--dot li::before,
.lines--dash li::before {
  top: 0.95em;
  width: 20px;
  height: 20px;
}

.big-quote {
  position: relative;
  max-width: 940px;
  margin: var(--space-2xl) auto 0;
  padding: clamp(44px, 6vw, 70px) clamp(28px, 6vw, 80px);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--pink);
  box-shadow: 6px 7px 0 var(--ink);
  text-align: center;
  rotate: -1.2deg;
}

.big-quote p {
  margin: 0;
  font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.6rem);
  font-weight: 500;
  line-height: 1.22;
  color: var(--ink) !important;
}

/* ---------- Dômes chocolat ---------- */

/* Bords en dôme. Au défilement (JS), --dome-top et --dome-bottom varient entre 0 (bord droit)
   et 1 (dôme) pour que la section passe de pleine couleur à dôme. */
.night {
  --dome: clamp(50px, 8vw, 130px);
  --dome-top: 1;
  --dome-bottom: 1;
  position: relative;
  overflow: hidden;
  margin: calc(var(--section-gap) / 2) 0;
  padding: calc(var(--section-y) + 30px) var(--gutter);
  border-radius: 50% 50% 50% 50% / calc(var(--dome) * var(--dome-top)) calc(var(--dome) * var(--dome-top)) calc(var(--dome) * var(--dome-bottom)) calc(var(--dome) * var(--dome-bottom));
  background: var(--cocoa);
  color: var(--paper);
}

.night__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.night .label {
  color: var(--pink);
}

.night .display em {
  background: linear-gradient(176deg, transparent 52%, var(--cocoa-2) 52%, var(--cocoa-2) 90%, transparent 90%);
  color: var(--pink);
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 44px);
  margin-bottom: var(--space-xl);
}

.sticker-row .sticker {
  --card: #fff4ea;
  width: clamp(42px, 5.5vw, 64px);
  height: clamp(42px, 5.5vw, 64px);
  filter:
    drop-shadow(2.5px 0 0 var(--card))
    drop-shadow(-2.5px 0 0 var(--card))
    drop-shadow(0 2.5px 0 var(--card))
    drop-shadow(0 -2.5px 0 var(--card));
  transition: transform 0.4s var(--ease);
}

.sticker-row .sticker:nth-child(odd) {
  transform: rotate(-8deg);
}

.sticker-row .sticker:nth-child(even) {
  transform: rotate(7deg) translateY(10px);
}

.sticker-row .sticker:hover {
  transform: rotate(0) scale(1.15);
}

.night__title {
  max-width: 900px;
  margin-bottom: var(--space-xl);
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.4rem);
  line-height: 1.04;
}

.night__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 52px);
}

.night__columns p {
  margin: 0;
  padding-top: 20px;
  border-top: 2px dashed rgba(245, 184, 214, 0.45);
  color: rgba(244, 239, 230, 0.82);
}

.night__statement {
  max-width: 1000px;
  margin: var(--space-2xl) 0 0;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.14;
}

.night__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-2xl);
  align-items: start;
}

.charter {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.charter li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 2px dashed rgba(245, 184, 214, 0.35);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  counter-increment: rule;
}

.charter li::before {
  content: counter(rule);
  flex-shrink: 0;
  width: 1.3em;
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--pink);
}

.privacy {
  margin: var(--space-l) 0 0;
  padding: 20px 24px;
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  color: rgba(244, 239, 230, 0.88);
}

.privacy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.privacy strong {
  color: var(--pink);
}

.privacy__sticker {
  --card: #fff4ea;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  rotate: -8deg;
}

/* ---------- Ruban ondulé ---------- */

/* Le ruban compte comme une section : on retire le vide intérieur du dessin (≈ 6 % au-dessus, 2,6 % en dessous de sa largeur)
   pour que la bande soit à --section-gap de ses voisines */
.ribbon {
  position: relative;
  overflow: hidden;
  margin: calc(var(--section-gap) / 2) 0 calc(var(--section-gap) / 2 - max(100vw, 980px) * 0.026);
  pointer-events: none;
}

.ribbon__svg {
  width: max(100%, 980px);
  height: auto;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.ribbon__band {
  fill: none;
  stroke: url(#ribbon-colors);
  stroke-width: 46;
  stroke-linecap: round;
}

/* La phrase se niche dans le grand creux de la vague (grand écran) ; au-dessus sur petit écran */
.ribbon-note {
  max-width: calc(500px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-l);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  color: var(--ink-2);
}

/* Petites notes manuscrites sur les crêtes et les creux : les vagues de la double activité.
   Calque de la taille exacte du dessin (même largeur, même proportion, aligné en bas) :
   les mots suivent la vague à toutes les largeurs, même quand le ruban est recadré sur petit écran. */
.ribbon__moods {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, 980px);
  aspect-ratio: 1440 / 400;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
}

.ribbon__moods li {
  position: absolute;
  top: var(--y);
  left: var(--x);
  font-family: var(--font-hand);
  font-size: clamp(0.8rem, 1.1vw, 1.05rem);
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  translate: -50% -50%;
  rotate: -4deg;
}

.ribbon__moods li:nth-child(even) {
  rotate: 3deg;
}

/* Plus étroit, le ruban est recadré sur les côtés : on retire les mots qui seraient coupés.
   Sur téléphone, « un doute » et « une avancée » passent sur le creux et la crête qui restent visibles. */
@media (max-width: 959px) {
  .ribbon__moods li:first-child {
    display: none;
  }
}

@media (max-width: 719px) {
  .ribbon__moods li:first-child {
    display: block;
    --x: 37.5% !important;
    --y: 84% !important;
  }

  .ribbon__moods li:nth-child(2) {
    --x: 45.8% !important;
    --y: 24% !important;
  }

  .ribbon__moods li:nth-child(n + 3) {
    display: none;
  }
}

@media (min-width: 981px) {
  .ribbon {
    margin-top: calc(var(--section-gap) / 2 - max(100vw, 980px) * 0.06);
  }

  /* Centrée un peu à droite du creux (73 %) sans « translate » : l'animation d'apparition le remplacerait
     et la phrase glisserait sur le ruban quand on agrandit la fenêtre */
  .ribbon-note {
    position: absolute;
    top: 19%;
    left: calc(73% - 23% / 2);
    width: 23%;
    max-width: none;
    padding: 0;
    font-size: clamp(0.85rem, 1.45vw, 1.35rem);
    line-height: 1.4;
  }
}

.ribbon__text {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  fill: var(--ink);
}

/* ---------- Bénéfices ---------- */

.numbered {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: benefit;
}

.numbered li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px 16px 16px;
  border: var(--border);
  border-radius: 20px;
  background: var(--card);
  counter-increment: benefit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.numbered li:hover {
  transform: translate(-2px, -2px) rotate(-0.4deg);
  box-shadow: var(--shadow-hard);
}

.numbered li::before {
  content: counter(benefit);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: 50%;
  background: var(--chip, var(--pink));
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Cycle de 5 couleurs sur 2 colonnes : chaque colonne mélange toutes les couleurs */
.numbered li:nth-child(5n + 2) {
  --chip: var(--mint);
}

.numbered li:nth-child(5n + 3) {
  --chip: var(--butter);
}

.numbered li:nth-child(5n + 4) {
  --chip: var(--sky-2);
}

.numbered li:nth-child(5n + 5) {
  --chip: var(--peach);
}

/* ---------- Cartes « ce que tu vas vivre » (reprises de la version illustrée) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 40px;
}

/* rotate/translate plutôt que transform : les animations d'apparition utilisent transform */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 70px 26px 30px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: translate 0.35s var(--ease), rotate 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:nth-child(odd) {
  rotate: -1deg;
}

.card:nth-child(even) {
  rotate: 1deg;
}

.card:hover {
  translate: -3px -4px;
  rotate: 0deg;
  box-shadow: 6px 7px 0 var(--ink);
}

.card--sky {
  --card-bg: var(--sky-1);
}

.card--pink {
  --card-bg: var(--pink);
}

.card--mint {
  --card-bg: var(--mint);
}

.card--butter {
  --card-bg: var(--butter);
}

.card__sticker {
  position: absolute;
  top: -40px;
  left: 22px;
  width: 84px;
  height: 84px;
  rotate: -8deg;
}

.card__sticker--wide {
  width: 100px;
}

.card__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.45rem;
  line-height: 1.12;
}

.card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-2);
}

.card strong {
  color: var(--ink);
}

.card__stamp {
  position: absolute;
  top: 20px;
  right: 16px;
  padding: 4px 12px;
  border: 2px solid var(--cobalt);
  border-radius: 999px;
  color: var(--cobalt);
  font-size: 0.95rem;
  rotate: 8deg;
}

.soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 820px;
  margin-top: var(--space-xl);
}

.soon__label {
  position: relative;
  flex-shrink: 0;
  padding-top: 2px;
  font-size: 1.3rem;
  color: var(--cobalt);
  rotate: -5deg;
}

.soon__arrow {
  display: inline-block;
  width: 44px;
  height: 22px;
  margin-left: 4px;
  vertical-align: middle;
}

.soon p {
  margin: 0;
}

.display em.em--butter {
  background: linear-gradient(176deg, transparent 52%, var(--butter) 52%, var(--butter) 90%, transparent 90%);
}

/* ---------- Esprit ---------- */

/* ---------- Comparaisons ---------- */

.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.columns-2 > div {
  padding: clamp(26px, 4vw, 42px);
  border: var(--border);
  border-radius: var(--radius);
}

.columns-2 > div:first-child {
  background: var(--mint);
  box-shadow: var(--shadow-hard);
}

.columns-2 > div:last-child {
  border-style: dashed;
  background: var(--card);
}

.columns-2--sky > div:first-child {
  background: var(--sky-1);
}

.columns-2__title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
}

.columns-2__title--muted {
  color: var(--ink-2);
}

/* ---------- Origine ---------- */

/* Même grille que les autres chapitres : titre et puzzle à gauche, texte à droite, alignés en haut */
.origin {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-2xl);
  align-items: center;
}

/* Portrait à gauche, centré sur la hauteur du texte à droite */

.origin__text .chapter__title {
  margin-bottom: var(--space-l);
}

.origin__visual {
  display: grid;
  justify-items: center;
}

.origin__text > :last-child {
  margin-bottom: 0;
}

/* ---------- Emplacements photo (en attendant les vraies photos) ---------- */

.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--paper-2) 0 14px, var(--paper) 14px 28px);
  color: var(--ink-2);
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot__icon {
  width: 56px;
  height: 56px;
  rotate: -6deg;
}

.photo-slot__label {
  font-size: 1.1rem;
}

/* Portrait d'Orlane dans une arche, comme les cartes des univers */
.portrait {
  width: min(100%, 400px);
  padding: 10px;
  border: var(--border);
  border-radius: 999px 999px 26px 26px;
  background: var(--card);
  box-shadow: var(--shadow-hard);
  rotate: -2deg;
}

.portrait__window {
  aspect-ratio: 4 / 5;
  border: var(--border);
  border-radius: 999px 999px 18px 18px;
}

.origin__visual .puzzle {
  width: 55%;
  max-width: 240px;
  margin: -90px 0 0 min(52%, 250px);
}

/* Photos d'ambiance façon polaroïd sur toute la largeur de la section ; on les fait glisser sur petit écran */
/* Safari rogne aussi le bas quand un seul axe est coupé : la marge intérieure du bas
   garde « glisse les photos » (penché) entier, la marge négative annule le décalage. */
.moments {
  margin: var(--space-xl) calc(-1 * var(--gutter)) calc(-1 * var(--space-s));
  padding: 0 var(--gutter) var(--space-s);
  overflow-x: clip;
}

.moments__swiper {
  overflow: visible;
  padding: 10px 0 14px;
}

.moments .polaroid {
  height: auto;
}

/* Si le script du carrousel ne se charge pas : simple grille de photos */
.moments__swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.moments__swiper:not(.swiper-initialized) .swiper-slide {
  width: auto;
}

.moments .polaroid:nth-child(odd) {
  rotate: -2deg;
}

.moments .polaroid:nth-child(even) {
  rotate: 1.5deg;
  translate: 0 14px;
}

.polaroid {
  margin: 0;
  padding: 12px 12px 14px;
  border: var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-hard);
}

.polaroid .photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}

.polaroid figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-2);
}

/* Comme un vrai polaroïd : la légende écrite à la main dans la bande du bas,
   et un sticker rond coloré collé dans le coin de la photo */
.polaroid {
  position: relative;
}

.polaroid__badge {
  position: absolute;
  top: -14px;
  left: -14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--border);
  border-radius: 50%;
  background: var(--pill, var(--pink));
  box-shadow: 0 0 0 4px var(--card), 0 8px 12px rgba(31, 27, 26, 0.18);
  rotate: -10deg;
}

.polaroid:nth-child(even) .polaroid__badge {
  rotate: 8deg;
}

.polaroid__icon {
  --fill: var(--card);
  width: 24px;
  height: 24px;
  stroke-width: 6;
  filter: none;
}

.polaroid figcaption:has(.polaroid__caption) {
  display: grid;
  place-items: center;
  min-height: 2.8em;
  margin-top: 8px;
}

.polaroid__caption {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

.moments__hint {
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: var(--cobalt);
  rotate: -3deg;
}

/* Sur grand écran les photos sont toutes visibles : pas besoin de l'indication */
@media (min-width: 1200px) {
  .moments__hint {
    display: none;
  }
}

.moments__arrow {
  display: inline-block;
  width: 38px;
  height: 19px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Témoignages */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 40px;
}

.quote {
  margin: 0;
  padding-top: 64px;
}

.quote__photo {
  position: absolute;
  top: -40px;
  left: 24px;
  width: 88px;
  height: 88px;
  border: var(--border);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

.quote__photo .photo-slot__icon {
  width: 38px;
  height: 38px;
}

/* Les vrais témoignages font plusieurs phrases : taille de lecture plutôt que de citation courte */
.quote__text {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.12rem;
  line-height: 1.45;
}

.quote__name {
  font-family: var(--font-hand);
  font-weight: 600;
}

.quote__name span {
  display: block;
  font-weight: 500;
  color: var(--ink-2);
}

/* Le puzzle : deux mondes qui s'emboîtent */
.puzzle {
  position: relative;
  width: 100%;
  max-width: 420px;
  rotate: -5deg;
}

.puzzle__svg {
  width: 100%;
  height: auto;
}

.origin__closing {
  margin-top: 1.6em;
  padding: 22px 26px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--butter);
  box-shadow: var(--shadow-hard);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink) !important;
  rotate: -1deg;
}

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Le fil qui relie les pastilles : on passe d'une étape à l'autre, accompagnée */
.steps-wrap {
  position: relative;
}

.steps__thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.steps__thread path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
}

.steps__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border: var(--border);
  border-radius: 50%;
  background: var(--chip, var(--pink));
  box-shadow: 3px 4px 0 var(--ink);
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
}

.steps li:nth-child(2) .steps__num {
  --chip: var(--butter);
}

.steps li:nth-child(3) .steps__num {
  --chip: var(--mint);
}

.steps li:nth-child(4) .steps__num {
  --chip: var(--sky-2);
}

.steps__title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.4rem;
  line-height: 1.15;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
}

.center {
  margin-top: var(--space-xl);
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  border: var(--border);
  border-radius: 22px;
  background: var(--card);
  transition: box-shadow 0.3s var(--ease), background 0.3s;
}

.faq__item[open] {
  background: var(--sky-1);
  box-shadow: var(--shadow-hard);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Focus clavier assorti au site plutôt que le cadre bleu par défaut */
.faq__item summary:focus-visible {
  outline: none;
}

.faq__item:has(summary:focus-visible) {
  outline: 3px solid var(--pink-2);
  outline-offset: 3px;
}

.faq__icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: var(--border);
  border-radius: 50%;
  background: var(--pink);
  transition: transform 0.4s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  translate: -50% -50%;
}

.faq__icon::after {
  rotate: 90deg;
}

.faq__item[open] .faq__icon {
  background: var(--butter);
  transform: rotate(135deg);
}

.faq__item p {
  margin: 0;
  padding: 0 22px 22px;
}

/* ---------- Final : « toi » rejoint le cercle des femmes ---------- */

/* Pleine largeur, coins arrondis : la section garde la même forme pendant l'animation et en repartant.
   Derrière ses coins du bas, on voit le pied de page (voir --see-through sur main). */
.final {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: calc(var(--section-gap) / 2) 0 0;
  padding: clamp(80px, 10vh, 110px) var(--gutter) clamp(40px, 6vh, 70px);
  overflow: hidden;
  clip-path: inset(0 round clamp(24px, 3vw, 40px));
  background: linear-gradient(0deg, #e3eefa 0%, #9dbde6 55%, #6f9bd8 100%);
}

.final__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vh, 36px);
  text-align: center;
}

.final__ring-wrap {
  position: relative;
  width: min(480px, 52svh, 88vw);
  aspect-ratio: 1;
}

.final__ring {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.join__member,
.join__you {
  color: var(--ink);
}

.join__pulse {
  fill: none;
  stroke: var(--card);
  stroke-width: 3;
  opacity: 0;
}

/* Fil qui relie les femmes du cercle une fois « toi » arrivée */
.join__link {
  fill: none;
  stroke: var(--card);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  opacity: 0.9;
}

/* Étiquette « toi » en sticker, bien lisible au-dessus du cercle */
.join__tag {
  opacity: 0;
}

.join__tag rect {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.join__tag text {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 600;
  fill: var(--ink);
}

.final__title {
  position: absolute;
  inset: 20%;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: clamp(1.3rem, 0.8rem + 1.5vw, 2.1rem);
  line-height: 1.08;
}

.final__content {
  max-width: 580px;
}

.final__content p {
  margin: 0 0 24px;
  font-weight: 500;
  color: #2d3440;
}

/* ---------- Footer ---------- */

/* Le contenu passe au-dessus du pied de page : en fin de défilement, il se dévoile comme s'il était dessous */
main {
  position: relative;
  z-index: 1;
  /* Fond transparent tout en bas : les coins arrondis du final laissent voir le pied de page.
     Pendant l'animation de fin, la zone transparente couvre la section épinglée (calculé en JS). */
  background: linear-gradient(var(--paper) calc(100% - var(--see-through, 80px)), transparent calc(100% - var(--see-through, 80px)));
}

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  /* Remonte sous le bas transparent de la page pour apparaître dans les coins arrondis du final */
  min-height: calc(clamp(260px, 42vh, 380px) + 80px);
  margin-top: -80px;
  padding: calc(var(--space-xl) + 80px) var(--gutter) calc(var(--space-xl) + 56px);
  text-align: center;
  color: rgba(244, 239, 230, 0.72);
  background: var(--cocoa);
}

.site-footer p {
  margin: 0;
}

.site-footer__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-weight: 600;
  color: var(--paper);
}

.site-footer__credit {
  font-family: var(--font-hand);
}

.site-footer a {
  color: var(--paper);
  text-underline-offset: 0.2em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-m);
  margin-top: var(--space-s);
  font-size: 0.9rem;
}

/* Bouton « Retour au site » des pages secondaires : réduit à « Retour » sur téléphone */
.btn-back {
  gap: 0.28em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .btn-back__more {
    display: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-l);
  }

  /* Étapes en colonne : pastille à gauche, texte à droite, le fil descend de pastille en pastille */
  .steps {
    grid-template-columns: 1fr;
    row-gap: var(--space-l);
    max-width: 640px;
  }

  .steps li {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 20px;
    align-items: start;
  }

  .steps__num {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .cards {
    row-gap: var(--space-xl);
  }

  .night__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .chapter__grid,
  .night__inner--split,
  .origin,
  .columns-2,
  .numbered {
    grid-template-columns: 1fr;
  }

  .chapter__grid,
  .night__inner--split {
    gap: var(--space-xl);
  }

  .chapter__aside {
    position: static;
  }

  .quotes {
    grid-template-columns: 1fr;
  }

  .quotes {
    row-gap: 64px;
  }

  /* Sur écran étroit : titre, texte, puis le portrait en fin de section */
  .origin {
    gap: 0;
  }

  .origin__aside {
    display: contents;
  }

  .origin__visual {
    order: 2;
    justify-items: center;
    width: 100%;
    max-width: 320px;
    margin: var(--space-xl) auto 0;
  }

  .origin__visual .puzzle {
    width: 58%;
    margin: -56px -12px 0 auto;
  }

  .progress__name {
    display: none;
  }

  .progress__toggle {
    padding: 4px;
  }
}

@media (max-width: 600px) {
  .hero {
    --hero-inset: 8px;
  }



  .cards {
    grid-template-columns: 1fr;
  }

  .brand span {
    font-size: 1rem;
  }

  .hero__note,
  .hero__doodle--smiley,
  .hero__sticker--sparkle,
  .hero__sticker--leaf {
    display: none;
  }

  .hero__sticker--heart,
  .hero__doodle--wave {
    display: none;
  }

  .hero__panel {
    justify-content: center;
  }

  .hero__stage {
    width: 100%;
  }



  /* Le dessin rétrécit avec l'écran : on l'élargit jusqu'aux bords du panneau
     et on grossit le texte pour qu'il reste lisible (environ 14px à l'écran). */
  .merge {
    width: 112%;
    margin-inline: -6%;
  }

  .merge__label {
    font-size: 42px;
  }

  .worlds {
    --card-w: min(56vw, 34svh);
  }

  .arch--small {
    width: auto;
  }

  .night {
    --dome: 44px;
  }

  .btn {
    padding: 15px 22px;
  }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__sticker {
    animation: none;
  }
}
