/* LS Logistic - Custom Styles */

:root {
    --primary-orange: #ff7e29;
    --secondary-blue: #3d75c7;
    --dark: #0f172a;
    --gray: #475569;
    --light-bg: #f8fafc;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--light-bg);
    color: var(--gray);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch targets min 44px for mobile */
a, button, [role="button"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Override for inline elements */
p a, li a, footer a {
    min-height: unset;
    display: inline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.glass-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-hover:hover {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 126, 41, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(255, 126, 41, 0.15);
}

/* Premium Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff9a5a 100%);
    box-shadow: 0 4px 15px rgba(255, 126, 41, 0.3);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e66f1f 0%, #ff7e29 100%);
    box-shadow: 0 8px 25px rgba(255, 126, 41, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #5a8fd9 100%);
    box-shadow: 0 4px 15px rgba(61, 117, 199, 0.3);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2f5fa8  0%, #3d75c7 100%);
    box-shadow: 0 8px 25px rgba(61, 117, 199, 0.4);
    transform: translateY(-2px);
}

.arrow-circle {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-circle,
.btn-secondary:hover .arrow-circle {
    transform: translateX(4px) rotate(45deg);
}

/* Typography */
.text-gradient-brand {
    color: var(--primary-orange);
}

/* Ambient Background */
.glow-bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 126, 41, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(61, 117, 199, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 126, 41, 0.08) 0%, transparent 50%);
}

.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Animations */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-scroll-left {
    animation: scroll-left 30s linear infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Navbar Scroll Effects */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(30px) !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-scrolled .logo-container {
    transform: scale(0.9);
}

/* Logo Visibility */
.logo-container {
    transition: transform 0.3s ease;
}

.logo-container img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ── Off-Canvas Mobile Menu ─────────────────────────────────────────────── */

/* Backdrop */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    height: 100vh;
    background: #ffffff;
    z-index: 99;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 8px 0 40px rgba(0,0,0,0.18);
}
.mobile-menu.active {
    transform: translateX(0);
}

/* Header du drawer */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mobile-menu-header .menu-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.mobile-menu-header .menu-logo img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    background: white;
    padding: 0.2rem;
    border: 2px solid #e2e8f0;
}
.mobile-menu-header .menu-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.mobile-menu-header .menu-logo-text strong {
    font-weight: 800;
    color: var(--dark);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}
.mobile-menu-header .menu-logo-text span {
    font-size: 0.6rem;
    color: var(--secondary-blue);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}
