/* ===== VARIABLES MODERNES ===== */
:root {
    /* Couleurs principales selon le brief */
    --color-orange: #FF6B35;
    --color-orange-light: #FF8A5B;
    --color-orange-dark: #E85519;
    
    --color-green: #2D9D78;
    --color-green-light: #52B788;
    --color-green-dark: #1B6E52;
    
    /* Palette neutre moderne */
    --color-black: #1A1A1A;
    --color-white: #FFFFFF;
    
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #EEEEEE;
    --color-gray-500: #b3b0b0;
    --color-gray-800: #424242;
    --color-gray-900: #212121;
    
    /* Typographie */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Bordures */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--color-white);
    max-width: 100%;
    width: 100%;
}

/* Ensure all media respects viewport width on mobile */
img, picture, video, iframe {
    max-width: 100%;
    height: auto;
}


/* ensure consistent heading fonts and spacing */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
}

.nav-link {
    font-size: 1rem;

}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    display: flex;
    gap: 0.5rem;
}

.spinner-circle {
    width: 12px;
    height: 12px;
    background: var(--color-orange);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ===== NAVBAR MODERNE ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.brand-name {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-black);
}

.brand-sub {
    color: var(--color-orange);
}

.nav-link {
    font-weight: 500;
    color: var(--color-gray-800) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-orange) !important;
    background: rgba(255, 107, 53, 0.1);
}

.btn-whatsapp-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp-nav:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
    overflow: hidden;
    padding-top: 120px;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0) 70%);
    border-radius: 50%;
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, rgba(45, 157, 120, 0.05), transparent);
}

.hero-badge {
    display: inline-block;
    background: var(--color-orange);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-800);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid var(--color-gray-800);
    color: var(--color-gray-800);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--color-gray-800);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-800);
    margin-top: 0.5rem;
}

.hero-visual {
    position: relative;
}

.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-orange) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    opacity: 0.2;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-green) 0%, transparent 70%);
    bottom: 50px;
    left: -30px;
    opacity: 0.2;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-gray-800);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--color-orange);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* ===== SECTIONS COMMUNES ===== */
section {
    padding: var(--spacing-2xl) 0;
}

.page-hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-white) 100%);
    overflow: hidden;
    padding-top: 100px;
    margin-top: 60px;
}

.page-hero-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-800);
    max-width: 600px;
    line-height: 1.6;
}

.section-subtitle {
    display: block;
    color: var(--color-orange);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-800);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.min-vh-100 {
    min-height: 100vh;
}

.min-vh-50 {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

/* ===== GALLERY STYLES ===== */
.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 53, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    margin: 0;
    font-weight: 700;
}

/* ===== UTILITY HELPERS ===== */
.values-section {
    background: var(--color-gray-50);
}

.value-card-modern {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-200);
}

.value-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
}

.value-icon.orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-orange);
}

.value-icon.green {
    background: rgba(45, 157, 120, 0.1);
    color: var(--color-green);
}

.value-card-modern h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

/* ===== À PROPOS ===== */
.about-section {
    background: var(--color-white);
}

