/* =========================================================
   Génie Civil Pro — béton, acier, bureau d'études
   ========================================================= */
:root {
  --bg: #0d0f12;
  --bg-2: #14171b;
  --panel: #171a1f;
  --line: #2a2f36;
  --line-2: #3a414a;
  --text: #eceef0;
  --muted: #9aa1a9;
  --dim: #6c737c;
  --accent: #ff6a1a;      /* orange chantier */
  --accent-2: #ffb347;
  --steel: #8fb3d9;       /* acier / plan */
  --steel-dim: rgba(143, 179, 217, .14);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
strong { color: #fff; font-weight: 600; }
::selection { background: var(--accent); color: #111; }

/* Concrete grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

/* Scroll progress = rebar */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; background: transparent; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(105deg, var(--accent) 0 6px, #c94f0f 6px 9px);
  box-shadow: 0 0 14px rgba(255, 106, 26, .6);
}

/* Blueprint grid */
.blueprint {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--steel-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-dim) 1px, transparent 1px),
    linear-gradient(rgba(143,179,217,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,179,217,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: #140a03; font-weight: 700; text-decoration: none; letter-spacing: .01em;
  border: 1px solid var(--accent); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(255, 106, 26, .6);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn i { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn-ghost::after { background: var(--text); }
.btn-ghost:hover { color: #111; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, .p-load:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 20px;
  background: rgba(16, 18, 22, .72); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 800; }
.brand svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: square; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 130px var(--gutter) 70px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: 1400px; margin: 0 auto;
}
.hero > * { position: relative; z-index: 1; }
.hero .blueprint { position: absolute; z-index: 0; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.02); margin: 0 0 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,106,26,.7); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,106,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,26,0); } }
h1 { font-size: clamp(48px, 7.4vw, 108px); line-height: .92; letter-spacing: -.045em; font-weight: 900; margin: 0 0 28px; }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
h1 .line:nth-child(2) > span { animation-delay: .12s; }
h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 560px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 34px; list-style: none; padding: 0; margin: 44px 0 0; color: var(--dim); font-size: 13px; text-transform: uppercase; }
.hero-facts b { display: block; color: var(--text); font-size: 30px; font-weight: 700; letter-spacing: -.02em; text-transform: none; }

/* Lab panels (figures) */
.beam-lab, .rc-section, .elevation {
  margin: 0; background: linear-gradient(180deg, rgba(23,26,31,.9), rgba(17,19,23,.9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.03);
}
.beam-lab { opacity: 0; transform: translateY(30px) scale(.98); animation: labIn 1.1s .35s var(--ease) forwards; }
@keyframes labIn { to { opacity: 1; transform: none; } }
.lab-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--dim); padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.live .dot { width: 6px; height: 6px; }
.beam-lab svg, .rc-section svg, .elevation svg { width: 100%; height: auto; display: block; overflow: visible; }
.beam-lab figcaption { font-size: 12px; color: var(--dim); padding-top: 8px; }
.beam-lab figcaption b { color: var(--accent); }

