/* Base Styles & Variables */
:root {
    /* Colors */
    --primary-blue: #0A58CA; /* Deep professional blue */
    --primary-light: #E7F1FF;
    --primary-dark: #084298;
    --accent: #FF5A5F; /* Optional accent, like for fire/alert, if needed, but we keep it minimal */
    --text-main: #334155;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-color: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(10, 88, 202, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 88, 202, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #0F172A;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), #00D2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(10, 88, 202, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 88, 202, 0.4);
}

.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

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

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

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

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

.header-actions {
    display: flex;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-btn {
    font-size: 1.25rem;
    color: var(--primary-blue);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-main) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 88, 202, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.secondary-hero {
    display: flex;
    justify-content: center;
    text-align: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.secondary-hero .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.secondary-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(10, 88, 202, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    border: 10px solid white;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    border-radius: 10px;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: var(--border-color); /* placeholder color */
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #0F172A;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.card-1 {
    top: -20px;
    left: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30px;
    right: -30px;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-image {
    position: relative;
    width: 100%;
    height: 220px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    bottom: -30px;
    left: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 4px solid white;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2;
}

.service-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

.service-card:hover .service-icon:hover {
    transform: translateY(-10px) scale(1.1);
}

.service-content {
    padding: 3rem 2rem 2rem;
    flex: 1;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: var(--border-color);
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Representations Section */
.rep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.rep-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.rep-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 88, 202, 0.3);
}

.rep-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.rep-flag {
    width: 60px;
    height: 60px;
    background: rgba(10, 88, 202, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 1.5rem;
}

.rep-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow-sm);
}

.rep-company {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.rep-name {
    font-size: 1.1rem;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.rep-role {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.rep-contact {
    list-style: none;
}

.rep-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.rep-contact i {
    color: var(--accent-red);
    margin-top: 0.25rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
}

.contact-method a, .contact-method span {
    color: var(--text-muted);
}

.contact-method a:hover {
    color: var(--primary-blue);
}

.contact-form-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    background: #0F172A;
    color: white;
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 50px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #94A3B8;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: #94A3B8;
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    background: #0B1120;
    padding: 1.5rem 0;
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}

/* Utilities for JS Reveal */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="bottom"] { transform: translateY(50px); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   LEGAL MENTIONS
   ========================================= */
.legal-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-card-header i {
    font-size: 2rem;
    color: var(--primary-blue);
    background: var(--primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.legal-card-header h3 {
    font-size: 1.5rem;
    color: #0F172A;
    margin: 0;
}

.legal-card-body p {
    color: var(--text-main);
    line-height: 1.8;
}

.legal-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-main);
}

.legal-list li i {
    color: var(--primary-blue);
    margin-top: 0.3rem;
}

.legal-list a {
    color: var(--primary-blue);
    font-weight: 500;
}

.legal-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container, .contact-container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .card-1 { left: -10px; }
    .card-2 { right: -10px; bottom: -25px; }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    img {
        max-width: 100%;
    }
    
    .footer-logo, .logo-img {
        height: 50px !important;
        width: auto !important;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100svh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: var(--transition);
        overflow-y: auto;
        padding-bottom: 2rem;
    }
    

    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        text-align: center;
        font-size: 1.2rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .services-grid, .rep-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-col {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .legal-card {
        padding: 1.5rem;
    }
    
    .legal-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .legal-card-header i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .legal-card-header h3 {
        font-size: 1.3rem;
    }
    
    .modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .page-header {
        padding-top: 100px !important;
        padding-bottom: 30px !important;
    }
    
    .about-features li {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .footer-container {
        gap: 1.5rem;
    }
}

/* --- Modals & Buttons --- */
.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    margin-top: 1rem;
}
.btn-link:hover {
    color: var(--primary-dark);
    gap: 0.8rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.modal-close:hover {
    background: var(--primary-blue);
    color: white;
    transform: rotate(90deg);
}

.modal-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background-color: #ffffff;
    display: block;
    border-radius: 20px 20px 0 0;
}

.modal-inline-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.modal-body {
    padding: 3rem;
}

.modal-body h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.modal-body h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    color: #0F172A;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.modal-body ul li strong {
    color: var(--primary-blue);
}
.modal-body ul ul {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}
.modal-body ul ul li {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .modal-body {
        padding: 2rem;
    }
    .modal-img {
        height: 250px;
    }
    .modal-body h3 {
        font-size: 1.5rem;
    }
}

/* =========================================
   SEARCH MODAL
   ========================================= */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--accent-red);
}

