/* style.css */
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #BB2005; /* Rouge Traki */
    --secondary: #FCBE22; /* Jaune moutarde */
    --dark: #1A1A1A;
    --light: #F9F9F9;
    --gray: #6C757D;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family:  sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.text-moutarde {
    color: var(--secondary) !important;
}

.text-rouge {
    color: var(--primary) !important;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    padding: 0 15px;
}

/* ===== HEADER & NAVBAR ===== */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-dark {
    background-color: var(--primary);
}

.navbar-brand img {
    max-height: 80px;
    transition: all 0.3s;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: none;
    font-size: 1.5rem;
    color: var(--white);
}

/* Tooltip logo */
.tooltip-logo {
    position: relative;
    display: inline-block;
}

.tooltip-logo .tooltip-box {
    visibility: hidden;
    opacity: 0;
    width: 400px;
    background-color: var(--white);
    color: var(--dark);
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 20px;
    position: absolute;
    z-index: 1000;
    top: 120%;
    left: 60%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease;
    font-size: 14px;
    line-height: 1.3;
}

.tooltip-logo:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
}

/* ===== TOPBAR ===== */
.topbar {
    background-color: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.topbar a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.topbar a:hover {
    color: var(--white);
}

/* ===== HERO CAROUSEL ===== */
.carousel-item {
    height: 80vh;
    min-height: 500px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 100px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.26));
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
    position: relative;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
    color: var(--white);
}

.bg-traksi {
    background-color: var(--primary) !important;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(119, 2, 2, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #9a1a04;
    border-color: #9a1a04;
}

.btn-warning {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ===== MODALS ===== */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 20px 25px;
    background-color: var(--primary);
    color: var(--white);
}

.modal-body {
    padding: 25px;
}

/* ===== SWIPER SLIDER ===== */
.swiper {
    padding: 20px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.swiper-slide img {
    max-width: 100%;
    height: auto;
 
    transition: all 0.3s;
}

.swiper-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ===== TEAM SECTION ===== */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}
.Enga {
  color: #fffafa;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--secondary);
}

.footer .btn-square {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
    .carousel-item {
        height: 70vh;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-link {
        color: var(--dark) !important;
        padding: 10px 0;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    .carousel-caption {
        padding-bottom: 50px;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-start {
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 45vh;
        min-height: 350px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .tooltip-logo .tooltip-box {
        width: 300px;
        left: 50%;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===== UTILITY CLASSES ===== */
.rounded-4 {
    border-radius: 15px;
}

.rounded-5 {
    border-radius: 20px;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mt-n5 {
    margin-top: -3rem;
}

.z-10 {
    z-index: 10;
}

/* ===== CUSTOM COMPONENTS ===== */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 10px;
    flex-shrink: 0;
}

/* ===== FORM STYLES ===== */
.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(187, 32, 5, 0.25);
    border-color: var(--primary);
}

.form-floating label {
    color: var(--gray);
}

/* ===== SPINNER ===== */
#spinner {
    background-color: rgba(255, 255, 255, 0.8);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}

/* ===== AOS ANIMATIONS ===== */
[data-aos] {
    transition: all 0.5s ease;
}

/* ===== TAB STYLES ===== */
.nav-pills .nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-pills .nav-link {
    color: var(--dark);
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: left;
    transition: all 0.3s;
}

/* ===== SWIPER NAVIGATION ===== */
.swiper-button-prev,
.swiper-button-next {
    color: var(--primary);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.2rem;
}