/* ====================================
   TABLE DES MATIÈRES
   ====================================
   1. Variables et configuration
   2. Section hero 
   3. Grille des PC
   4. Cartes de produits PC
   5. Éditions spéciales
   6. Styles spécifiques des PC
   7. Media queries
   ==================================== */

/* 1. Variables et configuration
   ================================== */
:root {
    /* Couleurs principales - Palette gaming améliorée */
    --primary-color: #6c5ce7;       /* Violet vif */
    --primary-dark: #5641e5;        /* Violet foncé pour hover */
    --accent-color: #00cec9;        /* Turquoise accent */
    --accent-dark: #00a8a3;         /* Turquoise foncé pour hover */
    --dark-blue: #1e272e;           /* Arrière-plan sombre */
    --medium-blue: #2d3436;         /* Couleur pour gradient */
    --light-bg: #f1f2f6;            /* Fond clair */
    
    /* Hero backgrounds et overlays */
    --hero-overlay: rgba(26, 32, 44, 0.8);
    --hero-gradient-start: rgba(108, 92, 231, 0.8);
    --hero-gradient-end: rgba(0, 206, 201, 0.3);
    
    /* Texte et cartes */
    --hero-text-color: #fff;
    --card-bg-color: #fff;
    --card-hover-bg: linear-gradient(145deg, #fff, #f5f7fa);
    --card-shadow: 0 10px 20px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 14px 28px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.08);
    
    /* Catégories */
    --category-bg: #ffffff;
    --special-edition-bg: linear-gradient(135deg, #2d3436 0%, #0f1416 100%);
    --special-edition-border: 1px solid rgba(108, 92, 231, 0.3);
    --special-edition-glow: 0 0 15px rgba(108, 92, 231, 0.3);
}

/* Reset des marges pour cette page spécifique */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Texture de fond pour la page entière */
body {
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ced6e0' fill-opacity='0.15'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h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10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 2. Section hero 
   ================================== */
#pc-gamer-hero {
    background-color: var(--dark-blue);
    background-image: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end)), 
                     url('../../assets/images/ui/hero-bg-pc.jpg?v=1.0.1');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#pc-gamer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30,39,46,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

#pc-gamer-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
    text-align: center;
    background: linear-gradient(90deg, #fff, #a29bfe, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hero-description {
    font-size: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    font-weight: 300;
}

/* 3. Grille des PC
   ================================== */
#pc-gamer {
    padding: 80px 0;
    position: relative;
}

#pc-gamer .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.categorie {
    margin-bottom: 80px;
    text-align: center;
    width: 100%;
    transition: all 0.4s ease;
    background: var(--category-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.categorie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.categorie h3 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #2c3e50;
    display: inline-block;
    text-align: center;
    position: relative;
    padding: 0 15px 15px;
}

.categorie h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.categorie i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.2em;
    vertical-align: middle;
}

.pc-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
    padding-top: 20px;
}

/* 4. Cartes de produits PC
   ================================== */
.pc-item {
    width: 100%;
    max-width: 350px;
    height: 100%;
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pc-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--card-hover-shadow);
    background: var(--card-hover-bg);
}

.pc-img-container {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(241, 242, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.pc-item:hover .pc-img-container {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.pc-item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.pc-item:hover img {
    transform: scale(1.08);
}

.pc-item h4 {
    font-size: 1.7em;
    color: #2c3e50;
    margin: 15px 0 10px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.pc-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.pc-item p {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: 700;
    margin: 15px 0;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.05);
}

.pc-item a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    margin-top: auto;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.pc-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.pc-item a:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 15px rgba(108, 92, 231, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.pc-item a:hover::before {
    left: 100%;
}

/* 5. Éditions spéciales
   ================================== */
.special-edition {
    background: var(--special-edition-bg);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: var(--special-edition-border);
    box-shadow: var(--special-edition-glow), var(--card-shadow);
    padding: 50px 30px;
}

.special-edition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 80 80'%3E%3Cg fill='%236c5ce7' fill-opacity='0.1'%3E%3Cpath d='M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
}

.special-edition h3 {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(0, 206, 201, 0.3);
}

.special-edition h3::after {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color)) !important;
    height: 3px;
    width: 100px;
}

.special-edition .fa-robot {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 206, 201, 0.3);
}

.pc-item.premium {
    border: 2px solid rgba(0, 206, 201, 0.3);
    background: linear-gradient(145deg, #1e272e, #2d3436);
    position: relative;
    overflow: hidden;
}

.pc-item.premium::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.pc-item.premium h4,
.pc-item.premium p {
    color: white;
}

.pc-item.premium h4::after {
    background: var(--accent-color);
}

.pc-item.premium a {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    box-shadow: 0 4px 12px rgba(0, 206, 201, 0.4);
}

.pc-item.premium a:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
    box-shadow: 0 7px 15px rgba(0, 206, 201, 0.5);
}

.pc-item.premium .pc-img-container {
    background: rgba(255, 255, 255, 0.05);
}

/* 6. Styles spécifiques des PC
   ================================== */
/* Hero Section pour la page de détail des PC */
#pc-hero {
    position: relative;
    text-align: center;
    color: var(--hero-text-color);
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#pc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30,39,46,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

#pc-hero .container {
    position: relative;
    z-index: 10;
}

/* Fallback background si classe spécifique non appliquée */
#pc-hero:not([class*=" "]) {
    background-image: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end)), 
                     url("../../assets/images/ui/background/default_hero_bg.jpg");
}

/* 7. Media queries
   ================================== */
@media (max-width: 992px) {
    .pc-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    #pc-hero, #pc-gamer-hero {
        padding: 90px 0;
    }
    
    .categorie {
        padding: 30px 20px;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    #pc-gamer-hero, #pc-hero {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .pc-items-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
    
    .categorie h3 {
        font-size: 1.8rem;
    }
    
    .pc-item {
        max-width: 340px;
    }
    
    .categorie {
        margin-bottom: 50px;
    }
    
    .pc-img-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #pc-gamer-hero, #pc-hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .pc-img-container {
        height: 180px;
    }
    
    .pc-item h4 {
        font-size: 1.4rem;
    }
    
    .pc-item p {
        font-size: 1.6rem;
    }
    
    .categorie h3 {
        font-size: 1.5rem;
    }
    
    .pc-item a {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .categorie {
        padding: 25px 15px;
    }
}

footer {
    position: static;
    z-index: auto;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

footer .footer-content {
    width: 100%;
    text-align: center;
}

footer .footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(108, 92, 231, 0.4);
    opacity: 1;
    color: white;
    text-decoration: none;
}

.primary-btn:hover::before {
    left: 100%;
}

.close {
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}