/* Section Nos Marques */
.brands {
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    background-color: var(--color-beige-background);
}

.brands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/motifs-groupe-mas.svg');
    background-repeat: repeat;
    background-size: 200px;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(82%) sepia(8%) saturate(1011%) hue-rotate(356deg) brightness(86%) contrast(86%);
    opacity: 0.4;
    z-index: 1;
}

.brands::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(243, 233, 211, 0.6);
    z-index: 1;
}

.brands .container {
    position: relative;
    z-index: 2;
}

.brands .section-title {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.title-pronoun {
    color: black;
    font-weight: normal;
    margin-right: 0.5rem;
}

.title-main {
    color: #cbbca0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0.5rem;
}

.brand-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 280px;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-logo-wrapper {
    flex: 0 0 auto;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.brand-description {
    flex: 0 0 auto;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
}

.brand-cta {
    flex: 0 0 auto;
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-beige);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-black);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .brands-grid {
        gap: 1.5rem;
    }

    .brand-card {
        height: 280px;
    }

    .brand-logo-wrapper {
        max-height: 100px;
    }

    .brand-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .brands {
        padding: 2rem 0 2.5rem;
    }

    .brands-grid {
        gap: 0.75rem;
        margin-top: 0.25rem;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .brand-card {
        padding: 0.75rem;
        gap: 0.5rem;
        height: 240px;
    }

    .brand-logo-wrapper {
        max-height: 80px;
    }

    .brand-description {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}
