/* Pages secondaires : formulaires, documents légaux */
.page { padding: 130px 0 90px; min-height: 70vh; }
.page-head { text-align: center; max-width: 720px; margin: 0 auto 44px; display: flex; flex-direction: column; align-items: center; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.crumb { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: #fff; }

/* cartes + champs */
.card { background: linear-gradient(180deg, rgba(22,22,22,.92), rgba(14,14,14,.92)); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); padding: 30px; backdrop-filter: blur(6px); }
.card h2 { font-size: 22px; margin-bottom: 6px; }
.card .lead { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: #e5e5e5; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15px; color: #fff; background: #0c0c0c; border: 0; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--neon), 0 0 0 4px rgba(54,226,160,.15); }
.field small { font-weight: 400; color: var(--dim); }
.field.err input, .field.err textarea { box-shadow: inset 0 0 0 1.5px #ff6b6b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #cfcfcf; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #22c98a; flex: none; }
.check a, .muted-link { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.alt-line { text-align: center; font-size: 14px; color: var(--muted); }
.alt-line a { color: var(--neon); font-weight: 600; }
.notice { display: none; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.notice.show { display: block; }
.notice.ok { background: rgba(54,226,160,.1); box-shadow: inset 0 0 0 1px rgba(54,226,160,.4); color: #d1fae5; }
.notice.warn { background: rgba(255,190,80,.08); box-shadow: inset 0 0 0 1px rgba(255,190,80,.35); color: #fde9c4; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.pw button:hover { color: #fff; background: rgba(255,255,255,.06); }

/* connexion */
.auth { max-width: 460px; margin: 0 auto; }

/* inscription / commande */
.checkout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; max-width: 1040px; margin: 0 auto; align-items: start; }
.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px; background: #0c0c0c; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s, background .15s; height: 100%; }
.opt b { font-size: 14.5px; } .opt small { color: var(--muted); font-size: 12.5px; }
.opt input:checked + span { background: rgba(54,226,160,.08); box-shadow: inset 0 0 0 1.5px var(--neon), 0 0 24px -8px rgba(54,226,160,.6); }
.opt input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }
.step-t { font-size: 13px; font-weight: 700; color: var(--neon); letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 -4px; }
.summary { position: sticky; top: 96px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sum-line span:first-child { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.sum-total b { font-family: Manrope; font-size: 30px; }
.sum-save { color: var(--lime); font-size: 13px; font-weight: 600; min-height: 18px; }
.sum-feats { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: #d4d4d4; }
.sum-feats li::before { content: "✓  "; color: var(--neon); font-weight: 800; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--dim); }

/* contact */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; max-width: 1040px; margin: 0 auto; align-items: start; }
.info { display: flex; flex-direction: column; gap: 12px; }
.info .card { padding: 22px; }
.info b { display: block; margin-bottom: 4px; }
.info p { color: var(--muted); font-size: 14px; }
.info a { color: var(--neon); }

/* affiliation */
.aff-page { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; align-items: start; }
.calc { margin-top: 10px; }
.calc output { display: block; font-family: Manrope; font-size: 40px; font-weight: 800; color: var(--neon); margin-top: 6px; }
.calc p { color: var(--muted); font-size: 13.5px; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #d4d4d4; }
.perks li span { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(54,226,160,.1); box-shadow: inset 0 0 0 1px rgba(54,226,160,.3); }
.perks b { color: #fff; display: block; }

/* documents légaux */
.doc { max-width: 820px; margin: 0 auto; }
.doc .card { padding: 40px; }
.doc .updated { color: var(--dim); font-size: 13px; margin-bottom: 26px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #cfcfcf; font-size: 15px; line-height: 1.7; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc a { color: var(--neon); }
.doc .todo { background: rgba(255,190,80,.12); color: #fde9c4; padding: 1px 6px; border-radius: 5px; font-size: 14px; }
.doc .callout { margin: 16px 0; padding: 16px 18px; border-radius: 14px; background: rgba(54,226,160,.07); box-shadow: inset 0 0 0 1px rgba(54,226,160,.35); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.toc a { font-size: 13px; padding: 7px 12px; border-radius: 999px; color: #d4d4d4; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.toc a[aria-current="page"] { color: #fff; background: rgba(54,226,160,.12); box-shadow: inset 0 0 0 1px rgba(54,226,160,.55); }

/* 404 */
.nf { text-align: center; padding: 180px 0 140px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nf .big { font-family: Manrope; font-size: clamp(90px, 18vw, 200px); font-weight: 800; line-height: 1; }
.nf p { color: var(--muted); max-width: 460px; }
.nf .hero-cta { margin-top: 10px; }

@media (max-width: 900px) {
  .checkout, .contact, .aff-page { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .page { padding: 110px 0 70px; }
  .card, .doc .card { padding: 22px; }
  .row2, .picker { grid-template-columns: 1fr; }
}
