/* ==========================================================================
   Couche « coach sportive » : titres en Outfit (dynamique, moderne),
   la serif italique du logo reste réservée aux mots d'accent.
   ========================================================================== */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root { --font-sport: "Outfit", "Source Sans", system-ui, sans-serif; }

/* Titres */
h1, h2,
.statement, .chap h2, .chap h3, .knot h2, .cent-intro h2, .cent-sub, .step h3,
.offer-name, .dlg-head h2, .cta-final h2, .page-hero h1, .fil-mid h2 {
  font-family: var(--font-sport);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.04;
}
h1, .page-hero h1 { font-weight: 700; letter-spacing: -.035em; line-height: .98; }
.hero h1 { font-size: clamp(2.9rem, 5.8vw, 5.4rem); }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
h3 { font-family: var(--font-sport); font-weight: 600; letter-spacing: -.01em; }

/* Les mots d'accent gardent l'élégance du logo */
h1 em, h2 em, .serif-it, .seance-lines p em, .knot h2 em {
  font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: -.01em;
}
h1 em, h1 .serif-it { font-size: 1.08em; }

/* Chiffres : nets et sportifs */
.cent-num, .big-year, .fig-num, .price-hero, .offer-price, .offer-price .num, .price-strip .v,
.dlg-num, .step-num, .process .num, .fil-photo .year, .stamp, .count, .qc-number {
  font-family: var(--font-sport) !important; font-style: normal; font-weight: 700; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.process .num, .step-num { color: var(--rose-ink); font-weight: 600; }
.cent-num .pc { font-family: var(--font-sport); }
.offer-price .unit, .price-hero .unit { font-family: var(--font-sport); font-weight: 600; }

/* Phrases de la vidéo de l'accueil */
.seance-lines p { font-family: var(--font-sport); font-weight: 700; letter-spacing: -.03em; }

/* Sur-titres plus affirmés */
.eyebrow { font-family: var(--font-sport); font-weight: 600; letter-spacing: .16em; color: var(--green); }
.eyebrow::before { width: 22px; height: 3px; }

/* Étiquettes d'activité (accueil) */
.sport-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.sport-tags li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--green); color: #fff; font-family: var(--font-sport); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
}
.sport-tags li:nth-child(2n) { background: var(--rose-ink); }
.sport-tags li:nth-child(3n) { background: var(--sage-ink); }
.sport-tags svg { width: 16px; height: 16px; }

/* Boutons un peu plus « coach » */
.btn { font-family: var(--font-sport); font-weight: 600; letter-spacing: .005em; }

/* ---------- Animations au défilement ---------- */
.has-parallax { will-change: transform; transform: scale(1.16); }
.frame, .arch, .card-media, .chap-media .frame, .page-hero-media .frame { overflow: hidden; }
[data-zoom] { will-change: transform; transform: scale(1.18); transform-origin: 50% 60%; }
.js [data-split] .sw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .swi { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--w, 0) * 55ms); }
.js [data-split].is-in .swi { transform: none; }
.js [data-slide] { opacity: 0; transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); }
.js [data-slide="left"] { transform: translateX(-60px); }
.js [data-slide="right"] { transform: translateX(60px); }
.js [data-slide].is-in { opacity: 1; transform: none; }
.js [data-tilt] { opacity: 0; transform: perspective(900px) rotateX(10deg) translateY(40px); transform-origin: 50% 100%; transition: opacity .8s var(--ease), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-tilt].is-in { opacity: 1; transform: none; }
[data-progress] { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sage), var(--rose)); transform: scaleX(0); transform-origin: left; }
[data-drift] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .has-parallax, [data-zoom] { transform: none !important; }
  .js [data-split] .swi, .js [data-slide], .js [data-tilt] { transform: none !important; opacity: 1 !important; }
}

