:root {
    --ff-sans: "Sora", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    --ink: #fff;
    --muted: #e8e4ea;
    --panel: #f3f1f4;
    --plum: #430A4B;
    --plum-rgb: 67, 10, 75;
    --pill: rgba(var(--plum-rgb), .38);
    --pill-hover: rgba(var(--plum-rgb), .68);
    --soft-bg: #f4f4f6;
    --body-muted: #6f6f6f;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --tt-page-trans-overlay-bg-color: #430A4B;
    --sb-thumb: #36025c;
    --sb-track: #e7d1f8;
    --sb-size: 12px;
    --bt-size: 36px;
    --bt-bg: rgba(67, 10, 75, .78);
    --bt-bg-hover: rgba(67, 10, 75, .92);
    --bt-fg: #f6f6f6;
    --bt-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    --bt-z: 1040;
    --tt-sp-w: min(92vw, 420px);
    --tt-sp-bg: rgb(67, 10, 75 / .98);
    --tt-sp-ink: #f5f5f7;
    --tt-sp-muted: #b7b7c2;
    --tt-sp-border: rgb(255 255 255 / .08);
    --tt-sp-blur: 10px;
    --av-green: #aebf38;
    --av-green-hover: #9cae2e;
    /* Define the new squircle radius for consistency */
    --av-radius: 16px;
}

body {
    overflow-x: hidden;
}

html,
body {
    font-family: var(--ff-sans);
    font-weight: 400;
    /* adjust if your design wants 500/600 default */
}


.box span {
    width: 20px;
    height: 20px;
    display: block;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.box span:nth-child(2) {
    animation-delay: -0.2s;
}

.box span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) translate(10px, 10px);
    }

    100% {
        opacity: 0;
    }
}

/* ######## 
        <!-- Side Panel (TT) -->
        /* ######## */

/* Backdrop */
.tt-sp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100000;
    transition: opacity .2s ease;
}

.tt-sp-backdrop.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* Side panel root */
.tt-sidepanel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: var(--tt-sp-w);
    background: #430A4B;
    color: var(--tt-sp-ink);
    border-left: 1px solid var(--tt-sp-border);
    -webkit-backdrop-filter: blur(var(--tt-sp-blur));
    backdrop-filter: blur(var(--tt-sp-blur));
    box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
    z-index: 100010;
    /* above header/backdrop */
    display: grid;
    grid-template-rows: 1fr;
    pointer-events: none;
    /* enabled when open */
    will-change: transform, opacity;
    /* GSAP drives transform */
}


/* Close button (always on top inside panel) */
.tt-sp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--tt-sp-border);
    background: transparent;
    color: var(--tt-sp-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    pointer-events: auto;
}

.tt-sp-close:hover {
    background: rgb(255 255 255 / .08);
}

/* Media */
.tt-sp-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    --media-y: 60%;
    margin-top: 80px;
    padding-left: 17px;
    padding-right: 17px;
}

.tt-sp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center var(--media-y);
    display: block;
    transform-origin: center;
}

.tt-sp-scroll {
    overflow: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* allow children to flex */
    scroll-padding-bottom: 72px;
    /* last item not hidden behind socials */
}

/* Let the body fill available height */
.tt-sp-body {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.2rem 1.2rem 0;
    /* bottom padding handled by socials */
    min-height: 0;
    flex: 1 1 auto;
}

/* Socials pinned to bottom (responsive, safe-area aware) */
.tt-sp-social {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: auto;
    padding: 0.8rem .8rem calc(1rem + env(safe-area-inset-bottom));
    display: flex;
    gap: .6rem;
    background: var(--tt-sp-bg);
    border-top: 1px dashed var(--tt-sp-border);
    z-index: 2;
}

.tt-sp-title {
    margin: .5rem 0 0;
    font-weight: 800;
    font-size: clamp(18px, 2.2vw, 22px);
}

.tt-sp-desc {
    margin: 0;
    color: var(--tt-sp-muted);
    line-height: 1.55;
}

/* Socials pinned bottom */
.tt-sp-social {
    margin-top: auto;
    display: flex;
    gap: .6rem;
    padding-top: .6rem;
    border-top: 1px dashed var(--tt-sp-border);
}

.tt-sp-social-link {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--tt-sp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-sp-ink);
    text-decoration: none;
}

.tt-sp-social-link:hover {
    background: rgb(255 255 255 / .08);
}

/* Lock page scroll when panel is open */
body.tt-sp-open {
    overflow: hidden;
}

body.tt-transition:not(.tt-curtains-open) #ttSidePanel,
body.tt-transition:not(.tt-curtains-open) #ttSideBackdrop {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
}


/* ######## 
        <!-- ScrollBar -->
        /* ######## */
* {
    scrollbar-width: thin;
    /* auto | thin | none */
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}

/* WebKit (Chrome/Edge/Safari) */
::-webkit-scrollbar {
    width: var(--sb-size);
    height: var(--sb-size);
}

::-webkit-scrollbar-track {
    background: var(--sb-track);
}

::-webkit-scrollbar-thumb {
    background: var(--sb-thumb);
    border-radius: 999px;
    border: 2px solid var(--sb-track);
    /* keeps a clean gap around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.08);
}



/* ------------------------------------------------------------- *
 * Magic cursor
/* ------------------------------------------------------------- */

.backtop {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0));
    bottom: calc(16px + env(safe-area-inset-bottom, 0));
    width: var(--bt-size);
    height: var(--bt-size);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9999px;
    background: var(--bt-bg);
    color: var(--bt-fg);
    box-shadow: var(--bt-shadow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px) scale(.96);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, background-color .18s ease, box-shadow .18s ease;
    z-index: var(--bt-z);
}

.backtop:hover {
    background: var(--bt-bg-hover);
}

.backtop:active {
    transform: translateY(9px) scale(.95);
}

.backtop:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* show state */
.backtop.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* slightly larger touch target on coarse pointers */
@media (pointer: coarse) {
    :root {
        --bt-size: 44px;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .backtop {
        transition: none;
    }
}

/* High Contrast / Windows */
@media (forced-colors: active) {
    .backtop {
        forced-color-adjust: auto;
        box-shadow: none;
    }
}


/* ######## 
        <!-- Header -->
        /* ######## */


.site-header {
    z-index: 1100;
}

.site-header .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-header .navbar-nav>.menu-item>.nav-link {
    color: #fff;
    font-size: 12px;
    padding: 0.5rem 0 0;
    margin: 0 0.5rem;
    position: relative;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.4s ease;
}

.site-header .navbar-nav>.menu-item>.nav-link:hover {
    opacity: 1;
    color: #fff;
}

.site-header .navbar-nav>.menu-item>.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--av-green);
    transition: width 0.3s ease;
}

.site-header .navbar-nav>.menu-item>.nav-link:hover::after {
    width: 100%;
}

.navbar-brand {
    padding: 0;
    margin-right: 1rem;
    position: relative;
    display: block;
}

.navbar-brand .logo-light {
    display: block;
    height: 40px;
    width: auto;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.navbar-brand .logo-dark {
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    width: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar-toggler {
    color: #fff;
    transition: color 0.4s ease;
}

.navbar-toggler i {
    font-size: 1.75rem;
    color: inherit;
}

.header-actions .nav-link,
.header-actions .btn {
    font-size: 13px !important;
    font-weight: 400 !important;
}

.header-actions .nav-link {
    position: relative;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.4s ease;
}

.header-actions .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--av-green);
    transition: width 0.3s ease;
}

.header-actions .nav-link:hover::after {
    width: 100%;
}

.btn-av-green {
    background-color: var(--av-green);
    color: #fff;
    border: none;
    transition: all 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-av-green:hover {
    background-color: var(--av-green-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(174, 191, 56, 0.3);
}

.btn-pill {
    border-radius: var(--av-radius);
    padding: 0.6rem 2rem;
    line-height: 1;
}

.btn-circle {
    width: 44px;
    height: 26px;
    border-radius: var(--av-radius);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.btn-circle i {
    font-size: 13px;
}

/* ==========================================================================
   Search Overlay
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(67, 10, 75, 0.97);
    /* Avaliance Plum with slight transparency */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 40px;
    right: 50px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    color: #AEBF38;
    /* Avaliance Lime */
}

.search-form {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.is-active .search-form {
    transform: translateY(0);
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.search-input-group:focus-within {
    border-bottom-color: #AEBF38;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    padding: 15px 60px 15px 0;
    outline: none;
    font-family: var(--ff-sans, sans-serif);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit-btn {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    color: #AEBF38;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-submit-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .search-input {
        font-size: 1.5rem;
    }

    .search-close-btn {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}


.site-header.scrolled .navbar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.site-header.scrolled .navbar-nav>.menu-item>.nav-link,
.site-header.scrolled .text-white {
    color: #222 !important;
}

.site-header.scrolled .navbar-toggler {
    color: #222;
}

.site-header.scrolled .logo-light {
    opacity: 0;
}

.site-header.scrolled .logo-dark {
    opacity: 1;
}

.site-header .navbar-nav .menu-item-has-children {
    position: relative;
}

.site-header .navbar-nav .menu-item-has-children>a {
    padding-right: 14px !important;
}

.site-header .navbar-nav .menu-item-has-children>a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 65%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--av-green);
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-header .navbar-nav .sub-menu .menu-item-has-children>a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--av-green);
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-header .navbar-nav .menu-item-has-children:hover>a::before {
    opacity: 1;
}

@media (min-width: 992px) {
    .site-header .navbar {
        padding-top: 30px;
        padding-bottom: 15px;
    }

    .mobile-menu-container {
        display: flex !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #fff;
        padding: 15px 20px;
        margin: 0;
        list-style: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 999;
        margin-top: 10px;
    }

    .site-header .menu-item-has-children:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-header .sub-menu li {
        display: block;
    }

    .site-header .sub-menu li a {
        display: block;
        padding: 8px 25px;
        font-size: 14px;
        color: #222 !important;
        text-decoration: none;
        position: relative;
        transition: all 0.2s ease;
        white-space: nowrap;
        opacity: 1 !important;
    }

    .site-header .sub-menu li a:hover {
        color: #000 !important;
        background: transparent;
    }

    .site-header .sub-menu li a::after {
        content: "";
        position: absolute;
        left: 10px;
        bottom: 5px;
        height: 2px;
        width: 0;
        background: var(--av-green);
        transition: width 0.3s ease;
    }

    .site-header .sub-menu li a:hover::after {
        width: calc(100% - 50px);
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar {
        background: #222;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .site-header.scrolled .navbar {
        background: #fff;
    }

    .mobile-menu-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 0;
        overflow: hidden;
        opacity: 0;
        width: 100%;
        padding-bottom: 0;
    }

    .navbar-nav {
        margin: 0 !important;
        padding: 0;
        text-align: center;
        width: 100%;
        gap: 5px;
        margin-bottom: 40px !important;
    }

    /* FIX: Inline-block ensures the dot sits right next to the text */
    .site-header .navbar-nav .nav-link {
        font-size: 22px !important;
        font-weight: 500;
        padding: 0;
        margin: 0;
        display: inline-block;
        position: relative;
    }

    .d-flex.align-items-center {
        flex-direction: column;
        align-items: center !important;
        width: 100%;
        gap: 15px !important;
    }

    .header-actions .nav-link {
        font-size: 22px !important;
        color: #222 !important;
    }

    .mobile-menu-container .btn-av-green {
        padding: 22px 40px;
    }

    .btn-pill {
        font-size: 22px !important;
        padding: 0.8rem 3rem;
        width: auto;
    }

    .header-actions .nav-link,
    .header-actions .btn {
        font-size: 22px !important;
    }

    .btn-circle {
        border-radius: var(--av-radius);
        width: 50px;
        height: 50px;
        padding: 0;
    }

    .btn-circle i {
        font-size: 20px;
    }

    .navbar-nav .nav-item,
    .header-actions>* {
        opacity: 0;
        transform: translateY(20px);
    }

    /* --- Submenu Logic --- */
    .site-header .sub-menu {
        position: relative;
        background: transparent;
        box-shadow: none;
        padding: 0;
        /* Start with 0 padding */
        margin: 0;

        /* Hidden State */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        /* Crucial for slide effect */
        visibility: hidden;

        transform: none;
        /* Reset any desktop transforms */
        text-align: center;

        /* Smooth Transition */
        transition: all 0.4s ease-in-out;
    }

    /* Open State */
    .site-header .navbar-nav .menu-item-has-children.open>.sub-menu {
        max-height: 500px;
        /* Large enough to fit items */
        opacity: 1;
        visibility: visible;
        padding: 10px 0;
        /* Restore padding when open */
        margin-top: 5px;
    }

    .site-header .sub-menu li a {
        color: #ccc !important;
        font-size: 18px !important;
        padding: 8px 0;
        display: block;
        /* Optional: small slide effect for items */
        transform: translateY(-5px);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* When open, reset item position */
    .site-header .navbar-nav .menu-item-has-children.open>.sub-menu li a {
        transform: translateY(0);
    }

    /* Dot Positioning */
    .site-header .navbar-nav .menu-item-has-children>a {
        padding-right: 20px !important;
    }

    .site-header .navbar-nav .menu-item-has-children>a::before {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        opacity: 1;
        background-color: var(--av-green);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   MEGA MENU STYLES (Consulting)
   ========================================= */

@media (min-width: 992px) {

    /* 1. The Container (Level 2 Dropdown) */
    .site-header .navbar-nav .has-mega-menu>.sub-menu {
        width: 600px;
        /* Wider to fit columns */
        display: flex;
        /* Makes items sit side-by-side */
        padding: 20px;
        flex-wrap: nowrap;
        gap: 20px;
    }

    /* 2. The Columns (Nos métiers / Nos expertises) */
    .site-header .navbar-nav .has-mega-menu>.sub-menu>li {
        flex: 1;
        /* Equal width columns */
        border-right: 1px solid #eee;
        /* Optional separator */
        padding: 0 15px;
    }

    .site-header .navbar-nav .has-mega-menu>.sub-menu>li:last-child {
        border-right: none;
    }

    /* 3. The Column Headings */
    .site-header .navbar-nav .has-mega-menu>.sub-menu>li>a {
        font-weight: 700 !important;
        text-transform: uppercase;
        font-size: 13px !important;
        color: var(--av-green) !important;
        margin-bottom: 10px;
        padding-left: 0 !important;
        pointer-events: none;
        /* Make heading unclickable if using # */
    }

    /* Remove hover underline from Headings */
    .site-header .navbar-nav .has-mega-menu>.sub-menu>li>a::after {
        display: none !important;
    }

    /* 4. The Actual Links (Level 3) */
    .site-header .navbar-nav .has-mega-menu .sub-menu {
        /* Reset dropdown styles so they don't hide/position absolutely */
        position: static;
        box-shadow: none;
        padding: 0;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
    }

    .site-header .navbar-nav .has-mega-menu .sub-menu li a {
        font-weight: 400 !important;
        text-transform: none;
        font-size: 14px !important;
        color: #444 !important;
        padding: 6px 0 !important;
        pointer-events: auto;
    }

    /* Hover effect for links */
    .site-header .navbar-nav .has-mega-menu .sub-menu li a:hover {
        color: #000 !important;
        padding-left: 5px !important;
        /* Small nudge */
    }

    /* Restore Underline for Links */
    .site-header .navbar-nav .has-mega-menu .sub-menu li a::after {
        display: none;
        /* Or set to block if you want underlines here too */
    }

    .site-header .sub-menu .menu-item-has-children>.sub-menu {
        top: 0;
        left: 100%;
        margin-top: -15px;
        margin-left: 15px;
    }

    /* EXCEPTION: Don't apply this to the Mega Menu columns */
    /* We want Mega Menu items to stack vertically as columns */
    .site-header .navbar-nav .has-mega-menu .sub-menu .sub-menu {
        position: static;
        left: auto;
        top: auto;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }
}

/* Mobile Adjustments (Stack them) */
@media (max-width: 991.98px) {
    .site-header .navbar-nav .has-mega-menu>.sub-menu>li>a {
        font-weight: 700 !important;
        color: var(--av-green) !important;
        margin-top: 15px;
    }

    .site-header .navbar-nav .has-mega-menu .sub-menu li a {
        padding-left: 0 !important;
    }
}

/* ######## 
        <!-- Hero / Carousel -->
        /* ######## */


.hero {
    position: relative;
    overflow: hidden;
    background-color: #000;
    /* Fallback color */
}

/* Replaces .hero-bg-video */
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    /* Optional: Add a slow zoom effect like the video had movement */
    animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-carousel .carousel-indicators {
    z-index: 3;
}

.carousel-fade .carousel-item {
    transition-duration: .9s;
    will-change: opacity, transform;
}

.hero-carousel .carousel-item {
    position: relative;
    min-height: 100vh;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw + 1rem, 2.7rem);
    line-height: 1.1;
}

.lead {
    font-size: 22px;
    font-weight: 400;
}

.btn-hero {
    --arrow-w: clamp(40px, 9vw, 60px);
    --arrow-thick: 2px;
    background: rgb(205, 215, 73, 0.8);
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 3rem;
    border: 0;
    font-weight: 600;
    font-size: 18px;
    transition: background-color .25s ease, color .25s ease;
}

.btn-hero:hover {
    background: var(--pill-hover, #AEBF38);
    color: #fff;
}

.long-arrow {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: var(--arrow-thick);
    background: currentColor;
    border-radius: 999px;
    transition: background-color .25s ease, border-color .25s ease, width .45s cubic-bezier(.22, 1, .36, 1);
}

.long-arrow::after {
    content: "";
    position: absolute;
    right: calc(-0.2 * var(--arrow-thick));
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: var(--arrow-thick) solid currentColor;
    border-right: var(--arrow-thick) solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 1px;
    transition: border-color .25s ease;
}

.hero-carousel .carousel-indicators {
    position: absolute;
    bottom: 40%;
    left: 1.25rem;
    transform: translateY(-50%);
    margin: 0;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5d5d5d;
    border: 2px solid transparent;
    opacity: 1;
}

.hero-carousel .carousel-indicators .active {
    background: #fff;
    border-color: #fff;
    width: 6px;
    height: 6px;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 3rem;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .85);
    font-size: 2.1rem;
    z-index: 1;
}

/* Button 2 Animation */
.btn-hero.btn-2 {
    position: relative;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, 0 0;
    background-size: 0% 100%, 100% 100%;
    transition:
        background-size .50s cubic-bezier(.22, 1, .36, 1),
        color .28s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1),
        box-shadow .25s cubic-bezier(.22, 1, .36, 1);
    text-decoration: none;
}

.btn-hero.btn-2 .long-arrow {
    width: 36px;
    transition:
        width .45s cubic-bezier(.22, 1, .36, 1),
        transform .45s cubic-bezier(.22, 1, .36, 1),
        background-color .25s ease,
        border-color .25s ease;
    margin-left: 40px;
}

@media (hover:hover) {

    .btn-hero.btn-2:hover .long-arrow,
    .btn-hero.btn-2:focus-visible .long-arrow {
        width: calc(var(--arrow-w) + 8px);
        transform: translateX(4px);
    }
}

@media (hover:hover) {

    .btn-hero.btn-2:hover,
    .btn-hero.btn-2:focus-visible {
        background-size: 220% 100%, 100% 100%;
        color: rgb(205, 215, 73, #111);
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .10), 0 6px 12px rgba(0, 0, 0, .06);
    }
}

.btn-hero.btn-2:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 7px rgba(0, 0, 0, .06);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        min-height: 100svh;
    }

    .hero-carousel .carousel-item>.d-flex {
        padding-top: 150px !important;
        align-items: center;
        min-height: 100svh;
    }

    .hero .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem !important;
    }

    .lead {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .btn-hero {
        font-size: 15px;
        padding: 0.6rem 2rem;
        margin-top: 0.5rem;
    }

    .btn-hero.btn-2 .long-arrow {
        width: 30px;
        margin-left: 20px;
    }

    .hero-carousel .carousel-indicators {
        flex-direction: row !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 12px;
        width: auto;
        justify-content: center;
    }

    .scroll-cue {
        display: none;
    }
}

/* ######## 
        <!-- intro-section -->
        /* ######## */

.bg-soft {
    background: #F3F3F3;
}

.intro-section {
    padding: 120px 0 60px;
}

.text-brand {
    color: rgb(var(--plum-rgb));
}

/* uses #430A4B from earlier */

.intro-title {
    line-height: 1.15;
    letter-spacing: -0.2px;
    max-width: 90%;
}

.intro-section .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    right: 65%;
    top: 50%;
    height: 1px;
    background: rgba(var(--plum-rgb), .18);
    transform: translateY(-50%);
}

.intro-section .section-title {
    position: relative;
}

.intro-section .h3 {
    color: #430A4B;
}

.intro-text {
    color: var(--body-muted);
    font-size: clamp(1rem, .35vw + .95rem, 1.125rem);
    line-height: 1.6;
}


/* ######## 
        <!-- Domains tiles -->
        /* ######## */

.domains-section {
    padding-bottom: 120px 0;
    background: #f6f6f7;
    display: none;
}

/* light canvas like PNG */

.tile {
    position: relative;
    min-height: clamp(220px, 17vw, 360px);
    /* scales with viewport */
    overflow: hidden;
}

.tile-overlay {
    position: absolute;
    inset: 0;
    /* left-to-right readability, slightly darker on far right */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .55) 0%,
            rgba(0, 0, 0, .40) 45%,
            rgba(0, 0, 0, .35) 60%,
            rgba(0, 0, 0, .55) 100%);
    z-index: 0;
}

