/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
*/

:root {
    --remanences-red: #9e0b0f;
    --remanences-red-dark: #7f0a0d;
    --remanences-text: #343333;
    --remanences-text-soft: #5f5b5b;
    --remanences-bg: #f3f3f1;
    --remanences-border: #d7d2cf;
    --remanences-dark: #2f2b2b;
    --remanences-white: #ffffff;
    --remanences-container: 1280px;
    --remanences-container-narrow: 1080px;
    --remanences-transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--remanences-text);
    background: var(--remanences-bg);
    overflow-x: hidden;
}

body p,
body li,
body a,
body input,
body textarea,
body select,
body button {
    font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Crimson Text", serif;
    color: var(--remanences-text);
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-heading,
.elementor-widget-heading .elementor-heading-title {
    overflow-wrap: anywhere;
}

/* ===== HEADER ===== */
#tahefobu-header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

#tahefobu-header > .elementor {
    max-width: min(100% - 48px, 1440px);
    margin: 0 auto;
}

#tahefobu-header .elementor-element-36160a4 {
    min-height: 104px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#tahefobu-header .elementor-element-f685ac4,
#tahefobu-header .elementor-element-9d2d1d2,
#tahefobu-header .elementor-element-5bbfc3d {
    justify-content: center;
    align-items: center;
}

#tahefobu-header .tahefobu-site-logo img {
    width: auto;
    max-width: 270px;
    max-height: 62px;
    object-fit: contain;
}

#tahefobu-header .tahefobu-nav-menu {
    align-items: center;
}

#tahefobu-header .tahefobu-nav-menu > li {
    margin: 0 0 0 28px;
    position: relative;
}

#tahefobu-header .tahefobu-nav-menu > li:first-child {
    margin-left: 0;
}

#tahefobu-header .tahefobu-nav-menu > li + li::before {
    content: "|";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(52, 51, 51, 0.4);
    font-size: 13px;
    font-weight: 400;
}

#tahefobu-header .tahefobu-menu-item,
#tahefobu-header .tahefobu-mobile-menu-item {
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--remanences-red) !important;
    font-weight: 600;
    transition: var(--remanences-transition);
}

#tahefobu-header .tahefobu-menu-item:hover,
#tahefobu-header .tahefobu-sub-menu-item:hover,
#tahefobu-header .tahefobu-mobile-menu-item:hover {
    font-weight: 700 !important;
    color: var(--remanences-red-dark) !important;
}

#tahefobu-header .tahefobu-nav-menu .current-menu-item > a,
#tahefobu-header .tahefobu-nav-menu .current-menu-parent > a,
#tahefobu-header .tahefobu-nav-menu .current_page_item > a {
    font-weight: 700 !important;
    position: relative;
}

#tahefobu-header .tahefobu-nav-menu .current-menu-item > a::after,
#tahefobu-header .tahefobu-nav-menu .current-menu-parent > a::after,
#tahefobu-header .tahefobu-nav-menu .current_page_item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--remanences-red);
}

#tahefobu-header .sub-menu.tahefobu-sub-menu {
    min-width: 300px;
    padding: 16px 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    background: #fff;
}

#tahefobu-header .tahefobu-sub-menu-item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--remanences-text) !important;
}

#tahefobu-header .elementor-element-1ede6c6 img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    object-fit: contain;
    opacity: 0.95;
    transition: var(--remanences-transition);
}

#tahefobu-header .elementor-element-1ede6c6 a:hover img {
    transform: scale(1.06);
}

body.admin-bar #tahefobu-header {
    top: 32px;
}

/* ===== FOOTER ===== */
.footer-row {
    border-top: 1px solid var(--remanences-border);
    padding: 64px 0 56px;
}

.footer-row > .e-con-inner {
    width: min(100% - 48px, 1320px);
    max-width: 1320px;
    gap: 32px;
    align-items: stretch;
}

.footer-col {
    border-right: 1px solid var(--remanences-border);
    padding-right: 32px;
    min-height: 100%;
}

.footer-col:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-col .elementor-widget-image {
    margin-bottom: 22px;
}

.footer-col .elementor-widget-image img {
    width: auto;
    max-width: 260px;
    max-height: 68px;
    object-fit: contain;
}

.footer-col,
.footer-col p,
.footer-col a {
    color: var(--remanences-text);
    font-size: 16px;
    line-height: 1.65;
}

