/* ======================================================
   PAGE BÉNÉVOLAT
====================================================== */

/* Bannière */

.volunteer-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 610px;
    overflow: hidden;
    color: var(--white);
    background-image:
        linear-gradient(
            90deg,
            rgba(31, 14, 44, 0.95),
            rgba(80, 39, 116, 0.58)
        ),
        url("../images/benevolat/benevolat-hero.jpg");
    background-position: center;
    background-size: cover;
}

.volunteer-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(63, 165, 53, 0.4),
            transparent 38%
        );
}

.volunteer-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 100px;
}

.volunteer-hero-label {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.volunteer-hero h1 {
    max-width: 880px;
    font-size: clamp(54px, 8vw, 95px);
    letter-spacing: -4px;
}

.volunteer-hero h1 span {
    display: block;
    color: var(--green);
}

.volunteer-hero p {
    max-width: 720px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.volunteer-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 36px;
}

/* Introduction */

.volunteer-introduction {
    background: var(--white);
}

.volunteer-introduction-grid {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: center;
    gap: 90px;
}

.volunteer-introduction-content h2 {
    margin-bottom: 25px;
    color: var(--purple);
    font-size: clamp(38px, 4.5vw, 58px);
    letter-spacing: -2px;
}

.volunteer-introduction-content p {
    color: var(--gray-700);
}

.volunteer-introduction-content
.volunteer-lead {
    color: var(--purple);
    font-size: 20px;
    font-weight: 500;
}

.volunteer-introduction-card {
    padding: 48px;
    border-radius: 27px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--green)
        );
    box-shadow: var(--shadow-card);
}

.volunteer-introduction-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 18px;
    color: var(--purple);
    background: var(--white);
    font-size: 26px;
    font-weight: 800;
}

.volunteer-introduction-card strong {
    display: block;
    font-size: 25px;
    line-height: 1.4;
}

.volunteer-introduction-card p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
}

/* Titres */

.volunteer-section-heading {
    max-width: 780px;
    margin-bottom: 50px;
}

.volunteer-section-heading h2 {
    margin-bottom: 18px;
    font-size: clamp(38px, 4.5vw, 58px);
    letter-spacing: -2px;
}

.volunteer-section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.volunteer-section-heading.dark h2 {
    color: var(--purple);
}

.volunteer-section-heading.dark p {
    color: var(--gray-500);
}

/* Missions */

.volunteer-missions {
    color: var(--white);
    background: var(--purple);
}

.volunteer-missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.volunteer-mission-card {
    min-height: 280px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    transition:
        transform var(--transition),
        background-color var(--transition);
}

.volunteer-mission-card:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.12);
}

.volunteer-mission-card.featured {
    color: var(--purple);
    background: var(--white);
}

.volunteer-mission-number {
    display: block;
    margin-bottom: 60px;
    color: var(--green);
    font-size: 18px;
    font-weight: 800;
}

.volunteer-mission-card h3 {
    margin-bottom: 13px;
    font-size: 23px;
}

.volunteer-mission-card.featured h3 {
    color: var(--purple);
}

.volunteer-mission-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.volunteer-mission-card.featured p {
    color: var(--gray-500);
}

/* Étapes */

.volunteer-steps {
    background: var(--gray-100);
}

.volunteer-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.volunteer-step {
    padding: 32px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-light);
}

.volunteer-step-number {
    display: grid;
    width: 55px;
    height: 55px;
    margin-bottom: 25px;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    background: var(--green);
    font-size: 20px;
    font-weight: 800;
}

.volunteer-step h3 {
    margin-bottom: 12px;
    color: var(--purple);
    font-size: 22px;
}

.volunteer-step p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Formulaire */

.volunteer-form-section {
    background: var(--white);
}

.volunteer-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 35px;
}

.volunteer-form-card {
    padding: 45px;
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow-light);
}

.volunteer-form-heading {
    margin-bottom: 35px;
}

.volunteer-form-heading h2 {
    margin-bottom: 12px;
    color: var(--purple);
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -1.5px;
}

.volunteer-form-heading p {
    color: var(--gray-500);
}

.volunteer-alert {
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 15px;
}

.volunteer-alert strong {
    display: block;
    margin-bottom: 6px;
}

.volunteer-alert p {
    margin: 0;
}

.volunteer-alert ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style: disc;
}

.volunteer-alert.success {
    color: #22652a;
    border: 1px solid #b9dfbd;
    background: #eaf7eb;
}

.volunteer-alert.error {
    color: #91251f;
    border: 1px solid #efc2be;
    background: #fff0ef;
}

.volunteer-fieldset {
    margin: 0 0 32px;
    padding: 0;
    border: 0;
}

.volunteer-fieldset legend {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--purple);
    font-size: 20px;
    font-weight: 800;
}

.volunteer-fieldset-description {
    margin-top: -10px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 13px;
}

.volunteer-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.volunteer-form-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.volunteer-form-group.full {
    grid-column: 1 / -1;
}

