/* Custom Service Card Colors */

/* ===================================
   HEADER BUTTONS - Blue #0b4181
   =================================== */

/* Contact Us button and Menu button - blue color */
.mxd-header__controls .btn-outline {
    border-color: #0b4181 !important;
    color: #0b4181 !important;
    background: transparent !important;
}

.mxd-header__controls .btn-outline:hover {
    background: #0b4181 !important;
    color: #ffffff !important;
}

/* Menu hamburger button - MODE LIGHT : fond bleu avec traits blancs */
.mxd-nav__hamburger {
    border-color: #0b4181 !important;
}

.mxd-nav__hamburger .hamburger__base {
    background-color: #0b4181 !important;
    border-color: #0b4181 !important;
}

.mxd-nav__hamburger .hamburger__line {
    background-color: #ffffff !important;
}

.mxd-nav__hamburger:hover .hamburger__base {
    background-color: #083a6b !important;
}

.mxd-nav__hamburger:hover .hamburger__line {
    background-color: #ffffff !important;
}

/* Menu hamburger button - MODE DARK : fond blanc avec traits bleus */
[color-scheme="dark"] .mxd-nav__hamburger .hamburger__base {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

[color-scheme="dark"] .mxd-nav__hamburger .hamburger__line {
    background-color: #0b4181 !important;
}

[color-scheme="dark"] .mxd-nav__hamburger:hover .hamburger__base {
    background-color: #f0f0f0 !important;
}

[color-scheme="dark"] .mxd-nav__hamburger:hover .hamburger__line {
    background-color: #0b4181 !important;
}

/* ===================================
   ALL OTHER BUTTONS - Blue #0b4181
   =================================== */

/* Boutons accent (plein) */
.btn-accent {
    background-color: #0b4181 !important;
    border-color: #0b4181 !important;
    color: #ffffff !important;
}

.btn-accent:hover {
    background-color: #08306b !important;
    border-color: #08306b !important;
}

/* Boutons additional (plein) */
.btn-additional {
    background-color: #0b4181 !important;
    border-color: #0b4181 !important;
    color: #ffffff !important;
}

.btn-additional:hover {
    background-color: #08306b !important;
    border-color: #08306b !important;
}

/* Boutons outline (contour) */
.btn-outline:not(.mxd-header__controls .btn-outline) {
    border-color: #0b4181 !important;
    color: #0b4181 !important;
    background: transparent !important;
}

.btn-outline:not(.mxd-header__controls .btn-outline):hover {
    background-color: #0b4181 !important;
    color: #ffffff !important;
}

/* Boutons btn-default (sans classe spécifique) */
.btn-default:not(.btn-accent):not(.btn-additional):not(.btn-outline) {
    background-color: #0b4181 !important;
    border-color: #0b4181 !important;
    color: #ffffff !important;
}

.btn-default:not(.btn-accent):not(.btn-additional):not(.btn-outline):hover {
    background-color: #08306b !important;
    border-color: #08306b !important;
}

/* Background Colors */
.bg-primary {
    background-color: #161616 !important;
}

.bg-green {
    background-color: #10b981 !important;
}

.bg-purple {
    background-color: #8b5cf6 !important;
}

.bg-orange {
    background-color: #f97316 !important;
}

.bg-red {
    background-color: #ef4444 !important;
}

/* Text Colors - Maximum Specificity */
.mxd-stats-cards__inner.text-dark,
.mxd-stats-cards__inner.text-dark *,
.mxd-stats-cards__inner.text-dark *::before,
.mxd-stats-cards__inner.text-dark *::after {
    color: #1f2937 !important;
}

.mxd-stats-cards__inner.text-light,
.mxd-stats-cards__inner.text-light *,
.mxd-stats-cards__inner.text-light *::before,
.mxd-stats-cards__inner.text-light *::after {
    color: #f3f4f6 !important;
}

.mxd-stats-cards__inner.text-white,
.mxd-stats-cards__inner.text-white *,
.mxd-stats-cards__inner.text-white *::before,
.mxd-stats-cards__inner.text-white *::after {
    color: #ffffff !important;
    opacity: 1 !important;
}

.mxd-stats-cards__inner.text-black,
.mxd-stats-cards__inner.text-black *,
.mxd-stats-cards__inner.text-black *::before,
.mxd-stats-cards__inner.text-black *::after {
    color: #000000 !important;
}

/* Service Cards Text Colors */
.mxd-service-cards__inner.text-dark,
.mxd-service-cards__inner.text-dark *,
.mxd-service-cards__inner.text-dark *::before,
.mxd-service-cards__inner.text-dark *::after {
    color: #1f2937 !important;
}

.mxd-service-cards__inner.text-light,
.mxd-service-cards__inner.text-light *,
.mxd-service-cards__inner.text-light *::before,
.mxd-service-cards__inner.text-light *::after {
    color: #f3f4f6 !important;
}

.mxd-service-cards__inner.text-white,
.mxd-service-cards__inner.text-white *,
.mxd-service-cards__inner.text-white *::before,
.mxd-service-cards__inner.text-white *::after {
    color: #ffffff !important;
    opacity: 1 !important;
}

.mxd-service-cards__inner.text-black,
.mxd-service-cards__inner.text-black *,
.mxd-service-cards__inner.text-black *::before,
.mxd-service-cards__inner.text-black *::after {
    color: #000000 !important;
}

/* Service Cards Tags - inherit text color */
.mxd-service-cards__inner.text-dark .mxd-service-cards__tag {
    color: #1f2937 !important;
    border-color: rgba(31, 41, 55, 0.3) !important;
    background: rgba(31, 41, 55, 0.08) !important;
}

.mxd-service-cards__inner.text-light .mxd-service-cards__tag,
.mxd-service-cards__inner.text-white .mxd-service-cards__tag {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.mxd-service-cards__inner.text-black .mxd-service-cards__tag {
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Specific overrides for counter elements */
.mxd-stats-cards__inner.text-dark .mxd-counter__number,
.mxd-stats-cards__inner.text-dark .mxd-counter__descr,
.mxd-stats-cards__inner.text-dark .mxd-counter__tags,
.mxd-stats-cards__inner.text-dark p {
    color: #1f2937 !important;
}

.mxd-stats-cards__inner.text-light .mxd-counter__number,
.mxd-stats-cards__inner.text-light .mxd-counter__descr,
.mxd-stats-cards__inner.text-light .mxd-counter__tags,
.mxd-stats-cards__inner.text-light p {
    color: #f3f4f6 !important;
}

.mxd-stats-cards__inner.text-white .mxd-counter__number,
.mxd-stats-cards__inner.text-white .mxd-counter__descr,
.mxd-stats-cards__inner.text-white .mxd-counter__tags,
.mxd-stats-cards__inner.text-white p {
    color: #ffffff !important;
}

.mxd-stats-cards__inner.text-black .mxd-counter__number,
.mxd-stats-cards__inner.text-black .mxd-counter__descr,
.mxd-stats-cards__inner.text-black .mxd-counter__tags,
.mxd-stats-cards__inner.text-black p {
    color: #000000 !important;
}

/* Override t-bright and any opacity/filter effects */
.mxd-stats-cards__inner.text-dark .t-bright,
.mxd-stats-cards__inner.text-light .t-bright,
.mxd-stats-cards__inner.text-white .t-bright,
.mxd-stats-cards__inner.text-black .t-bright {
    opacity: 1 !important;
    filter: none !important;
}

/* Force white text to be pure white */
.mxd-stats-cards__inner.text-white .t-140,
.mxd-stats-cards__inner.text-white .t-bright {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Remove any transparency or filters on white text */
.mxd-stats-cards__inner.text-white {
    filter: none !important;
}

.mxd-stats-cards__inner.text-white * {
    filter: none !important;
    -webkit-text-fill-color: initial !important;
}

/* ===================================
   SERVICE CARDS - CLEAN MODERN DESIGN
   =================================== */

/* Grid layout - 2x2 wider cards */
.mxd-service-cards-grid .row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Card container - wider rectangles */
.mxd-service-cards-grid .mxd-service-cards__item {
    display: flex !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 380px !important;
}

/* Card inner - modern styling with space for big titles */
.mxd-service-cards__inner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    padding: 2.5rem !important;
    border-radius: 24px !important;
    position: relative !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.mxd-service-cards__inner:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

/* Content wrapper */
.mxd-service-cards__content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    z-index: 2 !important;
    position: relative !important;
}

/* Title styling - massive bold typography */
.mxd-service-cards__title {
    font-size: clamp(3.5rem, 6vw, 5.5rem) !important;
    line-height: 0.9 !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    overflow: visible !important;
    display: block !important;
    max-width: 100% !important;
    text-transform: none !important;
    word-wrap: break-word !important;
}

/* Description styling - larger and readable */
.mxd-service-cards__descr {
    font-size: 1.25rem !important;
    line-height: 1.45 !important;
    opacity: 0.95 !important;
    flex: 1 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    box-orient: vertical !important;
    margin-bottom: 1.5rem !important;
    font-weight: 400 !important;
}

/* Tags container */
.mxd-service-cards__tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
}

/* Individual tag - badge style */
.mxd-service-cards__tag {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0.45rem 1rem !important;
    border-radius: 100px !important;
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* Card image - positioned nicely */
.mxd-service-cards__image {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 45% !important;
    height: auto !important;
    z-index: 1 !important;
    opacity: 0.9 !important;
    pointer-events: none !important;
}

.mxd-service-cards__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Bootstrap column reset */
.mxd-service-cards-grid .row > [class*="col-"] {
    display: flex !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
}

/* Responsive - single column on mobile */
@media only screen and (max-width: 767px) {
    .mxd-service-cards-grid .row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .mxd-service-cards__inner {
        padding: 1.75rem !important;
        border-radius: 16px !important;
    }

    .mxd-service-cards__title {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .mxd-service-cards__descr {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        margin-bottom: 1rem !important;
    }

    .mxd-service-cards__tag {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.6rem !important;
    }

    .mxd-service-cards__image {
        width: 40% !important;
    }
}

/* ===================================
   HOMEPAGE HERO — gap navbar / video
   (also in custom-section-spacing.css;
   duplicated here because this file uses
   ?v=timestamp and always bypasses CDN/browser cache)
   =================================== */

.homepage-hero-section {
    margin-top: 0 !important;
}

.homepage-hero-section .mxd-hero-06 {
    padding-top: 2rem !important;
}

.homepage-hero-section .mxd-hero-06__wrap {
    padding-top: 2.4rem !important;
    transform: translateY(-0.3rem) !important;
}

@media only screen and (min-width: 768px) {
    .homepage-hero-section {
        margin-top: -0.4rem !important;
    }

    .homepage-hero-section .mxd-hero-06 {
        padding-top: 2.2rem !important;
    }

    .homepage-hero-section .mxd-hero-06__wrap {
        padding-top: 3rem !important;
        transform: translateY(-0.6rem) !important;
    }
}

@media only screen and (min-width: 1200px) {
    .homepage-hero-section {
        margin-top: -0.8rem !important;
    }

    .homepage-hero-section .mxd-hero-06 {
        padding-top: 2.2rem !important;
    }

    .homepage-hero-section .mxd-hero-06__wrap {
        padding: 3.6rem 6rem 0 6rem !important;
        transform: translateY(-1rem) !important;
    }
}

@media only screen and (min-width: 1600px) {
    .homepage-hero-section .mxd-hero-06__wrap {
        padding: 3.6rem 9rem 0 9rem !important;
    }
}