.footer-col strong,
.footer-col strong a {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.footer-col a {
    text-decoration: none;
    transition: var(--remanences-transition);
}

.footer-col a:hover,
.footer-col a:focus {
    color: var(--remanences-red);
    text-decoration: underline;
}

.footer-bas,
.footer-bas a {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bas {
    width: min(100% - 32px, 1320px);
    margin: 0 auto;
    text-align: center;
    padding: 18px 0;
}

.footer-bas a:hover,
.footer-bas a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.elementor-button-text{
    font-family: 'Montserrat', sans-serif !important;
}

.actu-title span{
    font-family: "Crimson Text", serif !important;
}

/* ===== HERO ===== */
.contact-hero-kicker {
    margin-bottom: 5px;
}

.contact-hero-kicker > h1,
.contact-hero-kicker .elementor-heading-title {
    font-family: "Crimson Text", serif !important;
    font-size: clamp(28px, 2vw, 42px);
    font-weight: 700 !important;
    line-height: 1.1;
    letter-spacing: 0;
    color: #ffffff !important;
}

/* ===== BLOCS TYPO / CONTENU GENERIQUE ===== */
.elementor-widget-heading .elementor-heading-title {
    line-height: 1.18;
}


.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4 {
    margin-bottom: 16px;
}

/* blocs image + texte */
.e-con .elementor-widget-image img {
    border-radius: 22px;
}

.e-con-full.e-flex.e-con.e-child > .elementor-widget-image + .e-con-full,
.e-con-full.e-flex.e-con.e-child > .elementor-widget-image + .e-con {
    justify-content: center;
}


/* ===== SVG Accueil ===== */
.icon {
    width: 72px;
    height: 72px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 auto 22px;
}

.icon-ingenierie {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/icons/1.svg');
}

.icon-financier {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/icons/2.svg');
}

.icon-immo {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/icons/Investissements-immobiliers-sequoia-wm-red.svg');
}

.icon-transmission {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/icons/Transmission-sequoia-wm-red.svg');
}

.icon-retraite {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/icons/5.svg');
}

.icon-family {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/icons/Picto-sequoia.svg');
}

/* ===== CARDS EXPERTISES ===== */
.expertise-ingenierie,
.expertise-financier,
.expertise-immo,
.expertise-transmission,
.expertise-preparation,
.expertise-family,
.expertise-card {
    cursor: pointer;
    transition: var(--remanences-transition);
    border-radius: 18px;
}

.expertise-ingenierie:hover,
.expertise-financier:hover,
.expertise-immo:hover,
.expertise-transmission:hover,
.expertise-preparation:hover,
.expertise-family:hover,
.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(158, 11, 15, 0.13);
}


/* ===== SLIDER ACTUS ===== */

/* wrapper global slider + flèches externes */
.actu-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.actu-slider-wrapper .mySwiperActu {
    flex: 1;
    min-width: 0;
}

/* card */
.actu-card {
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    font-family: "Montserrat", sans-serif;
}

/* image */
.actu-card img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* contenu */
.actu-content {
    padding: 20px;
}

/* date */
.actu-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

/* titre */
.actu-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #9E0B0F !important;
}

.actu-card h3 a {
    color: inherit;
    text-decoration: none;
}

/* texte */
.actu-card p {
    font-size: 14px;
    color: #343333 !important;
    margin-bottom: 15px;
}

/* bouton */
.actu-btn {
    color: #343333;
    text-decoration: underline !important;
}

/* hover card */
.actu-card:hover {
    transform: translateY(-5px);
}

/* =========================
   FLECHES SLIDER ACTUS - FIX
   ========================= */

.actu-slider-wrapper {
    position: relative;
}

/* flèches */
.actu-nav {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 5;

    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 50%;
    background: #343333;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Desktop : flèches à l'extérieur */
.actu-prev {
    left: calc(-6vw);
}

.actu-next {
    right: calc(-6vw);
}

/* hover */
.actu-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: #2f2f2f;
}

/* chevrons */
.actu-prev::before,
.actu-next::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.actu-prev::before {
    transform: rotate(-135deg);
}

.actu-next::before {
    transform: rotate(45deg);
}

/* état désactivé */
.actu-nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* =========================
   TABLETTE
   ========================= */

@media (max-width: 1024px) {

    .actu-nav {
        width: 38px;
        height: 38px;
    }

    .actu-prev {
        left: -28px;
    }

    .actu-next {
        right: -28px;
    }
}

/* =========================
   MOBILE → PAS DE FLECHES
   ========================= */

@media (max-width: 767px) {

    .actu-nav {
        display: none !important;
    }
}

.actu-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* chevrons */
.actu-prev::before,
.actu-next::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.actu-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.actu-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* états swiper */
.actu-nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

/* sécurité overflow */
.mySwiperActu {
    overflow: hidden;
}