/* « Mon histoire » : on garde le rendu d'origine (titres en serif élégante) */
.page-histoire h1, .page-histoire h2, .page-histoire .chap h2, .page-histoire .knot h2 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.08;
}
.page-histoire .big-year, .page-histoire .fig-num, .page-histoire .stamp {
  font-family: var(--font-display) !important; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.page-histoire .eyebrow { font-family: var(--font-body); font-weight: 700; color: var(--sage-ink); letter-spacing: .14em; }
.fil--v1 .fil-threads { z-index: 0; }
.fil--v1 .fil-threads .t-yves, .fil--v1 .fil-threads .t-anne { stroke-width: 3; }

/* Montage vidéo (page Coaching) */
.montage-feature { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; margin: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.montage-card .vplayer { box-shadow: var(--shadow-lift); }
.montage-dur { margin: 0; font-family: var(--font-sport); font-weight: 700; font-size: clamp(3.4rem, 7vw, 6rem); line-height: .9; color: var(--green); letter-spacing: -.04em; }
.montage-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: .4em 0 .6em; }
.montage-steps { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.montage-steps li { padding: 7px 14px; border-radius: 999px; background: var(--sage-soft); color: var(--green); font-family: var(--font-sport); font-weight: 600; }
.montage-steps li:nth-child(odd) { background: var(--rose-soft); color: var(--rose-ink); }
.montage-more { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 0; }
@media (max-width: 760px) { .montage-feature { grid-template-columns: 1fr; } .montage-card { max-width: 360px; margin-inline: auto; } }
.knot-sign { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--green); margin-top: 1.2em; }
.knot-sign span { display: block; margin-top: .3em; color: var(--rose-ink); font-size: 1.1em; }

/* Vidéos montées : cadre 16:9 sur ordinateur (version paysage) */
.vplayer.is-land { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .montage-feature { grid-template-columns: 1.7fr 1fr; }
  .montage-card { max-width: none; }
  .pa-sx-video { max-width: 960px !important; }
  .pa-sx-video .vplayer { aspect-ratio: 16 / 9 !important; }
}

/* Fin de l'histoire : les deux fils entourent la photo d'Anne et de son père */
.knot .frame { position: relative; overflow: visible; }
.knot .frame picture { display: block; overflow: hidden; border-radius: inherit; }
.knot .frame img { transition: filter 1.4s ease, transform 1.6s cubic-bezier(.16,1,.3,1); filter: saturate(.75) brightness(.97); transform: scale(1.025); }
.fil.is-joined .knot .frame img { filter: none; transform: none; }
.knot-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); pointer-events: none; overflow: visible; z-index: 2; }
.knot-ring path { fill: none; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1) .15s; }
.knot-ring .knot-ring-a { stroke: var(--rose); }
.knot-ring .knot-ring-y { stroke: var(--sage); }
.knot-ring.go path { stroke-dashoffset: 0 !important; }
.knot .frame { transition: box-shadow 1.4s ease; }
.fil.is-joined .knot .frame { box-shadow: 0 30px 70px -28px rgba(216,143,148,.55), 0 10px 40px -20px rgba(31,74,60,.35); }
.fil-threads .t-ripple { fill: none; stroke: var(--rose); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 1.4s cubic-bezier(.16,1,.3,1) both; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .knot-ring path { transition: none; } .fil-threads .t-ripple { display: none; } .knot .frame img { filter: none; transform: none; } }
.fil.is-joined .knot .frame.reveal-clip, .js .fil.is-joined .knot .reveal-clip.is-in { clip-path: none; }
/* Mon histoire (téléphone) : marge gauche élargie pour les deux fils */
@media (max-width: 899px) { .fil { padding-left: 34px !important; } .fil-threads .t-yves, .fil-threads .t-anne { stroke-width: 3; } }

/* ======================================================================
   V5 — pages intérieures (Mon histoire, Reprise/Cécile, Confiance, Tarifs duo)
   ====================================================================== */
