/* Veternity – Charte 2026 : modifications graphiques de veternityfrance.fr */

/*
 * Logo de l'en-tête : nouveau logo « ligne » (baseline à droite), au moins 200 px de large selon le book de normes.
 * Le thème fixe la taille du cadre du logo (90 × 60 px en ordinateur, 17 × 40 px en mobile) : on l'agrandit,
 * centré dans la hauteur de l'en-tête (70 px en ordinateur, 60 px en mobile).
 */
/* « body » en tête : les règles du thème (style-custom.css) se chargent après cette feuille. */
body .header-style-8 .wtbx_header_logo,
body .header_sticky.header_sticky_active .wtbx_header_logo {
    width: 360px;
    height: 46px;
    margin-top: 12px;
}

/* Menu : centré dans l'espace libre entre le logo et la loupe (le thème le centre sur toute la largeur), un peu plus grand. */
.header-style-8 .wtbx_hs_header .wtbx_ha_header_main {
    left: 400px;
    right: 60px;
    transform: none;
    display: flex;
    justify-content: center;
}

.header-style-8 .wtbx_menu_nav > ul > li {
    margin-right: 2em;
}

.header-style-8 .wtbx_menu_nav > ul > li:last-child {
    margin-right: 0;
}

.header-style-8 .wtbx_menu_nav > ul > li > a {
    font-size: 15px;
}

/* Écrans moyens (en-tête ordinateur encore affiché) : logo et menu plus compacts pour ne pas se chevaucher. */
@media (max-width: 1199px) {
    body .header-style-8 .wtbx_header_logo,
    body .header_sticky.header_sticky_active .wtbx_header_logo {
        width: 240px;
        height: 30px;
        margin-top: 20px;
    }

    .header-style-8 .wtbx_hs_header .wtbx_ha_header_main {
        left: 270px;
        right: 40px;
    }

    .header-style-8 .wtbx_menu_nav > ul > li {
        margin-right: 1.2em;
    }

    .header-style-8 .wtbx_menu_nav > ul > li > a {
        font-size: 13px;
    }
}

body .header-mobile-top .wtbx_header_logo {
    width: 250px;
    height: 32px;
    margin-top: 14px;
}

/* Titres en Abhaya Libre (police des titres du book de normes), en gras : en poids normal, les grands titres
   en majuscules paraissaient trop maigres à côté de l'ancienne police. */
body h1,
body h2,
body h3,
body .wtbx_vc_styled_heading .wtbx_heading_el_title {
    font-weight: 700;
}

/* Grands titres en majuscules : lignes plus serrées (sans lettres descendantes, l'interligne paraissait trop grand). */
body h1,
body .h1 {
    line-height: 1.1;
}

/* Mots mis en couleur dans les textes (dorés à l'origine) : le violet foncé se distinguait mal du noir.
   Violet plus clair de la charte et gras. */
body .wtbx_text_element_content span[style*="#5d1451"] {
    color: #9b4385 !important;
    font-weight: 700;
}

/* Sections « titre + accroche + texte » (Éthique, Respect, Passion sur l'accueil) : hiérarchie plus marquée.
   Titre dans un bandeau violet en lettres blanches, accroche en semi-gras espacée, premier paragraphe en chapô. */
body.home .wtbx_vc_styled_heading:has(+ .wtbx_vc_text_element) .wtbx_heading_el_title {
    display: inline-block;
    padding: 9px 22px 7px;
    border-radius: 12px;
    background-color: #5d1451;
    color: #ffffff;
    letter-spacing: 0.06em;
}

body.home .wtbx_vc_styled_heading + .wtbx_vc_text_element {
    margin-top: 18px;
}

/* Réglage d'origine des blocs : titre à 40 % de sa taille sous 980 px (10 px en mobile, illisible). */
@media (max-width: 979px) {
    body.home .wtbx_vc_styled_heading:has(+ .wtbx_vc_text_element) .wtbx_heading_el_title {
        font-size: 24px;
    }
}

body.home .wtbx_vc_styled_heading + .wtbx_vc_text_element p {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
}

body.home .wtbx_vc_styled_heading + .wtbx_vc_text_element ~ .wtbx_vc_text_element p {
    line-height: 1.75;
}

body.home .wtbx_vc_styled_heading + .wtbx_vc_text_element ~ .wtbx_vc_text_element p:first-child {
    font-size: 17px;
    font-weight: 500;
}


/* Sous-menus de l'en-tête : juste sous les intitulés (le thème les ouvrait sous toute la hauteur de l'en-tête),
   aux couleurs de la charte. */