/* =========================
   TABLETTE
========================= */
@media (max-width: 1024px) {
    .actu-slider-wrapper {
        gap: 16px;
    }

    .actu-nav {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .actu-content {
        padding: 18px;
    }

    .actu-card h3 {
        font-size: 17px;
    }

    .actu-card p {
        font-size: 14px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {
    .actu-title {
        width: 100%;
        padding: 0 !important;
    }

    .actu-title > a {
        display: flex;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        padding: 12px 20px;
    }

    .actu-nav {
        display: none;
    }
    
    .actu-slider-wrapper{
        padding-right: 40px;
        padding-left: 40px;
    }
}



/* ===== CONTACT ===== */
.ff-btn-submit {
    min-height: 58px !important;
    padding: 16px 34px !important;
    border: 1px solid var(--remanences-text) !important;
    border-radius: 0 !important;
    color: var(--remanences-text) !important;
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: var(--remanences-transition);
}

.ff-btn-submit:hover {
    background: var(--remanences-text) !important;
    color: #fff !important;
}

/* ===== PAGE LISTE ACTUALITÉS ===== */
.news-page-inner {
    width: min(100% - 56px, 1280px);
    margin: 0 auto;
}

.news-intro {
    max-width: 940px;
    margin: 0 auto 78px;
    text-align: center;
}

.news-intro-title {
    font-family: "Crimson Text", serif;
    font-size: 54px;
    line-height: 1.05;
    font-weight: 700;
    color: var(--remanences-red);
    margin-bottom: 20px;
}

.news-intro-subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--remanences-text);
    margin-bottom: 10px;
}

.news-intro-text {
    max-width: 820px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: var(--remanences-text-soft);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 42px;
    row-gap: 56px;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card-image-link {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-card-image-link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-image-link img {
    transform: scale(1.03);
}

.news-card-content {
    font-family: "Montserrat", sans-serif;
}

.news-card-date {
    font-size: 14px;
    line-height: 1.4;
    color: var(--remanences-text);
    margin-bottom: 4px;
}

.news-card-title {
    margin: 0 0 4px;
    font-size: 28px;
    line-height: 1.14;
    font-weight: 700;
    font-family: "Crimson Text", serif;
}

.news-card-title a {
    color: var(--remanences-red);
    text-decoration: none;
}

.news-card-title a:hover {
    text-decoration: none;
}

.news-card-excerpt {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--remanences-text);
}

.news-card-link {
    display: inline-block;
    font-size: 18px;
    line-height: 1.4;
    color: var(--remanences-text);
    text-decoration: underline !important;
}

.news-card-link:hover {
    color: var(--remanences-text);
    text-decoration: underline;
}

.news-loadmore-wrap {
    text-align: center;
    margin-top: 80px;
}

.news-loadmore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    padding: 14px 28px;
    border: 1px solid var(--remanences-text) !important;
    background: transparent;
    color: var(--remanences-text) !important;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: var(--remanences-transition);
    border-radius: 0 !important;
}

.news-loadmore-btn:hover {
    background: var(--remanences-text) !important;
    border-color: var(--remanences-text) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.news-loadmore-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== PAGE DÉTAIL ACTUALITÉ ===== */
.single-news-page {
    background: var(--remanences-bg);
}

.single-news-top {
    padding: 108px 0 48px;
    background: var(--remanences-bg);
}

.single-news-top-inner {
    width: min(100% - 56px, 1180px);
    margin: 0 auto;
}

.single-news-kicker {
    font-family: "Crimson Text", serif;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--remanences-red);
    margin: 0 0 10px;
}

.single-news-meta {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--remanences-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.single-news-title {
    max-width: 900px;
    margin: 0 0 34px;
    font-family: "Crimson Text", serif;
    font-size: clamp(48px, 5vw, 82px);
    line-height: 0.95;
    font-weight: 700;
    color: #111111;
}

.single-news-featured-image {
    border-radius: 28px;
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto;
}

.single-news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.single-news-content-section {
    padding: 36px 0 100px;
    background-color: #fff;
}

.single-news-content-inner {
    width: min(100% - 56px, 860px);
    margin: 0 auto;
}

.single-news-content {
    font-family: "Montserrat", sans-serif;
    color: var(--remanences-text);
    font-size: 18px;
    line-height: 1.85;
}

.single-news-content > *:first-child {
    margin-top: 0;
}

.single-news-content p {
    margin: 0 0 1.4em;
}

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
    font-family: "Crimson Text", serif;
    color: var(--remanences-red);
    line-height: 1.15;
    margin: 1.5em 0 0.5em;
}

.single-news-content h2 { font-size: 42px; }
.single-news-content h3 { font-size: 34px; }
.single-news-content h4 { font-size: 28px; }

.single-news-content ul,
.single-news-content ol {
    margin: 0 0 1.4em 1.2em;
    padding: 0;
}

.single-news-content li {
    margin-bottom: 0.5em;
}

.single-news-content a {
    color: var(--remanences-red);
    text-decoration: underline;
}

.single-news-content strong {
    font-weight: 700;
}

.single-news-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    margin: 36px 0;
}

.single-news-back {
    text-align: center;
}

.single-news-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border: 1px solid var(--remanences-text);
    padding: 16px 28px;
    color: var(--remanences-text);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: var(--remanences-transition);
}

.single-news-back-link:hover {
    background: var(--remanences-text);
    color: #fff;
    text-decoration: none;
}

.single-news-related {
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--remanences-border);
}

.single-news-related-title {
    margin: 0 0 32px;
    font-family: "Crimson Text", serif;
    font-size: 42px;
    line-height: 1.1;
    color: var(--remanences-red);
}

.single-news-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.single-news-related .news-card-image-link {
    margin-bottom: 14px;
}

.single-news-related .news-card-title {
    font-size: 26px;
}

.single-news-related .news-card-excerpt {
    font-size: 16px;
}

.single-news-related + .single-news-back {
    margin-top: 56px;
}

/* ===== VOS PROJETS ===== */

/* ===== BOUTONS SOLUTIONS - VERSION PLUS FIDELE MAQUETTE ===== */

.invest-fin-btn,
.invest-immo-btn,
.invest-trans-btn,
.invest-retraite-btn,
.invest-patrimoine-btn,
.invest-family-btn {
    width: 100%;
}

/* vrai bouton */
.invest-fin-btn .elementor-button,
.invest-immo-btn .elementor-button,
.invest-trans-btn .elementor-button,
.invest-retraite-btn .elementor-button,
.invest-patrimoine-btn .elementor-button,
.invest-family-btn .elementor-button {
    position: relative;
    display: grid;
    grid-template-columns: 15px 1fr;
    align-items: center;
    width: 245px;
    min-height: 60px;
    padding: 0 15px;
    border: 1px solid rgba(52, 51, 51, 0.55);
    background: transparent !important;
    border-radius: 0;
    box-sizing: border-box;
    text-decoration: none;
    column-gap: 18px;
}

.invest-trans-btn .elementor-button{
    margin: 0 auto;
}

/* wrapper interne */
.invest-fin-btn .elementor-button-content-wrapper,
.invest-immo-btn .elementor-button-content-wrapper,
.invest-trans-btn .elementor-button-content-wrapper,
.invest-retraite-btn .elementor-button-content-wrapper,
.invest-patrimoine-btn .elementor-button-content-wrapper,
.invest-family-btn .elementor-button-content-wrapper {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

/* texte */
.invest-fin-btn .elementor-button-text,
.invest-immo-btn .elementor-button-text,
.invest-trans-btn .elementor-button-text,
.invest-retraite-btn .elementor-button-text,
.invest-patrimoine-btn .elementor-button-text,
.invest-family-btn .elementor-button-text {
    display: block;
    width: 100%;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--remanences-text);
    white-space: normal;
}