.volunteer-form-group label,
.volunteer-label-row label {
    margin-bottom: 8px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
}

.volunteer-form-group input,
.volunteer-form-group select,
.volunteer-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 13px;
    color: var(--black);
    outline: none;
    background: var(--white);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.volunteer-form-group select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--green) 50%),
        linear-gradient(135deg, var(--green) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.volunteer-form-group input:focus,
.volunteer-form-group select:focus,
.volunteer-form-group textarea:focus {
    border-color: var(--green);
    box-shadow:
        0 0 0 4px rgba(63, 165, 53, 0.13);
}

.volunteer-form-group textarea {
    resize: vertical;
}

.volunteer-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.volunteer-counter {
    color: var(--gray-500);
    font-size: 11px;
}

.volunteer-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.volunteer-choice {
    position: relative;
    cursor: pointer;
}

.volunteer-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.volunteer-choice span {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: 13px;
    font-weight: 600;
    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition);
}

.volunteer-choice input:checked + span {
    color: var(--white);
    border-color: var(--green);
    background: var(--green);
}

.volunteer-choice input:focus-visible + span {
    box-shadow:
        0 0 0 4px rgba(63, 165, 53, 0.16);
}

.volunteer-switches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.volunteer-switch {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
    cursor: pointer;
}

.volunteer-switch input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--green);
}

.volunteer-switch span {
    color: var(--gray-700);
    font-size: 13px;
}

.volunteer-privacy {
    display: grid;
    grid-template-columns: 21px 1fr;
    align-items: start;
    gap: 12px;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.65;
}

.volunteer-privacy input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--green);
}

.volunteer-privacy a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
}

.volunteer-submit-button {
    margin-top: 28px;
    padding: 15px 28px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(63, 165, 53, 0.24);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}

.volunteer-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(63, 165, 53, 0.28);
}

.volunteer-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Sidebar */

.volunteer-sidebar {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 20px;
}

.volunteer-sidebar-card {
    padding: 30px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--gray-50);
    box-shadow: var(--shadow-light);
}

.volunteer-sidebar-card.green {
    border-color: transparent;
    background: var(--green-light);
}

.volunteer-sidebar-card.purple {
    color: var(--white);
    border-color: var(--purple);
    background: var(--purple);
}

.volunteer-sidebar-label {
    display: block;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.volunteer-sidebar-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 15px;
    color: var(--white);
    background: var(--green);
    font-size: 23px;
    font-weight: 800;
}

.volunteer-sidebar-card h2 {
    margin-bottom: 12px;
    color: var(--purple);
    font-size: 23px;
}

.volunteer-sidebar-card.purple h2 {
    color: var(--white);
}

.volunteer-sidebar-card p {
    color: var(--gray-500);
    font-size: 14px;
}

.volunteer-sidebar-card.green p {
    color: var(--gray-700);
}

.volunteer-sidebar-card.purple p {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.74);
}

/* CTA final */

.volunteer-final-section {
    background: var(--gray-100);
}

.volunteer-final-box {
    position: relative;
    overflow: hidden;
    padding: 75px;
    border-radius: 30px;
    color: var(--white);
    background: var(--purple);
    box-shadow: var(--shadow-card);
}

.volunteer-final-decoration {
    position: absolute;
    top: -160px;
    right: -100px;
    width: 450px;
    height: 450px;
    border: 75px solid rgba(63, 165, 53, 0.28);
    border-radius: 50%;
}

.volunteer-final-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.volunteer-final-content h2 {
    margin-bottom: 20px;
    font-size: clamp(40px, 5vw, 62px);
    letter-spacing: -2px;
}

.volunteer-final-content p {
    max-width: 630px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
}

/* Responsive */

@media (max-width: 1050px) {
    .volunteer-introduction-grid,
    .volunteer-form-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .volunteer-missions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .volunteer-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .volunteer-sidebar-card:first-child {
        grid-row: span 2;
    }
}

@media (max-width: 760px) {
    .volunteer-hero {
        min-height: 550px;
    }

    .volunteer-hero h1 {
        font-size: clamp(48px, 14vw, 70px);
        letter-spacing: -2px;
    }

    .volunteer-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .volunteer-hero-actions .btn {
        width: 100%;
    }

    .volunteer-missions-grid,
    .volunteer-steps-grid {
        grid-template-columns: 1fr;
    }

    .volunteer-form-card {
        padding: 30px 22px;
    }

    .volunteer-form-grid,
    .volunteer-choice-grid,
    .volunteer-switches,
    .volunteer-sidebar {
        grid-template-columns: 1fr;
    }

    .volunteer-form-group.full {
        grid-column: auto;
    }

    .volunteer-sidebar-card:first-child {
        grid-row: auto;
    }

    .volunteer-final-box {
        padding: 50px 28px;
    }
}

@media (max-width: 520px) {
    .volunteer-introduction-card {
        padding: 34px 25px;
    }

    .volunteer-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .volunteer-submit-button {
        width: 100%;
    }
}