/* Programme créateurs (/affiliation) : page de présentation, simulateur, règles,
   candidature. S'appuie sur global.css + site.css. */

.page-affiliation .page-title { max-width: 16ch; }
.aff-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.aff-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.aff-figure { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--band); display: grid; gap: 6px; }
.aff-figure strong { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; color: var(--text); }
.aff-figure strong em { font-style: normal; color: var(--blue); }
.aff-figure span { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

.aff-section { margin-bottom: clamp(44px, 6vw, 84px); }
.aff-section > h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 56px); line-height: 0.95; margin: 0 0 8px; }
.aff-section > .aff-lead { color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 64ch; margin: 0 0 22px; }

.aff-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.aff-step { position: relative; padding: 22px 20px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--band); }
.aff-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 34px; color: var(--blue); display: block; line-height: 1; margin-bottom: 10px; }
.aff-step h3 { margin: 0 0 6px; font-size: 17px; }
.aff-step p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }

.aff-gifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.aff-gift { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(38, 159, 240, 0.12), transparent 60%), var(--band); }
.aff-gift-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(38, 159, 240, 0.16); color: var(--blue); }
.aff-gift h3 { margin: 0 0 4px; font-size: 17px; }
.aff-gift p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.5; }

.aff-sim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--band); }
.aff-sim fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.aff-sim legend { color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.aff-seg { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--band-3); }
.aff-seg label { position: relative; }
.aff-seg input { position: absolute; opacity: 0; inset: 0; }
.aff-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-full); color: var(--text-secondary); font-size: 14px; font-weight: 700; cursor: pointer; }
.aff-seg input:checked + span { background: var(--blue); color: #04121f; }
.aff-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.aff-range { display: grid; gap: 10px; }
.aff-range output { font-family: var(--display); font-size: 40px; line-height: 1; }
.aff-range input[type="range"] { width: 100%; accent-color: var(--blue); }
.aff-sim-result { display: grid; align-content: center; gap: 8px; padding: 22px; border-radius: var(--radius-lg); background: var(--band-3); border: 1px solid var(--border-strong); }
.aff-sim-result .aff-sim-kicker { color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.aff-sim-result .aff-sim-amount { font-family: var(--display); font-size: clamp(52px, 7vw, 84px); line-height: 0.9; color: var(--green); }
.aff-sim-result p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.aff-sim-note { grid-column: 1 / -1; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }

.aff-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.aff-box { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--band); }
.aff-box h3 { margin: 0 0 10px; font-size: 17px; }
.aff-box ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.aff-box.is-no { border-color: rgba(224, 82, 82, 0.35); }

.aff-rules { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--band); }
.aff-rules h3 { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 17px; }
.aff-rules h3:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.aff-rules p, .aff-rules li { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.aff-rules p { margin: 8px 0 0; }
.aff-rules ul { margin: 8px 0 0; padding-left: 1.2rem; }
.aff-rules a, .aff-faq a, .aff-form a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.aff-rules .aff-version { color: var(--text-muted); font-size: 13px; margin-top: 22px; }

.aff-faq { display: grid; gap: 10px; }
.aff-faq details { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--band); }
.aff-faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.aff-faq summary::-webkit-details-marker { display: none; }
.aff-faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.aff-faq details[open] summary::after { content: "−"; }
.aff-faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

.aff-form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); background: var(--band); }
.aff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.aff-field { display: grid; gap: 7px; }
.aff-field > span { font-size: 13px; font-weight: 700; color: var(--text); }
.aff-field > span small { color: var(--text-muted); font-weight: 500; }
.aff-form input[type="text"], .aff-form input[type="email"], .aff-form input[type="url"], .aff-form input[type="number"], .aff-form select, .aff-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--band-3); color: var(--text); font: inherit; font-size: 15px;
}
.aff-form textarea { min-height: 110px; resize: vertical; }
.aff-form input:focus, .aff-form select:focus, .aff-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.aff-network { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 10px; }
.aff-check { display: flex; gap: 12px; align-items: flex-start; color: var(--text-secondary); font-size: 14.5px; line-height: 1.5; }
.aff-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.aff-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.aff-form .btn { justify-self: start; min-width: 220px; }
.aff-status { margin: 0; font-size: 14.5px; line-height: 1.5; }
.aff-status.is-error { color: #ff8a8a; }
.aff-status.is-ok { color: var(--green); }
.aff-hint { color: var(--text-muted); font-size: 13px; margin: 0; }

.aff-english { margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(40px, 6vw, 72px); border-top: 2px solid var(--border-strong); }
.aff-english .page-eyebrow { margin: 0 0 8px; }

@media (max-width: 1000px) {
  .aff-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .aff-figures, .aff-steps, .aff-gifts, .aff-two, .aff-grid, .aff-sim { grid-template-columns: 1fr; }
  .aff-network { grid-template-columns: 1fr; }
  .aff-form .btn { justify-self: stretch; }
}
