:root {
    --black: #3E3B56;
    --black-light: #474467;
    --black-dark: #2E303E;
    --white: #FFFDEA;
    --white-transparent: rgba(255, 253, 234, .1);
    --yellow: #FFB308;
    --yellow-light: #FFD599;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    /* Fond noir strict */
    color: var(--white);
    margin: 0;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: var(--black-dark);
    border-bottom: 1px solid var(--black);
    padding: 1rem 0;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--yellow);
}

.header-link img {
    height: 32px;
    vertical-align: middle;
}

/* Main content */
main {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--black-light);
    /* Teinte douce pour le texte secondaire sur fond noir */
    filter: invert(1) grayscale(0.2) brightness(1.5);
    /* Ajustement pour lisibilité */
    max-width: 600px;
    margin: 0 auto;
}

/* Donation Card */
.card {
    background: var(--black-dark);
    border: 1px solid var(--black);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Grid of amounts */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}

.amount-option input {
    display: none;
}

.amount-option label {
    display: block;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid var(--black);
    background: var(--white-transparent);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--white);
    transition: all 0.2s ease;
}

.amount-option input:checked+label {
    border-color: var(--yellow);
    background-color: var(--yellow);
    color: var(--black-dark);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
    background-color: var(--yellow-light);
    color: var(--black-dark);
    margin-bottom: 1.5rem;
}

.btn:hover {
    background-color: var(--yellow);
    transform: translateY(-2px);
}

.divider {
    height: 1px;
    background: var(--black);
    margin: 2rem 0;
}

.defiscalise {
    background-color: var(--black);
    color: var(--white);
}

.defiscalise:hover {
    background-color: var(--black-light);
}

#defiscalise {
    display: block;
}

#defiscalise:target {
    outline: var(--yellow) dashed 0.2em;
    outline-offset: 0.4em;
    border-radius: 8px;
}

.help {
    font-size: 1 rem;
    color: var(--white);
    margin-top: 2rem;
    text-align: justify;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--black);
    text-align: center;
}

.footer-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-inner a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-inner a:hover {
    color: var(--yellow);
    filter: invert(0);
    text-decoration: underline;
}

.language-switcher a {
    color: var(--white);
    text-decoration: none;
}
