/* =========================================================
   Coin des Joueurs — Règles du Texas Hold'em
   Fichier : style-regles-texas-holdem.css
   ========================================================= */

:root{
    --fond:#050713;
    --fond-secondaire:#091126;
    --bloc:#0b1428;
    --bloc-clair:#101b34;
    --or:#f4c542;
    --or-fonce:#c99316;
    --bleu:#36b8ff;
    --violet:#8f4cff;
    --texte:#f6f7fb;
    --texte-doux:#c8d0df;
    --bordure:rgba(244,197,66,.28);
    --ombre:0 16px 38px rgba(0,0,0,.38);
}

/* Reset */
*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    color:#fff;
    background:
        linear-gradient(rgba(5,7,19,.78), rgba(5,7,19,.78)),
        url("images-texas/fond.png");
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    background-repeat:no-repeat;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    line-height:1.65;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    color:var(--bleu);
    text-decoration:none;
}

a:visited{
    color:var(--bleu);
}

a:hover{
    color:var(--or);
}

.skip-link{
    position:absolute;
    left:-9999px;
    top:auto;
}

.skip-link:focus{
    left:12px;
    top:12px;
    z-index:9999;
    padding:10px 14px;
    border-radius:8px;
    background:#fff;
    color:#111;
    font-weight:800;
}

/* =========================================================
   Header image
   ========================================================= */

.texas-header{
    width:100%;
    overflow:hidden;
    background:#02040a;
    border-bottom:2px solid var(--or-fonce);
    box-shadow:0 12px 28px rgba(0,0,0,.38);
}

.texas-header img{
    width:100%;
    max-height:520px;
    object-fit:cover;
    object-position:center;
}

/* Variante si l'image est utilisée en fond */
.texas-header-bg{
    min-height:420px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.2) 100%),
        url("images-regles-texas/header.png") center/cover no-repeat;
    border-bottom:2px solid var(--or-fonce);
}

/* =========================================================
   Navigation
   ========================================================= */

.main-nav{
    position:sticky;
    top:0;
    z-index:50;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    padding:12px 16px;
    background:rgba(3,5,13,.96);
    border-bottom:1px solid rgba(244,197,66,.22);
    backdrop-filter:blur(10px);
}

