/* donation.calvern-fivem.fr — « Participer aux frais », DA CALVERN (tokens partagés : /shared/tokens.css) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-950); color: var(--text-100); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
button { font: inherit; color: inherit; }
.slash { display: inline-block; width: 6px; height: 16px; background: var(--green-500); transform: skewX(-14deg); flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--green-300); }
.muted { color: var(--text-500); font-size: 14px; margin: 10px 0 0; }

/* ── Bandeau ── */
.hero { position: relative; overflow: hidden; padding: 0 16px 56px; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; background: url('/donation-hero.jpg') center 40% / cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,5,.94) 0%, rgba(4,6,5,.7) 55%, rgba(4,6,5,.45) 100%), linear-gradient(0deg, var(--ink-950) 0%, rgba(4,6,5,0) 45%); }
.top { position: relative; max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand img { height: 44px; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.me { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass-900); border: 1px solid var(--line); font-size: 14px; color: var(--text-300); backdrop-filter: blur(12px); }
.me .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(77,187,82,.2); }
.hero__content { position: relative; max-width: 1120px; margin: 0 auto; padding-top: 40px; }
.hero h1 { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 8vw, 84px); line-height: .95; margin: 14px 0 16px; padding-right: .15em; }
.hero h1 b { color: var(--green-500); font-weight: 700; }
.lead { max-width: 640px; color: var(--text-300); font-size: 17px; margin: 0; }

/* ── Mise en page ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: -32px; position: relative; }
.side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.panel { background: var(--glass-800); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-panel); backdrop-filter: blur(var(--blur-glass)); }
.panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 24px; letter-spacing: .01em; }

/* ── Étapes ── */
.step { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-weight: 600; }
.step:first-of-type { margin-top: 0; }
.step em { font-style: normal; font-weight: 400; color: var(--text-500); }
.num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(77,187,82,.16); border: 1px solid rgba(77,187,82,.45); color: var(--green-300); font: 600 13px var(--font-mono); }

.amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .amount--free { grid-column: span 2; } }
.amount { height: 56px; border-radius: var(--radius-md); background: var(--glass-900); border: 1px solid var(--line); cursor: pointer; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 24px; transition: border-color .15s, background .15s, color .15s; }
.amount:hover { border-color: var(--silver-500); }
.amount.is-active { background: var(--green-500); border-color: var(--green-500); color: var(--on-green); }
.amount--free { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-size: 16px; }
.amount--free span:first-child { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 13px; color: var(--text-300); }
.amount--free.is-active span:first-child { color: var(--on-green); }
.amount--free input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; font-size: 22px; text-align: right; -moz-appearance: textfield; }
.amount--free input::-webkit-outer-spin-button, .amount--free input::-webkit-inner-spin-button { -webkit-appearance: none; }

.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 680px) { .methods { grid-template-columns: 1fr; } }
.method { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 14px 12px; text-align: center; border-radius: var(--radius-md); background: var(--glass-900); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.method:hover:not(:disabled) { border-color: var(--silver-500); }
.method.is-active { border-color: var(--green-500); background: rgba(77,187,82,.1); box-shadow: inset 0 0 0 1px var(--green-500); }
.method:disabled { opacity: .5; cursor: not-allowed; }
/* Logos officiels sur fond clair, comme sur les pages de paiement habituelles */
.method__badges { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 8px; background: #fff; }
.method__badges--cards { background: none; padding: 0; }
.method__badges svg { height: 28px; width: auto; display: block; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.method__badges--cards svg { height: 30px; }
.logo-paypal { height: 26px !important; box-shadow: none !important; }
.method__hint { font-size: 13px; color: var(--text-300); line-height: 1.3; }
.accepted { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.accepted svg { height: 22px; width: auto; border-radius: 3px; }
.accepted .logo-paypal--sm { height: 22px !important; padding: 3px 8px; background: #fff; border-radius: 3px; box-sizing: content-box; }

.input { width: 100%; padding: 12px 14px; border-radius: var(--radius-md); background: var(--glass-900); border: 1px solid var(--line); color: var(--text-100); font: inherit; resize: vertical; }
.input:focus { outline: 0; border-color: var(--green-500); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--text-300); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-500); }

/* ── Paiement ── */
.pay { margin-top: 24px; }
.btn-pay { width: 100%; height: 60px; border: 0; border-radius: var(--radius-md); background: var(--green-500); color: var(--on-green); cursor: pointer; font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 24px; letter-spacing: .02em; box-shadow: 0 10px 30px rgba(77,187,82,.25); transition: transform .15s, box-shadow .15s; }
.btn-pay:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(77,187,82,.35); }
.btn-pay:disabled { background: var(--glass-700); color: var(--text-500); box-shadow: none; cursor: not-allowed; }
.notice { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--warning); }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--text-500); text-align: center; }
.secure svg { width: 16px; height: 16px; flex: none; }

/* ── Objectif ── */
.goal__nums { display: flex; align-items: baseline; gap: 8px; }
.goal__nums b { font-family: var(--font-display); font-style: italic; font-size: 44px; line-height: 1; color: var(--green-500); }
.goal__nums span { color: var(--text-300); }
.bar { height: 12px; margin-top: 14px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--green-500)); transition: width .8s ease; }

.costs { list-style: none; margin: 0; padding: 0; }
.costs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.costs li:last-child { border-bottom: 0; }
.costs b { font: 500 14px var(--font-mono); color: var(--green-300); text-align: right; }

.thanks { display: flex; flex-wrap: wrap; gap: 8px; }
.thanks span { padding: 6px 12px; border-radius: 999px; background: rgba(77,187,82,.12); border: 1px solid rgba(77,187,82,.3); font-size: 14px; }

/* ── FAQ ── */
.faq { margin-top: 20px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--green-300); font: 600 18px var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 8px 0 0; color: var(--text-300); }

.foot { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-500); }
.foot a { color: var(--green-300); text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--radius-md); background: var(--glass-800); border: 1px solid var(--line); border-left: 4px solid var(--green-500); box-shadow: var(--shadow-panel); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
