/* ===== PAGE CATÉGORIES - STYLE UNIQUE ===== */
/* Identité visuelle : Organisé, clair, exploratoire */

/* Hero spécifique */
.hero {
    min-height: 50vh;
    background: linear-gradient(135deg, rgba(107, 78, 61, 0.3) 0%, rgba(184, 149, 106, 0.25) 100%),
                url('../../images/gpt-image-1-mini_b_efacer_le_text_dans_.png') center/cover no-repeat;
}

.hero-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}

/* Grille catégories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

/* Grille catégories - 4 colonnes par ligne */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Grille dynamique pour la page types.php */
.types-grid {
    display: grid;
    gap: 2rem;
}

.types-grid.cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.types-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.types-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.types-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.types-grid.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(107, 78, 61, 0.1);
    border: 3px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 78, 61, 0.05), rgba(184, 149, 106, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(184, 149, 106, 0.25);
    border-color: var(--secondary-color);
}

.category-card > div:first-child {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover > div:first-child {
    transform: scale(1.2) rotate(10deg);
}

.category-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--secondary-color);
}

/* Section titre */
.section-title {
    color: var(--primary-color);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

/* Lien "Voir tous les produits" */
.category-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-link::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.category-card:hover .category-link {
    color: var(--primary-color);
}

.category-card:hover .category-link::after {
    transform: translateX(5px);
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.category-card:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card:nth-child(3) {
    animation-delay: 0.3s;
}

.category-card:nth-child(4) {
    animation-delay: 0.4s;
}

.category-card:nth-child(5) {
    animation-delay: 0.5s;
}

.category-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1200px) {
    .categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .types-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
    }
    
    .category-card > div:first-child {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .categories {
        grid-template-columns: 1fr;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }
}