.tile-content {
    position: absolute;
    z-index: 1;
    left: clamp(24px, 5vw, 48px);
    top: 50%;
    transform: translateY(-50%);
    width: min(560px, 65%);
    color: #fff;
}

.domains-section .tile-content-2 {
    width: 100%;
    max-width: 30% !important;
}


.domains-section .tile-content-1 {
    width: 100%;
    max-width: 60%;
}

.tile-title {
    margin: 0 0 .5rem 0;
    font-weight: 600;
    letter-spacing: -0.2px;
    font-size: 28px;
}

.tile-text {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, .35vw + .95rem, 1.125rem);
    line-height: 1.5;
}

.tile-text-1 {
    font-size: 18px;
}


.tile-cta-static {
    position: relative;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to the main tile-overlay link */
}

/* Ensure the hero button looks good inside this specific context */
.tile-cta-static .btn-hero {
    display: inline-flex;
    align-items: center;
    /* This perfectly centers the arrow and text vertically */
    gap: 10px;
    /* Adds consistent spacing between the text and the arrow */
    pointer-events: auto;
}



@media (max-width: 991.98px) {

    .tile-text {
        max-width: 80%;
    }


    .intro-section {
        padding-block: clamp(60px, 7vw, 115px);
        overflow: hidden;
    }

    .domains-section {
        padding-bottom: 80px;
    }

    .tile-content {
        position: relative;
        top: auto;
        transform: none;
        padding: 24px;
        width: auto;
    }

    .tile-cta {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 16px 0;
    }

    .domains-section .intro-margin {
        margin-bottom: 0 !important;
    }
}


/* ######## 
        <!-- Partners -->
        /* ######## */

.partners-section {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.partners-side {
    position: absolute;
    inset: 0 0 0 auto;
    width: clamp(280px, 26vw, 320px);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.partners-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1200px) {
    .partners-section .container {
        padding-right: clamp(290px, 24vw, 330px);
    }
}

.partners-start-left {
    padding: 40px 0;
}

.partners-slider {
    position: relative;
    --gap: 24px;
    --arrow-size: 42px;
    overflow: visible;
    z-index: 2;
}

.partners-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(200px, 13vw, 240px);
    gap: var(--gap);
    overflow-x: auto;
    padding: 1.8rem 0;
    scroll-padding-left: calc(var(--arrow-size) + 12px);
    scroll-padding-right: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.partners-track::-webkit-scrollbar {
    height: 8px;
}

.partners-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .12);
    border-radius: 10px;
}

/* Cards */
.partner-card {
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 150px;
}

.partner-card {
    --card-radius: 16px;
    --stroke: rgba(var(--plum-rgb), .55);
    --bw: 2;
    /* border width in px (number only) */
    --ring: 0;
    /* animated by JS; px value */
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
}

/* full rounded ring (follows radius perfectly) */
.partner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    /* <— ensure it sits above the card content */
    box-shadow: inset 0 0 0 calc(var(--ring) * 1px) var(--stroke);
    opacity: .95;
    transition: box-shadow .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}

/* keep your gentle hover/focus lift; ring fills fully */
@media (hover:hover) and (pointer:fine) {
    .partner-card:hover {
        transform: translateY(-2px);
        box-shadow:
            0 12px 28px rgba(23, 8, 29, .10),
            0 6px 14px rgba(0, 0, 0, .06);
        border-color: rgba(0, 0, 0, .08);
    }

    .partner-card:hover::before {
        --ring: var(--bw);
    }
}

.partner-card:focus-within {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(23, 8, 29, .10),
        0 6px 14px rgba(0, 0, 0, .06);
    border-color: rgba(0, 0, 0, .08);
}

.partner-card:focus-within::before {
    --ring: var(--bw);
}

@media (prefers-reduced-motion: reduce) {

    .partner-card,
    .partner-card:focus-within {
        transition: none;
        transform: none;
    }
}


.partner-logo {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

/* Small round CTAs inside card */
.card-ctas {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.dot-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(var(--plum-rgb), .12);
    color: rgb(var(--plum-rgb));
}

.dot-btn--filled {
    background: rgba(var(--plum-rgb), .9);
    color: #fff;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    width: var(--arrow-size);
    height: var(--arrow-size);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(67, 10, 75, .7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.slider-arrow i {
    font-size: 40px;
}

@media (min-width: 992px) {
    .slider-arrow.left {
        left: -64px;
    }

    /* outside the slider */
    .slider-arrow.right {
        right: -64px;
    }

    /* outside the slider */
}



/* KPIs */
.kpi-value {
    font-weight: 700;
    font-size: clamp(3rem, 2.6vw, 3rem);
    color: #8b8b8b;
    line-height: 1.1;
}

.kpi-label,
.kpi-sub {
    font-size: 24px;
    font-weight: 500;
    color: #8b8b8b;
    margin-top: 10px;
}


@media (min-width: 768px) {
    .kpi-sep {
        border-left: 1px solid rgba(0, 0, 0, .12);
        border-right: 1px solid rgba(0, 0, 0, .12);
    }
}

.text-end {
    margin-top: 80px;
}

.partners-link {
    --arrow-w: clamp(44px, 10vw, 57px);
    /* unify with shaft size */
    --arrow-thick: 3px;
    position: relative;
    display: inline-block;
    font-size: 24px;
    font-weight: 600;
    max-width: 30%;
    padding-right: 80px;
    text-decoration: none;
    line-height: 1.1;
    text-align: left;
}

/* arrow shaft */
.partners-link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    /* inset a bit from the edge */
    width: var(--arrow-w);
    /* use the var consistently */
    height: 2.5px;
    background: currentColor;
    border-radius: 999px;
    transform: translateY(-50%);
    /* baseline vertical centering */
    transition:
        width .45s cubic-bezier(.22, 1, .36, 1),
        transform .45s cubic-bezier(.22, 1, .36, 1),
        background-color .25s ease,
        border-color .25s ease;
}

/* arrow head */
.partners-link::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 8px;
    height: 8px;
    border-top: var(--arrow-thick) solid currentColor;
    border-right: var(--arrow-thick) solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 1px;
    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1),
        border-color .25s ease;
}

.partners-link.tt-text-reveal::before,
.partners-link.tt-text-reveal::after {
    opacity: var(--tt-arrow-opacity, .25);
}

/* HOVER / FOCUS: extend shaft and nudge arrow forward */
@media (hover:hover) {

    .partners-link:hover::after,
    .partners-link:focus-visible::after {
        width: calc(var(--arrow-w) + 12px);
        /* extend */
        transform: translateY(-50%) translateX(4px);
        /* subtle push to right */
    }

    .partners-link:hover::before,
    .partners-link:focus-visible::before {
        transform: translateY(-50%) translateX(4px) rotate(45deg);
    }
}

/* Reduced motion: no movement, just instant width */
@media (prefers-reduced-motion: reduce) {

    .partners-link::after,
    .partners-link::before {
        transition: none;
        transform: translateY(-50%) rotate(45deg);
    }

    .partners-link:hover::after,
    .partners-link:focus-visible::after {
        width: calc(var(--arrow-w) + 12px);
    }
}


@media (max-width: 991.98px) {

    .partners-section,
    .partners-section .container,
    .partners-slider {
        overflow: hidden;
    }

    .partners-slider {
        position: relative;
    }

    .partners-track {
        min-width: 0;
        padding: .25rem 16px;
        scroll-padding-left: 16px;
        grid-auto-columns: 72vw;
        /* cards fit within viewport */
        gap: 16px;
        overscroll-behavior-inline: contain;
    }

    .partner-card {
        box-sizing: border-box;
    }

    .slider-arrow {
        display: none;
    }

    .partners-start-left {
        padding: 0;
    }

    .kpi-value {
        font-size: 4rem;
    }


    .text-end {
        margin-top: 40px;
    }

    .partners-link {
        max-width: 65%;
        padding-right: 7px;
    }
}


/* ######## 
        <!-- Values & Engagements -->
        /* ######## */

.values-section {
    position: relative;
    padding-block: clamp(56px, 9vw, 140px);
    background: #f7f7f8;
    /* fallback so no blank flash */
    --bg-y: 8%;
    --bg-scale: 1.06;
    --bg-blur: 6px;
    --bg-sat: .65;
}



.values-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(var(--bg-y, 0%)) scale(var(--bg-scale, 1));
    filter: grayscale(100%) saturate(var(--bg-sat, 1)) blur(var(--bg-blur, 0px));
    z-index: 0;
    will-change: transform, filter;
}

/* Overlay: solid #F3F3F3 (no gradient) */
.values-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #F3F3F3;
    /* ← requested color */
    opacity: .5;
    /* GSAP fades this in */
    pointer-events: none;
}

.values-section .container {
    position: relative;
    z-index: 2;
}

.values-title {
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.2px;
}

.values-section .join-text {
    color: #000;
}

/* === VALUES CTA — Button 2 (angled fill sweep) === */
.btn-values {
    --arrow-w: clamp(44px, 10vw, 120px);
    --arrow-thick: 2px;

    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .4rem 1.6rem;
    font-weight: 600;

    color: #fff;
    /* base = white text over dark gradient */
    background: rgb(67, 10, 75);
    border: 0;
    overflow: hidden;

    transition:
        color .28s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1),
        box-shadow .25s cubic-bezier(.22, 1, .36, 1);
}

/* angled white panel that sweeps across on hover */
.btn-values::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20%;
    right: -20%;
    background: #fff;
    transform: skewX(-45deg) scaleX(0);
    transform-origin: left center;
    transition: transform .50s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
    /* sits under the text/arrow */
}

/* hover / focus: flip text color to dark, lift slightly, run sweep */
@media (hover:hover) {

    .btn-values:hover,
    .btn-values:focus-visible {
        color: var(--sb-thumb, #111);
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .10), 0 6px 12px rgba(0, 0, 0, .06);
    }

    .btn-values:hover::after,
    .btn-values:focus-visible::after {
        transform: skewX(-45deg) scaleX(1);
    }
}

/* pressed */
.btn-values:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 7px rgba(0, 0, 0, .06);
}

/* arrow uses currentColor; add motion + smooth color transition */
.btn-values .long-arrow {
    transition:
        width .45s cubic-bezier(.22, 1, .36, 1),
        transform .45s cubic-bezier(.22, 1, .36, 1),
        background-color .25s ease,
        border-color .25s ease;
    margin-left: 40px;
}

@media (hover:hover) {

    .btn-values:hover .long-arrow,
    .btn-values:focus-visible .long-arrow {
        width: 70px;
        /* extend shaft */
        transform: translateX(4px);
        /* gentle nudge */
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-values {
        transition: color .2s ease;
    }

    .btn-values::after {
        transition: none;
        transform: none;
    }

    .btn-values:hover,
    .btn-values:focus-visible {
        transform: none;
        box-shadow: none;
    }
}


/* Bubbles */
.value-bubble {
    position: relative;
    /* stacking context for ::after */
    width: clamp(140px, 16vw, 200px);
    height: clamp(140px, 16vw, 200px);
    border-radius: 16%;
    margin-inline: auto;
    display: grid;
    place-items: center;
    background: radial-gradient(60% 60% at 50% 40%, #fff 0%, #f2f2f4 60%, #ececee 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);

    /* v3 tilt vars */
    --rx: 0deg;
    --ry: 0deg;
    --tx: 0px;
    --ty: 0px;
    transform: translate3d(var(--tx), var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s, opacity .35s;
}

/* Ensure icons are always on top & visible */
.value-bubble i {
    position: relative;
    z-index: 2;
    /* above shine */
    display: inline-block;
    line-height: 1;
    font-size: clamp(2rem, 4.2vw, 4rem);
    color: #5f5f5f;
    will-change: transform, filter;
}

/* Shine under the icon */
.value-bubble::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(120px 80px at var(--shineX, 50%) 0%,
            rgba(255, 255, 255, .28) 0%,
            rgba(255, 255, 255, .12) 25%,
            rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
}

/* Hover effects */
@media (hover:hover) {
    .values-section:hover .value-bubble {
        opacity: .92;
    }

    .value-bubble:hover {
        opacity: 1;
        box-shadow: 0 18px 46px rgba(0, 0, 0, .14);
    }

    .value-bubble:hover::after {
        opacity: 1;
    }

    .value-bubble:hover i {
        transform: translateY(-2px) scale(1.04);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .16));
    }
}

/* Labels */
.value-label {
    font-weight: 600;
}

/* Mobile tweaks */
@media (max-width: 991.98px) {
    .values-section {
        overflow-x: hidden;
    }

    .values-title {
        margin-bottom: 1rem;
    }

    .btn-values {
        margin-bottom: 1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .values-overlay {
        opacity: 1;
    }

    /* no fade */
    .value-bubble,
    .value-bubble i {
        transition: none !important;
    }
}


/* ######## 
        <!-- join-section -->
        /* ######## */


.join-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* --- FIX: Flexible Media Wrapper --- */
.join-media {
    display: flex;
    align-items: center;
    /* Vertically centers the image if the text panel is taller */
    justify-content: center;
    background: #f8f9fa;
    /* Very subtle background so empty space looks intentional */
    filter: grayscale(100%);
}

/* --- FIX: Natural Image Sizing (Zero Cropping) --- */
.join-media img {
    width: 100%;
    height: auto;
    /* Allows the image to keep its exact aspect ratio */
    display: block;
}

.join-panel {
    background: #2f2f2f;
    color: #cfcfcf;
    display: flex;
    align-items: center;
}

.join-media,
.join-panel {
    min-width: 0;
}

.join-inner {
    padding: 160px 120px;
}

.join-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    font-size: 28px;
    margin-bottom: 3rem;
}

.join-text-content p {
    color: #bdbdbd;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 16px;
    max-width: 100%;
}

/* === Button 2 — angled fill sweep (works with .btn-hero) === */
.btn-hero.btn-2 {
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition:
        color .28s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1),
        box-shadow .25s cubic-bezier(.22, 1, .36, 1);
}

.btn-hero.btn-2::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -20%;
    right: -20%;
    background: #fff;
    transform: skewX(-45deg) scaleX(0);
    transform-origin: left center;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
}

