:root {
  --black: #050706;
  --black-2: #0a0d0b;
  --panel: #101411;
  --white: #f3f6f3;
  --muted: #9ca49e;
  --line: rgba(255, 255, 255, 0.13);
  --green: #b7ff00;
  --green-bright: #c8ff3d;
  --green-dark: #6f9900;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-tech: "Space Mono", monospace;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; overflow-x: hidden; background: var(--black); color: var(--white); font-family: var(--font-body); letter-spacing: 0; }
body::before { content: ""; position: fixed; z-index: 1000; inset: 0; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.scroll-progress { position: fixed; z-index: 101; top: 0; left: 0; width: 0; height: 3px; background: var(--green); box-shadow: 0 0 18px var(--green); }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 0 max(28px, calc((100vw - 1380px) / 2)); border-bottom: 1px solid transparent; transition: transform .4s ease, background .3s ease, border-color .3s ease; }
.site-header.is-scrolled { background: rgba(5, 7, 6, .88); border-color: var(--line); backdrop-filter: blur(18px); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); text-transform: uppercase; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--green); color: var(--green); font-size: .9rem; font-weight: 900; transform: skew(-7deg); box-shadow: inset 0 0 18px rgba(183, 255, 0, .08); }
.brand-name { font-size: 1.24rem; font-weight: 800; }
.brand-name b { color: var(--green); }
.main-nav { display: flex; justify-content: center; gap: 34px; color: #c4cac5; font-family: var(--font-tech); font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.main-nav a { position: relative; padding: 30px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 21px; width: 100%; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: flex; align-items: center; gap: 22px; padding: 12px 16px; border: 1px solid var(--green); color: var(--green); font-family: var(--font-tech); font-size: .65rem; font-weight: 800; text-transform: uppercase; transition: .25s ease; }
.header-cta:hover { color: var(--black); background: var(--green); box-shadow: 0 0 26px rgba(183, 255, 0, .22); }
.nav-toggle { display: none; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media, .hero-shade, .hero-grid { position: absolute; inset: 0; }
.hero-media { background: url("assets/hafid-method-hero.png") center right / cover no-repeat; filter: grayscale(1) contrast(1.12) brightness(.73); transform: scale(1.04); animation: heroIn 1.4s cubic-bezier(.2,.8,.2,1) both; }
.hero-shade { background: linear-gradient(90deg, #050706 4%, rgba(5,7,6,.94) 38%, rgba(5,7,6,.25) 73%), linear-gradient(0deg, #050706 0%, transparent 32%); }
.hero-grid { opacity: .22; background-image: linear-gradient(rgba(183,255,0,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(183,255,0,.12) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(90deg, black, transparent 74%); }
.hero::after { content: ""; position: absolute; right: 12%; bottom: 0; width: 1px; height: 58%; background: linear-gradient(transparent, var(--green)); box-shadow: 0 0 18px rgba(183,255,0,.55); }
.hero-content { position: relative; z-index: 2; padding-top: 92px; }
.status-line { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #d8ddd9; font-family: var(--font-tech); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px var(--green); animation: pulse 1.8s infinite; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; }
h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(5.2rem, 10.3vw, 10.5rem); line-height: .76; font-weight: 900; }
h1 span, h2 span { color: transparent; -webkit-text-stroke: 1px var(--green); text-shadow: 0 0 32px rgba(183,255,0,.08); }
.hero-lead { max-width: 560px; color: #c5cbc6; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.btn { position: relative; display: inline-flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 30px; padding: 15px 20px; overflow: hidden; border: 1px solid transparent; border-radius: 0; font-size: .78rem; font-weight: 800; text-transform: uppercase; transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: #070a07; background: var(--green); box-shadow: 0 0 0 rgba(183,255,0,0); }
.btn-primary:hover { background: var(--green-bright); box-shadow: 0 8px 30px rgba(183,255,0,.18); }
.btn-ghost, .btn-card { border-color: var(--line); background: rgba(255,255,255,.035); }
.btn-ghost:hover, .btn-card:hover { border-color: var(--green); color: var(--green); }
.hero-stats { position: absolute; z-index: 3; right: 5vw; bottom: 7vh; display: flex; border: 1px solid var(--line); background: rgba(5,7,6,.58); backdrop-filter: blur(14px); }
.hero-stats div { min-width: 130px; padding: 18px 22px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { display: block; color: var(--green); font-family: var(--font-display); font-size: 1.8rem; }
.hero-stats span { color: var(--muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.hero-index, .section-number { position: absolute; color: rgba(255,255,255,.025); font-family: var(--font-display); font-size: 26rem; font-weight: 900; line-height: 1; pointer-events: none; }
.hero-index { right: -2vw; top: 10vh; }
.scroll-cue { position: absolute; z-index: 4; left: 30px; bottom: 28px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .62rem; font-weight: 700; text-transform: uppercase; transform: rotate(-90deg); transform-origin: left center; }
.scroll-cue span { width: 35px; height: 1px; background: var(--green); }

.ticker { overflow: hidden; border-bottom: 1px solid rgba(183,255,0,.25); background: var(--green); color: var(--black); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 26px; padding: 13px 0; animation: ticker 25s linear infinite; }
.ticker span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; text-transform: uppercase; }
.ticker i { width: 7px; height: 7px; border: 1px solid var(--black); transform: rotate(45deg); }

.section { position: relative; padding: 130px 0; overflow: hidden; }
.section-number { top: 40px; right: -25px; }
.section-kicker { margin-bottom: 19px; color: var(--green); font-family: var(--font-tech); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.section-kicker::before { content: "/ "; }
h2 { margin-bottom: 0; font-size: clamp(4rem, 7.4vw, 7.4rem); line-height: .82; font-weight: 900; }
h3 { font-size: 1.7rem; line-height: 1; }
.method { background: #090b0a; color: var(--white); border-bottom: 1px solid var(--line); }
.method .section-number { color: rgba(255,255,255,.025); }
.method h2 span { -webkit-text-stroke-color: var(--green); }
.method-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.sticky-heading { position: sticky; top: 125px; align-self: start; }
.method-intro { max-width: 670px; margin-bottom: 62px; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.45rem); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.step:hover { padding-inline: 16px; background: rgba(183,255,0,.035); }
.step > span { color: var(--green); font-family: var(--font-tech); font-size: .8rem; font-weight: 900; }
.step h3 { margin-bottom: 9px; }
.step p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.7; }

.offers { background: var(--black); }
.section-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 70px; margin-bottom: 56px; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); line-height: 1.7; }
.pricing-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-card { position: relative; display: flex; min-height: 620px; flex-direction: column; justify-content: space-between; gap: 25px; padding: 28px; border: 1px solid var(--line); background: var(--panel); transition: transform .35s ease, border-color .35s ease, background .35s ease; }
.price-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 35px; height: 3px; background: var(--green); transition: width .35s ease; }
.price-card:hover { z-index: 3; border-color: rgba(183,255,0,.55); background: #131914; transform: translateY(-9px); }
.price-card:hover::before { width: calc(100% + 2px); }
.price-card.featured { border-color: var(--green); background: linear-gradient(180deg, rgba(183,255,0,.1), var(--panel) 38%); }
.badge { position: absolute; top: 0; right: 0; padding: 8px 12px; color: var(--black); background: var(--green); font-size: .63rem; font-weight: 900; text-transform: uppercase; }
.card-top { display: flex; justify-content: space-between; color: #737b75; font-family: var(--font-tech); font-size: .57rem; font-weight: 800; }
.plan-label { margin-bottom: 10px; color: var(--green); font-family: var(--font-tech); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.price-card h3 { margin-bottom: 13px; font-size: 2.1rem; }
.plan-copy, .price-card li { color: var(--muted); line-height: 1.65; }
.price { display: flex; align-items: center; margin: 0; font-family: var(--font-display); }
.price strong { font-size: 6.4rem; line-height: .8; }
.price > span { display: grid; color: var(--green); font-size: 2rem; }
.price small { color: var(--muted); font-family: var(--font-body); font-size: .55rem; text-transform: uppercase; }
.price-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.price-card li::before { content: "+"; margin-right: 10px; color: var(--green); font-weight: 900; }
.price-card .btn { width: 100%; }
.checkout-status { min-height: 24px; margin-top: 18px; color: var(--green); font-weight: 700; text-align: center; }

.calculator-section { background: #0b0f0c; border-block: 1px solid var(--line); }
.calculator-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.calculator-copy > p:not(.section-kicker) { max-width: 510px; margin-top: 30px; color: var(--muted); line-height: 1.8; }
.tech-note { max-width: 510px; margin-top: 38px; padding: 18px 0; border-block: 1px solid var(--line); }
.tech-note span { color: var(--green); font-size: .63rem; font-weight: 800; }
.tech-note p { margin: 8px 0 0; color: #727a74; font-size: .77rem; line-height: 1.6; }
.calculator, .contact-form { display: grid; gap: 18px; padding: 34px; border: 1px solid rgba(183,255,0,.35); background: #101411; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.form-heading { display: flex; justify-content: space-between; margin-bottom: 10px; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-family: var(--font-tech); font-size: .75rem; font-weight: 800; }
.form-heading i { color: var(--green); font-family: var(--font-body); font-size: .57rem; font-style: normal; }
.form-row.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { display: grid; gap: 8px; color: #aeb5b0; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
input, select, textarea { width: 100%; min-height: 52px; padding: 14px; border: 1px solid var(--line); border-radius: 0; outline: none; color: var(--white); background: #090c0a; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(183,255,0,.08); }
.result { position: relative; padding: 22px; overflow: hidden; border-left: 3px solid var(--green); background: rgba(183,255,0,.055); }
.result::after { content: ""; position: absolute; right: -20px; top: -25px; width: 90px; height: 90px; border: 1px solid rgba(183,255,0,.18); transform: rotate(45deg); }
.result span { color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.result strong { display: block; margin: 6px 0; color: var(--green); font-family: var(--font-display); font-size: 2.8rem; }
.result p { margin: 0; color: #8e9690; font-size: .8rem; line-height: 1.55; }

.blog { background: #090b0a; color: var(--white); border-bottom: 1px solid var(--line); }
.blog .section-number { color: rgba(255,255,255,.025); }
.blog h2 span { -webkit-text-stroke-color: var(--green); }
.blog .section-heading > p { color: var(--muted); }
.blog-list { border-top: 1px solid var(--line); }
.blog-row { display: grid; grid-template-columns: .35fr 1fr auto; gap: 35px; align-items: center; padding: 31px 12px; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.blog-row:hover { padding-inline: 24px; background: rgba(183,255,0,.055); }
.blog-row > span { color: #687069; font-family: var(--font-tech); font-size: .57rem; font-weight: 800; text-transform: uppercase; }
.blog-row h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.blog-row a { min-width: 90px; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.blog-row a b { color: var(--green); font-size: 1rem; }

.contact { min-height: 85vh; display: flex; align-items: center; background: #050706; }
.contact-glow { position: absolute; left: -15vw; bottom: -50%; width: 65vw; aspect-ratio: 1; border: 1px solid rgba(183,255,0,.12); border-radius: 50%; box-shadow: 0 0 180px rgba(183,255,0,.06); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.contact-copy > p:not(.section-kicker) { max-width: 570px; margin: 28px 0 0; color: var(--muted); line-height: 1.75; }
.contact-links { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-links a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding .2s; }
.contact-links a:hover { padding-left: 8px; color: var(--green); }
.contact-links span { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.contact-links b { font-size: .8rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: #030403; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 100px; color: var(--muted); font-size: .7rem; }
.footer-inner p { margin: 0; }

.reveal { opacity: 0; transform: translateY(48px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes heroIn { from { opacity: 0; transform: scale(1.13); } to { opacity: 1; transform: scale(1.04); } }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 4px var(--green); } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  :root { --header-height: 70px; }
  .site-header { grid-template-columns: auto auto; justify-content: space-between; padding-inline: 20px; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 6px; border: 1px solid var(--line); background: rgba(5,7,6,.7); }
  .nav-toggle span { width: 21px; height: 1px; background: var(--white); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: absolute; top: var(--header-height); left: 0; right: 0; display: grid; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: rgba(5,7,6,.98); transform: translateY(-140%); opacity: 0; pointer-events: none; transition: .3s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 17px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero-stats { right: 24px; bottom: 28px; }
  .hero-stats div { min-width: 100px; padding: 14px; }
  .method-grid, .calculator-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .sticky-heading { position: relative; top: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 700px; margin-inline: auto; }
  .price-card { min-height: auto; }
}

@media (max-width: 660px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 88px 0; }
  .section-number, .hero-index { font-size: 14rem; }
  h1 { font-size: clamp(4.2rem, 22vw, 6.5rem); }
  h2 { font-size: clamp(3.4rem, 18vw, 5.4rem); }
  .hero { min-height: 800px; align-items: flex-start; }
  .hero-content { padding-top: 145px; }
  .hero-media { background-position: 64% center; opacity: .58; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,7,6,.92), rgba(5,7,6,.36)), linear-gradient(0deg, #050706 4%, transparent 70%); }
  .hero-actions { flex-direction: column; max-width: 330px; }
  .hero-stats { left: 14px; right: 14px; bottom: 30px; }
  .hero-stats div { min-width: 0; flex: 1; padding: 12px; }
  .hero-stats strong { font-size: 1.4rem; }
  .scroll-cue { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .method-intro { margin-bottom: 35px; }
  .step { grid-template-columns: 40px 1fr; }
  .price-card { padding: 24px; }
  .price strong { font-size: 5rem; }
  .calculator, .contact-form { padding: 22px; }
  .form-row.two { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 1fr auto; gap: 12px; }
  .blog-row > span { grid-column: 1 / -1; }
  .blog-row a { min-width: auto; }
  .contact-links a { align-items: flex-start; flex-direction: column; gap: 7px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Liens legaux (footer) ---- */
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: #c4cac5; font-family: var(--font-tech); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.footer-legal a:hover { color: var(--green); }

/* ---- Bouton RDV (header) + section Coaching / Calendly ---- */
.header-rdv { display: inline-flex; align-items: center; padding: 12px 16px; margin-right: 4px; border: 1px solid var(--line); color: #c4cac5; font-family: var(--font-tech); font-size: .65rem; font-weight: 800; text-transform: uppercase; transition: .25s ease; }
.header-rdv:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 20px rgba(183,255,0,.14); }
.rdv-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 8px 0 40px; padding: 30px 34px; border: 1px solid rgba(183,255,0,.35); background: #101411; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.rdv-banner h3 { margin: 6px 0; font-size: 1.9rem; }
.rdv-banner .plan-copy { max-width: 46ch; }
.rdv-banner .btn { flex-shrink: 0; }

@media (max-width: 720px) {
  .header-rdv { display: none; }
  .rdv-banner { padding: 24px; }
}
