/* ==========================================================================
   SURCHARGE DU COMPORTEMENT GLOBAL DE <MAIN>
   ========================================================================== */
/* On désactive le 'gap' flexbox de 12vh imposé par global.css pour maîtriser les espacements à la main */
main {
    display: block !important; 
}

/* ==========================================================================
   STYLE SPÉCIFIQUE - PAGE DE STOCKAGE & CATALOGUE PRODUITS
   ========================================================================== */

/* Masquer la recherche globale du header pour cette page spécifiquement */

.search-container { 
    display: none !important; 
}

/* Header court de la page déstockage (Image Parallaxe limitée au titre) */
.hero-mini { 
    position: relative;
    padding: 180px clamp(20px, 5vw, 90px) 90px; /* Padding bas ajusté pour équilibrer l'image */
    text-align: center; 
    background-image: linear-gradient(rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.95)), url('/assets/img/stockage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Renforce la lisibilité des textes par-dessus l'image */
.hero-mini h1, 
.hero-mini p, 
.hero-mini .catalog-download-wrapper {
    position: relative;
    z-index: 2;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-mini h1 { 
    font-family: var(--font-title); 
    font-size: clamp(2.5rem, 6vw, 5rem); 
    color: var(--color-accent); 
    margin-bottom: 1rem; 
}
.hero-mini p { 
    max-width: 700px; margin: 0 auto; color: var(--color-text-muted); 
    font-size: 1.1rem; font-weight: 300; 
}

/* Conteneur pour la sélection et les filtres (fond standard du site) */
.destockage-body {
    padding-top: 0; /* Suppression des espaces cumulés */
    padding-bottom: 3rem;
}

/* Sections et Séparateurs de Catégories */
.cat-block { position: relative; margin-bottom: 5rem; }
.cat-banner { 
    height: 350px; position: relative; display: flex; 
    align-items: center; justify-content: center; overflow: hidden;
    background-size: cover; background-position: center; background-attachment: fixed;
}
.cat-banner::after { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,0.95)); 
}
.cat-banner-content { position: relative; z-index: 2; text-align: center; }
.cat-banner-content h2 { 
    font-family: var(--font-title); font-size: 3.5rem; color: #fff; 
    letter-spacing: 0.05em; text-transform: uppercase; font-weight: 300;
}
.cat-banner-content span { 
    display: block; color: var(--color-accent); font-family: var(--font-sans); 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 0.5rem; 
}

/* Grille de cartes Produits */
.products-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); 
    gap: 30px; padding: 3rem clamp(15px, 4vw, 30px); max-width: 1600px; margin: 0 auto; 
}

/* Fiche Produit (Card) */
.product-card { 
    background: var(--color-bg-alt); border: 1px solid rgba(255, 255, 255, 0.03); 
    border-radius: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    display: flex; flex-direction: column; 
}
.product-card:hover { transform: translateY(-8px); border-color: var(--color-accent); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }

/* Zone Image */
.prod-img-wrapper { position: relative; width: 100%; height: 250px; background: #000; overflow: hidden; }
.prod-image { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform 0.6s; }
.product-card:hover .prod-image { transform: scale(1.05); }

/* Badge de référence / modèle */
.ref-tag { 
    position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.6); 
    color: #fff; padding: 4px 10px; font-size: 0.65rem; border: 1px solid rgba(255,255,255,0.1); 
    backdrop-filter: blur(5px); z-index: 2;
}

