/* ===========================================
   BOUTIQUE CSS - DESIGN MODERNE & RESPONSIVE
   =========================================== */

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Container principal */
.boutique-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

/* Titre principal */
.boutique-content h1 {
    text-align: center;
    margin: 60px 0 40px 0;
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.boutique-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #ffe600, #ffb300);
    border-radius: 2px;
}

/* Grid des catégories */
.boutique-content .category {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 40px !important;
    padding: 20px !important;
    justify-items: center !important;
    width: 100% !important;
}

/* Cartes de catégories */
.boutique-content .category-box {
    background: white;
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Effet de survol moderne */
.boutique-content .category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.boutique-content .category-box:hover::before {
    left: 100%;
}

.boutique-content .category-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Images des catégories */
.boutique-content .category-box img {
    width: 100%;
    height: 200px;
    /* Affiche l'image entière sans rognage (conserve les proportions).
       Si vous préférez remplir le cadre (avec rognage), utilisez `object-fit: cover` et `object-position: top` */
    object-fit: contain;
    object-position: center top;
    background-color: #f8f8f8;
    /* couleur de fond visible si l'image ne remplit pas le cadre */
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.boutique-content .category-box:hover img {
    transform: scale(1.05);
}

/* Liens de catégories */
.boutique-content .category-box a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    padding: 15px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.boutique-content .category-box a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #ffe600, #ffb300);
    transition: width 0.3s ease;
}

.boutique-content .category-box:hover a::after {
    width: 80%;
}

.boutique-content .category-box:hover a {
    color: #ffb300;
    transform: translateY(-2px);
}

.category-btn {
    background: linear-gradient(45deg, #ffe600, #ffb300);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

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

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boutique-content .category-box {
    animation: fadeInUp 0.6s ease forwards;
}

.boutique-content .category-box:nth-child(2) {
    animation-delay: 0.1s;
}

.boutique-content .category-box:nth-child(3) {
    animation-delay: 0.2s;
}

.boutique-content .category-box:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* Tablettes */
@media (max-width: 1024px) {
    .boutique-content {
        padding: 30px 15px !important;
        gap: 30px !important;
    }

    .boutique-content h1 {
        font-size: 2.5rem !important;
        margin: 40px 0 30px 0 !important;
    }

    .boutique-content .category {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 30px !important;
        padding: 15px !important;
    }

    .boutique-content .category-box {
        max-width: 320px !important;
        padding: 25px 18px !important;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .boutique-content {
        padding: 20px 10px !important;
        gap: 25px !important;
    }

    .boutique-content h1 {
        font-size: 2.2rem !important;
        margin: 30px 0 25px 0 !important;
        text-align: center !important;
    }

    .boutique-content .category {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 10px !important;
        display: grid !important;
    }

    .boutique-content .category-box {
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px 15px !important;
        margin: 0 auto !important;
    }

    .boutique-content .category-box img {
        height: 160px !important;
        object-fit: contain !important;
        width: 50% !important;
        background: none;
    }

    .boutique-content .category-box a {
        font-size: 1.2rem !important;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .boutique-content {
        padding: 15px 5px;
        gap: 20px;
    }

    .boutique-content h1 {
        font-size: 1.8rem;
        margin: 20px 0;
    }

    .boutique-content h1::after {
        width: 60px;
        height: 3px;
    }

    .boutique-content .category {
        gap: 20px;
        padding: 5px;
    }

    .boutique-content .category-box {
        padding: 18px 12px;
        border-radius: 15px;
        margin: 0 5px;
    }

    .boutique-content .category-box img {
        height: 150px;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .boutique-content .category-box a {
        font-size: 1.1rem;
        padding: 10px 0;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 12px;
        margin-top: 10px;
    }
}

/* Mobile Extra Small */
@media (max-width: 320px) {
    .boutique-content h1 {
        font-size: 1.5rem;
    }

    .boutique-content .category-box {
        padding: 15px 10px;
    }

    .boutique-content .category-box img {
        height: 120px;
    }

    .boutique-content .category-box a {
        font-size: 1rem;
    }
}

/* Mode sombre supprimé - reste en mode clair */

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .boutique-content .category-box {
        animation: none;
        transition: none;
    }

    .boutique-content .category-box:hover {
        transform: none;
    }
}