/* ============================= */
/* _mother.css - Styles des mères */
/* ============================= */

/* -----------------------------
   Grille générale des mères
------------------------------ */
.mothers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background-color: #f5f7fa;
}

/* -----------------------------
   Carte mère
------------------------------ */
.mother-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s ease, transform 0.6s ease;
    
    opacity: 0;         /* départ invisible */
    transform: translateY(30px); /* décalé vers le bas */
}

.mother-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover */
.mother-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* -----------------------------
   Photo mère (cercle)
------------------------------ */
.mother-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e63946;
    margin-bottom: 1rem;
}

.mother-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* -----------------------------
   Nom et infos
------------------------------ */
.mother-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 600;
}

.mother-meta {
    width: 100%;
}

.mother-info-line {
    font-size: 0.9rem;
    color: #555;
    margin: 0.3rem 0;
}

/* -----------------------------
   Actions
------------------------------ */
.mother-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-support {
    background-color: #e63946;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.btn-support:hover {
    background-color: #c71f30;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #e63946;
    color: #e63946;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #e63946;
    color: #fff;
}

/* -----------------------------
   Modal mère
------------------------------ */
.mother-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.mother-modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 520px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* Fermer modal */
.mother-modal-content .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mother-modal-content .close-modal:hover {
    color: #000;
}

/* Titres modal */
.modal-name {
    font-size: 1.4rem;
    color: #e63946;
    margin-bottom: 0.5rem;
}

.modal-activity {
    font-size: 1rem;
    color: #555;
}

/* Texte modal */
.modal-body p,
.modal-story {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: #333;
}

/* Footer modal */
.mother-modal-content .modal-footer .btn-support {
    display: inline-block;
    margin-top: 1rem;
}

/* -----------------------------
   Responsive
------------------------------ */
@media (max-width: 600px) {
    .mother-modal-content {
        padding: 1rem;
    }

    .mother-photo {
        width: 100px;
        height: 100px;
    }
}
