/* Conseil IA — page propre à /conseil/. S'appuie sur /css/main.css (tokens, nav, boutons, FAQ, CTA, footer). */

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- reveal ---------- */
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); animation: cxShow 0s 4s forwards; }
html.js .rv.in { opacity: 1; transform: none; animation: none; }
@keyframes cxShow { to { opacity: 1; transform: none; } }

/* ---------- mobile menu (sans GSAP) ---------- */
.menu { transition: clip-path .8s var(--ease-io); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.nav__links a[aria-current="page"] { color: var(--bone); background: rgba(237, 233, 225, .06); }

/* ---------- titres ---------- */
.cx-h2 { font-size: clamp(38px, 5.4vw, 92px); line-height: .94; letter-spacing: -0.055em; font-weight: 500; max-width: 16ch; }
.cx-h2 .serif, .cx-hero__title .serif { color: var(--accent); letter-spacing: -0.03em; padding-right: .04em; }
.cx-lead { color: var(--bone-70); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; max-width: 46ch; }
.cx-lead + .cx-lead { margin-top: 1em; }

/* ---------- hero ---------- */
.cx-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--nav-h) + 64px) 0 clamp(40px, 5vw, 72px); }
.cx-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 12% 100%, rgba(255, 90, 31, .22), transparent 70%), radial-gradient(50% 50% at 92% 8%, rgba(255, 90, 31, .07), transparent 70%); }
.cx-hero__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
@media (min-width: 1180px) { .cx-hero__grid { grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: clamp(40px, 5vw, 96px); } }
.cx-hero__label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); margin-bottom: clamp(24px, 3vw, 40px); }
.cx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 90, 31, .5); animation: cxPulse 2.4s var(--ease-soft) infinite; }
@keyframes cxPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } }
.cx-hero__title { font-size: clamp(40px, 5.7vw, 104px); line-height: .93; letter-spacing: -0.058em; font-weight: 500; max-width: 15ch; }
.cx-hero__sub { margin-top: clamp(24px, 2.6vw, 40px); color: var(--bone-70); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; max-width: 44ch; }
.cx-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 44px); }
.cx-hero__who { margin-top: 22px; color: var(--muted); }

.cx-ladder { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), #0e0e10); overflow: hidden; }
.cx-ladder__head { padding: 18px 24px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cx-ladder a { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: baseline; padding: 20px 24px; border-bottom: 1px solid var(--line); transition: background-color .4s; }
.cx-ladder a:last-child { border-bottom: 0; }
.cx-ladder a:hover { background: rgba(237, 233, 225, .04); }
.cx-ladder .mono { color: var(--accent); }
.cx-ladder b { font-weight: 500; font-size: 18px; letter-spacing: -0.03em; }
.cx-ladder small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; letter-spacing: 0; }
.cx-ladder .px { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; color: var(--bone); white-space: nowrap; text-align: right; }

/* ---------- sections ---------- */
.cx-section { position: relative; padding-block: clamp(88px, 11vw, 176px); border-top: 1px solid var(--line); }
.cx-split { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 980px) { .cx-split { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); } }
.cx-split--sticky > :first-child { align-self: start; }
@media (min-width: 980px) { .cx-split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 48px); } }

/* problème */
.cx-pains { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: 36px; }
@media (min-width: 640px) { .cx-pains { grid-template-columns: 1fr 1fr; } }
.cx-pains li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 10px; font-size: 18px; letter-spacing: -0.02em; }
.cx-pains li .mono { color: var(--accent); padding-top: 5px; }
@media (min-width: 640px) { .cx-pains li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); } }
.cx-quote { margin-top: 40px; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -0.04em; font-weight: 500; max-width: 24ch; }
.cx-quote .serif { color: var(--accent); }

