/* ==========================================================================
   Végécantines — Page « Ressource » (Theme Builder > modèle « Ressource »)
   Sections : vc-ressource-hero / vc-ressource-main / vc-ressource-liees
   + fil d'Ariane (.vc-fil-ariane), réutilisable sur toutes les pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fil d'Ariane (Breadcrumb NavXT via [vc_fil_ariane])
   -------------------------------------------------------------------------- */
.vc-fil-ariane {
    font-size: 14px;
    line-height: 1.5;
    color: var(--vc-texte-doux);
}
.vc-fil-ariane a {
    color: var(--vc-vert);
    font-weight: 600;
    text-decoration: none;
}
.vc-fil-ariane a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.vc-fil-ariane .current-item {
    color: var(--vc-texte);
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.vc-ressource-hero.et_pb_section {
    padding: 32px 0 40px !important;
}
.vc-ressource-hero .et_pb_row,
.vc-ressource-main .et_pb_row,
.vc-ressource-liees .et_pb_row {
    width: 90%;
    max-width: var(--vc-container);
}
.vc-ressource-hero .et_pb_module {
    margin-bottom: 16px !important;
}
.vc-ressource-hero .et_pb_module:last-child {
    margin-bottom: 0 !important;
}
.vc-ressource-hero .et_pb_post_title,
.vc-ressource-hero .et_pb_title_container {
    padding: 0 !important;
    background: transparent !important;
}
.vc-ressource-hero .entry-title,
.vc-ressource-hero h1 {
    font-size: var(--vc-fs-h1);
    color: var(--vc-vert-fonce);
    max-width: 900px;
    padding-bottom: 0;
}
.vc-ressource__chapo {
    max-width: 820px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--vc-texte);
    padding: 0;
}

/* --------------------------------------------------------------------------
   Contenu
   -------------------------------------------------------------------------- */
.vc-ressource-main.et_pb_section {
    padding: 48px 0 64px !important;
}
.vc-ressource-main .et_pb_row {
    max-width: 860px;
}
.vc-ressource-main .et_pb_post_content {
    font-size: 17px;
    line-height: 1.7;
}
.vc-ressource-main .et_pb_post_content h2 { font-size: 28px; margin-top: 1.2em; }
.vc-ressource-main .et_pb_post_content h3 { font-size: 22px; margin-top: 1em; }

/* Vidéos intégrées responsives */
.vc-ressource-main .wp-block-embed iframe,
.vc-ressource-main .et_pb_post_content iframe[src*="youtube"],
.vc-ressource-main .et_pb_post_content iframe[src*="vimeo"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: var(--vc-radius);
}

/* --------------------------------------------------------------------------
   Ressources liées
   -------------------------------------------------------------------------- */
.vc-ressource-liees.et_pb_section {
    padding: 56px 0 72px !important;
}
.vc-ressource-liees .vc-section-title {
    margin-bottom: 28px;
}
/* Section masquée s'il n'y a aucune ressource liée */
.vc-ressource-liees:not(:has(.vc-card)) {
    display: none !important;
}