body #header-wrapper .wtbx_menu_nav .menu > li > .sub-menu {
    margin-top: -12px;
    left: -20px;
    min-width: 210px;
    border-top: 3px solid #5d1451;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 30px -8px rgba(30, 31, 31, 0.18);
}

body #header-wrapper .wtbx_menu_nav .menu > li > .sub-menu .sub-menu {
    padding: 8px 0;
}

body #header-wrapper .wtbx_menu_nav .sub-menu-link {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1e1f1f;
}

body #header-wrapper .wtbx_menu_nav .sub-menu-link:hover {
    background-color: #f4f2f2;
    color: #5d1451;
}

/* En-têtes de page : la lueur dorée de l'image de fond (FOND-HEADER-…) est remplacée par une lueur rose clair
   (accent clair de la charte). Le « !important » l'emporte sur l'image posée par le chargement différé du thème,
   qui change les attributs de l'élément avant (data-path) et après chargement (data-bgset, style). */
.wtbx_row_bg_image[data-path*="FOND-HEADER"],
.wtbx_row_bg_image[data-bgset*="FOND-HEADER"],
.wtbx_row_bg_image[style*="FOND-HEADER"] {
    background-image:
        radial-gradient(ellipse 45% 85% at 0% 55%, rgba(155, 67, 133, 0.20), rgba(155, 67, 133, 0) 70%),
        radial-gradient(ellipse 35% 70% at 100% 15%, rgba(155, 67, 133, 0.08), rgba(155, 67, 133, 0) 70%),
        linear-gradient(#ffffff, #ffffff) !important;
}

/* Rangée vide en bas des pages (bande grise sans contenu juste avant le pied de page) : masquée. */
.entry-content > .wtbx_vc_row:last-child:not(:has(img, a, p, h1, h2, h3, h4, h5, iframe, video, form)) {
    display: none;
}

/* ---- Menu mobile ---- */

/* Bouton hamburger : traits violets arrondis, celui du milieu plus court et calé à droite.
   (Sélecteurs repris du thème, qui cible ces éléments par identifiant.) */
#header-wrapper-mobile .wtbx_mobile_trigger .wtbx_header_trigger_inner .line {
    background-color: #5d1451;
    border-radius: 2px;
}

#header-wrapper-mobile .wtbx_mobile_trigger .wtbx_header_trigger_inner .line.second {
    width: 16px;
    transform: translate3d(-25%, -1px, 0);
}

/* Voile sur la page quand le menu est ouvert : violet foncé translucide. */
body .wtbx_mobile_backdrop {
    background-color: rgba(70, 21, 62, 0.55);
}

/* Panneau : logo en haut, bouton de fermeture violet. */
.header-mobile-side .mobile-nav-wrapper {
    background: url("../img/logo-veternity-ligne.svg") no-repeat 24px 39px / 180px auto;
}

.header-mobile-side .wtbx_mobile_close {
    background-color: #5d1451;
}

/* Liens de premier niveau : plus grands, plus aérés, séparés par un filet. */
.header-mobile-side .wtbx_menu_nav .menu > li {
    border-bottom: 1px solid #ece9eb;
}

.header-mobile-side .wtbx_menu_nav .main-menu-link {
    padding: 14px 56px 14px 24px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1e1f1f;
}

.header-mobile-side .wtbx_menu_nav .main-menu-link:hover,
.header-mobile-side .wtbx_menu_nav .menu > li.expanded > .main-menu-link {
    color: #5d1451;
}

/* Ouverture des sous-menus : une flèche à la place des « ⋮ », qui pivote quand le sous-menu est ouvert. */
#mobile-header .wtbx_hs_main .wtbx_menu_nav .menu li .menu-link span::before {
    width: 8px;
    height: 8px;
    background: none;
    border-right: 2px solid #5d1451;
    border-bottom: 2px solid #5d1451;
    border-radius: 0;
    transform: translate3d(-50%, -75%, 0) rotate(45deg);
    transition: transform 0.25s ease;
}

#mobile-header .wtbx_hs_main .wtbx_menu_nav .menu li .menu-link span::after {
    display: none;
}

#mobile-header .wtbx_hs_main .wtbx_menu_nav .menu li.has-submenu.expanded > .menu-link > span::before {
    width: 8px;
    height: 8px;
    border-radius: 0;
    transform: translate3d(-50%, -25%, 0) rotate(-135deg);
}

/* Sous-menus : fond crème, liens en casse normale, survol violet. */
.header-mobile-side .wtbx_menu_nav .sub-menu {
    background-color: #f4f2f2;
}

