/* Reset & Base Styles */
:root {
    --primary-color: #003366; /* Bleu foncé (Navy) */
    --secondary-color: #ffc107; /* Jaune/Or (Accent) */
    --top-bar-bg: #3498db; /* Bleu clair (Top Bar) */
    --dark-blue: #001f3f; /* Bleu très foncé pour Hero/Footer */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --text-color: #333;
    --light-text: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.2);
    --border-radius: 5px; /* Moins arrondi pour un look plus "pro/industriel" comme l'image */
    --container-width: 1200px;
}

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

body {
    font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px; /* Slightly rounded */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--secondary-color); /* Yellow Button */
    color: var(--dark-blue);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar-contact i {
    margin-right: 8px;
}

.top-bar-social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
}

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

/* Header */
header {
    background-color: var(--primary-color); /* Dark Blue Header */
    color: var(--white);
    padding: 5px 0;
    position: relative; /* Changed from sticky for now, can be sticky */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px; /* Adjust as needed */
    /*  filter: brightness(0) invert(1);  Make logo white if it's not */
}

nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh; /* Adjust height as needed */
    min-height: 600px;
    overflow: hidden;
    background-color: var(--dark-blue);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: var(--white);
    max-width: 800px;
    position: relative;
    z-index: 3;
    padding: 20px;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to content */
}

.prev-slide,
.next-slide {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto; /* Re-enable clicks for buttons */
}

.prev-slide:hover,
.next-slide:hover {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }

    .slide h1 {
        font-size: 2rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .slider-controls {
        display: none; /* Hide arrows on mobile */
    }
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light grey background */
    text-align: center;
}

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

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.testimonial-card::before {
    content: "\201C"; /* Large quote mark */
    font-family: serif;
    font-size: 100px;
    color: rgba(0, 31, 63, 0.1); /* Light primary color */
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Page Header */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
    background-color: var(--primary-color); /* Fallback */
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.5); /* Dark blue overlay */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Services Highlight */
.services-highlight {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.section-title h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: inline-block;
}

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

/* About Preview */
.about-preview {
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    width: 100%;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

@media (max-width: 992px) {
    .about-preview {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 50px 20px;
    }
    .about-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .about-text ul {
        text-align: left;
        display: inline-block;
        margin: 20px auto !important;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo white */
}

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

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

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

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

/* Sticky Call Button */
.sticky-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.sticky-call-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on mobile to save space */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}

/* Services Grid */
.services-section {
    margin-top: 80px;
    padding-bottom: 40px;
    text-align: center;
}

.services-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: transparent;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    background: var(--primary-color);
    transform: rotateY(180deg);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-item:hover i {
    color: var(--secondary-color);
}

.service-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.service-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Payment Methods */
.payment-section {
    margin-top: 80px;
    background-color: var(--primary-color);
    background-image: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--dark-blue) 100%
    );
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background pattern */
.payment-section::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.payment-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 50px;
    margin-top: -10px;
}

.payment-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.payment-method {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    transition: var(--transition);
}

.payment-method:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.payment-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.payment-method:hover .payment-icon {
    transform: scale(1.1);
}

.payment-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.payment-brands {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.payment-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 5px;
}
