/* MON PETIT RUGBY — V3 / identité australienne énergique */
:root {
    --mpr-ink: #14243a;
    --mpr-navy: #102b46;
    --mpr-orange: #f15a35;
    --mpr-yellow: #ffd447;
    --mpr-turquoise: #35c7bb;
    --mpr-coral: #ef5945;
    --mpr-paper: #f5f2e9;
    --mpr-white: #fff;
    --mpr-muted: #64748b;
    --mpr-line: #e3e7e9;
    --mpr-shadow: 0 12px 32px rgba(16, 43, 70, .09)
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--mpr-paper);
    color: var(--mpr-ink);
    font-family: 'DM Sans', Arial, sans-serif
}

a {
    transition: color .18s ease, background .18s ease, transform .18s ease
}

button,
input,
select,
textarea {
    font: inherit
}

.mpr-topline {
    height: 30px;
    background: var(--mpr-yellow);
    color: #14243a;
    padding: 0 max(4vw, 18px);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 900
}

.top {
    min-height: 82px;
    background: var(--mpr-navy);
    border: 0;
    border-bottom: 6px solid var(--mpr-orange);
    padding: 12px max(4vw, 18px);
    gap: 20px;
    box-shadow: 0 5px 18px #102b461c
}

.brand {
    font-size: 14px;
    letter-spacing: 1.4px;
    gap: 12px
}

.brand small {
    color: var(--mpr-turquoise);
    font-size: 9px;
    letter-spacing: 2.4px
}

.ball {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border: 2px solid var(--mpr-yellow);
    border-radius: 14px;
    background: var(--mpr-orange);
    color: #14243a;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 1000;
    transform: rotate(-7deg)
}

.top nav,
.main-navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
    padding: 0;
    border: 0
}

.top nav a {
    min-height: 38px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    color: #f4f7fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px
}

.top nav a:hover {
    background: #ffffff18;
    color: var(--mpr-yellow);
    transform: translateY(-1px)
}

.top nav .nav-cta {
    background: var(--mpr-orange);
    color: #17283b;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px
}

.top nav .nav-cta:hover {
    background: var(--mpr-yellow);
    color: #17283b
}

.admin-nav-group {
    position: relative;
    display: inline-flex;
    align-items: center
}

.admin-nav-toggle {
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid #ffffff36;
    border-radius: 8px;
    background: #ffffff12;
    color: #fff;
    font-weight: 900;
    font-size: 11px;
    cursor: pointer
}

.admin-nav-toggle:hover,
.admin-nav-group.is-open .admin-nav-toggle {
    background: var(--mpr-turquoise);
    color: var(--mpr-navy)
}

.admin-submenu {
    display: none;
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    min-width: 205px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--mpr-line);
    border-radius: 12px;
    box-shadow: 0 18px 45px #071b2b30
}

.admin-nav-group.is-open .admin-submenu {
    display: grid;
    gap: 3px
}

.top nav .admin-submenu a {
    color: var(--mpr-ink);
    min-height: 38px;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 12px
}

.top nav .admin-submenu a:hover {
    background: #e7f8f5;
    color: #087f78
}

.nav-toggle {
    display: none
}

.wrap {
    max-width: 1320px;
    padding: 30px 24px 76px;
    min-height: 76vh
}

h1,
h2,
h3 {
    font-family: 'DM Sans', Arial, sans-serif
}

h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 1000;
    letter-spacing: -2px;
    color: var(--mpr-navy)
}

h1 em {
    color: var(--mpr-orange)
}

h2 {
    font-weight: 950;
    letter-spacing: -.6px;
    color: var(--mpr-navy)
}

h3 {
    font-weight: 900;
    color: var(--mpr-navy)
}

.eyebrow,
.section-kicker {
    color: #078b84;
    font-weight: 1000;
    letter-spacing: 2px
}

