/* ==========================================================================
   poker.css — Poker
   Thème : tapis vert de casino, cartes rouge/noir, doré Vegas
   ========================================================================== */

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Playfair Display', 'Bodoni Moda', Georgia, serif;
    line-height: 1.7;
    color: #f5f5f0;
    background: #0d4d2c;
    background-image:
        radial-gradient(ellipse at center, #186040 0%, #0a3d22 100%),
        repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,.05) 4px 5px);
    min-height: 100vh;
}

.poker-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #e8c878;
    text-decoration: none;
    font-size: 0.95em;
    border-bottom: 1px solid #e8c878;
}

/* HERO ====================================================================== */
.poker-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2017 50%, #1a1a1a 100%);
    color: #e8c878;
    padding: 55px 30px;
    text-align: center;
    border: 4px solid #e8c878;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.6), inset 0 0 60px rgba(232,200,120,.1);
    position: relative;
    overflow: hidden;
}

.poker-hero::before {
    /* Petit motif de cartes en filigrane */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(232,200,120,.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(232,200,120,.08) 0%, transparent 30%);
}

.poker-hero h1 {
    font-size: 4em;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 14px;
    text-shadow: 3px 3px 6px rgba(0,0,0,.7);
    position: relative;
}

.poker-hero .suits {
    font-size: 2.5em;
    letter-spacing: 0.4em;
    position: relative;
    margin-bottom: 14px;
}

.poker-hero .red { color: #c0392b; }
.poker-hero .black { color: #f5f5f0; }

.poker-hero .tagline {
    font-style: italic;
    font-size: 1.2em;
    color: #f5f5f0;
    position: relative;
    opacity: .85;
}

/* SECTIONS ================================================================== */
.section {
    background: rgba(20, 60, 38, 0.85);
    margin-bottom: 26px;
    padding: 32px 38px;
    border-radius: 8px;
    border: 1px solid #e8c878;
    box-shadow: 0 6px 16px rgba(0,0,0,.4);
    backdrop-filter: blur(2px);
}

.section h2 {
    font-size: 2em;
    color: #e8c878;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8c878;
    letter-spacing: 2px;
}

.section h3 {
    color: #f5d896;
    font-size: 1.35em;
    margin-top: 22px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section p { margin-bottom: 12px; }
.section ul, .section ol { margin: 10px 0 14px 28px; }
.section li { margin-bottom: 6px; }

.section strong { color: #f5d896; }

/* CARTES À JOUER =========================================================== */
.cards-row {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    width: 70px;
    height: 100px;
    background: #fefefe;
    border-radius: 8px;
    border: 1px solid #888;
    box-shadow: 2px 4px 8px rgba(0,0,0,.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 8px;
    color: #1a1a1a;
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    position: relative;
}
.card.red-card { color: #c0392b; }
.card .rank { font-size: 1.3em; line-height: 1; }
.card .suit-big {
    font-size: 2em;
    text-align: center;
    line-height: 1;
}
.card .rank-bot {
    font-size: 1.1em;
    text-align: right;
    transform: rotate(180deg);
    line-height: 1;
}

/* CLASSEMENT MAINS ========================================================= */
.hands-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
}
.hand {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 16px;
    background: rgba(0,0,0,.35);
    border-left: 4px solid #e8c878;
    padding: 14px 18px;
    border-radius: 4px;
}
.hand .rank-num {
    font-size: 2em;
    color: #e8c878;
    font-weight: 900;
    text-align: center;
}
.hand .name { font-weight: 700; font-size: 1.15em; color: #f5d896; }
.hand .desc { font-size: 0.9em; color: #d0d0c0; }
.hand .proba { font-size: 0.85em; color: #a8c4a8; font-style: italic; }

/* TABLE ===================================================================== */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}
.section th {
    background: #1a1a1a;
    color: #e8c878;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #e8c878;
}
.section td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(232,200,120,.2);
}
.section tr:nth-child(even) td { background: rgba(0,0,0,.2); }

/* JETONS DÉCORATIFS ======================================================== */
.chip {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px dashed #fff;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 1px 2px 4px rgba(0,0,0,.4);
}
.chip-1 { background: #fff; border-color: #1a1a1a; color: #1a1a1a; }
.chip-5 { background: #c0392b; }
.chip-25 { background: #1fb25a; }
.chip-100 { background: #1a1a1a; }
.chip-500 { background: #6b3a8a; }

/* ENCARTS =================================================================== */
.warning {
    background: rgba(192, 57, 43, .25);
    border-left: 4px solid #c0392b;
    padding: 14px 18px;
    margin: 14px 0;
    border-radius: 0 4px 4px 0;
}
.tip {
    background: rgba(232, 200, 120, .15);
    border-left: 4px solid #e8c878;
    padding: 14px 18px;
    margin: 14px 0;
    border-radius: 0 4px 4px 0;
}

footer {
    text-align: center;
    padding: 30px 0 12px;
    color: #e8c878;
    font-style: italic;
    letter-spacing: 1px;
}

@media (max-width: 720px) {
    .poker-hero h1 { font-size: 2.6em; letter-spacing: 4px; }
    .section { padding: 22px 20px; }
    .card { width: 56px; height: 80px; }
    .hand { grid-template-columns: 40px 1fr; }
    .hand .proba { grid-column: 2; }
}
