/* ============================================================
   PF2026 — Front page (bento + guides + passlord + community + news)
   Source : Pokemon-France.com Redesign/index.html
   ============================================================ */

/* ---------- Hero bento ---------- */
.hero { padding: 32px 0 0; }
.bento {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    grid-template-rows: 260px 220px;
    gap: 14px;
}

.bento-main {
    grid-row: 1 / 3;
    background: #0B0B1E;
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
    text-decoration: none;
}
.bento-main:hover { transform: scale(1.008); }
/* Image d'illustration : couvre tout le conteneur (style article-cover) */
.bento-main-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    pointer-events: none;
}
.bento-main-bg {
    position: absolute;
    inset: 0;
    background:
        /* Overlay gradient pour la lisibilité du texte (assombri à gauche, transparent à droite) */
        linear-gradient(90deg, rgba(11, 11, 30, .92) 0%, rgba(11, 11, 30, .65) 45%, rgba(11, 11, 30, .15) 100%),
        /* Fallback dégradé si pas d'image — même esprit que article-cover */
        linear-gradient(135deg, #0B0B1E 0%, #1A1040 100%);
}
.bento-main-content {
    position: relative;
    z-index: 2;
    max-width: 62%;
}
.bento-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    background: rgba(255, 203, 5, .15);
    border: 1px solid rgba(255, 203, 5, .3);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 14px;
}
.bento-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
}
.bento-main h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.bento-main p {
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 22px;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* Pokédex spotlight */
.bento-dex {
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1);
    text-decoration: none;
}
.bento-dex:hover { transform: scale(1.02); }
.bento-dex-art {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-55%);
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .2));
    transition: transform .3s ease;
}
.bento-dex:hover .bento-dex-art {
    transform: translateY(-62%) scale(1.08) rotate(-3deg);
}
.bento-dex-content { position: relative; z-index: 2; }
.bento-dex-num {
    font-size: 11px;
    font-weight: 700;
    opacity: .65;
    letter-spacing: .05em;
    margin-bottom: 2px;
}
.bento-dex-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}
.bento-dex-types {
    display: flex;
    gap: 5px;
    margin-bottom: 14px;
}
.bento-dex-link {
    font-size: 12px;
    font-weight: 700;
    opacity: .8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* JCC card */
.bento-jcc {
    background: linear-gradient(135deg, #8B0000 0%, #CC0000 60%, #E53935 100%);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1);
    text-decoration: none;
}
.bento-jcc:hover { transform: scale(1.02); }
.bento-jcc-art {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(8deg);
    width: 90px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .3s ease;
}
.bento-jcc:hover .bento-jcc-art {
    transform: translateY(-55%) rotate(4deg) scale(1.05);
}
.bento-jcc-content { position: relative; z-index: 2; }
.bento-jcc-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 4px;
}
.bento-jcc h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -.02em;
    margin-bottom: 10px;
}

/* ---------- Guides section ---------- */
.guides { padding: 64px 0 0; }

/* ---------- Passlord banner ---------- */
.passlord-banner {
    margin: 0;
    background: linear-gradient(135deg, #1A1040 0%, #2D1B69 50%, #1E3A5F 100%);
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.passlord-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' stroke='rgba(255,255,255,0.04)' fill='none' stroke-width='1'/%3E%3Cline x1='2' y1='30' x2='58' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='8' stroke='rgba(255,255,255,0.06)' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.passlord-banner-content { flex: 1; position: relative; z-index: 1; }
.passlord-banner-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 8px;
}
.passlord-banner h2 {
    font-size: 30px;
    font-weight: 700;
    color: white;
    letter-spacing: -.04em;
    margin-bottom: 10px;
    line-height: 1.15;
}
.passlord-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    max-width: 400px;
    line-height: 1.6;
}
.passlord-banner-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}
.passlord-banner-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.passlord-stat { text-align: center; }
.passlord-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: -.04em;
}
.passlord-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
    font-weight: 500;
}

/* ---------- Community widgets ---------- */
.community { padding: 64px 0 0; }
.community-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
}
.community-widget {
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 24px;
    overflow: hidden;
}
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.widget-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-light);
}
.widget-link:hover { color: var(--ink); }

/* TopTeams */
.team-row {
    padding: 12px;
    background: var(--cream);
    border-radius: var(--r-sm);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s;
}
.team-row:hover { background: var(--border-light); }
.team-sprites {
    display: flex;
    gap: 2px;
    flex: 1;
}
.team-sprite {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.team-info {
    flex: 0 0 auto;
    text-align: right;
}
.team-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}
.team-format {
    font-size: 11px;
    color: var(--ink-light);
}
.team-score {
    font-size: 12px;
    font-weight: 700;
    color: var(--yellow-dark);
}

/* FanFics */
.fanfic-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fanfic-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.fanfic-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fanfic-genre {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-light);
}
.fanfic-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--r-full);
}
.status-ongoing { background: #FEF3C7; color: #92400E; }
.status-done    { background: #D1FAE5; color: #065F46; }
.fanfic-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}
.fanfic-author {
    font-size: 12px;
    color: var(--ink-light);
}
.fanfic-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--yellow-dark);
    font-weight: 600;
}

/* ---------- News (relégué en bas) ---------- */
.news { padding: 64px 0 0; }
.news-header-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-faint);
    margin-bottom: 4px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.news-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.news-card-thumb {
    aspect-ratio: 16/10;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--cream);
}
.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.news-card:hover .news-card-thumb img {
    transform: scale(1.05);
}
.news-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-light);
    margin-top: 6px;
}
.news-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}
.news-card-date {
    font-size: 12px;
    color: var(--ink-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-main { grid-row: auto; min-height: 320px; }
    .bento-main h2 { font-size: 26px; }
    .bento-main-content { max-width: 70%; }
    .community-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .passlord-banner { flex-direction: column; gap: 24px; padding: 28px; }
    .passlord-banner-stats { flex-direction: row; justify-content: space-around; width: 100%; }
}

/* ============================================================
   Home — Blocs JCC (extensions récentes + cartes à découvrir)
   ============================================================ */

.tcg-home-block {
    padding: 56px 0;
}
.tcg-home-block + .tcg-home-block {
    padding-top: 0;
}

/* ---- Bloc 1 : extensions récentes ---- */
.tcg-extensions-grid--home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .tcg-extensions-grid--home { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .tcg-extensions-grid--home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
    .tcg-extensions-grid--home { grid-template-columns: 1fr; }
}

/* ---- Bloc 2 : cartes à découvrir ---- */
.tcg-home-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .tcg-home-cards-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .tcg-home-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .tcg-home-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.tcg-home-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, border-color .25s;
}
.tcg-home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.tcg-home-card-art {
    aspect-ratio: 2.5 / 3.5;
    background: #0D0D1C;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tcg-home-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tcg-home-card-placeholder {
    font-size: 38px;
    color: rgba(255, 255, 255, .35);
}
.tcg-home-card-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tcg-home-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tcg-home-card-set {
    font-size: 11px;
    color: var(--ink-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tcg-home-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 6px;
}
.tcg-home-card-rarity {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 7px;
    background: linear-gradient(135deg, #FCD34D, #F472B6);
    color: white;
    border-radius: var(--r-full);
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
.tcg-home-card-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    flex: 0 0 auto;
}