.page-intro {
    margin: 0 0 28px;
    /*padding: clamp(25px, 4vw, 44px);*/
    border-radius: 18px;
    background: linear-gradient(115deg, #102b46 0%, #174b65 60%, #1d807c 100%);
    border-bottom: 7px solid var(--mpr-orange);
    box-shadow: var(--mpr-shadow)
}

.page-intro:after {
    border-color: #ffffff35;
    box-shadow: 0 0 0 26px #ffffff0c, 0 0 0 58px #ffffff08
}

.page-intro-kicker {
    color: var(--mpr-yellow)
}

.page-intro h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: -1.8px
}

.page-intro h1 em {
    color: var(--mpr-yellow)
}

.page-intro p {
    color: #e1f0f1;
    font-size: 15px
}

.page-intro-mark {
    color: #ffffff13
}

.matches-hero,
.pools-hero,
.match-report-hero {
    border-radius: 18px;
    overflow: hidden
}

.hero {
    padding: clamp(32px, 6vw, 72px);
    border-radius: 20px;
    background: linear-gradient(115deg, #102b46 0%, #174b65 58%, #35a99e 100%);
    border-bottom: 8px solid var(--mpr-orange);
    box-shadow: var(--mpr-shadow)
}

.hero:after {
    content: '🏉';
    font-size: clamp(130px, 22vw, 260px);
    right: 5%;
    top: 0;
    opacity: .16;
    transform: rotate(-25deg)
}

.hero .eyebrow {
    color: var(--mpr-yellow)
}

.hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(40px, 7vw, 76px);
    letter-spacing: -3px
}

.hero em {
    color: var(--mpr-yellow)
}

.hero p {
    color: #e3f4f2;
    font-size: 17px;
    max-width: 580px
}

.btn,
.btn-submit {
    background: var(--mpr-orange);
    color: #14243a;
    border: 0;
    border-radius: 9px;
    font-weight: 1000;
    box-shadow: 0 5px 0 #b83b27;
    transition: transform .16s, box-shadow .16s
}

.btn:hover,
.btn-submit:hover {
    background: var(--mpr-yellow);
    color: #14243a;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #d5a923
}

.btn.ghost {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
    box-shadow: none
}

.btn-danger {
    background: #d93636;
    color: #fff
}

.grid3,
.grid2,
.bracket {
    gap: 18px
}

.panel,
.stat,
.profile-card,
.lb-card,
.league-tile,
.bonus-card,
.fixture-card,
.pool-card,
.bracket-card {
    background: #fff;
    border: 1px solid var(--mpr-line);
    border-radius: 15px;
    box-shadow: var(--mpr-shadow)
}

.panel,
.stat {
    padding: 22px
}

.panel h2 {
    font-size: 22px
}

.panel p {
    color: #526477;
    line-height: 1.65
}

.stat {
    border-top: 5px solid var(--mpr-turquoise)
}

.stat:nth-child(2) {
    border-top-color: var(--mpr-orange)
}

.stat:nth-child(3) {
    border-top-color: var(--mpr-yellow)
}

.stat strong {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 1000;
    color: var(--mpr-navy)
}

.gold {
    color: #d34b2f
}

.notice {
    border: 0;
    border-left: 5px solid var(--mpr-turquoise);
    border-radius: 10px;
    background: #e4f7f3;
    color: #125b58;
    padding: 14px 16px;
    font-weight: 700
}

.empty-state,
.pool-empty {
    background: #fff;
    border: 1px dashed #b8c9ce;
    border-radius: 14px;
    padding: 24px;
    color: #617487
}

input,
select,
textarea {
    border: 1px solid #cbd5dc;
    border-radius: 8px;
    background: #fff;
    color: var(--mpr-ink);
    padding: 11px 12px;
    max-width: 100%
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #35c7bb55;
    border-color: #149e96
}

label,
.field-label {
    font-weight: 800;
    color: var(--mpr-navy)
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden
}

th {
    background: var(--mpr-navy);
    color: #fff;
    font-weight: 900;
    text-align: left
}

th,
td {
    padding: 11px 13px;
    border-bottom: 1px solid #e8edef
}

tr:nth-child(even) td {
    background: #f8faf9
}

