:root {
    --navy: #1a2f4a;
    --navy-light: #2d4a6e;
    --navy-dark: #0f1f33;
    --green: #4CAF50;
    --green-light: #66bb6a;
    --green-dark: #388e3c;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray: #e0e4e8;
    --gray-dark: #8b95a0;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
 
    /* Système de mouvement — un seul ressort réutilisé partout pour une sensation cohérente */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 2px 8px rgba(15, 31, 51, 0.06);
    --shadow-card: 0 10px 30px -8px rgba(15, 31, 51, 0.16);
    --shadow-card-hover: 0 24px 48px -12px rgba(15, 31, 51, 0.24);
    --shadow-glow: 0 0 0 4px rgba(76, 175, 80, 0.12);
}
 
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
html {
    scroll-behavior: smooth;
}
 
body {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
 
.container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 16px;
}
 
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 47, 74, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}
 
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
 
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 16px;
    min-height: 60px;
    max-height: 80px;
    overflow: visible;
}
 
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    position: relative; /* nécessaire pour positionner l'icône en absolu */
    margin-right: 20px;
}
 
/* Le texte CHAFIX / BATTERY reste dans la navbar */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    align-items: flex-end;
}
 
/* L'icône-card sort de la navbar et se place juste en dessous */
.logo-icon-card {
    position: absolute;
    top: 180%;          /* juste sous le bas de la navbar */
    right: 0;
    width: 110px;
    height: 75px;
    z-index: 999;
    overflow: visible;
    margin-top: 4px;
}
 
.logo-icon-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 
.logo-icon-card svg {
    width: 100%;
    height: 100%;
}
 
.logo-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}
 
.logo-sub {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: var(--green);
    letter-spacing: 2px;
    
}
 
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
 
.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}
 
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}
 
.nav-link:hover,
.nav-link.active {
    color: var(--green);
}
 
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
 
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
 
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}
 
/* Search Bar Section */
.search-bar-section {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
    z-index: 999;
    margin-top: 60px;
}
 
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}
 
.search-icon {
    position: absolute;
    left: 1.2rem;
    width: 20px;
    height: 20px;
    color: var(--text-light);
    pointer-events: none;
}
 
.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid var(--gray);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}
 
.search-bar input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}
 
.search-bar input::placeholder {
    color: var(--text-light);
}
 
 
/* Hero Section */
/* ============================================
   HERO SECTION
   ============================================ */
 
.hero {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background:
        radial-gradient(60% 90% at 8% 30%, rgba(76, 175, 80, 0.10) 0%, transparent 60%),
        #0f1f33;
}
 
/* Photo positionnée à droite, fondue vers la gauche via masque */
.hero-img {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30%;
    object-fit: cover;
    object-position: left center;
    
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 30%, black 55%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 30%, black 55%);
    z-index: 0;
}
 
/* Pas de ::before nécessaire */
.hero::before {
    display: none;
}
 
/* Le .hero-background n'est plus nécessaire */
.hero-background {
    display: none;
}
 
.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    max-width: 1400px;
}
 
/* Contenu texte à gauche */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    animation: fadeInUp 0.7s var(--ease) both;
}
 
/* Badge "Expertise VAE depuis 2020" */
.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(76, 175, 80, 0.2);
    border: 1.5px solid #4CAF50;
    border-radius: 30px;
    color: #4CAF50;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
 
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 0.6rem;
    font-weight: 400;
    letter-spacing: 2px;
}
 
.hero-title .highlight {
    color: #4CAF50;
}
 
.hero-highlight {
    color: #4CAF50;
    display: block;
}
 
.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.5;
}
 
.hero-guarantee {
    font-size: 0.95rem;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
 
.hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
 
.hero-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
 
.btn-primary {
    background: var(--green);
    color: white;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.25s ease;
    border: 2px solid var(--green);
    will-change: transform;
}
 
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(76, 175, 80, 0.35);
}
 
.btn-primary:active {
    transform: translateY(-1px);
}
 
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s var(--ease), background 0.25s ease, border-color 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}
 
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--green-light);
    transform: translateY(-3px);
}
 
.phone-icon {
    font-size: 1.1rem;
}
 
@media (max-width: 968px) {
    .hero {
        min-height: auto;
        background-position: center center;
    }
 
    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(15, 31, 51, 0.90) 0%,
            rgba(15, 31, 51, 0.80) 60%,
            rgba(15, 31, 51, 0.70) 100%
        );
    }
 
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
 
    .hero-content {
        max-width: 100%;
    }
 
    .hero-title {
        font-size: 2.2rem;
    }
 
    .hero-cta,
    .hero-buttons {
        justify-content: center;
    }
}
 
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.9rem;
    }
 
    .hero-subtitle {
        font-size: 0.9rem;
    }
 
    .hero-cta,
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
 
    .hero-cta .btn,
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
 
/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--gray-light);
}
 
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
 
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
 
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}
 
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
 
.gallery-item:hover img {
    transform: scale(1.1);
}
 
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
 
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
 
.gallery-overlay p {
    color: var(--white);
    font-weight: 600;
    margin: 0;
}
 
