/* Style pour le module Hover Card */
.projects-container {
    overflow: hidden;
    width: 100%;
}

/* Première grille (2 éléments) */
.featured-projects-grid {
    display: flex;
    width: 100%;
    gap: 20px;
}

/* Style des liens */
.project-link {
    text-decoration: none;
    display: block;
    transition: width 0.3s ease-in-out;
}

/* Premier grid */
.featured-projects-grid .project-link:first-child {
    width: 60%;
}

.featured-projects-grid .project-link:last-child {
    width: 40%;
}

.featured-projects-grid .project-link:first-child:hover {
    width: 80%;
}

.featured-projects-grid .project-link:first-child:hover + .project-link {
    width: 30%;
}

.featured-projects-grid .project-link:last-child:hover {
    width: 150%;
}

.featured-projects-grid .project-link:last-child:hover ~ .project-link:first-child {
    width: 80%;
}

/* Deuxième grille */
.secondary-projects-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

/* Première ligne de la grille secondaire */
.first-row {
    display: flex;
    width: 100%;
    height: 300px;
    gap: 20px;
}

.first-row .project-link:first-child {
    width: 45%;
    transition: width 0.3s ease-in-out;
}

.first-row .project-link:last-child {
    width: 55%;
    transition: width 0.3s ease-in-out;
}

.first-row .project-link:first-child:hover {
    width: 90%;
}

.first-row .project-link:first-child:hover + .project-link {
    width: 45%;
}

.first-row .project-link:last-child:hover {
    width: 100%;
}

.first-row .project-link:last-child:hover ~ .project-link:first-child {
    width: 35%;
}

/* Deuxième ligne de la grille secondaire */
.second-row {
    display: flex;
    width: 100%;
    height: 300px;
    gap: 20px;
}

/* Distribution initiale */
.second-row .project-link {
    transition: width 0.3s ease-in-out;
}

.second-row .project-link:first-child {
    width: 40%;
}

.second-row .project-link:not(:first-child) {
    width: 20%;
}

/* Effet hover sur le premier élément */
.second-row .project-link:first-child:hover {
    width: 75%;
}

.second-row .project-link:first-child:hover ~ .project-link {
    width: calc((100% - 50% - 40px) / 3);
}

/* Effet hover sur les autres éléments */
.second-row .project-link:not(:first-child):hover {
    width: 100%;
}

.second-row .project-link:not(:first-child):hover ~ .project-link {
    width: calc((100% - 40% - 30% - 40px) / 2);
}

.second-row .project-link:first-child:not(:hover) {
    width: 40%;
}

.second-row .project-link:not(:first-child):not(:hover) {
    width: 20%;
}

/* Style de base pour les cartes */
.hover-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

/* Overlay et animations */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 121, 121, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.hover-card:hover .hover-overlay {
    opacity: 1;
    visibility: visible;
}

.hover-content {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 50px 80px 50px 50px;
}

/* Animation du texte et de l'icône */
.hover-left {
    color: white;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    transition-delay: 0.1s;
}

.hover-right {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease-in-out;
    transition-delay: 0.2s;
}

.hover-right img {
    width: 40px;
    height: 40px;
}

/* Animation au hover */
.hover-card:hover .hover-left {
    opacity: 1;
    transform: translateY(0);
}

.hover-card:hover .hover-right {
    opacity: 1;
    transform: translateX(0);
}

/* Style pour le texte Client */
.hover-left p {
    margin: 0;
    line-height: 1.4;
}

p.client-label {
    font-size: 22px;
    font-weight: bold;
    line-height: 22px;
}

p.client-name {
    font-size: 25px;
    font-weight: 500;
    line-height: 25px;
}