@media (hover:hover) {

    .btn-hero.btn-2:hover,
    .btn-hero.btn-2:focus-visible {
        color: rgb(205, 215, 73) !important;
        background: rgb(205, 215, 73);
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .10), 0 6px 12px rgba(0, 0, 0, .06);
    }

    .btn-hero.btn-2:hover::after {
        transform: skewX(-45deg) scaleX(1);
    }
}

.btn-hero {
    --arrow-w: clamp(40px, 9vw, 60px);
    --arrow-thick: 2px;
}

.btn-hero.btn-2 .long-arrow {
    transition:
        width .45s cubic-bezier(.22, 1, .36, 1),
        background-color .25s ease,
        border-color .25s ease;
    margin-left: 40px;
}

@media (hover:hover) {
    .btn-hero.btn-2:hover .long-arrow {
        width: calc(var(--arrow-w) + 12px);
    }
}

.btn-hero.btn-2:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 7px rgba(0, 0, 0, .06);
}

@media (max-width: 991.98px) {
    .join-section {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    /* This moves the panel to the top (before the image) */
    .join-panel {
        order: -1;
    }

    .join-media {
        background: transparent;
        /* Remove background on mobile to keep it tight */
    }

    .join-inner {
        padding: 60px 24px;
        margin: 0;
        max-width: 100%;
    }

    .join-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .join-text-content p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
}


/* ######## 
        <!-- News / Actualités -->
        /* ######## */


.news-section {
    padding: 120px 0 80px 0;
}


.news-section .row {
    margin-bottom: 60px;
}

.btn-news-all .long-arrow {
    --arrow-w: clamp(44px, 10vw, 120px);
    --arrow-thick: 2px;
}

.news-section .text-brand {
    font-weight: 600;
}

.news-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

@supports not (aspect-ratio: 1 / 1) {
    .news-media {
        height: clamp(180px, 24vw, 280px);
    }
}

.news-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-media::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    /* band height */
    background: rgba(67, 10, 75, .35);
    /* #430A4B @ 35% */
    z-index: 1;
}


.news-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background:
        radial-gradient(60% 120% at 85% 50%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .45) 100%);
    z-index: 2;
    pointer-events: none;
}

.news-cta {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    pointer-events: none;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}



.news-cta .long-arrow {
    --arrow-w: clamp(44px, 7vw, 120px) !important;
    --arrow-thick: 2px;
    top: 0;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: clamp(40px, 10vw, 30px);
    height: var(--arrow-thick);
    background: currentColor;
    border-radius: 999px;
}

.news-cta:hover {
    color: #fff;
    opacity: .95;
}

/* CTA on image */
.btn-news-cta {
    position: absolute;
    left: 24px;
    bottom: 18px;
    background: rgba(var(--plum-rgb), .22);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .75rem 1.25rem;
    font-weight: 700;
}

.btn-news-cta:hover {
    background: rgba(var(--plum-rgb), .32);
    color: #fff;
}

/* Titles + excerpt under image */
.news-title {
    margin-top: 1rem;
    margin-bottom: .5rem;
    font-weight: 800;
    font-size: clamp(1.1rem, .6vw + 1rem, 1.4rem);
}

.news-excerpt {
    color: #7a7a7a;
    line-height: 1.6;
    margin: 0;
}

/* Top-right pill CTA */
.btn-news-all {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .8rem 1.4rem;
    font-weight: 700;
    color: #fff;
    border: 0;
    background: rgb(67, 10, 75);
}

.btn-news-all:hover {
    filter: brightness(1.05);
    color: #fff;
}

.btn-news-all {
    --arrow-w: clamp(40px, 9vw, 60px);
    --arrow-thick: 2px;
}

/* === Button 2 — angled fill sweep === */
.btn-news-all.btn-2 {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* creates a stacking context so ::after (z:-1) sits above bg, below text */
    transition:
        color .28s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1),
        box-shadow .25s cubic-bezier(.22, 1, .36, 1);
}

/* sweeping white panel */
.btn-news-all.btn-2::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -20%;
    right: -20%;
    background: #fff;
    transform: skewX(-45deg) scaleX(0);
    transform-origin: left center;
    transition: transform .50s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
    /* below label/arrow but above the gradient bg */
}

/* hover/focus: turn text & arrow dark while sweep runs */
@media (hover:hover) {

    .btn-news-all.btn-2:hover,
    .btn-news-all.btn-2:focus-visible {
        color: var(--sb-thumb, #111) !important;
        filter: none;
        /* override old hover filter */
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .10), 0 6px 12px rgba(0, 0, 0, .06);
    }

    .btn-news-all.btn-2:hover::after {
        transform: skewX(-45deg) scaleX(1);
    }
}

/* arrow follows currentColor; add a little motion */
.btn-news-all.btn-2 .long-arrow {
    transition:
        width .45s cubic-bezier(.22, 1, .36, 1),
        background-color .25s ease,
        border-color .25s ease;
    margin-left: 50px;
}

@media (hover:hover) {
    .btn-news-all.btn-2:hover .long-arrow {
        width: 70px;
    }
}

/* pressed */
.btn-news-all.btn-2:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 7px rgba(0, 0, 0, .06);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-news-all.btn-2 {
        transition: color .2s ease;
    }

    .btn-news-all.btn-2::after {
        transition: none;
        transform: none;
    }

    .btn-news-all.btn-2:hover {
        transform: none;
        box-shadow: none;
    }
}

/* subtle hover zoom on images (optional) */
.news-media:hover img {
    transform: scale(1.02);
    transition: transform .4s ease;
}

@media (max-width: 991.98px) {
    .news-section {
        padding: 60px 0 10px 0;
    }

    .btn-news-all {
        padding: 0.6rem 1.8rem;
    }

    .btn-news-all.btn-2 .long-arrow {
        margin-left: 10px;
        width: 30px;
    }
}




/* ######## 
        <!-- Contact section -->
        /* ######## */

.contact-section {
    position: relative;
    --side-w: clamp(280px, 28vw, 520px);
}

.contact-section .row {
    padding-top: 100px;
}

.contact-side {
    position: absolute;
    inset: 0 0 0 auto;
    width: var(--side-w);
    background: center/cover no-repeat;
    z-index: 0;
}

@media (min-width: 1200px) {
    .contact-section .container {
        padding-right: clamp(24px, 30vw, 560px);
    }
}

.contact-title {
    font-weight: 800;
    color: #2b2b2b;
    font-size: 42px;
    line-height: 1.1;
}

/* Underlined form controls */
.contact-form .form-label {
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: .35rem;
}

.contact-form .form-control {
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 2px solid #cfcfcf;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
}

.contact-form .form-control:focus {
    border-bottom-color: rgb(var(--plum-rgb));
    box-shadow: none;
}

/* Divider line under fields */
.form-divider {
    border: 0;
    border-top: 1px solid #cfcfcf;
    margin-top: .5rem;
}

/* Send button (grey pill with white arrow) */
.btn-send {
    --arrow-w: clamp(44px, 10vw, 120px);
    --arrow-thick: 2px;
    background: rgb(67, 10, 75);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .9rem 1.6rem;
    font-weight: 700;
}

.btn-send:hover {
    filter: brightness(1.05);
    color: #fff;
}

.btn-send {
    --arrow-w: clamp(40px, 9vw, 60px);
    --arrow-thick: 2px;
}

/* === Button 2 — angled fill sweep === */
.btn-send.btn-2 {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition:
        color .28s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1),
        box-shadow .25s cubic-bezier(.22, 1, .36, 1);
}

/* sweeping white panel */
.btn-send.btn-2::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -20%;
    right: -20%;
    background: #fff;
    transform: skewX(-45deg) scaleX(0);
    transform-origin: left center;
    transition: transform .50s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
    /* under text/arrow */
}

/* hover/focus: flip text & arrow to dark, animate sweep */
@media (hover:hover) {

    .btn-send.btn-2:hover,
    .btn-send.btn-2:focus-visible {
        color: var(--sb-thumb, #111) !important;
        filter: none;
        /* overrides the old hover filter */
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .10), 0 6px 12px rgba(0, 0, 0, .06);
    }

    .btn-send.btn-2:hover::after {
        transform: skewX(-45deg) scaleX(1);
    }
}

/* arrow follows currentColor + subtle motion */
.btn-send.btn-2 .long-arrow {
    transition:
        width .45s cubic-bezier(.22, 1, .36, 1),
        background-color .25s ease,
        border-color .25s ease;
}

@media (hover:hover) {
    .btn-send.btn-2:hover .long-arrow {
        width: 70px;
    }
}

/* pressed */
.btn-send.btn-2:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 7px rgba(0, 0, 0, .06);
}

/* accessibility niceties */
.btn-send.btn-2:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .12), 0 0 0 6px rgba(255, 255, 255, .7);
}

/* disabled: no animation */
.btn-send:disabled,
.btn-send[disabled] {
    opacity: .55;
    cursor: not-allowed;
    filter: none;
}

.btn-send:disabled::after,
.btn-send[disabled]::after {
    transform: none !important;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-send.btn-2 {
        transition: color .2s ease;
    }

    .btn-send.btn-2::after {
        transition: none;
        transform: none;
    }

    .btn-send.btn-2:hover {
        transform: none;
        box-shadow: none;
    }
}

.brochure-cta {
    background: gray;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(72px, 10vw, 96px);
    margin-top: 80px;
    padding: 0;
    z-index: 1;
}

.brochure-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    font-size: clamp(1.1rem, .9vw + 1rem, 1.6rem);
    line-height: 1;
}


.contact-button {
    text-align: right;
}

.contact-button-1 {
    margin-bottom: 80px;
}

@media (min-width: 1200px) {
    .brochure-cta {
        width: calc(100% - var(--side-w));
    }
}

@media (max-width: 1199.98px) {
    .brochure-cta {
        width: 100%;
    }
}

/* Mobile stacking */
@media (max-width: 991.98px) {
    .contact-section .container {
        padding-right: 24px;
    }

    .contact-side {
        display: none;
    }

    .contact-section .row {
        padding-top: 60px;
    }

}



/* Image anchored to LEFT instead of right */

.contact-section--reversed {
    background: #F3F3F3;
}

.contact-section--reversed .contact-side {
    inset: 0 auto 0 0;
    /* left:0; right:auto */
}

/* Give space on the LEFT for the image, not the right */
@media (min-width:1200px) {
    .contact-section--reversed .container {
        padding-left: clamp(24px, 30vw, 560px);
        padding-right: 24px;
        /* back to normal on the right */
    }
}

/* (Optional) only if you use a “reveal--cover-left” variant */
.reveal--cover-left {
    position: relative;
    overflow: hidden;
}

.reveal--cover-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(-101%);
    /* start hidden from left */
}

/* when your JS adds the in-view class, slide the cover out */
.reveal--cover-left.is-inview::before {
    transform: translateX(101%);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}


@media (min-width: 992px) {

    /* Paragraph (right column in the header row) */
    .contact-section .row.align-items-start>.col-lg-6:nth-child(2) {
        padding-left: 30px;
    }

    /* Right-side inputs: Prénom, Adresse email */
    .contact-form .row.g-4>.col-md-6:nth-child(2n) {
        padding-left: 30px;
    }
}


/* ######## 
        <!-- Footer -->
        /* ######## */


.site-footer {
    background: #2f2f2f;
    color: #e9e9e9;
    padding-block: clamp(80px, 7vw, 100px) 0;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: .75rem 0;
}

.footer-links a {
    color: #e9e9e9;
    font-weight: 600;
}

/* newsletter inputs (underlined, like screenshot) */
.footer-input {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding-left: 0;
    padding-right: 0;
}

.footer-input:focus {
    box-shadow: none;
    border-bottom-color: #fff;
    color: #fff;
}

/* subscribe row with right arrow */
.newsletter-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    padding-bottom: 1rem;
}

.newsletter-link {
    font-weight: 700;
    color: #fff;
}

.newsletter-cta .long-arrow {
    --arrow-w: 40px;
    --arrow-thick: 2px;
}

/* thin divider */
.footer-sep {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

/* social icons */
.footer-social a {
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
}

.footer-social a:hover {
    color: rgb(var(--plum-rgb));
}

/* legal bar */
.legal-bar {
    background: #fff;
    padding-block: .9rem;
    margin-top: clamp(28px, 5vw, 48px);
}

.legal-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgb(var(--plum-rgb));
    font-weight: 700;
}

/* ------------------------------------------------------------- *
 * Page follower ring
/* ------------------------------------------------------------- */

#pageFollower {
    position: fixed;
    inset: 0 auto auto 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, .38);
    /* subtle gray like your mock */
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) scale(.85);
    transition: opacity .18s ease, border-color .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
    will-change: transform, opacity;
    mix-blend-mode: multiply;
    /* keeps it tasteful on light bg */
}

#pageFollower.is-on {
    opacity: 1;
    transform: translate3d(var(--pf-x, -100px), var(--pf-y, -100px), 0) scale(1);
}

/* Don’t render on touch / coarse pointers or when user prefers less motion */
@media (hover: none),
(pointer: coarse),
(prefers-reduced-motion: reduce) {
    #pageFollower {
        display: none !important;
    }
}

/* ------------------------------------------------------------- *
 * Partner Modal
/* ------------------------------------------------------------- */

/* ===== Modal Base */
.tt-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000
}

.tt-modal.is-open {
    display: flex
}

.tt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, .35);
    backdrop-filter: blur(6px)
}

.tt-modal__dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    width: 700px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .2), 0 10px 24px rgba(0, 0, 0, .2);
}

.tt-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #f3f3f5;
    color: #333;
}

.tt-modal__close:hover {
    filter: brightness(1.03)
}

/* ===== Quote Design */
.tt-modal__quote {
    position: relative
}

.qm-quote {
    position: absolute;
    font-size: 250px;
    line-height: 1;
    color: #430A4B;
    opacity: .9;
}

.qm-quote--tl {
    top: -125px;
    left: -13px;
}

.qm-quote--br {
    right: -18px;
    top: 225px;
}

.qm-body {
    position: relative;
    z-index: 1
}

.qm-text {
    font-size: clamp(1rem, .6vw + 1rem, 1.15rem);
    color: #2b2b2b;
    line-height: 1.75;
    margin: 0 0 22px 0;
}

.qm-author {
    display: flex;
    align-items: center;
    gap: 12px
}

.qm-avatar {
    width: 120px;
    height: auto;
    object-fit: cover;
    background: #eee;
    margin-left: -20px;
}

.qm-meta {
    display: flex;
    flex-direction: column
}

.qm-name {
    font-weight: 700;
    color: #430A4B;
}

.qm-role {
    color: #8a8a8a
}


/* ===== Video Design (kept clean) */
.tt-modal__video {}

.vm-wrap {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 14px;
    overflow: hidden
}

.vm-player {
    width: 100%;
    height: 100%;
    display: block
}

.vm-meta {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: baseline
}

.vm-name {
    font-weight: 700;
    color: #101010
}

.vm-role {
    color: #8a8a8a
}

/* Small screens */
@media (max-width:575.98px) {
    .tt-modal__dialog {
        padding: 18px
    }

    .qm-quote--br {
        display: none
    }
}



/* ------------------------------------------------------------- *
 * En-tête de page
/* ------------------------------------------------------------- */


.entete-page {
    position: relative;
    color: #fff;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 150px 0 90px 0;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.entete-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 0;
    pointer-events: none;
}

.entete-page>.container {
    position: relative;
    z-index: 1;
}

.titre-page {
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    font-size: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    margin-bottom: 15px;
}

.entete-page p {
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 992px) {
    .entete-page {
        min-height: 260px;
        padding: 72px 0 48px;
    }

    .titre-page {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .entete-page {
        min-height: 220px;
        padding: 56px 0 40px;
    }

    .titre-page {
        font-size: 1.75rem;
        padding-top: 40px;
    }
}

/* ------------------------------------------------------------- *
 * section-metiers
/* ------------------------------------------------------------- */

.section-metiers {
    padding: 120px 0;
    background: #F3F3F3;
}

/* --- Header Layout --- */
.metiers-head {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 60px;
    /* Use gap instead of margin-left for better responsiveness */
}

.metiers-title {
    margin: 0;
    font-size: 2rem;
    color: var(--plum);
    white-space: nowrap;
}

.metiers-line {
    height: 1px;
    /* Smart line: grows to fill space, but capped at 470px */
    flex-grow: 1;
    max-width: 470px;
    background: rgba(0, 0, 0, .15);
    border-radius: 999px;
}

/* --- Grid System --- */
.metiers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Assuming no gap based on mockup, add gap if needed */
}

/* --- Card Styles --- */
.metier-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    isolation: isolate;
}

.metier-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
    z-index: 0;
}

.metier-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .55) 100%);
    z-index: 1;
}

.metier-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 160px 60px;
    color: #fff;
}

/* Content Typography */
.metier-content h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    padding-left: 20px;
}

/* The little square dot */
.metier-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    /* Visually aligned with first line of text */
    width: 8px;
    height: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.metier-content p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 80%;
    color: rgba(255, 255, 255, .9);
    line-height: 1.5;
}

/* Hover Effects */
@media (hover:hover) {
    .metier-card:hover .metier-bg {
        transform: scale(1.08);
    }
}

/* --- MOBILE & TABLET ADJUSTMENTS --- */
@media (max-width: 991.98px) {

    .section-metiers {
        padding: 60px 0;
    }

    /* Adjust Header */
    .metiers-head {
        gap: 20px;
        margin-bottom: 40px;
    }

    .metiers-title {
        font-size: 1.75rem;
    }

    /* Grid becomes 1 column */
    .metiers-grid {
        grid-template-columns: 1fr;
    }

    .metier-card {
        height: 240px;
        /* Slightly shorter on mobile */
    }

    /* Adjust Content Padding for smaller screens */
    .metier-content {
        padding: 100px 24px;
    }

    .metier-content h3 {
        font-size: 1.35rem;
    }

    .metier-content p {
        max-width: 100%;
        /* Use full width on mobile */
    }
}



/* ------------------------------------------------------------- *
 * expertises-section
/* ------------------------------------------------------------- */