/* Mon histoire : liste des diplômes dans le chapitre */
.v5-diplomes { list-style: none; padding: 0; margin: 1.1em 0 0; display: grid; gap: 8px; }
.v5-diplomes li { position: relative; padding: 10px 14px 10px 40px; border-radius: 14px; background: var(--ivory); color: var(--green); font-weight: 600; line-height: 1.35; font-size: 1.02rem; }
.v5-diplomes li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(126,154,131,.22); }
.v5-diplomes li.is-current { background: var(--rose-soft); color: var(--rose-ink); }
.v5-diplomes li.is-current::before { background: var(--rose); box-shadow: 0 0 0 4px rgba(216,143,148,.25); }
.v5-diplomes li.is-current span { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.page-histoire .chap-figure .fig-lbl sup { font-size: .6em; }
/* Mon histoire : photos d'Anne (petites, issues du téléphone : jamais plus de 360 px) */
.v5-chap-anne { max-width: 520px; margin-left: auto; }
.v5-chap-anne .frame:first-child { max-width: 300px; }
.v5-chap-anne .frame:nth-child(2) { max-width: 220px; }
.hist-hero-media .hh-now { max-width: 300px; }
@media (max-width: 899px) { .v5-chap-anne { margin-inline: auto; max-width: 400px; } }

/* Reprise : témoignage de Cécile */
.v5-cecile-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.v5-cecile-media { position: relative; }
.v5-cecile-photo { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--cream); }
.v5-cecile-photo picture, .v5-cecile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v5-cecile-tag { position: absolute; right: -10px; bottom: 28px; margin: 0; padding: 14px 20px; border-radius: 20px; background: var(--green); color: #F3EEE7; box-shadow: var(--shadow-lift); font-size: 1.0625rem; line-height: 1.2; }
.v5-cecile-tag strong { display: block; font-family: var(--font-sport); font-size: 1.7rem; color: #fff; }
.v5-cecile-body h2 { margin-bottom: .5em; }
.v5-cecile-before { list-style: none; padding: 0; margin: 1.2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v5-cecile-before li { padding: 7px 14px; border-radius: 999px; background: var(--ivory); border: 1px solid rgba(31,74,60,.14); color: var(--ink-soft); font-size: 1rem; }
.v5-cecile-quote { position: relative; margin: 1.6em 0 0; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 36px); border-radius: 26px; background: var(--rose-soft); }
.v5-cecile-quote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.35; color: var(--green); }
.v5-cecile-quote footer { margin-top: .9em; font-family: var(--font-sport); font-weight: 700; color: var(--rose-ink); }
.v5-cecile-gains { list-style: none; padding: 0; margin: 1.2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v5-cecile-gains li { padding: 8px 16px; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--font-sport); font-weight: 600; }
.v5-cecile-gains li:nth-child(even) { background: var(--rose-ink); }
@media (max-width: 860px) {
  .v5-cecile-grid { grid-template-columns: 1fr; }
  .v5-cecile-media { max-width: 340px; margin-inline: auto; width: 100%; }
  .v5-cecile-tag { right: -4px; }
}
/* Coaching : carte Reprise avec Cécile */
.v5-offer-cecile img { object-position: 50% 40%; }
.v5-offer-quote { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .98rem; font-weight: 600; color: #fff; }

/* Confiance : « la confiance, ça se construit » */
.v5-conf { position: relative; overflow: hidden; }
.v5-conf .eyebrow { color: #FFD9DB; }
.v5-conf-h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.03em; max-width: 16ch; }
.v5-conf-h2 em { color: #FFD9DB; }
.v5-conf-intro { max-width: 46ch; margin-top: 1em; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: #E4ECE6; }
.v5-conf-ladder { list-style: none; padding: 0; margin: clamp(32px, 5vw, 64px) 0 0; display: grid; gap: 0; counter-reset: none; }
.v5-conf-ladder li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(14px, 4vw, 60px); align-items: center; padding: clamp(14px, 2.4vw, 26px) 0; border-top: 1px solid rgba(255,255,255,.2); }
.v5-conf-ladder li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.v5-conf-word { font-family: var(--font-sport); font-weight: 700; line-height: .95; letter-spacing: -.045em; color: #fff; }
.v5-conf-ladder li:nth-child(1) .v5-conf-word { font-size: clamp(2.2rem, 4.4vw, 3.6rem); opacity: .75; }
.v5-conf-ladder li:nth-child(2) .v5-conf-word { font-size: clamp(2.6rem, 5vw, 4.2rem); opacity: .85; }
.v5-conf-ladder li:nth-child(3) .v5-conf-word { font-size: clamp(2.9rem, 5.8vw, 5rem); }
.v5-conf-ladder li:nth-child(4) .v5-conf-word { font-size: clamp(3.2rem, 6.2vw, 5.6rem); color: #FFD9DB; white-space: nowrap; }
.v5-conf-txt { font-size: 1.125rem; line-height: 1.5; color: #E4ECE6; max-width: 34ch; }
.v5-conf-promise { margin: clamp(28px, 4vw, 48px) 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; color: #fff; max-width: 30ch; }
@media (max-width: 700px) { .v5-conf-ladder li { grid-template-columns: 1fr; gap: 6px; } }

/* Tarifs : astérisque, formule duo, conseils nutrition */
.v5-ast { font-size: .5em; vertical-align: super; line-height: 0; margin-left: 1px; font-family: var(--font-body); font-weight: 700; color: var(--rose-ink); }
.offer--dark .v5-ast { color: #FFD9DB; }
.v5-duo { margin-top: clamp(56px, 8vw, 100px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(31,74,60,.14); }
.v5-duo-title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin: 0; }
.offers--duo { grid-template-columns: repeat(4, 1fr); }
.offer.offer--duo { background: var(--rose-soft); border-color: transparent; }
.v5-duo-flag { background: var(--rose-ink) !important; color: #fff !important; }
@media (max-width: 1100px) { .offers--duo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .offers--duo { grid-template-columns: 1fr; } }
.v5-nutri { display: flex; gap: 16px; align-items: flex-start; margin-top: clamp(32px, 5vw, 48px); padding: 20px 24px; border-radius: 22px; background: var(--sage-soft); }
.v5-nutri p { margin: 0; color: var(--ink-soft); }
.v5-nutri strong { color: var(--green); }
.v5-nutri-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; }
.v5-nutri-ico svg { width: 24px; height: 24px; }
.v5-taxnote { margin: 1.2em 0 0; font-size: .98rem; color: var(--ink-soft); }
@media (min-width: 900px) { .page-histoire .v5-fig-tall { aspect-ratio: 3 / 4; } }
@media (min-width: 900px) and (max-width: 1199px) { .v5-diplomes { gap: 5px; } .v5-diplomes li { padding: 7px 12px 7px 36px; font-size: .95rem; } .page-histoire .v5-fig-tall { aspect-ratio: 2 / 3; } }
/* 900 px pile : le JS dessine les grandes vagues (fil = 900 px) → on garde la mise en page en deux colonnes */
@media (min-width: 900px) and (max-width: 900px) { .page-histoire .chap { grid-template-columns: 1fr 1fr; margin-block: clamp(70px, 10vw, 150px); } .page-histoire .chap--right .chap-media { order: 2; } }
@media (min-width: 900px) and (max-width: 1000px) { .page-histoire .v5-fig-tall { aspect-ratio: 3 / 5; } }
@media (min-width: 900px) and (max-width: 900px) { .page-histoire .v5-fig-tall { aspect-ratio: 1 / 2; } .v5-diplomes li { font-size: .9rem; } }

/* ---------- Bouton de couleur (vert / bleu) dans le menu ---------- */
.palette-btn {
  position: relative; flex: none; width: 58px; height: 34px; padding: 0; margin-right: 4px;
  border: 1px solid rgba(31,74,60,.18); border-radius: 999px; background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(31,74,60,.08);
}
.palette-btn::before { /* curseur qui glisse d'une couleur à l'autre */
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #204B3D; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .45s cubic-bezier(.65,0,.35,1), background-color .45s;
}
.palette-btn .pb-dot { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; }
.palette-btn .pb-dot--vert { left: 12px; background: #7F9B84; }
.palette-btn .pb-dot--bleu { right: 12px; background: #2D4A63; }
.palette-btn[aria-pressed="true"]::before { transform: translateX(24px); background: #2D4A63; }
.palette-btn:hover { box-shadow: 0 2px 10px rgba(31,74,60,.18); }
.palette-btn:focus-visible { outline: 3px solid var(--rose-ink); outline-offset: 3px; }
.header-tools .palette-btn { width: 54px; height: 44px; }
.header-tools .palette-btn::before { top: 8px; }
.header-tools .palette-btn[aria-pressed="true"]::before { transform: translateX(20px); }

/* Animation de transformation : la nouvelle couleur se répand en cercle depuis le bouton */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
/* Repli sans View Transitions : fondu des couleurs */
html.palette-fade, html.palette-fade *, html.palette-fade *::before, html.palette-fade *::after {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease, fill .6s ease, stroke .6s ease !important;
}
/* Mon histoire, chapitre « Par passion » : une seule photo d'Anne (modifs 2, 29/10) */
.v5-chap-anne .frame:only-child { max-width: 380px; margin-inline: auto; }
/* Témoignage de Catherine (page Seniors) : même taille que celui de Cécile */
.pa-sx-auto .v5-cecile-quote p { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; }
