
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

/* Base reset & typography */
* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* Removed overflow-x: hidden to allow position: sticky to work */
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

.navbar-container {
    max-width: 100%;
    width: 100%;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
    padding-left: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding-right: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    color: rgba(5, 0, 82, 1);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s, background 0.3s;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-menu a:hover {
    opacity: 0.7;
    background: rgba(139, 92, 246, 0.1);
}

/* Search Icon */
.search-icon {
    background: transparent;
}

.search-icon a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    background: transparent !important;
}

.search-icon svg {
    width: 24px;
    height: 24px;
    color: rgba(5, 0, 82, 1) !important;
    fill: rgba(5, 0, 82, 1) !important;
    transition: transform 0.3s, opacity 0.3s;
}

.search-icon a:hover {
    background: transparent !important;
}

.search-icon a:hover svg {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding-right: 3rem;
    z-index: 10;
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-bar-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: width 0.4s ease, opacity 0.3s ease, border-color 0.3s ease;
    width: 0;
    opacity: 0;
}

.search-bar.active .search-bar-container {
    width: 600px;
    opacity: 1;
}

.search-bar-container:focus-within {
    border-color: rgba(5, 0, 82, 1);
}

.search-bar input {
    border: none;
    outline: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(5, 0, 82, 1);
    flex: 1;
    background: white;
    min-width: 0;
}

.search-bar input::placeholder {
    color: rgba(5, 0, 82, 0.5);
}

.search-bar-camera {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(5, 0, 82, 0.1);
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(5, 0, 82, 0.6);
    height: 100%;
    flex-shrink: 0;
}

.search-bar-camera:hover {
    background: rgba(5, 0, 82, 0.05);
    color: rgba(5, 0, 82, 1);
}

.search-bar-camera svg {
    width: 20px;
    height: 20px;
}

#searchButton {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    height: 100%;
    flex-shrink: 0;
}

#searchButton:hover {
    opacity: 0.7;
}

#searchButton svg {
    width: 20px;
    height: 20px;
    color: rgba(5, 0, 82, 1) !important;
    fill: rgba(5, 0, 82, 1) !important;
}

#searchClose {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    height: 100%;
    flex-shrink: 0;
}

#searchClose.closing {
    transform: rotate(90deg);
}

#searchClose svg {
    width: 20px;
    height: 20px;
    color: rgba(5, 0, 82, 1) !important;
    fill: rgba(5, 0, 82, 1) !important;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(50% + 25px);
    left: 0;
    width: 90%;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

#heroSuggestions {
    top: 100%;
    margin-top: 5px;
    border-top: 2px solid rgba(5, 0, 82, 0.2);
    border-radius: 20px;
    width: 100%; /* Adapt to parent width */
    left: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: rgba(5, 0, 82, 1);
    border-bottom: 1px solid rgba(5, 0, 82, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(5, 0, 82, 0.05);
}

.suggestion-item.no-result {
    justify-content: center;
    color: rgba(5, 0, 82, 0.5);
    cursor: default;
}

