/* Main CSS for AFRIK EXPRESS & LOGISTICS website */
:root {
    --primary-color: #006633; /* Dark green from Air Afrique */
    --secondary-color: #4CAF50; /* Lighter green accent */
    --accent-color: #FFFFFF; /* White */
    --background-color: #F5F5F5; /* Light background */
    --text-color: #333333; /* Dark text */
    --cream-color: #F5F0DC; /* Cream color from trucks */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: relative;
}

.logo {
    margin-right: auto;
    padding-left: 0;
    margin-left: -130px;
}

/* Media query pour ajuster la position du logo sur les écrans plus petits */
@media (max-width: 1200px) {
    .logo {
        margin-left: -30px;
    }
}

@media (max-width: 992px) {
    .logo {
        margin-left: 0;
    }
}

.logo img {
    height: 100px;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    display: block;
    padding: 5px 0;
}

nav ul li.has-submenu > a {
    cursor: default;
    pointer-events: none;
}

nav ul li.has-submenu:hover > a {
    color: var(--primary-color);
}

/* Sous-menu styles */
nav ul li ul.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--accent-color);
    width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 5px;
    display: block;
}

nav ul li:hover > ul.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li ul.submenu li {
    margin: 0;
    width: 100%;
}

nav ul li ul.submenu li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav ul li ul.submenu li:last-child a {
    border-bottom: none;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1000;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/camion.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--accent-color);
    margin-top: 90px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Services Preview Section */
.services-preview {
    padding: 80px 0;
    background-color: var(--accent-color);
}

.services-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--cream-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.services-cta {
    text-align: center;
}

.services-cta .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.services-cta .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;
    background-color: var(--cream-color);
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 400;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-content .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--accent-color);
}

.about-content .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding: 20px 0;
}

.testimonial {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin: 0 auto;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.client h4 {
    font-size: 1rem;
    font-weight: 400;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/camion.png');
    background-size: cover;
    background-position: center;
    color: var(--accent-color);
    text-align: center;
    padding: 80px 0;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-text {
    margin-bottom: 30px;
}

.cta-text .company-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.cta-text .tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 25px;
    color: #f5f5f5;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #222;
    color: var(--accent-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 0.9rem;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Advantage Cards Styles */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.advantage-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: var(--cream-color);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.3s;
}

.advantage-card:hover i {
    background-color: var(--primary-color);
    color: var(--cream-color);
    transform: rotateY(180deg);
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.advantage-card p {
    flex-grow: 1;
    line-height: 1.6;
}

/* Testimonials Styles */
.testimonials {
    margin-top: 60px;
    background-color: var(--cream-color);
    padding: 60px 0;
    border-radius: 10px;
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 30px;
    line-height: 1.8;
}

.testimonial p:before,
.testimonial p:after {
    content: '\201C';
    font-size: 60px;
    position: absolute;
    color: var(--primary-color);
    opacity: 0.3;
    top: -20px;
    left: 0;
}

.testimonial p:after {
    content: '\201D';
    top: auto;
    left: auto;
    bottom: -40px;
    right: 0;
}

.client {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.client h3 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.client h4 {
    margin: 5px 0 0;
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

/* About Navigation Styles */
.about-navigation {
    padding: 80px 0;
    background-color: var(--accent-color);
}

.about-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-nav-card {
    background-color: var(--cream-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-nav-card:hover {
    transform: translateY(-10px);
}

.about-nav-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-nav-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.about-nav-card .btn {
    align-self: center;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--accent-color);
}

.about-nav-card .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .about-preview .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
    }
    
    .logo {
        margin-right: 0;
        position: static;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--accent-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul li {
        margin: 0;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
