/* =============================================
   GUIDE DU PARIEUR — Design System v1.0
   Stack : PHP custom WP + Inter + CSS vanilla
   ============================================= */

/* --- Variables -------------------------------- */
:root {
    --gdp-bg:        #0F1117;
    --gdp-surface:   #161B26;
    --gdp-surface2:  #1E2530;
    --gdp-border:    #2A2F3A;
    --gdp-border2:   #3A4150;

    --gdp-text:      #E2E8F0;
    --gdp-text-2:    #94A3B8;
    --gdp-text-3:    #64748B;

    --gdp-orange:    #F97316;
    --gdp-orange-bg: rgba(249,115,22,.1);
    --gdp-orange-bd: rgba(249,115,22,.3);

    --gdp-green:     #22C55E;
    --gdp-green-bg:  rgba(34,197,94,.1);
    --gdp-green-bd:  rgba(34,197,94,.25);

    --gdp-red:       #EF4444;
    --gdp-red-bg:    rgba(239,68,68,.1);
    --gdp-red-bd:    rgba(239,68,68,.25);

    --gdp-radius:    6px;
    --gdp-radius-lg: 10px;
    --gdp-max:       1180px;
    --gdp-gap:       24px;
}

/* --- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gdp-bg);
    color: var(--gdp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gdp-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* --- Typographie ------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
    color: var(--gdp-text);
}
h1 { font-size: clamp(22px, 4vw, 36px); }
h2 { font-size: clamp(18px, 3vw, 26px); }
h3 { font-size: clamp(15px, 2.5vw, 20px); }
h4 { font-size: 16px; }
p  { color: var(--gdp-text-2); line-height: 1.7; }

/* --- Layout ----------------------------------- */
.container {
    max-width: var(--gdp-max);
    margin: 0 auto;
    padding: 0 var(--gdp-gap);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- Boutons ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--gdp-radius);
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    text-decoration: none;
    line-height: 1;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary  { background: var(--gdp-orange); color: #fff; }
.btn-ghost    { background: transparent; color: var(--gdp-text); border: 0.5px solid var(--gdp-border2); }
.btn-ghost:hover { background: var(--gdp-surface); }
.btn-sm       { font-size: 11px; padding: 7px 14px; }
.btn-full     { width: 100%; justify-content: center; }

/* --- Cards ------------------------------------ */
.card {
    background: var(--gdp-surface);
    border: 0.5px solid var(--gdp-border);
    border-radius: var(--gdp-radius-lg);
    padding: 16px 18px;
}
.card-featured { border-color: var(--gdp-orange); }

/* --- Section header -------------------------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gdp-text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.section-link {
    font-size: 12px;
    color: var(--gdp-orange);
    font-weight: 500;
}

/* --- Pills / Tags ----------------------------- */
.tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    border: 0.5px solid;
    white-space: nowrap;
}
.tag-foot   { background: var(--gdp-green-bg);  color: var(--gdp-green);  border-color: var(--gdp-green-bd); }
.tag-nba    { background: rgba(99,102,241,.1);   color: #818CF8;           border-color: rgba(99,102,241,.25); }
.tag-turf   { background: rgba(251,191,36,.1);   color: #FBBF24;           border-color: rgba(251,191,36,.25); }
.tag-hockey { background: rgba(59,130,246,.1);   color: #60A5FA;           border-color: rgba(59,130,246,.25); }
.tag-velo   { background: rgba(168,85,247,.1);   color: #C084FC;           border-color: rgba(168,85,247,.25); }
.tag-actu   { background: var(--gdp-surface2);   color: var(--gdp-text-3); border-color: var(--gdp-border); }
.tag-orange { background: var(--gdp-orange-bg);  color: var(--gdp-orange); border-color: var(--gdp-orange-bd); }

/* --- Badge étoiles --------------------------- */
.stars { color: var(--gdp-orange); font-size: 12px; letter-spacing: 1px; }

/* --- Scores / Cotes -------------------------- */
.cote {
    font-size: 20px;
    font-weight: 800;
    color: var(--gdp-orange);
    line-height: 1;
}
.cote-sm { font-size: 14px; }
.gain { color: var(--gdp-green); }
.perte { color: var(--gdp-red); }

/* --- Confiance indicator --------------------- */
.confiance { display: flex; gap: 3px; align-items: center; }
.confiance-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gdp-border2);
}
.confiance-dot.on { background: var(--gdp-orange); }

/* --- Live indicator -------------------------- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gdp-orange);
    background: var(--gdp-orange-bg);
    border: 0.5px solid var(--gdp-orange-bd);
    border-radius: 99px;
    padding: 3px 10px;
    letter-spacing: .04em;
}
.live-dot {
    width: 5px;
    height: 5px;
    background: var(--gdp-orange);
    border-radius: 50%;
    animation: gdp-pulse 1.5s infinite;
}
@keyframes gdp-pulse { 0%,100%{opacity:1} 50%{opacity:.2} }

/* --- Divider --------------------------------- */
.divider { border: none; border-top: 0.5px solid var(--gdp-border); margin: 20px 0; }

/* --- Header / Nav ---------------------------- */
#gdp-header {
    background: var(--gdp-bg);
    border-bottom: 0.5px solid var(--gdp-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
#gdp-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}
.gdp-logo {
    font-size: 15px;
    font-weight: 800;
    color: var(--gdp-text);
    text-decoration: none;
    letter-spacing: -.4px;
}
.gdp-logo em { color: var(--gdp-orange); font-style: normal; }
.gdp-nav { display: flex; gap: 24px; align-items: center; }
.gdp-nav a {
    font-size: 13px;
    color: var(--gdp-text-2);
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}
.gdp-nav a:hover,
.gdp-nav a.current { color: var(--gdp-text); }
.gdp-nav-cta { margin-left: 8px; }

/* Hamburger mobile */
.gdp-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.gdp-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gdp-text);
    border-radius: 2px;
    transition: .2s;
}
@media (max-width: 860px) {
    .gdp-nav { display: none; }
    .gdp-burger { display: flex; }
    .gdp-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        background: var(--gdp-surface);
        border-bottom: 0.5px solid var(--gdp-border);
        padding: 16px 24px;
        gap: 14px;
    }
}