.expertises-section {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 120px 0;
    overflow: hidden;
}

.expertises-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .78);
    pointer-events: none;
}

.expertises-section .container {
    position: relative;
    z-index: 1;
}

.ex-head {
    text-align: center;
    margin-bottom: 48px;
}

.ex-title {
    position: relative;
    display: inline-block;
    margin: 0;
    color: #431A4B;
    line-height: 1.1;
}

.ex-title::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    width: 470px;
    height: 1px;
    margin-right: 24px;
    background: #fff;
    border-radius: 999px;
    transform: translateY(-50%);
}

.ex-title-1::before {
    background: rgba(0, 0, 0, .15);
}

/* --- UPDATED GRID CSS --- */
.ex-grid {
    display: flex;
    /* Changed from grid to flex for simpler centering logic */
    flex-wrap: wrap;
    justify-content: center;
    /* This centers the items horizontally */
    gap: 28px;
}

/* Card Sizing Logic */
.expertise-card {
    text-align: center;
    padding: 24px 18px;
    border-radius: 16px;
    backdrop-filter: blur(2px);

    /* Width calculation: 
       (100% - (3 gaps * 28px)) / 4 columns 
       Use calc() to maintain strict 4-column width */
    width: calc((100% - (3 * 28px)) / 4);
    flex: 0 0 calc((100% - (3 * 28px)) / 4);
}

.ex-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin: 0 auto 18px;
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.8;
}

.ex-card-title {
    font-size: 18px;
    color: rgba(var(--plum-rgb), 1);
    margin: 0 0 15px;
}

.ex-card-text {
    font-size: 14px;
    color: #6f6f6f;
    margin: 0 0 18px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 140px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: rgba(var(--plum-rgb, 67, 10, 75), 1);
    background: rgba(67, 10, 75, .08);
    position: relative;
    transition: background-color .25s ease, transform .2s ease;
}

.btn-explore::after {
    content: "";
    width: 40px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    position: relative;
    transform: translateX(0);
    transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.btn-explore::before {
    content: "";
    position: absolute;
    right: 16px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: translateX(0) rotate(45deg);
    transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.btn-explore:hover {
    background: rgba(67, 10, 75, .12);
    transform: translateY(-1px);
}

.btn-explore:hover::after {
    transform: translateX(4px);
}

.btn-explore:hover::before {
    transform: translateX(4px) rotate(45deg);
}

/* Responsive */
@media (max-width: 1199.98px) {

    /* 2 columns on tablet */
    .expertise-card {
        width: calc((100% - 28px) / 2);
        flex: 0 0 calc((100% - 28px) / 2);
    }
}

@media (max-width: 575.98px) {
    .expertises-section {
        padding: 56px 0;
    }

    .ex-title {
        font-size: 26px;
    }

    .ex-grid {
        gap: 18px;
    }

    /* 1 column on mobile */
    .expertise-card {
        width: 100%;
        flex: 0 0 100%;
        padding: 20px 16px;
    }

    .ex-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }
}


/* ------------------------------------------------------------- *
 * secteurs-intro
/* ------------------------------------------------------------- */


.secteurs-intro {
    background: #431A4B;
    color: #fff;
    padding: 120px 0 60px 0;
    font-family: var(--ff-sans);
}

.secteurs-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
}

.secteurs-title {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
}

.secteurs-desc {
    margin: 0;
    margin-left: clamp(24px, 6vw, 120px);
    max-width: 56ch;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
    flex: 1;
}

.btn-apply {
    margin-left: auto;
    white-space: nowrap;
}

/* tablet / mobile */
@media (max-width:991.98px) {
    .secteurs-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .secteurs-desc {
        margin-left: 0;
        max-width: none;
    }

    .btn-apply {
        margin-left: 0;
    }
}

/* allow title to wrap on very small screens */
@media (max-width:575.98px) {
    .secteurs-title {
        white-space: normal;
    }
}




/* ------------------------------------------------------------- *
 * secteurs-cards-section
/* ------------------------------------------------------------- */


/* grid full-bleed */
.secteurs-cards-section {
    position: relative;
}

.secteurs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* card */
.secteur-card {
    position: relative;
    isolation: isolate;
    display: block;
    height: 420px;
    color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.secteur-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    backdrop-filter: blur(16px);
    pointer-events: none;
    z-index: 1;
}

/* bottom content row — hard-left, arrow aligned to end of text */
.secteur-meta {
    position: absolute;
    left: 30px;
    right: auto;
    bottom: 52px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px;
    z-index: 2;
}

/* caption */
.secteur-caption {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    max-width: 100%;
    border-radius: 12px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .secteur-caption {
        background: rgba(17, 17, 17, .55);
    }
}

.secteur-line {
    width: 54px;
    height: 2px;
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    display: block;
}

.secteur-title {
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

/* arrow right next to the title, aligned with last line of text */
.secteur-arrow {
    position: relative;
    align-self: flex-end;
    display: inline-block;
    width: 42px;
    height: 2px;
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    flex: 0 0 auto;
    margin-left: 6px;
    transform: translateY(-10px);
}

.secteur-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, .9);
    border-right: 2px solid rgba(255, 255, 255, .9);
    transform: translateY(-50%) rotate(45deg);
    border-radius: 1px;
}

/* hover */
@media (hover:hover) and (pointer:fine) {
    .secteur-card {
        transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    }

    .secteur-card:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .secteur-card:hover .secteur-arrow {
        transform: translateY(-10px) translateX(2px);
        /* keep -5px */
        transition: width .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1);
    }
}

/* responsive columns + taller cards */
@media (min-width:768px) {
    .secteurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .secteur-card {
        height: 520px;
    }

    .secteur-overlay {
        height: 42%;
    }

}

/* Replace the 1200px breakpoint with: */
@media (min-width:1024px) {
    .secteurs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .secteur-card {
        height: 560px;
    }

    .secteur-overlay {
        height: 35%;
    }
}

@media (min-width:1400px) {
    .secteurs-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .secteur-card {
        height: 580px;
    }

    .secteur-overlay {
        height: 32%;
    }
}

@media (min-width:1800px) {
    .secteur-card {
        height: 640px;
    }
}




/* ------------------------------------------------------------- *
 * secteurs-cards-section
/* ------------------------------------------------------------- */


/* Section shell */






/* ------------------------------------------------------------- *
 * cases-section
/* ------------------------------------------------------------- */


/* Section shell */
.cases-section-1 {
    background: #F3F3F3;
    /* page white like the mock */
    padding: 120px 0;
    font-family: var(--ff-sans);
    color: #222;
}

/* Heading */
.cases-title {
    color: var(--plum);
    margin-bottom: clamp(18px, 3vw, 28px);
}

/* List layout: 3 columns (title | thin rule | content) */
.case-list {
    display: grid;
    gap: 0;
}

.case-item {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1px 1fr;
    column-gap: 40px;
    align-items: start;
    padding: 60px 0;
}

.case-divider {
    width: 1px;
    background: rgba(0, 0, 0, .12);
    border-radius: 1px;
    align-self: stretch;
    /* stretch to the row height */
}

/* Horizontal separator between rows */
.case-sep {
    border: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 0 0 calc(minmax(220px, 320px));
}

.case-item+.case-item {
    border-top: 1px solid rgba(0, 0, 0, .10);
    padding-top: clamp(18px, 2vw, 24px);
    /* keep spacing consistent above the rule */
}

/* Left title */
.case-heading {
    margin: 0;
    color: var(--plum);
    font-weight: 600;
    line-height: 1.1;
    font-size: clamp(22px, 2.6vw, 34px);
}

/* Right body */
.case-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.case-desc {
    margin: 0;
    color: var(--body-muted);
    line-height: 1.65;
    max-width: 78ch;
}

.cases-cta {
    justify-self: end;
    /* right edge of the grid */
    align-self: center;
    /* vertical alignment (optional) */
    width: auto;
    /* prevent any 100% width from other .btn rules */
    display: inline-flex;
    /* ensure intrinsic width */
    gap: 12px;
    margin-top: 16px;
    /* spacing from rows above */
}


/* Responsive stack */
@media (max-width: 991.98px) {

    .cases-section-1 {
        padding: 60px 0;

    }

    .case-item {
        grid-template-columns: 1fr;
        row-gap: 12px;
        padding: 20px 0;
    }

    .case-divider {
        display: none;
    }

    .case-cta {
        align-self: flex-start;
    }

    .secteur-meta {
        left: 20px;
    }
}



/* ------------------------------------------------------------- *
 * Software engineering
/* ------------------------------------------------------------- */


.se-join-media {
    filter: none;
}

.se-join-media.reveal img {
    filter: none;
}

.join-section .academy-css {
    background: #292929;
}

.join-section .academy-css-h2 {
    color: #FFF;
}

.join-section .academy-css-p {
    color: #FFF;
    max-width: 70%;
}

.se-join-panel {
    background: #FFF;
}

.se-join-title {
    color: #430A4B;
}

.se-join-text {
    color: #5D5D5D;
}

@media (max-width: 991.98px) {
    .se-join-text {
        max-width: 100%;
    }

    .join-section .academy-css-p {
        max-width: 100%;
    }
}



/* ------------------------------------------------------------- *
 * solutions-section"
/* ------------------------------------------------------------- */


.solutions-section {
    position: relative;
    padding: 120px 0;
    color: #2b2230;
    background: url("../imgs/solutions-bg.png") center/cover no-repeat;
    overflow: hidden;
}

.solutions-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .9);
}

.solutions-section .container {
    position: relative;
    z-index: 1;
}

/* Header Area */
.solutions-above-content {
    margin-bottom: 80px;
}

/* The Line Decoration - now targets the title column */
.solutions-above-content .col-lg-5 {
    position: relative;
}

/*
.solutions-above-content .col-lg-5::before {
    content: "";
    position: absolute;
    left: 0;
    right: 35%;
    top: 50%;
    height: 1px;
    background: rgba(var(--plum-rgb), .18);
    transform: translateY(-50%);
    pointer-events: none;
}
*/

/* Titles */
.sol-title {
    margin: 0;
    line-height: 1.15;
    color: #4a1a56;
    font-weight: 700;
    font-size: 3rem;
}

/* Description */
.sol-description {
    color: #6f6b75;
    font-size: 15px;
    line-height: 1.7;
    padding-left: 20px;
}

.sol-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sol-description li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.sol-description li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #4a1a56;
    font-weight: 600;
}

/* Cards */
.solu-card {
    position: relative;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 8, 29, .10);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 50px 30px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;

    margin: 0 auto;
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solu-card:hover {
    box-shadow: 0 12px 34px rgba(23, 8, 29, .14);
    transform: translateY(-5px);
}

/* Desktop Only: Lift the middle card */
.solutions-section {
    --center-lift: 40px;
}

/* Card Content */
.solu-name {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #4a1a56;
}

.solu-desc {
    margin: 0 0 30px;
    font-size: 15px;
    line-height: 1.6;
    color: #6f6b75;
    flex-grow: 1;
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 991.98px) {

    .solutions-section {
        padding: 60px 0;
    }

    .solutions-above-content {
        margin-bottom: 40px;
    }

    /* Hide the decorative line on mobile */
    .solutions-above-content .col-lg-5::before {
        display: none;
    }

    .sol-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    /* Stack description below title on mobile */
    .sol-description {
        padding-left: 0;
        font-size: 14px;
    }

    .solu-card {
        min-height: auto;
        height: auto;
        width: 100%;
        max-width: 100%;
        padding: 40px 24px;
    }

    .solu-desc {
        font-size: 14px;
        margin-bottom: 24px;
        min-height: 0;
    }

    .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }
}

/* ------------------------------------------------------------- *
 * insights
/* ------------------------------------------------------------- */

#insights {
    padding: 120px 0;
    background: #1f1f21;
}

/* section bg */

.h-460 {
    min-height: 460px;
}

.insight-stage {
    position: relative;
    overflow: hidden;
}

.insight-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
}

.divider-50 {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, .18);
}

.insight-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}


.insight-pane {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 180px 60px;
}

.btn-plum {
    background: linear-gradient(90deg, #b390b4 0%, #5b2a66 100%);
    color: #fff;
    border: 0;
}

.btn-plum:hover {
    filter: brightness(1.05);
    color: #fff;
}

.nav-36 {
    width: 36px;
    height: 36px;
}

/* Container positioning */
#insights .carousel-indicators {
    position: static;
    /* Keeps it in the flow below the slider */
    justify-content: center;
    margin: 50px 0 0 0;
    gap: 0;
    /* We use margin on the buttons instead for the new design */
}

/* 1. The Clickable Button (Invisible Container) 
   Replaces: .wb-controls .wb-dot 
*/
#insights .carousel-indicators button {
    /* --- Reset Bootstrap Defaults --- */
    text-indent: 0;
    opacity: 1;
    border: 0;

    /* --- New Design Layout --- */
    position: relative;
    width: 18px;
    /* Larger hit area */
    height: 18px;
    padding: 0;
    margin: 0 6px;
    /* Spacing */
    background: transparent;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

/* 2. The Actual Visible Dot 
   Replaces: .wb-controls .wb-dot::before
*/
#insights .carousel-indicators button::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    /* Inactive color */
    transition: transform .2s ease, background-color .2s ease;
}

/* 3. The Active State
   Replaces: .wb-controls .wb-dot.is-active::before
   Note: We use .active because that is what Bootstrap/Our JS applies.
*/
#insights .carousel-indicators button.active::before {
    background: #fff;
    transform: scale(1.7);
    /* Scales to approx 10.2px */
}


.insight-pane>.d-flex.align-items-center {
    width: 100%;
}


.insight-pane>.d-flex.align-items-center>button:first-of-type,
.insight-pane>.d-flex.align-items-center>.d-flex:last-child {
    margin-left: auto;
}

.insight-p {
    margin-bottom: 60px;
}


/* header row layout */
.insights-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    /* keeps your existing spacing */
}

/* right-side pills */
.insights-filters {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    /* push to the right */
}

.filter-pill {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-family: var(--ff-sans);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 13px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .2s var(--ease-out), filter .2s var(--ease-out);
}

.filter-pill:hover {
    filter: brightness(1.05);
}

.filter-pill.is-active,
.filter-pill.active {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: #292929;
}

@media (max-width: 991.98px) {

    /* 1. Reset Section Padding */
    #insights {
        padding: 60px 0;
    }

    /* 2. Header Layout */
    .insights-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        overflow: hidden;
        /* Prevent horizontal scrollbar on body */
    }

    .insights-intro {
        width: 100%;
        padding-right: 15px;
        /* Prevent text hitting edge */
    }

    /* 3. FIX: Scrollable Filters (Full Bleed) */
    .insights-filters {
        display: flex;
        justify-content: flex-start;
        align-items: center;

        /* Break out of container margins to touch screen edges */
        width: 100vw;
        margin-left: -15px;
        /* Assumes standard bootstrap gutter */
        padding-left: 0;
        /* Visual alignment for first item */
        padding-right: 20px;
        /* Space at the end */
        padding-bottom: 4px;
        /* Avoid border clipping */

        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */

        gap: 10px;
        /* Tighter gap */
    }

    .insights-filters::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    /* 4. Tweak Buttons for Mobile */
    .filter-pill {
        flex-shrink: 0;
        /* Prevent squashing */
        padding: 11px 20px;
        /* Reduced padding (was 30px) to fit more */
        font-size: 14px;
    }

    /* 5. The Stage (Card Container) */
    .h-460 {
        min-height: auto;
    }

    .insight-stage {
        display: flex;
        flex-direction: column;
        background: #2b2b2b;
        border-radius: 12px;
        margin-top: 10px;
    }

    /* 6. The Image (Banner Style) */
    .insight-bg {
        position: relative;
        height: 200px;
        width: 100%;
        inset: auto;
        filter: grayscale(0);
        background-position: top center;
    }

    /* 7. Content Layout */
    .insight-stage .position-absolute.top-0 {
        position: relative !important;
        height: auto !important;
    }

    .insight-pane {
        padding: 24px;
        height: auto;
    }

    .insight-mask {
        display: none;
    }

    /* No dark overlay needed on solid bg */

    .insight-p {
        margin-bottom: 30px;
        font-size: 14px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* 8. Controls Layout */
    .insight-pane>.d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 20px !important;
    }

    .insight-pane>.d-flex.align-items-center>button:first-of-type,
    .insight-pane>.d-flex.align-items-center>.d-flex:last-child {
        margin-left: 0;
    }

    .insight-pane .d-flex.align-items-center .d-flex {
        margin-left: auto;
        /* Push arrows to right */
    }

    .btn-apply {
        width: 100%;
        justify-content: center;
    }
}

/* stack nicely on small screens */
@media (max-width: 767.98px) {
    .insights-head {
        flex-wrap: wrap;
    }

    .insights-filters {
        margin-left: 0;
        gap: 12px;
    }
}


/* ------------------------------------------------------------- *
 * themes-section
/* ------------------------------------------------------------- */


/* Section bg & spacing */
.themes-section {
    background: var(--soft-bg);
    padding: 120px 0;
    font-family: var(--ff-sans);
    color: #222;
}

/* Larger container for this section to allow hover effects */
.themes-section .container {
    max-width: 1500px;
}

/* Increased gap between cards to accommodate button hover */
.themes-section .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

@media (min-width: 992px) {
    .themes-section .row {
        --bs-gutter-x: 3rem;
        --bs-gutter-y: 3rem;
    }
}

/* Titre centré avec trait fin à gauche uniquement */
.themes-section .section-title {
    position: relative;
}

.themes-section .section-title h2 {
    color: var(--plum);
}

.themes-section .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    right: 65%;
    top: 50%;
    height: 1px;
    background: rgba(var(--plum-rgb), .18);
    transform: translateY(-50%);
}

@media (max-width: 767.98px) {
    .themes-section .section-title::before {
        display: none;
    }
}

/* Items */
.theme-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 10px;
}