/* CATEGORIES SECTION */
.categories {
    padding: 4rem 0;
    background: var(--white);
}
 
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
 
.category-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}
 
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}
 
.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--gray-light);
}
 
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
 
.category-card:hover .category-image img {
    transform: scale(1.1);
}
 
.category-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
 
 
/* Services Section - Optimisé mobile */
.services {
    padding: 4rem 0;
    background: var(--white);
}
 
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
 
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--navy);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}
 
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 0.6rem auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
}
 
.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-light);
}
 
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
 
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 18px;
    border: 2px solid var(--gray);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
    position: relative;
}
 
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--green);
}
 
.service-card.featured {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 10px 30px rgba(26, 47, 74, 0.3);
}
 
.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--green);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
 
.service-icon {
    width: 55px;
    height: 55px;
    background: var(--green-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--white);
}
 
.service-card.featured .service-icon {
    background: var(--green);
}
 
.service-icon svg {
    width: 28px;
    height: 28px;
}
 
.service-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--navy);
}
 
.service-card.featured .service-title {
    color: var(--white);
}
 
.service-description {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}
 
.service-card.featured .service-description {
    color: var(--gray);
}
 
.service-features {
    list-style: none;
    margin-bottom: 1.2rem;
}
 
.service-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}
 
.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}
 
.service-card.featured .service-features li::before {
    color: var(--green-light);
}
 
.service-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}
 
.price-from {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}
 
.price-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--green-light);
    line-height: 1;
}
 
.price-tax {
    font-size: 0.85rem;
    color: var(--gray);
}
 
/* Garantie Section - Compact & Informatif */
.garantie {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
}
 
.garantie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
 
.garantie-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease;
    border: 2px solid transparent;
}
 
.garantie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--green);
}
 
.garantie-main {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
 
.garantie-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
}
 
.garantie-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
 
.garantie-badge svg {
    width: 24px;
    height: 24px;
}
 
.garantie-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.8rem;
}
 
.garantie-main h3 {
    color: var(--white);
}
 
.garantie-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
 
.garantie-main p {
    color: rgba(255, 255, 255, 0.9);
}
 
.garantie-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
 
.garantie-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}
 
.garantie-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}
 
.garantie-details li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}
 
.garantie-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
 
.spec {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.3rem 0;
    border-left: 3px solid var(--green);
    padding-left: 0.8rem;
}
 
/* Bande écologique */
.garantie-eco {
    margin-top: 2.5rem;
    background: var(--white);
    padding: 1.8rem;
    border-radius: 12px;
    border-left: 5px solid var(--green);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
 
.eco-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
 
.eco-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}
 
.eco-content h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
 
.eco-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}
 
/* Contact Section - Optimisé mobile */
.contact {
    padding: 4rem 0;
    background: var(--white);
}
 
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}
 
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
 
.info-card {
    background: var(--gray-light);
    padding: 1.3rem;
    border-radius: 14px;
    display: flex;
    gap: 1.2rem;
    align-items: start;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
 
.info-card:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateX(5px);
}
 
.info-card:hover .info-icon {
    background: var(--green);
    color: var(--white);
}
 
.info-card:hover a {
    color: var(--white);
}
 
.info-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
 
.info-icon svg {
    width: 22px;
    height: 22px;
}
 
.info-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}
 
.info-card:hover .info-content h3 {
    color: var(--green);
}
 
.info-content a,
.info-content p {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}
 
.info-content a:hover {
    color: var(--green);
}
 
.business-name {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
}
 
.business-name .info-icon {
    background: var(--green);
    color: var(--white);
}
 
.business-name .info-content h3,
.business-name .info-content p {
    color: var(--white);
}
 
.contact-form-container {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: 16px;
}
 
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
 
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
 
.form-group label {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}
 
.form-group input,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}
 
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
 
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
 
.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
}
 
/* Footer - Optimisé */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}
 
.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
 
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
 
.footer-brand .logo {
    align-items: flex-start;
    margin-left: 0;
    margin-top: -130px;
}
.footer-logo-img {
    position: static;   /* annule le position: relative du parent */
    top: auto;
    margin-left: 0;
    width: 100px;       /* ajuste la taille selon ton goût */
    height: 70px;
}
 
.footer-tagline {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}
 
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
 
.footer-column h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 0.8rem;
}
 
.footer-column ul {
    list-style: none;
}
 
.footer-column ul li {
    margin-bottom: 0.6rem;
}
 
.footer-column a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}
 
.footer-column a:hover {
    color: var(--white);
}
 
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
 
.footer-eco {
    color: var(--green);
}
 
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
 
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}
 
@keyframes stampRotate {
    0%, 100% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(-10deg);
    }
}
 
/* Responsive Design - Mobile First */
@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
 
    .garantie-grid {
        grid-template-columns: 1fr;
    }
 
    .garantie-main {
        grid-column: span 1;
    }
 
    .garantie-eco {
        flex-direction: column;
        text-align: center;
    }
 
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
 
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
 
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
    }
}
 
