/*  =============================================================================
	MARIAGES - LISTE (Layout 2 colonnes)
	============================================================================= */
.mariages-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.mariages-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* CARTE MARIAGE - Layout 2 colonnes horizontal */
.mariage-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: row;
    min-height: 250px;
}

.mariage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* #1 COLONNE GAUCHE : IMAGE/AFFICHE */
.mariage-card-image-col {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
}

.mariage-image {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #f0f0f0;
}

/* Fond flouté */
.mariage-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: 0.8;
}

/* Image principale non recadrée */
.mariage-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.mariage-no-photo {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mariage-no-photo .no-photo-icon {
    font-size: 60px;
    opacity: 0.4;
}

/* #2 COLONNE DROITE : DÉTAILS */
.mariage-card-details-col {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Badge de statut dans la colonne centrale */
.mariage-statut-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.mariage-statut-planifie {
    background: #3498db;
    color: white;
}

.mariage-statut-saillie {
    background: #f39c12;
    color: white;
}

.mariage-statut-gestante {
    background: #27ae60;
    color: white;
}

.mariage-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.mariage-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mariage-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
}

.mariage-detail-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mariage-detail-text {
    flex: 1;
}

/* Message vide */
.mariages-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
}

.mariages-empty p {
    margin: 0;
}

/* =============================================================================
   RESPONSIVE - MOBILE
   ============================================================================= */
@media (max-width: 768px) {
    .mariages-grid {
        gap: 20px;
    }
    
    /* Passage en vertical sur mobile */
    .mariage-card {
        flex-direction: column;
        min-height: auto;
    }
    
    /* Image en haut - pleine largeur */
    .mariage-card-image-col {
        flex: 0 0 200px;
        width: 100%;
    }
    
    /* Détails au centre */
    .mariage-card-details-col {
        padding: 20px;
    }
    
    .mariage-statut-badge {
        margin-bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .mariage-card-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Tablette - ajustement des largeurs */
@media (min-width: 769px) and (max-width: 1024px) {
    .mariage-card-image-col {
        flex: 0 0 250px;
    }
}