/* ============================================================
   PAGE "NOUS REJOINDRE" — CREAI-VBG
   Charte : teal dominant, violet accent, corail urgence
   ============================================================ */


/* ============================================================
   VARIABLES
   ============================================================ */

/* Jetons : voir base.css */

/* ============================================================
   BASE LOCALE
   ============================================================ */

.rejoindre-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================================
   HERO
   ============================================================ */

.rejoindre-hero {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 50%, var(--brand-500) 100%);
    color: #ffffff;
    padding: 110px 0 100px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.rejoindre-hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.rejoindre-hero::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.rejoindre-hero-content {
    max-width: 900px;
    margin: 0;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.rejoindre-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.rejoindre-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    max-width: 800px;
}

.rejoindre-lead {
    font-size: 20px;
    line-height: 1.65;
    color: #ffffff;
    max-width: 720px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.98;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.rejoindre-section {
    width: 100%;
    padding: 80px 0;
    background: var(--surface);
}

.rejoindre-section--alt {
    background: var(--surface-alt);
}

.rejoindre-section--tight-bottom {
    padding-bottom: 24px;
}

.rejoindre-section--tight-top {
    padding-top: 24px;
}

/* ============================================================
   ENCADRÉS
   ============================================================ */

.callout {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-left: 5px solid var(--brand-500);
    border-radius: var(--radius);
}

.callout--care {
    background: var(--accent-50);
    border-color: var(--accent-200);
    border-left-color: var(--accent-600);
}

.callout-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--brand-700);
}

.callout--care .callout-icon {
    color: var(--accent-600);
}

.callout-icon svg {
    width: 22px;
    height: 22px;
}

.callout h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.callout p {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.callout p + p {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .callout {
        flex-direction: column;
        padding: 20px;
    }
}

/* ============================================================
   « À QUOI SERT MON ADHÉSION ? » — une carte par plan
   ============================================================ */

.plans-title {
    font-size: 21.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-500);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.plan-card--teal   { border-top-color: var(--brand-500); }
.plan-card--purple { border-top-color: var(--accent-600); }
.plan-card--coral  { border-top-color: var(--coral-500); }

.plan-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.plan-card--purple .plan-card-icon { background: var(--accent-50); color: var(--accent-600); }
.plan-card--coral  .plan-card-icon { background: var(--coral-50);  color: var(--coral-700); }

.plan-card-icon svg {
    width: 22px;
    height: 22px;
}

.plan-card h4 {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.plan-card p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.plan-card p em {
    font-style: italic;
}

/* ============================================================
   CATÉGORIES DE MEMBRES
   ============================================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 24px;
}

.categorie-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-500);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.categorie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.categorie-card h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.35;
}

.categorie-card p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* Variantes de couleur (charte) */
.categorie-card--teal   { border-top-color: var(--brand-500); }
.categorie-card--purple { border-top-color: var(--accent-600); }
.categorie-card--coral  { border-top-color: var(--coral-500); }
.categorie-card--gray   { border-top-color: var(--gray-600); }

/* ============================================================
   GRILLE ADHÉSION (étapes + formulaire)
   ============================================================ */

.adhesion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- Étapes --- */

.adhesion-steps h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 32px;
    padding-bottom: 14px;
    position: relative;
}

.adhesion-steps h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-500);
    border-radius: 2px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 24px;
}

.steps-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 17.5px;
    font-weight: 700;
}

.steps-list li span:last-child {
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    padding-top: 8px;
}

/* ============================================================
   FORMULAIRE D'ADHÉSION
   ============================================================ */

.form-card {
    background: var(--surface);
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(106, 44, 116, 0.08);
    border: 1px solid var(--border);
}

.form-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 28px;
    padding-bottom: 14px;
    position: relative;
}

.form-card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-500);
    border-radius: 2px;
}

/* --- Alerts --- */

.form-card .alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.55;
}

.form-card .alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.form-card .alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

.form-card .alert-error ul {
    margin: 6px 0 0 20px;
    padding: 0;
}

/* --- Champs --- */

.form-card label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.form-card label:first-of-type {
    margin-top: 0;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="date"],
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: inherit;
    font-size: 17.5px;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(106, 44, 116, 0.15);
}

.form-card select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5e5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-card textarea {
    resize: vertical;
    min-height: 110px;
}

/* --- Bouton --- */

.form-card button[type="submit"] {
    margin-top: 28px;
    width: 100%;
    padding: 16px 24px;
    min-height: 54px;
    background: var(--brand-500);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 17.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.form-card button[type="submit"]:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
}

.form-card button[type="submit"]:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   FORMULAIRE EN PLUSIEURS ÉTAPES (wizard)
   ============================================================ */

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: background 0.2s ease, transform 0.2s ease;
}

.wizard-dot.is-active {
    background: var(--brand-500);
    transform: scale(1.2);
}

.wizard-step-label {
    text-align: center;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 22px;
}

.wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.wizard-actions .wizard-next,
.wizard-actions button[type="submit"] {
    flex: 1;
    width: auto;
    margin-top: 0;
}