/* icône */
.invest-fin-btn .elementor-button::before,
.invest-immo-btn .elementor-button::before,
.invest-trans-btn .elementor-button::before,
.invest-retraite-btn .elementor-button::before,
.invest-patrimoine-btn .elementor-button::before,
.invest-family-btn .elementor-button::before {
    content: "";
    grid-column: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.invest-fin-btn .elementor-button::before {
    background-image: url(/wp-content/themes/hello-elementor-child/assets/icons/2.svg);
}

.invest-immo-btn .elementor-button::before {
    background-image: url(/wp-content/themes/hello-elementor-child/assets/icons/Investissements-immobiliers-sequoia-wm-red.svg);
}

.invest-trans-btn .elementor-button::before {
    background-image: url(/wp-content/themes/hello-elementor-child/assets/icons/Transmission-sequoia-wm-red.svg);
}

.invest-retraite-btn .elementor-button::before {
    background-image: url(/wp-content/themes/hello-elementor-child/assets/icons/5.svg);
}

.invest-patrimoine-btn .elementor-button::before {
    background-image: url(/wp-content/themes/hello-elementor-child/assets/icons/1.svg);
}

.invest-family-btn .elementor-button::before {
    background-image: url(/wp-content/themes/hello-elementor-child/assets/icons/Picto-sequoia.svg);
}

/* hover */
.invest-fin-btn .elementor-button:hover,
.invest-immo-btn .elementor-button:hover,
.invest-trans-btn .elementor-button:hover,
.invest-retraite-btn .elementor-button:hover,
.invest-patrimoine-btn .elementor-button:hover,
.invest-family-btn .elementor-button:hover {
    background: var(--remanences-text) !important;
}

.invest-fin-btn .elementor-button:hover .elementor-button-text,
.invest-immo-btn .elementor-button:hover .elementor-button-text,
.invest-trans-btn .elementor-button:hover .elementor-button-text,
.invest-retraite-btn .elementor-button:hover .elementor-button-text,
.invest-patrimoine-btn .elementor-button:hover .elementor-button-text,
.invest-family-btn .elementor-button:hover .elementor-button-text {
    color: #ffffff;
}

/* tablette */
@media (max-width: 1024px) {
    .invest-fin-btn .elementor-button,
    .invest-immo-btn .elementor-button,
    .invest-trans-btn .elementor-button,
    .invest-retraite-btn .elementor-button,
    .invest-patrimoine-btn .elementor-button,
    .invest-family-btn .elementor-button {
        grid-template-columns: 58px 1fr;
        min-height: 86px;
        padding: 0 20px;
        column-gap: 14px;
    }

    .invest-fin-btn .elementor-button::before,
    .invest-immo-btn .elementor-button::before,
    .invest-trans-btn .elementor-button::before,
    .invest-retraite-btn .elementor-button::before,
    .invest-patrimoine-btn .elementor-button::before,
    .invest-family-btn .elementor-button::before {
        left: 20px;
        width: 28px;
        height: 28px;
    }

    .invest-fin-btn .elementor-button-text,
    .invest-immo-btn .elementor-button-text,
    .invest-trans-btn .elementor-button-text,
    .invest-retraite-btn .elementor-button-text,
    .invest-patrimoine-btn .elementor-button-text,
    .invest-family-btn .elementor-button-text {
        font-size: 16px;
    }
}

/* mobile */
@media (max-width: 767px) {
    .invest-fin-btn .elementor-button,
    .invest-immo-btn .elementor-button,
    .invest-trans-btn .elementor-button,
    .invest-retraite-btn .elementor-button,
    .invest-patrimoine-btn .elementor-button,
    .invest-family-btn .elementor-button {
        grid-template-columns: 46px 1fr;
        min-height: 72px;
        padding: 0 16px;
        column-gap: 10px;
    }

    .invest-fin-btn .elementor-button::before,
    .invest-immo-btn .elementor-button::before,
    .invest-trans-btn .elementor-button::before,
    .invest-retraite-btn .elementor-button::before,
    .invest-patrimoine-btn .elementor-button::before,
    .invest-family-btn .elementor-button::before {
        left: 16px;
        width: 22px;
        height: 22px;
    }

    .invest-fin-btn .elementor-button-text,
    .invest-immo-btn .elementor-button-text,
    .invest-trans-btn .elementor-button-text,
    .invest-retraite-btn .elementor-button-text,
    .invest-patrimoine-btn .elementor-button-text,
    .invest-family-btn .elementor-button-text {
        font-size: 14px;
        line-height: 1.12;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    #tahefobu-header .tahefobu-nav-menu > li {
        margin-left: 22px;
    }

    #tahefobu-header .tahefobu-nav-menu > li + li::before {
        left: -13px;
    }

    .news-card-title,
    .single-news-related .news-card-title {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    body.admin-bar #tahefobu-header {
        top: 46px;
    }

    #tahefobu-header > .elementor {
        max-width: min(100% - 32px, 100%);
    }

    #tahefobu-header .elementor-element-36160a4 {
        min-height: 88px;
        gap: 12px;
    }

    #tahefobu-header .tahefobu-site-logo img {
        max-width: 220px;
        max-height: 54px;
    }

    #tahefobu-header .tahefobu-mobile-nav-menu-container {
        width: 100%;
    }

    #tahefobu-header .tahefobu-mobile-toggle-wrap {
        display: flex;
        justify-content: flex-end;
    }

    /* Hamburger : barres rouges */
    #tahefobu-header .tahefobu-hamburger span,
    #tahefobu-header .tahefobu-hamburger::before,
    #tahefobu-header .tahefobu-hamburger::after,
    #tahefobu-header .tahefobu-mobile-toggle span {
        background-color: var(--remanences-red) !important;
    }

    /* Flèche sous-menu mobile */
    #tahefobu-header .tahefobu-mobile-nav-menu .menu-item-has-children > a::after {
        border-color: var(--remanences-red) !important;
    }

    #tahefobu-header .tahefobu-mobile-nav-menu {
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
    }

    #tahefobu-header .tahefobu-mobile-nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    #tahefobu-header .tahefobu-mobile-menu-item,
    #tahefobu-header .tahefobu-mobile-sub-menu-item {
        display: block;
        padding: 14px 20px;
        color: var(--remanences-text) !important;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 13px;
    }

    .footer-row {
        padding: 52px 0 42px;
    }

    .footer-row > .e-con-inner {
        width: min(100% - 32px, 1320px);
        gap: 24px;
    }

    .footer-col,
    .footer-col:last-child {
        border-right: none;
        padding-right: 0;
    }

    .actu-slider-wrapper {
        gap: 16px;
    }

    .actu-nav {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .actu-card h3 {
        font-size: 20px;
    }

    .news-page-section {
        padding: 60px 0 80px;
    }

    .news-page-inner,
    .single-news-top-inner,
    .single-news-content-inner {
        width: min(100% - 32px, 1280px);
    }

    .news-intro {
        margin-bottom: 56px;
    }

    .news-intro-title {
        font-size: 42px;
    }

    .news-intro-subtitle {
        font-size: 24px;
    }

    .news-grid,
    .single-news-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 40px;
    }

    .single-news-top {
        padding: 96px 0 32px;
    }

    .single-news-featured-image {
        border-radius: 24px;
    }

    .single-news-content-section {
        padding: 48px 0 80px;
    }

    .single-news-content {
        font-size: 17px;
        line-height: 1.8;
    }

    .single-news-content h2 { font-size: 34px; }
    .single-news-content h3 { font-size: 28px; }
    .single-news-related-title { font-size: 36px; }
}

