/* ==========================================================================
   STYLE SPÉCIFIQUE - PAGE NOS MARQUES
   ========================================================================== */

/* On désactive le 'gap' flexbox de 12vh imposé par global.css pour maîtriser les espacements */
main {
    display: block !important; 
}

/* Header Parallaxe */
.hero-marques { 
    position: relative;
    padding: 180px clamp(20px, 5vw, 90px) 120px; 
    text-align: center; 
    /* Le fond est injecté via PHP, ceci assure le comportement CSS de base */
    background-color: #050505;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-marques h1, 
.hero-marques p {
    position: relative;
    z-index: 2;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
}

/* L'astuce des 3 lignes ! */
.hero-marques h1 { 
    font-family: var(--font-title); 
    font-size: clamp(2.2rem, 4.5vw, 4.5rem); 
    color: var(--color-accent); 
    margin: 0 auto 1.5rem auto; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.15; 
    max-width: 15ch; /* Force le texte à aller à la ligne pour l'esthétique */
}

.hero-marques p { 
    max-width: 800px; 
    margin: 0 auto; 
    color: #ccc; 
    font-size: 1.15rem; 
    font-weight: 300; 
    line-height: 1.8;
}

/* Conteneur principal des marques */
.marques-body {
    padding: 5rem clamp(20px, 5vw, 60px);
    max-width: 1600px;
    margin: 0 auto;
}

/* -----------------------------------------------------------
   AFFICHAGE PAR CATÉGORIES (Grille 3 colonnes)
   ----------------------------------------------------------- */
.marques-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.marques-col h2 {
    font-family: var(--font-title);
    color: #fff;
    
    /* AVANT : font-size: 1.8rem; */
    /* APRÈS : La police s'adapte dynamiquement entre 1.1rem et 1.7rem */
    font-size: clamp(1.1rem, 1.5vw, 1.7rem); 
    
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    
    /* On réduit légèrement l'espacement pour gagner de la place */
    letter-spacing: 0.05em; 
}

/* -----------------------------------------------------------
   STYLE DES NOMS DE MARQUES & BADGES PROMO
   ----------------------------------------------------------- */
.marques-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Le conteneur Flex assure que le nom et le badge ne se superposent pas */
.marques-col li {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Empêche le chevauchement si l'écran est trop étroit */
    gap: 12px;
    width: 100%;
    margin-bottom: 1.2rem;
    break-inside: avoid;
}

/* --- LE NOM DE LA MARQUE --- */
.brand-name-wrapper {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.marques-col li:hover .brand-name-wrapper {
    transform: translateX(8px);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.marques-col li:hover .brand-link {
    color: var(--color-accent);
}

/* --- LE BADGE DYNAMIQUE --- */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(212, 175, 55, 0.05); /* Fond très léger par défaut */
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Petit point vert/or qui clignote doucement pour attirer l'œil */
.promo-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Effet au survol du badge spécifiquement */
.promo-badge:hover {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}
.promo-badge:hover .promo-pulse {
    background-color: #000;
}

/* Style de repli si une colonne est vide */
.marques-col li.empty-col {
    font-size: 1rem;
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE (MOBILES & TABLETTES)
   ========================================================================== */
@media (max-width: 950px) {
    .marques-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .marques-col h2 {
        text-align: center;
    }
    
    .marques-col li {
        justify-content: center;
        text-align: center;
    }

    .marques-col li:hover .brand-name-wrapper {
        transform: scale(1.05); /* On zoom au lieu de glisser sur mobile */
    }
}