/* LE CHALLENGE (19/11/2026, CP-AUG7V) : www.nscm.be/challenge.
   Même univers que l'accueil (site.css : crème, nuit, Fraunces, les trois ronds bleu, orange, vert).
   L'idée : la séance offerte, posée comme deux créneaux d'agenda. Le créneau de 2 h est deux fois plus haut
   que celui d'une heure : on lit la durée avant de lire le texte.
   Pensé d'abord pour le téléphone. CSP : aucun style en ligne, tout est ici. */

.page-challenge { --bleu-pale: #E8F1FC; --orange-pale: #FDF1DE; --vert-pale: #E3F6EB; }
.page-challenge .logo { text-decoration: none; }

/* ── 1. Le premier écran ─────────────────────────────────────────────── */
.ch-accroche { display: grid; gap: 28px; padding-top: 18px; }
.ch-surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--gris); }
.ch-pastille {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--orange); color: var(--nuit);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.page-challenge h1 {
  margin-top: 14px;
  max-width: 11em;
  font-size: clamp(2.35rem, 10.4vw, 4rem);
  line-height: 1.04;
}
.ch-sous { margin-top: 16px; max-width: 30em; font: 400 1.1875rem/1.32 var(--titre); letter-spacing: -0.004em; text-wrap: pretty; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ch-actions .bouton { flex: 1 1 auto; }
.ch-gratuit { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.ch-gratuit svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #C97A12; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* La séance : une carte d'agenda blanche, deux créneaux. */
.ch-seance {
  position: relative; margin: 0;
  padding: 18px 16px 16px;
  border-radius: var(--r-grand);
  background: var(--blanc);
  box-shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 28px 60px -32px rgba(14, 26, 43, .45);
}
/* Les ronds de la marque, DERRIÈRE la carte : frères de la carte dans une zone à part (19/11 : un ::before
   en z-index -1 passait DEVANT la carte dès que son animation créait un contexte d'empilement). */
.ch-seance-zone { position: relative; isolation: isolate; }
.ch-seance-zone .ch-seance { z-index: 1; }
.ch-rond { position: absolute; z-index: 0; display: block; border-radius: 50%; }
.ch-rond-orange { width: 120px; height: 120px; right: -34px; top: -38px; background: var(--orange); }
.ch-rond-vert { width: 74px; height: 74px; left: -24px; bottom: -22px; background: var(--vert); }

/* L'étiquette cadeau : un bandeau orange pâle en tête de carte, l'icône du cadeau, « offerte » surligné. */
.ch-cadeau {
  display: flex; align-items: center; gap: 12px;
  margin: -18px -16px 0; padding: 16px 16px 14px;
  border-radius: var(--r-grand) var(--r-grand) 0 0;
  background: var(--orange-pale);
  border-bottom: 1.5px dashed rgba(242, 165, 65, .55);
}
/* Sa tête (19/11 : « rajoute ma tête »), avec le cadeau en pastille sur le bord. */
.ch-tete { position: relative; flex: none; display: block; width: 60px; height: 60px; }
.ch-tete img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--blanc); }
.ch-cadeau-ico { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--nuit); box-shadow: 0 0 0 3px var(--orange-pale); }
.ch-cadeau-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-cadeau-txt { display: grid; gap: 2px; min-width: 0; }
.ch-cadeau-txt small { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: #9A5B0B; }
.ch-cadeau-txt b { font: 580 1.5rem/1.05 var(--titre); letter-spacing: -0.01em; }
.ch-cadeau-txt mark { background-image: linear-gradient(var(--marqueur), var(--marqueur)); }

/* Deux étapes sur un fil : une pastille numérotée, le titre, la durée, la phrase. */
.ch-etapes { position: relative; display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
/* Le fil : de la pastille 1 à la pastille 2, pas plus loin. */
.ch-e1::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: -16px; border-left: 2px dotted var(--gris-clair); }
.ch-etape { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.ch-puce { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 600 1rem/1 var(--titre); color: var(--blanc); box-shadow: 0 0 0 4px var(--blanc); }
.ch-e1 .ch-puce { background: var(--bleu); }
.ch-e2 .ch-puce { background: var(--orange); color: var(--nuit); }
.ch-etape-tete { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.ch-etape-tete b { font: 600 1.25rem/1.15 var(--titre); letter-spacing: -0.006em; }
.ch-temps { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-e1 .ch-temps { background: var(--bleu-pale); color: #1F5FAE; }
.ch-e2 .ch-temps { background: var(--orange-pale); color: #9A5B0B; }
.ch-etape p:not(.ch-etape-tete) { margin-top: 4px; font-size: 1rem; line-height: 1.45; color: var(--gris); text-wrap: pretty; }

.ch-seance-pied { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 2px 0; border-top: 1px solid var(--bord); font-size: 0.875rem; font-weight: 500; line-height: 1.35; color: var(--gris); }
.ch-seance-ronds { position: relative; flex: none; display: block; width: 36px; height: 36px; }
.ch-seance-ronds img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-seance-ronds::before, .ch-seance-ronds::after { content: ""; position: absolute; border-radius: 50%; }
.ch-seance-ronds::before { width: 34%; height: 34%; top: -2px; right: -10%; background: var(--orange); }
.ch-seance-ronds::after { width: 29%; height: 29%; bottom: -1px; left: -8%; background: var(--vert); }

/* ── Les sections ────────────────────────────────────────────────────── */
.ch-h2 {
  font-family: var(--titre); font-optical-sizing: none;
  font-weight: 580; font-variation-settings: "opsz" 96;
  font-size: clamp(2rem, 8.6vw, 2.75rem); line-height: 1.06; letter-spacing: -0.008em;
  text-wrap: balance;
}

/* 2. Le cadre : trois lignes, comme « Qui suis-je ? » à l'accueil. */
.ch-cadre { margin-top: 72px; }
.ch-lignes { margin-top: 20px; border-top: 1px solid var(--bord); }
.ch-lignes li { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--bord); }
.ch-lignes b { position: relative; padding-left: 22px; font: 600 1.5rem/1.15 var(--titre); letter-spacing: -0.006em; text-wrap: balance; }
.ch-lignes i { position: absolute; left: 0; top: 0.34em; width: 12px; height: 12px; border-radius: 50%; }
.ch-lignes .vert { background: var(--vert); }
.ch-lignes .orange { background: var(--orange); }
.ch-lignes .bleu { background: var(--bleu); }
.ch-lignes .nuit { background: var(--nuit); }
.ch-lignes p { padding-left: 22px; font-size: 1.0625rem; line-height: 1.5; color: var(--gris); text-wrap: pretty; }

/* 3. Pourquoi je le fais, et qui je suis : un bloc blanc, sa tête à gauche. */
.ch-moi { display: grid; gap: 18px; margin-top: 56px; padding: 24px 20px; border-radius: var(--r-grand); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--bord); }
.ch-moi-photo { position: relative; display: block; width: 88px; height: 88px; }
.ch-moi-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-moi-photo::before, .ch-moi-photo::after { content: ""; position: absolute; border-radius: 50%; }
.ch-moi-photo::before { width: 32%; height: 32%; top: -2px; right: -8%; background: var(--orange); }
.ch-moi-photo::after { width: 26%; height: 26%; bottom: 0; left: -6%; background: var(--vert); }
.ch-moi h2 { font: 600 1rem/1.3 var(--texte); color: var(--gris); }
.ch-moi-pourquoi { margin-top: 8px; font: 500 1.5rem/1.22 var(--titre); letter-spacing: -0.008em; text-wrap: balance; }
.ch-moi-qui { margin-top: 14px; font-size: 1rem; line-height: 1.55; color: var(--gris); text-wrap: pretty; }
.ch-moi-qui b { color: var(--nuit); }
.ch-moi a { text-decoration: underline; text-decoration-color: var(--gris-clair); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ch-moi a:hover { text-decoration-color: var(--orange); }

/* 4. Transmettre, en une ligne. */
.ch-partage { display: grid; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--bord); scroll-margin-top: 16px; }
.ch-partage h2 { font: 600 1.375rem/1.2 var(--titre); letter-spacing: -0.005em; text-wrap: balance; }
.ch-partage h2 span { display: block; margin-top: 2px; font: 500 1rem/1.4 var(--texte); color: var(--gris); }
.ch-partage-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-partage-boutons .bouton { min-height: 48px; padding-inline: 20px; font-size: 0.9375rem; }
.ch-partage-boutons [hidden] { display: none; }
.ch-lien-doux { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 6px; font-size: 1rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--marqueur); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ch-lien-doux:hover { text-decoration-color: var(--orange); }

/* ── Tablette ────────────────────────────────────────────────────────── */
@media (min-width: 620px) {
  .ch-accroche { padding-top: 28px; }
  .ch-actions .bouton { flex: 0 1 auto; }
  .ch-cadre { margin-top: 88px; }
  .ch-partage { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ch-sous { font-size: 1.375rem; }
  .ch-seance { padding: 22px 22px 20px; }
  .ch-cadeau { margin: -22px -22px 0; padding: 18px 22px 16px; }
  .ch-lignes li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 24px; align-items: baseline; }
  .ch-lignes p { padding-left: 0; }
}

/* ── Ordinateur : le premier écran tient dans la fenêtre ─────────────── */
@media (min-width: 960px) {
  .ch-ecran1 { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .ch-accroche {
    flex: 1; align-items: center; padding-block: 0 clamp(28px, 5vh, 56px);
    grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--pas);
  }
  .ch-texte { grid-column: 1 / span 3; padding-right: clamp(12px, 2vw, 40px); }
  .ch-seance-zone { grid-column: 4 / span 2; width: min(100%, 460px); justify-self: end; }
  .ch-seance { padding: 24px 24px 22px; }
  .ch-cadeau { margin: -24px -24px 0; padding: 20px 24px 18px; }
  .ch-cadeau-txt b { font-size: 1.75rem; }
  .ch-tete { width: 68px; height: 68px; }
  .ch-rond-orange { width: clamp(150px, 15vw, 240px); height: clamp(150px, 15vw, 240px); right: calc(-1 * clamp(56px, 5vw, 96px)); top: calc(-1 * clamp(56px, 6vw, 96px)); }
  .ch-rond-vert { width: clamp(84px, 7vw, 120px); height: clamp(84px, 7vw, 120px); left: -40px; bottom: -34px; }
  .ch-surtitre { font-size: 1rem; }
  .page-challenge h1 { margin-top: clamp(12px, 2vh, 20px); font-size: clamp(3.4rem, min(5.3vw, 9.6vh), 6rem); line-height: 1.02; }
  .ch-sous { margin-top: clamp(16px, 2.6vh, 26px); font-size: clamp(1.25rem, min(1.5vw, 2.7vh), 1.625rem); }
  .ch-actions { margin-top: clamp(22px, 3.6vh, 36px); }
  .ch-actions .bouton { min-height: 58px; padding-inline: 28px; font-size: 1.0625rem; }

  .ch-h2 { font-size: clamp(2.5rem, 3.6vw, 3.75rem); }
  .ch-cadre { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: clamp(32px, 4vw, 72px); margin-top: clamp(72px, 12vh, 128px); }
  .ch-cadre .ch-lignes { margin-top: 0; }
  .ch-lignes b { font-size: 1.75rem; }
  .ch-lignes li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding-block: 22px; }

  .ch-moi { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px); align-items: center; margin-top: clamp(56px, 9vh, 96px); padding: clamp(32px, 3.4vw, 48px); }
  .ch-moi-photo { width: 140px; height: 140px; }
  .ch-moi-pourquoi { font-size: clamp(1.75rem, 2.3vw, 2.375rem); max-width: 24em; }
  .ch-moi-qui { max-width: 46em; font-size: 1.0625rem; }
  .ch-partage { margin-top: clamp(56px, 9vh, 96px); }
  .ch-partage h2 { font-size: 1.625rem; }
}

/* ── Les effets : à l'arrivée, puis au défilement. Sans eux, la page est déjà pleine. ── */
@keyframes ch-pose { from { opacity: 0; translate: 0 16px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .ch-surtitre, .page-challenge h1, .ch-sous, .ch-actions, .ch-gratuit { animation: monte 700ms var(--sortie) both; }
  .page-challenge h1 { animation-delay: 70ms; }
  .page-challenge h1 mark { animation: trait 800ms 600ms var(--sortie) both; }
  .ch-sous { animation-delay: 220ms; }
  .ch-actions { animation-delay: 320ms; }
  .ch-gratuit { animation-delay: 420ms; }
  /* La carte arrive, puis les deux créneaux s'y posent. */
  .ch-seance { animation: ch-pose 800ms 260ms var(--sortie) both; }
  .ch-rond-orange { animation: eclot 900ms 420ms var(--rebond, ease-out) both, flotte 8s 1.6s ease-in-out infinite alternate; }
  .ch-rond-vert { animation: eclot 900ms 560ms var(--rebond, ease-out) both, flotte 10s 1.8s ease-in-out infinite alternate-reverse; }
  .ch-cadeau-ico { animation: eclot 700ms 650ms var(--rebond, ease-out) both; }
  .ch-e1 { animation: monte 600ms 800ms var(--sortie) both; }
  .ch-e2 { animation: monte 600ms 1000ms var(--sortie) both; }

  .effets .ch-revele:not(.vu) { opacity: 0; }
  .effets .ch-revele.vu { animation: monte 800ms var(--sortie) both; }
}

/* Un peu d’air avant le pied de page. */
.page-challenge .pied { margin-top: 32px; border-top: 1px solid var(--bord); }