.mobile-menu-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Nav links */
.mobile-menu-nav {
    flex: 1;
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    min-height: 48px;
    /* slide-in animation */
    opacity: 0;
    transform: translateX(-16px);
    animation: none;
}
.mobile-menu.active .mobile-menu-nav a {
    animation: menuLinkIn 0.4s ease forwards;
}
.mobile-menu.active .mobile-menu-nav a:nth-child(1)  { animation-delay: 0.05s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(2)  { animation-delay: 0.10s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(3)  { animation-delay: 0.15s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(4)  { animation-delay: 0.18s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(5)  { animation-delay: 0.21s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(6)  { animation-delay: 0.24s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(7)  { animation-delay: 0.27s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(8)  { animation-delay: 0.30s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(9)  { animation-delay: 0.33s; }
.mobile-menu.active .mobile-menu-nav a:nth-child(10) { animation-delay: 0.36s; }
@keyframes menuLinkIn {
    to { opacity: 1; transform: translateX(0); }
}

.mobile-menu-nav a:hover {
    background: #fff7ed;
    color: var(--primary-orange);
}
.mobile-menu-nav a.menu-active {
    background: #fff7ed;
    color: var(--primary-orange);
    font-weight: 700;
    border: 1px solid rgba(255,126,41,0.18);
}
.mobile-menu-nav a .menu-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: #f1f5f9;
    color: var(--gray);
    transition: background 0.2s, color 0.2s;
}
.mobile-menu-nav a.menu-active .menu-icon,
.mobile-menu-nav a:hover .menu-icon {
    background: rgba(255,126,41,0.15);
    color: var(--primary-orange);
}
/* Active indicator bar */
.mobile-menu-nav a.menu-active::before {
    content: '';
    display: block;
    width: 3px;
    height: 1.5rem;
    border-radius: 2px;
    background: var(--primary-orange);
    flex-shrink: 0;
    margin-right: -0.25rem;
}

/* Footer CTA */
.mobile-menu-footer {
    padding: 1rem 0.875rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mobile-menu-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff9a5a 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255,126,41,0.35);
    min-height: 52px;
    transition: opacity 0.2s;
}
.mobile-menu-footer a:hover { opacity: 0.92; }

/* Section badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 126, 41, 0.1);
    border: 1px solid rgba(255, 126, 41, 0.2);
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Step cards */
.step-card {
    position: relative;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(255, 126, 41, 0.15);
    border-color: rgba(255, 126, 41, 0.3);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), #ff9a5a);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 126, 41, 0.3);
}

/* Btn outline */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 126, 41, 0.3);
}

/* Active nav link */
nav a.nav-active {
    color: var(--primary-orange) !important;
    font-weight: 700 !important;
}

/* Stat cards */
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Stat cards dans hero avec image de fond : textes blancs */
.hero-with-bg .stat-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-with-bg .stat-card .stat-value {
    color: #ff9a50;
}

.hero-with-bg .stat-card .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-orange);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Service card */
.service-card {
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(255, 126, 41, 0.15);
    border-color: rgba(255, 126, 41, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

/* Ligne 1 : icône + titre côte à côte aligné gauche */
.service-card .service-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
    text-align: left;
}

.service-card .service-card-header h3 {
    flex: 1;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

/* Ligne 2 : description */
.service-card .service-card-body {
    padding-left: 0;
    text-align: left;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e06010 100%);
    border-radius: 2rem;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* Reference card */
.reference-card {
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(61, 117, 199, 0.15);
    border-color: rgba(61, 117, 199, 0.3);
}

/* ============================
   RESPONSIVE – MOBILE FIRST
   ============================ */

/* CTA Banner padding responsive */
@media (max-width: 640px) {
    .cta-banner {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .stat-card .stat-value {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
        border-radius: 1rem;
    }

    .service-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .step-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .reference-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .section-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.75rem;
    }

    .service-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
        border-radius: 0.75rem;
    }

    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Mobile menu scrollable when many items */
.mobile-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu nav {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

/* Prevent hover effects on touch devices */
@media (hover: none) {
    .glass-hover:hover {
        transform: none;
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    }
    .service-card:hover {
        transform: none;
    }
    .reference-card:hover {
        transform: none;
    }
    .step-card:hover {
        transform: none;
    }
    .btn-primary:hover,
    .btn-outline:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Fluid typography */
@media (max-width: 480px) {
    h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
    h3 { font-size: clamp(1rem, 4vw, 1.25rem); }
}

/* Forms on mobile */
@media (max-width: 640px) {
    input, select, textarea {
        font-size: 16px !important; /* prevent zoom on iOS */
    }
}

/* Navbar on scroll – compact */
@media (max-width: 1279px) {
    #main-nav {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
}

/* Image placeholders responsive */
.fleet-img-placeholder {
    min-height: 180px;
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .fixed.bottom-0, footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Print styles */
@media print {
    .mobile-menu, #mobile-menu-btn, .fixed { display: none !important; }
    body { background: white; }
    .glass { background: white; box-shadow: none; border: 1px solid #e2e8f0; }
}

/* ── Page Hero Background ────────────────────────────────────────────────── */
.page-hero-bg {
    position: relative;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,20,40,0.82) 0%, rgba(15,23,42,0.70) 60%, rgba(255,126,41,0.12) 100%);
    z-index: 1;
}
.page-hero-bg > .max-w-7xl { position: relative; z-index: 2; }
/* Fleet hero – same treatment */
.fleet-hero-bg {
    background-image: var(--hero-img), linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.fleet-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,20,40,0.75) 0%, rgba(15,23,42,0.60) 60%, rgba(255,126,41,0.10) 100%);
    z-index: 0;
}
.fleet-hero-bg > * { position: relative; z-index: 1; }

/* ── Carrousel Références ──────────────────────────────────────────────────── */
.references-carousel-container {
    position: relative;
    padding: 2rem 0;
}
.references-carousel {
    display: flex;
    gap: 2rem;
    will-change: transform;
}
.carousel-slide {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.carousel-slide:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 20px rgba(255,126,41,0.1);
    transform: translateY(-4px);
}
.carousel-slide img {
    max-width: 100%;
    height: auto;
}

/* Contrôles carrousel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.6;
}
.carousel-control:hover {
    opacity: 1;
    background: white;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(255,126,41,0.2);
}
.carousel-control-prev { left: -1rem; }
.carousel-control-next { right: -1rem; }

@media (max-width: 640px) {
    .carousel-slide {
        width: 140px;
        padding: 0.75rem;
    }
    .references-carousel {
        gap: 1rem;
    }
    .carousel-control {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    .carousel-control-prev { left: 0; }
    .carousel-control-next { right: 0; }
}
