/* ==========================================================================
   Carte « Circuit » (Loop Item) – .st-cv-card
   Structure : .st-cv-card > [.cv-image + .cv-eco-wrap + .cv-content]
   Éléments : titre, destination, pastilles voyage, prix/durée, picto éco
   ========================================================================== */

/* --- Carte ------------------------------------------------------------- */
.st-cv-card {
    position: relative;
    cursor:pointer
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    min-height: 420px;
    isolation: isolate;               /* Contexte d'empilement propre */
}

/* Neutralise le conteneur interne Elementor pour garder le positionnement */
.st-cv-card > .e-con-inner {
    position: static;
    height: 100%;
    padding: 0;
}

/* --- Image mise en avant (fond) --------------------------------------- */
.st-cv-card .cv-image,
.st-cv-card .cv-image .elementor-widget-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 0;
}
.st-cv-card .cv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.st-cv-card:hover .cv-image img {
    transform: scale(1.05);
}

/* --- Contenu texte (bas de carte) ------------------------------------- */
.st-cv-card .cv-content {
    z-index: 2;
    padding: 28px 32px;
    gap: 10px;
}


/* Les ancêtres intermédiaires ne doivent PAS être positionnés,
   sinon le lien étendu se limite à leur taille */
.st-cv-card .e-con-inner,
.st-cv-card .cv-content,
.st-cv-card .cv-titre,
.st-cv-card .cv-titre .elementor-widget-container {
    position: static;
}

/* Lien du titre étendu à toute la carte (le <a> reste sur le <h3> pour le SEO) */
.st-cv-card .cv-titre a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;   /* au-dessus de l'image, de l'overlay et du texte */
}




/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  /*  .st-cv-card .cv-titre,
    .st-cv-card .cv-titre a { font-size: 1.7rem; }*/
}
@media (max-width: 767px) {
    .st-cv-card { aspect-ratio: 4 / 5; min-height: 380px; border-radius: 22px; }
    .st-cv-card .cv-content { padding: 20px; gap: 8px; }
    .st-cv-card .cv-titre,
    .st-cv-card .cv-titre a { font-size: 1.5rem; }
    .st-cv-card .cv-eco { width: 46px; height: 46px; }
    .st-cv-card .cv-pastille { padding: 7px 14px; font-size: .72rem; }
}