.search-modal-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 1.5rem;
}

#search-input {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    font-size: 1.5rem;
    font-family: var(--font-primary);
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--accent-red);
}

#search-input::placeholder {
    color: #64748B;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.search-result-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.search-result-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-desc {
    font-size: 0.9rem;
    color: #94A3B8;
}

@media (max-width: 768px) {
    #search-input {
        font-size: 1.2rem;
        padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    }
    .search-icon {
        font-size: 1.2rem;
        left: 1.2rem;
    }
}

/* =========================================
   CATALOGUE DE PRODUITS & DEVIS
   ========================================= */

.catalogue-filters {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--bg-main);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(10, 88, 202, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 88, 202, 0.12);
    border-color: var(--primary-light);
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(10,88,202,0.05) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full-bleed style for full photo product images like fences */
.product-card[data-subcategory="cloture-electrique"] .product-image {
    padding: 0;
    background: none;
}
.product-card[data-subcategory="cloture-electrique"] .product-image::after {
    display: none;
}
.product-card[data-subcategory="cloture-electrique"] .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}
.specs-list li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.4;
}
.specs-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.product-info h3 {
    color: #0F172A;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-add-quote {
    width: 100%;
    margin-top: auto;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    border-width: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.btn-add-quote i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-add-quote:hover i {
    transform: scale(1.2) rotate(-5deg);
}

@media (max-width: 576px) {
    .catalogue-section {
        background-color: #f1f5f9;
        padding-top: 1.5rem;
    }
    .catalogue-section .container {
        padding: 0 0.6rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .product-card {
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        border: none;
    }
    .product-image {
        height: 140px;
        padding: 0.5rem;
        background: #ffffff;
        border-bottom: none;
    }
    .product-image::after {
        display: none;
    }
    .product-info {
        padding: 0.5rem;
    }
    .product-info h3 {
        font-size: 0.8rem;
        font-weight: 500;
        margin-bottom: 0;
        color: #333;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.4rem;
    }
    .product-info p {
        display: none;
    }
    .btn-add-quote {
        font-size: 0.8rem;
        padding: 0.6rem;
        background-color: var(--primary-blue);
        color: white;
        border: none;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(10, 88, 202, 0.2);
        margin-top: 0.6rem;
    }
    .btn-add-quote:hover {
        background-color: var(--primary-dark);
        color: white;
    }
    .btn-add-quote i {
        margin-right: 0.3rem;
    }
}

/* Floating Cart */
/* Floating Cart Widget Container */
.floating-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.floating-widget-container.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.clear-cart-btn {
    background: var(--bg-main);
    color: var(--accent);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.clear-cart-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: scale(1.1) rotate(15deg);
}

/* Floating Cart Link */
.floating-cart {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--bg-main);
    padding: 1rem 1.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(10, 88, 202, 0.4);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.floating-cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 88, 202, 0.6);
    color: var(--bg-main);
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--accent);
    color: var(--bg-main);
    font-size: 0.8rem;
    font-weight: 800;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
    box-shadow: 0 4px 10px rgba(255, 90, 95, 0.4);
}

.cart-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* =========================================
   CATÉGORIES VEDETTES (STYLE EPCI)
   ========================================= */
.featured-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}
.featured-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px 250px;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .featured-categories {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .category-card, .category-card:nth-child(2) {
        grid-row: span 1 !important;
        height: 250px;
    }
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
}

.category-card:nth-child(2) {
    grid-row: span 2;
}
.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
    transition: 0.3s;
}
.category-card:hover::before {
    background: rgba(0,0,0,0.2);
}
.category-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}
.category-card:hover .category-img {
    transform: scale(1.05);
}
.category-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}
.category-content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.btn-explorer {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
}
.btn-explorer:hover {
    background: var(--primary-dark);
}