@media (max-width: 767px) {
    #tahefobu-header {
        top: 0 !important;
    }

    #tahefobu-header > .elementor {
        max-width: calc(100% - 24px);
    }

    #tahefobu-header .elementor-element-36160a4 {
        min-height: 76px;
    }

    #tahefobu-header .tahefobu-site-logo img {
        max-width: 180px;
        max-height: 46px;
    }

    .footer-row {
        padding: 42px 0 34px;
    }

    .footer-row > .e-con-inner {
        width: min(100% - 24px, 1320px);
        gap: 20px;
    }

    .footer-col,
    .footer-col p,
    .footer-col a {
        font-size: 15px;
        line-height: 1.55;
    }

    .footer-col strong,
    .footer-col strong a {
        font-size: 16px;
    }

    .footer-bas {
        width: min(100% - 24px, 1320px);
        font-size: 13px;
    }

    .actu-title {
        width: 100%;
        padding: 0 !important;
    }

    .actu-title > a {
        display: flex;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        padding: 14px 20px;
        font-size: 26px;
    }

    .actu-nav {
        display: none;
    }

    .actu-slider-wrapper {
        padding-right: 0;
        padding-left: 0;
    }

    .contact-hero-kicker > h1,
    .contact-hero-kicker .elementor-heading-title {
        font-size: 24px;
    }

    .news-page-section {
        padding: 48px 0 64px;
    }

    .news-page-inner,
    .single-news-top-inner,
    .single-news-content-inner {
        width: min(100% - 24px, 1280px);
    }

    .news-intro {
        margin-bottom: 40px;
    }

    .news-intro-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .news-intro-subtitle {
        font-size: 20px;
        line-height: 1.5;
    }

    .news-intro-text {
        font-size: 16px;
        line-height: 1.65;
    }

    .news-grid,
    .single-news-related-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .news-card-title,
    .single-news-related .news-card-title {
        font-size: 22px;
    }

    .news-card-date,
    .news-card-excerpt,
    .news-card-link {
        font-size: 15px;
    }

    .news-loadmore-wrap {
        margin-top: 48px;
    }

    .news-loadmore-btn {
        width: 100%;
        min-width: 0;
    }

    .single-news-top {
        padding: 84px 0 24px;
    }

    .single-news-kicker {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .single-news-meta {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .single-news-title {
        line-height: 1.02;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .single-news-featured-image {
        border-radius: 18px;
    }

    .single-news-featured-image img {
        aspect-ratio: 16 / 10;
    }

    .single-news-content-section {
        padding: 20px 0 64px;
    }

    .single-news-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .single-news-content h2 { font-size: 28px; }
    .single-news-content h3 { font-size: 24px; }
    .single-news-content h4 { font-size: 21px; }

    .single-news-content img {
        margin: 28px 0;
        border-radius: 14px;
    }

    .single-news-related {
        margin-top: 44px;
        padding-top: 24px;
    }

    .single-news-related-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .single-news-related + .single-news-back {
        margin-top: 40px;
    }

    .single-news-back {
        margin-top: 36px;
        padding-top: 24px;
    }
}


/* ==========================================
   SLIDER TEMOIGNAGE CUSTOM - VERSION FINALE 2
   ========================================== */

.rwm-temoignage-section {
    background: linear-gradient(
        to bottom,
        #fff 0,
        #fff 94px,
        #A09B99 94px,
        #A09B99 100%
    );
    padding: 34px 20px 90px;
    overflow: hidden;
}

.rwm-temoignage-wrap {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.rwm-temoignage-wrap .swiper {
    overflow: hidden;
}

.rwm-temoignage-wrap .swiper-slide {
    height: auto;
}

.rwm-temoignage-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 340px;
}

/* Bandeau blanc */
.rwm-temoignage-head {
    background: #fff;
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 44px 16px;
    border-bottom: none;
    box-sizing: border-box;
}

.rwm-temoignage-title {
    margin: 0;
    font-family: "Crimson Text", serif;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 600;
    color: #2f2b2b;
    text-align: center;
    text-transform: uppercase;
    max-width: 100%;
    text-align: right;
    padding-right: 105px;
}

/* Corps gris */
.rwm-temoignage-body {
    border-top: none;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 210px 1fr;
    column-gap: 36px;
    align-items: center;
    padding: 26px 40px 28px;
    height: auto;
}

/* Colonne gauche */
.rwm-temoignage-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rwm-temoignage-name {
    margin: 0 0 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
}

.rwm-temoignage-role {
    margin: 0 0 22px;
    max-width: 155px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: #ffffff;
}

.rwm-temoignage-icon-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rwm-temoignage-icon {
    width: 80px;
    object-fit: contain;
    display: block;
    flex: 0 0 30px;
}

.rwm-temoignage-icon-text {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    color: #ffffff;
}

/* Colonne droite */
.rwm-temoignage-right {
    display: flex;
    align-items: center;
}

.rwm-temoignage-content {
    max-width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.48;
    font-style: italic;
    font-weight: 300;
    color: #f5f1f1;
    overflow: hidden;
}

.rwm-temoignage-content p {
    margin: 0 0 0.9em;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-style: inherit;
    font-weight: inherit;
}

.rwm-temoignage-content p:last-child {
    margin-bottom: 0;
}

/* Pagination */
.rwm-temoignage-pagination {
    position: static !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    min-height: 16px;
}

.rwm-temoignage-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: all 0.2s ease;
}

.rwm-temoignage-pagination .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.02);
}

