/* ===== RESSOURCES PAGE — page-specific styles only ===== */
/* Global resets, header, footer, body → handled by style.css */

/* Hero Section */
.hero-ressources {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0d2b1a 100%);
    padding: 6rem 2rem 5rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-ressources::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255, 215, 0, 0.04) 40px,
        rgba(255, 215, 0, 0.04) 80px
    );
    pointer-events: none;
}

.hero-ressources h1 {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    position: relative;
}

.hero-ressources p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}

/* Section Ressources */
.ressources-section {
    padding: 5rem 2rem 4rem;
    background-color: #f4f6f4;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #666;
    margin-bottom: 3.5rem;
}

/* Grid des documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.document-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.document-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(26, 107, 60, 0.18);
}

.document-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e8f0ea;
}

.document-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.document-card:hover .document-image {
    transform: scale(1.08);
}

.file-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: var(--gold);
    color: var(--primary-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.document-content {
    padding: 1.75rem;
}

.document-content h3 {
    color: var(--primary-dark);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.document-content p {
    color: #666;
    line-height: 1.7;
    font-size: 0.92rem;
}

.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold) 0%, #e6b800 100%);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
}

.download-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-dark);
}

/* Section info supplémentaire */
.info-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d2b1a 100%);
    padding: 4rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 50px,
        rgba(255, 215, 0, 0.03) 50px,
        rgba(255, 215, 0, 0.03) 100px
    );
    pointer-events: none;
}

.info-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    text-align: center;
    position: relative;
}

.info-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.info-card h3 {
    color: var(--gold);
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.info-card p {
    line-height: 1.75;
    opacity: 0.88;
    font-size: 0.95rem;
}

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

@media (max-width: 1024px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-ressources {
        padding: 5rem 1.5rem 4rem;
        clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
    }

    .ressources-section {
        padding: 3.5rem 1.5rem 3rem;
    }

    .section-subtitle {
        margin-bottom: 2.5rem;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .document-image-container {
        height: 200px;
    }

    .info-section {
        padding: 3rem 1.5rem;
    }

    .info-container {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-ressources {
        padding: 4.5rem 1rem 3.5rem;
    }

    .document-content {
        padding: 1.25rem;
    }

    .file-badge {
        top: 10px;
        right: 10px;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-section {
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 360px) {
    .document-image-container {
        height: 180px;
    }

    .download-icon {
        width: 42px;
        height: 42px;
    }

    .download-icon svg {
        width: 18px;
        height: 18px;
    }
}