.header-mobile-side .wtbx_menu_nav .sub-menu-link {
    padding: 11px 24px 11px 40px;
    font-size: 15px;
    font-weight: 500;
    color: #1e1f1f;
}

.header-mobile-side .wtbx_menu_nav .sub-menu-link:hover {
    color: #5d1451;
}

/* Pied de page en violet foncé (accent foncé de la charte), logo en blanc. */
#bloc-footer-veternity .wtbx_row_bg {
    background-color: #46153e;
}

/* Sélecteur de langue « FR » retiré de l'en-tête (ordinateur et mobile) : WPML n'a qu'une langue. */
.header_language_wrapper {
    display: none !important;
}

/* Page de résultats de recherche : un mot recherché très long ne déborde plus de l'écran en mobile. */
.search .wtbx-page-title h1 {
    overflow-wrap: anywhere;
}

/* Titre des pages sans bandeau (recherche…) : en mobile, il passait en partie sous l'en-tête (60 px). */
.mobile-header-active .wtbx-page-title {
    padding-top: 70px;
}

/*
 * Page « Nos services » en mobile : quand les colonnes s'empilent, la photo de fond des blocs de marques
 * passe sous le texte et le rend illisible. La photo passe en bandeau au-dessus du texte (hauteur = proportions
 * de chaque photo), le texte se lit sur un fond uni ; le bloc Horsia (texte et logo blancs) sur violet foncé.
 */
@media (max-width: 767px) {
    .page-id-61 .wtbx_vc_row:has(img[src*="Logo-Esthima"]) .wtbx_row_wrapper {
        padding-top: 65.46vw;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="Logo-Esthima"]) .wtbx_row_bg {
        bottom: auto;
        height: 65.46vw;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx_row_wrapper {
        padding-top: 66.67vw;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx_row_bg {
        bottom: auto;
        height: 66.67vw;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="cyclavet-by-veternity"]) .wtbx_row_wrapper {
        padding-top: 63.4vw;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="cyclavet-by-veternity"]) .wtbx_row_bg {
        bottom: auto;
        height: 63.4vw;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) {
        background-color: #46153e;
    }
}

/* Chiffres clés (cartes « card-veternity ») : valeurs moins grandes, nombres en gras
   (balises <strong> ajoutées par l'extension sur la page Chiffres clés). */
body .card-veternity .wtbx_vc_text_element.wtbx_disable_margin .wtbx_text_element_content {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
}

body .card-veternity .wtbx_vc_text_element.wtbx_disable_margin strong {
    font-weight: 800;
}

@media (max-width: 1199px) {
    body .card-veternity .wtbx_vc_text_element.wtbx_disable_margin .wtbx_text_element_content {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    body .card-veternity .wtbx_vc_text_element.wtbx_disable_margin .wtbx_text_element_content {
        font-size: 24px;
    }
}

/*
 * Page « Nos services » : blocs Esthima / Crematis, Horsia et Cyclavet. Les textes étaient posés sur les photos et se
 * lisaient mal. En ordinateur et tablette : photo sur la moitié gauche, texte à droite sur fond uni (violet foncé pour
 * Horsia, dont le logo est blanc). En mobile : photo en bandeau au-dessus du texte (règles plus haut).
 */
@media (min-width: 768px) {
    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) {
        background-color: #ffffff;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) {
        background-color: #46153e;
    }

    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_row_bg {
        right: auto;
        width: 50%;
        overflow: hidden;
    }

    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx-bg-image {
        left: 0 !important;
        width: 100% !important;
        background-size: cover !important;
        background-position: 25% center !important;
    }

    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_vc_column + .wtbx_vc_column .wtbx_vc_column_container {
        padding: 90px 8% 90px 9%;
    }

    /* Cadrage des photos : visages à gauche de l'image d'origine. */
    .page-id-61 .wtbx_vc_row:has(img[src*="Logo-Esthima"]) .wtbx-bg-image {
        background-position: 0% center !important;
    }

    .page-id-61 .wtbx_vc_row:has(img[src*="cyclavet-by-veternity"]) .wtbx-bg-image {
        background-position: 0% center !important;
    }
}

/* Couleurs des textes fixées par bloc (le texte de Cyclavet était blanc, prévu pour la photo, donc invisible sur fond
   blanc) ; sous-titres (« Esthima : N°1 des pompes funèbres animalières »…) en violet, gras, même taille partout. */
body.page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_text_element_content,
body.page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_text_element_content * {
    color: #1e1f1f !important;
}

body.page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx_text_element_content,
body.page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx_text_element_content * {
    color: #ffffff !important;
}

