/*
 * ============================================
 * Lois et Documents Officiels Section
 * ============================================
 * Based on the Figma design for the "Lois et documents officiels" section
 */

.lois-documents-section {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.lois-documents-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.lois-documents-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.lois-documents-section__title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.lois-documents-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg,
            #ed2024 0%,
            #ed2024 33.33%,
            #ffffff 33.33%,
            #ffffff 66.66%,
            #0e8040 66.66%,
            #0e8040 100%);
    border-radius: 2px;
}

.lois-documents-section__description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    max-width: 700px;
    margin: 24px auto 0;
}

/* Cards Grid - 2x2 layout */
.lois-documents-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Card Styles */
.lois-documents-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E8E8E8;
    position: relative;
}

.lois-documents-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Card Header with Icon and Arrow */
.lois-documents-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Icon Wrapper */
.lois-documents-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lois-documents-card__icon-wrapper--red {
    background-color: #FDECEC;
}

.lois-documents-card__icon-wrapper--green {
    background-color: #E8F5EE;
}

.lois-documents-card__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.lois-documents-card__icon-wrapper--red .lois-documents-card__icon-svg {
    color: #ED2024;
}

.lois-documents-card__icon-wrapper--green .lois-documents-card__icon-svg {
    color: #0e8040;
}

/* Arrow Button */
.lois-documents-card__arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #E8E8E8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    transition: all 0.3s ease;
}

.lois-documents-card:hover .lois-documents-card__arrow {
    border-color: #0e8040;
    color: #0e8040;
}

/* Card Content */
.lois-documents-card__content {
    flex: 1;
}

.lois-documents-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.lois-documents-card__description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .lois-documents-section {
        padding: 60px 0;
    }

    .lois-documents-section__title {
        font-size: 32px;
    }

    .lois-documents-section__grid {
        gap: 20px;
    }

    .lois-documents-card {
        padding: 24px;
    }

    .lois-documents-card__icon-wrapper {
        width: 52px;
        height: 52px;
    }

    .lois-documents-card__icon {
        width: 28px;
        height: 28px;
    }

    .lois-documents-card__title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .lois-documents-section {
        padding: 48px 0;
    }

    .lois-documents-section__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lois-documents-section__header {
        margin-bottom: 32px;
    }

    .lois-documents-section__title {
        font-size: 28px;
    }

    .lois-documents-section__description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .lois-documents-section {
        padding: 40px 0;
    }

    .lois-documents-card {
        padding: 20px;
    }

    .lois-documents-card__icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .lois-documents-card__icon {
        width: 24px;
        height: 24px;
    }

    .lois-documents-card__arrow {
        width: 36px;
        height: 36px;
    }

    .lois-documents-card__title {
        font-size: 17px;
    }

    .lois-documents-card__description {
        font-size: 13px;
    }
}