.theme-item .ti-icn {
    display: flex;
    justify-content: center;
}

.theme-item .ti-icn img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) opacity(.55);
}

.theme-item .ti-desc {
    color: var(--body-muted);
    margin-bottom: 2rem;
    font-size: 15px;
    flex-grow: 1;
}

.theme-item h6 {
    color: var(--plum);
    margin-bottom: 10px;
}

/* Support for 5 columns layout */
@media (min-width: 992px) {
    .row-cols-lg-5>* {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Bouton pilule blanc + pastille violette */
.btn-chip {
    --h: 44px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: var(--h);
    padding: 0 14px 0 18px;
    border-radius: 999px;
    background: var(--ink);
    border: 1px solid var(--panel);
    color: var(--plum);
    font-weight: 600;
    text-decoration: none;
    transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.btn-chip .chip-arrow {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--plum);
    color: var(--ink);
}

.btn-chip:hover {
    transform: translateY(-1px);
    background: var(--ink);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-chip {
        transition: none !important;
    }
}

/* ------------------------------------------------------------- *
 * webinars-section
/* ------------------------------------------------------------- */

/* Section skin (dark like your INSIGHTS) */
.webinars-section {
    background: #1f1f21;
    padding: clamp(48px, 5vw, 92px) 0;
    font-family: var(--ff-sans);
    color: var(--ink);
}

/* Head CTA (pill with long arrow) */
.btn-pill {
    --h: 26px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: var(--h);
    padding: 14px 30px;
    border-radius: 999px;
    background: rgba(var(--plum-rgb), .28);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
    background-color: var(--av-green) !important;
}

.btn-pill .long-arrow {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--plum-rgb), .65);
    position: relative;
}

.btn-pill .long-arrow::before {
    content: "";
    position: absolute;
    left: -14px;
    right: 14px;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, .65);
    transform: translateY(-50%);
    border-radius: 2px;
}

.btn-pill:hover {
    transform: translateY(-1px);
    background: rgba(var(--plum-rgb), .4);
}

/* Slider track */
.wb-slider {
    position: relative;
    overflow: hidden;
    /* Hide horizontal scrollbar everywhere */
}

.wb-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(86vw, 520px);
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/old Edge */
}

.wb-track::-webkit-scrollbar {
    display: none;
}

/* right edge fade */
.wb-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 58px;
    right: 0;
    width: 140px;
    background: linear-gradient(90deg, rgba(31, 31, 33, 0) 0%, rgba(31, 31, 33, .9) 80%);
    pointer-events: none;
}

/* Card */
.wb-card {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #222;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
    background-size: cover;
    background-position: center;
}

.wb-card::before {
    /* media */
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    filter: brightness(.82) saturate(1.05);
    z-index: 0;
}

.wb-card::after {
    /* bottom gradient */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .62) 100%);
    z-index: 1;
}

.wb-badge {
    position: absolute;
    left: 21px;
    top: 24px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    color: #e7e7ea;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Title + (optional) description, stacked above CTAs */
.wb-info {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 110px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wb-title {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}

.wb-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .92);
    max-width: 85%;
}

/* CTAs row */
.wb-ctas {
    position: absolute;
    left: 32px;
    bottom: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 2;
}

/* Glassy chips */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    color: #f0eef2;
    text-decoration: none;
    font-weight: 600;
    background: #A9B142;
    backdrop-filter: blur(6px);
    transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
    border: 1px solid rgba(255, 255, 255, .12);
}

.btn-glass.alt {
    background: rgba(255, 255, 255, .12);
}

.btn-glass:hover {
    background: rgb(205, 215, 73, 0.8);
    transform: translateY(-1px);
}

/* Top-right capsule CTA styling */
.btn-pill {
    background: rgba(var(--plum-rgb), .35);
}

.btn-pill .long-arrow {
    background: rgba(var(--plum-rgb), .85);
}

.btn-pill .long-arrow::before {
    background: rgba(255, 255, 255, .75);
}

/* CONTROLS */
.wb-controls {
    gap: 5rem;
    padding-right: 120px;
    padding-top: 40px;
}

.wb-controls .wb-dot {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0 6px;
    border: 0;
    background: transparent;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wb-controls .wb-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transition: transform .2s ease, background-color .2s ease;
}

.wb-controls .wb-dot.is-active::before {
    background: #fff;
    transform: scale(1.7);
}

.wb-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #eee;
    color: #232326;
}

.wb-arrow.right {
    background: rgb(205, 215, 73);
    color: var(--ink);
}

.wb-arrow:hover {
    filter: brightness(1.05);
}


/* --- MOBILE OPTIMIZATIONS (FIXED) --- */
@media (max-width: 991.98px) {

    /* 1. Section Padding */
    .webinars-section {
        padding: 60px 0;
    }

    /* 2. Header Layout */
    .wb-head {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .wb-head .pe-lg-5 {
        padding-right: 0 !important;
    }

    .wb-cta {
        width: 100%;
        justify-content: center;
    }

    /* 3. Slider Track Sizing */
    .wb-track {
        grid-auto-columns: 85vw;
        gap: 16px;
        padding-bottom: 0;
    }

    /* 4. Controls Layout */
    .wb-controls {
        padding-right: 0;
        padding-top: 30px;
        justify-content: space-between !important;
        width: 100%;
    }

    .wb-dots {
        flex-shrink: 0;
    }

    /* --- 5. CARD CONTENT STACK --- */

    .wb-card {
        /* KEY FIX: Change from Landscape (16/10) to Portrait (3/4) */
        aspect-ratio: 3 / 4;
        min-height: 420px;
        /* Force it tall enough for all text */

        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* Align content to bottom */
        align-items: flex-start;
        padding: 24px 20px;
    }

    /* Make the dark gradient cover the whole card so white text is readable anywhere */
    .wb-card::after {
        height: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .85) 90%);
    }

    /* Reset Badge Position to flow naturally */
    .wb-badge {
        position: relative;
        inset: auto;
        margin-bottom: 12px;
        align-self: flex-start;
    }

    /* Reset Info Block */
    .wb-info {
        position: relative;
        inset: auto;
        width: 100%;
        gap: 12px;
        margin-bottom: 24px;
        /* Space before buttons */
    }

    /* Reset CTAs */
    .wb-ctas {
        position: relative;
        inset: auto;
        width: 100%;
    }

    /* Text Sizing */
    .wb-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .wb-desc {
        font-size: 14px;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        /* Allow 4 lines of text now that we have height */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 575.98px) {
    .wb-slider::after {
        width: 60px;
    }
}

/* ------------------------------------------------------------- *
 * parcours-section
/* ------------------------------------------------------------- */

.parcours-section {
    padding: 120px 300px;
    font-family: var(--ff-sans);
}

/* ===== Grid (12 cols) =====
   Row 1 → intro(4) | card1(4) | card2(4)
   Row 2 → card3(4) | card4(4) | card5(4)
*/
.steps-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 60px;
}

/* Intro (left) */
.parcours-intro {
    grid-column: 1 / span 4;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 6%;
}

.parcours-intro p {
    color: var(--body-muted);
}

/* Row 1 cards */
.steps-grid>.step-card:nth-of-type(1) {
    grid-column: 5 / span 4;
}

/* Candidature   */
.steps-grid>.step-card:nth-of-type(2) {
    grid-column: 9 / span 4;
}

/* Entretien     */

/* Row 2 cards */
.steps-grid>.step-card:nth-of-type(3) {
    grid-column: 1 / span 4;
}

/* Onboarding    */
.steps-grid>.step-card:nth-of-type(4) {
    grid-column: 5 / span 4;
}

/* Formation     */
.steps-grid>.step-card:nth-of-type(5) {
    grid-column: 9 / span 4;
}

/* Rencontre     */

/* ===== Card visuals (centered) ===== */
.step-card {
    background: #F9F9F9;
    border-radius: 24px;
    padding: 30px;
    /* uniform padding */
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ⬅ center horizontally */
    justify-content: center;
    /* ⬅ center vertically */
    text-align: center;
    /* ⬅ center text */
    transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.step-icn {
    width: 60px;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0) opacity(.55);
    margin: 0 auto 16px;
    /* center + spacing */
}

.step-rule {
    display: block;
    width: 56px;
    height: 2px;
    border-radius: 999px;
    background: rgba(var(--plum-rgb), .18);
    margin: 10px auto 14px;
    /* center the rule */
}

.step-title {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    max-width: 80%;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .parcours-intro {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .steps-grid>.step-card {
        grid-column: auto;
    }

    /* let cards flow */
}

@media (max-width: 575.98px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE ONLY FIX */
@media (max-width: 575.98px) {

    /* section padding */
    .parcours-section {
        padding: 40px 0;
    }

    .parcours-intro h2 {
        font-size: 32px;
    }


    /* intro first */
    .parcours-intro {
        grid-column: 1 / -1 !important;
        order: -1;
        /* appear first */
        text-align: left;
        padding-right: 0;
    }

    /* cards stacked one by one */
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .steps-grid>.step-card {
        grid-column: 1 / -1 !important;
    }
}



/* New number part */

.steps-grid {
    counter-reset: step;
}

.step-card {
    position: relative;
    overflow: visible;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -16px;
    left: -0;
    font-family: var(--ff-sans);
    font-weight: 600;
    font-size: 82px;
    line-height: .85;
    letter-spacing: -2px;
    color: #DFDFDF;
    pointer-events: none;
    z-index: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}

.step-icn,
.step-rule,
.step-title,
.step-card p {
    position: relative;
    z-index: 1;
}

.step-icn {
    width: 60px;
    height: auto;
    margin: 0 auto 14px;
    filter: grayscale(1) brightness(0) opacity(.55);
}

.step-rule {
    width: 56px;
    height: 2px;
    margin: 8px auto 12px;
    background: rgba(var(--plum-rgb), .18);
}

.step-title {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 16px;
    color: #4a4a4a;
}

.step-card p {
    font-size: 14px;
    max-width: 80%;
}

@media (max-width:991.98px) {
    .step-card::before {
        top: -24px;
        left: -12px;
        font-size: clamp(44px, 9vw, 72px);
    }
}

@media (max-width:575.98px) {
    .step-card::before {
        top: -18px;
        left: -6px;
        font-size: 6rem;
        letter-spacing: -1px;
    }
}



@media (min-width: 576px) {
    .parcours-section {
        padding: 80px 32px;
    }
}

/* desktop: keep the big insets from the mock */
@media (min-width: 1200px) {
    .parcours-section {
        padding: 120px 300px;
    }
}


/* ------------------------------------------------------------- *
 * jobs-section
/* ------------------------------------------------------------- */


/* Section */
.jobs-section {
    background: #2a2a2c;
    /* close to mock; keep your dark vibe */
    padding: 120px 0;
    font-family: var(--ff-sans);
    color: var(--ink);
}

/* A11y helper */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.jobs-section .h3 {
    margin-bottom: 40px;
    font-weight: 500;
}

/* Filters row */
.jobs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

/* search pill with icon button */
.search-control {
    display: flex;
    align-items: center;
    background: #3a3a3d;
    border-radius: 10px;
    height: 42px;
    padding: 0 0 0 14px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.search-control input {
    background: transparent;
    border: 0;
    outline: 0;
    color: #eae9ee;
    width: min(52vw, 420px);
}

.search-control input::placeholder {
    color: #bfbfc7;
}

.search-control .search-btn {
    width: 60px;
    height: 41px;
    border-radius: 10px;
    border: 0;
    background: #DEDEDE;
    color: #292929;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* native select styled like chips */
.sel {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #DEDEDE;
    color: #292929;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    height: 42px;
    padding: 0 115px 0 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23292929' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 991.98px) {
    .jobs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.job-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    background: #222;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
    isolation: isolate;
}

.job-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: inherit;
    filter: brightness(.82) saturate(1.05);
    z-index: 0;
}

/* subtle dark gradient */
.job-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 60% at 100% 100%, rgba(67, 10, 75, .35) 0%, rgba(67, 10, 75, 0) 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75) 100%);
    z-index: 1;
}

.jc-body {
    position: relative;
    z-index: 2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.jc-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

.jc-desc {
    margin: 0;
    color: #d4d2d7;
    font-size: .9rem;
}

/* Apply button (pill + long arrow) */
.btn-apply {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    gap: 10px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .18s var(--ease-out), background-color .18s var(--ease-out);
}

.btn-apply:hover {
    transform: translateY(-1px);
    background: var(--pill-hover);
}



/* Bottom CTA */
.btn-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 18px 0 16px;
    border-radius: 999px;
    background: rgba(var(--plum-rgb), .35);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .18s var(--ease-out), transform .18s var(--ease-out);
    border: 1px solid rgba(255, 255, 255, .08);
}

.btn-all:hover {
    transform: translateY(-1px);
    background: rgba(var(--plum-rgb), .5);
}

.btn-all .long-arrow::before {
    background: #fff;
    left: -12px;
    right: 14px;
}

.btn-all .long-arrow::after {
    border-left-color: #fff;
}


.jobs-head {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

/* kill the big bottom margin only in the header row */
.jobs-head .h3 {
    margin: 0;
    font-weight: 600;
    /* optional: a bit bolder like mock */
}

.jobs-desc {
    margin: 0 0 0 auto;
    /* push to the right */
    max-width: 25%;
    line-height: 1.55;
    color: var(--muted);
    /* uses your existing var */
}

/* Stack on tablet/mobile */
@media (max-width: 992px) {
    .jobs-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .jobs-desc {
        margin: 0;
        max-width: none;
    }
}

/* ------------------------------------------------------------- *
 * temoignages
/* ------------------------------------------------------------- */


/* ===== Section shell + BG veil ===== */
.tst-section {
    position: relative;
    padding: 120px 0;
    font-family: var(--ff-sans);
    color: var(--ink);
    overflow: hidden;
}



.tst-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--tst-bg);
    background-size: cover;
    background-position: center;
    filter: grayscale(.05) brightness(1.08) saturate(1.02);
    opacity: .28;
    z-index: 0;
}

.tst-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .60);
    pointer-events: none;
    z-index: 1;
}

.tst-title,
.tst-slider {
    position: relative;
    z-index: 2;
}

.tst-title {
    margin-bottom: 40px;
}

/* ===== Slide layout (single item per slide) ===== */
.tst-item {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 220px;
    margin-left: 150px;
    overflow: visible;
}

.tst-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: visible;
    /* <-- was hidden */
    z-index: 5;
}

.tst-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.tst-avatar::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    width: clamp(32px, 6.5vw, 56px);
    aspect-ratio: 1;
    background: url("../imgs/quote.png") no-repeat center / contain;
    z-index: 20;
    /* higher than img & neighbors */
    pointer-events: none;
}

.tst-copy {
    max-width: 720px;
}

.tst-name {
    margin: 0 0 8px;
    color: var(--plum);
}

.tst-role {
    color: rgba(var(--plum-rgb), .95);
    font-weight: 600;
    margin-bottom: 10px;
}

.tst-text {
    margin: 0;
    color: #5D5D5D;
    line-height: 1.65;
}

/* ===== Control bar: left arrows • center dots • right CTA ===== */
.tst-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 108px
}

.tst-controls {
    --cluster-gap: 280px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 250px;
    padding: 0;
    width: 100%;
}

.tst-cluster {
    display: flex;
    align-items: center;
    gap: var(--cluster-gap);
    min-width: 0
}

.tst-arrows {
    display: flex;
    gap: 10px;
    margin: 0
}

.tst-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter .18s var(--ease-out)
}

.tst-arrow.left {
    background: #fff;
    color: var(--plum)
}

.tst-arrow.right {
    background: var(--plum);
    color: #fff
}

.tst-arrow:hover {
    filter: brightness(1.05)
}

.tst-dots {
    display: flex;
    gap: 8px;
    margin: 0
}

.tst-dots [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    border: 0;
    opacity: 1
}

.tst-dots .active {
    background: #fff;
    transform: scale(1.05)
}

/* --- MOBILE & TABLET FIXES --- */
@media (max-width: 991.98px) {

    /* 1. Reset Section Padding */
    .tst-section {
        padding: 60px 0;
    }

    /* 2. Fix Slide Layout (Stack Vertical) */
    .tst-item {
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        /* Remove the large desktop indent */
        gap: 20px;
        padding: 0 15px;
        /* Safe area */
    }

    /* 3. Avatar Sizing */
    .tst-avatar {
        width: 120px;
        height: 120px;
        margin: 0 auto;
        /* Center the image */
    }

    /* Adjust Quote Icon Position for smaller avatar */
    .tst-avatar::after {
        top: -5px;
        left: -5px;
        width: 30px;
    }

    /* 4. Text Adjustments */
    .tst-copy {
        max-width: 100%;
    }

    .tst-text {
        font-size: 15px;
        /* Slightly smaller for reading */
    }

    /* 5. Control Bar Redesign */
    .tst-slider {
        padding-bottom: 0;
        /* Remove desktop bottom padding */
    }

    .tst-controls {
        position: static;
        /* Remove absolute positioning */
        flex-direction: column;
        gap: 25px;
        margin-top: 40px;
    }

    /* Reset the cluster (Arrows + Dots) to stack or row */
    .tst-cluster {
        flex-direction: column-reverse;
        /* Put dots above arrows if desired, or row */
        gap: 20px;
        width: 100%;
        justify-content: center;
    }

    .tst-dots {
        margin-bottom: 10px;
        /* Space between dots and arrows */
    }

    /* Ensure CTA button is centered and visible */
    .cases-cta {
        width: auto;
        padding: 0.8rem 2rem;
    }
}

@media (max-width:575.98px) {
    .tst-controls {
        flex-direction: column;
        gap: 12px
    }
}



/* ------------------------------------------------------------- *
 * vision
/* ------------------------------------------------------------- */


/* Section band + rhythm */
.vision-section {
    background: #fff;
    padding: 120px 0;
    font-family: var(--ff-sans);
    color: #222;
}

