/* ============ PARRAINAGE — programme + auth ============ */

.parrainage {
    padding: 56px 24px 24px;
    background: var(--blanc);
}
.parrainage .inner {
    max-width: 860px;
    margin: 0 auto;
}

/* Partie 1 — explication du programme */

.programme {
    margin: 24px 0 56px;
    background: var(--beige);
    border-left: 4px solid var(--or);
    border-radius: 8px;
    padding: 36px 32px;
}
.programme h2 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: var(--or);
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1.1;
    margin-bottom: 8px;
}
.programme .lead {
    font-size: 16px;
    color: var(--texte);
    margin-bottom: 24px;
}
.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.programme-bloc {
    background: var(--blanc);
    border-radius: 6px;
    padding: 18px 20px;
    border: 1px solid var(--beige-dark);
}
.programme-bloc .step {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--or);
    font-weight: 600;
    margin-bottom: 6px;
}
.programme-bloc strong {
    display: block;
    font-size: 15px;
    color: var(--texte);
    margin-bottom: 6px;
    font-weight: 600;
}
.programme-bloc p {
    font-size: 14px;
    color: var(--texte-light);
    line-height: 1.5;
}
.programme-paliers {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 24px;
}
.programme-palier {
    flex: 1 1 140px;
    background: var(--blanc);
    border: 1px dashed var(--or-light);
    border-radius: 6px;
    padding: 14px 16px;
    text-align: center;
}
.programme-palier b {
    display: block;
    font-size: 24px;
    color: var(--or);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}
.programme-palier span {
    font-size: 12px;
    color: var(--texte-light);
    line-height: 1.4;
}
.programme-fineprint {
    font-size: 12px;
    color: var(--texte-light);
    line-height: 1.6;
    margin-top: 16px;
}
.programme-fineprint a {
    color: var(--or);
    text-decoration: underline;
}

/* Partie 2 — auth (inscription + identification côte à côte) */

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 32px;
}
.auth-card {
    background: var(--blanc);
    border: 1px solid var(--beige-dark);
    border-radius: 8px;
    padding: 32px 28px;
}
.auth-card h3 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: var(--or);
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 4px;
}
.auth-card .sub {
    font-size: 13px;
    color: var(--texte-light);
    margin-bottom: 24px;
}
.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--texte-light);
    font-weight: 600;
    margin-bottom: 6px;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="tel"] {
    width: 100%;
    border: 1px solid var(--beige-dark);
    border-radius: 4px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--texte);
    background: var(--blanc);
    transition: border-color 0.15s;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--or);
}
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-consents {
    margin: 8px 0 18px;
}
.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--texte);
    line-height: 1.5;
    cursor: pointer;
}
.auth-consent input {
    margin-top: 3px;
    accent-color: var(--or);
}
.auth-consent a {
    color: var(--or);
    text-decoration: underline;
}
.auth-submit {
    display: block;
    width: 100%;
    background: var(--or);
    color: var(--blanc);
    border: none;
    border-radius: 4px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}
.auth-submit:hover {
    background: var(--or-light);
}
.auth-submit:disabled {
    background: var(--texte-light);
    cursor: not-allowed;
}
.auth-msg {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.auth-msg.is-success {
    display: block;
    background: #f0f5ec;
    color: #4a6a3c;
    border: 1px solid #d2e2c5;
}
.auth-msg.is-error {
    display: block;
    background: #f9ecec;
    color: #8c3a3a;
    border: 1px solid #ecc8c8;
}
.auth-divider {
    text-align: center;
    margin: 24px 0 16px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--texte-light);
    text-transform: uppercase;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--beige-dark);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-code-input {
    letter-spacing: 8px !important;
    text-align: center;
    font-size: 20px !important;
    font-weight: 600;
}

/* Bandeau d'état (après envoi du magic link) */
.auth-sent {
    display: none;
    margin-top: 16px;
    padding: 18px 20px;
    background: var(--beige);
    border-left: 3px solid var(--or);
    border-radius: 4px;
    font-size: 14px;
    color: var(--texte);
}
.auth-sent.is-visible { display: block; }
.auth-sent strong { color: var(--or); }
