/*
Theme Name: ProElectrika Custom Theme
Theme URI: https://proelectrika.com
Description: Design professionnel pour ProElectrika - Électricité & Anti-moustiques à Casablanca
Author: ProElectrika
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proelectrika
Domain Path: /languages
*/

/* ========================
   1. VARIABLES & COULEURS
   ======================== */
:root {
    --primary-color: #1a237e;      /* Bleu foncé */
    --secondary-color: #ff6f00;    /* Orange */
    --text-color: #212121;         /* Gris foncé */
    --light-text: #757575;         /* Gris clair */
    --background: #f8f9fa;         /* Fond gris très léger au lieu du blanc */
    --border-color: #e0e0e0;       /* Bordure légère */
    --white: #ffffff;              /* Blanc */
    --success: #4caf50;            /* Vert */
    --danger: #f44336;             /* Rouge */
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========================
   2. RESET & BASE
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ========================
   3. HEADER & NAVIGATION
   ======================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header-top {
    background-color: #0d47a1;
    color: var(--white);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 20px;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-top .top-item {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.header-top-actions a,
.header-top-actions span {
    color: var(--white);
}

.header-top-actions a:hover {
    color: var(--secondary-color);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    gap: 1rem;
}

.header-brand .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.header-brand .logo:hover {
    color: var(--secondary-color);
}

.header-search {
    flex: 1;
    max-width: 620px;
}

.header-search form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.header-search input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.08);
}

.header-search button {
    padding: 0.85rem 1.2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.header-search button:hover {
    background-color: #e65100;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 999px;
    font-weight: 600;
    min-width: 110px;
    text-align: center;
}

.header-cart:hover {
    background-color: #e65100;
}

.header-nav {
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
    background-color: var(--white);
}

.header-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 20px;
}

.header-nav a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.header-nav a:hover {
    color: var(--secondary-color);
}

.header-nav .has-dropdown {
    position: relative;
}

.header-nav .dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
}

.header-nav .has-dropdown:hover .dropdown,
.header-nav .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .dropdown li {
    padding: 0;
}

.header-nav .dropdown a {
    display: block;
    padding: 0.85rem 1.1rem;
    white-space: nowrap;
    color: var(--text-color);
}

.header-nav .dropdown a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 980px) {
    .header-top-content,
    .header-main,
    .header-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .header-top-content,
    .header-main {
        padding: 0.85rem 20px;
    }

    .header-search {
        max-width: 100%;
    }

    .header-nav ul {
        gap: 1rem;
    }

    .header-nav .dropdown {
        position: static;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .header-nav .has-dropdown > a::after {
        content: ' ▾';
    }
}

/* ========================
   4. HERO SECTION
   ======================== */
.home-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: var(--white);
    padding: 100px 0 80px;
}

.home-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin: 1rem 0;
    line-height: 1.05;
}

