/* ========================================
   SILT Groupes Électrogènes - NEW DESIGN
   Inspiré par le template roofing
   ======================================== */

:root {
    --primary: #DC143C;
    --primary-dark: #B21E35;
    --secondary: #003366;
    --secondary-dark: #001f3f;
    --text: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    
    --font-family: 'Montserrat', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-white);
}

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--spacing-md); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-white {
    background: white;
    color: var(--primary);
    border: 2px solid white;
    font-weight: 700;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

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

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

/* ========== TOP BANNER - SLIDES DÉFILANTES ========== */
.top-banner {
    position: relative;
    width: 100%;
    height: 660px;
    overflow: hidden;
    background: #001a33;
}

.top-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.top-banner-slide.active {
    opacity: 1;
}

.top-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,26,51,0.55) 0%, rgba(0,26,51,0.15) 40%, rgba(0,26,51,0.65) 100%);
}

.top-banner-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    text-align: center;
    z-index: 2;
}

.top-banner-overlay p {
    display: inline-block;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 30px;
}

.top-banner-dots {
    position: absolute;
    top: 14px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.top-banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.top-banner-dot.active {
    background: var(--primary);
}

@media (max-width: 768px) {
    .top-banner {
        height: 450px;
    }

    .top-banner-overlay p {
        font-size: 0.8rem;
    }
}

/* ========== NAVBAR ========== */
.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.contact-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
}

.contact-btn:hover {
    background: var(--primary-dark);
}

/* ========== DROPDOWN MENU ========== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 1001;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: calc(var(--spacing-lg) + 3px);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(45, 45, 68, 0.8) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(0, 51, 102, 0.8) 100%), url('assets/images/20kVA.png') center/contain no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 2;
    padding: var(--spacing-2xl);
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    order: 2;
}

.hero-image-placeholder {
    font-size: 15rem;
    opacity: 0.9;
    animation: slideInRight 0.8s ease-out;
}

.hero-content {
    flex: 0 0 60%;
    position: relative;
    text-align: left;
    max-width: 100%;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 0;
    z-index: 2;
    order: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    animation: slideInDown 0.8s ease-out;
}

.hero p {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 20, 60, 0.7);
    border: none;
    color: white;
    font-size: 1.8rem;
    padding: 1rem 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    z-index: 10;
}

.hero-nav:hover {
    background: var(--primary);
}

.hero-nav.prev {
    left: var(--spacing-lg);
}

.hero-nav.next {
    right: var(--spacing-lg);
}

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-md);
    z-index: 10;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    background: white;
    width: 40px;
    border-radius: 8px;
}

.hero-accent {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
    color: #003366;
    font-size: 1.8rem;
}

.section-header h2 a {
    color: #003366;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.section-header h2 a:hover {
    opacity: 0.8;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========== HIGHLIGHTS SECTION ========== */
.highlights {
    padding: 0;
    background: #003366;
    margin-bottom: var(--spacing-2xl);
}

.highlights-services {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
}

.service-item {
    padding: calc(var(--spacing-xl) / 2);
    color: white;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    transition: all 0.3s ease;
}

.service-item:last-child {
    border-right: none;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-item h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* ========== SERVICES SECTION ========== */
.services {
    padding: var(--spacing-lg) 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
}

.service-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-image {
    font-size: 4rem;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
}

.service-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
}

.service-content p {
    flex: 1;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ========== SUBSECTIONS & CAROUSELS ========== */
.subsection {
    margin-bottom: var(--spacing-lg);
}

.subsection-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.services-carousel {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
}

.services-carousel::-webkit-scrollbar {
    height: 6px;
}

.services-carousel::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 3px;
}

.monophase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.monophase-grid .service-card-item {
    padding: 0.4rem;
}

.monophase-grid .service-card-item .service-image {
    height: 160px;
    margin-bottom: 0.15rem;
    font-size: 2rem;
}

.monophase-grid .service-card-item h4 {
    font-size: 0.95rem;
    margin: 0 0 0.1rem 0;
}

.monophase-grid .service-card-item p {
    font-size: 0.8rem;
}

.service-card-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 0.4rem;
    text-align: center;
    flex: 0 0 calc(25% - 9px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card-item.is-active {
    transform: scale(1.12);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 5;
}

.service-card-item .service-image {
    font-size: 3rem;
    height: 200px;
    background: transparent;
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-item h4 {
    color: #003366;
    font-size: 1rem;
    margin: 0 0 0.15rem 0;
}

.service-card-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.service-card-item .service-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid #003366;
    background: white;
    color: #003366;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: #003366;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -60px;
}

.carousel-nav.next {
    right: -60px;
}

/* ========== INVERSEURS SECTION ========== */
.inverseurs {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
}

.inverseurs-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-md);
}

.inverseur-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.inverseur-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.inverseur-card h3 {
    color: #003366;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.inverseur-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ========== SPARE PARTS SECTION ========== */
.spare-parts {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
}

.spare-parts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
}

.spare-part-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.spare-part-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.spare-part-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.spare-part-card h3 {
    color: #003366;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.spare-part-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ========== PROJECTS SECTION ========== */
.projets {
    padding: var(--spacing-lg) 0;
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    group: 'projects';
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), #2d5a7b);
    color: white;
    z-index: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    padding: var(--spacing-lg);
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
}

.testimonials-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: var(--spacing-lg) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.stars {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-author strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.2rem;
}

.testimonial-author small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonials-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #003366;
    background: white;
    color: #003366;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonials-nav-btn:hover {
    background: #003366;
    color: white;
    transform: scale(1.1);
}

/* ========== BLOG SECTION ========== */
.blog {
    padding: var(--spacing-lg) 0;
    background: var(--bg-white);
}

