﻿.categories-phares {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--blanc);
    border-radius: 10px;
}

.categories-phares__intro {
    background-color: #EE3C34;
    color: white;
    font-weight: 500;
    padding: 20px;
    border-radius: 10px;
    text-align: start;
    flex: 0 0 200px;
    height: 160px;
    display: flex;
    align-items: center;
    flex-direction: row;
    line-height: 27px;
}

.categories-phares__container {
    border-radius: 10px;
    background: #F8F8F8;
    width: auto;
    height: auto;
    padding: 17px 18px;
    min-height: 160px;
}

    .categories-phares__container h3 {
        font-weight: 700;
        margin-bottom: 25px;
    }

    .categories-phares__container ul {
        display: flex;
        flex-wrap: wrap;
        gap: 25px 8px;
        list-style: none;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        max-height: calc(2 * 36px + 12px);
    }

    .categories-phares__container li {
        flex: 0 0 auto;
    }

        .categories-phares__container li a {
            border: 1px solid #6B6B6B;
            border-radius: 20px;
            padding: 5px 12px;
            text-decoration: none;
            color: #000;
            font-size: 16px;
            transition: all 0.2s ease;
            background: #fff;
            white-space: nowrap;
        }

            .categories-phares__container li a:hover {
                border-color: #e60012;
                color: #e60012;
                text-decoration: underline;
                text-decoration-color: #e60012;
            }


@media screen and (max-width: 1351px) {
    .categories-phares__container h3 {
        margin-bottom: 15px;
    }

    .categories-phares__container {
        padding: 10px 18px;
    }
}

@media screen and (max-width: 1300px) {
    .categories-phares__intro, .categories-phares__container {
        height: 200px;
    }
}

@media screen and (max-width: 1004px) {
    .categories-phares__intro, .categories-phares__container {
        height: 240px;
    }
}

@media screen and (max-width: 768px) {
    .categories-phares {
        flex-direction: column;
        align-items: center;
    }

    .categories-phares__intro {
        flex: initial;
        font-weight: 700;
        background-color: initial;
        color: initial;
        height: auto;
        font-size: 18px;
        padding: 0px;
    }

    .categories-phares__intro, .categories-phares__container {
        height: fit-content;
    }

    .categories-phares__container {
        padding: 10px;
        min-height: 170px;
    }

        .categories-phares__container h3 {
            margin-bottom: 20px;
            text-align: center;
            font-weight: 600;
            font-size: 18px;
        }

        .categories-phares__container ul {
            gap: 25px 7px;
        }

            .categories-phares__container li a {
            font-size: 15px;
        }
}
