/* ==========================================================================
   1. STYLES GLOBAUX & TYPOGRAPHIE
   ========================================================================== */

body,
p,
div,
article,
section,
aside,
main,
header,
footer,
.entry-content p,
.synopsis-content-bubble,
.episode-content-final p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.fiche {
    float: left;
    width: 50%;
    padding: 5px;
    margin: 5px;
    border: 1px solid #000;
    border-width: 1px 2px 2px;
}

.archive-columns .entry-title a {
    font-size: 18px;
    color: #fff;
}

.anwp-pg-wrap,
.anwp-pg-wrap .anwp-pg-post-teaser--layout-d .anwp-pg-post-teaser__bottom-meta {
    color: #fff;
}

#secondary .widget a { color: #00dafc; }
#respond { background: transparent; }

/* Dark mode */
body.dark_skin textarea { color: #fff; }
body.dark_skin input,
body.dark_skin select { color: #000; }
body.dark_skin .widget_archive select,
body.dark_skin .widget_categories select { color: #1a1a1a; }
body.dark_skin .fbi-coulisses,
body.dark_skin .fbi-coulisses p,
body.dark_skin .fbi-coulisses li,
body.dark_skin .fbi-coulisses span,
body.dark_skin .fbi-coulisses div {
    color: #000 !important;
}

	
/* ==========================================================================
   2. NAVIGATION EPISODE
   ========================================================================== */

.ep-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    padding: 15px 25px;
    margin-bottom: 40px;
    border-radius: 4px;
    border-bottom: 3px solid #4ff9ff;
}

.ep-nav-top a {
    color: #4ff9ff;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}

.current-ep-info h1 {
    margin: 0;
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
}


/* ==========================================================================
   3. DOSSIER FBI V2 – CONTENEUR PRINCIPAL
   ========================================================================== */

.fbi-folder-v2 {
    position: relative;
    max-width: 950px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #c9ad87 url('https://www.transparenttextures.com/patterns/cardboard-flat.png');
    border: 1px solid #b3956d;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.6);
    font-family: "Courier New", Courier, monospace;
    color: #1e1e1e;
}

/* Lisibilité texte FBI */
.fbi-folder-v2 p,
.fbi-folder-v2 li,
.fbi-folder-v2 span,
.fbi-folder-v2 .val {
    color: #1f1f1f;
}


/* Liens FBI */
.fbi-folder-v2 a {
    color: #0b3c5d;
    font-weight: bold;
    text-decoration: underline;
}

.fbi-folder-v2 a:hover {
    color: #06293d;
    text-decoration: none;
}


/* Images cliquables */
.fbi-folder-v2 img {
    cursor: zoom-in;
}


/* ==========================================================================
   4. ONGLET DU DOSSIER
   ========================================================================== */

.folder-tab-v2 {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-35%);
    background: #b3956d;
    padding: 8px 26px 7px;
    border: 1px solid #9f815a;
    border-bottom: none;
    border-radius: 6px 24px 0 0;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
    z-index: 20;
    max-width: 65%;
}

.folder-tab-title {
	  letter-spacing: 1.5px;
    font-size: 12px;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1e1e1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-tab-v2::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
}

.fbi-photo-pin {
    position: relative; /* pour positionner le sticker par rapport à la photo */
}

.top-episode-badge {
    position: absolute;
    top: 10px;          /* ajuster selon ton visuel */
    right: 10px;
    background-color: #00ff00;
    color: #000;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1;          /* < paper-clip-v2 pour rester dessous */
    display: flex;
    align-items: center;
    gap: 5px;
}
.paper-clip-v2 {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;         /* toujours au-dessus du sticker */
}


/* ==========================================================================
   5. EN-TÊTE (PHOTO + INFOS)
   ========================================================================== */

.fbi-top-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 250px;
    position: relative;
}


/* Photo épinglée */
.fbi-photo-pin {
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: 120;
    transform: rotate(-3deg);
}

.fbi-photo-pin:hover {
    transform: rotate(0deg);
}

.photo-frame {
    background: #fff;
    padding: 10px 5px 5px;
    border: 1px solid #ddd;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.photo-frame img {
    max-width: 250px;
    display: block;
    filter: contrast(1.1) grayscale(0.3);
}

.photo-id {
    margin-top: 10px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #333;
}


/* Trombone */
.paper-clip-v2 {
    position: absolute;
    top: -15px;
    left: 50%;
    width: 30px;
    height: 50px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 11;
}

.paper-clip-v2::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 38px;
    border: 3px solid #999;
    border-radius: 12px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}


