
#divers{
    text-align: center;
    min-height: 100vh;
    background: #535353;
    box-sizing: border-box;
    max-height: max-content;
    padding: 20px;  
}
#divers h1{
    font-size: 36px;
    color: #f5f5f5;
    margin-bottom: 30px;
}
.divers-cartes-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;  
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.carte-divers{
    background-color: rgb(255, 255, 255);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}
.carte-divers:hover{
    transform: translateY(-10px);
}
.carte-divers img{
    height: 200px;
    width: 100%;
    border-radius: 10px;
    object-fit:fill;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.carte-divers img:hover{
    transform: scale(1.01);
    transition: transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.carte-divers-content{
    flex: 1;
    display: flex;
    flex-direction: column;
}
.carte-divers-content h2{
    font-size: 22px;
    margin-bottom: 10px;
    color: red;
}
.carte-divers-content p{
    font-size: 16px;
    color: #131313;
    font-weight: bold;
    margin-bottom: 15px;
    flex-grow: 1;
}
.carte-divers-content a{
    background-color: #007BFF;
    text-decoration: none;
    color: #f5f5f5;
    font-weight: bold;
    margin-top: auto;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.carte-divers-content a:hover{
    background-color: #0056b3;
}
/* Style for the responsiv*/
@media (max-width: 768px) {
  
  #divers{ 
    padding: 10px 20px;
} 
#divers h1{
    font-size: 36px;
    color: #f5f5f5;
    margin-bottom: 10px;
}
 
}