:root {
    --primary-blue: #007bff;
    /* To be refined based on logo extraction if possible, but 007bff is a solid base */
    --secondary-silver: #e0e0e0;
    --dark-gray: #333333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 50px;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.slide-content {
    position: relative;
    z-index: 20;
    color: white;
}

.slide-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 20px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary-blue);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 20px;
}

/* Hero Section Fallback/General */
/* Hero Section Fallback/General */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-sub {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-sub .container {
    position: relative;
    z-index: 2;
}

.hero-sub h1 {
    color: white !important;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-sub p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Specific Page Heroes */
.hero-boutique {
    background-image: url('img/boutique-ban.png');
}

.hero-services {
    background-image: url('img/slide/services.png');
}

.hero-about {
    background-image: url('img/bannierepng.png');
}

.hero-contact {
    background-image: url('img/contact-ban.png');
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Services Grid */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card .btn i {
    font-size: inherit;
    color: inherit;
    margin-bottom: 0;
}

/* Feature Row */
.features-row {
    background: var(--light-gray);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.features-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.feature-item {
    flex: 1;
    min-width: 200px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #666;
}

/* Category Hub */
.category-hub {
    padding: 80px 0;
}

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

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: var(--transition);
}

.category-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.category-card span {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 10px;
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

/* Info Section */
.info-section {
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
}

.badge-promo {
    background-color: #ff4757;
    color: white;
}

.badge-featured {
    background-color: var(--primary-blue);
    color: white;
}

.badge-bestseller {
    background-color: #2ed573;
    color: white;
}

/* Section Header Decoration */
.section-title h2 {
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

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

/* Optimized Footer */
.footer-main {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto 50px;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-contact-item i {
    color: var(--primary-blue);
    margin-top: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        padding: 50px 0 20px;
    }
}

/* Product Detail Styles */
.product-detail-section {
    padding: 80px 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background: #fff;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: #fff;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-blue);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.product-meta {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.95rem;
}

.product-meta span {
    margin-right: 20px;
}

.product-description {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.product-specs {
    margin-top: 60px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
}

.specs-table th {
    width: 30%;
    background: #f8f9fa;
    font-weight: 600;
}

.specs-table td {
    padding: 15px;
    text-align: left;
}

.related-products {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Partners / Brands Carousel Styles */
.partners-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.partners-section .container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-carousel::before,
.partners-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.partners-track {
    display: flex;
    width: fit-content;
    animation: scrollBrands 30s linear infinite;
    gap: 60px;
    /* Espace confortable entre les logos */
    padding-left: 60px;
}

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

.partner-item {
    flex: 0 0 auto;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    /* Légèrement plus visible par défaut */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    /* Ombre portée légère pour détacher les logos blancs sur fond blanc si nécessaire */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-item span {
    font-weight: 800;
    color: #b2bec3;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.partner-item:hover span {
    color: var(--primary-blue);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-33.33%));
    }
}

@media (max-width: 768px) {
    .partners-track {
        gap: 30px;
        /* Réduire l'espace sur mobile */
        padding-left: 30px;
        animation-duration: 20s;
        /* Un peu plus rapide sur mobile */
    }

    .partner-item {
        width: 120px;
        height: 80px;
    }

    .partner-item span {
        font-size: 1rem;
    }

    .partners-section {
        padding: 40px 0;
    }
}