.main-nav a{
    padding:9px 13px;
    border-radius:8px;
    color:#fff;
    font-weight:750;
    transition:background .2s ease, color .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"]{
    color:#111;
    background:linear-gradient(180deg,#ffd95d 0%,#e3ac1c 100%);
    transform:translateY(-1px);
}

/* =========================================================
   Structure générale
   ========================================================= */

.page-texas{
    width:min(1180px,calc(100% - 28px));
    margin:0 auto;
}

.fil-ariane{
    margin:20px 0 12px;
    color:var(--texte-doux);
    font-size:.95rem;
}

.fil-ariane a{
    font-weight:700;
}

.hero-texas,
.section-texas,
.faq-texas,
.responsable-box{
    margin:22px 0;
    padding:30px;
    border:1px solid var(--bordure);
    border-radius:18px;
    background:linear-gradient(145deg,#102247,#182f60);
    box-shadow:var(--ombre);
}

/* =========================================================
   Hero
   ========================================================= */

.hero-texas{
    text-align:center;
}

.hero-texas h1{
    max-width:820px;
    margin:10px auto;
    font-size:clamp(1.55rem,2.7vw,2.55rem);
    line-height:1.12;
    letter-spacing:-.5px;
}

.hero-texas h1 span{
    color:var(--or);
}

.hero-texas p{
    max-width:860px;
    margin:12px auto;
    color:var(--texte-doux);
    font-size:1.08rem;
}

.badge-texas{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    color:#111;
    background:linear-gradient(180deg,#ffe06d,#e5b321);
    font-weight:900;
    box-shadow:0 8px 18px rgba(0,0,0,.28);
}

.date-maj{
    opacity:.8;
    font-size:.95rem;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin-top:20px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:12px 20px;
    border-radius:10px;
    border:1px solid transparent;
    font-weight:850;
    text-decoration:none !important;
    transition:transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}

.btn-principal{
    color:#111 !important;
    background:linear-gradient(180deg,#ffd95d 0%,#e3ac1c 100%);
    box-shadow:0 10px 24px rgba(201,147,22,.28);
}

.btn-secondaire{
    color:#fff !important;
    background:linear-gradient(180deg,#178bd7 0%,#0a5da0 100%);
    border-color:#52c5ff;
}

/* =========================================================
   Titres et contenu
   ========================================================= */

.section-texas h2,
.faq-texas h2,
.responsable-box h2{
    margin-top:0;
    color:var(--or);
    font-size:clamp(1.45rem,3vw,2.2rem);
}

.section-texas h3{
    color:#74d2ff;
}

.section-texas p,
.section-texas li,
.faq-texas p,
.responsable-box p{
    color:var(--texte-doux);
}

/* =========================================================
   Cartes
   ========================================================= */

.grid-texas{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-top:18px;
}

.card-texas{
    padding:20px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.1);
    background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
    box-shadow:0 10px 24px rgba(0,0,0,.22);
}

.card-texas:hover{
    border-color:rgba(244,197,66,.48);
}

.numero-etape{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    margin-bottom:10px;
    border-radius:50%;
    color:#111;
    background:var(--or);
    font-weight:950;
}

/* =========================================================
   Tableau
   ========================================================= */

.table-wrap{
    overflow-x:auto;
    margin-top:18px;
    border-radius:14px;
}

.table-texas{
    width:100%;
    min-width:720px;
    border-collapse:collapse;
    background:#091426;
}

.table-texas th,
.table-texas td{
    padding:14px;
    border:1px solid rgba(255,255,255,.12);
    text-align:left;
}

.table-texas th{
    color:#111;
    background:linear-gradient(180deg,#ffd95d,#dca918);
}

.table-texas tr:nth-child(even) td{
    background:rgba(255,255,255,.025);
}

/* =========================================================
   Blocs spéciaux
   ========================================================= */

.exemple-box{
    margin:18px 0;
    padding:18px;
    border-left:4px solid var(--or);
    border-radius:10px;
    background:rgba(244,197,66,.08);
}

.info-box{
    margin:18px 0;
    padding:18px;
    border:1px solid rgba(54,184,255,.38);
    border-radius:12px;
    background:rgba(54,184,255,.08);
}

.alerte-box{
    margin:18px 0;
    padding:18px;
    border:1px solid rgba(255,111,111,.38);
    border-radius:12px;
    background:rgba(170,20,20,.13);
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-texas details{
    padding:15px 0;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.faq-texas details:last-child{
    border-bottom:0;
}

.faq-texas summary{
    cursor:pointer;
    color:#74d2ff;
    font-weight:850;
}

.faq-texas summary:hover{
    color:var(--or);
}

/* =========================================================
   Liens internes
   ========================================================= */

.liens-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-top:18px;
}

.liens-grid a,
.liens-grid a:visited{
    display:block;
    padding:14px;
    border-radius:10px;
    color:#fff !important;
    background:rgba(54,184,255,.1);
    border:1px solid rgba(54,184,255,.22);
    text-align:center;
    font-weight:750;
}

.liens-grid a:hover{
    color:#111 !important;
    background:var(--or);
}

/* =========================================================
   Jeu responsable
   ========================================================= */

.responsable-box{
    border-color:rgba(244,197,66,.46);
}

/* =========================================================
   Footer
   ========================================================= */

.footer{
    margin-top:40px;
    padding:28px 18px;
    text-align:center;
    background:#03050b;
    border-top:1px solid rgba(244,197,66,.25);
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
    margin-bottom:18px;
}

.footer-logos{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:18px;
    margin:18px 0;
}

.footer-logos img{
    max-height:54px;
    width:auto;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width:900px){
    .texas-header img{
        min-height:220px;
        object-fit:cover;
    }

    .grid-texas,
    .liens-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width:640px){
    .page-texas{
        width:min(100% - 18px,1180px);
    }

    .hero-texas,
    .section-texas,
    .faq-texas,
    .responsable-box{
        padding:20px 15px;
        border-radius:14px;
    }

    .hero-texas h1{
    max-width:820px;
    margin:10px auto;
    font-size:clamp(1.55rem,2.7vw,2.55rem);
    line-height:1.12;
    letter-spacing:-.5px;
}

    .main-nav{
        position:relative;
        justify-content:flex-start;
        overflow-x:auto;
        flex-wrap:nowrap;
        white-space:nowrap;
    }

    .main-nav a{
        flex:0 0 auto;
    }

    .hero-actions,
    .btn{
        width:100%;
    }

    .texas-header img{
        min-height:170px;
        max-height:260px;
    }
}

@media (prefers-reduced-motion:reduce){
    *{
        scroll-behavior:auto !important;
        transition:none !important;
    }
}

.main-nav a{background:linear-gradient(180deg,#1d3d7a,#102247);border:1px solid rgba(255,215,0,.22);padding:10px 18px;}
.main-nav a:hover,.main-nav a.active,.main-nav a[aria-current='page']{box-shadow:0 8px 20px rgba(255,215,0,.35);} .card-texas{background:linear-gradient(145deg,#16315d,#0d1f3d);} .hero-texas{background:linear-gradient(145deg,#112650,#0b1633);}

/* ===== Bannières partenaires ===== */
.bloc-partenaires{
display:flex;
justify-content:center;
align-items:flex-start;
gap:30px;
flex-wrap:wrap;
margin:40px auto;
padding:25px;
background:linear-gradient(145deg,#13254b,#0d1b37);
border:1px solid rgba(255,215,0,.20);
border-radius:18px;
box-shadow:0 12px 30px rgba(0,0,0,.35);
}
.partenaire{
display:flex;
justify-content:center;
align-items:center;
min-width:300px;
}
@media(max-width:700px){
.bloc-partenaires{
flex-direction:column;
align-items:center;
}
}


/* =========================================================
   Tableau premium Texas Hold'em
   ========================================================= */

.table-wrap{
    overflow-x:auto;
    margin-top:22px;
    padding:2px;
    border-radius:18px;
    background:linear-gradient(135deg,rgba(255,214,77,.55),rgba(54,184,255,.34),rgba(143,76,255,.42));
    box-shadow:
        0 18px 40px rgba(0,0,0,.42),
        0 0 22px rgba(54,184,255,.14);
}

.table-texas{
    width:100%;
    min-width:720px;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
    border-radius:16px;
    background:linear-gradient(180deg,#07101f 0%,#0b1730 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.table-texas thead th{
    position:relative;
    padding:16px 18px;
    color:#111;
    background:
        linear-gradient(180deg,#ffe47a 0%,#f3c441 46%,#c89216 100%);
    border-right:1px solid rgba(80,53,0,.22);
    border-bottom:2px solid #8f6508;
    font-size:.95rem;
    font-weight:900;
    letter-spacing:.35px;
    text-transform:uppercase;
    text-shadow:0 1px 0 rgba(255,255,255,.4);
}

.table-texas thead th:last-child{
    border-right:0;
}

.table-texas tbody td{
    padding:15px 18px;
    color:#eef4ff;
    border-right:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg,rgba(17,35,68,.98),rgba(10,22,44,.98));
    transition:
        background .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.table-texas tbody tr:nth-child(even) td{
    background:linear-gradient(180deg,rgba(23,44,82,.98),rgba(12,27,53,.98));
}

.table-texas tbody tr:hover td{
    background:linear-gradient(180deg,rgba(36,70,126,.98),rgba(17,41,78,.98));
    box-shadow:inset 0 0 18px rgba(54,184,255,.12);
}

.table-texas tbody td:first-child{
    color:#ffd95d;
    font-weight:900;
    white-space:nowrap;
}

.table-texas tbody td:first-child::before{
    content:"◆";
    margin-right:9px;
    color:#36b8ff;
    font-size:.8rem;
}

.table-texas tbody td:last-child{
    border-right:0;
}

.table-texas tbody tr:last-child td{
    border-bottom:0;
}

@media (max-width:700px){
    .table-wrap{
        border-radius:14px;
    }

    .table-texas{
        min-width:640px;
    }

    .table-texas thead th,
    .table-texas tbody td{
        padding:13px 14px;
        font-size:.92rem;
    }
}

.table-intro{
    margin:-4px 0 14px;
    color:#bfcbe0;
    text-align:center;
}
.section-table-premium{
    background:
        radial-gradient(circle at top right,rgba(54,184,255,.12),transparent 34%),
        linear-gradient(145deg,#102247,#182f60);
}