.about-text {
    font-size: 1.125rem;
    color: var(--color-gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text-1 {
    font-size: 1.125rem;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
   
.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.image-stack {
    position: relative;
    margin-left: 3rem;
}

.stack-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}



.stack-1 {
    position: relative;
    z-index: 2;
    transform: rotate(-3deg);
}

.stack-1 img {
    height: 300px; object-fit: cover;
    width: auto;
}

.stack-2 {
    position: absolute;
    top: 30px;
    left: -30px;
    width: 80%;
    z-index: 1;
    transform: rotate(5deg);
}


.stack-2 img {
    height: 300px; object-fit: cover;
    width: auto;
}

.stack-3 {
    position: absolute;
    top: 60px;
    left: -60px;
    width: 70%;
    z-index: 0;
    transform: rotate(-4deg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    text-align: center;
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.experience-years {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-text {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    line-height: 1.2;
}

/* ===== MOT DU DIRECTEUR ===== */
.director-section-modern {
    background: radial-gradient(circle at top left, var(--color-black) 0%, var(--color-gray-900) 100%);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}
.director-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 900px;
    margin: 0 auto;
}

/* alternative layout to differentiate from mission/vision section */
.director-section-alt {
    background: var(--color-gray-50);
    padding: var(--spacing-lg) 0;
}
.director-section-alt .director-content {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--spacing-lg);
}
@media (min-width: 768px) {
    .director-section-alt .director-content {
        flex-direction: row;
    }
}
.director-section-alt .director-photo {
    flex: 1;
    background: url('../images/director-placeholder.jpg') center/cover no-repeat;
    border-radius: var(--border-radius-lg);
    min-height: 300px;
}
.director-section-alt .director-text {
    flex: 2;
}
.director-quote-alt {
    font-size: 1.25rem;
    line-height: 1.8;
    position: relative;
    padding-left: 3rem;
    color: var(--color-gray-800);
}
.director-quote-alt:before {
    content: "“";
    font-size: 4rem;
    position: absolute;
    left: 0;
    top: -10px;
    color: var(--color-orange);
}
/* legacy card style removed, modern/alt definitions are above */

.director-avatar {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-orange);
    margin: 0 auto;
    border: 4px solid rgba(255, 107, 53, 0.3);
}

.director-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.director-quote-modern {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    border-left: 4px solid var(--color-orange);
}

.director-signature {
    font-weight: 600;
    color: var(--color-orange);
    font-size: 1.125rem;
}


/* ===== PRODUITS ===== */
.products-section {
    background: var(--color-gray-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card-modern {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-200);
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Quick product gallery styles */
.product-quick .product-cta {
    text-decoration: none;
    color: var(--color-gray-900);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0.5rem;
}
.product-quick .product-cta:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.product-quick .product-name {
    font-weight: 700;
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

/* About page gallery */
.company-gallery .gallery-item img {
    height: 220px;
    object-fit: cover;
}


.product-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-gray-200);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.product-icon.orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-orange);
}

.product-icon.green {
    background: rgba(45, 157, 120, 0.1);
    color: var(--color-green);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}

.product-body {
    padding: 1.5rem 2rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray-800);
}

.product-features i {
    color: var(--color-green);
}

.product-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
}

.btn-product-link {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-product-link:hover {
    gap: 1rem;
    color: var(--color-orange-dark);
}

/* PRODUCT SHOWCASE - SIDE-BY-SIDE LAYOUT */
.product-showcase {
    background: white;
    padding: 40px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-showcase:hover {
    transform: translateY(-2px);
}

.product-showcase-image {
    height: 340px;
    object-fit: cover;
    transition: transform 0.3s ease;
    
}

.product-showcase-image:hover {
    transform: scale(1.02);
}

.product-content {
    padding: 0 30px;
}

.product-badge {
    display: none;
}

.product-badge.orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-orange);
}

.product-badge.green {
    background: rgba(45, 157, 120, 0.1);
    color: var(--color-green);
}

.product-showcase-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-details {
    margin-bottom: 20px;
}

.product-details h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-list li {
    padding: 8px 0;
    color: #666;
    font-size: 15px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.product-list li i {
    margin-right: 12px;
    font-size: 13px;
    width: 16px;
}

/* Responsive adjustments for side-by-side product showcase */
@media (max-width: 992px) {
    .product-showcase-image {
        height: 280px;
    }
    
    .product-showcase-title {
        font-size: 26px;
    }
    
    .product-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 30px 0;
    }
    
    .product-showcase-image {
        height: 240px;
        margin-bottom: 20px;
    }
    
    .product-content {
        padding: 0;
    }
    
    .row.flex-row-reverse {
        flex-direction: column-reverse;
    }
    
    .product-showcase-title {
        font-size: 22px;
    }
    
    .product-description {
        font-size: 15px;
    }
}



