/*
Theme Name: Alliance
Template: oceanwp
Version: 1.0
*/
.liste-annuaire {
    /*display: flex;
    flex-wrap: wrap;
    justify-content: center;*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;

    /*border: 3px solid red;*/
}

.carte-annuaire {
    width: 100%;
    height:100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    /*cursor: pointer;*/
    transition: all 0.2s ease;
}

.lien-carte {
    display: block;
    text-decoration: none !important; 
}

.lien-carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.carte-photo {
    margin : 5% 5% 5% 5%;
    border-radius: 12px;
}

.carte-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte-contenu {
    text-align: center;
    flex: 1;
    /*padding: 15px;*/
    display: flex;
    flex-direction: column;
}

.carte-texte {
    flex: 1;
    text-align: center;
    white-space: pre-wrap;
    line-height: 1;
}

.carte-localisation {
    margin-top: auto;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.carte-localisation i {
    color: #d32f2f;
}