body.page-id-61 .wtbx_vc_row .wtbx_text_element_content h4 {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body.page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_text_element_content h4 {
    color: #5d1451 !important;
}

body.page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx_text_element_content h4 {
    color: #f0d9ea !important;
}

@media (max-width: 767px) {
    body.page-id-61 .wtbx_vc_row .wtbx_text_element_content h4 {
        font-size: 20px !important;
    }
}

/* Logos des marques (Esthima, Crematis, « horsia by veternity », « cyclavet by veternity ») : réduits, même largeur. */
body.page-id-61 img:is([src*="Logo-Esthima"], [src*="logo-crematis"], [src*="horsia-by-veternity"], [src*="cyclavet-by-veternity"]) {
    width: 250px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    body.page-id-61 img:is([src*="Logo-Esthima"], [src*="logo-crematis"], [src*="horsia-by-veternity"], [src*="cyclavet-by-veternity"]) {
        width: 210px;
    }
}

/* Bloc Cyclavet aux couleurs de la palette n°2 du book (univers pro, Cyclavet) : bleu foncé #005176. */
body.page-id-61 .wtbx_vc_row:has(img[src*="cyclavet-by-veternity"]) .wtbx_text_element_content h4 {
    color: #005176 !important;
}

body.page-id-61 .wtbx_vc_row:has(img[src*="cyclavet-by-veternity"]) .wtbx-button {
    background-color: #005176 !important;
    border-color: #005176 !important;
}

/* Titres de section (« Services funéraires pour animaux de compagnie »…) : bandeau pleine largeur, texte blanc ;
   violet clair avant Esthima / Crematis, violet avant Horsia, bleu foncé de la palette n°2 avant Cyclavet. Les espaces vides de ces rangées sont retirés. */
body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)) .wtbx_row_bg,
body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)) .wtbx_row_bg * {
    background-color: #5d1451 !important;
}

body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)):has(+ .wtbx_vc_row img[src*="Logo-Esthima"]) .wtbx_row_bg,
body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)):has(+ .wtbx_vc_row img[src*="Logo-Esthima"]) .wtbx_row_bg * {
    background-color: #9b4385 !important;
}

body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)):has(+ .wtbx_vc_row img[src*="cyclavet-by-veternity"]) .wtbx_row_bg,
body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)):has(+ .wtbx_vc_row img[src*="cyclavet-by-veternity"]) .wtbx_row_bg * {
    background-color: #005176 !important;
}

body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)) .wtbx_vc_empty_space {
    display: none;
}

body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)) .veternity-text {
    padding: 30px 0;
}

body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)) .veternity-text h2 {
    margin: 0;
    color: #ffffff !important;
}

/* Texte d'introduction remonté sous le titre de la page (assets/js/nos-services.js) : encadré blanc arrondi. */
body.page-id-61 .vf-intro-encadre {
    max-width: 540px;
    margin-top: 28px;
    padding: 22px 28px;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 14px 40px -18px rgba(70, 21, 62, 0.3);
}

body.page-id-61 .vf-intro-encadre p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
    color: #1e1f1f !important;
}

@media (max-width: 767px) {
    body.page-id-61 .wtbx_vc_row:has(.veternity-text h2):not(:has(img)) .veternity-text {
        padding: 22px 0;
    }

    body.page-id-61 .vf-intro-encadre {
        margin: 20px auto 0;
        padding: 18px 20px;
    }
}

/* Bloc Horsia (fond violet foncé) : bouton blanc, le bouton violet ne ressortait pas. */
body.page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx-button {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

body.page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx-button .wtbx_button_inner {
    color: #46153e !important;
}

body.page-id-61 .wtbx_vc_row:has(img[src*="horsia-by-veternity"]) .wtbx-button svg * {
    fill: #46153e !important;
}

/* Accueil, bandeau violet « 3 valeurs nous animent au quotidien » : intitulé dans un cartouche violet clair
   (accent clair de la charte), texte blanc, « 3 » plus gros et en gras (balise ajoutée par l'extension).
   Le cartouche est ajusté au texte (le thème force une largeur de 100 %) et espacé des cartes. */
body .bloc-value-veternity .veternity-text .wtbx_text_element_content {
    text-align: center;
}

body .bloc-value-veternity .veternity-text .wtbx_text_element_inner {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 24px 0 36px;
    padding: 10px 34px 12px;
    border-radius: 14px;
    background-color: #9b4385;
}

body .bloc-value-veternity .veternity-text .wtbx_text_element_inner p {
    margin: 0;
    line-height: 1.3;
    color: #ffffff !important;
}

.vf-valeurs-chiffre {
    margin-right: 6px;
    font-size: 1.7em;
    font-weight: 800;
    line-height: 1;
    vertical-align: -0.08em;
}

/* Cartes Éthique / Respect / Passion : cliquables (assets/js/valeurs.js). */
.vf-carte-valeur {
    cursor: pointer;
}

.vf-carte-valeur .wtbx_vc_content_box {
    transition: transform 0.25s ease;
}

.vf-carte-valeur:hover .wtbx_vc_content_box,
.vf-carte-valeur:focus-visible .wtbx_vc_content_box {
    transform: translateY(-4px);
}

.vf-carte-valeur:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    body .bloc-value-veternity .veternity-text .wtbx_text_element_inner {
        margin: 16px 0 24px;
        padding: 8px 16px 10px;
    }

    body .bloc-value-veternity .veternity-text .wtbx_text_element_inner p {
        font-size: 19px !important;
    }
}

