/* --- CSS SPÉCIFIQUE PAGE COLLECTIONS --- */

/* Hérite des variables racines de styles.css, 
   mais on s'assure que les typos sont bien calées. */

/* 1. HEADER COLLECTIONS */
.collections-header {
    text-align: center;
    padding: 80px 20px 60px;
    background-color: var(--bg-light);
}

.collections-header h1 {
    font-family: var(--font-heading); /* Bodoni Moda */
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.collections-header .subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 2. BARRE DE RECHERCHE ET FILTRES */
.search-section {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.search-bar-wrapper {
    position: relative;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.search-bar-wrapper input {
    width: 100%;
    padding: 15px 40px 15px 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-dark);
    text-align: center;
}

.search-bar-wrapper input:focus {
    outline: none;
    border-bottom: 1px solid var(--primary);
}

.search-bar-wrapper input::placeholder {
    color: #ccc;
    font-family: var(--font-heading);
    font-style: italic;
}

.search-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.5;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 10px 25px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    color: #888;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 3. GRILLE DES MARQUES (DESIGN EDGARD) */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Espace généreux entre les cartes */
    margin-bottom: 100px;
}

.brand-card {
    display: block;
    position: relative;
    text-align: center;
    group: pointer; /* Pour gérer les effets de survol */
}

/* Image */
.card-image {
    width: 100%;
    aspect-ratio: 4/5; /* Format portrait élégant */
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(10%) brightness(95%);
}

.brand-card:hover .card-image img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(100%);
}

/* Texte */
.card-info {
    padding: 0 15px;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    transition: color 0.3s;
}

.brand-card:hover .card-info h3 {
    color: var(--primary);
}

.brand-origin {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 700;
}

.brand-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    opacity: 0; /* Caché par défaut */
    transform: translateY(10px);
    transition: all 0.4s ease;
    max-width: 90%;
    margin: 0 auto;
}

/* Au survol, on affiche la description */
.brand-card:hover .brand-desc {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .collections-header h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 40px;
    }
    
    .brand-desc {
        opacity: 1; /* Sur mobile, on affiche toujours la description */
        transform: translateY(0);
    }

    .collections-header { padding: 40px 20px; }
    .collections-header h1 { font-size: 2.2rem; }
    
    .search-bar-wrapper input { font-size: 1.2rem; }
}