/* =====================================================
   ASSOCIATIONS PAGE — styles spécifiques
   ===================================================== */

/* Nav back link */
.nav__link--back {
    font-size: .85rem;
    color: #64748b !important;
    border-left: 1px solid #e2e8f0;
    padding-left: .875rem !important;
    margin-left: .25rem;
}
.nav__link--back:hover { color: #374151 !important; }

/* ---- HERO ---- */
.assoc-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e1b4b 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.assoc-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 65%);
    pointer-events: none;
}
.assoc-hero .container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
}
.assoc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.35);
    color: #a78bfa;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}
.assoc-hero__badge svg { width: .9rem; height: .9rem; }
.assoc-hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.assoc-hero__subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
}
.assoc-hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.btn--lg { padding: .875rem 2rem; font-size: 1rem; }
.btn--ghost {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.85);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.05); }
.assoc-hero__note {
    font-size: .825rem;
    color: #64748b;
    margin: 0;
}

/* Hero visual card */
.assoc-hero__visual { display: flex; justify-content: center; }
.assoc-hero__card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
}
.assoc-hero__stat { text-align: center; }
.assoc-hero__stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #a78bfa;
    line-height: 1;
    margin-bottom: .35rem;
}
.assoc-hero__stat-label {
    font-size: .85rem;
    color: #94a3b8;
}

