/* ===================================================
   AMINAS ASCENSEURS - DESIGN SYSTEM COHÉRENT
   Version 2.0 - Design moderne et responsive
   ===================================================  */

:root {
    /* Couleurs */
    --primary: #004080;
    --primary-dark: #002f5f;
    --primary-light: #1a5fa3;
    --accent: #DA2027;
    --accent-dark: #b81b21;

    /* Neutres */
    --text: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6b6b6b;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --white: #ffffff;

    /* Typographie (échelle 1.25) */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* Espacements (échelle 8px) */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Ombres */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Rayons */
    --rounded-sm: 0.25rem;
    --rounded: 0.5rem;
    --rounded-lg: 1rem;
    --rounded-xl: 1.5rem;
    --rounded-full: 9999px;

    /* Layout */
    --container: 1280px;
    --header-height: 80px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.625;
    color: var(--text);
    background: var(--white);
    padding-top: var(--header-height);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 200ms ease-out;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===== TYPOGRAPHIE ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-8);
}

h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: var(--space-4);
    border-radius: var(--rounded);
    transition: width 200ms;
}

h2:hover::after {
    width: 80px;
}

h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
}

h4 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-5);
}

p {
    margin-bottom: var(--space-5);
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
}

strong {
    font-weight: 600;
    color: var(--text);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

.section {
    padding: var(--space-24) 0;
}

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

.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background: var(--gray-50);
}

.no-scroll {
    overflow: hidden;
}

/* ===== GRIDS ===== */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
    align-items: center;
}

@media (min-width: 769px) {
    .grid-2-col.reverse>*:first-child {
        order: 2;
    }

    .grid-2-col.reverse>*:last-child {
        order: 1;
    }
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--rounded-full);
    font-weight: 600;
    font-size: var(--text-base);
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 200ms ease-out;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* CTA Button - Demander un Devis */
.btn-cta {
    background: var(--accent);
    color: var(--white) !important;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    min-height: 48px;
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-cta:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
    color: var(--white) !important;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo-container {
    display: inline-block;
    line-height: 0;
}

.logo {
    height: 60px;
    transition: transform 200ms;
}

.logo-container:hover .logo {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 200ms;
}

/* Exclude buttons from underline effect */
.main-nav a.btn::after {
    display: none;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

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

/* Buttons keep their own color on hover */
.main-nav a.btn:hover {
    color: var(--white);
}

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

.dropdown-arrow {
    font-size: 0.65em;
    margin-left: var(--space-1);
    transition: transform 200ms ease;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-3) 0;
    box-shadow: 0 8px 30px rgba(0, 64, 128, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    border-radius: var(--rounded-lg);
    border-top: 3px solid var(--accent);
    margin-top: var(--space-2);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 12px;
    background: transparent;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li:not(:last-child)::after {
    content: '';
    display: block;
    width: 85%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-5);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all 200ms;
    letter-spacing: 0.02em;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    padding-left: var(--space-6);
}

.dropdown-menu a::after {
    display: none;
}

/* Desktop hover behavior */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 200ms;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.desktop-only-btn {
    display: inline-block;
}

.mobile-only-btn {
    display: none;
}

.mobile-close-btn {
    display: none;
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
}

.mobile-close-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #e0e0e0;
    padding: var(--space-20) 0 var(--space-8);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
}

.footer-col h3 {
    color: var(--white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: var(--space-2);
}

.footer-col p,
.footer-col li {
    color: #cccccc;
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    text-align: center;
    font-size: var(--text-sm);
    color: #888;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, rgba(0, 64, 128, 0.9), rgba(0, 0, 0, 0.8)),
        url('assets/hero-banner.webp');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    padding: var(--space-20) 0;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-12);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    padding: 0 var(--space-4);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: var(--space-20) 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Slider Navigation Dots */
.hero-slider-nav {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--rounded-full);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--rounded-full);
    color: var(--white);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: var(--space-6);
}

.slider-next {
    right: var(--space-6);
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }

    .hero-slider-nav {
        bottom: var(--space-4);
    }
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.feature-item {
    padding: var(--space-10);
    background: var(--white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    transition: all 300ms ease-out;
    border: 1px solid var(--gray-200);
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms;
}

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

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
    display: block;
}

