:root {
    --form-bg: #ffffff;
    --form-border: #e5e7eb;
    --brand-blue: #1e3a8a;
    --brand-yellow: #fbbf24;
    --brand-yellow-hover: #f59e0b;
    --text-main: #374151;
    --text-label: #1e3a8a;
}

/* === TYPOGRAPHY IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

body {
    font-family: 'EB Garamond', serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'EB Garamond', serif;
}

/* CONTENEUR PRINCIPAL */
.adhesion-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--form-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

.form-title {
    text-align: center;
    color: var(--brand-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* SECTIONS DU FORMULAIRE */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--form-border);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--brand-yellow);
    padding-left: 15px;
    font-weight: 700;
}

.section-title i {
    width: 30px;
    text-align: center;
}

/* GRILLE & CHAMPS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Mobile */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-label);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--form-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--brand-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* BOUTONS & CHECKBOX */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--brand-yellow);
    color: var(--brand-blue);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: var(--brand-yellow-hover);
    transform: translateY(-2px);
}

/* --- NOUVEAU : Style des options de paiement (Cartes) --- */
.payment-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-card {
    flex: 1;
    min-width: 140px;
    position: relative;
    cursor: pointer;
}

/* On cache le vrai bouton radio mais on garde sa fonctionnalité */
.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 2px solid var(--form-border);
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s;
    color: var(--text-main);
}

.payment-content i {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: color 0.2s;
}

/* Style quand l'option est sélectionnée (grâce au radio caché) */
.payment-card input[type="radio"]:checked+.payment-content {
    border-color: var(--brand-blue);
    background-color: #eff6ff;
    /* Bleu très clair */
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.1);
}

.payment-card input[type="radio"]:checked+.payment-content i,
.payment-card input[type="radio"]:checked+.payment-content span {
    color: var(--brand-blue);
    font-weight: 700;
}

.payment-card:hover .payment-content {
    border-color: var(--brand-yellow);
}

.consent-box {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.signature-area {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
}

.signature-input {
    width: 100%;
    border: none !important;
    border-bottom: 2px solid var(--brand-blue) !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 2.5rem !important;
    background: transparent;
    outline: none;
    padding: 0.5rem 0;
}

.signature-input::placeholder {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #9ca3af;
    opacity: 0.7;
}

.signature-input:focus {
    box-shadow: none !important;
    border-color: var(--brand-yellow) !important;
}