.suggestion-item.no-result:hover {
    background: white;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.suggestion-no-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 0, 82, 0.1);
    border-radius: 5px;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-code {
    font-size: 0.75rem;
    color: rgba(5, 0, 82, 0.6);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.suggestion-name {
    font-size: 0.9rem;
    color: rgba(5, 0, 82, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-bar-container {
    position: relative;
}

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

/* ============================================
   HERO
   ============================================ */
.hero-landing {
    position: relative;
    height: 600px;
    background: url('/images/background-img/background-landing-page.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 0, 38, 0.8);
    z-index: 1;
}.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-description .highlight {
    font-weight: 700;
    color: #fff;
}

.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Suggestions pour la hero search */
.hero-search .search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.hero-search:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    color: #0a1128;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(10, 17, 40, 0.5);
    font-weight: 400;
}

.hero-qr-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.hero-qr-btn:hover {
    opacity: 0.7;
}

.hero-qr-btn svg {
    width: 24px;
    height: 24px;
    color: #0a1128;
}

.hero-search-btn {
    background: transparent;
    border: none;
    padding: 1.2rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.hero-search-btn:hover {
    background: rgba(10, 17, 40, 0.05);
}

.hero-search-btn svg {
    width: 24px;
    height: 24px;
    color: #0a1128;
}

/* ============================================
   ALERT BANNER
   ============================================ */
.alert-banner {
    background: #dc3545;
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.alert-banner-wrapper {
    display: inline-block;
    animation: scroll-left-continuous 40s linear infinite;
}

.alert-banner-content {
    display: inline-block;
    padding-right: 2rem;
}

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

.alert-banner strong {
    font-weight: 700;
}

/* ============================================
   BRANDS SHOWCASE
   ============================================ */
.brands-showcase {
    background: white;
    padding: 3rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

/* Section des marques (carousel) */
.brands-showcase {
    background: white;
    padding: 3rem 0;
    overflow: hidden;
}

.brands-carousel {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 100px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.brand-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    min-width: 150px;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.brand-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-item img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    draggable: false;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

.brand-item.sliding-out {
    position: absolute;
    animation: slideOutToLeft 0.8s ease-in-out forwards;
}

.brand-item.sliding-in {
    opacity: 0;
    animation: slideInFromRight 0.8s ease-in-out forwards;
}

@keyframes slideOutToLeft {
    from {
        opacity: 0.8;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-150px);
    }
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 3rem 2rem;
    background: #f9f9f9;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text strong {
    color: rgba(5, 0, 82, 1);
    font-weight: 600;
}

.btn-cta {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.3s;
    margin-top: 1rem;
}

.btn-cta:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Animation states for about slideshow */
.about-image img.about-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.about-image img.about-slide-next {
    opacity: 0;
    transform: scale(1.08);
    z-index: 2;
}

.about-image img.about-slide-entering {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    transition: opacity 0.9s ease-out, transform 1s ease-out;
}

.about-image img.about-slide-out {
    opacity: 0;
    transform: scale(0.95);
    z-index: 1;
    transition: opacity 0.8s ease-in, transform 1s ease-in;
}

.image-label {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(5, 0, 82, 0.9);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.image-label.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* ============================================
   OLD HERO (keeping for backward compatibility)
   ============================================ */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-dashboard {
    min-height: 100vh;
    background: #f5f7fa;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

.admin-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.welcome-card h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
}

.stat-info h3 {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin: 0.5rem 0 0 0;
}

.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-actions h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.action-icon {
    font-size: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
:root{
    --footer-bg:#f7f7fb;
    --footer-text:#0b0a2e;    /* bleu foncé */
    --footer-accent:#ff7a00;  /* orange icônes */
    --footer-border:#e6e6f2;
}

.site-footer{
    margin-top: 3rem;
    background: #fff;
    color: var(--footer-text);
}

/* Bloc principal */
.footer-main{
    background: var(--footer-bg);
    border-top:1px solid var(--footer-border);
    border-bottom:1px solid var(--footer-border);
}

.footer-main__inner{
    max-width:1280px;
    margin:0 auto;
    padding: 2.5rem 1.25rem;
    display:grid;
    grid-template-columns: 300px 1fr 1fr 1fr;
    gap:2rem;
    align-items:flex-start;
    position:relative;
}

/* séparateurs verticaux */
.footer-main__inner > * + *{
    position:relative;
}
.footer-main__inner > * + *::before{
    content:"";
    position:absolute;
    left:-1rem;
    top:.25rem;
    bottom:.25rem;
    width:1px;
    background: var(--footer-border);
}

/* Colonne logo */
.footer-col--logo{
    display:flex;
    align-items:center;
    justify-content:center;
}
.footer-logo{
    max-width: 260px;
    height:auto;
    object-fit:contain;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,0.02));
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Titres colonnes */
.footer-col h4{
    font-size:1.05rem;
    color: var(--footer-text);
    margin-bottom: .9rem;
    font-weight: 800;
    letter-spacing:.3px;
}

/* Liens */
.footer-links{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:.65rem;
}
.footer-links a{
    text-decoration:none;
    color:#3a3a58;
    font-weight:500;
}
.footer-links a:hover{
    color: var(--footer-text);
    text-decoration: underline;
}

/* Adresses / contacts */
.footer-address{
    color:#3a3a58;
    font-style: normal;
    margin-bottom:.75rem;
}
.footer-address a{
    color:#3a3a58;
    text-decoration:none;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight:600;
}
.footer-address a:hover{
    color: #1a1950;
}
.footer-address a svg{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.15em;
}
.footer-contact{
    margin:.25rem 0;
}
.footer-contact a{
    color:#3a3a58;
    text-decoration:none;
    font-weight:600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-contact a:hover{
    color: #1a1950;
}
.footer-contact a svg{
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Bas de page */
.footer-bottom{
    background:#e9e9f4;
}
.footer-bottom__inner{
    max-width:1280px;
    margin:0 auto;
    padding: .9rem 1.25rem;
    text-align:center;
    color:#1a1950;
    font-weight:700;
}

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

/* ============================================
   PAGE HEADER (for all pages)
   ============================================ */
.page-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(5, 0, 82, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(5, 0, 82, 0.7);
    margin: 0;
}

/* ============================================
   BRANDS PAGE
   ============================================ */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brand-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.brand-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

.brand-card h3 {
    font-size: 1.3rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.brand-card p {
    color: rgba(5, 0, 82, 0.7);
    line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(5, 0, 82, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    color: rgba(5, 0, 82, 1);
    fill: rgba(5, 0, 82, 1);
}

.contact-info-card h3 {
    font-size: 1.1rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info-card address,
.contact-info-card p {
    color: rgba(5, 0, 82, 0.7);
    line-height: 1.6;
    font-style: normal;
    margin: 0.25rem 0;
}

.contact-info-card a {
    color: rgba(5, 0, 82, 1);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2 {
    font-size: 1.8rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(5, 0, 82, 1);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(5, 0, 82, 1);
}

.contact-form textarea {
    resize: vertical;
    font-family: inherit;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    font-size: 1.6rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid rgba(5, 0, 82, 0.1);
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: rgba(5, 0, 82, 1);
    margin: 0;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: rgba(5, 0, 82, 1);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(5, 0, 82, 0.7);
    line-height: 1.7;
    margin: 0;
}

.faq-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
}

.faq-footer h3 {
    font-size: 1.5rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 0.5rem;
}

.faq-footer p {
    color: rgba(5, 0, 82, 0.7);
    margin-bottom: 1.5rem;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-page-container {
    max-width: 1600px;
    margin: 0 auto;
}

.products-stats {
    margin-bottom: 2rem;
    padding: 1rem 0;
    color: rgba(5, 0, 82, 0.7);
}

.products-stats strong {
    color: rgba(5, 0, 82, 1);
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-products-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.no-products h2 {
    font-size: 1.8rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 0.75rem;
}

.no-products p {
    color: rgba(5, 0, 82, 0.6);
}

/* ============================================
   SECTION NUMÉRO CLIENT / PRODUITS / MARQUES
   ============================================ */
.customer-products-brands {
    background: white;
    padding: 3rem 2rem;
}

.cpb-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.cpb-section {
    padding: 1.5rem 0;
}

.cpb-title {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 0.5rem;
    text-align: center;
}

.cpb-subtitle {
    font-size: 0.95rem;
    color: rgba(5, 0, 82, 0.6);
    margin-bottom: 2rem;
    text-align: center;
}

/* Section Numéro Client */
.cpb-customer .cpb-inputs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cpb-radio-btn {
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    color: rgba(5, 0, 82, 1);
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cpb-radio-btn:hover {
    background: rgba(5, 0, 82, 0.05);
    border-color: rgba(5, 0, 82, 0.4);
}

.cpb-radio-btn.active {
    background: rgba(5, 0, 82, 1);
    border-color: rgba(5, 0, 82, 1);
    color: white;
}

/* Section Produits */
.cpb-products {
    max-width: 1400px;
    margin: 0 auto;
}

/* Wrapper du carrousel produits avec flèches */
.products-carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 1rem;
}

/* Flèches du carrousel produits */
.products-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.products-carousel-arrow:hover {
    background: rgba(5, 0, 82, 1);
    border-color: rgba(5, 0, 82, 1);
    color: white;
}

.products-carousel-arrow:hover svg {
    color: white;
}

.products-carousel-arrow svg {
    width: 24px;
    height: 24px;
    color: rgba(5, 0, 82, 0.8);
    transition: color 0.3s ease;
}

.products-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.products-carousel-arrow:disabled:hover {
    background: white;
    border-color: rgba(5, 0, 82, 0.2);
}

.products-carousel-arrow:disabled:hover svg {
    color: rgba(5, 0, 82, 0.8);
}

.cpb-products .products-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    grid-template-columns: unset !important;
    flex: 1;
}

.cpb-products .products-grid::-webkit-scrollbar {
    display: none;
}

.cpb-products .product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.1);
    text-decoration: none;
    position: relative;
}

.product-item::after {
    content: "En savoir plus →";
    font-size: 0.75rem;
    color: rgba(5, 0, 82, 0.6);
    font-weight: 500;
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.15);
}

.product-item:hover::after {
    color: rgba(5, 0, 82, 1);
}

.product-item img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.product-item:hover img {
    filter: grayscale(0%);
}

.product-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(5, 0, 82, 0.8);
    text-align: center;
}

/* Placeholder pour les catégories sans image */
.product-placeholder {
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(5, 0, 82, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(5, 0, 82, 0.6);
    transition: all 0.3s ease;
}

.product-item:hover .product-placeholder {
    background: linear-gradient(135deg, rgba(5, 0, 82, 0.15) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: rgba(5, 0, 82, 0.8);
}

/* Section Marques */
.cpb-disclaimer {
    font-size: 0.9rem;
    color: rgba(5, 0, 82, 0.7);
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
    line-height: 1.5;
}

.cpb-disclaimer strong {
    color: rgba(5, 0, 82, 0.9);
    font-weight: 700;
}

.cpb-search-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cpb-search-wrapper {
    flex: 1;
    max-width: 500px;
}

.cpb-search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cpb-search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.alphabet-filter {
    max-width: 1400px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 1.5rem 0;
}

.alphabet-filter span,
.alphabet-filter .letter-btn {
    min-width: 40px;
    height: 40px;
    border: 2px solid rgba(5, 0, 82, 0.2);
    background: white;
    color: rgba(5, 0, 82, 1);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.8rem;
}

.alphabet-filter span:hover:not(.disabled),
.alphabet-filter .letter-btn:hover:not(.disabled):not(:disabled) {
    background: rgba(5, 0, 82, 0.05);
    border-color: rgba(5, 0, 82, 0.5);
    transform: translateY(-2px);
    box-shadow: none;
}

.alphabet-filter span.active,
.alphabet-filter .letter-btn.active {
    background: rgba(5, 0, 82, 1);
    color: white;
    border-color: rgba(5, 0, 82, 1);
    box-shadow: 0 4px 12px rgba(5, 0, 82, 0.3);
    transform: translateY(0);
}

.alphabet-filter span.active:hover,
.alphabet-filter .letter-btn.active:hover {
    background: rgba(5, 0, 82, 1) !important;
    color: white !important;
    border-color: rgba(5, 0, 82, 1) !important;
    box-shadow: 0 4px 12px rgba(5, 0, 82, 0.3);
    transform: translateY(0) !important;
}

.alphabet-filter span.disabled,
.alphabet-filter .letter-btn.disabled,
.alphabet-filter .letter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    transform: translateY(0);
}

.cpb-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border: 2px solid rgba(5, 0, 82, 0.2);
    background: white;
    color: rgba(5, 0, 82, 1);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.active) {
    background: rgba(5, 0, 82, 0.05);
    border-color: rgba(5, 0, 82, 0.5);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: rgba(5, 0, 82, 1);
    color: white;
    border-color: rgba(5, 0, 82, 1);
    box-shadow: 0 4px 12px rgba(5, 0, 82, 0.3);
}

.pagination-dots {
    padding: 0.5rem;
    color: rgba(5, 0, 82, 0.4);
    font-weight: 600;
}

.pagination-next {
    background: rgba(5, 0, 82, 1);
    color: white;
    border-color: rgba(5, 0, 82, 1);
    padding: 0 1.5rem;
}

.pagination-next:hover {
    background: rgba(5, 0, 82, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 0, 82, 0.3);
}

/* Surcharge pour la grille de marques dans la landing page */
.cpb-brands .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(5, 0, 82, 0.6);
    font-size: 1.1rem;
}

.no-results p {
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .contact-form-section {
        padding: 2rem 1.5rem;
    }

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

    .faq-question {
        padding: 1.25rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}
@media (max-width: 1200px){
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .footer-main__inner{
        grid-template-columns: 1fr 1fr;
    }
    .footer-main__inner > * + *::before{
        display:none; /* on enlève les séparateurs verticaux en 2 colonnes */
    }
}

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

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 15px;
    }

    .hero-search input {
        border-bottom: 1px solid #e0e0e0;
    }

    .hero-search-btn,
    .hero-qr-btn {
        padding: 0.875rem;
    }

    .brands-carousel {
        gap: 2rem;
    }

    .brand-item {
        min-width: 120px;
    }

    .brand-item img {
        max-height: 50px;
        max-width: 120px;
    }

    .about-section {
        padding: 3rem 1.5rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .alert-banner {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .footer-main__inner{
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: 2rem 1.5rem;
        padding: 2rem 1rem;
    }
    
    .footer-col--logo{
        grid-column: 1 / -1; /* Logo takes full width on top */
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-col {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid var(--footer-border);
    }
    
    .footer-col:last-child {
        grid-column: 1 / -1; /* Last section takes full width */
    }
    
    .footer-col h4 {
        margin-bottom: 1rem;
    }
    
    .footer-main__inner > * + *::before{
        display: none; /* Hide vertical separators on mobile */
    }
}

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.search-results-page {
    padding: 1.5rem 3rem;
    min-height: 60vh;
}

.search-results-container {
    max-width: 1600px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 1.5rem;
}

.search-header h1 {
    font-size: 1.75rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 1rem;
}

.search-input-container {
    margin-bottom: 1rem;
    max-width: 600px;
    position: relative;
}

#searchPageSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    margin-top: -2px;
}

.search-form {
    display: flex;
    gap: 0;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-form:focus-within {
    border-color: rgba(5, 0, 82, 1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(5, 0, 82, 1);
    background: white;
}

.search-input::placeholder {
    color: rgba(5, 0, 82, 0.5);
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-page-camera {
    background: white;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(5, 0, 82, 0.6);
    transition: all 0.3s;
    border-left: 1px solid rgba(5, 0, 82, 0.15);
}

.search-page-camera:hover {
    color: rgba(5, 0, 82, 1);
    background: rgba(5, 0, 82, 0.05);
}

.search-page-camera svg {
    width: 18px;
    height: 18px;
}

.search-submit {
    background: rgba(5, 0, 82, 1);
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: white;
}

.search-submit:hover {
    background: rgba(5, 0, 82, 0.85);
}

.search-submit svg {
    width: 18px;
    height: 18px;
}

.results-count {
    color: rgba(5, 0, 82, 0.6);
    font-size: 0.95rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card-image {
    width: 100%;
    height: 140px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* ===== Lazy Loading System ===== */
[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

[data-src].loaded {
    opacity: 1;
}

[data-src].load-error {
    opacity: 0.5;
}

.lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: inherit;
    z-index: 1;
}

.lazy-placeholder::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: rgba(5, 0, 82, 0.6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Placeholder plus petit pour les petites images */
.product-category-image .lazy-placeholder::before {
    width: 28px;
    height: 28px;
    border-width: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lazy-placeholder.error {
    background: #f5f5f5;
}

.lazy-placeholder.error::before {
    display: none;
}

.lazy-placeholder.error::after {
    content: '📦';
    font-size: 1.5rem;
    opacity: 0.4;
}

/* Legacy support */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.product-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

.product-placeholder span {
    font-size: 3rem;
    opacity: 0.3;
}

.product-card-content {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.product-card-code {
    font-size: 0.75rem;
    color: rgba(5, 0, 82, 0.6);
    font-weight: 600;
}

.product-card-name {
    font-size: 0.85rem;
    color: rgba(5, 0, 82, 1);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tag {
    background: rgba(139, 92, 246, 0.1);
    color: rgba(5, 0, 82, 1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
}

.no-results-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.no-results-icon svg {
    width: 64px;
    height: 64px;
    color: rgba(5, 0, 82, 0.4);
}

.no-results h2 {
    font-size: 1.5rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 0.75rem;
}

.no-results p {
    color: rgba(5, 0, 82, 0.6);
    margin-bottom: 1.5rem;
}

.btn-back {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: rgba(5, 0, 82, 1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-back:hover {
    background: rgba(5, 0, 82, 0.85);
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .search-results-page {
        padding: 1rem;
    }

    .product-card-image {
        height: 150px;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-page {
    padding: 2rem 3rem;
    min-height: calc(100vh - 200px);
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(5, 0, 82, 0.7);
}

.breadcrumb a {
    color: rgba(5, 0, 82, 1);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: start;
}

.product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.product-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 450px;
    transition: opacity 0.3s ease;
}

.product-no-image {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(5, 0, 82, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-no-image svg {
    width: 80px;
    height: 80px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-code {
    font-size: 0.9rem;
    color: rgba(5, 0, 82, 0.6);
    font-weight: 600;
}

.product-title {
    font-size: 1.8rem;
    color: rgba(5, 0, 82, 1);
    font-weight: 600;
    line-height: 1.3;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tag {
    background: rgba(139, 92, 246, 0.1);
    color: rgba(5, 0, 82, 1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-meta {
    background: #f5f5f5;
    padding: 1.25rem;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.meta-item strong {
    color: rgba(5, 0, 82, 1);
    white-space: nowrap;
}

.meta-item span {
    color: rgba(5, 0, 82, 0.7);
}

.product-description {
    flex: 1;
}

.product-description h2 {
    font-size: 1.2rem;
    color: rgba(5, 0, 82, 1);
    margin-bottom: 0.75rem;
}

.product-description p {
    color: rgba(5, 0, 82, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    flex: 1;
}

.btn-primary {
    background: rgba(5, 0, 82, 1);
    color: white;
}

.btn-primary:hover {
    background: rgba(5, 0, 82, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 0, 82, 0.3);
}

.btn-secondary {
    background: white;
    color: rgba(5, 0, 82, 1);
    border: 2px solid rgba(5, 0, 82, 1);
}

.btn-secondary:hover {
    background: rgba(5, 0, 82, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 0, 82, 0.15);
}

@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-image-container {
        position: static;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* ============================================
   SKELETON LOADERS
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(5, 0, 82, 0.05) 0px,
        rgba(5, 0, 82, 0.15) 40px,
        rgba(5, 0, 82, 0.05) 80px
    );
    background-size: 468px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Skeleton pour le carrousel de marques */
.brands-carousel .brand-item.skeleton {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    border: 2px solid rgba(5, 0, 82, 0.15);
    background: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.brands-carousel .brand-item.skeleton::before {
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(5, 0, 82, 0.03) 0px,
        rgba(5, 0, 82, 0.08) 40px,
        rgba(5, 0, 82, 0.03) 80px
    );
    background-size: 468px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 8px;
}

/* Skeleton pour la grille de marques */
.brand-card.skeleton {
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.15);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: default;
    pointer-events: none;
    transition: all 0.3s ease;
}

.skeleton-box {
    background: linear-gradient(
        90deg,
        rgba(5, 0, 82, 0.05) 0px,
        rgba(5, 0, 82, 0.12) 40px,
        rgba(5, 0, 82, 0.05) 80px
    );
    background-size: 468px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.skeleton-text {
    background: linear-gradient(
        90deg,
        rgba(5, 0, 82, 0.08) 0px,
        rgba(5, 0, 82, 0.15) 40px,
        rgba(5, 0, 82, 0.08) 80px
    );
    background-size: 468px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    height: 16px;
    width: 60%;
    margin: 0 auto;
    border-radius: 4px;
}

/* ============================================
   PAGE PRODUITS
   ============================================ */
.products-page {
    min-height: 100vh;
}

/* Hero Section - Même style que brands */
body:has(.products-hero) {
    overflow-x: hidden;
}

body:has(.products-hero) .container {
    max-width: 100%;
    padding: 0;
}

.products-hero {
    background: linear-gradient(rgba(4, 0, 53, 0.5), rgba(4, 0, 53, 0.5)),
                url('/images/background-img/background-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0 !important;
    padding-top: 4rem !important;
    padding-bottom: 6rem !important;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.products-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.products-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.products-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.products-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Category Filter Dropdown - In Grid Section */
.products-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(5, 0, 82, 0.1);
}

.products-filter-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.products-filter-label {
    color: rgba(5, 0, 82, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.products-select-container {
    position: relative;
    min-width: 280px;
}

.products-category-select {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0a1128;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.products-category-select:hover {
    border-color: rgba(5, 0, 82, 0.4);
}

.products-category-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.products-category-select option {
    padding: 0.5rem;
    font-weight: 500;
}

.products-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(5, 0, 82, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-select-arrow svg {
    width: 1rem;
    height: 1rem;
}

/* Search Bar - Même style que brands */
.products-search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.products-search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-search-form:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.products-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    color: #0a1128;
    background: transparent;
}

.products-search-input::placeholder {
    color: rgba(10, 17, 40, 0.5);
    font-weight: 400;
}

.products-search-icon-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.products-search-icon-btn:hover {
    opacity: 0.7;
}

.products-search-icon-btn svg {
    width: 24px;
    height: 24px;
    color: #0a1128;
}

.products-search-submit {
    background: transparent;
    border: none;
    padding: 1.2rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.products-search-submit:hover {
    background: rgba(10, 17, 40, 0.05);
}

.products-search-submit svg {
    width: 24px;
    height: 24px;
    color: #0a1128;
}

/* Suggestions for Products Search */
#productsSearchSuggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

#productsSearchSuggestions .suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

#productsSearchSuggestions .suggestion-item:last-child {
    border-bottom: none;
}

#productsSearchSuggestions .suggestion-item:hover {
    background: #f8f9fa;
}

#productsSearchSuggestions .suggestion-item.no-result {
    justify-content: center;
    color: #999;
}

#productsSearchSuggestions .suggestion-item.no-result:hover {
    background: transparent;
}

#productsSearchSuggestions .suggestion-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
}

#productsSearchSuggestions .suggestion-no-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 1rem;
}

#productsSearchSuggestions .suggestion-content {
    flex: 1;
}

#productsSearchSuggestions .suggestion-code {
    font-size: 0.85rem;
    color: rgba(5, 0, 82, 1);
    font-weight: 600;
}

#productsSearchSuggestions .suggestion-name {
    font-size: 0.95rem;
    color: #333;
    margin-top: 0.25rem;
}

/* Grille de produits */
.products-grid-section {
    padding: 4rem 2rem;
    background: white;
}

.products-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.product-category-card {
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.15);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
}

.product-category-card::after {
    content: "En savoir plus →";
    font-size: 0.85rem;
    color: rgba(5, 0, 82, 0.6);
    font-weight: 500;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.product-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(5, 0, 82, 0.15);
    border-color: rgba(5, 0, 82, 0.3);
}

.product-category-card:hover::after {
    color: rgba(5, 0, 82, 1);
}

.product-category-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

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

.product-category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(5, 0, 82, 1);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 968px) {
    .products-hero {
        padding: 3rem 1.5rem !important;
    }

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

    .products-hero-subtitle,
    .products-hero-description {
        font-size: 1rem;
    }

    .products-grid-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .products-filter-inline {
        justify-content: center;
    }

    .products-select-container {
        min-width: 250px;
    }

    .products-grid-items {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }

    .product-category-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    .products-hero h1 {
        font-size: 1.5rem;
    }

    .products-filter-inline {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .products-select-container {
        min-width: 100%;
    }

    .products-category-select {
        font-size: 0.9rem;
        padding: 0.6rem 2rem 0.6rem 0.85rem;
    }

    .products-search-input {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .products-grid-items {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .product-category-card {
        padding: 1.5rem 0.75rem;
    }
}

/* ============================================
   IMAGE SEARCH
   ============================================ */

/* Animation pour le loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-search-loading {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Résultats de la recherche par image */
.image-search-result {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0.5rem;
}

.extracted-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.extracted-text strong {
    font-weight: 600;
    color: #fff;
}

.results-count {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Notification d'erreur */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.image-search-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

/* Input file caché */
input[type="file"][accept="image/*"] {
    display: none !important;
}

/* Style pour les boutons caméra */
.mobile-search-camera,
.search-bar-camera,
.search-page-camera,
.cpb-search-camera,
.hero-search-camera,
#brandShowSearchCamera,
#brandsSearchCamera,
#productsSearchCamera,
#categorySearchCamera,
#brandsHomeSearchCamera {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-camera:hover,
.search-bar-camera:hover,
.search-page-camera:hover,
.cpb-search-camera:hover,
.hero-search-camera:hover,
#brandShowSearchCamera:hover,
#brandsSearchCamera:hover,
#productsSearchCamera:hover,
#categorySearchCamera:hover,
#brandsHomeSearchCamera:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.mobile-search-camera:active,
.search-bar-camera:active,
.search-page-camera:active,
.cpb-search-camera:active,
.hero-search-camera:active,
#brandShowSearchCamera:active,
#brandsSearchCamera:active,
#productsSearchCamera:active,
#categorySearchCamera:active,
#brandsHomeSearchCamera:active {
    transform: scale(0.95);
}

/* Style pour le wrapper de recherche des marques */
.cpb-search-wrapper {
    position: relative;
    flex: 1;
}

.cpb-search-camera {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Amélioration visuelle des suggestions avec recherche par image */
.search-suggestions .image-search-result + .suggestion-item:first-of-type {
    border-top: none;
}

/* Pagination pour les catégories */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    padding: 1rem;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    background: white;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-radius: 8px;
    color: rgba(5, 0, 82, 1);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: rgba(5, 0, 82, 0.05);
    border-color: rgba(5, 0, 82, 0.5);
    transform: translateY(-2px);
}

.pagination-link.active {
    background: rgba(5, 0, 82, 1);
    color: white;
    border-color: rgba(5, 0, 82, 1);
    box-shadow: 0 4px 12px rgba(5, 0, 82, 0.3);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    color: rgba(5, 0, 82, 0.4);
    font-weight: 600;
}

.pagination-info {
    margin-top: 1rem;
    color: rgba(5, 0, 82, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   BOUTON RETOUR EN HAUT
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(5, 0, 82, 1);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 0, 82, 0.4);
    z-index: 999;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(5, 0, 82, 0.85);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 0, 82, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Spinner pour la recherche par image */
.image-search-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(5, 0, 82, 0.2);
    border-top-color: rgba(5, 0, 82, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