/* SVG drawing language */
.svg-label { font-family: var(--mono); font-size: 13px; fill: var(--text); }
.svg-label.dim { fill: var(--dim); font-size: 12px; }
.accent-t { fill: var(--accent); font-size: 11px; }
.axis { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 4 4; }
.beam { fill: none; stroke: #c9ced4; stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.beam-ghost { fill: none; stroke: var(--steel); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 6 6; }
.sup { fill: none; stroke: var(--steel); stroke-width: 2; }
.sup-hatch { color: var(--steel); opacity: .5; }
.q-arrows line { stroke: var(--steel); stroke-width: 1.6; color: var(--steel); }
.q-line { fill: none; stroke: var(--steel); stroke-width: 1.6; }
.p-load { cursor: grab; color: var(--accent); outline: none; }
.p-load.dragging { cursor: grabbing; }
.p-hit { fill: transparent; }
.p-arrow { stroke: var(--accent); stroke-width: 4; }
.p-knob { fill: var(--accent); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 10px rgba(255,106,26,.8)); transition: r .2s; }
.p-load:hover .p-knob, .p-load.dragging .p-knob { r: 12; }
.p-text { fill: var(--accent); font-weight: 700; }
.r-arrow { stroke: #7ee0a4; stroke-width: 3; color: #7ee0a4; }
.r-text { fill: #7ee0a4; font-size: 12px; }
.m-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.m-max-line { stroke: var(--accent); stroke-dasharray: 3 4; stroke-width: 1; opacity: .7; }
.m-dot { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.m-text { fill: var(--accent); font-weight: 700; }
.dim-line line { stroke: var(--dim); stroke-width: 1; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); padding: 18px 0; }
.track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-size: 14px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.kicker { font-size: 12px; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; letter-spacing: .12em; }
h2 { font-size: clamp(36px, 5vw, 66px); line-height: 1; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 800; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Books ---------- */
.books { display: grid; gap: clamp(28px, 4vw, 48px); }
.book-card {
  display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,106,26,.08), transparent 50%), var(--panel);
  position: relative; overflow: hidden;
}
.book-card:nth-child(2) { grid-template-columns: 1.2fr minmax(240px, .8fr); background: radial-gradient(120% 120% at 100% 0%, rgba(143,179,217,.1), transparent 50%), var(--panel); }
.book-card:nth-child(2) .book-stage { order: 2; }

.book-stage { perspective: 1400px; isolation: isolate; display: grid; place-items: center; position: relative; padding: 20px 0; }
.book {
  --rx: 6deg; --ry: -24deg; --d: 30px; --ar: .714;
  position: relative; width: min(260px, 70vw); aspect-ratio: var(--ar); transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), aspect-ratio .3s;
  animation: bookFloat 6s ease-in-out infinite;
}
@keyframes bookFloat { 50% { translate: 0 -10px; } }
.book-stage::after { /* ombre posée au sol */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 4px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); filter: blur(4px); z-index: 0;
}
.book-front, .book-back, .book-spine, .book-pages { position: absolute; backface-visibility: hidden; }
.book-front {
  inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden; transform: translateZ(calc(var(--d) / 2));
  background: linear-gradient(160deg, #23272d, #121418);
}
.book-back { inset: 0; border-radius: 6px 2px 2px 6px; background: #14171b; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); }
.book-spine {
  top: 0; bottom: 0; left: calc(var(--d) / -2); width: var(--d); transform: rotateY(-90deg);
  background: linear-gradient(90deg, #7a3209, var(--accent) 55%, #c4520f);
}
.book-pages {
  top: 3px; bottom: 3px; left: calc(100% - var(--d) / 2); width: var(--d); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f2efe8 0 1px, #d6d1c6 1px 2px);
}
.t2 ~ .book-spine { background: linear-gradient(90deg, #324a63, var(--steel) 55%, #6f93b8); }
.book-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.book-front::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(105deg, rgba(255,255,255,.18), transparent 30%, transparent 70%, rgba(0,0,0,.25)); pointer-events: none; }
.cover-fallback { position: absolute; inset: 0; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; border-left: 8px solid var(--accent); }
.cover-fallback .mono { font-size: 11px; color: var(--accent); letter-spacing: .2em; }
.cover-fallback strong { font-size: 30px; line-height: 1; letter-spacing: -.03em; font-weight: 900; }
.cover-fallback svg { width: 100%; margin-top: auto; fill: none; stroke: var(--steel); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cover-diagram .beam { stroke: #d7dbe0; stroke-width: 3.4; stroke-linecap: butt; }
.cover-diagram .ar { stroke: var(--steel); stroke-width: 1.2; }
.cover-diagram .head { fill: var(--steel); stroke: none; }
.cover-diagram .sup { stroke: var(--steel); stroke-width: 1.3; fill: rgba(143,179,217,.12); }
.cover-diagram .hat { stroke: var(--steel); stroke-width: .8; opacity: .8; }
.cover-diagram .dim { stroke: var(--dim); stroke-width: .8; }
.cover-diagram .lbl { fill: var(--text); stroke: none; font: italic 600 9px var(--mono); }
.cover-diagram .lbl.dm { fill: var(--muted); font-size: 8px; }
.cover-diagram .mb { stroke: #d7dbe0; stroke-width: 2; }
.cover-diagram .nd { fill: #14171b; stroke: var(--accent); stroke-width: 1.3; }
.t2 .cover-diagram .ar, .t2 .cover-diagram .head { stroke: var(--accent); }
.t2 .cover-diagram .head { fill: var(--accent); stroke: none; }
.cover-fallback em { font-style: normal; font-size: 12px; color: var(--muted); }
.t2 .cover-fallback { border-left-color: var(--steel); }
.t2 .cover-fallback .mono { color: var(--steel); }
.badge { position: absolute; top: 4px; right: 8%; z-index: 5; background: var(--accent); color: #140a03; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 999px; transform: rotate(8deg); box-shadow: 0 8px 20px -6px rgba(255,106,26,.7); }
.badge-new { background: var(--steel); color: #0b1520; box-shadow: 0 8px 20px -6px rgba(143,179,217,.6); }

.book-info .sub { color: var(--muted); margin: 6px 0 22px; font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; color: #d3d7db; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--accent); background: rgba(255,106,26,.1); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.buy-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.price { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.price b { font-size: 44px; font-weight: 900; letter-spacing: -.03em; }
.price .old { color: var(--dim); text-decoration: line-through; font-size: 20px; }

.perks { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perks li { background: var(--bg); padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.perks svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perks b { display: block; font-size: 15px; }
.perks span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; margin-top: 2px; }

/* ---------- Reinforced concrete ---------- */
.rc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.rc-section { position: sticky; top: 100px; }
.rc-step { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rc-section.s-1 .s1, .rc-section.s-2 .s1, .rc-section.s-2 .s2, .rc-section.s-3 .s1, .rc-section.s-3 .s2, .rc-section.s-3 .s3,
.rc-section.s-4 .s1, .rc-section.s-4 .s2, .rc-section.s-4 .s3, .rc-section.s-4 .s4,
.rc-section.s-5 .rc-step { opacity: 1; }
.draw { fill: none; stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1.6s var(--ease); }
.rc-section.s-2 .stirrup, .rc-section.s-3 .stirrup, .rc-section.s-4 .stirrup, .rc-section.s-5 .stirrup { stroke-dashoffset: 0; }
.stirrup { stroke: var(--steel); stroke-width: 4; }
.bars-top circle, .bars-bot circle { fill: #b7c3cf; stroke: #6d7b88; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.3,1.6,.5,1); }
.bars-bot circle { fill: var(--accent); stroke: #8a3a0c; }
.rc-section.s-3 .s3 circle, .rc-section.s-4 .s3 circle, .rc-section.s-5 .s3 circle { transform: scale(1); }
.bars-bot circle:nth-child(2), .bars-top circle:nth-child(2) { transition-delay: .12s; }
.bars-bot circle:nth-child(3) { transition-delay: .24s; }
.na { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 10 4 2 4; }
.stress-c { fill: rgba(255,106,26,.22); stroke: var(--accent); stroke-width: 1.5; }
.stress-tri { fill: none; stroke: var(--accent-2); stroke-width: 1; stroke-dasharray: 3 3; }
.fs { stroke: var(--steel); stroke-width: 3; color: var(--steel); }
.lever { stroke: var(--dim); stroke-dasharray: 2 4; }

.rc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.rc-steps li { display: flex; gap: 22px; padding: 34px 0; border-top: 1px solid var(--line); min-height: 40vh; align-items: flex-start; transition: opacity .5s; }
.rc-steps li > span { color: var(--accent); font-size: 14px; padding-top: 6px; }
.rc-steps b { font-size: 24px; letter-spacing: -.02em; display: block; margin-bottom: 6px; }
.rc-steps p { margin: 0; color: var(--muted); }
.rc-steps li.active b { color: var(--accent); }
.formula { color: var(--text) !important; font-size: 18px; background: var(--panel); border: 1px solid var(--line); padding: 12px 16px; border-radius: 10px; display: inline-block; margin-top: 8px !important; }

.elevation { margin-top: clamp(40px, 6vw, 80px); }
.rebar-main { stroke: var(--accent); stroke-width: 5; --len: 900; }
.rebar-top { stroke: #b7c3cf; stroke-width: 3; --len: 900; }
.elevation.in .draw { stroke-dashoffset: 0; }
.stirrups line { stroke: var(--steel); stroke-width: 2; opacity: 0; transition: opacity .4s; }
.elevation.in .stirrups line { opacity: .9; }
.cracks path { fill: none; stroke: #f4f1ea; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1s var(--ease); }
.elevation.cracked .cracks path { stroke-dashoffset: 0; }

/* ---------- Truss ---------- */
.truss-wrap { margin-bottom: 50px; }
#truss { width: 100%; height: auto; display: block; overflow: visible; }
#truss .member { stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; opacity: 0; }
#truss .member.on { opacity: 1; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: drawIn 1s var(--ease) forwards; }
#truss .member.tension { stroke: var(--steel); }
#truss .member.compression { stroke: var(--accent); }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
#truss .node { fill: var(--bg); stroke: var(--text); stroke-width: 2; transition: r .3s; }
#truss .node-label { font-family: var(--mono); font-size: 13px; fill: var(--muted); }
#truss .legend { font-family: var(--mono); font-size: 12px; }
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); }
.chap-col ol { list-style: none; padding: 0; margin: 0; }
.chap-col li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; transition: padding .3s var(--ease), color .3s; }
.chap-col li:hover { padding-left: 10px; color: #fff; }
.chap-col li span { width: 44px; flex: none; color: var(--accent); font-size: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--bg-2); }
.stat { padding: clamp(32px, 5vw, 60px) var(--gutter); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(36px, 4.4vw, 60px); color: var(--text); letter-spacing: -.04em; line-height: 1; font-weight: 700; }
.stat span { color: var(--muted); font-size: 15px; display: block; margin-top: 10px; }

/* ---------- Author name ---------- */
.tag-name { color: var(--text); font-weight: 700; }
.byline { margin: -14px 0 22px; font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.byline b { color: var(--accent); font-weight: 700; }
.signature { font-family: "Caveat", cursive; font-size: clamp(40px, 4vw, 54px); color: var(--accent); line-height: 1; margin: 6px 0 26px; transform: rotate(-3deg); transform-origin: left; }
.final-by { color: var(--muted); font-size: 14px; margin: -20px 0 36px; text-transform: uppercase; letter-spacing: .12em; }
.final-by b { color: var(--text); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.review { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 18px; position: relative; }
.review::before { content: "“"; position: absolute; bottom: -30px; right: 18px; font-size: 96px; line-height: 1; color: var(--accent); opacity: .18; font-weight: 900; }
.review-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-top b { display: block; font-size: 17px; }
.review-top span.mono { font-size: 12px; color: var(--dim); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,106,26,.12); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; flex: none; }
.verified { margin-left: auto; font-size: 11px; color: #7ee0a4; border: 1px solid rgba(126,224,164,.35); padding: 4px 10px; border-radius: 999px; }
.review blockquote { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.review figcaption { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-top: auto; }
.review-cta { border-style: dashed; background: transparent; justify-content: center; align-items: flex-start; }
.review-cta::before { display: none; }
.review-ask { color: var(--muted); margin: 0; }

/* ---------- Author ---------- */
.author { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.author-visual { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; }
.author-visual svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--line-2); stroke-dasharray: 2 6; }
.r1 { animation: spin 60s linear infinite; transform-origin: 150px 150px; }
.r2 { animation: spin 40s linear infinite reverse; transform-origin: 150px 150px; stroke: var(--steel); stroke-opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }
.mohr { transform-origin: 150px 150px; animation: spin 24s linear infinite; }
.mohr-c { fill: rgba(255,106,26,.06); stroke: var(--accent); stroke-width: 1.5; }
.mohr-d { stroke: var(--accent); stroke-width: 1.5; }
.initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(56px, 8vw, 92px); font-weight: 900; letter-spacing: -.06em; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.8); }
.author-copy p:not(.kicker):not(.signature):not(.role) { color: var(--muted); }
.role { color: var(--accent) !important; font-size: 14px; margin-top: -10px; }

/* ---------- Coming soon ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.soon { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; background: rgba(255,255,255,.01); transition: border-color .3s, transform .4s var(--ease); }
.soon:hover { border-color: var(--accent); transform: translateY(-4px); }
.soon h3 { font-size: 22px; margin: 14px 0 10px; }
.soon p { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.tagline { font-size: 11px; text-transform: uppercase; color: var(--accent-2); letter-spacing: .12em; }
.pour { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pour span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, #ffd27a 8px 16px); background-size: 200% 100%; animation: tape 2s linear infinite; transition: width 2s var(--ease); }
.soon.in .pour span { width: var(--w, 40%); }
.soon:nth-child(1) { --w: 65%; } .soon:nth-child(2) { --w: 40%; } .soon:nth-child(3) { --w: 25%; }
@keyframes tape { to { background-position: -45px 0; } }
.soon-cta { margin-top: 36px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; max-width: 900px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--accent); font-size: 26px; transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: -6px 0 24px; color: var(--muted); max-width: 720px; }

/* ---------- Final CTA ---------- */
.final { position: relative; text-align: center; padding: clamp(100px, 14vw, 180px) var(--gutter); overflow: hidden; border-top: 1px solid var(--line); }
.final > *:not(.blueprint) { position: relative; z-index: 1; }
.final h2 { font-size: clamp(38px, 6vw, 84px); margin-bottom: 40px; }

/* ---------- Footer ---------- */
.footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 48px var(--gutter); border-top: 1px solid var(--line); max-width: 1240px; margin: 0 auto; }
.foot-brand p { color: var(--dim); margin: 10px 0 0; font-size: 14px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--accent); }
.copy { grid-column: 1 / -1; color: var(--dim); font-size: 12px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }


/* ---------- Videos ---------- */
.video-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 10px 16px; border-radius: 999px; font-size: 13px; transition: .25s var(--ease); }
.chip small { color: var(--dim); margin-left: 4px; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #140a03; }
.chip[aria-selected="true"] small { color: #5a2a0a; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: transform .4s var(--ease), border-color .3s; }
.video-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.video-card[hidden] { display: none; }
.v-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.v-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .85; }
.video-card:hover .v-media img { transform: scale(1.05); opacity: 1; }
.v-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-poster { position: absolute; inset: 0; display: grid; place-items: center; background:
  linear-gradient(var(--steel-dim) 1px, transparent 1px) 0 0 / 20px 20px,
  linear-gradient(90deg, var(--steel-dim) 1px, transparent 1px) 0 0 / 20px 20px, #12161b; }
.v-poster svg { width: 60%; fill: none; stroke: var(--steel); stroke-width: 2; opacity: .6; }
.v-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255,106,26,.6); animation: pulse 2.4s infinite; transition: transform .3s var(--ease); }
.video-card:hover .v-play { transform: scale(1.12); }
.v-play svg { width: 28px; height: 28px; fill: #140a03; margin-left: 4px; }
.v-dur, .v-src { position: absolute; bottom: 10px; font-size: 11px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; }
.v-dur { right: 10px; } .v-src { left: 10px; color: var(--accent-2); }
.v-body { padding: 18px 20px 22px; }
.v-body .kicker { margin-bottom: 8px; font-size: 11px; }
.v-body h3 { font-size: 19px; line-height: 1.25; }
.video-more { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-ways { list-style: none; padding: 0; margin: 0 0 30px; border-top: 1px solid var(--line); }
.contact-ways li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-ways li[hidden] { display: none; }
.contact-ways span { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.contact-ways a { color: var(--text); text-decoration: none; font-weight: 600; }
.contact-ways a:hover { color: var(--accent); }
.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,26,.18); }
.field .invalid { border-color: #ff5d5d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 13px; min-height: 1.4em; }
.form-status.ok { color: #7ee0a4; } .form-status.err { color: #ff8a7a; }

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: .25s var(--ease); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.social:hover { color: #140a03; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social:hover svg [fill="var(--bg)"], .social:hover svg g[fill] { fill: var(--accent); }
.socials-lg .social { width: auto; height: 46px; padding: 0 16px 0 14px; grid-auto-flow: column; gap: 10px; }
.socials-lg .social span { position: static; width: auto; height: auto; clip: auto; font-weight: 600; font-size: 14px; }
.foot-social { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-social p { margin: 0; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }


/* ---------- Bandeau de consentement ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(560px, calc(100% - 32px)); padding: 18px 20px;
  background: rgba(20,23,27,.97); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9);
  backdrop-filter: blur(10px); display: grid; gap: 14px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent b { color: var(--text); }
.consent a { color: var(--accent); }
.consent-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-btns .btn { border: 1px solid var(--accent); cursor: pointer; font-family: inherit; font-size: 14px; }
.consent-btns .btn-ghost { border-color: var(--line-2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--accent); }

/* ---------- Page légale ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 110px var(--gutter) 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 8px 0 8px; letter-spacing: -.03em; }
.legal h2 { font-size: 22px; letter-spacing: -.01em; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal .date { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: auto; }
  .rc-grid { grid-template-columns: 1fr; }
  .rc-section { position: sticky; top: 70px; z-index: 2; }
  .rc-steps li { min-height: 46vh; padding-top: 20px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .soon-grid { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .author-visual { max-width: 300px; }
}
@media (max-width: 820px) {
  .nav { gap: 12px; }
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px; margin: 0;
    background: rgba(16,18,22,.97); border: 1px solid var(--line); border-radius: 20px; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .3s var(--ease); }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 18px; color: var(--text); }
  .nav-links a::after { display: none; }
  .burger { display: block; }
  .nav .btn-sm { display: none; }
  .book-card, .book-card:nth-child(2) { grid-template-columns: 1fr; }
  .book-card:nth-child(2) .book-stage { order: 0; }
  .chapters { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .perks { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-facts b { font-size: 24px; }
  .tag { font-size: 11px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  .price b { font-size: 36px; }
  .buy-row .btn { width: 100%; }
  .book { width: min(210px, 58vw); }
  .book-card { padding: 22px 18px; }
  .rc-section { top: 64px; padding: 10px; }
  .rc-section svg { max-height: 38vh; }
  .rc-steps li { min-height: 52vh; }
  .stat { padding: 28px 16px; }
  .elevation svg text { font-size: 18px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  h1 .line > span { transform: none; }
  .beam-lab { opacity: 1; transform: none; }
}
