/*
 Theme Name:   Kadence Child
 Template:     kadence
 Version:      1.8.0 (Bouton Retour et Badges Single Intégrés)
*/

/* ==========================================================================
   1. CONFIGURATION GÉNÉRALE & TYPOGRAPHIE
   ========================================================================== */
body {
    background-color: #0a0a0a !important;
    color: #e0e0e0;
}

.livre-wrapper, .archive-wrapper {
    background-color: #111;
    color: white;
    font-family: sans-serif;
}

a { color: white; text-decoration: none; }

/* Polices élégantes (Titres) */
.livre-title, .archive-header h1 {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 400;
}

/* Polices "Tech" (H1-H6, Boutons, Menu) */
h1, h2, h3, h4, h5, h6, 
.hero-title, .card-title, .livre-title, 
.btn, .button, .wp-block-button__link,
.main-navigation a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    letter-spacing: -0.5px;
    font-weight: 700;
}

/* Polices "Livre" (Paragraphes) */
body, p, li, 
.hero-desc, .livre-desc, .entry-content {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: justify !important;
    -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto;
}

/* Icones & Badges */
.icon-bw {
    filter: grayscale(100%); margin-right: 8px; font-size: 1.2rem; vertical-align: middle;
}

.badge-new {
    background-color: #E62117; color: white; font-size: 0.6em; vertical-align: middle;
    padding: 3px 8px; border-radius: 4px; text-transform: uppercase; font-family: sans-serif;
    letter-spacing: 1px; margin-right: 15px; position: relative; top: -3px;
}

/* ==========================================================================
   2. HEADER & MENU
   ========================================================================== */
.site-header, .site-main-header-wrap {
    background-color: #0a0a0a !important; border-bottom: 1px solid #333; z-index: 999;
}

.site-branding a, .site-title a {
    color: #E62117 !important; font-family: 'Impact', sans-serif !important;
    font-size: 1.8rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
}

.main-navigation a {
    color: #ffffff !important; font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease;
}
.main-navigation a:hover { color: #E62117 !important; }

/* ==========================================================================
   3. PAGE D'ACCUEIL (HERO)
   ========================================================================== */
.home-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; color: white; }
.home-section { margin-bottom: 80px; }
.section-title {
    font-family: "Georgia", serif; font-size: 2rem; color: white; margin-bottom: 30px;
    border-left: 4px solid #E62117; padding-left: 15px;
}

/* Hero Section */
.hero-section {
    position: relative; height: 75vh; background-size: cover; background-position: top center;
    display: flex; align-items: center; margin-top: -20px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.4) 100%); z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 600px; padding-left: 5%; color: white; text-align: left;
}
.hero-label {
    background: #E62117; color: white; font-weight: bold; padding: 5px 12px;
    text-transform: uppercase; font-size: 0.8rem; border-radius: 4px; display: inline-block; margin-bottom: 20px;
}
.hero-title {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8); font-family: "Georgia", serif; color: white;
}
.hero-desc {
    font-size: 1.1rem; color: #ccc; margin-bottom: 30px; line-height: 1.6; max-width: 500px;
}
.hero-actions { display: flex; gap: 15px; }