.feature-item h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.feature-item p {
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #004080 0%, #002f5f 50%, #001a33 100%);
    color: var(--white);
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(218, 32, 39, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(26, 95, 163, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== PROMISE & TEXT+IMAGE SECTIONS ===== */
.text-content,
.text-col {
    padding: 0;
}

.text-content p,
.text-col p {
    margin-bottom: var(--space-5);
    font-size: var(--text-lg);
}

.image-content,
.image-col {
    border-radius: var(--rounded-lg);
    overflow: hidden;
}

.image-content img,
.image-col img,
.content-image {
    width: 100%;
    height: auto;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-md);
    transition: transform 300ms ease-out;
}

.image-content img:hover,
.image-col img:hover,
.content-image:hover {
    transform: scale(1.02);
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    transition: all 300ms ease-out;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--gray-300);
}

.product-image {
    height: 250px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 300ms;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product card as link */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card-link:hover {
    color: inherit;
}


.product-info {
    padding: var(--space-6);
}

.product-category {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-2);
}

.product-info h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.product-info p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 200ms;
}

.btn-text:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* ===== MOTOR PRODUCT CARDS WITH HOVER OVERLAY ===== */
.motor-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.motor-product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    transition: all 300ms ease-out;
    position: relative;
}

.motor-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.motor-product-image-container {
    position: relative;
    height: 280px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.motor-product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-out;
}

.motor-product-card:hover .motor-product-image-container img {
    transform: scale(1.05);
}

.motor-product-image-container.no-crop {
    padding: var(--space-6);
}

.motor-product-image-container.no-crop img {
    object-fit: contain;
}

/* Hover Overlay */
.motor-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 47, 95, 0.92) 0%,
            rgba(0, 64, 128, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease-out;
}

.motor-product-card:hover .motor-product-overlay,
.motor-product-card.active .motor-product-overlay {
    opacity: 1;
    visibility: visible;
}

.motor-product-overlay h4 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--accent);
}

.motor-product-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: 0;
}

.motor-product-overlay p strong {
    color: var(--accent);
}

.motor-product-overlay .spec-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
}

.motor-product-overlay .spec-item strong {
    color: var(--accent);
    min-width: 120px;
    flex-shrink: 0;
}

/* Card Title Below Image */
.motor-product-title {
    padding: var(--space-5) var(--space-6);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.motor-product-title h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
    color: var(--primary);
}

.motor-product-title .motor-type {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: 0;
}

/* Mobile: Show description below image */
.motor-product-mobile-desc {
    display: none;
    padding: var(--space-5) var(--space-6);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.motor-product-mobile-desc p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Touch indicator for mobile */
.motor-touch-hint {
    display: none;
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--rounded-full);
    font-size: var(--text-xs);
    z-index: 5;
}