/* Symbole du nouveau logo (étreinte) à gauche des titres d'en-tête (à la place du demi-cercle de l'ancien logo, qui
   était au-dessus) : symbole et titre côte à côte, le symbole aligné sur la première ligne du titre ; les autres
   éléments de la colonne (texte d'introduction…) restent en dessous, sur toute la largeur (en mobile : symbole centré
   au-dessus du titre). Symbole affiché assez grand
   (64 px) : ses traits sont très fins et le book interdit de déformer le logo (pas d'épaississement). */
body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) {
    display: flex !important; /* le thème impose display: block avec un sélecteur plus fort */
    flex-wrap: wrap;
    align-items: flex-start;
}

body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) > * {
    flex: 0 0 100%;
}

body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) > .circle-header-veternity {
    flex: 0 0 auto;
    margin: 8px 20px 0 0;
}

body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) > .circle-header-veternity + .wtbx_vc_styled_heading {
    flex: 1 1 0;
    min-width: 0;
}

body .circle-header-veternity img {
    width: 64px;
    height: auto;
}

@media (max-width: 1199px) {
    body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) > .circle-header-veternity {
        margin: 7px 16px 0 0;
    }

    body .circle-header-veternity img {
        width: 56px;
    }
}

@media (max-width: 767px) {
    body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) {
        justify-content: center;
    }

    /* Mobile : titres souvent longs, le symbole reste centré au-dessus (même rendu sur toutes les pages). */
    body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) > .circle-header-veternity {
        margin: 0 0 10px;
    }

    body .wtbx_column_content:has(> .circle-header-veternity + .wtbx_vc_styled_heading) > .circle-header-veternity + .wtbx_vc_styled_heading {
        flex: 0 0 100%;
    }

    body .circle-header-veternity img {
        width: 48px;
    }
}

/* Surtitres courts en majuscules (« Prendre soin de la planète »…, classe ajoutée par l'extension) : cartouche arrondi
   violet clair, texte blanc. Sauf dans les cartes (valeurs de l'accueil, chiffres clés), déjà encadrées. */
body .vf-surtitre:not(.card-value *, .card-veternity *) .wtbx_text_element_inner {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 7px 16px 6px;
    border-radius: 10px;
    background-color: #9b4385;
}

body .vf-surtitre:not(.card-value *, .card-veternity *) .wtbx_text_element_content:has(p[style*="center"]) {
    text-align: center;
}

body .vf-surtitre:not(.card-value *, .card-veternity *) .wtbx_text_element_inner p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    color: #ffffff !important;
}

/* Grands numéros « 01 », « 02 »… (classe ajoutée par l'extension) : beige presque invisible sur fond blanc → violet clair. */
body .wtbx_text_element_content p.vf-numero {
    color: rgba(155, 67, 133, 0.45) !important;
}

/*
 * Témoignages (page Recrutement, slider de Scape) : carte rose pâle arrondie, pastille violette avec un grand guillemet
 * (les guillemets saisis dans le texte sont retirés par l'extension), citation en Abhaya Libre, auteur en dessous ;
 * flèches rondes violettes (en mobile, sous la carte).
 */
.veternity-testimonial-slider {
    padding-top: 40px;
}

.veternity-testimonial-slider .wtbx_vc_testimonial_slide_inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 80px 44px;
    border-radius: 28px;
    background: linear-gradient(140deg, #f7edf4 0%, #f4f2f2 100%);
    text-align: center;
}

.veternity-testimonial-slider .wtbx_vc_testimonial_slide_inner::before {
    content: "“";
    position: absolute;
    top: -36px;
    left: 50%;
    width: 72px;
    height: 72px;
    margin-left: -36px;
    border-radius: 50%;
    background-color: #5d1451;
    box-shadow: 0 12px 24px -10px rgba(70, 21, 62, 0.6);
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 100px;
    color: #ffffff;
}

