/* =============================== */
/*   COMPOSANTS – BASE DES CARTES  */
/* =============================== */

/* Carte générique */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Image / conteneur visuel */
.card-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenu générique */
.card-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-info-item {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.card-info-item span {
    font-weight: bold;
    color: #2e7d32;
    text-transform: uppercase;
    margin-right: 6px;
}

/* Section masquable */
.card-expandable {
    display: none;
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.card.open .card-expandable {
    display: block;
}

/* Toggle/Bouton de déploiement */
.card-toggle {
    cursor: pointer;
    color: #2e7d32;
    font-size: 0.9rem;
    margin-top: 6px;
    display: inline-block;
    transition: color 0.3s ease;
}

.card-toggle:hover {
    color: #1b5e20;
}

/* Bouton d'action */
.card-action-button {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 12px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.card-action-button:hover {
    background-color: #1b5e20;
}