/* ===== GALERIE ===== */
.gallery-fullwidth {
    padding: var(--spacing-2xl) 0;
    background: var(--color-gray-50);
    overflow: hidden;
    width: 100%;
    position: relative;
}

.gallery-fullwidth .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.gallery-fullwidth .text-center {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.gallery-carousel-track {
    display: flex;
    gap: 1rem;
    animation: carouselScroll 40s linear infinite;
    padding: 1rem 0;
    width: fit-content;
    will-change: transform;
}

.gallery-carousel-track:hover {
    animation-play-state: paused;
}

.gallery-carousel-track-reverse {
    animation: carouselScrollReverse 45s linear infinite;
}

.gallery-carousel-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
}

.gallery-carousel-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.gallery-carousel-item {
    max-width: 100%;
}

.gallery-carousel-item:hover img {
    transform: scale(1.1);
}

/* Suppression des captions */
.gallery-carousel-caption {
    display: none;
}

@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes carouselScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Version mobile */
@media (max-width: 992px) {
    .gallery-carousel-item {
        width: 300px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .gallery-fullwidth {
        padding: var(--spacing-xl) 0;
    }
    
    .gallery-carousel-item {
        width: 250px;
        height: 180px;
    }
    
    .gallery-carousel-track {
        gap: 0.75rem;
        animation-duration: 30s;
    }
    
    .gallery-carousel-track-reverse {
        animation-duration: 35s;
    }
}

/* Pause au toucher sur mobile */
@media (max-width: 768px) {
    .gallery-carousel-track:active {
        animation-play-state: paused;
    }
}

/* Styles additionnels pour la galerie */
.gallery-section {
    padding: 4rem 0;
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.gallery-grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.gallery-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    z-index: 5;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.gallery-grid-item:hover .gallery-overlay-custom {
    opacity: 1;
}

.gallery-overlay-custom span {
    color: white;
    font-weight: 500;
    font-size: 0.75rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    line-height: 1.3;
}

.gallery-grid-item:hover .gallery-overlay-custom span {
    transform: translateY(0);
}

.gallery-category {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gallery-category-btn {
    padding: 0.4rem 1.2rem;
    border: 2px solid var(--color-orange);
    background: transparent;
    color: var(--color-gray-800);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-category-btn:hover,
.gallery-category-btn.active {
    background: var(--color-orange);
    color: white;
}

/* Compteur d'images */
.gallery-stats {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.gallery-stats i {
    color: var(--color-orange);
    margin-right: 0.5rem;
}

/* ===== MISSION & VISION ===== */
.mission-card,
.vision-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mission-card {
    border-top: 4px solid var(--color-orange);
}

.vision-card {
    border-top: 4px solid var(--color-green);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-header,
.vision-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mission-icon,
.vision-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mission-icon {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-orange);
}

.vision-icon {
    background: rgba(45, 157, 120, 0.1);
    color: var(--color-green);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-black);
}

.mission-body p,
.vision-body p {
    font-size: 1.125rem;
    color: var(--color-gray-800);
    line-height: 1.8;
}

/* ===== PROCESSUS ===== */
.process-section {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-gray-200);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: calc(50% - 60px);
    margin: 0 2rem;
}

.process-step:nth-child(odd) .step-content {
    text-align: right;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

/* ===== QUALITÉ ===== */
.quality-section {
    background: var(--color-white);
}

.quality-visual {
    position: relative;
}

.quality-stack {
    position: relative;
    margin-left: 3rem;
}

.quality-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    z-index: 4;
    box-shadow: var(--shadow-md);

}

.quality-visual img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.quality-points {
    margin-top: 2rem;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.point-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-orange);
    flex-shrink: 0;
}

.point-item h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-black);
}


/* ===== CLIENTS ===== */
.clients-section {
    background: var(--color-gray-50);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-200);
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}



/* ===== CONTACT ===== */
.contact-section-modern {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.contact-description {
    font-size: 1.125rem;
    color: var(--color-gray-800);
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-orange);
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-gray-800);
}

