/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #424242;
    line-height: 1.5;
}

/* ========== VARIABLES ========== */
:root {
    --rouge-carmin: #911827;
    --rouge-fonce: #6e0f1c;
    --vert: #2e7d32;
    --vert-clair: #4caf50;
    --jaune: #fbc02d;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris: #9e9e9e;
    --gris-fonce: #424242;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--vert);
    color: white;
    padding: 6px 0;
    font-size: 13px;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-bar-contact a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    transition: color 0.3s;
}

.top-bar-contact a:hover {
    color: var(--jaune);
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.top-bar-social a:hover {
    color: var(--jaune);
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ========== HEADER & NAVIGATION ========== */
.main-header {
    background: var(--blanc);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    flex-shrink: 0;
}

.logo h1 {
    color: var(--rouge-carmin);
    font-size: 22px;
}

.logo p {
    font-size: 11px;
    color: var(--gris);
}

.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--gris-fonce);
    font-weight: 500;
    padding: 8px 0;
    display: block;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--rouge-carmin);
}

/* Menu hamburger (caché par défaut) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--rouge-carmin);
    order: 3;
}

.panier-icon {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    order: 2;
}

.panier-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--rouge-carmin);
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: bold;
}

/* Menu mobile (overlay) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
    display: block;
}

.mobile-menu .close-menu {
    text-align: right;
    font-size: 28px;
    cursor: pointer;
    color: var(--rouge-carmin);
    margin-bottom: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--gris-fonce);
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.mobile-menu a.active {
    color: var(--rouge-carmin);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

/* ========== HERO SECTION ========== */
.herox {
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.65)), url('../images/herobg22.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 20px 0 20px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 260px;
    animation: fadeInUp 0.8s ease;
}

.hero-image {
    flex: 1;
    text-align: center;
    align-self: flex-end;
    margin-bottom: 0;
}

.hero-image img {
    max-width: 100%;
    display: block;
    margin: 0;
}

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

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

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

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0.5); }
    100% { text-shadow: 0 0 20px rgba(251,192,45,0.8); }
}

.hero-description {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn-hero {
    background: var(--jaune);
    color: var(--rouge-carmin);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.3s;
}

.btn-hero-outline {
    border: 2px solid white;
    color: white;
    padding: 10px 23px;
    border-radius: 50px;
    display: inline-block;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-hero:hover,
.btn-hero-outline:hover {
    transform: scale(1.02) translateY(-2px);
}

/* ========== SECTIONS GENERALES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    color: var(--rouge-carmin);
    font-size: 32px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

/* ========== SECTION À PROPOS ========== */
.apropos-section {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.apropos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.apropos-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--rouge-carmin);
}

.apropos-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ========== CATEGORIES, BLOG, PRODUITS ========== */
.categories-grid,
.blog-grid,
.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.categorie-card,
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.categorie-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
}

.categorie-image,
.blog-image {
    height: 200px;
    overflow: hidden;
}

.categorie-image img,
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.categorie-card:hover .categorie-image img,
.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.categorie-card h3 {
    color: var(--rouge-carmin);
    margin: 20px 0 10px;
    text-align: center;
}

.categorie-card p {
    padding: 0 20px 20px;
    color: #666;
    text-align: center;
}

.blog-content {
    padding: 20px;
    text-align: left;
}

.blog-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 18px;
    color: var(--rouge-carmin);
    margin-bottom: 10px;
}

/* ========== PRODUITS ========== */
.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.produit-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.produit-card:hover {
    transform: translateY(-4px);
}

.produit-image {
    height: 180px;
    overflow: hidden;
}

.produit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.produit-card:hover .produit-image img {
    transform: scale(1.05);
}

.produit-info {
    padding: 15px;
}

.produit-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--rouge-carmin);
}

.produit-prix {
    font-size: 22px;
    font-weight: bold;
    color: var(--vert);
    margin: 10px 0;
}

.btn-ajouter-panier {
    background: var(--rouge-carmin);
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-ajouter-panier:hover {
    background: var(--rouge-fonce);
}

/* ========== AVANTAGES ========== */
.avantages {
    background: linear-gradient(135deg, #911827, #6e0f1c);
    color: white;
}

.avantage-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.avantage-item i {
    font-size: 45px;
    color: var(--jaune);
    margin-bottom: 15px;
}

/* ========== NEWSLETTER ========== */
.newsletter {
    background: var(--jaune);
    padding: 50px 20px;
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
}

.btn-primary {
    background: var(--rouge-carmin);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--rouge-fonce);
}

/* ========== FOOTER ========== */
.main-footer {
    background: var(--gris-fonce);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--jaune);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ========== MODALES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.close-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: var(--rouge-carmin);
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .header-container {
        justify-content: space-between;
        flex-direction: row;
    }
    .logo {
        order: 1;
    }
    .panier-icon {
        order: 2;
    }
    .menu-toggle {
        order: 3;
    }
    .hero {
        padding: 60px 15px 0;
        background-attachment: scroll;
    }
    .hero-container {
        flex-direction: column;
        gap: 20px;
    }
    .hero-content {
        text-align: center;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero-description {
        font-size: 16px;
    }
    .btn-hero,
    .btn-hero-outline {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    .btn-hero {
        margin-right: 0;
    }
    .apropos-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .produits-grid,
    .categories-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form button {
        width: 100%;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .top-bar-contact {
        gap: 8px;
    }
    .top-bar-contact a {
        font-size: 10px;
    }
    .logo h1 {
        font-size: 20px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .section-title {
        font-size: 28px;
    }
    .stat-number {
        font-size: 22px;
    }
}