.veternity-testimonial-slider .wtbx_testimonial_content p,
.veternity-testimonial-slider .wtbx_testimonial_content span {
    margin: 0;
    font-family: "Abhaya Libre", Georgia, serif !important;
    font-size: 23px !important;
    font-style: normal;
    line-height: 1.6 !important;
    color: #5d1451 !important;
}

.veternity-testimonial-slider .wtbx_testimonial_credentials {
    margin-top: 26px;
    padding-top: 22px;
    background: linear-gradient(#9b4385, #9b4385) top center / 44px 2px no-repeat;
}

/* !important : le thème enfant (veternity-app.css) impose la police du nom avec !important. */
body .veternity-testimonial-slider .wtbx_testimonial_details .wtbx_testimonial_author_name {
    font: 700 16px/1.4 Inter, Arial, Helvetica, sans-serif !important;
    color: #1e1f1f;
}

body .veternity-testimonial-slider .wtbx_testimonial_details .wtbx_testimonial_author_occupation {
    margin-top: 4px;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9b4385;
}

/* Flèches : ronds blancs, flèche violette (le dessin du thème est remplacé par un caractère), centrées au-dessus de la
   carte pour ne pas bouger selon la longueur du témoignage (le thème les place au milieu de la hauteur du slider). */
body .wtbx_vc_testimonial_slider .wtbx_testimonial_slider_wrapper {
    display: flex;
    flex-direction: column;
}

body .wtbx_vc_testimonial_slider .wtbx_content_slider_nav {
    order: -1;
    position: relative;
    top: auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    width: auto;
    height: auto;
    margin-bottom: 8px;
}

body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 10px 24px -10px rgba(70, 21, 62, 0.45);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow::after {
    display: none;
}

body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow::before {
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 22px;
    line-height: 1;
    color: #5d1451;
}

body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow_prev::before {
    content: "←";
}

body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow_next::before {
    content: "→";
}

body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow:hover {
    background-color: #5d1451;
}

/* Au survol, le thème redessine son trait de flèche (fond noir) : neutralisé. */
body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow:hover::before {
    width: auto !important;
    height: auto !important;
    background: none !important;
    transform: none !important;
    color: #ffffff;
}

body .wtbx_vc_testimonial_slider .wtbx_arrows .wtbx_arrow:hover::after {
    display: none !important;
}

@media (max-width: 767px) {
    .veternity-testimonial-slider .wtbx_vc_testimonial_slide_inner {
        padding: 56px 24px 34px;
        border-radius: 22px;
    }

    .veternity-testimonial-slider .wtbx_testimonial_content p,
    .veternity-testimonial-slider .wtbx_testimonial_content span {
        font-size: 19px !important;
    }
}

/* Espace presse (page 118) : onglet unique sans boutons (assets/js/espace-presse.js), colonnes vides retirées,
   documents centrés en cartes : couverture cliquable avec ombre, bouton de téléchargement. */
body.page-id-118 .vf-onglet-unique .wtbx_tabs_nav,
body.page-id-118 .vf-onglet-unique .wtbx_tab_nav_mobile {
    display: none !important;
}

body.page-id-118 .media-center-veternity .wtbx_inner_row_content_inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

body.page-id-118 .media-center-veternity .wtbx_inner_row_content_inner::before,
body.page-id-118 .media-center-veternity .wtbx_inner_row_content_inner::after {
    display: none;
}

body.page-id-118 .media-center-veternity .wtbx_vc_inner_column:not(:has(img, a)) {
    display: none;
}

body.page-id-118 .media-center-veternity .wtbx_vc_inner_column {
    float: none;
    width: 300px;
    max-width: 100%;
}

.vf-document-presse {
    text-align: center;
}

.vf-document-presse .wpb_single_image {
    margin-bottom: 24px;
}

.vf-document-presse__couverture {
    display: inline-block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 24px 50px -22px rgba(70, 21, 62, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vf-document-presse__couverture:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -22px rgba(70, 21, 62, 0.6);
}

.vf-document-presse__couverture img {
    display: block;
}

body .vf-document-presse .vf-document-presse__lien {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background-color: #5d1451;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
}

body .vf-document-presse .vf-document-presse__lien::after {
    content: "PDF ↓";
    padding: 2px 8px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    letter-spacing: 0.05em;
}

body .vf-document-presse .vf-document-presse__lien:hover {
    background-color: #9b4385;
}

/* Accueil : espace vidéo (templates/video-accueil.php), image d'aperçu arrondie et bouton lecture violet en bas à gauche.
   Le film est au format cinéma (1920×760 utiles dans une image 1920×1080) : le cadre prend ce format et la vidéo le
   remplit (object-fit: cover), ce qui masque les bandes noires ; en plein écran, le film est montré en entier. */
.vf-video-accueil {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 96px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f2f2 100%);
    text-align: center;
}

.vf-video-accueil__inner {
    max-width: 1170px; /* largeur du contenu du site : du logo à la loupe de l'en-tête */
    margin: 0 auto;
}

body .vf-video-accueil__titre {
    margin: 0 0 40px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    color: #5d1451;
}

.vf-video {
    position: relative;
    aspect-ratio: 1920 / 760;
    overflow: hidden;
    border-radius: 24px;
    background-color: #46153e;
    box-shadow: 0 30px 70px -30px rgba(70, 21, 62, 0.55);
}

.vf-video video,
.vf-video__lancer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vf-video video {
    object-fit: cover;
    background-color: #000000;
}

.vf-video video:fullscreen {
    object-fit: contain;
}

.vf-video__lancer {
    padding: 0;
    background: none;
    cursor: pointer;
}

.vf-video__lancer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vf-video__lancer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(70, 21, 62, 0) 35%, rgba(70, 21, 62, 0.7) 100%);
}