/* --- Hero ------------------------------------ */
.gdp-hero {
    padding: 52px 0 40px;
    border-bottom: 0.5px solid var(--gdp-border);
}
.gdp-hero h1 { margin: 12px 0 10px; max-width: 620px; }
.gdp-hero h1 em { color: var(--gdp-orange); font-style: normal; }
.gdp-hero p { max-width: 520px; margin-bottom: 24px; font-size: 15px; }
.gdp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Page sections --------------------------- */
.gdp-section { padding: 36px 0; border-bottom: 0.5px solid var(--gdp-border); }
.gdp-section:last-child { border-bottom: none; }

/* --- Bookmaker card -------------------------- */
.bk-card {
    background: var(--gdp-surface);
    border: 0.5px solid var(--gdp-border);
    border-radius: var(--gdp-radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bk-card.top { border-color: rgba(249,115,22,.5); }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; }
.bk-name { font-size: 15px; font-weight: 800; color: var(--gdp-text); }
.bk-bonus { font-size: 14px; font-weight: 700; color: var(--gdp-green); }
.bk-detail { font-size: 12px; color: var(--gdp-text-3); }
.bk-rating { display: flex; justify-content: space-between; align-items: center; }
.bk-score { font-size: 22px; font-weight: 800; color: var(--gdp-orange); }
.bk-score span { font-size: 13px; font-weight: 400; color: var(--gdp-text-3); }

/* Tableau comparatif bookmakers */
.bk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bk-table th {
    font-size: 10px;
    font-weight: 700;
    color: var(--gdp-text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 14px;
    border-bottom: 0.5px solid var(--gdp-border);
    text-align: left;
    white-space: nowrap;
}
.bk-table td {
    padding: 13px 14px;
    border-bottom: 0.5px solid var(--gdp-border);
    vertical-align: middle;
    color: var(--gdp-text-2);
}
.bk-table tr:last-child td { border-bottom: none; }
.bk-table tr:hover td { background: var(--gdp-surface2); }
.bk-table .bk-rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--gdp-text-3);
    width: 32px;
}
.bk-table .bk-rank.n1 { color: var(--gdp-orange); }

