:root {
    --font-poppins: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-primary: #0d47a1;
    --bs-primary-light: #1565c0;
    --bs-primary-rgb: 13, 71, 161;
    --brand-red: #c41e3a;
    --brand-red-light: #e63946;
    --bs-secondary: #1e293b;
    --bs-success: #059669;
    --bs-info: #0891b2;
    --bs-warning: #d97706;
    --bs-danger: #c41e3a;
    --bs-dark: #0f172a;
    --bs-light: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius-card: 16px;
    --radius-btn: 12px;
}
* {
    font-family: var(--font-poppins);
}

body {
    font-family: var(--font-poppins);
    color: #475569;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 500 !important;
    font-size: 0.95rem;
    color: var(--bs-secondary) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-btn);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--bs-primary) !important;
    background: rgba(13, 71, 161, 0.06);
}

/* Navbar : menu centré desktop, responsive mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
    .navbar-collapse .navbar-nav {
        flex-grow: 0;
        justify-content: center;
        flex-direction: row;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }
    .navbar-collapse .navbar-nav .nav-item {
        text-align: center;
    }
    .navbar-collapse .d-flex.align-items-center {
        justify-content: center;
    }
    .navbar-collapse .btn-primary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.btn {
    font-weight: 600;
    font-family: var(--font-poppins);
    border-radius: var(--radius-btn);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-light) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a3d91 0%, var(--bs-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-warning {
    font-weight: 600;
    color: #1e293b;
    border: none;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }

section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.5rem; }
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.65;
}

.badge.rounded-pill {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 1rem;
}

/* ----- Hero ----- (bleu + rouge Logistic) */
.hero-section {
    background: linear-gradient(135deg, #0d47a1 0%, #0a3d91 35%, #071c3a 70%, #0d0d1a 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 80% 20%, rgba(196, 30, 58, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(21, 101, 192, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="p" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M0 30h60M30 0v60" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width=".5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
    z-index: 0;
    pointer-events: none;
}

.hero-section > .container { position: relative; z-index: 10; }

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-globe {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.06;
    animation: floatIcon 18s ease-in-out infinite;
}

.hero-globe i {
    font-size: 28rem;
    color: white;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-55%) translateX(-10px); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge .badge {
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white !important;
}

.hero-section .display-3 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    text-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.hero-section .hero-accent {
    color: var(--brand-red) !important;
    text-shadow: 0 0 30px rgba(196, 30, 58, 0.4);
}

.hero-section .lead {
    font-weight: 500;
    letter-spacing: 0.01em;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta .btn-hero-primary {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-light) 100%);
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
}

.hero-cta .btn-hero-primary:hover {
    background: linear-gradient(135deg, #a01830 0%, var(--brand-red) 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196, 30, 58, 0.45);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-stat-item .hero-stat-value span {
    color: var(--brand-red);
    font-weight: 800;
}

.hero-stat-item .hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-top: 0.25rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-wave path {
    fill: #fff;
}

/* ----- Cards ----- */
.card {
    border: none;
    border-radius: var(--radius-card);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-card);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(13, 71, 161, 0.2) !important;
}

.service-icon {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

.direction-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-card);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 71, 161, 0.2) !important;
}

.card-title {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius-card);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ----- Form ----- */
.form-control {
    border-radius: var(--radius-btn);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-family: var(--font-poppins);
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--bs-secondary);
}

/* ----- Footer ----- */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    font-family: var(--font-poppins);
}

footer h6 {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #f1f5f9 !important;
}

footer .text-white-50 {
    color: #94a3b8 !important;
}

.hover-primary {
    transition: color 0.25s ease, transform 0.25s ease;
}

.hover-primary:hover {
    color: #fbbf24 !important;
}

footer a:hover {
    transform: translateX(2px);
}

/* ----- Utilities ----- */
html { scroll-behavior: smooth; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fadeInDown 0.8s ease; }

/* Stats in hero */
.hero-section .row.g-4 [class^="col"] h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 5rem 0 4rem; }
    .hero-section .display-3 { font-size: 1.75rem; }
    .hero-stats { gap: 1.5rem; padding-top: 1.5rem; margin-top: 1.5rem; }
    .hero-stat-item .hero-stat-value { font-size: 1.5rem; }
    .hero-globe i { font-size: 12rem; }
    .hero-globe { right: -15%; }
    section { padding: 3.5rem 0; }
}

/* Observe cards for animation */
.service-card, .process-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html {
    scroll-behavior: smooth;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins);
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cartes - cohérence */
.card {
    font-family: var(--font-poppins);
}

/* Boutons */
.btn {
    font-family: var(--font-poppins);
    font-weight: 600;
}

/* Formulaires */
.form-control, .form-label {
    font-family: var(--font-poppins);
}

/* Sections alternées - fonds légers */
section.bg-light {
    background-color: #f1f5f9 !important;
}

section.bg-white {
    background-color: #ffffff !important;
}

/* Badges de section - style unifié */
.section-badge {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Cartes statistiques (entreprise, équipements) */
.stat-card {
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

.stat-card {
    border-radius: 16px;
}

/* Liens dans les cartes contact */
.card-body a {
    transition: color 0.2s ease;
}

.card-body a:hover {
    color: var(--bs-primary) !important;
}

/* Responsive - typo */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .display-3 {
        font-size: 1.75rem;
    }
}

/* Animation d'entrée légère */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