/* Media block */
.vision-media {
    margin: 0;
    overflow: hidden;
}

.vision-media img {
    display: block;
    width: 100%;
    object-fit: cover;
    height: 600px;
    padding-right: 100px;
}

/* Text styles */
.vision-title {
    color: var(--plum);
    margin-bottom: 30px;
}

.vision-copy {
    max-width: 56ch;
    /* comfortable line length */
}

.vision-copy p {
    margin: 0 0 20px;
    color: var(--body-muted);
    line-height: 1.65;
    max-width: 60%;
    font-weight: 400;
}

/* Stack nicely on mobile */
@media (max-width: 991.98px) {
    .vision-title {
        margin-top: 4px;
    }
}


/* ------------------------------------------------------------- *
 * edu-partners
/* ------------------------------------------------------------- */


/* Split section unchanged */
.edu-partners {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    overflow: hidden;
    background: #FFF;
    /* page wrap variables for desktop alignment */
    --wrap: 1140px;
}

@media (min-width: 1400px) {
    .edu-partners {
        --wrap: 1320px;
    }
}

/* DESKTOP LOGIC: 
   The container acts as the left column content wrapper.
   We use calc() to mimic the site's container alignment while keeping the split layout.
*/
.edu-partners>.container {
    grid-column: 1 / 2;
    margin: 0;
    /* Calculate left padding to match site container, hard pad right */
    padding-left: max(16px, calc((100vw - var(--wrap)) / 2));
    padding-right: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    /* Vertically center the text block */
}

.edu-panel {
    padding: 120px 0;
    width: 100%;
    max-width: 580px;
    /* Stop text from getting too wide on huge screens */
}

.edu-media {
    position: relative;
    grid-column: 2 / 3;
    z-index: 1;
    /* Ensure it has a minimum height on desktop so it doesn't collapse if text is short */
    min-height: 500px;
    height: 100%;
    overflow: hidden;
    /* clean edges */
}

/* The Reveal Wrapper (GSAP creates this) */
.edu-media .reveal {
    width: 100%;
    height: 100%;
}

/* The Image - Absolute Positioning Trick */
.edu-media img {
    position: absolute;
    /* Takes image out of flow so it doesn't push height */
    inset: 0;
    /* top:0, right:0, bottom:0, left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures it covers the area without distortion */
    display: block;
}

/* Mobile: Fixed height banner */
@media (max-width: 991.98px) {
    .edu-media {
        min-height: 300px;
        /* Force a reasonable height on mobile */
        height: 300px;
        /* Stop it from growing */
    }
}

.edu-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .1);
    pointer-events: none;
}

/* Typography */
.edu-title {
    color: var(--plum);
    /* Ensure var is defined */
    margin: 0 0 40px;
}

.edu-lead {
    margin: 0 0 20px;
    color: var(--body-muted, #666);
    font-size: 1.1rem;
    font-weight: 500;
}

.edu-text {
    margin: 0 0 32px;
    color: var(--body-muted, #666);
    line-height: 1.6;
}

/* List Styling */
.edu-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.edu-points li {
    position: relative;
    padding-left: 18px;
}

.edu-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 4px;
    width: 2px;
    border-radius: 999px;
    background: #d6d6d6;
}

.edu-points span {
    display: block;
    font-weight: 600;
    color: var(--plum, #333);
}


/* --- MOBILE FIXES --- */
@media (max-width: 991.98px) {

    .edu-partners {
        /* Switch to 1 column */
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        /* Image then text */
    }

    /* 1. Reset the complex container logic */
    .edu-partners>.container {
        grid-column: 1 / -1;
        /* Span full width */
        padding-left: 20px;
        /* Standard mobile padding */
        padding-right: 20px;
        order: 2;
        /* Text goes below image */
    }

    /* 2. Fix the Panel Layout */
    .edu-panel {
        width: 100%;
        /* Allow full width */
        max-width: none;
        padding: 60px 0;
        /* Reduce vertical whitespace */
    }

    /* 3. Handle the Image */
    .edu-media {
        grid-column: 1 / -1;
        height: 300px;
        /* Fixed height for mobile banner */
        min-height: auto;
        order: 1;
        /* Image goes on top */
    }

    .edu-title {
        margin-bottom: 24px;
        font-size: 24px;
    }
}


/* ------------------------------------------------------------- *
 * leaders-section
/* ------------------------------------------------------------- */


.av-leaders-section {
    padding: 100px 0;
    background-color: #fcfcfd;
    /* Very subtle off-white for depth */
    font-family: var(--ff-sans);
}

/* =========================================
   RESTORED HEADER STYLING
   ========================================= */
.leaders-head {
    position: relative;
    text-align: center;
    margin-bottom: 80px;
}

.leaders-head::before {
    content: "";
    position: absolute;
    left: 0;
    right: 70%;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, .12);
    transform: translateY(-50%);
}

@media (max-width:767.98px) {
    .leaders-head::before {
        display: none;
    }
}

.leaders-title {
    margin: 0;
    color: #430A4B;
    /* Brand Plum */
    font-weight: 800;
    line-height: 1.1;
    font-size: 2.5rem;
}

/* =========================================
   GRID & CARD STYLING (Modern)
   ========================================= */
.av-leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

@media (max-width: 1199.98px) {
    .av-leaders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 30px;
    }
}

@media (max-width: 767.98px) {
    .av-leaders-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.av-leader-card {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.av-leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 10, 75, 0.08);
    border-color: #AEBF38;
    /* Brand Lime */
}

/* Top accent line on hover */
.av-leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #AEBF38;
    /* Brand Lime */
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.av-leader-card:hover::before {
    transform: scaleX(1);
}

/* Image Wrapper (1:1 Ratio for 200x200) */
.av-leader-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f4f4f6;
}

.av-leader-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.av-leader-card:hover .av-leader-img-wrap img {
    transform: scale(1.08);
}

/* Content */
.av-leader-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.av-leader-name {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #430A4B;
    /* Brand Plum */
}

.av-leader-role {
    color: #AEBF38;
    /* Brand Lime */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.av-leader-quote {
    margin-top: auto;
    position: relative;
    padding-top: 16px;
    border-top: 1px solid #f0f0f4;
}

.av-leader-quote i {
    position: absolute;
    top: 20px;
    left: 0;
    color: #f0f0f4;
    font-size: 1.5rem;
    z-index: 0;
}

.av-leader-quote p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 1;
    padding-left: 10px;
}


/* ------------------------------------------------------------- *
 * partners-section--merge
/* ------------------------------------------------------------- */



.cases-section {
    background: #f3f3f3;
    padding: 120px 0;
    font-family: var(--ff-sans);
}

.cases-title {
    font-weight: 600;
    font-size: 28px;
    color: #2c2030;
    margin: 0 0 18px;
}

/* Wrapper */
.tm-slider {
    position: relative;
    padding: 40px 120px 20px;
}

/* Slide grid */
.tm-slide {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.tm-right {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical center */
    height: 100%;
}

@media (max-width:768px) {
    .tm-right {
        justify-content: flex-start;
    }

    /* back to normal on mobile */
}

/* Left column (quote + bubble) */
.tm-left {
    position: relative;
    isolation: isolate;
    min-height: 140px;
    padding-top: 32px;
    /* room for quote to float */
}

.tm-quoteMark {
    position: absolute;
    left: 42px;
    /* 30px card offset + a bit */
    top: 0;
    /* slight overlap */
    width: 56px;
    pointer-events: none;
    z-index: 3;
    /* above card & tail */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .08));
}

.case-card {
    position: relative;
    z-index: 1;
    /* below the quote */
    margin-left: 30px;
    width: 220px;
    min-height: 120px;
    padding: 30px 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.case-card::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, .22);
    border-top: 1px solid rgba(0, 0, 0, .22);
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
    z-index: 0;
}

.case-logo {
    display: block;
    max-width: 220px;
    height: auto;
    position: relative;
    z-index: 0;
}

/* Right column copy */
.tm-lead {
    margin: 0 0 10px;
    color: #3b2a42;
    font-size: 16px;
    line-height: 1.6;
}


/* CTA + arrows */
.tm-cta-bar {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-top: 18px;
    width: fit-content;
    margin-right: auto;
}

.tm-arrows {
    display: flex;
    gap: 8px;
    margin-left: 6px;
}

.tm-arrow {
    width: 35px;
    height: 35px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
    color: rgb(67, 10, 75);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
    transition: background-color .28s ease, color .28s ease,
        transform .28s cubic-bezier(.22, 1, .36, 1),
        box-shadow .28s ease;
}

.tm-arrow--next {
    background: rgb(205, 215, 73, 0.8);
    color: #fff;
    border-color: transparent;
}

.tm-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
}

.tm-arrow:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
}

/* Prevent next slide from peeking */
#casesCarousel .carousel-inner,
#casesCarousel .carousel-item {
    overflow: hidden;
}

/* Ensure content shows inside Bootstrap carousel */
#casesCarousel .carousel-item .tm-slide {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* Desktop alignment: place CTA under text column */
@media (min-width:769px) {
    .tm-cta-bar {
        margin-left: 427px;
    }
}

/* Tablet / Mobile */
@media (max-width:768px) {
    .tm-slide {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tm-right {
        max-width: 100%;
    }

    .tm-cta-bar {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        gap: 12px;
    }

    .tm-arrows {
        align-self: flex-end;
    }

    .tm-arrow {
        width: 40px;
        height: 40px;
    }
}

/* =========================
   Merged partners + cases (this page only)
========================= */
.partners-section--merge {
    padding: 80px 0 120px;
}

.partners-section--merge .ex-title {
    color: var(--plum);
    margin-bottom: 30px !important;
}

.partners-section--merge .ex-title::before {
    display: none;
}

.partners-section--merge .partners-cut {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, .12);
    margin: 24px 0 18px;
}

.partners-section--merge .tm-slider {
    padding: 60px 0 0;
}

.partners-section--merge .tm-right {
    max-width: 80%;
}

.partners-section--merge .cases-cta {
    margin-top: 0;
}


/* --- MOBILE OPTIMIZATIONS (Title Left, Content Centered) --- */
@media (max-width: 991.98px) {

    /* 1. Reset Section Spacing */
    .partners-section--merge {
        padding: 60px 0;
    }

    /* 2. Reset Container Padding */
    .partners-section--merge .container {
        padding-right: 12px;
    }

    /* 3. Title & Description -> ALIGN LEFT */
    .partners-section--merge .ex-title {
        font-size: 24px;
        margin-bottom: 16px !important;
        text-align: left;
    }

    .partners-section--merge .intro-text {
        font-size: 15px;
        text-align: left;
    }

    .partners-section--merge .intro-text br {
        display: none;
    }

    /* 4. Carousel Content -> ALIGN CENTER */
    .partners-section--merge .tm-slide {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 24px;
        padding: 0 10px;
        margin-top: 20px;
    }

    .partners-section--merge .tm-left {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .partners-section--merge .tm-right {
        width: 100%;
        max-width: 100%;
    }

    .partners-section--merge .tm-lead {
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
        margin: 0 auto;
    }

    /* 5. CTA Bar -> FORCE CENTER */
    .partners-section--merge .tm-cta-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Centers the button and arrow wrapper */
        justify-content: center !important;
        width: 100%;
        margin-top: 40px;
    }

    /* The Button */
    .partners-section--merge .cases-cta {
        display: inline-flex !important;
        justify-content: center !important;
        /* Centers text inside button */
        width: 100% !important;
        /* Makes button span full width */
        max-width: 320px;
        /* Optional: Prevents it from getting too huge */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* The Arrows */
    .partners-section--merge .tm-arrows {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        gap: 16px;
        margin-top: 24px;
        /* Space between button and arrows */
    }
}

@media (min-width:1200px) {
    .partners-section--merge .container {
        padding-right: 260px;
    }
}


/* ------------------------------------------------------------- *
 * presse-section
/* ------------------------------------------------------------- */

.presse-section {
    background: #f6f6f7;
    padding: 120px 0;
}

/* Head row */
.presse-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 24px;
    margin-bottom: 28px;
}

.presse-intro .h3 {
    color: var(--plum);
    margin: 0 0 20px;
}

.presse-sub {
    margin: 0 0 30px;
    color: #6b6b73;
}



.press-btn {
    margin-top: 0;
}

/* Utility long arrow (uses currentColor) */
.long-arrow {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.long-arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
}

/* Cards grid */
.presse-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 24px;
}

@media (max-width: 1199.98px) {
    .presse-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .presse-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .presse-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.press-card {
    background: #f6f6f7;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    transition: transform .18s var(--ease-out, cubic-bezier(.22, 1, .36, 1)), box-shadow .18s;
}

.press-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

/* Split header area for logo/image */
.pc-media {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, .45);
    font-weight: 700;
    letter-spacing: .3px;
    background: #FFF;
}

.pc-media span {
    opacity: .65;
}

/* Body */
.pc-body {
    padding: 30px 20px 40px;
    text-align: center;
    background: #f6f6f7;
}


.presse-grid a {
    padding: 0.4rem 1rem;

}

.pc-title {
    margin: 0 0 20px;
    color: var(--plum);
    font-size: 1.05rem;
}

.pc-excerpt {
    margin: 0 0 20px;
    font-size: .92rem;
    color: #676771;
    line-height: 1.55;
}

/* Card CTA */
.pc-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .12);
    color: var(--plum, #43104b);
    background: #fff;
    transition: transform .18s var(--ease-out, cubic-bezier(.22, 1, .36, 1)), box-shadow .18s, background-color .18s;
}

