/* Style pour le titre de la section */
.section-title {
    font-weight: bold;
    color: #082445;
}

/* Style pour le conteneur d'expertise */
.expertise-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    /* Pas d'espacement entre les éléments */
}

/* Style pour chaque expertise */
.expertise-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    /* Permet à l'élément de grandir pour remplir l'espace */
    width: 0;
    /* Nécessaire pour que flex-grow fonctionne correctement */
}

.expertise-item img {
    width: 70%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.expertise-item:hover {
    transform: scale(1.1);
}

.expertise-text {
    background-color: white;
    color: #082445;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    width: 70%;
}

.expertise-text h3 {
    font-size: 1.5em;
    margin: 10px 0;
    font-weight: bold;
    color: #082445;
}

.expertise-text p {
    font-size: 1em;
    color: #082445;
}

.expertise-text h3,
.expertise-text p {
    margin: 0;
}

.see-more {
    margin-top: 20px;
}

.see-more a {
    color: #082445;
    text-decoration: none;
}

/* Style pour la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(204, 33, 33);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Partie relative au défilement */

/* Ajoutez cette classe pour le conteneur d'expertise */
.expertise-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    /* Change overflow-x from auto to hidden */
    gap: 0;
    /* Pas d'espacement entre les éléments */
    position: relative;
}

.expertise-item {
    flex-shrink: 0;
    width: 200px;
    position: relative;
}

/** Gestion du modal */
/* Style pour la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

.modal-content.show {
    transform: translateY(0);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Style pour la modal */
/* Style pour la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 40px;
    /* Change top to bottom */
    width: 100%;
    height: 100%;
    /* Cover full height */
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto;
    /* Remove vertical margin, keep only horizontal centering */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    position: absolute;
    bottom: 0;
    /* Align the modal content to the bottom */
    transform: translateY(100%);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.modal-content.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-content.hide {
    transform: translateY(100%);
    opacity: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/** Link Url Management */

.expertise-link {
    text-decoration: none;
    color: inherit;
}

.expertise-link:hover {
    text-decoration: none; /* Désactiver le soulignement au survol */
}

.expertise-link:hover .expertise-content {
    transform: scale(1.05); /* Exemple d'effet au survol */
}

/*Gestion de la longueur de l'expertise*/
.see-more-link {
    color: #0066cc;
    cursor: pointer;
    font-weight: bold;
}
