/* =====================================================
   BIO VOLUNTEERS — MAIN DESIGN
   Premium / Responsive / Animated
===================================================== */

:root {
    --vol-orange: #f7931a;
    --vol-orange-dark: #e68108;
    --vol-black: #111318;
    --vol-muted: #747985;
    --vol-light: #f7f8fa;
    --vol-border: #e9ebef;
    --vol-white: #ffffff;

    /* Mesures du carrousel (servent aussi à placer les flèches) */
    --vol-head-h: 56px;
    --vol-head-gap: 22px;
    --vol-track-pt: 12px;
    --vol-card-pad: 24px;
    --vol-img-h: 180px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--vol-white);
    color: var(--vol-black);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.volunteers-hero,
.volunteers-hero *,
.volunteers-opportunities *,
.vol-open-application * {
    box-sizing: border-box;
}

/* Lien d'accessibilité */
.vol-skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 20000;
    padding: 10px 16px;
    background: var(--vol-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

.vol-skip-link:focus {
    left: 10px;
}

/* =====================================================
   HERO
===================================================== */

.volunteers-hero {
    min-height: 690px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 6% 95px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(247,147,26,.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(247,147,26,.09),
            transparent 30%
        ),
        linear-gradient(135deg, #ffffff 0%, #f8f9fc 55%, #fffaf3 100%);
}

/* Décoration */

.volunteers-hero::before,
.volunteers-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.volunteers-hero::before {
    width: 430px;
    height: 430px;
    right: -170px;
    top: 90px;
    border: 1px solid rgba(247,147,26,.17);
    box-shadow:
        0 0 0 35px rgba(247,147,26,.025),
        0 0 0 75px rgba(247,147,26,.02);
    animation: volFloat 9s ease-in-out infinite;
}

.volunteers-hero::after {
    width: 170px;
    height: 170px;
    left: -70px;
    bottom: 50px;
    background: rgba(247,147,26,.06);
    filter: blur(10px);
}

/* =====================================================
   NAVIGATION — REUTILISE BIO  (NON MODIFIÉ)
===================================================== */

.volunteers-hero .bio-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

/* =====================================================
   HERO CONTENT
===================================================== */

.volunteers-hero-content {
    width: 100%;
    max-width: 1050px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: volFadeUp 1s ease both;
}

.volunteers-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 19px;
    border: 1px solid rgba(247,147,26,.28);
    border-radius: 50px;
    background: rgba(247,147,26,.07);
    color: #bb6900;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.volunteers-eyebrow i {
    font-size: 14px;
}

.volunteers-hero-content h1 {
    color: #111318;
    font-size: clamp(39px, 6vw, 76px);
    line-height: 1.13;
    letter-spacing: -2.5px;
    font-weight: 800;
    max-width: 950px;
    margin: 0 auto 25px;
}

.volunteers-hero-content h1 span {
    display: block;
    color: var(--vol-orange);
}

.volunteers-hero-content > p {
    max-width: 720px;
    margin: 0 auto;
    color: #5b616c;
    font-size: 16px;
    line-height: 1.9;
}

.volunteers-hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 35px;
}

.vol-btn-primary,
.vol-btn-secondary {
    min-height: 54px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all .3s ease;
}

.vol-btn-primary {
    background: var(--vol-orange);
    color: white;
    box-shadow: 0 9px 24px rgba(247,147,26,.23);
}

.vol-btn-primary:hover {
    background: var(--vol-orange-dark);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(247,147,26,.3);
}

.vol-btn-secondary {
    background: white;
    border: 1px solid var(--vol-border);
    color: #17191e;
}

.vol-btn-secondary:hover {
    border-color: var(--vol-orange);
    color: var(--vol-orange-dark);
    transform: translateY(-4px);
}

.volunteers-hero-note {
    margin-top: 28px;
    color: #737985;
    font-size: 12px;
    font-weight: 500;
}