/* Match cards / calendrier */
.fixture-card,
.pool-card,
.bracket-card {
    overflow: hidden
}

.fixture-card:hover,
.league-tile:hover,
.bonus-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px #102b4620
}

.fixture-meta,
.bracket-card-top {
    background: #e8f7f4;
    color: #087f78;
    font-weight: 900
}

.fixture-score {
    color: var(--mpr-orange);
    font-weight: 1000
}

.date-chip,
.date-chip-pending {
    border-radius: 999px;
    background: #fff2c4;
    color: #725500;
    font-weight: 900
}

.joker-tag,
.joker-indicator {
    background: var(--mpr-yellow);
    color: #17283b;
    border-radius: 999px;
    font-weight: 900
}

/* Classement / ligues / bonus */
.lb-rank-badge,
.league-rank-badge {
    background: #fff0d1;
    color: #875800;
    border-radius: 999px;
    font-weight: 1000
}

.lb-card.is-top1,
.lb-card:first-child {
    border-left: 5px solid var(--mpr-yellow)
}

.league-tile {
    border-top: 5px solid var(--mpr-turquoise)
}

.league-avatar {
    border-radius: 14px
}

.bonus-card {
    border-top: 5px solid var(--mpr-orange)
}

.bonus-tag {
    background: #dff7f3;
    color: #087f78;
    border-radius: 999px;
    font-weight: 900
}

.earned-points {
    color: #078b84;
    font-weight: 1000
}

/* Chat / profil */
.chat-container {
    border-radius: 16px;
    box-shadow: var(--mpr-shadow)
}

.chat-header {
    background: var(--mpr-navy);
    border-bottom: 5px solid var(--mpr-orange)
}

.chat-header a {
    background: var(--mpr-turquoise);
    color: var(--mpr-navy)
}

.msg-bubble {
    border-radius: 14px
}

.message-row.me .msg-bubble {
    background: #e2f7f4;
    color: var(--mpr-ink);
    border-color: #9adbd4
}

.profile-banner {
    background: linear-gradient(110deg, #102b46, #168b83);
    border-radius: 16px;
    color: #fff
}

.profile-card {
    overflow: hidden
}

/* Footer */
.site-footer {
    background: var(--mpr-navy);
    border-top: 7px solid var(--mpr-yellow);
    color: #e5eef3
}

.footer-ball {
    border: 2px solid var(--mpr-turquoise);
    border-radius: 14px;
    background: var(--mpr-orange);
    color: #14243a
}

.footer-brand small {
    color: var(--mpr-turquoise)
}

.footer-message {
    border-color: #ffffff2b
}

.footer-message b {
    color: var(--mpr-yellow)
}

.footer-bottom i {
    color: var(--mpr-orange)
}

.footer-legal a,
.footer-legal button {
    color: #d7f4ef
}

.cookie-banner {
    border: 2px solid var(--mpr-turquoise);
    border-radius: 16px;
    box-shadow: 0 20px 60px #071b2b40
}

@media(min-width:761px) {
    .top {
        flex-wrap: nowrap
    }

    .top nav {
        flex-wrap: wrap
    }

    .wrap {
        padding-top: 14px
    }
}

@media(max-width:1100px) and (min-width:761px) {
    .top {
        flex-wrap: wrap
    }

    .top nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap
    }

    .admin-submenu {
        left: 0;
        right: auto
    }
}