/* --- Prono card ------------------------------ */
.prono-card {
    background: var(--gdp-surface);
    border: 0.5px solid var(--gdp-border);
    border-radius: var(--gdp-radius-lg);
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    transition: border-color .15s;
}
.prono-card:hover { border-color: var(--gdp-border2); }
.prono-match { font-size: 13px; font-weight: 700; color: var(--gdp-text); margin-bottom: 3px; }
.prono-tip   { font-size: 12px; color: var(--gdp-text-2); }
.prono-right { text-align: right; }

/* --- Actu card ------------------------------- */
.actu-card {
    background: var(--gdp-surface);
    border: 0.5px solid var(--gdp-border);
    border-radius: var(--gdp-radius-lg);
    padding: 14px 16px;
    transition: border-color .15s;
}
.actu-card:hover { border-color: var(--gdp-border2); }
.actu-title { font-size: 13px; font-weight: 600; color: var(--gdp-text); line-height: 1.4; margin: 6px 0 5px; }
.actu-meta  { font-size: 11px; color: var(--gdp-text-3); }

/* --- Single article -------------------------- */
.gdp-article { max-width: 780px; margin: 0 auto; }
.gdp-article .article-header { padding: 40px 0 28px; border-bottom: 0.5px solid var(--gdp-border); margin-bottom: 32px; }
.gdp-article .article-content h2 { margin: 32px 0 12px; }
.gdp-article .article-content h3 { margin: 24px 0 10px; }
.gdp-article .article-content p  { margin-bottom: 16px; font-size: 15px; line-height: 1.75; }
.gdp-article .article-content ul { margin: 0 0 16px 20px; list-style: disc; }
.gdp-article .article-content ul li { color: var(--gdp-text-2); margin-bottom: 6px; font-size: 15px; }

/* --- Sidebar --------------------------------- */
.gdp-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) { .gdp-layout-sidebar { grid-template-columns: 1fr; } }

/* --- Widget sidebar -------------------------- */
.widget-box {
    background: var(--gdp-surface);
    border: 0.5px solid var(--gdp-border);
    border-radius: var(--gdp-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}
.widget-box-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gdp-text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--gdp-border);
}
.widget-box-body { padding: 14px 16px; }

/* --- Footer ---------------------------------- */
#gdp-footer {
    background: var(--gdp-surface);
    border-top: 0.5px solid var(--gdp-border);
    padding: 40px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gdp-text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--gdp-text-2);
    margin-bottom: 8px;
    text-decoration: none;
}
.footer-col a:hover { color: var(--gdp-text); }
.footer-legal {
    border-top: 0.5px solid var(--gdp-border);
    padding-top: 20px;
    font-size: 12px;
    color: var(--gdp-text-3);
    line-height: 1.7;
    text-align: center;
}
.footer-legal strong { color: var(--gdp-text-2); }
.footer-18 {
    display: inline-block;
    background: var(--gdp-surface2);
    color: var(--gdp-text-2);
    border: 0.5px solid var(--gdp-border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 800;
    margin-right: 6px;
}

/* --- Utilitaires ----------------------------- */
.text-orange { color: var(--gdp-orange); }
.text-green  { color: var(--gdp-green); }
.text-red    { color: var(--gdp-red); }
.text-muted  { color: var(--gdp-text-3); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