/* --- Image Lightbox / Zoom --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    background: #ffffff; /* Pour que les images détourées (png transparent) s'affichent bien */
    padding: 20px;
    object-fit: contain;
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-blue);
}

/* Curseur sur les images pour indiquer qu'on peut cliquer */
.product-image {
    cursor: zoom-in;
}

/* Icône de loupe superposée sur l'image au survol */
.product-image::before {
    content: '\f00e'; /* fa-search-plus dans FontAwesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none; /* Laisse le clic passer à travers jusqu'à l'image */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card:hover .product-image::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* --- GUIDE D'EXPERTISE (ACCORDION) --- */
.expertise-section {
    padding: 80px 0;
    background-color: #F8FAFC;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E1;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: #0F172A;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #F1F5F9;
}

.accordion-header.active {
    background-color: #E63946;
    color: #FFFFFF;
}

.accordion-header.active .accordion-icon {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #64748B;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
    color: #FFFFFF;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: #FFFFFF;
}

.accordion-inner {
    padding: 20px 25px 25px;
    border-top: 1px solid #E2E8F0;
}

.expertise-desc {
    font-weight: 600;
    margin-bottom: 15px;
    color: #334155;
    font-size: 0.95rem;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.expertise-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #10B981;
    font-size: 0.9rem;
}

.cable-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 0;
    margin-bottom: 15px;
}

.cable-list li::before {
    display: none;
}

.expertise-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
    background-color: white;
}

/* 2-Column Catalogue Layout */
.catalogue-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.catalogue-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px; /* Prevent scrollbar from overlapping content */
}

/* Scrollbar styles for sidebar */
.catalogue-sidebar::-webkit-scrollbar {
    width: 6px;
}
.catalogue-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.catalogue-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}
.catalogue-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.sidebar-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.catalogue-content {
    width: 100%;
}

@media (max-width: 991px) {
    .catalogue-main-layout {
        grid-template-columns: 1fr;
    }
    .catalogue-sidebar {
        position: static;
        margin-bottom: 2rem;
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .sidebar-block {
        flex: 0 0 85vw;
        margin-top: 0 !important;
        scroll-snap-align: center;
        max-height: 350px;
        overflow-y: auto;
    }
    .catalogue-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn {
        flex-shrink: 0;
    }
}

/* Sidebar Themes */
/* EPI Theme (Blue/Green) */
.theme-epi .sidebar-title i {
    color: #0ea5e9 !important;
}
.theme-epi .accordion-icon {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}
.theme-epi .accordion-header.active {
    background-color: #0ea5e9;
    color: white;
}
.theme-epi .accordion-header.active .accordion-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Incendie Theme (Red) */
.theme-incendie .sidebar-title i {
    color: #E63946 !important;
}
.theme-incendie .accordion-icon {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
}
.theme-incendie .accordion-header.active {
    background-color: #E63946;
    color: white;
}
.theme-incendie .accordion-header.active .accordion-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Sidebar Navigation (E-commerce active menu) */
.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-list li {
    margin-bottom: 0.5rem;
}

.sidebar-filter-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-filter-btn i {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.sidebar-filter-btn:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
}

.theme-epi .sidebar-filter-btn.active {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    font-weight: 600;
}
.theme-epi .sidebar-filter-btn.active i {
    transform: translateX(4px);
    color: #0ea5e9;
    opacity: 1;
}

.theme-incendie .sidebar-filter-btn.active {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
    font-weight: 600;
}
.theme-incendie .sidebar-filter-btn.active i {
    transform: translateX(4px);
    color: #E63946;
    opacity: 1;
}

.theme-video .sidebar-filter-btn.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 600;
}
.theme-video .sidebar-filter-btn.active i {
    transform: translateX(4px);
    color: #6366f1;
    opacity: 1;
}

/* Background Interface Catalogue */
.catalogue-section {
    background: linear-gradient(135deg, rgba(10, 88, 202, 0.15) 0%, rgba(10, 88, 202, 0.05) 100%);
    background-size: 200% 200%;
    animation: gradientShimmer 15s ease infinite;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: -3rem;
    padding-top: 4rem;
    padding-bottom: 6rem;
    min-height: 80vh;
    position: relative;
    z-index: 10;
    box-shadow: 0 -15px 40px rgba(10, 88, 202, 0.08);
}