/* ---- FEATURES GRID ---- */
.assoc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.assoc-feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    border-top: 3px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease;
}
.assoc-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.assoc-feature-card--blue   { border-top-color: #2563eb; }
.assoc-feature-card--green  { border-top-color: #16a34a; }
.assoc-feature-card--purple { border-top-color: #7c3aed; }
.assoc-feature-card--orange { border-top-color: #ea580c; }
.assoc-feature-card--teal   { border-top-color: #0d9488; }
.assoc-feature-card--red    { border-top-color: #dc2626; }

.assoc-feature-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.assoc-feature-card--blue   .assoc-feature-card__icon { background: #eff6ff; color: #2563eb; }
.assoc-feature-card--green  .assoc-feature-card__icon { background: #f0fdf4; color: #16a34a; }
.assoc-feature-card--purple .assoc-feature-card__icon { background: #faf5ff; color: #7c3aed; }
.assoc-feature-card--orange .assoc-feature-card__icon { background: #fff7ed; color: #ea580c; }
.assoc-feature-card--teal   .assoc-feature-card__icon { background: #f0fdfa; color: #0d9488; }
.assoc-feature-card--red    .assoc-feature-card__icon { background: #fef2f2; color: #dc2626; }
.assoc-feature-card__icon svg { width: 1.25rem; height: 1.25rem; }

.assoc-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .5rem;
}
.assoc-feature-card p {
    font-size: .9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: .875rem;
}
.assoc-feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: .75rem;
}
.assoc-feature-card ul li {
    font-size: .85rem;
    color: #475569;
    padding: .25rem 0;
}
.assoc-feature-card ul li::before {
    content: '→ ';
    color: #94a3b8;
}

/* ---- SECTIONS — espacements ---- */
/* Les sections de la page associations ont plus d'espace entre elles */
.assoc-hero + .section,
.section + .section,
.section + .contact {
    position: relative;
}
.section {
    padding: 5rem 0;
}
.section--alt {
    background: #f8fafc;
    padding: 5rem 0;
}

/* ---- PRICING UNIQUE ---- */
.assoc-plan-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}
.assoc-plan {
    background: #fff;
    border: 2px solid #7c3aed;
    border-radius: 1.5rem;
    padding: 2.5rem 2.25rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(124,58,237,.13);
    position: relative;
}
.assoc-plan__badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem 1.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(124,58,237,.3);
}
.assoc-plan__header { margin-bottom: 1.25rem; }
.assoc-plan__name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: .375rem;
}
.assoc-plan__desc { font-size: .95rem; color: #64748b; }

.assoc-plan__price { margin-bottom: .5rem; }
.assoc-plan__amount {
    font-size: 3rem;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}
.assoc-plan__period { font-size: 1rem; color: #94a3b8; margin-left: .25rem; }
.assoc-plan__billing {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 1.75rem;
}

.assoc-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}
.assoc-plan__features li {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem 0;
    font-size: .95rem;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}
.assoc-plan__features li:last-child { border-bottom: none; }
.assoc-plan__features svg { width: 1rem; height: 1rem; color: #16a34a; flex-shrink: 0; }
.btn--full { display: block; width: 100%; text-align: center; }
.assoc-plan__note { font-size: .825rem; color: #94a3b8; margin-top: .75rem; }

.assoc-plan__guarantees {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    max-width: 520px;
    width: 100%;
}
.assoc-plan__guarantee {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: #64748b;
}
.assoc-plan__guarantee svg { width: 1.1rem; height: 1.1rem; color: #7c3aed; flex-shrink: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .assoc-hero .container { grid-template-columns: 1fr; }
    .assoc-hero__visual { display: none; }
    .assoc-hero__title { font-size: 2rem; }
}
@media (max-width: 640px) {
    .assoc-hero { padding: 4rem 0 3rem; }
    .assoc-hero__title { font-size: 1.75rem; }
    .assoc-hero__cta { flex-direction: column; }
    .assoc-plan { padding: 2rem 1.25rem; }
    .assoc-plan__amount { font-size: 2.25rem; }
    .assoc-features { grid-template-columns: 1fr; }
}

/* =====================================================
   PRICING TOGGLE — override pour fond clair
   ===================================================== */
#tarifs .pricing__toggle-label {
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
}
#tarifs .pricing__toggle-label--active {
    color: #1e293b;
}
#tarifs .pricing__toggle-badge {
    background: #7c3aed;
    color: #fff;
}
#tarifs .pricing__toggle-switch {
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
}
#tarifs .pricing__toggle-switch:hover {
    background: #cbd5e1;
}
#tarifs .pricing__toggle-switch[aria-checked="true"] {
    background: #7c3aed;
    border-color: #7c3aed;
}
#tarifs .pricing__toggle-slider {
    background: #94a3b8;
}
#tarifs .pricing__toggle-switch[aria-checked="true"] .pricing__toggle-slider {
    background: #fff;
}

/* =====================================================
   CONTACT SECTION — surcharge pour fond clair + formulaire propre
   ===================================================== */
#contact {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 50%, #f8fafc 100%);
}
#contact .section__title { color: #1e293b; }
#contact .section__subtitle { color: #64748b; }

#contact .contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}

#contact .contact__info {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid #e2e8f0;
}
#contact .contact__info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .75rem;
}
#contact .contact__info > p {
    color: #64748b;
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* Form container */
#contact .contact__form {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

/* Form rows: 2 columns for name+email, phone+assoc */
#contact .contact__form .form__group {
    margin-bottom: 0;
}
#contact .contact__form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Labels */
#contact .form__label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .375rem;
}
#contact .form__label span[aria-hidden] { color: #ef4444; margin-left: 2px; }

/* Inputs */
#contact .form__input,
#contact .form__textarea {
    width: 100%;
    padding: .625rem .875rem;
    border: 1.5px solid #d1d5db;
    border-radius: .625rem;
    font-size: .95rem;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
    font-family: inherit;
}
#contact .form__input::placeholder,
#contact .form__textarea::placeholder { color: #9ca3af; }
#contact .form__input:focus,
#contact .form__textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
#contact .form__textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit button */
#contact #contact-submit {
    margin-top: .25rem;
    padding: .75rem 1.5rem;
    font-size: 1rem;
}

/* Success / error alerts */
.form-success,
.form-error {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-radius: .625rem;
    font-size: .9rem;
    font-weight: 500;
}
.form-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.form-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.form-success svg,
.form-error svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

@media (max-width: 768px) {
    #contact .contact__grid { grid-template-columns: 1fr; }
    #contact .contact__form .form-row { grid-template-columns: 1fr; }
}
