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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #eef0f6;
    line-height: 1.65;

    background:
        linear-gradient(
            rgba(4, 7, 18, 0.86),
            rgba(4, 7, 18, 0.90)
        ),
        url("images-comment-parier/fond.png")
        center top / cover fixed no-repeat;

    background-color: #070b18;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #070912;
    border-bottom: 1px solid #252b44;
}

.header-img {
    display: block;
    width: 100%;
    max-width: 1120px;
    height: auto;
    margin: auto;
}

/* =========================================================
   MENU ORANGE BRILLANT
========================================================= */

.menu {
    padding: 0;
    background: #090d19;
    border-bottom: 2px solid #ff8a00;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.main-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
}

.main-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border: 1px solid #ffbd66;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffd08a 0%, #ffad35 18%, #ff8a00 52%, #d96400 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72),
                inset 0 -2px 0 rgba(116,45,0,.35),
                0 4px 10px rgba(0,0,0,.45);
    text-shadow: 0 1px 2px rgba(77,28,0,.75);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.main-menu a:hover,
.main-menu a:focus-visible {
    color: #ffffff;
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85),
                0 0 16px rgba(255,140,0,.65),
                0 5px 12px rgba(0,0,0,.45);
}

.main-menu a.active,
.main-menu a[aria-current="page"] {
    color: #151515;
    border-color: #fff0a8;
    background: linear-gradient(180deg, #fffbd3 0%, #ffe66f 22%, #ffc928 58%, #dc9700 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95),
                inset 0 -2px 0 rgba(120,75,0,.32),
                0 0 18px rgba(255,203,37,.75),
                0 5px 12px rgba(0,0,0,.45);
    text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

/* =========================================================
   CONTENU PRINCIPAL
========================================================= */

main {
    width: calc(100% - 28px);
    max-width: 1120px;
    margin: 28px auto 45px;
}

.intro,
.section,
.final-box {
    margin-bottom: 24px;
    border: 1px solid #2d3657;
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 26, 47, 0.96),
            rgba(10, 14, 28, 0.96)
        );

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

/* =========================================================
   INTRODUCTION
========================================================= */

.intro {
    padding: 30px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 11px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #222b48;
    color: #ffe18b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.intro h1 {
    max-width: 720px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(25px, 2.8vw, 32px);
    line-height: 1.2;
}

.intro-text {
    max-width: 850px;
    margin-bottom: 20px;
    color: #d7dbea;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================================
   TROIS ÉTAPES
========================================================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.step-card {
    position: relative;
    padding: 20px 17px;
    background: linear-gradient(145deg, #151d34, #0c1326);
    border: 1px solid #354263;
    border-radius: 13px;
}

.step-number {
    position: absolute;
    top: 11px;
    left: 11px;

    display: grid;
    place-items: center;

    width: 29px;
    height: 29px;

    color: #121521;
    background: linear-gradient(135deg, #f3d36f, #b97f19);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.step-icon {
    margin: 3px 0 10px;
    text-align: center;
    font-size: 31px;
}

.step-card h2 {
    margin-bottom: 7px;
    color: #f4d574;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
}

.step-card p {
    color: #c7cede;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.intro-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
    padding: 13px;
    background: #0d1427;
    border: 1px solid #35415f;
    border-radius: 10px;
}

.intro-summary strong {
    color: #ffffff;
}

.intro-summary span {
    padding: 6px 9px;
    color: #f4d574;
    background: #18213a;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.intro-summary b {
    color: #e0b94e;
    font-size: 17px;
}

/* =========================================================
   BOUTONS RAPIDES
========================================================= */

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick-links a,
.main-button {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3d36f, #b97f19);
    color: #121521;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.quick-links a:nth-child(n + 2) {
    background: #18213b;
    color: #f2d477;
    border: 1px solid #465276;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 27px;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 19px;
}

.section-title > span {
    display: grid;
    place-items: center;
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    border-radius: 9px;
    background: #202a48;
    color: #f8d878;
    font-size: 15px;
    font-weight: 900;
    border: 1px solid #536084;
}

.section-title h2,
.related h2,
.final-box h2 {
    margin-bottom: 4px;
    color: #f4d574;
    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.3;
}

.section-title p {
    color: #aeb6cb;
    font-size: 15px;
}

.section-title.compact {
    margin-bottom: 14px;
}

.simple-box {
    border-color: #425075;
}

/* =========================================================
   EXEMPLE SIMPLE
========================================================= */

.example-simple {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 19px;
    border-radius: 13px;
    background: #10172b;
    border: 1px solid #34415f;
}

.horse-ball {
    display: grid;
    place-items: center;
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    border-radius: 50%;
    background: linear-gradient(135deg, #f3d36f, #bd831c);
    color: #10131e;
    font-size: 24px;
    font-weight: 900;
}

.example-simple h3 {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 17px;
}

.example-simple p {
    color: #d0d5e4;
    font-size: 15px;
}

/* =========================================================
   TABLEAUX
========================================================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th {
    padding: 12px;
    background: #d5b248;
    color: #111522;
    text-align: left;
    font-size: 15px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #2b3552;
    background: rgba(255, 255, 255, 0.025);
    font-size: 15px;
}

tbody tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.level,
.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.easy,
.win {
    background: rgba(37, 133, 68, 0.25);
    color: #bdf0c9;
    border: 1px solid #3b8a54;
}

.medium {
    background: rgba(187, 133, 27, 0.25);
    color: #ffe2a0;
    border: 1px solid #94701d;
}

.hard,
.lose {
    background: rgba(145, 48, 48, 0.26);
    color: #ffc3c3;
    border: 1px solid #8d4444;
}

/* =========================================================
   RÈGLES DES PARIS
========================================================= */

.rule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.rule-card,
.choice-grid article {
    padding: 17px;
    border-radius: 13px;
    background: linear-gradient(145deg, #151d34, #0d1325);
    border: 1px solid #303b60;
}

.rule-card.recommended {
    border-color: #9c7c2d;
}

.rule-card small {
    display: inline-block;
    margin-bottom: 8px;
    color: #f5d675;
    font-size: 12px;
    font-weight: 800;
}

.rule-card h3,
.choice-grid h3 {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 17px;
}

.rule-card p,
.choice-grid p {
    color: #bdc5d7;
    font-size: 14px;
}

.result {
    margin-top: 9px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
}

.ok {
    background: rgba(31, 117, 53, 0.22);
    color: #bcecc7;
}

.no {
    background: rgba(134, 43, 43, 0.22);
    color: #ffc1c1;
}

.numbers {
    display: inline-block;
    margin-top: 11px;
    padding: 7px 10px;
    border-radius: 7px;
    background: #080d1a;
    color: #f6d77c;
    border: 1px solid #465071;
    font-weight: 900;
}

/* =========================================================
   CHOISIR UN CHEVAL
========================================================= */

.choice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.choice-grid article span {
    display: block;
    margin-bottom: 7px;
    font-size: 28px;
}

/* =========================================================
   COTES
========================================================= */

.odds-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.odds-line div {
    padding: 17px;
    text-align: center;
    border-radius: 12px;
    background: #11182c;
    border: 1px solid #36415f;
}

.odds-line strong {
    display: block;
    color: #f5d676;
    font-size: 23px;
}

.odds-line span {
    color: #d2d7e5;
    font-size: 14px;
    font-weight: 700;
}

.info-box {
    margin-top: 16px;
    padding: 15px 17px;
    border-radius: 10px;
    background: #151d33;
    border-left: 4px solid #e0bc53;
    color: #d4d9e6;
    font-size: 15px;
}

.info-box strong {
    color: #f6d778;
}

/* =========================================================
   ERREURS ET BUDGET
========================================================= */

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 9px 0 9px 29px;
    border-bottom: 1px solid #29324e;
    color: #d5dae7;
    font-size: 15px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #66d18a;
    font-weight: 900;
}

.danger-list li::before {
    content: "✕";
    color: #ff8d8d;
}


/* =========================================================
   FAQ
========================================================= */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

details {
    padding: 15px 17px;
    border-radius: 11px;
    background: #11182c;
    border: 1px solid #313c5e;
}

summary {
    cursor: pointer;
    color: #f3d36f;
    font-size: 15px;
    font-weight: 800;
}

details p {
    margin-top: 9px;
    color: #c8cfdf;
    font-size: 14px;
}

/* =========================================================
   LIENS INTERNES
========================================================= */

.related {
    text-align: center;
}

.related-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.related-links a {
    padding: 9px 13px;
    border-radius: 8px;
    background: #151e35;
    border: 1px solid #3b4769;
    color: #f1d270;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.related-links a:visited {
    color: #f1d270;
}

.related-links a:hover {
    background: #202a47;
    color: #ffffff;
}

/* =========================================================
   BLOC FINAL
========================================================= */

.final-box {
    padding: 28px;
    text-align: center;
}

.final-box p {
    max-width: 760px;
    margin: 0 auto 17px;
    color: #d3d8e5;
    font-size: 15px;
}

.main-button {
    padding: 11px 17px;
}

.main-button:visited {
    color: #121521;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 32px 20px;
    text-align: center;
    background: #070a12;
    border-top: 3px solid #c79b2a;
    color: #d1d6e1;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.logo18 {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.logoanj {
    width: 95px;
    max-height: 58px;
    object-fit: contain;
}

.logoeval {
    width: 105px;
    max-height: 58px;
    object-fit: contain;
    border-radius: 5px;
}

.footer p {
    margin: 7px 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 18px 0;
}

.footer-links a {
    color: #efc95e;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:visited {
    color: #efc95e;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: #8e96a8 !important;
    font-size: 13px !important;
}

/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 900px) {

    .rule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .choice-grid,
    .odds-line {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    main {
        width: calc(100% - 18px);
        margin-top: 16px;
    }

    .menu {
        padding: 0;
    }

    .main-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 10px;
    }

    .main-menu a {
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .header-img {
        min-height: 140px;
        object-fit: cover;
    }

    .intro,
    .section,
    .final-box {
        padding: 19px;
        border-radius: 12px;
    }

    .intro h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .intro-text {
        font-size: 15px;
    }

    .steps-grid,
    .rule-grid,
    .choice-grid,
    .odds-line,
    .two-cols,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .step-card h2 {
        font-size: 17px;
    }

    .intro-summary {
        flex-direction: column;
    }

    .intro-summary b {
        transform: rotate(90deg);
    }

    .example-simple {
        align-items: flex-start;
    }

    .section-title h2,
    .related h2,
    .final-box h2 {
        font-size: 19px;
    }

    .quick-links {
        flex-direction: column;
    }

    .quick-links a {
        text-align: center;
    }

}

/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 380px) {

    .main-menu {
        grid-template-columns: 1fr;
    }

    .horse-ball {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

}

/* Optimisations accessibilité, conversion et performances */
.bouton-affilie-simple {
    display: inline-block;
    margin: 12px 0 20px;
    padding: 13px 24px;
    color: #fff;
    background: #075fa8;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
}
.bouton-affilie-simple:hover,
.bouton-affilie-simple:focus-visible { background: #03497f; color: #fff; }
.lien-affilie-texte {
    color: #39bfff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.skip-link {
    position: fixed; left: 12px; top: 12px; z-index: 9999;
    padding: 10px 14px; border-radius: 8px;
    background: #fff; color: #111; font-weight: 700;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, summary:focus-visible { outline: 3px solid #ffe66f; outline-offset: 3px; }
.section, .final-box { content-visibility: auto; contain-intrinsic-size: 1px 500px; }
@media (max-width: 700px) { body { background-attachment: scroll; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* =========================================================
   BANNIÈRE PARTENAIRE — affichage direct, responsive
========================================================= */
.pub-top {
    width: 100%;
    margin: 12px auto 20px;
    text-align: center;
    overflow: hidden;
}

.pub-top iframe {
    display: block;
    width: 728px;
    max-width: 100%;
    height: 90px;
    margin: 0 auto;
    border: 0;
}

@media (max-width: 760px) {
    .pub-top iframe {
        width: 100%;
        max-width: 728px;
    }
}
