/* Beldo Transit — accueil (Bootstrap + surcharges) */

:root {
    --bt-navy: #0a2540;
    --bt-navy-light: #133a5c;
    --bt-royal: #1a4a7a;
    --bt-sky: #e6f0fa;
    --bt-sky-deep: #c5ddf0;
    --bt-cta: #c41e2a;
    --bt-cta-hover: #a31822;
    --bt-muted: #5c6b7a;
    --bt-white: #fff;
    --bt-radius: 1rem;
    --bt-radius-lg: 1.5rem;
    --bt-shadow: 0 18px 50px rgba(10, 37, 64, 0.08);
    --bt-shadow-hover: 0 24px 60px rgba(10, 37, 64, 0.12);
    --bt-header-h: 4.5rem;
    --bs-body-color: #1a2a35;
    --bs-primary: #1a4a7a;
    --bs-primary-rgb: 26, 74, 122;
    --bs-link-color: #1a4a7a;
    --bs-link-hover-color: #0a2540;
}

html {
    scroll-behavior: auto;
}

html.lenis,
html.lenis body {
    height: auto;
}

body.bt-body {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--bs-body-color);
    background: var(--bt-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bt-navy);
}

.btn-bt-cta {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-bg: var(--bt-cta);
    --bs-btn-border-color: var(--bt-cta);
    --bs-btn-hover-bg: var(--bt-cta-hover);
    --bs-btn-hover-border-color: var(--bt-cta-hover);
    --bs-btn-active-bg: var(--bt-cta-hover);
    --bs-btn-active-border-color: var(--bt-cta-hover);
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.6rem 1.5rem;
}

.btn-bt-outline {
    --bs-btn-color: var(--bt-navy);
    --bs-btn-border-color: var(--bt-navy);
    --bs-btn-hover-bg: var(--bt-sky);
    --bs-btn-hover-color: var(--bt-navy);
    --bs-btn-active-bg: var(--bt-sky);
    font-weight: 600;
    border-radius: 50rem;
    border-width: 2px;
    padding: 0.55rem 1.5rem;
}

/* ----- Navbar ----- */
.navbar-bt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: var(--bt-header-h);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}

.navbar-bt.navbar-bt--hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.navbar-bt__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #32369a;
}

.navbar-bt__brand-text {
    color: #32369a;
    font-weight: 800;
    font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}

.navbar-bt__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.12);
}

@media (min-width: 768px) {
    .navbar-bt__logo {
        width: 50px;
        height: 50px;
    }
}

.navbar-bt__nav {
    --bs-nav-link-color: var(--bt-navy);
    --bs-nav-link-hover-color: var(--bt-royal);
    --bs-nav-link-font-weight: 500;
    gap: 0.15rem 1.25rem;
}

.navbar-bt__nav .nav-link {
    position: relative;
    padding: 0.5rem 0.35rem;
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    .navbar-bt__nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0.15rem;
        height: 2px;
        background: var(--bt-royal);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.35s ease;
    }
    .navbar-bt__nav .nav-link:hover::after,
    .navbar-bt__nav .nav-link:focus::after {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.navbar-bt__toggler {
    border: 0;
    padding: 0.25rem 0.2rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.navbar-bt__toggler:focus,
.navbar-bt__toggler:active {
    box-shadow: none;
}

.navbar-bt__hamburger {
    width: 28px;
    height: 20px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-bt__hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 99px;
    background: var(--bt-navy);
}

.offcanvas-bt {
    --bs-offcanvas-width: min(100%, 20rem);
}

@media (max-width: 575.98px) {
    .offcanvas-bt {
        --bs-offcanvas-width: 100%;
    }
}

.offcanvas-bt .nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bt-sky);
}

/* Offset content under fixed header */
main.bt-home {
    padding-top: var(--bt-header-h);
}

/* ----- Hero ----- */
.bt-hero {
    position: relative;
    min-height: calc(100dvh - var(--bt-header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bt-sky) 0%, #fff 48%, #f0f6fc 100%);
}

.bt-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(26, 74, 122, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(196, 30, 42, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 100%);
    pointer-events: none;
}

.bt-hero__deco {
    position: absolute;
    border: 2px solid rgba(26, 74, 122, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.bt-hero__deco--1 {
    width: min(50vw, 22rem);
    height: min(50vw, 22rem);
    right: -8%;
    top: 8%;
    opacity: 0.5;
}

.bt-hero__deco--2 {
    width: min(35vw, 16rem);
    height: min(35vw, 16rem);
    left: -5%;
    bottom: 15%;
    border-style: dashed;
    opacity: 0.35;
}

.bt-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bt-royal);
    margin-bottom: 1rem;
}

.bt-hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.35rem);
    line-height: 1.12;
    max-width: 16ch;
}