.contact-item a,
.contact-item p {
    color: var(--color-gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-orange);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-800);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-orange);
    color: white;
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25D366;
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-black);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    padding: 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* Contact Method Selection */
.contact-method-selector {
    background: transparent;
    padding: 0;
    border: none;
    margin-bottom: 1.5rem;
}

.selector-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.method-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--color-gray-300);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-gray-600);
    font-size: 18px;
}

.method-btn:hover {
    border-color: var(--color-orange);
    background: rgba(255, 107, 53, 0.05);
    transform: scale(1.1);
}

.method-btn.active {
    border-color: var(--color-orange);
    background: var(--color-orange);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Contact Method Content */
.contact-method-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.contact-method-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Contact Card */
.quick-contact-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.15);
    display: flex;
    flex-direction: column;
}

.quick-contact-card .form-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.phone-info,
.whatsapp-info {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--color-orange);
    margin-bottom: 1.5rem;
}

.phone-info .info-item,
.whatsapp-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phone-info i,
.whatsapp-info i {
    font-size: 1.5rem;
    color: var(--color-orange);
    min-width: 30px;
}

.phone-info h5,
.whatsapp-info h5 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}

.phone-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-orange);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.phone-number:hover {
    color: var(--color-orange-dark);
    transform: translateX(3px);
}