.pc-link:hover {
    transform: translateY(-1px);
    background: rgba(var(--plum-rgb, 67, 10, 75), .06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 991.98px) {

    /* 1. Reset Section Padding */
    .presse-section {
        padding: 60px 0;
    }

    /* 2. Header Layout: Stack Title & Button */
    .presse-head {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    /* 3. Header Button: Full Width */
    .presse-head .cases-cta {
        width: 100%;
        justify-content: center;
        margin-top: 0;
        /* Reset margins */
    }

    /* 4. Intro Text Sizing */
    .presse-intro .h3 {
        font-size: 24px;
    }

    .presse-sub {
        font-size: 15px;
        margin-bottom: 0;
        /* Let the flex gap handle spacing */
    }

    /* 5. Grid Adjustments */
    .presse-grid {
        gap: 24px;
        /* Reduce gap slightly for mobile */
        margin-top: 0;
    }

    /* 6. Card Styles */
    .press-card {
        border-radius: 16px;
        /* Slightly tighter radius */
    }

    .pc-media {
        height: 120px;
        /* Slightly shorter image area */
    }

    .pc-body {
        padding: 24px 20px 30px;
        /* Reduce internal padding */
    }

    .pc-title {
        font-size: 18px;
    }

    .pc-excerpt {
        font-size: 14px;
        margin-bottom: 24px;
        /* Limit text lines to keep cards uniform */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 7. Card Button: Full Width */
    .pc-body .cases-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Ensure single column on small phones (overrides existing if needed) */
@media (max-width: 575.98px) {
    .presse-grid {
        grid-template-columns: 1fr;
    }
}


/* ------------------------------------------------------------- *
 * cap-section
/* ------------------------------------------------------------- */

/* --- Layout --- */
.cap-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    font-family: var(--ff-sans, system-ui, sans-serif);
}

/* UPDATED: Added display: flex and flex-direction: column 
   This ensures the inner content can actually expand and align to the bottom.
*/
.cap-section .tile {
    position: relative;
    isolation: isolate;
    min-height: clamp(420px, 32vw, 560px);
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow: hidden;
    text-decoration: none;
}

/* --- Background Image & Zoom Wrapper --- */
.tt-anim-zoomin-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.tile-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(.22, 1, .36, 1);
}

/* Gradient Overlay */
.cap-section .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .20) 0%, rgba(0, 0, 0, .50) 48%, rgba(0, 0, 0, .68) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Full link overlay */
.tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* --- Content Layout --- */
/* UPDATED: Removed 'height: 100%' and added 'flex-grow: 1'.
   This allows the content to fill the flex container naturally.
*/
.tile-content {
    position: relative;
    z-index: 3;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Pushes content to bottom */
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0 80px;
    pointer-events: none;
}

.cap-title {
    margin: 0;
    letter-spacing: .2px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.cap-sub {
    margin: 0 0 10px;
    color: #EDEAF0;
    line-height: 1.5;
    font-weight: 400;
}

/* --- Button vs Cursor Logic --- */

.tile-cta {
    margin-top: 0;
    pointer-events: auto;
    position: relative;
    z-index: 4;
}

/* Cursor bubble styles (controlled by your JS, but basic styling here) */
.tile-cursor {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    z-index: 10;
    width: 120px;
    height: 120px;
    background: #cdd749;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- DESKTOP (Fine Pointer) --- */
@media (hover: hover) and (pointer: fine) {

    /* Hide the standard button */
    .tile-cta {
        display: none !important;
    }

    /* Reveal cursor bubble on hover */
    .tile:hover .tile-cursor {
        opacity: 1;
        transform: scale(1);
    }

    .tile:hover .tile-bg {
        transform: scale(1.1);
    }
}

/* --- MOBILE / TOUCH (Coarse Pointer) --- */
@media (hover: none),
(pointer: coarse),
(max-width: 991px) {

    /* Explicitly hide any cursor bubble artifacts */
    .tile-cursor {
        display: none !important;
    }

    /* Show the standard button */
    .tile-cta {
        display: block !important;
    }

    .cap-section {
        grid-template-columns: 1fr;
    }

    .cap-section .tile+.cap-section .tile {
        border-top: 1px solid rgba(255, 255, 255, .06);
    }
}

/* ------------------------------------------------------------- *
 * Impact banners
/* ------------------------------------------------------------- */

.impact-section {
    --strip-h: clamp(220px, 26vw, 320px);
    font-family: var(--ff-sans, system-ui, sans-serif);
    background: #0e0e0f;
    /* tone between strips */
}

/* Each full-width strip uses the element's own background */
.impact-strip {
    position: relative;
    min-height: var(--strip-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;

    /* >>> prevent repeat & fill area <<< */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Readability veil (left→right) */
.impact-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, 0) 0%);
    z-index: 1;
}

.impact-inner {
    position: relative;
    z-index: 2;
    /* above veil */
    padding-block: clamp(20px, 3vw, 40px);
    color: #fff;
}

.impact-text {
    margin: 0;
    max-width: 30%;
    line-height: 1.55;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

.impact-text strong {
    font-weight: 700;
}

/* Subtle hover (desktop only) – scale the whole background via zoom effect */
@media (hover:hover) {
    .impact-strip {
        transition: transform .9s cubic-bezier(.22, 1, .36, 1);
    }

    .impact-strip:hover {
        transform: scale(1.015);
    }
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
    .impact-strip {
        min-height: clamp(220px, 48vw, 280px);
    }

    .impact-strip::after {
        background: linear-gradient(180deg,
                rgba(0, 0, 0, .55) 0%,
                rgba(0, 0, 0, .35) 40%,
                rgba(0, 0, 0, 0) 100%);
    }

    .impact-text {
        max-width: 100%;
    }
}


/* ------------------------------------------------------------- *
 * RSE alt
/* ------------------------------------------------------------- */

.rse-section {
    position: relative;
    padding: clamp(56px, 8vw, 120px) 0;
    font-family: var(--ff-sans, system-ui, sans-serif);
}

.rse-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    filter: grayscale(100%) saturate(.65) brightness(1.02);
    z-index: 0;
}

.rse-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #F3F3F3;
    opacity: .7;
    pointer-events: none;
}

.rse-section .container {
    position: relative;
    z-index: 2;
}

.rse-title {
    margin: 0 0 1rem;
    line-height: 1.1;
    color: var(--plum, #431a4b);
    letter-spacing: -.2px;
}

.rse-lead {
    margin: .2rem 0;
    max-width: 56ch;
    color: #111;
}

.rse-stack>.col-lg-5,
.rse-stack>.col-lg-7 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.rse-stack>.col-lg-7 {
    margin-top: 100px;
}

.rse-bubble {
    width: clamp(160px, 15vw, 220px);
    height: clamp(160px, 15vw, 220px);
    border-radius: 16%;
    margin-inline: auto;
    display: grid;
    place-items: center;
    background: radial-gradient(60% 60% at 50% 40%, #fff 0%, #f2f2f4 60%, #ececee 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.rse-bubble img {
    width: clamp(40px, 4.5vw, 64px);
    height: auto;
    opacity: .78;
}

.rse-label {
    margin: 14px auto 0;
    max-width: 32ch;
    font-weight: 700;
    line-height: 1.35;
    color: var(--plum, #431a4b);
}

@media (max-width:991.98px) {
    .rse-title {
        margin-bottom: .5rem;
    }

    .rse-label {
        max-width: 36ch;
    }
}


/* ------------------------------------------------------------- *
 * location-section
/* ------------------------------------------------------------- */

.location-section {
    padding-top: 100px;
    padding-bottom: 0;
    /* Map sits flush at bottom */
    font-family: var(--ff-sans);
}

.loc-text {
    max-width: 480px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.map-wrapper.reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}


/* Toggle Buttons (Pills) */
.loc-toggles {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-loc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 999px;
    border: 0;

    /* Inactive State (Grey from image) */
    background: #B3B3B3;
    color: #fff;

    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(.22, 1, .36, 1);
}

.btn-loc:hover {
    background: #999;
    color: #fff;
    transform: translateY(-2px);
}

/* Active State (Plum) */
.btn-loc.active {
    background: var(--plum);
    /* #430A4B [cite: 166] */
    color: #fff;
    box-shadow: 0 8px 20px rgba(67, 10, 75, 0.25);
}

/* Map Wrapper */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    /* Adjust height as needed */
    background: #e0e0e0;
    margin-top: 80px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    /* Optional: grayscale filter to match the muted look in your design */
    filter: grayscale(20%) contrast(95%);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .location-section {
        padding-top: 60px;
    }

    .loc-toggles {
        justify-content: flex-start;
        /* Left align on mobile */
        width: 100%;
    }

    .btn-loc {
        flex: 1;
        /* Make buttons grow on small screens for easier tapping */
        text-align: center;
    }

    .map-wrapper {
        height: 350px;
        margin-top: 40px;
    }
}


/* ------------------------------------------------------------- *
 * Blog Listing Updates
/* ------------------------------------------------------------- */

/* Ensure the card takes full height for even layout */
.news-card {
    height: 100%;
}

/* Metadata Footer (Date & Icons) */
.news-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    /* Light separator */
    color: #6c757d;
    font-size: 0.9rem;
}

.news-date {
    font-weight: 500;
    color: #333;
}

.news-socials a {
    color: #430A4B;
    /* Your Brand Plum */
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.news-socials a:hover {
    color: #aebf38;
    /* Your Brand Green */
    transform: translateY(-2px);
}

/* Pagination Design */
.blog-pagination {
    position: relative;
    padding-top: 20px;
}

.pag-line {
    flex-grow: 1;
    height: 1px;
    background-color: #d1d1d1;
    display: block;
}

.pag-controls {
    /* Container for numbers/arrows */
}

.pag-num,
.pag-arrow {
    text-decoration: none;
    color: #888;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.pag-arrow {
    font-size: 0.9rem;
    /* slightly smaller chevrons */
}

.pag-num:hover,
.pag-arrow:hover {
    color: #430A4B;
}

.pag-num.active {
    color: #000;
    font-weight: 700;
}


/* ------------------------------------------------------------- *
 * Benefits Section
/* ------------------------------------------------------------- */

.benefits-section {
    position: relative;
    padding: 120px 0;
    background-color: #f7f7f8;
    font-family: var(--ff-sans);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --bg-y: 0%;
    --bg-scale: 1.06;
}

.benefits-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(var(--bg-y, 0%)) scale(var(--bg-scale, 1));
    z-index: 0;
    will-change: transform, filter;
    pointer-events: none;
}

.benefits-section .container {
    position: relative;
    z-index: 2;
}

.benefit-item {
    padding: 0 15px;
}

.benefit-title {
    color: var(--plum);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.benefit-desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 280px;
    color: #000;
}

@media (max-width: 991.98px) {
    .benefits-section {
        padding: 60px 0 80px;
    }

    .benefit-item {
        margin-bottom: 20px;
    }
}

/* === SLIDER CSS (Only applies if > 4 items) === */
.benefits-slider-wrapper {
    position: relative;
}

.ben-track {
    display: flex;
    overflow-x: auto;
    gap: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.ben-track::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.ben-slide {
    flex: 0 0 100%;
    /* Mobile: 1 item */
    max-width: 100%;
    padding: 0 12px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .ben-slide {
        flex: 0 0 50%;
    }

    /* Tablet: 2 items */
}

@media (min-width: 1200px) {
    .ben-slide {
        flex: 0 0 25%;
    }

    /* Desktop: 4 items */
}

/* Controls Container */
.ben-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Pagination Dots */
.ben-pagination {
    display: flex;
    gap: 12px;
}

.ben-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(67, 10, 75, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ben-dot.active {
    background-color: #430A4B;
    transform: scale(1.2);
}

.ben-dot:hover {
    background-color: rgba(67, 10, 75, 0.6);
}

/* Nav Arrows (Circle Style) */
.ben-arrow-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #430A4B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.ben-arrow-nav:hover {
    background: #430A4B;
    color: #fff;
    transform: translateY(-2px);
}


/* ------------------------------------------------------------- *
 * Case Study Section (Extends .edu-partners)
/* ------------------------------------------------------------- */

/* Subtitles (Contexte, Défi, etc.) */
.case-subtitle {
    font-size: 1.15rem;
    /* ~18px */
    margin-bottom: 0.5rem;
    color: var(--plum);
    /* Default brand color */
}

/* Body Text */
.case-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Thin Grey Divider */
.case-divider {
    border: 0;
    /* Remove default border */
    height: 2px;
    /* Give it physical height */
    background-color: #e0e0e0;
    /* Solid grey color */
    opacity: 1 !important;
    /* Force visibility over Bootstrap defaults */
    width: 100%;
    display: block;
}

/* Specific overrides for this section if needed */
.case-study-section .edu-panel {
    /* Optional: adjustments if you want different spacing than the education section */
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Mobile Tweaks */
@media (max-width: 991.98px) {
    .case-subtitle {
        font-size: 1.1rem;
    }
}


/* ------------------------------------------------------------- *
 * Info Useful Section
/* ------------------------------------------------------------- */

.info-useful-section {
    background-color: #222;
    /* Matches the dark background in screenshot */
    padding: 100px 0;
    font-family: var(--ff-sans);
    color: #fff;
}

.info-item {
    padding: 0 15px;
}

/* White Circle Container */
.info-circle {
    width: 160px;
    height: 160px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    /* Center horizontally */
    transition: transform 0.3s cubic-bezier(.22, 1, .36, 1);
}

.info-circle img {
    height: 70px;
}

.info-item:hover .info-circle {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Icons inside the circle */
.info-icon {
    width: 64px;
    /* Adjust size based on your SVG assets */
    height: 64px;
    object-fit: contain;
    /* Optional: if your icons are black, this is fine. 
       If they are colored and you want them black/grey like the mock, use filter:
       filter: grayscale(100%); 
    */
}

.info-title {
    font-size: 1.25rem;
    /* ~20px */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted white */
    max-width: 320px;
    /* Limits width to keep text block narrow */
    margin: 0 auto;
}

/* Mobile Tweaks */
@media (max-width: 991.98px) {
    .info-useful-section {
        padding: 60px 0;
    }

    .info-circle {
        width: 130px;
        height: 130px;
        margin-bottom: 24px !important;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-item {
        margin-bottom: 30px;
    }
}



/* --- SINGLE POST STYLES --- */

/* 1. Hero Section */
.post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -80px;
    /* Pull behind transparent header if needed */
    padding-top: 80px;
    color: #fff;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Darken image */
    z-index: 1;
}

.post-hero-cat {
    background: var(--av-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    display: inline-block;
}

.post-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    line-height: 1.2;
}

@media(max-width: 768px) {
    .post-hero-title {
        font-size: 1.8rem;
    }

    .post-hero {
        height: 50vh;
    }
}

/* 2. Content Container */
.post-container {
    max-width: 1150px;
    /* Readable width */
    margin: 0 auto;
    background: #fff;
    position: relative;
    z-index: 10;
    margin-top: -60px;
    /* Overlap hero slightly like design */
    border-radius: 8px 8px 0 0;
    padding: 40px 60px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

@media(max-width: 768px) {
    .post-container {
        margin-top: 0;
        padding: 30px 20px;
        box-shadow: none;
    }
}

/* 3. Meta Bar */
.post-meta-bar {
    border-color: #eee !important;
}

.post-share a {
    color: #888;
    font-size: 18px;
    transition: color 0.2s;
}

.post-share a:hover {
    color: var(--av-green);
}

/* 4. Content Typography */
.post-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.post-content-body h2 {
    color: var(--plum);
    /* Purple headings */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.post-content-body h3 {
    color: var(--plum);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content-body p {
    margin-bottom: 1.5rem;
}

.post-content-body blockquote {
    border-left: 4px solid var(--av-green);
    padding-left: 20px;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
    margin: 2rem 0;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* 5. Related Posts */
.related-posts-section {
    background-color: #f9f9f9;
}

.btn-link-custom {
    text-decoration: none;
}

.btn-link-custom:hover {
    text-decoration: underline;
}


.post-content-body section {
    padding: 2rem 0 !important;
    /* Adjust vertical spacing */
    background: transparent !important;
    /* Optional: forces block to blend with card */
    margin: 0 !important;
}

/* 2. Neutralize the Inner Container */
/* This forces the block's container to behave like a normal div inside the card */
.post-content-body section .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 3. Fix Row Margins (Prevent horizontal scroll/overflow) */
.post-content-body section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}



/* 4. Fix Columns inside the Card */
/* Ensures columns stack nicely on mobile inside the constrained width */
@media (max-width: 768px) {
    .post-content-body section .row {
        flex-direction: column;
    }

    .post-content-body section .col-lg-6,
    .post-content-body section .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
    }
}



/* ------------------------------------------------------------- *
 * Sectors Activity Section
/* ------------------------------------------------------------- */

.sectors-section {
    padding: 120px 0;
    font-family: var(--ff-sans);
}

/* Card Container */
.sectors-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.sectors-header {
    padding: 48px 60px 40px;
    border-bottom: 2px solid #f1f5f9;
    background: #fff;
}

.sec-line {
    width: 32px;
    height: 3px;
    background: #cbd5e1;
    /* Light gray line */
    display: block;
}

/* List Items */
.sector-item {
    display: flex;
    align-items: center;
    padding: 32px 60px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.sector-item:last-child {
    border-bottom: none;
}

/* Icon Box */
.sector-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background-color: #f8fafc;
    color: var(--plum);
    /* Ensure this var exists, or use #4A1A56 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin-right: 40px;
}

/* Text Content */
.sector-content {
    flex: 1;
    padding-right: 20px;
}

.sectors-header h2 {
    font-size: 2.2rem;
}

.sector-content p {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Arrow (Hidden by default) */
.sector-arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease 0.1s;
    color: #fff;
    font-size: 1.5rem;
}

/* --- HOVER STATES --- */

.sector-item:hover {
    background-color: var(--plum);
    /* Falls back to purple if var undefined */
    padding-left: 70px;
    /* Slide effect */
}

/* Fix if var(--plum) is not defined in your :root yet */
.sector-item:hover {
    background-color: #4b0082;
    /* Purple fallback */
    background-color: var(--plum);
}

/* Icon on Hover */
.sector-item:hover .sector-icon-box {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Text on Hover */
.sector-item:hover .sector-content p {
    color: #fff;
}

/* Arrow on Hover */
.sector-item:hover .sector-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
    .sectors-header {
        padding: 30px;
    }

    .sector-item {
        padding: 24px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .sector-item:hover {
        padding-left: 30px;
        /* Disable slide on mobile */
    }

    .sector-icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-right: 0;
    }

    .sector-content p {
        font-size: 1rem;
    }

    .sector-arrow {
        display: none;
    }
}



/* --- demarche-section  --- */


.demarche-section {
    background: #F3F3F3;
    padding: 120px 0;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #430A4B;
    margin-bottom: 20px;
    font-weight: 700;
    margin-bottom: 3rem !important
}


.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.pillar-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #430A4B;
}

.pillar-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.pillar-icon i {
    color: #430A4B;
}

.pillar-number {
    font-size: 0.9rem;
    color: #430A4B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pillar-title {
    font-size: 1.4rem;
    color: #2d3748;
    font-weight: 700;
    margin-top: 5px;
}

.pillar-content ul {
    list-style: none;
    padding: 0;
}

.pillar-content li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
}

.pillar-content li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #6b46c1;
    font-weight: bold;
    font-size: 1.2rem;
}

.closing-text {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #6b46c1;
}

.closing-text p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.closing-text strong {
    color: #430A4B;
    font-weight: 700;
}

@media (max-width: 768px) {
    .demarche-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }


    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pillar-card {
        padding: 30px 25px;
    }

    .pillar-title {
        font-size: 1.2rem;
    }

    .closing-text {
        padding: 30px 25px;
    }

    .closing-text p {
        font-size: 1rem;
    }
}


/* =========================================
   REALISATIONS SECTION
   ========================================= */

.realisations-section {
    background: #F3F3F3;
    padding: 120px 0;
    color: #2d3748;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #430A4B;
    margin-bottom: 25px;
    font-weight: 700;
}

.section-description {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #430A4B;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.solution-card:hover {
    background: white;
    border-color: #430A4B;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(67, 10, 75, 0.15);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #430A4B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.solution-icon i {
    font-size: 2.5rem;
    color: white;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
}

.solution-title {
    font-size: 1.3rem;
    color: #430A4B;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.solution-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .realisations-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.05rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .solution-card {
        padding: 35px 25px;
    }
}


/* =========================================
   CERTIFICATIONS SECTION
   ========================================= */

.certifications-section {
    background: white;
    padding: 120px 0;
}


.certifications-section .section-title {
    font-size: 2.5rem;
    color: #430A4B;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: left;
}

.certifications-section .intro-text {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
    text-align: left;
}

.certifications-section .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
}

.certifications-section .left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certifications-section .benefits-list {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    padding: 40px;
    border-left: 5px solid #430A4B;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.certifications-section .benefits-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(67, 10, 75, 0.15);
    border-left-width: 8px;
}

.certifications-section .benefits-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certifications-section .benefits-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    border-bottom: 1px solid rgba(67, 10, 75, 0.1);
    transition: all 0.3s ease;
}

.certifications-section .benefits-list li:hover {
    padding-left: 45px;
    color: #430A4B;
}

.certifications-section .benefits-list li:last-child {
    border-bottom: none;
}

.certifications-section .benefits-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #430A4B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certifications-section .benefits-list li:hover:before {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 8px rgba(67, 10, 75, 0.3);
}

.certifications-section .benefits-list li:after {
    content: "✓";
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.certifications-section .closing-note {
    padding: 35px;
    background: #430A4B;
    color: white;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(67, 10, 75, 0.3);
}

.certifications-section .closing-note:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 10, 75, 0.4);
}