.bt-hero__lead {
    color: var(--bt-muted);
    max-width: 32rem;
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .bt-hero__lead {
        font-size: 1.2rem;
    }
}

.bt-hero__img-wrap {
    --bt-main-shift: 12%;
    --bt-main-photo-size: clamp(165px, 68%, 300px);
    --bt-overlay-photo-size: var(--bt-main-photo-size);
    --bt-overlay-right: -45%;
    --bt-overlay-top: clamp(-0.4rem, -1vw, -0.85rem);
    position: relative;
    border-radius: var(--bt-radius-lg);
    overflow: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
    aspect-ratio: 4/3;
}

.bt-hero__main-photo,
.bt-hero__overlay-thumb {
    aspect-ratio: 4/5;
    border-radius: 1rem;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(10, 37, 64, 0.2);
}

.bt-hero__main-photo {
    width: var(--bt-main-photo-size);
}

.bt-hero__overlay-thumb {
    width: var(--bt-overlay-photo-size);
}

.bt-hero__main-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(var(--bt-main-shift));
    z-index: 2;
}

.bt-cover-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .bt-hero__img-wrap {
        aspect-ratio: 1;
        max-width: 420px;
        margin-left: auto;
    }
}

.bt-hero__img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c8d3dc 0%, #e2e8ef 100%);
    color: var(--bt-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem;
}

.bt-hero__float-card {
    position: absolute;
    right: 1rem;
    bottom: 0.25rem;
    left: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--bt-radius);
    padding: 0.9rem 1.1rem;
    box-shadow: 0 12px 32px rgba(10, 37, 64, 0.12);
    max-width: min(12rem, 50%);
    font-size: 0.8rem;
    line-height: 1.3;
    border: 1px solid rgba(10, 37, 64, 0.05);
    transform: translateY(var(--bt-main-shift));
    z-index: 6;
}

.bt-hero__float-card strong {
    display: block;
    color: var(--bt-navy);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.bt-hero__overlay-thumb {
    position: absolute;
    top: var(--bt-overlay-top);
    right: var(--bt-overlay-right);
    margin-left: 1rem;
    z-index: 4;
}

@media (max-width: 575.98px) {
    .bt-hero__img-wrap {
        --bt-main-shift: 9%;
        --bt-main-photo-size: clamp(98px, 49%, 142px);
        --bt-overlay-photo-size: clamp(114px, 56%, 166px);
        --bt-overlay-right: -4%;
        --bt-overlay-top: -0.45rem;
    }

    .bt-hero__main-photo,
    .bt-hero__overlay-thumb {
        border-radius: 0.85rem;
        border-width: 3px;
    }

    .bt-hero__float-card {
        right: 0.5rem;
        bottom: -0.35rem;
        max-width: min(10.25rem, 62%);
        padding: 0.75rem 0.85rem;
        font-size: 0.74rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .bt-hero__img-wrap {
        --bt-main-shift: 11%;
        --bt-main-photo-size: clamp(166px, 53%, 252px);
        --bt-overlay-photo-size: clamp(184px, 58%, 272px);
        --bt-overlay-right: -6%;
        --bt-overlay-top: -0.7rem;
    }

    .bt-hero__float-card {
        bottom: -1rem;
    }
}

@media (min-width: 992px) {
    .bt-hero__img-wrap {
        --bt-main-shift: 12%;
    }

    .bt-hero__float-card {
        bottom: -2rem;
    }
}

/* Section titles */
.bt-section {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.bt-section--sky {
    background: linear-gradient(180deg, var(--bt-sky) 0%, #fff 100%);
}

.bt-section--navy {
    background: linear-gradient(145deg, var(--bt-navy) 0%, var(--bt-navy-light) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.bt-section--navy h2,
.bt-section--navy h3 {
    color: #fff;
}

.bt-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bt-royal);
    margin-bottom: 0.6rem;
}

.bt-section--navy .bt-eyebrow {
    color: var(--bt-sky-deep);
    opacity: 0.9;
}

.bt-h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    margin-bottom: 0.75rem;
}

.bt-lead-muted {
    color: var(--bt-muted);
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.bt-section--navy .bt-lead-muted {
    color: rgba(255, 255, 255, 0.78);
}

/* Service cards */
.bt-service-card {
    position: relative;
    background: #fff;
    border-radius: var(--bt-radius-lg);
    border: 1px solid rgba(10, 37, 64, 0.06);
    box-shadow: var(--bt-shadow);
    overflow: hidden;
    height: 100%;
    transform-style: preserve-3d;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.3s, filter 0.3s ease;
}

.bt-service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 62%);
    transition: opacity 0.25s ease;
}

.bt-service-card:hover {
    box-shadow: 0 32px 70px rgba(10, 37, 64, 0.22);
    border-color: rgba(26, 74, 122, 0.35);
    transform: translateY(-10px) scale(1.018);
    filter: saturate(1.04);
}

.bt-service-card:hover::before {
    opacity: 1;
}

.bt-service-card__ph {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, #cbd5de, #e8eef3);
    overflow: hidden;
}

.bt-service-card__ph .bt-cover-img {
    object-position: center center;
    object-fit: cover;
}

.bt-service-card__body {
    padding: 1.5rem 1.35rem 1.75rem;
}

.bt-service-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--bt-sky);
    color: var(--bt-royal);
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

/* Avantages */
.bt-adv-card {
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: var(--bt-radius);
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.04);
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
    .bt-adv-card {
        min-height: 8.5rem;
    }
}

