/* DEBUT global -----------------------------------------------------*/
main {
    min-height: calc(100vh - 105px);
    padding-bottom: 0;
}
.container {
    grid-gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}
/* FIN global */


/*DEBUT cartes -----------------------------------------------------*/
.part-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 30%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    border-radius: 15px;
    background: #fff;
}
.part-card img {
    aspect-ratio: 16/7; 
    object-fit: contain;
    border-radius: 15px;
    min-height: 180px;
}
.part-card:hover .overlay {
    opacity: 1;
    pointer-events: auto;
}
.part-card p {
    position: absolute;
    background-color: #fff;
    height: 100%;
    padding: 12px 16px 12px 16px;
    box-sizing: border-box;
    line-height: 1.3;
    overflow: hidden;
    border-radius: 15px;
}
.part-card a{
    text-decoration: none;
    color: rgb(187, 65, 68);
    font-weight: bold;
}
.part-card::after {
    content: "";
    position: absolute;
    left: calc(100% + 5px); 
    top: 100%;
    transform: translateY(-100%);
    width: 12px;
    height: 80px;
    background:
        radial-gradient(circle at center, #bb4144 30%, transparent 30%) 0 0/12px 12px,
        radial-gradient(circle at center, #c85659 30%, transparent 30%) 0 16px/12px 12px,
        radial-gradient(circle at center, #d56b6e 30%, transparent 30%) 0 32px/12px 12px,
        radial-gradient(circle at center, #e28083 30%, transparent 30%) 0 48px/12px 12px,
        radial-gradient(circle at center, #f0d5d7 30%, transparent 30%) 0 64px/12px 12px;
    background-repeat: no-repeat;
    z-index: 1000;
    pointer-events: none;
}
.overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
}
/*FIN cartes*/


/* DEBUT responsive -----------------------------------------------------*/
/* iPad — portrait */
@media screen and (min-width: 1023px) and (max-width: 1367px) {
    .container {
        flex-direction: row;
        align-items: stretch;
        width: 85%;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 3%;
    }
    .part-card {
        width: 45%; 
        margin-bottom: 30px;
        min-height: 300px;
    }
    .part-card p {
        font-size: 1.3em;
        line-height: 1.4;
        padding: 12px 16px;
        overflow: hidden;
    }
    .part-card img {
        min-height: 300px;
    }
}
/* Telephone — portrait */
 @media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-height: 80vh; 
        margin-bottom: 10%;
    }
    .part-card {
        width: 80%;
        margin-bottom: 20px;
    }
} 
/* Telephone - paysage*/
 @media screen and (max-height: 666px) {
    .container {
        margin-bottom: 5%;
    } 
    .part-card {
        width: 43% !important;
        margin-bottom: 20px;
    }
} 
/* FIN responsive */