/* Boutons Hero */
.btn-hero-play {
    background: #E62117; color: white; padding: 12px 30px; border-radius: 4px; font-weight: bold;
    text-decoration: none; transition: transform 0.2s; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px;
}
.btn-hero-play:hover { transform: scale(1.05); background: #ff3333; color: white; }
.btn-hero-play .icon-bw { filter: brightness(0) invert(1); }

.btn-hero-info {
    background: rgba(109, 109, 110, 0.7); color: white; padding: 12px 30px; border-radius: 4px;
    font-weight: bold; text-decoration: none; backdrop-filter: blur(5px);
}
.btn-hero-info:hover { background: rgba(109, 109, 110, 0.9); }

.btn-see-all {
    display: inline-block; border: 1px solid #555; color: #aaa; padding: 12px 30px; border-radius: 30px;
    text-decoration: none; transition: all 0.3s; text-transform: uppercase; font-size: 0.8rem;
}
.btn-see-all:hover { border-color: white; color: white; }

/* Slider */
.hero-slider-container {
    position: relative; height: 75vh; width: 100%; overflow: hidden; margin-top: -20px; background-color: #000;
}
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: top center; display: flex; align-items: center;
    opacity: 0; transition: opacity 1s ease-in-out; z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.slider-dots {
    position: absolute; bottom: 20px; width: 100%; text-align: center; z-index: 10;
}
.dot {
    cursor: pointer; height: 10px; width: 10px; margin: 0 5px; background-color: rgba(255,255,255,0.5);
    border-radius: 50%; display: inline-block; transition: background-color 0.3s;
}
.dot.active, .dot:hover { background-color: #E62117; }

/* ==========================================================================
   4. PAGE FICHE LIVRE (SINGLE CLASSIC)
   ========================================================================== */
.livre-wrapper {
    position: relative; min-height: 85vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 40px 0;
}
.livre-background {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center;
    filter: blur(25px); opacity: 0.6; z-index: 0; transform: scale(1.1);
}
.livre-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9)); z-index: 1;
}
.content-container { position: relative; z-index: 10; width: 100%; max-width: 1200px; padding: 0 20px; }
.livre-grid { display: grid; grid-template-columns: 350px 1fr; gap: 60px; align-items: center; }

.the-poster {
    width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1); display: block;
}

