/* Carte d'identité de la fiche (en-tête avant les avis) - refonte visuelle du 22/08/2026.
   Extrait de vuecommerce.aspx (style inline d'origine) pour être partagé avec voirAvis.aspx et
   ajouteavis.aspx (même présentation de la carte commerce/service/lieu, sans le bloc d'actions
   qui reste propre à chaque page). */
.fiche-identite {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20, 30, 20, 0.06), 0 10px 26px -14px rgba(20, 30, 20, 0.22);
}

/* Colonne photo : texte en surimpression sur un dégradé - inspiré de la maquette
   "Avant/Après Animac" partagée avant implémentation. */
.hero-photo-col {
    position: relative;
    min-height: 340px;
}

.fiche-photo {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 8, 0) 40%, rgba(10, 14, 8, 0.78) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
}

.hero-name {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.22;
    color: #fff;
    text-wrap: balance;
}

    .hero-name .badge {
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        padding: 4px 9px;
        border-radius: 999px;
        vertical-align: middle;
        margin-left: 4px;
    }

    .hero-name .badge.bg-primary {
        background-color: #0e7a5f !important;
    }

    .hero-name .badge.bg-warning {
        background-color: #dd5a2c !important;
        color: #fff !important;
    }

.hero-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #fff;
    margin-bottom: 4px;
}

    .hero-rating-row .rateit {
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    }

    .hero-rating-row .vues {
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.84rem;
    }

.hero-cat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

    .hero-cat-row .prix {
        font-weight: 800;
        color: #fff;
    }

/* Colonne infos : un seul conteneur flex empilé à droite de la photo (au lieu de plusieurs
   items grid indépendants) - permet d'ancrer .fiche-actions tout en bas via margin-top:auto,
   quel que soit le contenu présent au-dessus (horaires/synthèse IA optionnels). */
.hero-right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px 18px;
}

@media (max-width: 767px) {
    .fiche-identite {
        grid-template-columns: 1fr;
    }

    .hero-photo-col {
        min-height: 220px;
    }
}

.fiche-synthese {
    background: #eef1ea;
    border: 1px solid #dde3d6;
    border-radius: 12px;
    padding: 12px 14px;
}

    .fiche-synthese .badge {
        background: transparent !important;
        color: #0e7a5f !important;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        padding: 0;
        margin-bottom: 6px;
    }

    .fiche-synthese p {
        font-size: 0.88rem;
        line-height: 1.5;
        margin: 0;
    }

.fiche-infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
}

.fiche-horaires .badge.bg-success {
    background-color: #0e7a5f !important;
}

.fiche-actions {
    margin-top: auto;
    padding-top: 14px;
}

    .fiche-actions .btn-warning {
        background-color: #0e7a5f;
        border-color: #0e7a5f;
        color: #fff;
        font-weight: 700;
    }

    .fiche-actions .btn-warning:hover,
    .fiche-actions .btn-warning:focus {
        background-color: #0b6650;
        border-color: #0b6650;
        color: #fff;
    }

.fiche-actions .btn-outline-info {
    border-color: #dd5a2c;
    color: #dd5a2c;
    font-weight: 700;
}

    .fiche-actions .btn-outline-info:hover {
        background-color: #dd5a2c;
        border-color: #dd5a2c;
        color: #fff;
    }
