/* ========================================
   BÉNÉVOLAT PAGE - Against Stones
   Design épuré, moderne et minimaliste
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Gold */
    --gold-primary: #FFD700;
    --gold-secondary: #D4AF37;

    /* Backgrounds */
    --bg-primary: #0A0A0A;
    --bg-card: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 215, 0, 0.3);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;

    /* Accent colors */
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-green: #22C55E;
}

/* ========================================
   VOLUNTEER SECTION
   ======================================== */
.volunteer-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ========================================
   TITLES - H2
   ======================================== */
.volunteer-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg,
                var(--gold-primary) 0%,
                #FFFFFF 40%,
                #FFFFFF 60%,
                var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.volunteer-section h2:not(:first-child) {
    margin-top: 64px;
}

/* ========================================
   DESCRIPTION
   ======================================== */
.volunteer-description {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 0 48px 0;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--gold-primary);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* ========================================
   ROLES GRID - 3 colonnes
   ======================================== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}

/* ========================================
   ROLE CARD
   ======================================== */
.role-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(circle at 50% 0%,
                rgba(255, 215, 0, 0.05) 0%,
                transparent 70%);
    pointer-events: none;
}

.role-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 215, 0, 0.2);
    transform: translateY(-8px);
}

/* Icon */
.role-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--gold-primary);
    transition: all 0.4s ease;
}

.role-card:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Accent colors pour les icons */
.role-card:nth-child(1) svg {
    color: var(--accent-blue);
}

.role-card:nth-child(2) svg {
    color: var(--accent-purple);
}

.role-card:nth-child(3) svg {
    color: var(--accent-green);
}

/* Title */
.role-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.role-card:hover h3 {
    color: var(--gold-primary);
}

/* Description */
.role-card p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CTA CENTER - Bouton d'engagement
   ======================================== */
.cta-center {
    text-align: center;
    margin-top: 48px;
}

.btn-engage {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg,
                var(--gold-primary) 0%,
                var(--gold-secondary) 100%);
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.btn-engage::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.4) 50%,
                transparent 100%);
    transition: left 0.6s ease;
}

.btn-engage:hover::before {
    left: 100%;
}

.btn-engage:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-engage:active {
    transform: translateY(-1px) scale(1);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .volunteer-section {
        padding: 60px 32px;
    }

    .volunteer-section h2 {
        font-size: 36px;
    }

    .volunteer-section h2:not(:first-child) {
        margin-top: 56px;
    }

    .volunteer-description {
        font-size: 16px;
        padding: 24px 28px;
    }

    .roles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        margin-bottom: 48px;
    }

    .role-card {
        padding: 36px 28px;
    }

    .btn-engage {
        padding: 16px 40px;
        font-size: 17px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .volunteer-section {
        padding: 40px 20px;
    }

    .volunteer-section h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .volunteer-section h2:not(:first-child) {
        margin-top: 48px;
    }

    .volunteer-description {
        font-size: 15px;
        padding: 20px 24px;
        margin-bottom: 40px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .role-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .role-card svg {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .role-card h3 {
        font-size: 20px;
    }

    .role-card p {
        font-size: 14px;
    }

    .cta-center {
        margin-top: 40px;
    }

    .btn-engage {
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* ========================================
   RESPONSIVE - PETIT MOBILE
   ======================================== */
@media (max-width: 480px) {
    .volunteer-section {
        padding: 32px 16px;
    }

    .volunteer-section h2 {
        font-size: 28px;
    }

    .volunteer-description {
        font-size: 14px;
        padding: 18px 20px;
    }

    .role-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .role-card h3 {
        font-size: 18px;
    }

    .btn-engage {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 12px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.btn-engage:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

.role-card:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .role-card,
    .volunteer-description {
        border-width: 2px;
    }

    .btn-engage {
        border: 2px solid #000;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .btn-engage {
        display: none;
    }

    .role-card {
        box-shadow: none;
        border: 1px solid #333;
        break-inside: avoid;
    }

    .volunteer-description {
        box-shadow: none;
        border: 1px solid #333;
    }
}