/* Descriptif Produit */
.prod-content { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-accent); margin-bottom: 0.8rem; font-weight: 600; }
.prod-title { 
    font-family: var(--font-sans); font-size: 1.3rem; font-weight: 600; color: #fff; 
    margin-bottom: 0.8rem; line-height: 1.2; min-height: 2.4em; 
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-desc-container { margin-bottom: 1.5rem; flex-grow: 1; }
.prod-desc { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 8px; font-weight: 300; line-height: 1.5; text-align: left; min-height: 4.5em; }
.prod-desc.truncate { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more-btn { font-size: 0.8rem; color: var(--color-accent); cursor: pointer; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s; display: block; text-align: left; }
.read-more-btn:hover { color: #fff; text-decoration: underline; }

/* Zone Prix & Boutons */
.prod-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; }
.prices { display: flex; flex-direction: column; }
.price-new { font-size: 1.5rem; font-weight: 700; color: #fff; }
.price-old { font-size: 0.9rem; text-decoration: line-through; color: #555; }

/* --- BOUTON CATALOGUE PDF --- */
.catalog-download-wrapper { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-catalog {
    display: inline-block; font-family: var(--font-serif); font-size: 1.3rem; font-style: italic;
    background-color: var(--color-accent); color: #111; padding: 16px 45px; border-radius: 50px; 
    text-decoration: none; transition: all 0.4s ease; box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}
.btn-catalog:hover { background-color: transparent; color: var(--color-accent); border: 1px solid var(--color-accent); box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4); }
.catalog-note { font-family: var(--font-sans); font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- BARRE DE FILTRES DÉSTOCKAGE --- */
.destockage-filters {
    display: flex; flex-direction: column; gap: 15px; background: #111; padding: 25px; 
    border-radius: 8px; border: 1px solid #333; margin-bottom: 30px;
    max-width: 1000px; width: calc(100% - clamp(20px, 5vw, 180px)); margin-left: auto; margin-right: auto;
}
.filter-row-search { width: 100%; }
.filter-row-search input {
    width: 100%; padding: 14px; font-size: 1.1rem; background: #222; border: 1px solid #d4af37; 
    color: #fff; border-radius: 6px; box-sizing: border-box;
}
.filter-row-search input:focus { outline: none; border-color: #fff; box-shadow: 0 0 8px rgba(212, 175, 55, 0.3); }

.filter-row-selects { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-row-selects > * { flex: 1; min-width: 160px; padding: 12px; background: #222; color: #ccc; border: 1px solid #444; border-radius: 6px; }
.filter-row-selects select {
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 1rem top 50%; background-size: 0.65rem auto;
}
.filter-row-selects select:focus { border-color: #d4af37; outline: none; }
.btn-reset-filters { background: #444; color: #fff; border: none; cursor: pointer; font-weight: 600; transition: all 0.2s ease; font-family: var(--font-sans); }
.btn-reset-filters:hover { background: #c62828; color: #fff; }

/* COMPTEUR DE RÉSULTATS */
.results-counter {
    margin-top: 1.5rem; font-family: var(--font-sans); font-size: 1.1rem; color: #888;
    font-weight: 500; background: rgba(0,0,0,0.5); padding: 10px 20px; border-radius: 30px;
    display: inline-block; border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    width: 100%;
}

/* PRODUITS MIS EN AVANT (HERO) */
.featured-section { 
    margin-top: 0; /* Alignement propre sous le bloc parallax */
    padding: 4rem clamp(15px, 4vw, 60px) 0; /* 4rem exactement pour équilibrer avec le padding du dessous */
}
.featured-title { 
    font-family: var(--font-serif); 
    font-size: 2.2rem; 
    color: var(--color-accent); 
    margin-bottom: 2rem; /* 2rem ici... */
    font-style: italic; 
    text-align: center; 
}
.products-grid.featured-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    padding: 2rem 0; /* ...et 2rem ici = 4rem au total sous le titre */
    margin-bottom: 2rem; 
}
.products-grid.featured-grid .product-card { width: 100%; max-width: 420px; flex: 1 1 320px; }

/* --- ACCORDÉONS PAR ÉTAT --- */
.state-accordion {
    margin: 0 auto 40px auto; width: calc(100% - clamp(20px, 6vw, 60px)); max-width: 1400px; 
    background: linear-gradient(90deg, #000000 0%, rgba(20, 20, 20, 0.9) 50%, #000000 100%);
    border: 1px solid rgba(212, 175, 55, 0.15); border-radius: 8px; overflow: hidden;
    position: relative; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.state-accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: clamp(12px, 2vw, 18px) clamp(15px, 4vw, 30px);
    background: linear-gradient(90deg, #000000 0%, rgba(212, 175, 55, 0.08) 50%, #000000 100%);
    color: var(--color-accent); cursor: pointer; font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2vw, 1.15rem); text-transform: uppercase; letter-spacing: 0.15em;
    font-weight: 600; transition: all 0.4s ease; user-select: none; border-bottom: 1px solid rgba(212, 175, 55, 0.05); 
}
.state-accordion-header:hover { background: linear-gradient(90deg, #000000 0%, rgba(212, 175, 55, 0.18) 50%, #000000 100%); text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.state-accordion-header .chevron { transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); font-size: 1.3rem; color: rgba(255,255,255,0.5); }
.state-accordion-header:hover .chevron { color: var(--color-accent); }
.state-accordion-header.active .chevron { transform: rotate(180deg); color: var(--color-accent); }

.accordion-grid {
    display: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); 
    gap: clamp(20px, 4vw, 35px); padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 30px);
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

/* --- PAGE PRODUIT DÉDIÉE (produit.php) --- */
.product-single-wrapper { max-width: 1400px; margin: 180px auto 100px; padding: 0 clamp(20px, 5vw, 90px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.product-single-image { background: #000; border: 1px solid rgba(212,175,55,0.15); padding: clamp(15px, 4vw, 40px); border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.product-single-image img { width: 100%; height: auto; max-height: 600px; object-fit: contain; }
.product-single-details h1 { font-family: var(--font-title); font-size: clamp(2rem, 5vw, 3rem); color: #fff; margin-bottom: 0.5rem; }
.product-single-details .back-link { color: #888; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; display: inline-block; margin-bottom: 2rem; transition: color 0.3s; }
.product-single-details .back-link:hover { color: var(--color-accent); }
.product-single-details .brand { color: var(--color-accent); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.product-single-details .cat-tag { background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; color: #ccc; text-transform: uppercase; }
.product-single-price { margin: 2rem 0; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.product-single-price .new-price { font-size: clamp(2rem, 5vw, 3rem); color: var(--color-accent); font-weight: 700; }
.product-single-price .old-price { font-size: 1.2rem; color: #666; text-decoration: line-through; }
.product-single-desc { color: #ccc; line-height: 1.8; font-size: 1.1rem; font-weight: 300; margin-bottom: 3rem; }
.product-single-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.product-single-tech { grid-column: 1 / -1; margin-top: 2rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); }
.product-single-tech h2 { font-family: var(--font-title); color: var(--color-accent); font-size: 2rem; margin-bottom: 1.5rem; }
.tech-content { color: #ccc; line-height: 1.8; font-size: 1rem; font-family: var(--font-sans); background: rgba(20,20,20,0.5); padding: clamp(15px, 4vw, 30px); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.tech-content ul, .tech-content ol { margin-left: 20px; margin-bottom: 1rem; }
.tech-content p { margin-bottom: 1rem; }

/* -----------------------------------------------------------
   RESPONSIVE (MOBILES & TABLETTES)
   ----------------------------------------------------------- */
@media (max-width: 900px) {
    .product-single-wrapper { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .cat-banner { height: 250px; background-attachment: scroll; }
    .cat-banner-content h2 { font-size: 2.2rem; }
    .state-accordion { width: 92%; margin-bottom: 30px; }
}