/* preuve */
.cx-shots { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 760px) { .cx-shots { grid-template-columns: 1fr 1fr; gap: 24px; } }
.cx-shot { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: border-color .5s, transform .8s var(--ease-out); }
.cx-shot:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.cx-shot__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cx-shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.cx-shot__bar span { margin-left: 8px; color: var(--muted); }
.cx-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.cx-shot__cap { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.cx-shot__cap b { font-weight: 500; font-size: 20px; letter-spacing: -0.03em; }
.cx-shot__cap p { color: var(--bone-70); font-size: 16px; }
.cx-shot__cap a { margin-top: 10px; color: var(--accent); align-self: flex-start; }

.cx-tools { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 96px); }
@media (min-width: 760px) { .cx-tools { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 72px); } }
@media (min-width: 1200px) { .cx-tools { grid-template-columns: repeat(3, 1fr); } }
.cx-tools li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cx-tools .mono { color: var(--muted); padding-top: 4px; }
.cx-tools b { display: block; font-weight: 500; font-size: 18px; letter-spacing: -0.025em; }
.cx-tools p { color: var(--muted); font-size: 15px; margin-top: 3px; line-height: 1.45; }
.cx-honest { margin-top: 36px; padding: 22px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--bone-70); max-width: 70ch; font-size: 16px; }
.cx-honest b { color: var(--bone); font-weight: 500; }

/* étapes */
.cx-tiers { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .cx-tiers { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.cx-tier { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), #0e0e10); }
.cx-tier--main { border-color: rgba(255, 90, 31, .45); background: linear-gradient(180deg, #17120f, #0e0e10); }
.cx-tier__top { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); margin-bottom: 28px; }
.cx-tier__top .n { color: var(--accent); }
.cx-tier h3 { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 500; }
.cx-tier__price { margin-top: 18px; font-size: clamp(40px, 4vw, 64px); line-height: .95; letter-spacing: -0.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.cx-tier__price small { font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 400; display: block; margin-top: 10px; }
.cx-tier__list { margin-top: 26px; border-top: 1px solid var(--line); }
.cx-tier__list li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--bone-70); font-size: 16px; line-height: 1.45; }
.cx-tier__list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 1px; background: var(--accent); }
.cx-tier__list b { color: var(--bone); font-weight: 500; }
.cx-tier__flag { margin-top: auto; padding-top: 24px; }
.cx-tier__flag span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 90, 31, .45); color: var(--accent); font-size: 11px; }
.cx-calc { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 14px; grid-template-columns: 1fr; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (min-width: 900px) { .cx-calc { grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; } }
.cx-calc .mono { color: var(--muted); }
.cx-calc p { color: var(--bone-70); font-size: 17px; max-width: 60ch; }
.cx-calc b { color: var(--bone); font-weight: 500; }

/* déroulement */
.cx-flow { counter-reset: s; border-top: 1px solid var(--line); }
.cx-flow li { counter-increment: s; display: grid; grid-template-columns: 1fr; gap: 6px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cx-flow li { grid-template-columns: 120px 1fr; gap: 24px; } }
.cx-flow li::before { content: "0" counter(s); font-size: clamp(48px, 6vw, 88px); line-height: .85; letter-spacing: -0.07em; font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(237, 233, 225, .35); font-variant-numeric: tabular-nums; }
.cx-flow h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.04em; font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
.cx-flow p { color: var(--bone-70); font-size: 17px; max-width: 46ch; }
.cx-zone { margin-top: 28px; color: var(--muted); }

/* FAQ : réutilise .faq de main.css, titre propre */
.faq::before { content: "(05)  FAQ"; }

/* CTA : plus court que l'accueil */
.cta .cta__title { font-size: clamp(60px, 11vw, 200px); }

@media (max-width: 480px) {
  .cx-hero__ctas { flex-direction: column; align-items: stretch; }
  .cx-hero__ctas .btn { justify-content: space-between; }
  .cx-hero__ctas .btn--ghost { justify-content: center; }
  .cx-ladder a { grid-template-columns: 30px 1fr; }
  .cx-ladder .px { grid-column: 2; text-align: left; }
  .cx-pains li:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cx-dot { animation: none; }
  html.js .rv { opacity: 1; transform: none; }
}

/* hero : apparition par CSS seul (pas de dépendance au JS) */
html.js .cx-hero .rv { opacity: 1; transform: none; transition: none; animation: cxIn 1.1s var(--ease-out) var(--d, 0s) both; }
@keyframes cxIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .cx-hero .rv { animation: none; } }
