
/* ============================================
   FH - Marques horlogeres et industrie apparentee
   ============================================ */

.brands-section {
    padding-top: 36px;
    padding-bottom: 72px;
}

/* Navigation alphabetique */

.brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 16px;
    margin-bottom: 42px;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .045);
}

.brands-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 39px;
    border-radius: 7px;
    color: #344054;
    text-decoration: none;
    font-size: 16px;
    font-weight: 650;
    transition: background .18s ease, color .18s ease;
}

a.brands-letter:hover {
    background: #edf5fb;
    color: #008cc2;
}

.brands-letter.is-active {
    background: #087eae;
    color: #fff;
}

/* Grille des logos */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 125px;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .055);
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

a.brand-card:hover {
    transform: translateY(-3px);
    border-color: #c5e0ef;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .09);
}

.brand-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75px;
    object-fit: contain;
}

/* Messages */

.brands-message {
    padding: 32px 20px;
    border: 1px solid #e8ebef;
    border-radius: 10px;
    background: #fff;
    color: #667085;
    text-align: center;
}

/* Tablettes */

@media (max-width: 1050px) {
    .brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .brands-alphabet {
        gap: 3px;
        margin-bottom: 30px;
    }

    .brands-letter {
        width: 33px;
        height: 36px;
    }
}

/* Smartphones */

@media (max-width: 520px) {
    .brands-section {
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-card {
        min-height: 105px;
        padding: 15px 10px;
    }

    .brand-card img {
        max-height: 65px;
    }
}