/* ==========================================================================
   6. DONNÉES ADMINISTRATIVES
   ========================================================================== */

.fbi-administrative-data {
    flex-grow: 1;
    margin-left: 260px;
}

.fbi-main-title {
    margin: 0 0 5px;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -1px;
}

.fbi-sub-title {
    margin-bottom: 20px;
    padding-bottom: 5px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 3px double #000;
}

.fbi-grid-info {
    font-size: 13px;
    line-height: 1.2;
}

.info-row {
    margin-bottom: 5px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tag {
    width: 120px;
    font-weight: 900;
    text-transform: uppercase;
}
.mr-shortcode .score-result {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

/* ==========================================================================
   7. CONTENU DU DOSSIER
   ========================================================================== */

.fbi-divider {
    margin: 30px 0;
    border: 0;
    border-top: 2px solid #000;
}

.fbi-label {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: underline;
}

.fbi-text-block {
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

.fbi-coulisses {
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border: 1px dashed rgba(0,0,0,0.2);
	
}

.fbi-footer-v2 {
    margin-top: 50px;
    padding-top: 10px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 3px;
    border-top: 2px solid #000;
    opacity: 0.8;
}
/* Synopsis et coulisses : police normale, pas machine à écrire */
.fbi-text-block,
.fbi-coulisses {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   GUDIE DES EPISODES
   ========================================================================== */

.wpupg-grid-filters {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.wpupg-choices {
  background: #0b0f14;
  border: 2px solid #3a4552;
  border-radius: 12px;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpupg-choices__inner {
  background: transparent;
  color: #000;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
}

.wpupg-choices__placeholder {
  color: #000;
  opacity: 1;
}
.wpupg-choices.is-focused,
.wpupg-choices:hover {
  border-color: #00ff9c;
  box-shadow: 0 0 0 3px rgba(0,255,156,0.35);
}
.wpupg-choices__list--dropdown {
  background: #000;
  border: 2px solid #00ff9c;
  border-radius: 12px;
  overflow: hidden;
}

.wpupg-choices__item {

  color: #000;
  font-size: 14px;
}

.wpupg-choices__item--selectable.is-highlighted {
  background: #000;
  color: #00ff9c;
}
.wpupg-choices[data-type*=select-one]::after {
  border-color: #00ff9c transparent transparent transparent;
  border-width: 7px;
}
.wpupg-choices:not(.is-disabled) .wpupg-choices__placeholder {
  color: #000 !important;
  opacity: 1 !important;
  font-style: normal;
}

.wpupg-item {
  position: relative;
}

.wpupg-item img {
  border-radius: 10px;
  transition: box-shadow 0.2s ease;
}
.rating-elite img {
  box-shadow:
    0 0 0 4px #00ff9c,
    0 0 14px rgba(0, 255, 156, 0.6);
}
.rating-good img {
  box-shadow: 0 0 0 3px #4dffb5;
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */

@media (max-width: 850px) {
    .fbi-photo-pin {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto 30px;
        transform: none;
    }

    .fbi-administrative-data {
        margin-left: 0;
    }

    .fbi-top-section {
        flex-direction: column;
        align-items: center;
    }

    .fbi-main-title,
    .fbi-sub-title {
        text-align: center;
    }

    .fbi-main-title {
        font-size: 24px;
    }
	
	    .paper-clip-v2 {
        display: none;
    }
}




/* Séparation entre les articles */
.articles-grid .wp-block-post {
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

/* Supprime le trait sur la dernière ligne */
.articles-grid .wp-block-post:nth-last-child(-n+3) {
    border-bottom: none;
}

/* Petit espace entre les colonnes */
.articles-grid {
    gap: 30px;
}

/* =========================================================
   TRADING CARDS - MENU PRINCIPAL
   ========================================================= */

.trading-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 30px 0 45px;
}

.trading-nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 16px 18px;

    background: #111;
    color: #fff !important;

    border-radius: 8px;
    text-decoration: none !important;

    transition: transform .2s ease, background .2s ease;
}

.trading-nav a:hover {
    background: #222;
    transform: translateY(-2px);
}

.trading-nav strong {
    font-size: 16px;
    line-height: 1.2;
}

.trading-nav span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
}


/* =========================================================
   TRADING CARDS - TITRES ÉDITEURS
   ========================================================= */

.trading-section-title {
    margin: 60px 0 30px;
    padding: 18px 20px;

    background: #111;
    color: #fff;

    border-left: 5px solid #d60000;

    font-size: 26px;
    line-height: 1.15;

    scroll-margin-top: 100px;
}

.trading-section-title span {
    display: block;

    margin-top: 5px;

    color: #aaa;

    font-size: 14px;
    font-weight: 400;
}


/* =========================================================
   TRADING CARDS - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .trading-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 20px 0 30px;
    }

    .trading-nav a {
        padding: 13px 14px;
    }

    .trading-nav strong {
        font-size: 14px;
    }

    .trading-nav span {
        font-size: 11px;
    }

    .trading-section-title {
        margin-top: 45px;
        padding: 14px 16px;
        font-size: 21px;
    }
}
/* =========================================================
   TRADING CARDS - SOUS-MENU COLLECTIONS
   ========================================================= */

.trading-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -12px 0 30px;
}

.trading-subnav a {
    padding: 8px 12px;

    background: #f1f1f1;
    border-radius: 5px;

    color: #333 !important;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 600;

    transition: background .2s ease;
}

.trading-subnav a:hover {
    background: #ddd;
}


/* MOBILE */

@media (max-width: 700px) {

    .trading-subnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 7px;

        padding-bottom: 10px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .trading-subnav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.trading-section-title,
h4[id^="topps-"],
h4[id^="inkworks-"] {
    scroll-margin-top: 100px;
}

/* =========================================================
   BANNIERE LVEI - DEBORDEMENT SUR LE MENU
   ========================================================= */

.logo-ads-wrapper {
    padding: 0 !important;
    height: 185px;
    position: relative;
    overflow: visible !important;
    z-index: 20;
}

/* On autorise le PNG à sortir de son cadre */
.logo-ads-wrapper .mgs-container,
.logo-ads-wrapper .row {
    overflow: visible !important;
}

/* Le menu reste derrière la bannière */
#site-navigation,
.main-navigation {
    position: relative;
    z-index: 10;
}
/* ========================================================================== */
/* LVEI MODERN V9 — intégration du header moderne + sidebar                  */
/* ========================================================================== */
body.lvei-episode-page {
    background:#02060b;
    color:#fff;
    font-family:'Poppins',Arial,sans-serif;
}
.lvei-episode-modern-main {
    padding:38px 0 70px;
    background:radial-gradient(circle at 50% 0,rgba(22,140,255,.08),transparent 34%);
}
.lvei-episode-modern-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:28px;
    align-items:start;
}
.lvei-episode-modern-primary { min-width:0; }
.lvei-episode-modern-layout .lvei-inner-sidebar {
    position:sticky;
    top:18px;
    min-width:0;
}
.lvei-episode-modern-layout .lvei-ranking {
    border:2px solid #168cff;
    background:#070d13;
}
.lvei-episode-modern-layout .lvei-ranking-head {
    border-bottom:2px solid #168cff;
}
.lvei-episode-modern-layout .lvei-ranking-head h2,
.lvei-episode-modern-layout .lvei-ranking-head p,
.lvei-episode-modern-layout .lvei-rank-info strong { color:#fff !important; }
.lvei-episode-modern-layout .lvei-rank-number,
.lvei-episode-modern-layout .lvei-rank-score b { color:#65b7ff; }
.lvei-episode-modern-layout .lvei-ranking-list li { border-bottom:1px solid #174b77; }
.lvei-episode-modern-layout .fbi-folder-v2 { width:auto; max-width:950px; }

@media (max-width:1050px) {
    .lvei-episode-modern-layout { grid-template-columns:minmax(0,1fr) 280px; gap:20px; }
}
@media (max-width:920px) {
    .lvei-episode-modern-layout { grid-template-columns:1fr; }
    .lvei-episode-modern-layout .lvei-inner-sidebar {
        position:static;
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:18px;
    }
}
@media (max-width:650px) {
    .lvei-episode-modern-main { padding:24px 0 45px; }
    .lvei-episode-modern-layout .lvei-inner-sidebar { grid-template-columns:1fr; }
    .ep-nav-top { padding:12px 10px; gap:8px; margin-bottom:38px; }
    .ep-nav-top a { font-size:11px; }
    .current-ep-info h1 { font-size:12px; text-align:center; }
}