.vf-video__lecture {
    position: absolute;
    z-index: 1;
    left: 32px;
    bottom: 28px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #5d1451;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.vf-video__lecture::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -7px;
    border-width: 12px 0 12px 20px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.vf-video__libelle {
    position: absolute;
    z-index: 1;
    left: 128px;
    bottom: 41px;
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.vf-video__libelle span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.85;
}

.vf-video__lancer:hover img {
    transform: scale(1.03);
}

.vf-video__lancer:hover .vf-video__lecture {
    transform: scale(1.08);
    background-color: #9b4385;
}

@media (max-width: 767px) {
    .vf-video-accueil {
        padding: 64px 16px;
    }

    body .vf-video-accueil__titre {
        margin-bottom: 28px;
        font-size: 30px;
    }

    .vf-video {
        border-radius: 16px;
    }

    .vf-video__lecture {
        left: 14px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.25);
    }

    .vf-video__lecture::before {
        margin: -8px 0 0 -4px;
        border-width: 8px 0 8px 13px;
    }

    .vf-video__libelle {
        left: 70px;
        bottom: 14px;
        font-size: 15px;
    }

    .vf-video__libelle span {
        margin-top: 2px;
        font-size: 12px;
    }
}

/* Accueil, cartes Éthique / Respect / Passion en mobile : lignes compactes (pictogramme à gauche, libellé, flèche vers
   la section) au lieu de trois grandes cartes empilées. */
@media (max-width: 767px) {
    body .bloc-value-veternity .card-value .wtbx_column_content {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    body .bloc-value-veternity .card-value :is(.wtbx_vc_content_box_container, .wtbx_vc_content_box_inner, .wtbx_content_box_container, .wtbx_content_box_wrapper, .wtbx_content_box_content) {
        height: auto !important;
        min-height: 0 !important;
    }

    body .bloc-value-veternity .card-value .wtbx_inner_row_content_inner {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 20px;
    }

    body .bloc-value-veternity .card-value .wtbx_inner_row_content_inner::before {
        display: none;
    }

    body .bloc-value-veternity .card-value .wtbx_inner_row_content_inner::after {
        content: "↓";
        display: block;
        height: auto;
        position: relative;
        top: 5px;
        margin-left: auto;
        visibility: visible;
        font-size: 18px;
        line-height: 1;
        color: #9b4385;
    }

    body .bloc-value-veternity .card-value .wtbx_vc_inner_column {
        float: none;
        flex: 0 0 auto;
        width: auto;
    }

    body .bloc-value-veternity .card-value .wtbx_inner_column_content {
        padding: 0 !important;
    }

    body .bloc-value-veternity .card-value .wpb_single_image {
        margin: 0;
    }

    body .bloc-value-veternity .card-value img {
        width: 36px !important;
        max-width: none;
        height: 36px !important;
        object-fit: contain;
    }

    body .bloc-value-veternity .card-value .wtbx_text_element_content,
    body .bloc-value-veternity .card-value .wtbx_text_element_content * {
        margin: 0;
        font-size: 16px !important;
        letter-spacing: 0.04em;
        line-height: 1.3 !important;
        text-align: left !important;
    }
}

/* Accueil en mobile : le thème décale les cartes de 55 px vers le bas (chevauchement de la section suivante, prévu pour
   l'ordinateur) ; en mobile, intitulé et cartes restent dans le bandeau violet. */
@media (max-width: 767px) {
    body .bloc-value-veternity .wtbx_row_content_wrapper {
        margin-top: 0 !important;
    }

    body .bloc-value-veternity .wtbx_row_content .wtbx_vc_column {
        top: 0 !important;
    }

    body .bloc-value-veternity .wtbx_row_content {
        padding: 12px 0 26px;
    }
}

/* Nos services en mobile : logo des marques rapproché de la photo (colonne vide de l'ordinateur et espace vide de 70 px
   au-dessus du logo retirés, espace entre le logo et le texte réduit). */
@media (max-width: 767px) {
    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_vc_column:not(:has(img, p)) {
        display: none;
    }

    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_column_content > .wtbx_vc_empty_space:first-child {
        display: none;
    }

    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_column_content > .wtbx_vc_empty_space:not(:first-child) {
        height: 18px !important;
        overflow: hidden;
    }

    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_vc_column:has(img, p) .wtbx_column_content {
        padding-top: 28px !important;
    }

    /* Hauteur fixe de 800 px réglée dans le thème pour l'ordinateur : laissait un grand vide sous le texte. */
    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) :is(.wtbx_row_content, .wtbx_row_content_wrapper, .wtbx_row_content_inner) {
        height: auto !important;
        min-height: 0 !important;
    }

    .page-id-61 .wtbx_vc_row:is(:has(img[src*="Logo-Esthima"]), :has(img[src*="horsia-by-veternity"]), :has(img[src*="cyclavet-by-veternity"])) .wtbx_row_content {
        padding-bottom: 36px;
    }
}