@media(max-width:670px) {
    .mpr-topline {
        height: 25px;
        padding: 0 14px;
        font-size: 8px;
        letter-spacing: 1.2px
    }

    .top {
        min-height: 72px;
        padding: 10px 14px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 9px
    }

    .brand {
        font-size: 11px;
        gap: 9px
    }

    .brand small {
        font-size: 8px
    }

    .ball {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px
    }

    .nav-toggle {
        display: flex;
        width: 43px;
        height: 43px;
        margin-left: auto;
        border: 1px solid #ffffff55;
        border-radius: 10px;
        background: #ffffff12;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px
    }

    .nav-toggle span {
        background: var(--mpr-yellow)
    }

    .top nav,
    .main-navigation {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        padding: 10px 0 4px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px
    }

    .top nav.is-open,
    .main-navigation.is-open {
        display: grid
    }

    .top nav a {
        display: flex;
        align-items: center;
        min-height: 43px;
        padding: 10px 11px;
        border: 1px solid #ffffff20;
        border-radius: 9px;
        background: #ffffff0b;
        font-size: 12px;
        white-space: normal
    }

    .top nav .nav-cta {
        background: var(--mpr-orange);
        border: 0
    }

    .admin-nav-group {
        display: block;
        grid-column: 1/-1
    }

    .admin-nav-toggle {
        width: 100%;
        text-align: left;
        min-height: 43px;
        border-radius: 9px;
        background: #35c7bb;
        color: #102b46
    }

    .admin-submenu {
        position: static;
        min-width: 0;
        margin-top: 5px;
        border-radius: 10px;
        box-shadow: none;
        background: #f3f8f7
    }

    .top nav .admin-submenu a {
        min-height: 38px;
        background: #fff;
        border: 0
    }

    .wrap {
        padding: 22px 13px 48px
    }

    .hero {
        padding: 32px 21px;
        border-radius: 15px
    }

    .hero h1 {
        font-size: clamp(37px, 11vw, 56px);
        letter-spacing: -1.8px
    }

    .hero p {
        font-size: 15px
    }

    .page-intro {
        padding: 24px 18px;
        border-radius: 14px;
        margin-bottom: 20px
    }

    .page-intro h1 {
        font-size: clamp(30px, 9vw, 42px)
    }

    .panel,
    .stat {
        padding: 17px;
        border-radius: 12px
    }

    .grid3,
    .grid2,
    .bracket {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .site-footer {
        padding: 0 16px
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px
    }

    .adminrow {
        grid-template-columns: 1fr 58px 58px
    }

    .adminrow span {
        grid-column: 1/-1
    }

    table {
        display: block;
        overflow-x: auto;
       /* white-space: nowrap*/
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }
}

.dashboard-hero {
    margin: 8px 0 22px
}

.dashboard-stats {
    margin-top: 20px
}

.dashboard-stats .stat span {
    display: block;
    margin-top: 5px;
    color: #66788a;
    font-size: 12px;
    font-weight: 700
}

.dashboard-actions .panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.dashboard-actions .panel .btn {
    margin-top: auto
}

.dashboard-actions .panel h2 {
    margin: 12px 0 4px
}

/* V3 polish — cohérence des composants et du tableau de bord */
::selection {
    background: var(--mpr-yellow);
    color: var(--mpr-navy)
}

.heading {
    padding: 12px 0 24px
}

.heading h1 {
    margin: 5px 0 8px
}

.heading p {
    color: #53677b;
    font-size: 16px
}

main.wrap>section+section {
    margin-top: 22px
}

.panel h2,
.panel h3 {
    margin-top: 0
}

button,
.btn,
input[type=submit] {
    cursor: pointer
}

button:not(.nav-toggle):not(.admin-nav-toggle):not(.cookie-settings-link) {
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #35c7bb;
    outline-offset: 2px
}

.btn,
.btn-submit,
input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    text-decoration: none
}

.stat small {
    color: #627489;
    font-weight: 900;
    letter-spacing: .8px
}

.stat strong {
    display: block;
    line-height: 1.15;
    margin-top: 7px
}

.panel a:not(.btn) {
    color: #087f78;
    font-weight: 800
}

.panel a:not(.btn):hover {
    color: var(--mpr-orange)
}

.site-footer {
    margin-top: 20px
}

@media(max-width:760px) {
    .heading {
        padding: 4px 2px 17px
    }

    .heading h1 {
        font-size: clamp(30px, 9vw, 42px)
    }

    .heading p {
        font-size: 14px
    }

    .btn,
    .btn-submit,
    input[type=submit] {
        min-height: 44px
    }

    .panel {
        overflow-wrap: anywhere
    }
}