.home-hero-content .eyebrow {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.hero-copy {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    max-width: 620px;
    color: rgba(255,255,255,0.95);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-categories {
    padding-top: 40px;
    padding-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: var(--white);
    border: 1px solid #e4e7eb;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 260px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.category-icon {
    font-size: 60px;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-card span {
    display: inline-flex;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    background-color: rgba(13,71,161,0.08);
    color: var(--primary-color);
    font-weight: 700;
}

.home-featured {
    background-color: var(--background);
}

.section-header {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-header p {
    color: var(--light-text);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-bestseller {
    background-color: #d32f2f;
    color: #fff;
}

.badge-promo {
    background-color: #b71c1c;
    color: #fff;
}

.product-image {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background-color: #f6f7fb;
    color: var(--primary-color);
}

.product-info {
    padding: 1.75rem;
}

.product-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    color: var(--primary-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.home-advantages {
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    border-radius: 18px;
    background-color: #fafbff;
    border: 1px solid #e4e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.advantage-icon {
    font-size: 42px;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--light-text);
    line-height: 1.8;
}

.home-promo {
    background-color: #ff6f00;
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.home-promo .container {
    max-width: 1200px;
}

.promo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.promo-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.95);
}

.home-promo h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.home-promo p {
    color: rgba(255,255,255,0.9);
    max-width: 640px;
}

.promo-countdown-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    min-width: 260px;
    text-align: center;
}

.promo-countdown-card span {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.85);
}

#promo-countdown {
    font-size: 1.4rem;
    font-weight: 700;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.promo-card .product-image {
    background-color: rgba(255,255,255,0.12);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.9);
}

.footer-section a {
    color: rgba(255,255,255,0.95);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

/* ========================
   5. BOUTONS
   ======================== */
.btn {
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e65100;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* ========================
   6. SECTIONS PRINCIPALES
   ======================== */
section {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 2rem;
}

/* ========================
   7. SECTION : POURQUOI NOUS
   ======================== */
.why-us {
    background-color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--background);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
}

.why-us-card-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.why-us-card h3 {
    font-size: 20px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.why-us-card p {
    color: var(--light-text);
    line-height: 1.8;
}

/* ========================
   8. SECTION : PRODUITS VEDETTES
   ======================== */
.featured-products {
    background-color: var(--background);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background-color: #f6f7fb;
    color: var(--primary-color);
}

.product-info {
    padding: 1.75rem;
}

.product-info h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--light-text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.product-card .btn {
    width: 100%;
    display: block;
}

/* ========================
   9. SECTION : TÉMOIGNAGES
   ======================== */
.testimonials {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1555 100%);
    color: var(--white);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(10px);
}

.testimonial-stars {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 18px;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ========================
   10. FOOTER
   ======================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ========================
   11. RESPONSIVE DESIGN
   ======================== */
@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 14px;
    }

    .home-hero-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .home-hero-content h1 {
        font-size: 3rem;
    }

    .hero-copy {
        font-size: 1.1rem;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .home-hero-content,
    .promo-top {
        align-items: stretch;
    }

    .category-grid,
    .advantages-grid,
    .promo-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .promo-countdown-card {
        width: 100%;
    }

}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .header-contact {
        gap: 1rem;
        font-size: 12px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    nav a {
        padding: 0.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================
   12. PAGE CATALOGUE
   ======================== */
.catalogue-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.catalogue-filters {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    background-color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.filter-btn .count {
    background-color: rgba(0,0,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-btn.active .count {
    background-color: rgba(255,255,255,0.2);
}

.catalogue-products {
    margin-top: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #b71c1c;
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 14px;
}

.product-prices {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: #e65100;
    margin-right: 0.5rem;
}

.regular-price {
    font-size: 18px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #0d1555;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    border: none;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

.out-of-stock {
    background-color: #9e9e9e;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========================
   13. PAGE PRODUIT INDIVIDUEL
   ======================== */
.single-product-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 2rem 0;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    font-size: 16px;
}

.product-prices {
    margin-bottom: 2rem;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 0.5rem;
}

.regular-price {
    font-size: 20px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.product-meta {
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-weight: 500;
}

.meta-item.in-stock {
    color: #4caf50;
}

.meta-item.out-of-stock {
    color: #f44336;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: var(--light-text);
}

.product-share a {
    color: var(--primary-color);
    font-weight: 500;
}

.product-tabs {
    margin-top: 4rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tabs-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.product-description {
    line-height: 1.8;
    color: var(--text-color);
}

.product-description h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-size: 20px;
}

.product-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.description-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.description-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 18px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table td {
    padding: 1rem 0;
    vertical-align: top;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
    width: 40%;
}

.spec-value {
    color: var(--text-color);
}

.product-reviews {
    padding: 2rem 0;
}

.related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.related-products h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.related-product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-4px);
}

.related-product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-product-card h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-card .price {
    padding: 0 1rem 1rem;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ========================
   14. RESPONSIVE CATALOGUE & PRODUIT
   ======================== */
@media (max-width: 980px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .filters-container::-webkit-scrollbar {
        height: 4px;
    }

    .filters-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .filters-container::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
        order: -1;
    }

    .main-image {
        height: 300px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .description-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tabs-nav {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .tabs-nav::-webkit-scrollbar {
        height: 2px;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        justify-content: center;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* ========================
   12. UTILITAIRES
   ======================== */
.container-fluid {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.m-0 {
    margin: 0;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.p-2 {
    padding: 1rem;
}

/* ========================
   13. ANIMATIONS & EFFECTS
   ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================
   14. ACCESSIBILITÉ
   ======================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour accessibilité */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ========================
   15. PRINT STYLES
   ======================== */
@media print {
    header,
    footer,
    nav,
    .btn,
    .hero-buttons {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* ========================
   16. BADGES PRODUITS
   ======================== */
.product-meta .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.product-meta .badge:first-child {
    background-color: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.product-meta .badge:nth-child(2) {
    background-color: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc02;
}

/* Responsive pour badges */
@media (max-width: 480px) {
    .product-meta .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        margin: 0.2rem 0.2rem 0.2rem 0;
    }
}