@media (max-width: 768px) {
    .certifications-section {
        padding: 60px 20px;
    }

    .certifications-section .section-title {
        font-size: 2rem;
    }

    .certifications-section .intro-text {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .certifications-section .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .certifications-section .benefits-list {
        padding: 30px 25px;
    }

    .certifications-section .benefits-list li {
        font-size: 1rem;
        padding: 12px 0 12px 35px;
    }

    .certifications-section .closing-note {
        padding: 30px 25px;
        font-size: 1rem;
    }
}




/* =========================================
   Section Styling
   ========================================= */


/* Section Styling */
.projects-section {
    padding: 120px 0;
    font-family: var(--ff-sans);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.filter-dropdown {
    position: relative;
}

/* Filter Buttons (Pills) */
.btn-filter {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: var(--body-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-filter:hover {
    background: #f8f8f8;
    color: var(--plum);
    border-color: #d0d0d0;
}

.btn-filter.active {
    background: var(--plum);
    color: #fff;
    border-color: var(--plum);
    box-shadow: 0 4px 12px rgba(67, 10, 75, 0.2);
}

/* Dropdown arrow */
.ms-2 {
    margin-left: 8px;
}

.small {
    font-size: 0.8em;
}

/* Dropdown Menu */
.filter-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.filter-dropdown.open .filter-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.filter-option {
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s;
}

.filter-option:hover {
    background: #f4f4f6;
    color: var(--plum);
}

.filter-option.selected {
    background: rgba(174, 191, 56, 0.1);
    color: var(--av-green);
    font-weight: 700;
}

/* Project Card */
.project-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.22, 1, .36, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Gradient overlay that appears on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 10, 75, 0.03) 0%, rgba(174, 191, 56, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(174, 191, 56, 0.3);
}

/* Ensure content stays above gradient */
.project-card>* {
    position: relative;
    z-index: 1;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.p-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f4f4f6;
    color: #666;
}

.p-tag.tag-brand {
    background: rgba(174, 191, 56, 0.15);
    color: #8da11c;
}

.p-tag.tag-technology {
    background: rgba(67, 10, 75, .15);
    color: #430A4B;
}

/* Content */
.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--plum);
    margin-bottom: 12px;
    line-height: 1.4;
    margin-top: 30px;
}

.project-title a {
    color: var(--plum);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--av-green);
}

.project-desc {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Arrow Button */
.project-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4f4f6;
    color: var(--plum);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
}

.project-card:hover .project-arrow {
    background: var(--plum);
    color: #fff;
    transform: translateX(5px);
}

/* Hide Logic */
.project-item.hidden {
    display: none !important;
}

/* Mobile Tweaks */
@media (max-width: 991.98px) {
    .projects-section {
        padding: 60px 0;
    }

    .filter-bar {
        gap: 8px;
    }

    .btn-filter {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ------------------------------------------------------------- *
 * Context Block
/* ------------------------------------------------------------- */

.context-section {
    background-color: #fff;
    padding: 80px 0 0;
    font-family: var(--ff-sans);
}

.context-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--av-green);
    /* Using your green brand color */
    margin-bottom: 30px;
}

/* The horizontal line decoration */
.context-line {
    display: inline-block;
    width: 120px;
    /* Length of the line */
    height: 1px;
    /* Thickness */
    background-color: #6c757d;
    /* Grey color for the line */
    margin-right: 20px;
}

.context-desc {
    color: #4a5568;
    font-size: 1.35rem;
    /* Slightly larger for readability */
    line-height: 1.5;
    font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .context-section {
        padding: 50px 0;
    }

    .context-title {
        font-size: 1.5rem;
    }

    .context-desc {
        font-size: 1.1rem;
    }

    .context-line {
        width: 40px;
    }
}


/* ------------------------------------------------------------- *
 * Challenge Block (Défi)
/* ------------------------------------------------------------- */

.challenge-section {
    background-color: #f9f9f9;
    /* White background */
    padding: 80px 0;
    font-family: var(--ff-sans);
}

.challenge-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--plum);
    /* Brand Purple */
    margin-bottom: 30px;
}

/* Horizontal line */
.challenge-line {
    display: inline-block;
    width: 120px;
    height: 1px;
    background-color: #e0e0e0;
    /* Light grey line for contrast on white */
    margin-right: 20px;
}

.challenge-desc {
    color: var(--plum);
    /* Using purple text as seen in the image */
    font-size: 1.35rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .challenge-section {
        padding: 50px 0;
    }

    .challenge-title {
        font-size: 1.5rem;
    }

    .challenge-desc {
        font-size: 1.1rem;
    }

    .challenge-line {
        width: 40px;
    }
}


/* ------------------------------------------------------------- *
 * Results Section
/* ------------------------------------------------------------- */

.results-section {
    padding: 20px 0;
    background-color: #f9f9f9;
    /* Light grey background similar to screenshot */
    font-family: var(--ff-sans);
    overflow: hidden;
}

/* Section Title with Line */
.results-main-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--plum);
    /* Brand Purple */
}

.results-line {
    display: inline-block;
    width: 120px;
    height: 1px;
    background-color: #d1d1d1;
    margin-right: 20px;
}

/* List Styling */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Space between rows */
}

.result-item {
    display: flex;
    align-items: flex-start;
    /* Aligns number with the top of the title */
    gap: 30px;
    /* Space between number and text */
}

/* Number Styling */
.result-number {
    font-size: 3rem;
    /* Very large number */
    font-weight: 700;
    color: #ccc;
    /* Light grey color from screenshot */
    line-height: 0.8;
    min-width: 60px;
    /* Ensures alignment */
    position: relative;
}

/* Optional: The small line under the number seen in screenshot */
.result-number::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #e0e0e0;
    margin-top: 15px;
    margin-left: 5px;
}


.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum);
    /* Brand Purple */
    margin-bottom: 10px;
}

.result-desc {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    /* Keeps line length readable */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .result-item {
        flex-direction: row;
        /* Keep side-by-side on mobile if space allows */
        gap: 20px;
    }

    .result-number {
        font-size: 3.5rem;
    }

    .result-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {

    /* Stack on very small screens if needed, otherwise keep row */
    .result-number {
        font-size: 3rem;
    }
}


/* ------------------------------------------------------------- *
 * Intervention Section
/* ------------------------------------------------------------- */

.intervention-section {
    position: relative;
    padding: 120px 0;
    font-family: var(--ff-sans);
    overflow: hidden;

    /* Background Fixes */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* White Overlay */
.intervention-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.77);
    /* Adjust opacity here (0.85 = 85% white) */
    z-index: 1;
}

/* Ensure content sits above overlay */
.intervention-section .container {
    position: relative;
    z-index: 2;
}

.intervention-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--plum);
    /* Brand Purple */
    margin-bottom: 30px;
}

/* The horizontal line */
.intervention-line {
    display: inline-block;
    width: 40px;
    /* Same width as Challenge block */
    height: 1px;
    background-color: #000;
    /* Visible grey against the overlay */
    margin-right: 20px;
}


/* === CARD STYLING === */
.intervention-card {
    background: #fff;
    border-radius: 30px;
    padding: 50px 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    min-height: 250px;
}

.intervention-card:hover {
    transform: translateY(-5px);
}

.intervention-text {
    font-size: 1.25rem;
    color: var(--plum);
    max-width: 80%;
    line-height: 1.4;
    margin: 0;
}

/* === SLIDER LAYOUT === */
.intervention-slider-wrapper {
    position: relative;
}

.int-track {
    display: flex;
    overflow-x: auto;
    gap: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0 40px 0;
    scroll-snap-type: x mandatory;
}

.int-track::-webkit-scrollbar {
    display: none;
}

.int-slide {
    flex: 0 0 100%;
    /* Mobile: 1 item */
    padding: 0 15px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .int-slide {
        flex: 0 0 50%;
    }

    /* Tablet: 2 items */

    .intervention-title {
        font-size: 1.5rem;
    }

    .intervention-line {
        width: 220px;
    }
}

@media (min-width: 992px) {
    .int-slide {
        flex: 0 0 33.333%;
    }

    /* Desktop: 3 items */
}

/* === CONTROLS === */
.int-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

/* Arrow Buttons */
.int-arrow-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.int-arrow-nav:hover {
    transform: scale(1.1);
}

.int-arrow-nav.left {
    background-color: #666;
}

.int-arrow-nav.right {
    background-color: #AEBF38;
}

/* Pagination Dots */
.int-pagination {
    display: flex;
    gap: 12px;
}

.int-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.int-dot.active {
    background-color: #AEBF38;
    transform: scale(1.3);
}


/* ==========================================================================
   Multisite Trigger Button (Navbar)
   ========================================================================== */
.btn-multisite {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.4s ease;
}

.btn-multisite:hover {
    opacity: 1;
    color: #fff;
}

/* Ensure the button turns dark when the header background turns white on scroll */
.site-header.scrolled .btn-multisite {
    color: #222 !important;
}

/* ==========================================================================
   Multisite Offcanvas Sidebar
   ========================================================================== */
.multisite-sidebar {
    width: 400px !important;
    max-width: 100vw;
    font-family: var(--ff-sans, 'Sora', 'Segoe UI', Tahoma, sans-serif);
    border-left: none;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.multisite-sidebar .offcanvas-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.multisite-sidebar .offcanvas-title {
    color: #430A4B;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

.multisite-sidebar .btn-close {
    font-size: 0.8rem;
}

.multisite-sidebar .offcanvas-body {
    padding: 20px 40px 40px;
}

.region-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- Region card ----------------------------------------------------------- */
.region-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: #fcfcfd;
    border: 1px solid #e0e0e8;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.region-item:hover {
    background: #ffffff;
    border-color: #AEBF38;
    box-shadow: 0 4px 14px rgba(174, 191, 56, 0.10);
}

.region-item.active {
    background: rgba(174, 191, 56, 0.08);
    border-color: #AEBF38;
}

.region-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.region-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #430A4B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.region-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.region-item.active .region-icon {
    box-shadow: 0 2px 10px rgba(174, 191, 56, 0.30);
}

.region-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.region-name {
    color: #430A4B;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.region-item:hover .region-name {
    color: #430A4B;
}

.region-lang {
    color: #777;
    font-size: 0.82rem;
    margin-top: 2px;
}

/* --- Language pills -------------------------------------------------------- */
.region-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 59px;
    /* aligns with the text column (icon 44 + gap 15) */
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e0e0e8;
    color: #430A4B;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.lang-pill img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lang-pill:hover {
    border-color: #AEBF38;
    color: #AEBF38;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(174, 191, 56, 0.15);
}

.lang-pill.active {
    background: #AEBF38;
    border-color: #AEBF38;
    color: #ffffff;
    pointer-events: none;
}

/* Mobile: stack the language pills under the header without indent */
@media (max-width: 576px) {
    .multisite-sidebar {
        width: 100% !important;
    }

    .multisite-sidebar .offcanvas-header,
    .multisite-sidebar .offcanvas-body {
        padding: 20px;
    }

    .region-languages {
        padding-left: 0;
    }
}

/* ==========================================================================
   Fixes after automation
   ========================================================================== */

.av-int-section {
    padding: 0 !important;
}

.challenge-section {
    padding: 60px 0 20px 0 !important;
}

.av-tech-section {
    padding: 80px 0 0 0 !important;
}

.av-int-content-pad {
    padding: 80px 10% 0 !important;
}

.av-tech-section .tech-centered-line {
    display: none !important;
}

.av-tech-container {
    padding: 0 40px 40px !important;
}


.contact-section .fluentform,
.contact-section .frm-fluent-form {
    font-family: inherit;
}

.contact-section .fluentform .ff-el-group {
    margin-bottom: 1rem;
}

.contact-section .fluentform .ff-el-input--label label,
.contact-section .fluentform .ff-el-input--label .ff-el-input--label {
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: .35rem;
    font-size: inherit;
}

.contact-section .fluentform input[type="text"],
.contact-section .fluentform input[type="email"],
.contact-section .fluentform input[type="tel"],
.contact-section .fluentform input[type="number"],
.contact-section .fluentform input[type="url"],
.contact-section .fluentform input[type="password"],
.contact-section .fluentform select,
.contact-section .fluentform textarea {
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 2px solid #cfcfcf;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
    outline: none;
    transition: border-color .25s ease;
}

.contact-section .fluentform input[type="text"]:focus,
.contact-section .fluentform input[type="email"]:focus,
.contact-section .fluentform input[type="tel"]:focus,
.contact-section .fluentform input[type="number"]:focus,
.contact-section .fluentform input[type="url"]:focus,
.contact-section .fluentform input[type="password"]:focus,
.contact-section .fluentform select:focus,
.contact-section .fluentform textarea:focus {
    border-bottom-color: rgb(var(--plum-rgb));
    box-shadow: none;
    outline: none;
    background: transparent;
}

.contact-section .fluentform textarea {
    min-height: 90px;
    resize: vertical;
}

.contact-section .fluentform .ff-el-input--content .ff_upload_btn,
.contact-section .fluentform .ff-upload-preview {
    border: 2px dashed #cfcfcf;
    border-radius: 6px;
    background: rgba(0, 0, 0, .02);
    padding: 14px 20px;
    transition: border-color .25s ease, background .25s ease;
}

.contact-section .fluentform .ff-el-input--content .ff_upload_btn:hover {
    border-color: rgb(var(--plum-rgb));
    background: rgba(var(--plum-rgb), .04);
}

.contact-section .fluentform .ff_upload_btn span {
    color: rgb(var(--plum-rgb));
    font-weight: 600;
}

.contact-section .fluentform .ff-el-input--label label .ff-el-required {
    color: rgb(var(--plum-rgb));
}

.contact-section .fluentform .ff-el-is-error input,
.contact-section .fluentform .ff-el-is-error textarea {
    border-bottom-color: #d63638;
}

.contact-section .fluentform .ff-el-is-error .error {
    color: #d63638;
    font-size: .85rem;
    margin-top: 4px;
}

.contact-section .fluentform .ff-el-section-break {
    border: 0;
    border-top: 1px solid #cfcfcf;
    margin-top: .5rem;
}

.contact-section .fluentform .ff-btn-submit,
.contact-section .fluentform .ff-btn-submit.ff_btn_style,
.contact-section .fluentform .ff-btn-submit.wpf_has_custom_css,
.contact-section .fluentform .ff-btn-submit.ff-btn-md {
    --ff-arrow-w: 40px;
    --ff-arrow-thick: 2px;
    background: rgb(67, 10, 75) !important;
    background-color: rgb(67, 10, 75) !important;
    color: #fff !important;
    border: 0 !important;
    border-color: rgb(67, 10, 75) !important;
    border-radius: 999px !important;
    padding: .9rem 1.6rem !important;
    padding-right: calc(1.6rem + var(--ff-arrow-w) + 16px) !important;
    font-weight: 700 !important;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: auto !important;
    transition:
        color .28s ease,
        padding-right .45s cubic-bezier(.22, 1, .36, 1),
        transform .25s cubic-bezier(.22, 1, .36, 1),
        box-shadow .25s cubic-bezier(.22, 1, .36, 1);
}

.contact-section .fluentform .ff-btn-submit::before {
    content: "";
    position: absolute;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: var(--ff-arrow-w);
    height: 12px;
    z-index: 2;
    background: currentColor;
    border: none;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(0% calc(50% - 1px),
            calc(100% - 8px) calc(50% - 1px),
            calc(100% - 8px) 0,
            100% 50%,
            calc(100% - 8px) 100%,
            calc(100% - 8px) calc(50% + 1px),
            0% calc(50% + 1px));
    transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.contact-section .fluentform .ff-btn-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -20%;
    right: -20%;
    background: #fff;
    transform: skewX(-45deg) scaleX(0);
    transform-origin: left center;
    transition: transform .50s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
}

@media (hover: hover) {

    .contact-section .fluentform .ff-btn-submit:hover,
    .contact-section .fluentform .ff-btn-submit:focus-visible,
    .contact-section .fluentform .ff-btn-submit.wpf_has_custom_css:hover {
        color: #111 !important;
        background: rgb(67, 10, 75) !important;
        background-color: rgb(67, 10, 75) !important;
        filter: none;
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .10), 0 6px 12px rgba(0, 0, 0, .06);
        padding-right: calc(1.6rem + 70px + 16px) !important;
    }

    .contact-section .fluentform .ff-btn-submit:hover::after {
        transform: skewX(-45deg) scaleX(1);
    }

    .contact-section .fluentform .ff-btn-submit:hover::before {
        width: 70px;
    }
}

.contact-section .fluentform .ff-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 3px 7px rgba(0, 0, 0, .06);
}

.contact-section .fluentform .ff-btn-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .12), 0 0 0 6px rgba(255, 255, 255, .7);
}

.contact-section .fluentform .ff-btn-submit {
    isolation: isolate;
}

.contact-section .fluentform .ff-el-group.ff_submit_btn_wrapper {
    text-align: right;
    margin-top: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.contact-section.contact-button-1 .fluentform .ff-el-group.ff_submit_btn_wrapper {
    margin-bottom: 80px;
}

.contact-section .fluentform .ff-message-success {
    background: rgba(var(--plum-rgb), .08);
    color: rgb(var(--plum-rgb));
    border: 1px solid rgba(var(--plum-rgb), .2);
    border-radius: 6px;
    padding: 16px 24px;
    font-weight: 500;
}

.contact-section .fluentform .ff-t-container {
    gap: 1.5rem;
}

.contact-section .fluentform .ff-btn-submit:disabled,
.contact-section .fluentform .ff-btn-submit[disabled] {
    opacity: .55;
    cursor: not-allowed;
    filter: none;
}

.contact-section .fluentform .ff-btn-submit:disabled::after,
.contact-section .fluentform .ff-btn-submit[disabled]::after {
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .contact-section .fluentform .ff-btn-submit {
        transition: color .2s ease;
    }

    .contact-section .fluentform .ff-btn-submit::after {
        transition: none;
        transform: none;
    }

    .contact-section .fluentform .ff-btn-submit:hover {
        transform: none;
        box-shadow: none;
    }
}

.contact-section .fluentform .ff-el-help-message {
    color: #8a8a8a;
    font-size: .85rem;
    margin-top: 4px;
}

@media (max-width: 767.98px) {
    .contact-section .fluentform .ff-t-container {
        flex-direction: column;
    }

    .contact-section .fluentform .ff-t-cell {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .contact-section .fluentform .ff-el-group.ff_submit_btn_wrapper {
        text-align: center;
    }
}