@charset "utf-8";
/* Page calculateur — s'appuie sur styles.css (couleurs, boutons, champs, nav, footer) */

.calc-page { background: var(--soft); }
.calc-page .nav.is-scrolled { background: rgba(17, 17, 17, .88); }

/* ---------- En-tête ---------- */
.ch {
  background: radial-gradient(120% 90% at 85% 0%, #4a1c1e 0%, transparent 60%), linear-gradient(180deg, #0b0a0a 0%, #1b1213 100%);
  color: #fff; padding: 150px 0 140px; position: relative; overflow: hidden;
}
.ch::after { content: "NEMESIS"; position: absolute; right: -2vw; bottom: -4vw; font-weight: 800; font-size: 18vw; letter-spacing: -.05em; color: rgba(255, 255, 255, .03); pointer-events: none; line-height: 1; }
.ch__inner { position: relative; z-index: 1; max-width: 1200px; }
.ch__title { font-weight: 800; font-size: clamp(38px, 6vw, 76px); line-height: 1; letter-spacing: -.04em; margin-bottom: 22px; max-width: 900px; }
.ch__lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: #b9bdc8; max-width: 640px; margin-bottom: 28px; }
.ch__pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ch__pills li { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #e6e8ee; }
.ch__pills li::before { content: "✓"; color: var(--red); margin-right: 7px; font-weight: 800; }

/* ---------- Grille ---------- */
.calc { padding: 0 0 100px; margin-top: -80px; position: relative; z-index: 2; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -30px rgba(17, 17, 17, .18), 0 0 0 1px var(--line); }
.calc__side { position: sticky; top: 90px; display: grid; gap: 16px; }

/* ---------- Formulaire ---------- */
.block { border: 0; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.block:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.block__t { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; margin-bottom: 18px; }
.block__n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; }
.lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.field label em, .lbl em { font-style: normal; font-weight: 500; color: var(--muted); }
.row2, .row3 { display: grid; gap: 12px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: repeat(3, 1fr); }
.field input[type=number] {
  width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid #e1e4ec; background: var(--soft); transition: border .2s, background .2s; color: var(--text);
  -moz-appearance: textfield; appearance: textfield;
}
.field input[type=number]::-webkit-inner-spin-button, .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field.is-invalid input[type=number] { border-color: var(--red); background: #fff6f6; }
.unit { position: relative; }
.unit span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-size: 13px; font-weight: 700; color: var(--muted); pointer-events: none; }
.unit input { padding-right: 44px !important; }

/* Segments (boutons radio) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border: 1.5px solid #e1e4ec; border-radius: 14px; padding: 4px; gap: 4px; }
.seg label { cursor: pointer; position: relative; }
.seg input, .opts input, .goals2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span, .opts input:focus-visible + span, .goals2 input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.seg--sm { border-radius: 999px; padding: 3px; }
.seg--sm span { padding: 6px 12px; font-size: 12px; border-radius: 999px; }

/* Cartes d'options */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.goals2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.opts label, .goals2 label { cursor: pointer; }
.opts span, .goals2 span { display: grid; gap: 4px; height: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid #e1e4ec; background: var(--soft); transition: border .2s, background .2s, box-shadow .2s; }
.opts b, .goals2 b { font-size: 14px; font-weight: 800; }
.opts small, .goals2 small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.opts input:checked + span, .goals2 input:checked + span { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(210, 10, 10, .12); }
.opts label:hover span, .goals2 label:hover span { border-color: #c9cdd8; }

/* Curseur */
.range { width: 100%; accent-color: var(--red); height: 28px; cursor: pointer; }
.range__ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 700; padding: 0 4px; }
output { color: var(--red); font-weight: 800; }

.form__err { background: #fff1f1; color: var(--red-dark); font-weight: 700; font-size: 14px; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }

/* ---------- Panneau : vide ---------- */
.side__empty { text-align: center; padding: 48px 30px; color: var(--muted); line-height: 1.6; }
.side__h { font-weight: 800; font-size: 20px; color: var(--text); margin-bottom: 6px; }
.ring { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; border: 8px solid var(--soft); border-top-color: var(--red); animation: spin 3s linear infinite; }
.ring span { font-weight: 800; font-size: 28px; color: var(--text); animation: spin 3s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Panneau : accès email ---------- */
.gate { padding: 0; overflow: hidden; }
.gate__peek { background: var(--ink); color: #fff; padding: 30px; text-align: center; filter: blur(14px); user-select: none; transform: scale(1.04); }
.gate__num { display: block; font-weight: 800; font-size: 64px; letter-spacing: -.04em; line-height: 1; }
.gate__unit { color: var(--slate); font-weight: 700; font-size: 14px; }
.gate__bars { display: flex; gap: 4px; height: 12px; margin-top: 18px; border-radius: 99px; overflow: hidden; }
.gate__bars i:nth-child(1) { background: var(--red); } .gate__bars i:nth-child(2) { background: #f2f2f2; } .gate__bars i:nth-child(3) { background: var(--slate); }
.gate__body { padding: clamp(22px, 3vw, 34px); }
.gate__body .eyebrow { margin-bottom: 10px; }
.gate__h { font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.gate__p { color: var(--muted); line-height: 1.55; margin-bottom: 20px; font-size: 15px; }
.linkish { text-decoration: underline; font-size: inherit; color: inherit; padding: 0; }
#gateBtn { margin-top: 14px; }
#gateBtn[disabled] { opacity: .7; pointer-events: none; }
.gate.is-shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Résultats ---------- */
.results { display: grid; gap: 16px; }
.results.is-in > * { animation: rise .6s var(--ease) both; }
.results.is-in > *:nth-child(2) { animation-delay: .08s; } .results.is-in > *:nth-child(3) { animation-delay: .16s; }
.results.is-in > *:nth-child(4) { animation-delay: .24s; } .results.is-in > *:nth-child(n+5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.res__main { background: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(17, 17, 17, .5); position: relative; overflow: hidden; }
.res__main::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 10, 10, .45), transparent 70%); }
.res__main .eyebrow { margin-bottom: 8px; position: relative; }
.res__big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; position: relative; }
.res__big span { font-weight: 800; font-size: clamp(56px, 7vw, 84px); letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.res__big small { color: var(--slate); font-weight: 700; font-size: 16px; }
.res__sub { color: #c9ccd6; margin: 10px 0 22px; line-height: 1.5; font-size: 15px; position: relative; }
.res__sub b { color: #fff; }
.res__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; position: relative; }
.res__trio div { background: #1b1b1d; padding: 14px; }
.res__trio span { display: block; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.res__trio small { font-size: 11px; color: var(--slate); font-weight: 600; }
.res__warn { margin-top: 14px; padding: 12px 14px; background: rgba(255, 196, 0, .12); color: #ffd666; border-radius: 12px; font-size: 13px; line-height: 1.5; position: relative; }

.res__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.res__t { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.res__day { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.res__day b { color: var(--text); }

.stack { display: flex; gap: 4px; height: 14px; border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.stack i { transition: flex-grow .6s var(--ease); flex-basis: 0; }
.m-p { --c: var(--red); } .m-c { --c: #111; } .m-f { --c: #a6adbf; }
.stack i { background: var(--c); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.macro { border-radius: 14px; background: var(--soft); padding: 14px; border-top: 4px solid var(--c); }
.macro__g { display: block; font-weight: 800; font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.macro b { display: block; font-size: 13px; }
.macro small { font-size: 12px; color: var(--muted); }

.meals { display: grid; gap: 8px; }
.meal { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--soft); border-radius: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.meal b { font-weight: 800; }
.meal span { color: var(--muted); font-weight: 600; min-width: 52px; text-align: right; }
.meal span em { font-style: normal; color: var(--text); font-weight: 800; }
.meal__k { color: var(--text) !important; font-weight: 800 !important; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.extras div { padding: 14px; border-radius: 14px; border: 1.5px dashed #e1e4ec; }
.extras span { display: block; font-weight: 800; font-size: 20px; }
.extras small { font-size: 12px; color: var(--muted); }

.proj__lead { color: var(--muted); line-height: 1.55; margin: 8px 0 14px; font-size: 15px; }
.proj__lead b { color: var(--text); }
.proj__svg { width: 100%; height: auto; display: block; overflow: visible; }
.proj__svg text { font: 700 15px Manrope, sans-serif; fill: #888; }
.proj__svg .lbl-strong { fill: var(--text); font-size: 19px; font-weight: 800; }

.tips ol { list-style: none; counter-reset: t; display: grid; gap: 12px; margin-top: 14px; }
.tips li { counter-increment: t; position: relative; padding-left: 40px; line-height: 1.5; font-size: 14px; color: #444; }
.tips li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--red); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.tips b { color: var(--text); }

.cta { border: 2px solid var(--red); box-shadow: 0 30px 60px -30px rgba(210, 10, 10, .4); }
.cta .eyebrow { margin-bottom: 10px; }
.cta__h { font-weight: 800; font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 10px; }
.cta__p { color: var(--muted); line-height: 1.55; font-size: 15px; margin-bottom: 18px; }

.res__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--line { flex: 1; border: 1.5px solid #d6d9e2; background: #fff; color: var(--text); }
.btn--line:hover { border-color: var(--ink); }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__side { position: static; }
  .ch { padding: 120px 0 110px; }
}
@media (max-width: 560px) {
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 .field:first-child { grid-column: 1 / -1; }
  .row2, .opts { grid-template-columns: 1fr; }
  .opts span { grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; }
  .goals2 span { padding: 12px; }
  .macros { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .macro { padding: 10px; }
  .macro__g { font-size: 20px; }
  .res__trio span { font-size: 16px; }
  .meal { grid-template-columns: 1fr auto auto auto auto; gap: 8px; font-size: 13px; padding: 10px 12px; }
  .meal span { min-width: 0; }
  .res__head .seg--sm { width: 100%; }
}

/* ---------- Impression / PDF ---------- */
@media (prefers-reduced-motion: reduce) {
  .ring, .ring span, .results.is-in > * { animation: none; }
}

/* ---------- Intégration dans la page d'accueil */
.calc__intro { max-width: 760px; margin-bottom: 36px; }
.calc__intro .lead { margin-top: 14px; }
