/* =========================================================
   APSI-BJ — Page adhésion
   Complète style.css, réutilise les mêmes variables (--blue,
   --green, --yellow, --text, --muted, --light).
   ========================================================= */

.page-header {
    align-items: center;
    background:
        radial-gradient(circle at 85% 15%, rgba(8, 122, 74, 0.35), transparent 30%),
        linear-gradient(135deg, var(--blue), #061824);
    color: var(--white);
    display: flex;
    min-height: 300px;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    border: 1px solid rgba(255, 210, 0, 0.2);
    border-radius: 50%;
    content: "";
    height: 340px;
    position: absolute;
    right: -120px;
    top: -140px;
    width: 340px;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    margin: 14px 0 12px;
}

.page-header p {
    color: #d7e2eb;
    font-size: 1rem;
    margin: 0;
    max-width: 560px;
}

/* --- Bénéfices (colonne gauche) --- */

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e4ebf0;
}

.benefit-item:first-child {
    padding-top: 0;
}

.benefit-item:last-child {
    border-bottom: 0;
}

.benefit-item i {
    color: var(--green);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item h5 {
    color: var(--blue);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.benefit-item p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.side-note {
    background-color: var(--light);
    border-left: 3px solid var(--yellow);
    border-radius: 6px;
    padding: 16px 18px;
    margin-top: 28px;
}

.side-note p {
    color: var(--text);
    font-size: 0.86rem;
    margin: 0;
}

/* --- Carte du formulaire --- */

.form-card {
    background-color: var(--white);
    border-radius: 12px;
    border-top: 4px solid var(--green);
    box-shadow: 0 16px 40px rgba(9, 38, 61, 0.12);
    padding: 36px;
}

@media (max-width: 575.98px) {
    .form-card {
        padding: 24px 20px;
    }
}

.form-card .form-subsection {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    margin: 30px 0 16px;
}

.form-card .form-subsection:first-child {
    margin-top: 0;
}

.form-label {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
}

.form-control,
.form-select {
    border: 1px solid #d7e0e6;
    border-radius: 6px;
    font-size: 0.92rem;
    padding: 10px 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.2rem rgba(8, 122, 74, 0.15);
}

/* Cases à cocher / radio en pastilles */

.chip-check {
    position: relative;
}

.chip-check input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.chip-check span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #d7e0e6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--muted);
    background-color: var(--light);
    transition: all 0.2s ease;
}

.chip-check input:checked + span {
    background-color: rgba(8, 122, 74, 0.1);
    border-color: var(--green);
    color: var(--green);
    font-weight: 700;
}

.chip-check input:focus-visible + span {
    box-shadow: 0 0 0 0.2rem rgba(8, 122, 74, 0.25);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consent-check {
    font-size: 0.85rem;
    color: var(--muted);
}

.consent-check a {
    color: var(--green);
}

/* --- États du formulaire --- */

#formStatus {
    display: none;
    font-size: 0.87rem;
    margin-top: 14px;
}

#formStatus.show {
    display: block;
}

#formSuccess {
    display: none;
    text-align: center;
    padding: 30px 10px 10px;
}

#formSuccess.show {
    display: block;
}

#formSuccess i {
    color: var(--green);
    font-size: 3rem;
}

#formSuccess h3 {
    color: var(--blue);
    font-size: 1.3rem;
    margin: 16px 0 8px;
}

#formSuccess p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}