/* Bandeau cookies OneTrust : le contenu et le fonctionnement se règlent dans OneTrust, l'apparence est surchargée ici
   (OneTrust injecte ses propres styles, d'où les !important). Couleurs et boutons de la charte à la place du doré et
   du beige ; nouveau logo dans le panneau « Personnaliser ». */
#onetrust-consent-sdk #onetrust-banner-sdk {
    background-color: #f4f2f2 !important;
    border-top: 3px solid #5d1451 !important;
}

#onetrust-consent-sdk #onetrust-banner-sdk #onetrust-policy-title {
    font-family: "Abhaya Libre", Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #5d1451 !important;
}

#onetrust-consent-sdk #onetrust-banner-sdk #onetrust-policy-text {
    color: #1e1f1f !important;
}

#onetrust-consent-sdk #onetrust-banner-sdk #onetrust-policy-text a,
#onetrust-consent-sdk #onetrust-pc-sdk a {
    color: #5d1451 !important;
    border-color: #5d1451 !important;
}

#onetrust-consent-sdk #onetrust-accept-btn-handler,
#onetrust-consent-sdk #onetrust-pc-sdk #accept-recommended-btn-handler,
#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-refuse-all-handler,
#onetrust-consent-sdk #onetrust-pc-sdk .save-preference-btn-handler {
    background-color: #5d1451 !important;
    border-color: #5d1451 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
}

#onetrust-consent-sdk #onetrust-accept-btn-handler:hover,
#onetrust-consent-sdk #onetrust-pc-sdk #accept-recommended-btn-handler:hover,
#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-refuse-all-handler:hover,
#onetrust-consent-sdk #onetrust-pc-sdk .save-preference-btn-handler:hover {
    background-color: #46153e !important;
    border-color: #46153e !important;
    opacity: 1 !important;
}

#onetrust-consent-sdk #onetrust-banner-sdk #onetrust-pc-btn-handler {
    background-color: transparent !important;
    border: 1px solid #5d1451 !important;
    border-radius: 6px !important;
    color: #5d1451 !important;
}

#onetrust-consent-sdk #onetrust-banner-sdk #onetrust-pc-btn-handler:hover {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

#onetrust-consent-sdk #onetrust-banner-sdk #onetrust-reject-all-handler {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #1e1f1f !important;
}

#onetrust-consent-sdk #onetrust-pc-sdk .ot-tgl input:checked + .ot-switch .ot-switch-nob {
    background-color: #5d1451 !important;
}

#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-logo {
    width: 220px !important;
    height: 40px !important;
    background: url("../img/logo-veternity-ligne.svg") left center / contain no-repeat !important;
}

#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-logo img {
    opacity: 0 !important;
}

#onetrust-consent-sdk #onetrust-pc-sdk,
#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-footer {
    background-color: #f4f2f2 !important;
}

#onetrust-consent-sdk #onetrust-pc-sdk .ot-always-active {
    color: #5d1451 !important;
}