/* Tablette */
@media (max-width: 1024px) {
    .rwm-temoignage-wrap {
        max-width: 760px;
    }

    .rwm-temoignage-section {
        padding: 26px 20px 80px;
        background: linear-gradient(
            to bottom,
            #fff 0,
            #fff 90px,
            #A09B99 90px,
            #A09B99 100%
        );
    }

    .rwm-temoignage-head {
        min-height: 90px;
        padding: 18px 32px 16px;
    }

    .rwm-temoignage-title {
        font-size: 25px;
    }

    .rwm-temoignage-body {
        grid-template-columns: 190px 1fr;
        column-gap: 28px;
        padding: 24px 30px 26px;
    }

    .rwm-temoignage-name {
        font-size: 20px;
    }

    .rwm-temoignage-content {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .rwm-temoignage-section {
        padding: 22px 16px 54px;
        background: linear-gradient(
            to bottom,
            #f3f3f1 0,
            #f3f3f1 82px,
            #A09B99 82px,
            #A09B99 100%
        );
    }

    .rwm-temoignage-wrap {
        max-width: 100%;
    }

    .rwm-temoignage-card {
        height: auto !important;
    }

    .rwm-temoignage-head {
        min-height: 82px;
        padding: 16px 18px 14px;
        border-width: 3px;
    }

    .rwm-temoignage-section {
    background: linear-gradient(to bottom, #fff 0, #fff 97px, #A09B99 75px, #A09B99 100%) !important;
}

    .rwm-temoignage-title {
        font-size: 21px;
        line-height: 1.12;
    }

    .rwm-temoignage-body {
        border-width: 3px;
        grid-template-columns: 1fr !important;
        row-gap: 22px;
        padding: 24px 20px 24px;
        height: auto !important;
    } 

    .rwm-temoignage-left,
    .rwm-temoignage-right {
        display: block;
    }

    .rwm-temoignage-name {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .rwm-temoignage-role {
        max-width: 100%;
        font-size: 13px;
        margin-bottom: 18px;
    }

    .rwm-temoignage-content {
        text-align: center;
        font-size: 15px;
        line-height: 1.5;
    }

    .rwm-temoignage-icon-text {
        font-size: 12px;
    }

    .rwm-temoignage-pagination {
        margin-top: 16px;
    }
}

/* ==========================================
   SLIDER TEMOIGNAGE - FINITIONS FINALES
   ========================================== */

.rwm-temoignage-section {
    padding: 18px 20px 80px;
}

.rwm-temoignage-wrap {
    max-width: 820px;
}

.rwm-temoignage-card {
    height: 360px;
}

.rwm-temoignage-section {
    background: linear-gradient(
        to bottom,
        #fff 0,
        #fff 90px,
        #A09B99 72px,
        #A09B99 100%
    );
}

.rwm-temoignage-head {
    min-height: 72px;
    padding: 14px 36px 12px;
}

.rwm-temoignage-title {
    font-size: 28px;
    line-height: 1.05;
}

.rwm-temoignage-body {
    height: calc(360px - 72px);
    grid-template-columns: 220px 1fr;
    column-gap: 42px;
    padding: 24px 42px 24px;
    align-items: center;
}

.rwm-temoignage-left {
    transform: translateY(-6px);
}

.rwm-temoignage-name {
    font-size: 24px;
    margin-bottom: 8px;
}

.rwm-temoignage-role {
    font-size: 14px;
    max-width: 170px;
    margin-bottom: 20px;
}

.rwm-temoignage-icon-text {
    font-size: 12px;
}

.rwm-temoignage-right {
    align-items: flex-start;
}

.rwm-temoignage-content {
    font-size: 17px;
    line-height: 1.58;
    max-width: 500px;
}

.rwm-temoignage-pagination {
    margin-top: 12px;
}

/* ==========================================
   PATCH SLIDER ACTUALITÉS
   ========================================== */

/* wrapper général */
.actu-slider-wrapper {
    position: relative;
    align-items: stretch;
    gap: 28px;
}

/* zone slider */
.actu-slider-wrapper .mySwiperActu {
    overflow: hidden;
    padding: 0;
}

/* chaque slide prend la même hauteur */
.mySwiperActu .swiper-slide {
    height: auto;
}

/* carte */
.actu-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    transform: none !important;
}

/* bloc image homogène */
.actu-card > a,
.actu-card .actu-image-link,
.actu-card .news-card-image-link {
    display: block;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #ddd;
}

/* image homogène */
.actu-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

/* contenu */
.actu-content {
    padding: 0;
}

/* date */
.actu-date {
    font-size: 11px;
    line-height: 1.4;
    color: #b0aaa7;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* titre */
.actu-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.16;
    font-family: "Crimson Text", serif;
    color: #9e0b0f !important;
}

/* texte */
.actu-card p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #343333 !important;
}

/* lien */
.actu-btn {
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    color: #343333;
    text-decoration: underline !important;
}

/* retire l'ancien hover trop "card" */
.actu-card:hover {
    transform: none;
}

/* =========================
   FLECHES
   ========================= */

.actu-nav {
    position: absolute;
    top: 31%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 5;
    width: 42px;
    height: 42px;
    min-width: 42px !important;
    border-radius: 50% !important;
    border: solid 1px #343333 !important;
    background: #343333 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.actu-prev {
    left: -90px !important;
}

.actu-next {
    right: -90px !important;
}

.actu-nav:hover {
    transform: translateY(-50%) scale(1.03) !important;
    background: #2f2f2f !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

.actu-prev::before,
.actu-next::before {
    content: "";
    width: 9px;
    height: 9px;
    display: block;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
}

.actu-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.actu-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.actu-nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

/* =========================
   TABLETTE
   ========================= */
@media (max-width: 1024px) {
    .actu-slider-wrapper {
        gap: 20px;
    }

    .actu-nav {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .actu-prev {
        left: -14px;
    }

    .actu-next {
        right: -14px;
    }

    .actu-card h3 {
        font-size: 20px;
    }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 767px) {
    .actu-nav {
        display: none;
    }

    .actu-slider-wrapper {
        padding-left: 24px;
        padding-right: 24px;
    }

    .actu-card h3 {
        font-size: 18px;
    }

    .actu-card p,
    .actu-btn {
        font-size: 13px;
    }
}

/* ==========================================
   HERO BANNIERE - CORRECTION FINALE
   ========================================== */

/* section hero */
.elementor-element-77e2c58 {
    min-height: 660px;
    display: flex;
    align-items: center;
}

/* container interne */
.elementor-element-666298d {
    width: 100%;
}

.elementor-element-666298d .e-con-inner {
    width: min(100% - 80px, 980px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* kicker */
.contact-hero-kicker {
    margin: 0 0 10px 0;
    width: 100%;
    max-width: 760px;
}

.contact-hero-kicker > h1,
.contact-hero-kicker .elementor-heading-title {
    margin: 0;
    font-family: "Crimson Text", serif !important;
    font-size: clamp(26px, 2.1vw, 42px);
    line-height: 1.05;
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* bloc gros titre */
.contact-hero-title {
    width: 100%;
    max-width: 760px;
}

/* IMPORTANT : on neutralise les styles cassants précédents */
.contact-hero-title > p,
.contact-hero-title .elementor-widget-container > * {
    max-width: none;
}

.contact-hero-title p {
    margin: 0 !important;
    font-family: "Crimson Text", serif !important;
}

/* vrai style du grand titre */
.contact-hero-title .elementor-widget-container {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-hero-title .elementor-widget-container p {
    margin: 0 !important;
    font-family: "Crimson Text", serif !important;
    line-height: 0.96;
    font-weight: 700;
    color: #ffffff !important;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-hero-title{
    font-size: clamp(36px, 5.5vw, 76px);
}

/* espace contrôlé entre les lignes/paragraphe du grand titre */
.contact-hero-title .elementor-widget-container p + p {
    margin-top: 6px !important;
}

/* tablette */
@media (max-width: 1024px) {
    .elementor-element-77e2c58 {
        min-height: 560px;
    }

    .elementor-element-666298d .e-con-inner {
        width: min(100% - 56px, 760px);
    }

    .contact-hero-kicker,
    .contact-hero-title,
    .contact-hero-title .elementor-widget-container {
        max-width: 620px;
    }

    .contact-hero-title .elementor-widget-container p {
        font-size: clamp(42px, 6vw, 72px);
    }
}

/* mobile */
@media (max-width: 767px) {
    .elementor-element-77e2c58 {
        min-height: 420px;
        align-items: flex-end;
    }

    .elementor-element-666298d .e-con-inner {
        width: min(100% - 32px, 100%);
        padding-bottom: 34px;
    }

    .contact-hero-kicker,
    .contact-hero-title,
    .contact-hero-title .elementor-widget-container {
        max-width: 100%;
    }

    .contact-hero-kicker > h1,
    .contact-hero-kicker .elementor-heading-title {
        font-size: 24px;
    }

    .contact-hero-title .elementor-widget-container {
        min-height: auto;
    }

    .contact-hero-title .elementor-widget-container p {
        font-size: clamp(28px, 8vw, 36px);
        line-height: 0.96;
    }

    .contact-hero-title .elementor-widget-container p + p {
        margin-top: 2px !important;
    }
}


.rwm-temoignage-card {
    position: relative;
    height: auto;
}

.rwm-temoignage-frame {
    position: relative;
    padding: 30px 0 50px;
}

.rwm-temoignage-frame::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 70px;
    right: 28px;
    height: 72px;
    border-top: 5px solid #2f2b2b;
    border-right: 5px solid #2f2b2b;
    border-top-right-radius: 42px;
    z-index: 1;
    pointer-events: none;
}

.rwm-temoignage-frame::after {
    content: "";
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 0 42px;
    z-index: 1;
    pointer-events: none;
    right: 125px;
}

.rwm-temoignage-title-box {
    z-index: 3;
}

.rwm-temoignage-panel {
    position: relative;
    z-index: 2;
    padding: 20px 28px 16px;
}

.rwm-temoignage-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 46px;
    align-items: center;
}


/* ==========================================
   QUOTES IMAGES
   ========================================== */

.rwm-quote {
    position: absolute;
    width: 90px;   /* ajuste selon rendu */
    height: auto;
    z-index: 4;
    pointer-events: none;
}

/* haut gauche */
.rwm-quote-top {
    top: 1px;
    left: -12px;
}

/* bas droite */
.rwm-quote-bottom {
    bottom: -20px;
    right: -10px;
}


/* mobile */
@media (max-width: 767px) {
    .rwm-temoignage-frame::before{
        right: 0;
        height: 80px;
    }
    
    .rwm-temoignage-title{
        font-size: 18px;
    }

    .rwm-quote{
        width: 60px;
    }

    .rwm-quote-top{
        left: 0;
    }

    .rwm-quote-bottom{
        right: 0;
    }

    .rwm-temoignage-frame::after{
        right: 75px;
    }
}

/* ==========================================
   BREAKPOINT INTERMEDIAIRE
   Fix retours slides 17 à 19
   ========================================== */
@media (max-width: 1180px) and (min-width: 768px) {

    /* ===== 1. HEADER : éviter le menu sur 2 lignes ===== */

    #tahefobu-header {
        top: 32px !important;
    }
    .elementor-13 .elementor-element.elementor-element-9d2d1d2{
        width: 70%;
    }
    
    #tahefobu-header > .elementor {
        max-width: calc(100% - 24px);
    }

    #tahefobu-header .elementor-element-36160a4 {
        min-height: 72px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    #tahefobu-header .tahefobu-site-logo img {
        max-width: 190px;
        max-height: 46px;
    }

    #tahefobu-header .tahefobu-nav-menu {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        white-space: nowrap;
    }

    #tahefobu-header .tahefobu-nav-menu > li {
        margin-left: 14px;
    }

    #tahefobu-header .tahefobu-nav-menu > li + li::before {
        left: -8px;
        font-size: 11px;
    }

    #tahefobu-header .tahefobu-menu-item {
        font-size: 11px;
        letter-spacing: 0.05em;
        line-height: 1.1;
    }

    /* ===== 2. TITRES HERO : éviter les débordements ===== */
    .elementor-element-77e2c58 {
        min-height: 560px;
    }

    .elementor-element-666298d .e-con-inner {
        width: min(100% - 48px, 860px);
    }

    .contact-hero-kicker,
    .contact-hero-title {
        max-width: 680px;
    }

    .contact-hero-kicker > h1,
    .contact-hero-kicker .elementor-heading-title {
        font-size: clamp(20px, 2vw, 28px);
        line-height: 1.08;
    }

    .contact-hero-title .elementor-widget-container p {
        font-size: clamp(34px, 4.2vw, 54px);
        line-height: 0.98;
        overflow-wrap: break-word;
        word-break: normal;
        max-width: 100%;
    }

    /* ===== 3. FOOTER : éviter que le menu mange le logo ===== */
    .footer-row {
        padding: 38px 0 30px;
    }

    .footer-row > .e-con-inner {
        display: grid;
        grid-template-columns: minmax(180px, 220px) repeat(3, minmax(120px, 1fr));
        gap: 18px;
        align-items: start;
        width: min(100% - 24px, 1320px);
    }

    .footer-col {
        min-width: 0;
        padding-right: 18px;
    }

    .footer-col .elementor-widget-image img {
        max-width: 170px;
        max-height: 52px;
        width: auto;
        height: auto;
    }

    .footer-col,
    .footer-col p,
    .footer-col a {
        font-size: 14px;
        line-height: 1.45;
    }

    .footer-col strong,
    .footer-col strong a {
        font-size: 15px;
    }

    /* ===== 4. VOS PROJETS : éviter le chevauchement des pictos / boutons ===== */
    .invest-fin-btn,
    .invest-immo-btn,
    .invest-trans-btn,
    .invest-retraite-btn,
    .invest-patrimoine-btn,
    .invest-family-btn {
        width: 100%;
    }

    .invest-fin-btn .elementor-button,
    .invest-immo-btn .elementor-button,
    .invest-trans-btn .elementor-button,
    .invest-retraite-btn .elementor-button,
    .invest-patrimoine-btn .elementor-button,
    .invest-family-btn .elementor-button {
        width: 100%;
        max-width: 100%;
        min-height: 68px;
        grid-template-columns: 28px 1fr;
        padding: 0 12px;
        column-gap: 8px;
    }

    .invest-fin-btn .elementor-button::before,
    .invest-immo-btn .elementor-button::before,
    .invest-trans-btn .elementor-button::before,
    .invest-retraite-btn .elementor-button::before,
    .invest-patrimoine-btn .elementor-button::before,
    .invest-family-btn .elementor-button::before {
        left: 12px;
        width: 20px;
        height: 20px;
    }

    .invest-fin-btn .elementor-button-text,
    .invest-immo-btn .elementor-button-text,
    .invest-trans-btn .elementor-button-text,
    .invest-retraite-btn .elementor-button-text,
    .invest-patrimoine-btn .elementor-button-text,
    .invest-family-btn .elementor-button-text {
        font-size: 10px;
        line-height: 1;
    }

    /* si les pictos de cartes expertise sont aussi concernés */
    .icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }

    /* ===== 5. SLIDER ACTU : éviter les débordements ===== */
    .actu-nav {
        display: none !important;
    }
}