/* Animations Premium B2B */
@keyframes gradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.05); }
}

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

/* Hero Orbs (Pseudo elements) */
.secondary-hero {
    position: relative;
    overflow: hidden;
}

.secondary-hero::before, .secondary-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.secondary-hero::before {
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 88, 202, 0.05) 0%, rgba(255,255,255,0) 70%);
    animation: floatOrb 12s infinite ease-in-out alternate;
}

.secondary-hero::after {
    bottom: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 88, 202, 0.04) 0%, rgba(255,255,255,0) 70%);
    animation: floatOrb 18s infinite ease-in-out alternate-reverse;
}

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

/* Entrée des cartes produits (Cascade) */
.product-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* --- Cart Sidebar Styles --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.cart-sidebar-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748B;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-cart-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-sidebar-body::-webkit-scrollbar {
    width: 6px;
}
.cart-sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 10px;
}

.empty-cart-msg {
    text-align: center;
    color: #64748B;
    margin-top: 2rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.cart-item-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.cart-item-info {
    flex: 1;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.cart-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--color-dark);
}

.remove-item-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: var(--color-danger);
    color: #fff;
}

.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

/* Utilitaires ajoutés pour remplacer les styles et événements inline (Sécurité) */
.hover-red { color: inherit; text-decoration: none; transition: color 0.3s; }
.hover-red:hover { color: #E63946 !important; }

.hover-primary-blue { color: inherit; text-decoration: none; transition: color 0.3s; }
.hover-primary-blue:hover { color: var(--primary-blue) !important; }

.hover-color-primary { color: inherit; text-decoration: none; transition: color 0.3s; }
.hover-color-primary:hover { color: var(--color-primary) !important; }    

/* Protection Anti-Inspection & Anti-Copie */
body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
img {
    -webkit-user-drag: none;
    pointer-events: none; /* Empêche le clic droit spécifique sur l'image */
}


/* ==========================================================================
   MARKETING & PUBLICITÉ (Top Bar, Ticker, Pop-up)
   ========================================================================== */

/* 1. Top Bar Promotionnelle */
.promo-topbar {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1000;
    transition: margin-top 0.4s ease;
}

.promo-topbar.closed {
    margin-top: -50px;
    display: none;
}

.promo-topbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 30px;
}

.promo-text i {
    margin-right: 8px;
    color: #FFD700; /* Gold */
}

.promo-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.promo-close:hover {
    color: white;
}

/* 2. Trust Ticker (Marques Partenaires) */
.trust-ticker-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.trust-ticker-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Fade effetc on edges */
.trust-ticker-container::before,
.trust-ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.trust-ticker-container::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}

.trust-ticker-container::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

.trust-ticker-track {
    display: inline-flex;
    animation: scroll-ticker 30s linear infinite;
}

.trust-ticker-track:hover {
    animation-play-state: paused;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
    padding: 0 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    opacity: 0.8;
}

@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 3. Pop-up Exit Intent (Lead Magnet) */
.lead-magnet-popup {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 3rem 2rem;
}

.lead-magnet-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.lead-magnet-icon i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.lead-magnet-popup h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.lead-magnet-popup p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.lead-magnet-small {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .promo-topbar-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .promo-close {
        top: 5px;
        right: 5px;
    }
}


/* ==========================================================================
   OPTIMISATIONS GPU & FLUIDITÉ
   ========================================================================== */

/* Force le rendu matériel (Carte Graphique) pour décharger le processeur central */
.gpu-accel,
.product-card,
.modal,
.hero-content,
.hero-image,
.trust-ticker-track,
.floating-card {
    will-change: transform, opacity;
    transform: translateZ(0); /* Hack matériel pour anciens ordis */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Transitions Organiques (Cubic-Bezier) au lieu de Lineaires */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link {
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optimisation de l'affichage global */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    /* Évite les sauts de layout (CLS) en attendant le chargement */
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.video-section {
    position: relative;
    z-index: 10;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}