.quick-contact-form {
    background: var(--color-gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
}

.form-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-method-selector {
        padding: 1.5rem;
    }
    
    .method-buttons {
        grid-template-columns: 1fr;
    }
    
    .method-btn {
        padding: 1.25rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .hero-gradient {
        right: -8%;
        width: 700px;
        height: 700px;
    }

    .clients-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .clients-track {
        animation: none;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .client-logo {
        width: 230px;
        height: 140px;
    }
}


/* ===== FOOTER ===== */
.footer-modern {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.footer-modern * {
    box-sizing: border-box;
}

.footer-brand {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 180px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Make footer logo text white */
.footer-brand h4,
.footer-brand h4 .text-orange {
    color: var(--color-white) !important;
}

.footer-description {
    color: var(--color-gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-left: 0.5rem;
}

.footer-contact p {
    color: var(--color-gray-400);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.footer-contact p a {
    color: var(--color-gray-400);
    word-break: break-all;
    overflow-wrap: break-word;
}

.footer-contact i {
    color: var(--color-orange);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.copyright {
    color: var(--color-gray-400);
    margin: 0;
}

.back-to-top {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    color: var(--color-white);
    gap: 0.75rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: row !important;
    }
    
    .step-content {
        width: calc(100% - 100px);
        margin-left: 2rem;
        margin-right: 0;
    }
    
    .process-step:nth-child(odd) .step-content {
        text-align: left;
    }

    .image-stack {
        margin-left: 2rem;
    }

    .quality-stack {
        margin-left: 2rem;
    }

    .stack-2 {
        top: 25px;
        left: -25px;
        width: 85%;
    }

    .stack-3 {
        top: 50px;
        left: -50px;
        width: 75%;
    }
}



/* ===== CLIENTS CAROUSEL STYLES ===== */
.clients-logos {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    max-width: 100%;
}

.clients-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.clients-track {
    display: flex;
    gap: var(--spacing-md);
    animation: slideLeft 17s linear infinite;
    min-width: max-content;
    width: 100%;
    box-sizing: border-box;
}


.client-logo {
    flex: 0 0 auto;
    width: 280px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: var(--spacing-xs);
}

.client-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(4%) contrast(1.2);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) contrast(1.2);
    opacity: 1;
    transform: scale(1.15);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== PARTENAIRES GRID ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partner-logo-item {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    width: 100%;
    max-width: 200px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ===== CONTACT METHODS ===== */
.contact-methods {
    background: var(--color-gray-50);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-check-label i {
    color: var(--color-orange);
}

/* ===== SECTION BADGE ===== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== IMPROVED CONTAINER CENTERING ===== */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.text-center {
    text-align: center;
}

/* ===== IMPROVED ALIGNMENT ===== */
.navbar-nav {
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {

    padding: 0.5rem 1rem;
}

/* ===== DROPDOWN MENU STYLING ===== */
.dropdown-menu {
    background: var(--color-white);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    /* make it wide enough for longer labels and break lines */
    min-width: 220px;
    width: auto;
    white-space: normal;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateX(0);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-item {
    font-family: var(--font-primary);
    color: var(--color-gray-800);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    white-space: normal;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-orange);
    border-radius: 4px;
    margin: 0 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.dropdown-item.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--color-orange);
    font-weight: 600;
}

.dropdown-toggle::after {
    border: none;
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: transform 0.3s ease;
}
    


@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .image-stack {
        margin-left: 0;
        margin-top: 3rem;
    }

    .quality-stack {
        margin-left: 1rem;
    }
    
    .value-card-modern,
    .mission-card,
    .vision-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .image-stack,
    .quality-stack {
        margin-left: 1rem;
        margin-top: 2rem;
    }

    .stack-1 {
        transform: rotate(-2deg);
    }

    .stack-2 {
        top: 15px;
        left: -15px;
        width: 85%;
        transform: rotate(3deg);
    }

    .stack-3 {
        top: 30px;
        left: -30px;
        width: 75%;
        transform: rotate(-3deg);
    }

    .quality-badge {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .experience-badge {
        padding: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-orange {
    color: var(--color-orange) !important;
}

.text-green {
    color: var(--color-green) !important;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

/* ===== SECTION RESPONSIVE PADDINGS ===== */
section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ensure modern director sections have white text by default */
.director-section-modern .director-card,
.director-section-modern .director-title,
.director-section-modern .director-quote-modern,
.director-section-modern .director-signature {
    color: var(--color-white);
}

.values-section,
.about-section,
.director-section-modern,
.products-section,
.mission-section,
.process-section,
.quality-section {
    padding-left: 0;
    padding-right: 0;
}



/* ===== CORRECTIONS GÉNÉRALES POUR LE RESPONSIVE ===== */

/* Empêcher le débordement — uniquement sur les éléments qui peuvent déborder */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Images responsives par défaut */
img {
    max-width: 100%;
    height: auto;
}

/* Fix pour la navbar */
.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Ajustement du padding pour les sections */
section {
    width: 100%;
}

/* Correction pour le carousel */
.clients-carousel {
    position: relative;
    overflow: hidden;
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    .btn {
        font-size: 16px;
    }
    
    /* Réduire les animations sur mobile */
    .hero-image-wrapper {
        transform: none !important;
    }
    
    .shape {
        display: none;
    }
}

/* Support pour les appareils très petits */
@media (max-width: 360px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}


.team-group-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}
.team-group-image-wrapper:hover {
    transform: scale(1.02);
}
.bg-orange {
    background-color: var(--color-orange) !important;
}
.team-icon-circle {
    width: 90px;
    height: 90px;
    background: rgba(255,107,53,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-value-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.team-value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,107,53,0.15);
    border-color: transparent;
}
.team-quote {
    background: linear-gradient(145deg, #fafafa, #ffffff);
    border-left: 6px solid var(--color-orange);
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,107,53,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h5 {
    color: white;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay h5 {
    transform: translateY(0);
}


/* ===== CORRECTIONS RESPONSIVE FOOTER & NAVBAR MOBILE ===== */

/* Footer responsive */
@media (max-width: 768px) {
    .footer-modern {
        padding: 2.5rem 0 1.5rem;
    }
    .footer-logo {
        height: 100px;
        max-width: 100%;
    }
    .footer-contact p {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    .footer-bottom .row {
        text-align: center;
    }
    .footer-bottom .col-md-6:last-child {
        text-align: center !important;
        margin-top: 0.75rem;
    }
    .footer-links a {
        font-size: 0.95rem;
    }
}

/* Navbar mobile — s'assurer que le menu collapse s'affiche bien */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0 0 12px 12px;
        padding: 1rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
    }
    .navbar-nav {
        flex-direction: column !important;
        gap: 0.25rem;
    }
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
    }
    .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        background: rgba(255,107,53,0.05);
        padding-left: 1rem;
    }
    .btn-whatsapp-nav {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    .d-flex.align-items-center.ms-4 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}

/* Empêcher les débordements sur les sections */
.hero-section,
.about-section,
.products-section,
.process-section,
.quality-section,
.director-section-alt,
.director-section-modern,
.contact-section-modern,
.values-section {
    overflow-x: hidden;
}

/* Fix image-stack qui déborde */
@media (max-width: 768px) {
    .image-stack {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    .stack-item {
        max-width: 100%;
    }
    .stack-2 {
        left: -10px !important;
    }
    .stack-3 {
        left: -20px !important;
    }
    .about-visual,
    .quality-visual {
        padding: 0 0.5rem;
        overflow: hidden;
    }
    /* Hero section mobile */
    .hero-section {
        padding-top: 80px;
    }
    .hero-visual {
        display: none;
    }
    /* Process timeline */
    .process-timeline {
        padding-left: 0;
    }
    /* Contact section */
    .contact-section-modern .col-lg-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    /* Maps iframe */
    .maps-container iframe {
        height: 220px;
    }
    /* Director card */
    .director-card .row {
        flex-direction: column;
    }
}

/* Fix page-hero débordement */
.page-hero-section {
    overflow-x: hidden;
    width: 100%;
}

/* Fix pour les tableaux et éléments larges */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Fix clients carousel — ne pas déborder */
.clients-logos,
.clients-carousel {
    max-width: 100%;
    overflow: hidden;
}

/* ===== CORRECTIONS FINALES MOBILE ===== */

/* Partners grid sur petits écrans */
@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .partner-logo-item {
        max-width: 100%;
        padding: 1rem;
        height: 100px;
    }
}

/* Page hero sur mobile */
@media (max-width: 768px) {
    .page-hero-title {
        font-size: 1.8rem;
    }
    .page-hero-subtitle {
        font-size: 1rem;
    }
    .page-hero-section {
        padding-top: 80px;
        min-height: auto;
    }
}

/* Fix navbar toggler — s'assurer qu'il est visible et cliquable */
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.15) !important;
    padding: 0.4rem 0.6rem !important;
    z-index: 1060;
    position: relative;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25) !important;
    outline: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C 0%2C 0%2C 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Navbar container fix pour mobile */
@media (max-width: 991.98px) {
    .navbar > .container-fluid {
        position: relative;
    }
    /* Le collapse doit se positionner sous la navbar fixe */
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        padding: 1rem 1.5rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        border-top: 1px solid rgba(0,0,0,0.08);
        z-index: 1049;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .navbar-nav {
        gap: 0 !important;
    }
    .nav-link {
        padding: 0.8rem 0.5rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-radius: 0 !important;
    }
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    .dropdown-menu.show {
        position: static !important;
        border: none;
        background: rgba(255, 107, 53, 0.04);
        box-shadow: none;
        padding: 0.25rem 0 0.25rem 1rem;
        border-radius: 0;
        animation: none;
    }
    .d-flex.align-items-center.ms-4 {
        margin-left: 0 !important;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    .btn-whatsapp-nav {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
}

/* Fix section overflow sur toutes les pages */
section,
.about-section,
.products-section,
.process-section,
.quality-section,
.contact-section-modern,
.director-section-alt,
.director-section-modern,
.values-section,
.gallery-fullwidth {
    max-width: 100%;
    overflow-x: clip;
}

/* Fix container-fluid débordement */
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix hero-gradient qui cause débordement */
.hero-gradient {
    overflow: hidden;
    max-width: 100vw;
}

/* Corrections spécifiques about.html */
.about-visual {
    overflow: hidden;
}