.blog-grid {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 1rem;
    scrollbar-width: thin;
}

.blog-grid::-webkit-scrollbar {
    height: 6px;
}

.blog-grid::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 3px;
}

.blog-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    height: 170px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .blog-date {
    padding: var(--spacing-md) var(--spacing-lg) 0;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.blog-card h3 {
    padding: 0 var(--spacing-lg);
    color: var(--secondary);
    margin-top: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card p {
    padding: 0 var(--spacing-lg);
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.blog-card .read-more {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: var(--spacing-2xl) 0;
    background: transparent;
}

.contact-tabs-nav {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    border-bottom: 2px solid #e0e0e0;
    justify-content: center;
}

.contact-tab-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.contact-tab-btn:hover {
    color: #003366;
}

.contact-tab-btn.active {
    color: #003366;
    border-bottom-color: #DC143C;
}

.contact-tabs-content {
    width: 100%;
}

.contact-tab-pane {
    display: none;
}

.contact-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.contact-form-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: var(--spacing-2xl);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ========== CONTACT SPLIT 2/3 - 1/3 ========== */
.contact-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.contact-form-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-geo-col {
    display: flex;
}

.contact-tabs-content {
    flex: 1;
    display: flex;
}

.contact-tab-pane.active {
    width: 100%;
}

.contact-form-col .contact-form-card {
    width: 100%;
}

.geo-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.geo-card h3 {
    color: #003366;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.geo-card iframe {
    width: 100%;
    flex: 1;
    min-height: 380px;
    border: 0;
    border-radius: var(--border-radius);
}

@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
    }

    .geo-card iframe {
        min-height: 300px;
    }
}

.contact-form-card h3 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.contact-info-inline {
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.info-item .info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.info-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--spacing-lg);
}

.contact-form-wrapper {
    background: #f0f0f0;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-wrapper h3 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.contact-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.contact-left-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.contact-left-form .btn {
    width: 100%;
    margin-top: var(--spacing-lg);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* ========== FORM GROUP WITH LABEL ========== */
.form-group-with-label {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-with-label label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
    text-align: left;
}

.contact-cta .form-group-with-label label {
    color: black;
}

.form-group-with-label input,
.form-group-with-label select,
.form-group-with-label textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group-with-label input:focus,
.form-group-with-label select:focus,
.form-group-with-label textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group-with-label textarea {
    resize: vertical;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: white;
}

.phone-prefix {
    padding: 0.9rem 0.9rem;
    background: #f0f0f0;
    color: #003366;
    font-weight: 500;
    white-space: nowrap;
    border-right: 1px solid #ddd;
}

.phone-input-wrapper input {
    border: none;
    padding: 0.9rem !important;
    flex: 1;
    background: transparent;
}

.phone-input-wrapper input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.contact-left-form .form-group-with-label,
.contact-form .form-group-with-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ========== BUTTON SIZES ========== */
.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: var(--spacing-2xl);
    text-align: center;
    border-radius: var(--border-radius);
    margin: var(--spacing-2xl) 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
}

.footer-section {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-xs);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-logo {
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a[title="Facebook"] {
    background: #1877F2;
}

.social-links a[title="LinkedIn"] {
    background: #0A66C2;
}

.social-links a[title="YouTube"] {
    background: #FF0000;
}

.social-links a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.go-top {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.go-top:hover {
    color: var(--primary);
}

/* ========== HAMBURGER ========== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== PARTNERS SECTION ========== */
.partners {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
    overflow: hidden;
}

.section-header h2 {
    color: #003366;
    font-size: 1.8rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.partners-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.partners-slider {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.5s ease-in-out;
    animation: scrollPartners 20s linear infinite;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-20%);
    }
}

.partner-logo-item {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo-item img {
    max-width: 90%;
    max-height: 90px;
    object-fit: contain;
}

.partners-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.8rem 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    z-index: 10;
}

.partners-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.partners-nav.prev {
    left: -20px;
}

.partners-nav.next {
    right: -20px;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .monophase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-services {
        grid-template-columns: repeat(3, 1fr);
    }

    .inverseurs-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .spare-parts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-slide {
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-lg);
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        text-align: center;
        padding: var(--spacing-lg);
        max-width: 100%;
    }

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

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

    .hero-nav {
        padding: 0.75rem 1rem;
        font-size: 1.3rem;
    }

    .hero-nav.prev {
        left: var(--spacing-sm);
    }

    .hero-nav.next {
        right: var(--spacing-sm);
    }

    .hero-dots {
        bottom: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .hero-dot.active {
        width: 28px;
    }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        gap: 0;
        display: none;
        padding: var(--spacing-lg) 0;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .services-grid,
    .team-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-cta {
        padding: var(--spacing-xl);
        min-height: 300px;
    }

    .contact-cta h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group-with-label {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .form-group-with-label label {
        text-align: left;
        padding-right: 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .carousel-nav {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 1rem;
    }

    .carousel-nav.prev {
        left: var(--spacing-sm);
    }

    .carousel-nav.next {
        right: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .monophase-grid {
        grid-template-columns: 1fr;
    }

    .highlights-services {
        grid-template-columns: 1fr;
    }

    .inverseurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spare-parts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .partner-logo-item {
        flex: 0 0 50%;
        min-height: 100px;
    }

    .partners-nav {
        padding: 0.6rem 0.9rem;
        font-size: 1.2rem;
    }
}

/* ========== IMAGE STYLES ========== */
.hero-image-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-image-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========== FORM ROW LAYOUT ========== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-row .form-group-with-label {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ========== CHAT WIDGET ========== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #DC143C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 2rem;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.6);
}

@media (max-width: 480px) {
    .chat-widget {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}
