﻿/* visits.css */

/* Définir une taille fixe pour chaque card */
.visit-card {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 16px auto;
    display: flex;
    flex-direction: column;
    width: 100%; /* Occupe toute la largeur du MudItem */
    height: 400px; /* Hauteur fixe à 400px */
}

/* Zone photo : occupe la partie supérieure de la card */
.card-photo {
    position: relative;
    width: 100%;
    height: 55%; /* Environ 55% de 400px = 220px */
    overflow: hidden;
    /* Effet d'angle incliné */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

    /* Pseudo-élément pour dégradé sur la zone photo */
    .card-photo::after {
        content: "";
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 20%;
        background: linear-gradient(to top, rgba(107, 60, 255, 0.7), transparent);
        pointer-events: none;
    }

/* Images de la zone photo */
.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Bouton "Sortir" repositionné pour chevaucher la zone photo (en bas à droite) */
.exit-btn {
    position: absolute;
    bottom: 190px; /* Positionné en bas */
    right: 10px;
    z-index: 100; /* Élevé pour être au-dessus */
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .exit-btn:hover {
        background: #ffffff;
    }

    .exit-btn i {
        color: var(--rassembl-primary);
        font-size: 28px;
    }

/* Zone d'information centrée */
.card-info {
    padding: 8px 12px;
    text-align: center;
    flex: 1;
}

    .card-info h3 {
        margin: 0;
        font-size: 1.1rem;
        color: #333;
    }

    .card-info p {
        margin: 2px 0;
        color: #555;
        font-size: 0.85rem;
    }

/* Pied de card : affiché en trois colonnes côte à côte */
.card-footer {
    background: #f5f5f5;
    padding: 6px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-label {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 2px;
}

.footer-value {
    font-size: 0.9rem;
    color: #333;
}

.footer-phone i {
    font-size: 1.4rem;
    color: var(--rassembl-primary);
}