.livre-title {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 10px; color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); text-align: center !important;
}
.livre-subtitle {
    font-family: "Georgia", serif; font-size: 1.3rem; color: #ccc; margin-bottom: 25px;
    font-style: italic; font-weight: 400; text-align: center !important;
}
.livre-desc {
    color: #e0e0e0; font-size: 1.1rem; line-height: 1.6; margin-bottom: 40px;
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.livre-meta-data {
    display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; color: #e0e0e0;
    justify-content: center !important;
}
.meta-item strong { color: white; }

.livre-actions { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center !important; }

/* Boutons Actions */
.btn-action {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; margin-right: 10px; margin-bottom: 10px; border-radius: 6px;
    text-decoration: none !important; font-weight: bold; font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease; border: none; cursor: pointer; line-height: 1.2;
}
.btn-action span { margin-right: 8px; font-size: 1.2em; }
.btn-action:active { transform: scale(0.98); }

.btn-youtube { background-color: #FF0000; color: #fff !important; border: 2px solid #FF0000; }
.btn-youtube:hover { background-color: #cc0000; box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3); transform: translateY(-3px); }

.btn-read { background-color: #d4af37; color: #000 !important; }
.btn-read:hover { background-color: #f5cf55; box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4); }

.btn-source { background-color: transparent; border: 1px solid #666; color: #ccc !important; font-size: 0.9rem; padding: 10px 18px; }
.btn-source:hover { border-color: #fff; color: #fff !important; background-color: rgba(255, 255, 255, 0.1); }

.btn-dl, .btn-audio {
    background-color: rgba(255, 255, 255, 0.1); color: white; border: 2px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(5px);
}
.btn-dl:hover, .btn-audio:hover {
    background-color: white; color: black; border-color: white; transform: translateY(-3px);
}
.livre-actions-wrapper { display: flex; flex-direction: column; gap: 20px; }
.livre-buttons { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }

/* ==========================================================================
   5. CATALOGUE (ARCHIVE)
   ========================================================================== */
.archive-wrapper { min-height: 100vh; padding: 80px 20px; }
.archive-header, .page-header, .taxonomy-description, .archive-description {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    text-align: center !important; width: 100% !important; margin-bottom: 60px;
}
.archive-description p, .taxonomy-description p, .page-header p {
    text-align: center !important; max-width: 800px !important; margin-left: auto !important; margin-right: auto !important;
}
.archive-header h1 { font-size: 3rem; color: white; margin-bottom: 10px; }
.archive-subtitle { color: #999; font-size: 1.2rem; font-style: italic; }

.archive-grid {
    display: grid; max-width: 1200px; margin: 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px;
}
.book-card {
    text-decoration: none; color: white; display: flex; flex-direction: column; transition: transform 0.3s ease;
}
.book-card:hover { transform: translateY(-10px); }
.card-image {
    position: relative; border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); aspect-ratio: 2/3; background: #222;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.book-card:hover .card-image img { transform: scale(1.05); }
.card-genre-badge {
    position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: #ddd;
    font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; backdrop-filter: blur(4px); text-transform: uppercase;
}
.card-info { padding-top: 15px; text-align: center; }
.card-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 5px 0; color: #e0e0e0; line-height: 1.3; }
.card-author { font-size: 0.9rem; color: #888; font-style: italic; }
.book-card:hover .card-title { color: white; }

/* ==========================================================================
   6. COMPOSANTS (RECHERCHE, AUDIO, BOUTONS)
   ========================================================================== */
.btn-back {
    position: absolute; top: 30px; left: 30px; z-index: 100;
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem;
    background: rgba(0,0,0,0.5); padding: 8px 15px; border-radius: 30px;
    transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.btn-back:hover { color: white; background: rgba(0,0,0,0.8); transform: translateX(-5px); }

.related-section { background-color: #0a0a0a; padding: 60px 20px; border-top: 1px solid #222; }
.related-container { max-width: 1200px; margin: 0 auto; }
.related-title {
    color: white; font-family: "Georgia", serif; font-size: 1.8rem;
    margin-bottom: 30px; padding-left: 10px; border-left: 3px solid #E62117;
}
.related-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.audio-player-box {
    background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1); max-width: 500px;
}
.audio-label {
    display: block; color: #bbb; font-size: 0.9rem; margin-bottom: 8px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.custom-audio-player { width: 100%; height: 40px; outline: none; filter: invert(0.9) hue-rotate(180deg); }

.library-search-box { margin-top: 30px; display: flex; justify-content: center; width: 100%; padding: 0 10px; }
.search-form {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; padding: 5px; width: 100%; max-width: 600px;
}
.search-field {
    flex-grow: 1 !important; width: auto !important; min-width: 50px !important;
    background: transparent !important; border: none !important; color: white !important;
    padding: 10px 15px !important; font-size: 1rem !important; outline: none !important; box-shadow: none !important;
}
.search-field::placeholder { color: rgba(255, 255, 255, 0.6) !important; }
.search-submit {
    display: block !important; visibility: visible !important; opacity: 1 !important; flex-shrink: 0 !important; width: auto !important;
    background-color: #E62117 !important; color: white !important; border: none !important;
    padding: 10px 25px !important; border-radius: 50px !important; font-weight: bold !important;
    text-transform: uppercase !important; font-size: 0.85rem !important; cursor: pointer !important; margin-left: 5px !important;
}
.search-submit:hover { background-color: white !important; color: #E62117 !important; }

html { scroll-behavior: smooth; }
.btn-scroll-top {
    position: fixed; bottom: 30px; right: 30px; background-color: #E62117; color: white;
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 999; transition: transform 0.3s, background 0.3s; opacity: 0.8;
}
.btn-scroll-top:hover { background-color: white; color: #E62117; transform: translateY(-5px); opacity: 1; }

.site-footer { background-color: #000000 !important; border-top: 1px solid #222; margin: 0 !important; padding: 0 !important; }
.site-bottom-footer-wrap, .site-footer-row-container-inner, .site-container {
    padding-top: 10px !important; padding-bottom: 10px !important; min-height: 0 !important;
}
.site-footer, .site-footer p, .site-footer a {
    color: #b0b0b0 !important; font-size: 0.75rem; line-height: 1; margin: 0 !important; text-decoration: none;
}
.site-footer a:hover { color: #E62117 !important; }
.site-bottom-footer-inner-wrap { display: flex; justify-content: center; align-items: center; }


/* ########################################################################## */
/* ####################### ZONE MEDIA QUERIES (MOBILE) ###################### */
/* ########################################################################## */

/* --- TABLETTES ET PETITS ECRANS (Max 900px) --- */
@media (max-width: 900px) {
    .livre-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .the-poster { max-width: 250px; margin: 0 auto; display: block; }
    
    .livre-info {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .livre-title { font-size: 2.2rem; text-align: center; }
    
    .livre-subtitle {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-left: auto !important; margin-right: auto !important; margin-bottom: 20px !important;
    }

    .livre-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }
    .btn-action {
        width: 100% !important;
        justify-content: center !important;
        margin-right: 0 !important;
    }

    .livre-desc { margin: 0 auto 40px auto; padding: 0 10px; }
    
    .archive-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
}

/* --- SMARTPHONES (Max 768px) --- */
@media (max-width: 768px) {
    .mobile-toggle-icon, .menu-toggle-icon, .mobile-navigation-toggle-icon { color: #ffffff !important; }

    .hero-section { height: auto; padding: 100px 20px 60px 20px; background-position: center; }
    .hero-overlay { background: rgba(0,0,0,0.75); }
    .hero-title { font-size: 2.2rem; text-align: center !important; }
    .hero-content { padding-left: 0; text-align: center; margin: 0 auto; }
    .hero-actions {
        display: flex !important; flex-direction: column !important; align-items: center !important;
        gap: 15px !important; margin-bottom: 50px !important; justify-content: center;
    }
    .btn-hero-play, .btn-hero-info { width: 80% !important; max-width: 300px; justify-content: center; }
    
    .hero-desc { display: none !important; }
    h2, h3, .section-title { text-align: left !important; }
    
    .single-librairie .meta-grille {
        grid-template-columns: 1fr !important;
    }

    .reseaux-auteur-top, .single-librairie .action-single {
        justify-content: center !important;
    }
}

/* ==========================================================================

   7. CATALOGUE & LIBRAIRIE (ARCHIVES ET SINGLES SUR-MESURE LIBRAIRIE)

   ========================================================================== */



/* --- 0. BOUTON RETOUR PREMIUM (COMMUN AUX SINGLES) --- */

.btn-retour-catalogue {

    display: inline-flex;

    align-items: center;

    background: #111111;

    color: #b0b0b0 !important;

    border: 1px solid #222222;

    padding: 8px 16px;

    border-radius: 6px;

    font-size: 0.85rem;

    font-weight: 700;

    font-family: -apple-system, BlinkMacSystemFont, sans-serif;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    box-shadow: 0 4px 6px rgba(0,0,0,0.2);

}



.btn-retour-catalogue span {

    margin-right: 6px;

    transition: transform 0.3s ease;

}



.btn-retour-catalogue:hover {

    background: #1a1a1a;

    color: #ffffff !important;

    border-color: #E62117; /* Ligne rouge d'accentuation Bibliodio */

}



.btn-retour-catalogue:hover span {

    transform: translateX(-4px); /* Petit effet de recul de la flèche ultra pro */

}



/* --- A. VITRINE GÉNÉRALE (GRILLE ARCHIVE & BLOCS HOME) --- */

.bibliodio-vitrine-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

    gap: 35px 20px;

    padding: 20px 0;

}



.bibliodio-carte {

    background: transparent;

    transition: transform 0.3s ease;

}



.bibliodio-carte a {

    text-decoration: none;

    display: block;

}



.affiche-conteneur {

    position: relative;

    width: 100%;

    aspect-ratio: 2 / 3;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    background-color: #121212;

    margin-bottom: 12px;

}



.image-affiche {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;

}



.bibliodio-carte:hover .image-affiche {

    transform: scale(1.06);

}



/* ➔ BADGES VITRINE / VIGNETTES */

.badge-averti {

    position: absolute;

    top: 10px;

    left: 10px;

    background-color: #d9534f;

    color: #ffffff;

    font-size: 0.65em;

    font-weight: 700;

    padding: 4px 8px;

    border-radius: 4px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

    z-index: 3;

}



.badge-coup-coeur-vitrine {

    position: absolute;

    top: 10px;

    right: 10px;

    background-color: #ff4757;

    color: #ffffff;

    font-size: 0.85rem;

    padding: 5px 7px;

    border-radius: 50%;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

    z-index: 3;

    line-height: 1;

}



/* ➔ BADGE 3 : Financement Participatif (Version Boostée Bleu Profond) */

.badge-participatif-vitrine {

    position: absolute;

    bottom: 14px; /* Un poil plus haut */

    left: 50%;

    transform: translateX(-50%);

    background-color: #1a365d; /* Magnifique bleu nuit profond */

    color: #ffffff;

    font-size: 0.75rem; /* Plus grand (anciennement 0.65) */

    font-weight: 800;

    padding: 6px 14px; /* Plus d'espace autour du texte */

    border-radius: 4px;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    white-space: nowrap;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

    z-index: 3;

    border: 1px solid rgba(255, 255, 255, 0.15); /* Fin liseré pour le faire ressortir sur fond sombre */

}



/* --- TYPOGRAPHIE DE LA VITRINE (Titre + Auteur) --- */

.infos-carte {

    text-align: center;

    padding-top: 5px;

}



.infos-carte .titre-livre {

    font-size: 0.9rem !important;

    font-weight: 600;

    margin: 0 0 3px 0;

    line-height: 1.3;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.infos-carte .auteur-livre {

    font-size: 0.85rem;

    color: #999999 !important;

    font-style: italic;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}





/* --- B. PAGE DÉTAIL PRODUIT (SINGLE SUR-MESURE) --- */

.bibliodio-single-produit {

    display: grid;

    grid-template-columns: 350px 1fr;

    gap: 50px;

    max-width: 1200px;

    margin: 20px auto 40px auto; /* Légèrement réduit en haut pour coller au bouton retour */

    padding: 0 20px;

    align-items: start;

}



.colonne-visuel {

    position: relative;

}



.visuel-sticky {

    position: sticky;

    top: 100px; 

}



.image-single-conteneur {

    position: relative;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    background-color: #121212;

    display: block;

}



.image-single {

    width: 100%;

    height: auto;

    display: block;

    object-fit: cover;

    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;

}



.image-single-conteneur:hover .image-single {

    transform: scale(1.05);

    filter: brightness(1.1) contrast(1.05);

}



/* ➔ LES 3 BADGES DIRECTEMENT SUR L'AFFICHE SINGLE (PROTECTION DES CONFLITS) */

.badge-single-averti {

    position: absolute;

    top: 12px;

    left: 12px; /* Top Left comme demandé */

    background-color: #d9534f;

    color: white;

    padding: 4px 8px;

    border-radius: 4px;

    font-weight: bold;

    font-size: 0.7rem;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    z-index: 4;

    box-shadow: 0 2px 6px rgba(0,0,0,0.4);

}



/* ➔ BADGE 2 : Coup de cœur (Fiche Single) */

.badge-single-coeur {

    position: absolute;

    top: 12px;

    right: 12px; 

    background-color: #ffffff; /* Fond blanc pur */

    color: #ff4757; /* Cœur rouge */

    font-size: 1.2rem;

    padding: 6px;

    border-radius: 50%;

    z-index: 4;

    line-height: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

}



.badge-single-participatif {

    position: absolute;

    bottom: 14px;

    left: 50%;

    transform: translateX(-50%);

    background-color: #1a365d; /* Même bleu nuit profond cohérent */

    color: white;

    padding: 6px 14px;

    border-radius: 4px;

    font-weight: 800;

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    white-space: nowrap;

    z-index: 4;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.15);

}



.titre-single {

    font-size: 2.5rem;

    font-weight: 800;

    margin-bottom: 0;

    line-height: 1.2;

}



/* 1. Zone Réseaux Sociaux En Ligne sous le titre (Avec Label) */

.reseaux-auteur-top {

    margin-top: 10px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}



.texte-reseaux-auteur {

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    font-size: 0.85rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: #b0b0b0;

}



.liens-reseaux {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

}



.btn-reseau {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 34px;

    height: 34px;

    border-radius: 50%;

    background: #1a1a1a;

    color: #b0b0b0 !important;

    transition: all 0.3s ease;

}



.btn-youtube:hover { background: #ff0000; color: #fff !important; transform: translateY(-2px); }

.btn-instagram:hover { background: #e1306c; color: #fff !important; transform: translateY(-2px); }

.btn-facebook:hover { background: #1877f2; color: #fff !important; transform: translateY(-2px); }

.btn-tiktok:hover { background: #000000; color: #fff !important; transform: translateY(-2px); border: 1px solid #444; }

.btn-x:hover { background: #000000; color: #fff !important; transform: translateY(-2px); border: 1px solid #444; }



/* 2. Zone des Boutons d'Action Hautes (Optimisées Conversion) */

.single-librairie .action-single {

    margin-top: 0;

    margin-bottom: 30px;

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}



/* 3. Encadré "En Bref" (Résumé court stylisé) */

.single-librairie .resume-intro {

    background: rgba(255,255,255,0.02);

    padding: 18px;

    border-radius: 6px;

    border-left: 3px solid #E62117;

    margin-bottom: 30px;

}



/* 4. Grille des Références/Métadonnées (Forcée sur 2 colonnes) */

.single-librairie .meta-grille {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px 20px;

    border-bottom: 1px solid rgba(255,255,255,0.1);

    padding-bottom: 20px;

    margin-bottom: 25px;

}



.single-librairie .meta-grille p {

    margin-bottom: 0;

    font-size: 0.95rem;

}





/* --- C. GESTION DU TEXTE SUR FOND SOMBRE (CONTRE KADENCE) --- */

.post-type-archive-librairie .page-title,

.post-type-archive-librairie .archive-title,

.post-type-archive-librairie header.archive-header h1,

.post-type-archive-librairie .infos-carte .titre-livre,

.single-librairie .titre-single {

    color: #ffffff !important;

}



.post-type-archive-librairie .archive-description,

.post-type-archive-librairie .archive-description p,

.single-librairie .description-single,

.single-librairie .description-single p,

.single-librairie .description-single h2,

.single-librairie .description-single h3,

.single-librairie .description-single span {

    color: #e0e0e0 !important;

}



.single-librairie .meta-single,

.single-librairie .meta-grille {

    color: #b0b0b0 !important;

}

.single-librairie .meta-single strong,

.single-librairie .meta-grille strong {

    color: #ffffff !important;

}



.post-type-archive-librairie .affiche-manquante {

    color: #ffffff !important;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 15px;

    text-transform: uppercase;

    letter-spacing: 1px;

}





/* --- D. RESPONSIVE MOBILE COMPLÉMENTAIRE --- */

@media (max-width: 900px) {

    .bibliodio-single-produit {

        grid-template-columns: 1fr;

        gap: 30px;

        margin: 20px 0;

    }

    .colonne-visuel {

        max-width: 250px;

        margin: 0 auto;

    }

    .titre-single {

        font-size: 1.8rem;

        text-align: center;

    }

    .titre-container-single, .reseaux-auteur-top {

        justify-content: center !important;

    }

    .retour-catalogue-conteneur {

        text-align: center; /* Bouton retour centré sur mobile */

    }

}



@media (max-width: 768px) {

    .bibliodio-vitrine-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 20px 12px;

        padding: 10px 0;

    }

    .infos-carte .titre-livre {

        font-size: 0.85rem !important; 

    }

    .badge-averti, .badge-single-averti {

        font-size: 0.6rem;

        padding: 3px 6px;

        top: 6px;

        left: 6px;

    }

    .badge-coup-coeur-vitrine {

        font-size: 0.75rem;

        padding: 4px 6px;

        top: 6px;

        right: 6px;

    }

    .badge-single-coeur {

        font-size: 1.2rem;

        top: 6px;

        right: 6px;

    }

  .badge-participatif-vitrine, .badge-single-participatif {

        font-size: 0.65rem; /* Évite qu'il devienne trop minuscule */

        padding: 5px 10px;

        bottom: 10px;

    }

}



/* ==========================================================================

   8. INTERDIRE LA CÉSURE (COUPURE DES MOTS) SUR LES TITRES

   ========================================================================== */

.post-type-archive-librairie .infos-carte .titre-livre,

.single-librairie .titre-single {

    -webkit-hyphens: none !important;

    -ms-hyphens: none !important;

    hyphens: none !important;

    word-break: normal !important;

}



/* ==========================================================================

   9. PROTECTION CLIC DROIT (BULLE)

   ========================================================================== */

#bibliodio-protection-bulle {

    position: fixed;

    background: rgba(15, 15, 15, 0.95);

    color: #ffffff;

    border-left: 3px solid #E62117;

    padding: 10px 15px;

    border-radius: 4px;

    font-size: 0.85rem;

    font-weight: 600;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    z-index: 99999;

    pointer-events: none; /* Empêche la bulle de bloquer la souris */

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);

    opacity: 0;

    transform: scale(0.9);

    transition: opacity 0.2s ease, transform 0.2s ease;

    display: none;

}



#bibliodio-protection-bulle.visible {

    opacity: 1;

    transform: scale(1);

}