@media (max-width: 768px) {
    .motor-products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .motor-product-image-container {
        height: 220px;
    }

    /* Hide hover overlay on mobile, show mobile description */
    .motor-product-overlay {
        display: none;
    }

    .motor-product-mobile-desc {
        display: block;
    }

    .motor-touch-hint {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .motor-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== STYLED LIST ===== */
.styled-list {
    list-style: none;
    padding: 0;
    margin-top: var(--space-6);
}

.styled-list li {
    margin-bottom: var(--space-4);
    padding-left: var(--space-8);
    position: relative;
    color: var(--text-secondary);
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2em;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.gallery-item {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 300ms;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

/* Gallery without cropping - images display fully */
.gallery-no-crop .gallery-item {
    height: auto;
    min-height: auto;
}

.gallery-no-crop .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: none;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 300ms;
    border-radius: var(--rounded);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* ===== CLIENTS & REFERENCES ===== */
.section-intro {
    max-width: 800px;
    margin: 0 auto var(--space-12);
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.client-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.client-list li {
    background: var(--white);
    padding: var(--space-6);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
    border-radius: var(--rounded);
    transition: all 300ms;
    font-weight: 500;
}

.client-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.hero-logos,
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.logo-item {
    height: 140px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    border-radius: var(--rounded-lg);
    transition: all 300ms;
}

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

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 300ms;
}

.logo-item:hover img {
    transform: scale(1.05);
}

/* Partners White Background Section */
.partners-white-bg {
    background: var(--white);
}

.partners-white-bg .hero-logos {
    grid-template-columns: repeat(4, 1fr);
}

.partners-white-bg .logo-item {
    background: transparent;
    border: none;
    box-shadow: none;
}

.partners-white-bg .logo-item:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

@media (max-width: 992px) {
    .partners-white-bg .hero-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-white-bg .hero-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== CONTACT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.info-card {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    padding: var(--space-10);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 300ms;
}

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

.info-card h2 {
    margin-bottom: var(--space-6);
}

.contact-details {
    margin-top: var(--space-8);
}

.contact-details p {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-details p:last-child {
    border-bottom: none;
}

.contact-details strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-container {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    border-radius: var(--rounded-lg);
}

.contact-form {
    background: var(--white);
    padding: var(--space-10);
    border: 1px solid var(--gray-200);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text);
    font-size: var(--text-base);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--rounded);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text);
    background: var(--white);
    transition: all 200ms;
}

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

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 64, 128, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: var(--space-4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

/* Tablette (max 768px) */
@media (max-width: 768px) {

    /* Layout */
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-16) 0;
    }

    /* Grids */
    .grid-2-col,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-6);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-6);
    }

    .gallery-item {
        min-height: 250px;
    }

    /* Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-only-btn {
        display: none;
    }

    .mobile-only-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: var(--space-8);
        width: 80%;
        max-width: 280px;
        min-height: 52px;
        font-size: var(--text-lg);
    }

    .mobile-close-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        padding: var(--header-height) var(--space-6) var(--space-12);
        transition: right 200ms;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        padding-top: calc(var(--header-height) + var(--space-8));
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-5);
        width: 100%;
    }

    .main-nav a {
        font-size: var(--text-lg);
    }

    /* Mobile Dropdown */
    .has-dropdown {
        position: relative;
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        left: auto;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        box-shadow: none;
        background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
        border-radius: var(--rounded-lg);
        transition: max-height 350ms ease, padding 350ms ease, margin 350ms ease;
        display: flex;
        flex-direction: column;
        border-top: none;
        gap: 0;
        width: 100%;
    }

    .dropdown-menu::before {
        display: none;
    }

    .has-dropdown.dropdown-open .dropdown-menu {
        max-height: none;
        overflow-y: visible;
        padding: var(--space-2) 0;
        margin-top: var(--space-2);
    }

    .has-dropdown.dropdown-open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu li {
        display: block;
        width: 100%;
    }

    .dropdown-menu li:not(:last-child)::after {
        content: '';
        display: block;
        width: 80%;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
        margin: 0 auto;
    }

    .dropdown-menu li:first-child a {
        padding-top: var(--space-3);
    }

    .dropdown-menu li:last-child a {
        padding-bottom: var(--space-3);
    }

    .dropdown-menu a {
        display: block;
        padding: var(--space-2) var(--space-6);
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.95);
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: all 200ms ease;
        background: transparent;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        padding-left: var(--space-8);
    }


    /* Hero */
    .hero-banner {
        min-height: 550px;
        padding: var(--space-16) 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    /* Page header */
    .page-header {
        padding: var(--space-16) 0;
    }

    /* Cards */
    .feature-item {
        padding: var(--space-8);
    }

    /* Images */
    .image-content img,
    .image-col img,
    .content-image {
        max-height: 400px;
        object-fit: cover;
    }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {

    /* Typography */
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    /* Paragraphs - smaller on mobile */
    p {
        font-size: var(--text-sm);
    }

    .section-intro {
        font-size: var(--text-base);
    }

    /* Layout */
    .section {
        padding: var(--space-12) 0;
    }

    /* Grids */
    .products-grid,
    .gallery-grid,
    .client-list,
    .hero-logos,
    .logo-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-height: 220px;
    }

    .logo-item {
        height: 100px;
    }

    /* Boutons */
    .hero-buttons .btn,
    .contact-form .btn {
        width: 100%;
    }

    .hero-banner {
        min-height: 500px;
        padding: var(--space-16) 0;
    }

    /* Contact */
    .info-card,
    .contact-form {
        padding: var(--space-6);
    }

    .map-container iframe {
        height: 250px;
    }

    /* Cards */
    .feature-item {
        padding: var(--space-6);
    }

    .feature-icon {
        font-size: var(--text-4xl);
    }

    .product-image {
        height: 200px;
    }

    /* Images */
    .image-content img,
    .image-col img,
    .content-image {
        max-height: 300px;
    }
}

/* Petit mobile (max 480px) */
@media (max-width: 480px) {
    h2::after {
        width: 40px;
    }

    h2:hover::after {
        width: 60px;
    }

    .container {
        padding: 0 var(--space-3);
    }

    .section {
        padding: var(--space-10) 0;
    }

    .page-header {
        padding: var(--space-12) 0;
    }

    .map-container iframe {
        height: 200px;
    }
}

/* Desktop large (min 1280px) */
@media (min-width: 1280px) {
    .hero-banner {
        min-height: 650px;
        padding: var(--space-24) 0;
    }

    .features-grid,
    .products-grid {
        gap: var(--space-10);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-10);
    }

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

    .page-header {
        padding: var(--space-24) 0;
    }
}