.volunteers-hero-note i {
    color: var(--vol-orange);
    margin-right: 6px;
}

/* Petit label au-dessus des titres de section */
.vol-section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #bb6900;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* =====================================================
   OPPORTUNITIES SECTION
===================================================== */

.volunteers-opportunities {
    padding: 65px 0 100px;
    background: #f8f9fb;
    overflow: hidden;
}

.vol-section-heading {
    max-width: 1300px;
    margin: 0 auto 45px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.vol-section-heading h2 {
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.2;
}

.vol-section-heading p {
    color: var(--vol-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
}

/* Anciennes flèches du haut : masquées (on utilise celles de chaque carrousel) */
.vol-carousel-controls {
    display: none !important;
}

/* =====================================================
   CATEGORY BLOCKS
===================================================== */

.vol-category-block {
    position: relative;
    overflow: visible;
    margin-bottom: 58px;
}

/* Hauteur fixe : permet de placer les flèches au bon endroit */
.vol-category-heading {
    width: 100%;
    max-width: 1300px;
    height: var(--vol-head-h);
    padding: 0 5%;
    margin: 0 auto var(--vol-head-gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.vol-category-heading h3 {
    color: #17191e;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
}

.vol-category-heading > span {
    flex-shrink: 0;
    white-space: nowrap;
    color: #7d838e;
    font-size: 12px;
}

/* =====================================================
   HORIZONTAL CAROUSEL
===================================================== */

.vol-carousel {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--vol-track-pt) max(5%, calc((100% - 1300px) / 2)) 25px;
    scroll-padding-inline: max(5%, calc((100% - 1300px) / 2));
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vol-carousel::-webkit-scrollbar {
    display: none;
}

.vol-carousel.vol-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

/* =====================================================
   ARROWS — SANS FOND, SANS BORDURE (flèche seule)
===================================================== */

.vol-category-arrows {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(
        var(--vol-head-h)
        + var(--vol-head-gap)
        + var(--vol-track-pt)
        + var(--vol-card-pad)
        + (var(--vol-img-h) / 2)
    );
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    margin: 0;
    width: 100%;
    z-index: 20;
    pointer-events: none;
}

.vol-category-arrows .vol-arrow {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    outline: none;
    color: #111318;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    filter:
        drop-shadow(0 0 3px rgba(255,255,255,.95))
        drop-shadow(0 0 8px rgba(255,255,255,.7));
    transition: transform .25s ease, color .25s ease, opacity .25s ease;
}

.vol-category-arrows .vol-arrow i {
    color: inherit;
}

.vol-category-arrows .vol-arrow:hover:not(:disabled) {
    color: var(--vol-orange);
    transform: scale(1.15);
}

.vol-category-arrows .vol-arrow:active:not(:disabled) {
    transform: scale(.92);
}

.vol-category-arrows .vol-arrow:focus-visible {
    outline: 2px solid var(--vol-orange);
    outline-offset: 2px;
    border-radius: 50%;
}

.vol-category-arrows .vol-arrow:disabled {
    opacity: .25;
    cursor: not-allowed;
}

/* =====================================================
   OPPORTUNITY CARD
===================================================== */

.vol-opportunity-card {
    flex: 0 0 350px;
    width: 350px;
    padding: var(--vol-card-pad);
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e9ebef;
    border-radius: 19px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
    animation: volFadeUp .7s ease both;
}

.vol-opportunity-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--vol-orange),
        #ffd39b
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
    z-index: 2;
}

.vol-opportunity-card:hover {
    transform: translateY(-8px);
    border-color: rgba(247,147,26,.35);
    box-shadow: 0 20px 45px rgba(25,30,45,.09);
}

.vol-opportunity-card:hover::before {
    transform: scaleX(1);
}

/* --- Image de couverture --- */

.vol-card-image {
    width: 100%;
    height: var(--vol-img-h);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #101b32, #263b5b);
}

.vol-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.vol-opportunity-card:hover .vol-card-image img {
    transform: scale(1.05);
}

.vol-card-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    color: white;
    background:
        radial-gradient(circle at 80% 20%, rgba(247,147,26,.5), transparent 35%),
        linear-gradient(135deg, #101b32, #263b5b);
}

.vol-card-image-placeholder i {
    font-size: 38px;
    color: var(--vol-orange);
}

.vol-card-image-placeholder span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 12px;
}

/* --- Texte --- */

.vol-opportunity-card h4 {
    color: #15171c;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.vol-card-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    color: #4a4f58;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.vol-card-location i {
    color: var(--vol-orange);
}

.vol-card-location span {
    opacity: .45;
}

.vol-card-description {
    color: #3d424b;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.vol-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 16px 0;
    border-top: 1px solid #f0f1f3;
}

.vol-card-info span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5b616c;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.vol-card-info i {
    flex-shrink: 0;
    width: 16px;
    margin-top: 3px;
    text-align: center;
    color: var(--vol-orange);
}

/* --- Boutons : "Apply" en pleine largeur, puis 4 contacts en ligne --- */

.vol-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.vol-card-actions a {
    height: 44px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e9ebef;
    background: #fff;
    color: #5d626d;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    transition: all .25s ease;
}

.vol-card-actions a:not(.vol-apply-button) {
    flex: 1 1 0;
}

.vol-card-actions a:not(.vol-apply-button):hover {
    color: var(--vol-orange-dark);
    border-color: var(--vol-orange);
    background: #fff8ef;
    transform: translateY(-3px);
}

.vol-card-actions .vol-apply-button {
    order: -1;
    flex: 1 1 100%;
    height: 46px;
    padding: 0 14px;
    gap: 9px;
    background: var(--vol-orange);
    border-color: var(--vol-orange);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.vol-card-actions .vol-apply-button:hover {
    background: var(--vol-orange-dark);
    transform: translateY(-3px);
}

/* Apparition au scroll (si le JS ajoute la classe) */
.vol-opportunity-card.vol-card-visible {
    opacity: 1;
}

/* =====================================================
   EMPTY STATE
===================================================== */

.vol-empty-state {
    max-width: 780px;
    margin: 35px auto;
    padding: 65px 25px;
    text-align: center;
    background: white;
    border: 1px solid var(--vol-border);
    border-radius: 22px;
}

.vol-empty-state > i {
    color: var(--vol-orange);
    font-size: 42px;
    margin-bottom: 22px;
}

.vol-empty-state h3 {
    font-size: 23px;
    color: #15171c;
    margin-bottom: 13px;
}

.vol-empty-state p {
    max-width: 550px;
    margin: 0 auto 25px;
    color: var(--vol-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* =====================================================
   OPEN APPLICATION
===================================================== */

.vol-open-application {
    padding: 100px 6%;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(247,147,26,.12),
            transparent 35%
        ),
        #fff;
}

.vol-open-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.vol-open-content h2 {
    margin-bottom: 22px;
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.2;
}

.vol-open-content h2 span {
    display: block;
    color: var(--vol-orange);
}

.vol-open-content p {
    max-width: 690px;
    margin: 0 auto;
    color: #5b616c;
    font-size: 15px;
    line-height: 1.9;
}

.vol-open-content .vol-btn-primary {
    margin-top: 30px;
}

/* =====================================================
   FOOTER
===================================================== */

.volunteers-footer {
    padding: 45px 20px;
    text-align: center;
    background: #111318;
    color: white;
}

.vol-footer-logo {
    color: white;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
}

.volunteers-footer p {
    color: #a4a9b2;
    font-size: 12px;
    margin: 13px 0 20px;
}

.volunteers-footer > span {
    color: #8a909a;
    font-size: 11px;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes volFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes volFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .volunteers-hero {
        min-height: 650px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .volunteers-hero-content h1 {
        font-size: clamp(38px, 7vw, 58px);
    }

    .vol-opportunity-card {
        flex-basis: 330px;
        width: 330px;
    }

    .vol-category-arrows .vol-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 22px;
    }
}

/* =====================================================
   MOBILE — LA CARTE PREND TOUTE LA LARGEUR
===================================================== */

@media (max-width: 768px) {

    :root {
        --vol-head-h: 52px;
        --vol-head-gap: 16px;
        --vol-card-pad: 18px;
        --vol-img-h: 190px;
    }

    /* La navbar de cette page est dans le hero :
       on annule la marge haute ajoutée par style.css */
    body {
        padding-top: 0;
    }

    .volunteers-hero {
        min-height: 680px;
        padding: 120px 20px 75px;
    }

    .volunteers-hero-content h1 {
        font-size: clamp(35px, 9vw, 48px);
        letter-spacing: -1.5px;
        line-height: 1.2;
    }

    .volunteers-hero-content > p {
        font-size: 14.5px;
        line-height: 1.8;
    }

    .volunteers-eyebrow {
        font-size: 9px;
        letter-spacing: 1.4px;
    }

    .volunteers-hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 11px;
    }

    .volunteers-hero-buttons a {
        width: 100%;
        max-width: 320px;
    }

    .volunteers-opportunities {
        padding: 60px 0 70px;
    }

    .vol-section-heading {
        align-items: flex-end;
        padding: 0 20px;
        margin-bottom: 32px;
    }

    .vol-section-heading h2 {
        font-size: 27px;
    }

    .vol-section-heading p {
        font-size: 13px;
        line-height: 1.7;
    }

    .vol-category-block {
        margin-bottom: 38px;
    }

    .vol-category-heading {
        padding: 0 20px;
        gap: 10px;
    }

    .vol-category-heading h3 {
        font-size: 17px;
    }

    .vol-category-heading > span {
        font-size: 11px;
    }

    /* Carrousel : une carte à la fois, pleine largeur */
    .vol-carousel {
        gap: 12px;
        padding: var(--vol-track-pt) 20px 22px;
        scroll-padding-inline: 20px;
    }

    .vol-opportunity-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        border-radius: 18px;
    }

    .vol-opportunity-card:hover {
        transform: none;
    }

    .vol-opportunity-card h4 {
        font-size: 20px;
    }

    .vol-card-description {
        font-size: 15px;
        line-height: 1.75;
    }

    .vol-card-location,
    .vol-card-info span {
        font-size: 14px;
    }

    .vol-card-actions a {
        height: 46px;
        font-size: 16px;
    }

    .vol-card-actions .vol-apply-button {
        height: 48px;
        font-size: 14px;
    }

    /* Flèches : posées sur l'image, blanches, sans fond */
    .vol-category-arrows {
        padding: 0 calc(20px + var(--vol-card-pad) + 2px);
    }

    .vol-category-arrows .vol-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 22px;
        color: #ffffff;
        filter:
            drop-shadow(0 1px 3px rgba(0,0,0,.75))
            drop-shadow(0 0 8px rgba(0,0,0,.45));
    }

    .vol-category-arrows .vol-arrow:hover:not(:disabled) {
        color: #ffffff;
        transform: none;
    }

    .vol-category-arrows .vol-arrow:active:not(:disabled) {
        transform: scale(.88);
    }

    .vol-open-application {
        padding: 75px 22px;
    }

    .vol-open-content h2 {
        font-size: 29px;
    }

    .vol-open-content p {
        font-size: 14.5px;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .volunteers-hero-content h1 {
        font-size: 33px;
    }

    .vol-section-heading {
        gap: 8px;
    }

    .vol-section-heading h2 {
        font-size: 23px;
    }

    .vol-category-heading h3 {
        font-size: 16px;
    }

    .vol-opportunity-card h4 {
        font-size: 18px;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .volunteers-hero *,
    .volunteers-opportunities *,
    .vol-open-application * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}