.bt-adv-card:hover {
    box-shadow: 0 22px 54px rgba(10, 37, 64, 0.16);
    transform: translateY(-8px) scale(1.01);
}

/* Stats */
.bt-stat {
    text-align: center;
    padding: 1.25rem 0.5rem;
}

.bt-stat__num {
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--bt-navy);
    letter-spacing: -0.03em;
    font-feature-settings: "tnum" 1;
}

.bt-stat__suffix {
    font-weight: 800;
    color: var(--bt-navy);
}

.bt-stat__label {
    color: var(--bt-muted);
    font-size: 0.9rem;
    max-width: 10rem;
    margin: 0.4rem auto 0;
}

/* CTA */
.bt-cta {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

/* Inner pages */
.bt-breadcrumb {
    position: relative;
    min-height: clamp(240px, 42vh, 360px);
    display: flex;
    align-items: end;
    overflow: hidden;
    color: #fff;
}

.bt-breadcrumb__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bt-breadcrumb__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(10, 37, 64, 0.86), rgba(10, 37, 64, 0.28));
}

.bt-breadcrumb__content {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.bt-breadcrumb__content h1 {
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.bt-breadcrumb__content p {
    color: rgba(255, 255, 255, 0.88);
}

.bt-breadcrumb__trail {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.88rem;
}

.bt-breadcrumb__trail a {
    color: #fff;
    text-decoration: none;
}

.bt-breadcrumb__trail a:hover {
    text-decoration: underline;
}

.bt-contact-card,
.bt-contact-form,
.bt-map-wrap,
.bt-about-logo-wrap,
.bt-about-content,
.bt-dg-word {
    background: #fff;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: var(--bt-radius-lg);
    box-shadow: var(--bt-shadow);
}

.bt-contact-card {
    padding: 2rem 1.5rem;
    height: 100%;
}

.bt-contact-meta li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    color: var(--bt-navy);
}

.bt-contact-meta li i {
    color: var(--bt-royal);
}

.bt-contact-form {
    padding: 2rem 1.5rem;
}

.bt-contact-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bt-navy);
}

.bt-contact-form .form-control,
.bt-contact-form .form-select {
    border-radius: 0.8rem;
    border-color: rgba(10, 37, 64, 0.16);
    padding: 0.72rem 0.9rem;
}

.bt-contact-form .form-control:focus,
.bt-contact-form .form-select:focus {
    border-color: var(--bt-royal);
    box-shadow: 0 0 0 0.2rem rgba(26, 74, 122, 0.15);
}

.bt-map-wrap {
    overflow: hidden;
}

.bt-map-wrap iframe {
    width: 100%;
    min-height: clamp(280px, 45vh, 440px);
    border: 0;
}

.bt-about-logo-wrap {
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #eff5fb, #ffffff);
}

.bt-about-logo {
    width: min(280px, 100%);
    aspect-ratio: 1/1;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(10, 37, 64, 0.2));
}

.bt-about-content {
    padding: clamp(1.4rem, 3.4vw, 2.2rem);
}

.bt-dg-word {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(1.4rem, 3.5vw, 2.2rem);
}

.bt-dg-photo {
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(10, 37, 64, 0.1);
    background: linear-gradient(145deg, #e8eef4, #f4f7fb);
    aspect-ratio: 3/4;
    max-width: 280px;
    margin: 0 auto;
}

.bt-dg-photo__placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--bt-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.25rem;
}

.bt-dg-photo__placeholder i {
    font-size: 2.5rem;
    opacity: 0.45;
}

.bt-dg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Footer (copyright strip) */
.footer-bt {
    background: #f4f7fa;
    color: var(--bt-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(10, 37, 64, 0.08);
    padding: 1.1rem 0 1.35rem;
}

.footer-bt a {
    color: var(--bt-royal);
    text-decoration: none;
    font-weight: 500;
}

.footer-bt a:hover {
    text-decoration: underline;
    color: var(--bt-navy);
}

/* Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.navbar-bt__toggler:focus-visible {
    outline: 2px solid var(--bt-royal);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
