﻿
 /* ============================================================
   STRUCTURE COMMUNE AUX BANNIÈRES (HOME & SOUS-SECTIONS)
   ============================================================ */

/* 1. Animation de zoom lent (Respiration) */
@keyframes breathing-zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); } /* Zoom légèrement réduit pour la stabilité */
    100% { transform: scale(1); }
}

.badge-new {
    background: var(--accent-solid,#dc5300);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 10px;
}

.banner-excerpt {
    font-size: 1.2rem;
    color: #cedde2;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.banner-peps {
    position: relative;
    overflow: hidden; /* Emprisonne le zoom à l'intérieur */
    background-color: #000; /* Fond de secours */
    color: #fff;
    display: flex;
    align-items: center;
    border-radius: 12px; /* Pour l'intégrer proprement dans le flux */

}

/* 2. L'image de fond animée (Héritage Dynamique) */
.banner-peps::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* --- LA MAGIE EST ICI --- */
    background-image: inherit; /* Récupère l'image injectée par PHP */
    background-size: cover; /* L'image couvre tout sans se répéter */
    background-position: center; /* Centrée */
    background-repeat: no-repeat; /* Sécurité anti-répétition */
    
    z-index: 0;
    animation: breathing-zoom 25s ease-in-out infinite; /* Très lent et zen */
}

/* 3. Le voile noir dégradé (Overlay commun) */
.banner-overlay {
    position: relative;
    z-index: 1; /* Par-dessus l'image */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.6) 50%, 
        rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
}

/* 4. Contenu commun (Titres, Boutons) */
.banner-content {
    padding: 0 40px;
    max-width: 800px;
}

.banner-title h2 {
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #fff;
    color: #333 !important;
}

.banner-meta {
    font-size: 0.95rem;
    color: #cedde2;
    margin-top: 15px;
    display: flex;
    align-items: center;
	line-height: 1.4;
    flex-wrap: wrap; /* Évite les bugs sur petit mobile */
}

.meta-sep {
    margin: 0 12px;
    color: #dc5300; /* Le petit trait orange qui fait pro */
    font-weight: bold;
}

.banner-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #dc5300; /* Souligné orange discret */
    transition: all 0.3s ease;
}

.banner-link:hover {
    color: #dc5300 !important;
    padding-left: 5px; /* Petit effet de glissement au survol */
}

/* ============================================================
   DÉLINAISON SPÉCIFIQUE (HOME vs SOUS-SECTION)
   ============================================================ */

/* --- A. GRANDE BANNIÈRE (HOME) --- */
#banner-home {
    min-height: 500px;
	margin-bottom: 20px;
}
#banner-home .banner-title h2 {
    font-size: 3rem;
}

/* --- B. BANNIÈRE DE SOUS-SECTION (Compacte) --- */
.banner-sub {
    min-height: 350px; /* Plus courte pour les catégories */
}
.banner-sub .banner-title h2 {
    font-size: 2rem;
}
.banner-sub .banner-overlay {
    padding: 40px 0;
}

.description-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary,#666);
}

/* Conteneur principal */
#table-of-contents {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 5px solid #dc5300;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#table-of-contents span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#toggle-toc {
    background: #333;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#toggle-toc:hover { background: #dc5300; }

/* CONTENU : OUVERT PAR DÉFAUT */
.toc-content {
    overflow: hidden;
    max-height: 5000px; /* Très haut pour ne rien couper */
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.4s;
    margin-top: 20px;
}

/* ÉTAT FERMÉ (Ajouté par JS) */
#table-of-contents.closed .toc-content {
    max-height: 0 !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Grille de Tags */
.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.genre-tag {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-surface,#ffffff);
    color: var(--text-price,#000000) !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}

.genre-tag:hover {
    background: #dc5300;
    color: #ffffff !important;
}

.genre-tag::after {
    content: attr(data-label-suffix);
    margin-left: 6px;
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.6;
}

 