.contact {
    background-color: rgb(241, 241, 245);
    padding: 3rem;
}

.card {
    border: none;
}

.ligne {
    text-align: center;
    padding: 15px;
    /*border: solid 1px red;*/
}

.ligne img {
    height: 200px;
    margin: 5px;
}

.ligne a:hover {
    text-decoration: none;
}

.contact {
    background-color: rgb(241, 241, 245);
    padding: 3rem;
}

.from-infos {
    margin: 5px;
    font-size: 0.9rem;
    text-align: center;
}

.dropdown-item.dropdown-toggle:hover .dropdown-menu {
    display: block;
}

.fond-ligne-fondu-gris-blanc {
    background: linear-gradient(180deg, rgba(225, 225, 213, 1) 0%, rgba(241, 241, 245, 1) 25%, rgba(255, 255, 255, 100) 100%);;
}

.fond-ligne-fondu-blanc-gris {
    background: linear-gradient(180deg, rgba(255, 255, 255, 100) 0%, rgba(241, 241, 245, 1) 50%, rgba(225, 225, 213, 1) 100%);
}

.required {
    font-weight: bold;
    color: red;
}

.ligne:nth-child(even) {
    background-color: rgb(248, 248, 250);
}

.ligne:nth-child(odd) {
    background-color: rgb(241, 241, 245);
}

footer {
    text-align: center;
    padding: 3%;
    background-color: rgb(241, 241, 245);
    color: #8A8AAC;
    font-size: 1.5rem;
}

#page {
    overflow-x: hidden;
}

.categorie-card {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    max-height: 250px;
    cursor: pointer;
}

.categorie-card .categorie-img {
    transition: transform 0.3s ease;
}

.categorie-card:hover .categorie-img {
    transform: scale(1.05);
}

.categorie-card:hover .categorie-label {
    text-decoration: underline;
}

.categorie-img {
    height: 250px;
    width: auto;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
}

.categorie-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    color: #ffffff;
    background-color: #77779D;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    padding: 0.8em 0.4em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    #page .col-auto {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .categorie-card {
        flex-direction: column;
        max-height: none;
        width: 70vw;
    }

    .categorie-img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }

    .categorie-label {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0.4em;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
}