/* ==========================================================================
   Yannick Fit Coach — page d'accueil
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #17171a;
  --ink-3: #26262b;
  --orange: #ff5a0a;
  --orange-text: #c03c00; /* orange lisible sur fond clair */
  --bone: #f4efe8;
  --paper: #fff;
  --mute: #a8a29b;
  --mute-dark: #5e5852;

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4.45vw, 64px);
  --section: clamp(64px, 7.2vw, 104px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
sup { font-size: .6em; line-height: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.section--ink :focus-visible, .hero :focus-visible, .header :focus-visible, .footer :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--orange); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Typo ----------------------------------------------------------------- */
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--orange); font: 600 18px/1.2 var(--display); letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 44px; height: 3px; background: var(--orange); }
.eyebrow--dark { color: var(--orange-text); }

.title { font: italic 800 clamp(40px, 5.6vw, 80px)/.95 var(--display); letter-spacing: -.005em; text-transform: uppercase; }
.title--md { font-size: clamp(40px, 5.3vw, 76px); }
.title--cta { font-size: clamp(40px, 6.4vw, 92px); line-height: .94; }
.accent { color: var(--orange); }
.white { color: #fff; }

/* Masque de révélation ligne par ligne */
.line { display: block; overflow: hidden; padding: .06em .12em .02em 0; margin-right: -.12em; }
.line__inner { display: block; will-change: transform; }

/* États de départ (uniquement si le JS tourne) */
.js [data-reveal], .js [data-hero-fade], .js [data-hero-fact], .js [data-hero-pop], .js [data-news] { opacity: 0; }
.js .line__inner { transform: translateY(110%); }

/* --- Boutons / liens ------------------------------------------------------ */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 20px 28px; border-radius: 2px; font: 700 21px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; transition: color .3s var(--ease), border-color .3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0 -20%; z-index: -1; transform: translateX(-115%) skewX(-18deg); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(-18deg); }
.btn .icon { font-size: 20px; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--sm { padding: 13px 20px; font-size: 17px; }
.btn--sm .icon { font-size: 18px; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary::before { background: #fff; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark .icon { color: var(--orange); }
.btn--dark::before { background: #fff; }
.btn--dark:hover { color: var(--ink); }

.link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font: normal 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.link .icon { transition: transform .3s var(--ease); }
a.link:hover .icon, a:hover .link .icon { transform: translateX(5px); }
.link--ink { color: var(--ink); font-size: 16px; }
.link--underline { color: var(--ink); padding-bottom: 6px; border-bottom: 2px solid var(--ink); }

.tag { flex: none; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 100px; color: rgba(255, 255, 255, .7); font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tag--accent { border-color: var(--orange); color: var(--orange); }
.badge { display: inline-block; padding: 7px 12px; background: var(--orange); color: var(--ink); font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }

/* --- Header --------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.header__logo img { width: auto; height: 58px; }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.header__phone .icon { color: var(--orange); }
.header__phone:hover { color: var(--orange); }

/* Menu mobile : positionné sous l'en-tête (absolute et non fixed, car l'en-tête est transformé par l'animation) */
.nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 87px); height: calc(100dvh - 87px); overflow-y: auto; z-index: 49; display: flex; flex-direction: column; gap: 4px; padding: 32px var(--gutter); background: var(--ink); visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.nav.is-open { visibility: visible; opacity: 1; }
.nav__link { position: relative; padding: 10px 0; color: rgba(255, 255, 255, .7); font: italic 800 40px/1.1 var(--display); text-transform: uppercase; transition: color .2s; }
.nav__link:hover, .nav__link.is-current { color: var(--orange); }

.burger { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; }
.burger__bar { width: 26px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
.header .btn { display: none; }

@media (min-width: 560px) { .header .btn { display: inline-flex; } }
@media (min-width: 1000px) {
  .header__inner { padding-block: 20px; }
  .header__logo img { height: 78px; }
  .header__phone { display: flex; }
  .burger { display: none; }
  .nav { position: static; height: auto; overflow: visible; flex-direction: row; gap: 40px; padding: 0; background: none; visibility: visible; opacity: 1; }
  .nav__link { padding: 6px 0; color: rgba(255, 255, 255, .65); font: 500 16px/1 var(--body); text-transform: none; }
  .nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav__link:hover { color: #fff; }
  .nav__link:hover::after { transform: scaleX(1); }
  .nav__link.is-current { color: var(--orange); font-weight: 700; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--ink); color: #fff; }
.hero__ghost { position: absolute; left: 18%; top: 20%; z-index: 0; font: italic 800 clamp(180px, 30.5vw, 440px)/1 var(--display); letter-spacing: -.015em; color: rgba(255, 255, 255, .02); -webkit-text-stroke: 1.5px rgba(255, 255, 255, .12); white-space: nowrap; pointer-events: none; user-select: none; }

.hero__inner { position: relative; z-index: 2; order: 1; display: flex; flex-direction: column; gap: 40px; padding-block: clamp(40px, 5vw, 72px) 32px; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 2.1vw, 30px); max-width: 740px; }
.hero__title { font: italic 800 clamp(58px, 8.9vw, 128px)/.92 var(--display); letter-spacing: -.008em; text-transform: uppercase; }
.hero__lede { max-width: 540px; color: rgba(255, 255, 255, .75); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 20px 36px; }
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts li + li { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .18); }
.hero__facts strong { font: 700 26px/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.hero__facts span { color: var(--mute); font-size: 14px; }

.hero__visual { position: relative; z-index: 1; order: 2; height: clamp(380px, 105vw, 560px); }
.hero__shape { position: absolute; inset: 0; }
.hero__shape--thin { background: rgba(255, 90, 10, .35); clip-path: polygon(36.9% 0, 39.5% 0, 2.6% 100%, 0 100%); }
.hero__shape--band { background: linear-gradient(#2b2b31, #141416); clip-path: polygon(43.9% 0, 100% 0, 100% 100%, 7% 100%); }
.hero__shape--wide { background: var(--orange); clip-path: polygon(43.9% 0, 52% 0, 15.1% 100%, 7% 100%); }
.hero__coach { position: absolute; inset: auto 0 0; height: 90%; display: flex; justify-content: center; }
.hero__coach img { width: auto; height: 100%; max-width: none; }
.hero__chip { position: absolute; top: 24px; right: var(--gutter); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1; }
.hero__chip .icon { color: var(--orange); font-size: 15px; }
.hero__card { position: absolute; right: var(--gutter); bottom: 14%; display: flex; flex-direction: column; gap: 2px; padding: 16px 22px; background: var(--ink); border-left: 4px solid var(--orange); }
.hero__card strong { font: italic 800 28px/1.1 var(--display); text-transform: uppercase; }
.hero__card span { color: var(--mute); font-size: 14px; }

@media (max-width: 899px) {
  .hero__facts li + li { padding-left: 0; border-left: 0; }
  .hero__ghost { top: auto; bottom: 30%; left: 4%; }
}
@media (min-width: 900px) {
  .hero { min-height: clamp(620px, 62.5vw, 900px); }
  .hero__inner { flex: 1; justify-content: space-between; padding-bottom: clamp(32px, 3.6vw, 52px); }
  .hero__visual { position: absolute; inset: 0 0 0 auto; width: 47.8%; height: auto; }
  .hero__coach { inset: auto auto 0 7%; height: 88%; display: block; }
  .hero__chip { top: 60px; }
  .hero__card { bottom: 15.5%; }
}

/* --- Rubans défilants ----------------------------------------------------- */
.ribbons { position: relative; height: 124px; overflow: hidden; background: var(--bone); }
.ribbon { position: absolute; left: -3%; width: 106%; height: 62px; display: flex; align-items: center; overflow: hidden; transform-origin: left top; }
.ribbon--dark { top: 8px; background: var(--ink); color: rgba(255, 255, 255, .25); transform: rotate(1.5deg); }
.ribbon--orange { top: 48px; background: var(--orange); color: var(--ink); transform: rotate(-1.5deg); }
.ribbon__track { display: flex; flex: none; will-change: transform; }
.ribbon__group { display: flex; flex: none; align-items: center; gap: 28px; padding-right: 28px; font: italic 800 32px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.ribbon__group .icon { font-size: 20px; }

/* --- Sections ------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--bone { background: var(--bone); padding-top: clamp(48px, 5vw, 72px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(28px, 3.2vw, 46px); }
.section__head .eyebrow { margin-bottom: 18px; }
.section__intro { max-width: 380px; color: var(--mute-dark); }

/* --- Programmes (accordéon) ----------------------------------------------- */
.programs { display: flex; flex-direction: column; gap: 12px; }
.program { position: relative; overflow: hidden; height: 340px; background: var(--ink-3); color: #fff; }
.program::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 11, 12, .3), rgba(11, 11, 12, .93)); pointer-events: none; }
.program__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program__num { position: absolute; z-index: 2; top: 24px; left: 24px; font: 700 20px/1 var(--display); letter-spacing: .05em; }
.program__num i { font-style: normal; }
.program__closed { display: none; }
.program__open { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.program__open h3 { font: italic 800 clamp(40px, 4.7vw, 68px)/.95 var(--display); text-transform: uppercase; }
.program__open p { max-width: 440px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.programs__foot { display: none; }

@media (min-width: 900px) {
  .js .programs { flex-direction: row; height: 520px; }
  .js .program { flex: 1 1 0; min-width: 0; height: auto; cursor: pointer; }
  .js .program__num { top: 20px; left: 20px; }
  .js .program__num i { display: none; }
  .js .program.is-open .program__num { top: 32px; left: 32px; }
  .js .program.is-open .program__num i { display: inline; }
  .js .program__closed { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; padding: 20px; text-align: left; }
  .js .program__closed small { color: rgba(255, 255, 255, .7); font: 500 15px/1.3 var(--body); }
  .js .program__closed b { font: italic 800 30px/1.1 var(--display); text-transform: uppercase; }
  .js .program__plus { position: absolute; top: 14px; right: 20px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; transition: background .3s, color .3s, transform .4s var(--ease); }
  .js .program:hover .program__plus { background: #fff; color: var(--ink); transform: rotate(90deg); }
  .js .program__open { left: 32px; right: auto; bottom: 32px; width: 440px; gap: 16px; opacity: 0; visibility: hidden; }
  .js .programs__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; color: var(--mute-dark); font-size: 14px; }
  .js .programs__foot p { display: flex; align-items: center; gap: 10px; }
  .programs__progress { display: flex; gap: 6px; }
  .programs__progress span { width: 28px; height: 3px; background: rgba(11, 11, 12, .15); }
}

/* --- Méthode -------------------------------------------------------------- */
.method { display: grid; gap: 56px; }
.method__aside { display: flex; flex-direction: column; gap: 28px; }
.quote { position: relative; overflow: hidden; height: 300px; border-left: 4px solid var(--orange); }
.quote img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 11, 12, .1), rgba(11, 11, 12, .9)); }
.quote figcaption { position: absolute; z-index: 1; inset: auto 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.quote blockquote { font: italic 800 34px/1 var(--display); text-transform: uppercase; }
.quote cite { color: var(--mute); font-size: 14px; font-style: normal; }

.step { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 20px; padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.step__line { position: absolute; top: -2px; left: 0; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
html:not(.js) .step__line { transform: none; }
.step__num { font: italic 800 clamp(64px, 7.2vw, 104px)/.85 var(--display); color: rgba(255, 255, 255, .1); -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); transition: color .5s var(--ease), -webkit-text-stroke-color .5s var(--ease); }
.step.is-active .step__num, html:not(.js) .step__num { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.step__body h3 { margin-bottom: 10px; font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: .015em; text-transform: uppercase; }
.step__body p { max-width: 560px; color: var(--mute); line-height: 1.55; }
.step .tag { grid-column: 2; justify-self: start; }

.reassure { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 22px 24px; background: var(--ink-2); font-size: 16px; line-height: 1.4; }
.reassure > .icon { color: var(--orange); font-size: 24px; }
.reassure > span { flex: 1 1 260px; }

@media (min-width: 760px) {
  .step { grid-template-columns: 132px minmax(0, 1fr) auto; gap: 32px; padding-block: 34px; align-items: start; }
  .step .tag { grid-column: auto; }
}
@media (min-width: 1000px) {
  .method { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(48px, 6.1vw, 88px); }
}

/* --- Actualités ----------------------------------------------------------- */
.news { display: grid; gap: 24px; }
.news__feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 80px; min-height: 420px; padding: clamp(20px, 2.2vw, 32px); background: var(--ink-3); color: #fff; }
.news__feature > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transition: scale .8s var(--ease); }
.news__feature:hover > img { scale: 1.05; }
.news__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 11, 12, .15), rgba(11, 11, 12, .92)); }
.news__feature > * { position: relative; z-index: 1; }
.news__feature > img { position: absolute; z-index: 0; }
.news__feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.news__feature-body strong { font: italic 800 clamp(36px, 3.9vw, 56px)/.95 var(--display); text-transform: uppercase; }
.news__feature-body > span { max-width: 520px; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.news__side { display: grid; gap: 24px; }

.card { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); background: var(--bone); color: var(--ink); overflow: hidden; }
.card__media { overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
.card__body small { color: var(--orange-text); font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.card__body strong { font: 700 28px/1 var(--display); text-transform: uppercase; }
.card__body > span { color: var(--mute-dark); font-size: 15px; line-height: 1.45; }
.card__body .link { margin-top: auto; padding-top: 8px; }

@media (min-width: 1000px) {
  .news { grid-template-columns: minmax(0, 768fr) minmax(0, 520fr); }
  .news__feature { min-height: 480px; }
}

/* --- Appel à l'action ----------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--orange); color: var(--ink); }
.cta__ghost { position: absolute; right: -3%; top: 50%; translate: 0 -50%; font: italic 800 clamp(280px, 39vw, 560px)/1 var(--display); letter-spacing: -.02em; color: rgba(11, 11, 12, .07); pointer-events: none; user-select: none; }
.cta__stripe { display: none; }
.cta__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 64px; min-height: 440px; padding-block: 72px; }
.cta__eyebrow { margin-bottom: 20px; font: 700 20px/1 var(--display); letter-spacing: .15em; text-transform: uppercase; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 380px; }
.cta__actions p { font-size: 18px; font-weight: 500; line-height: 1.5; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.cta__phone:hover { text-decoration: underline; }

@media (min-width: 1240px) {
  .cta__stripe { display: block; position: absolute; top: 0; bottom: 0; left: calc(50% + 136px); width: 150px; background: var(--ink); clip-path: polygon(80% 0, 100% 0, 20% 100%, 0 100%); }
}

/* --- Pied de page --------------------------------------------------------- */
.footer { padding-block: 72px 32px; background: var(--ink); color: rgba(255, 255, 255, .85); font-size: 16px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 320px; }
.footer__brand img { width: 150px; height: auto; }
.footer__brand p { color: var(--mute); line-height: 1.5; }
.footer h2 { margin-bottom: 14px; color: var(--orange); font: 700 18px/1.2 var(--display); letter-spacing: .11em; text-transform: uppercase; }
.footer ul { display: grid; gap: 12px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--orange); }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact .icon { color: rgba(255, 255, 255, .6); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--mute); font-size: 14px; }
.footer__sign { font: italic 600 18px/1.2 var(--display); color: rgba(255, 255, 255, .6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
