.container {
    width: 100%;
}

.row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 70vh;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.domaine {
    flex: 1;
    text-align: center;
    transition: flex 0.5s ease, background-size 0.5s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    background-color: #00446fd7;
    background-blend-mode: overlay;
    /* Noir et blanc par défaut */
}

.domaine:hover {
    flex: 2;
    filter: grayscale(0%);
    background-color: #00446f17;
}

.row .domaine:not(:hover) {
    flex: 1;
}

.domaine p {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.domaine:hover p {
    opacity: 1;
}

#domaine-nu {
    border-radius: 1rem 0 0 1rem;
    background-image: url('../ressources/domaine-nu.jpg');
}

#domaine-ee {
    background-image: url('../ressources/domaine-ee.jpg');
}

#domaine-mx {
    background-image: url('../ressources/domaine-mx.jpg');
}

#domaine-is {
    border-radius: 0 1rem 1rem 0;
    background-image: url('../ressources/domaine-is.jpg');
}


@media (max-width: 1100px) {
    .domaine {
        min-width: calc(40% - 0.2rem);
    }

    #domaine-nu {
        border-radius: 1rem 0 0 0;
    }

    #domaine-ee {
        border-radius: 0 1rem 0 0;
    }

    #domaine-mx {
        border-radius: 0 0 0 1rem;
    }

    #domaine-is {
        border-radius: 0 0 1rem 0;
    }
}

@media (max-width: 1100px) {
    .motdomaine-image-container {
        flex: 1;
        margin-bottom: 20px;
        margin-right: 0 !important;
    }

    .motdomaine-container {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-width: 80vw;
    }
}

.motdomaine-container {
    display: flex;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 5rem rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.motdomaine-image-container {
    flex: 1;
    margin-right: 20px;
}

.motdomaine-image-container img {
    width: 100%;
    height: 100%;
    min-height: 23vh;
    border-radius: 8px;
    object-fit: cover;
}

.motdomaine-text-container {
    flex: 2;
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.motdomaine-text-container h2 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
}

.motdomaine-quote {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    top: 15vh;
    background-color: #fefefe;
    border: 1px solid #888;
    width: 60vw;
    transform: translateX(-50%);
    left: 50%;
}

.close-nu {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-nu:hover,
.close-nu:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-ee {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-ee:hover,
.close-ee:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-mx {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-mx:hover,
.close-mx:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-is {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-is:hover,
.close-is:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#btnclose {
    display: grid;
    align-items: start;
}


@media (max-width: 1100px) {
    .modal-content {
        width: 80vw;
        top: 5vh;
    }
}

.liste-clients {
    padding: 2rem 0 1rem 0;
    overflow: hidden;
}

.liste-client-carousel {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 85vw;
}

.liste-client-carousel::before,
.liste-client-carousel::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 25px;
    z-index: 2;
}

.liste-client-carousel::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.liste-client-carousel::before {
    left: 0;
    top: 0;
}

.liste-client-carousel .liste-client-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: max-content;
}

.liste-client-carousel .liste-client-logo img {
    height: 100px;
    width: auto;
    padding: 15px 40px;
}