@media (max-width: 968px) and (min-width: 769px) {
    .logo-icon-card {
        width: 100px;
        height: 70px;
        top: 55px;
        margin-left: 40px;
    }
}
 
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
     .logo-icon-card {
        width: 70px;
        height: 50px;
        top: 25px;      /* réduit pour éviter le débordement sur la search bar */
        margin-left: 0;
    }
 
    .search-bar-section {
        margin-top: 60px; /* s'assure que la barre est bien en dessous de la navbar */
    }
 
    .search-bar input {
        font-size: 0.82rem;
        padding-left: 2.8rem;
    }
 
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--navy);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        align-items: flex-start;
    }
 
    .nav-menu.active {
        left: 0;
    }
 
    .hamburger {
        display: flex;
    }
 
    .services,
    .garantie,
    .contact {
        padding: 3rem 0;
    }
 
    .section-header {
        margin-bottom: 2rem;
    }
 
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
 
    .service-card {
        padding: 1.5rem;
    }
 
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
 
    .garantie-stamp {
        width: 140px;
        height: 140px;
    }
 
    .stamp-text {
        font-size: 1rem;
    }
 
    .stamp-years {
        font-size: 2.5rem;
    }
}
 
/* Category Pages Styles */
.category-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 50px 0 30px;
    color: var(--white);
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}
.category-hero .hero-img {
    object-fit: contain;
    width: 40%;
    object-position: right center;
}
 
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}
 
.back-link:hover {
    gap: 0.8rem;
}
 
.category-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: var(--white);
}
 
.category-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
}
 
/* Products Grid */
.products {
    padding: 4rem 0;
    background: var(--gray-light);
}
 
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
 
.product-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    position: relative;
}
 
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}
 
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--green);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}
 
.product-badge.best-value {
    background: var(--navy);
}
 
.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gray-light);
}
 
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
 
.product-card:hover .product-image img {
    transform: scale(1.05);
}
 
.product-content {
    padding: 1.5rem;
}
 
.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
 
.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
 
.product-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
 
.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}
 
.spec-item svg {
    color: var(--green);
}
 
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-light);
}
 
.product-price {
    display: flex;
    flex-direction: column;
}
 
.price-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}
 
.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green);
    font-family: 'Bebas Neue', sans-serif;
}
 
.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}
 
/* Category Info */
.category-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
 
.info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
 
.info-box h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1rem;
}
 
.info-box p {
    margin-bottom: 1rem;
    line-height: 1.7;
}
 
.info-box ol {
    padding-left: 1.5rem;
}
 
.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
 
/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}
 
.cta-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}
 
.cta-section p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}
 
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
 
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-small {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
 
@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 12px;
    }
 
    .logo-main {
        font-size: 1.2rem;
    }
 
    .logo-sub {
        font-size: 1rem;
    }
 
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
 
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
 
    .animated-logo {
        max-width: 240px;
    }
 
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
 
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
 
    .info-card {
        padding: 1rem;
        gap: 1rem;
    }
 
    .info-icon {
        width: 44px;
        height: 44px;
    }
 
    .scroll-indicator {
        font-size: 0.85rem;
    }
}
/* ================================================================
   CHAFIX BATTERY — Search Dropdown (ajout uniquement)
   Ces styles ne touchent PAS aux styles existants
   ================================================================ */
 
.search-bar {
    position: relative;
}
 
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(26, 47, 74, 0.1);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
 
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}
 
.search-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
 
.search-dropdown::-webkit-scrollbar { width: 4px; }
.search-dropdown::-webkit-scrollbar-track { background: #f1f1f1; }
.search-dropdown::-webkit-scrollbar-thumb { background: #4CAF50; border-radius: 10px; }
 
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background 0.1s ease;
}
 
.search-result-item:last-child { border-bottom: none; }
 
.search-result-item:hover,
.search-result-item.active {
    background: #f0f9f0;
}
 
.search-result-item:hover .result-arrow,
.search-result-item.active .result-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #4CAF50;
}
 
.result-icon {
    font-size: 1.25rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 8px;
    flex-shrink: 0;
}
 
.result-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
 
.result-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #1a2f4a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 
.result-desc {
    font-family: 'Archivo', sans-serif;
    font-size: 0.76rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 
.result-badge {
    font-family: 'Archivo', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}
 
.result-badge--catégorie  { background: #e8f5e9; color: #2e7d32; }
.result-badge--marque     { background: #e3f2fd; color: #1565c0; }
.result-badge--service    { background: #fff3e0; color: #e65100; }
.result-badge--information{ background: #f3e5f5; color: #6a1b9a; }
.result-badge--contact    { background: #fce4ec; color: #ad1457; }
.result-badge--technique  { background: #fff8e1; color: #f57f17; }
 
.result-arrow {
    font-size: 1rem;
    color: #8b95a0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease, color 0.12s ease;
    flex-shrink: 0;
}
 
.search-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: #6b7280;
    font-size: 0.86rem;
    font-family: 'Archivo', sans-serif;
}
 
.search-empty-icon { font-size: 1.3rem; opacity: 0.55; }
 
@media (max-width: 600px) {
    .result-badge { display: none; }
    .search-dropdown { max-height: 300px; }
}