.wizard-next {
    padding: 16px 24px;
    min-height: 54px;
    background: var(--brand-500);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 17.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.wizard-next:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
}

.wizard-prev {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 0 22px;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 17.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.wizard-prev:hover {
    background: var(--surface-alt);
    border-color: var(--gray-400);
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.rejoindre-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--surface) 50%, var(--brand-50) 100%);
    padding: 90px 0 100px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.rejoindre-cta h2 {
    font-size: 34.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.rejoindre-cta p {
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: 18.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.rejoindre-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Boutons génériques --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 17.5px;
    font-weight: 600;
    transition: background 0.15s, transform 0.1s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--brand-500);
    color: #fff;
    border-color: var(--brand-500);
}
.btn--primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.btn--outline {
    background: transparent;
    color: var(--accent-600);
    border-color: var(--accent-600);
}
.btn--outline:hover {
    background: var(--accent-600);
    color: #fff;
}

@media (max-width: 600px) {
    .rejoindre-cta {
        padding: 60px 0 70px;
    }

    .rejoindre-cta h2 {
        font-size: 24px;
    }

    .rejoindre-cta p {
        font-size: 17.5px;
    }

    .rejoindre-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 340px;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .rejoindre-container {
        padding: 0 32px;
    }

    .rejoindre-hero-content {
        padding: 0 32px;
    }

    .rejoindre-hero h1 {
        font-size: 36.5px;
    }

    .adhesion-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 600px) {
    .rejoindre-container,
    .rejoindre-hero-content {
        padding: 0 20px;
    }

    .rejoindre-hero {
        padding: 70px 0 60px;
    }

    .rejoindre-hero h1 {
        font-size: 28px;
    }

    .rejoindre-badge {
        font-size: 15px;
        padding: 8px 16px;
    }

    .rejoindre-lead {
        font-size: 17.5px;
    }

    .rejoindre-section {
        padding: 50px 0;
    }

    .categorie-card {
        padding: 24px 20px;
    }

    .form-card {
        padding: 28px 22px;
    }

    .form-card h2 {
        font-size: 21.5px;
    }

    .adhesion-steps h2 {
        font-size: 24px;
    }

    .step-num {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .steps-list li span:last-child {
        font-size: 16px;
        padding-top: 6px;
    }
}

/* ============================================================
   SECTIONS BÉNÉVOLAT / PARTENARIAT (partagées avec « Nous soutenir »)
   ============================================================ */

/* 3 types d'engagement partenaire : les 3 cartes tiennent sur une seule ligne */
@media (min-width: 700px) {
    .cards-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Badge utilisé sur fond clair (sections adhésion / bénévolat / partenariat) */
.page-badge--dark {
    display: inline-block;
    background: var(--brand-50);
    color: var(--brand-700);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid var(--brand-200);
}

/* Listes à puces (dons, bénévolat, partenariat) */
.check-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-500);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

.check-list--cross li::before { background: var(--coral-500); }

.check-list--cross li::after {
    left: 5px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-right: none;
    border-bottom: none;
    border-left: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    transform: rotate(45deg);
}

/* Groupe de radios (canal préféré, etc.) */
.form-card .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 4px;
}

.form-card .radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
    font-size: 16.5px;
    color: var(--text-primary);
    cursor: pointer;
}

.form-card .radio-option input[type="radio"] {
    width: auto;
    accent-color: var(--brand-500);
    cursor: pointer;
}

@media (max-width: 900px) {
    .check-list { max-width: none; }
}

/* ============================================================
   RACCOURCIS DU HERO + ANCRES
   ============================================================ */

.rejoindre-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.rejoindre-hero-actions .btn {
    min-height: 48px;
    padding: 12px 26px;
}

.btn--light {
    background: #ffffff;
    color: var(--brand-700);
    border-color: #ffffff;
}
.btn--light:hover {
    background: var(--brand-50);
    border-color: var(--brand-50);
}

.btn--don {
    background: var(--coral-500);
    color: #ffffff;
    border-color: var(--coral-500);
}
.btn--don:hover {
    background: var(--coral-700);
    border-color: var(--coral-700);
}

.btn--ghost-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
}

/* Espace sous la nav fixe quand on arrive sur une ancre */
#adhesion,
#benevolat,
#partenaires {
    scroll-margin-top: 90px;
}

@media (max-width: 600px) {
    .rejoindre-hero-actions .btn {
        width: 100%;
    }
}

.partenariat-tagline {
    margin: 0 0 48px;
    text-align: center;
    font-size: 21.5px;
    font-weight: 700;
    color: var(--brand-700);
}

/* Moyens de paiement (adhésion) */
.paiement-adhesion {
    margin-top: 32px;
}

.paiement-adhesion h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.paiement-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.paiement-liste li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-500);
    border-radius: var(--radius-sm);
    font-size: 17.5px;
    color: var(--text-secondary);
}

.paiement-liste a {
    color: var(--brand-700);
    font-weight: 700;
}

.paiement-vide {
    margin: 0;
    padding: 14px 16px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-sm);
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--brand-900);
}


.steps-list a {
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: underline;
}
