/* ============================================
   SONOCO FIXES CSS
   Corrections pour le carousel et le menu
   ============================================ */

/* Carousel Container */
#carouselExampleIndicators {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel Items */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

/* Items en cours de transition doivent être visibles */
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

/* Crossfade : fondu enchaîné sans flash blanc */
.carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out !important;
    transform: none !important;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #01079b;
    width: 40px;
    border-radius: 10px;
}

/* Video Background for Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

/* ============================================
   MENU FIXES - BOOTSTRAP NAVBAR
   ============================================ */

/* Navbar Container - Transparent by default */
.nav-background {
    background: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navbar scrolled state - White background */
.nav-background.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-background.scrolled .navbar {
    padding: 15px 0;
}

/* Navbar Items Spacing */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}


/* Nav links on scrolled navbar */
.nav-background.scrolled .navbar-nav .nav-link {
    color: #01079B !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #01079b !important;
}

/* Dropdown Menu Fixes */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px 0;
    min-width: 220px;
}

.navbar-nav .dropdown-item {
    padding: 10px 20px;
    color: #333;
    font-size: 15px;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: #f5f5f5;
    color: #01079b;
    padding-left: 25px;
}

/* Dropdown Toggle Arrow - sur une seule ligne */
.navbar-nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

/* Logo and Brand */
.navbar-brand {
    max-width: 150px;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.nav-background.scrolled .navbar-brand img {
    filter: none;
}

/* Mobile Menu Toggle Button */
.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler .line {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-background.scrolled .navbar-toggler .line {
    background: #01079b;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    /* Menu mobile vers la droite */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
        padding: 20px;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: #333 !important;
        padding: 12px 15px !important;
    }

    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0;
        padding-left: 20px;
        position: static !important;
        transform: none !important;
    }

    /* Logo en mobile */
    .navbar-brand {
        max-width: 100px;
    }

    /* Burger button visible */
    .navbar-toggler {
        display: block;
        z-index: 10000;
    }

    .navbar-toggler .line {
        background: #ffffff;
    }

    .nav-background.scrolled .navbar-toggler .line {
        background: #01079b;
    }

    /* Overlay pour fermer le menu */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* ============================================
   FOOTER COLOR FIX
   ============================================ */
footer,
.footer,
.footer-move,
.footer-area,
.footer-section,
footer *,
.footer *,
.footer-move *,
.footer-area *,
.footer-section * {
    background-color: #040226 !important;
}

/* ============================================
   COLOR RED TO #FE0002
   ============================================ */
.theme-color,
.text-danger,
.bg-danger,
.btn-danger,
[style*="color: red"],
[style*="background: red"],
[style*="background-color: red"] {
    color: #fe0002 !important;
}

.bg-danger,
[style*="background: red"],
[style*="background-color: red"] {
    background-color: #fe0002 !important;
}

.border-danger,
[style*="border-color: red"] {
    border-color: #fe0002 !important;
}

.presentation-video-iframe {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* .section.essential .row {
    margin: 0;
}

.section.essential .col-md-6 {
    padding: 0;
}

.section.essential .bg-white {
    padding: 40px;
    height: 100%;
} */

/* ============================================
   FONT AWESOME ICONS FIX
   Force FontAwesome icons to use their own font
   ============================================ */
.fa,
.fas,
.far,
.fal,
.fad,
.fab,
[class^="fa-"],
[class*=" fa-"],
i.fa,
i[class^="fa-"],
i[class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}