@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --navy: #081426;
    --navy2: #10233c;
    --gold: #d7b56d;
    --cream: #f5f2eb;
    --ink: #15243a;
    --muted: #6c7988;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    overflow-x: clip;
}

/* En-tête & navigation mobile-first */
.top {
    position: relative;
    min-height: 72px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 12px;
}

.brand small {
    display: block;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 2.5px;
    margin-top: 3px;
}

.ball {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 12px;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(215, 181, 109, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.top nav,
.main-navigation {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #d8e0eb;
    text-decoration: none;
    font-size: 14px;
}

.top nav a:hover,
.top nav .nav-cta {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* Conteneur principal */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 16px 64px;
    min-height: 75vh;
}

/* Hero & titres */
.hero {
    padding: 44px 20px;
    background: linear-gradient(115deg, #081426, #17304e);
    color: #fff;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '🏉';
    position: absolute;
    right: 6px;
    top: 10px;
    font-size: 96px;
    opacity: 0.09;
    transform: rotate(-28deg);
    pointer-events: none;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    color: #a17e3d;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

h1 {
    font: 700 clamp(30px, 7vw, 60px) / 1.08 'Playfair Display', serif;
    margin: 0 0 16px;
    color: var(--navy);
}

.hero h1 {
    color: #fff;
}

.hero em,
h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero p {
    max-width: 540px;
    color: #c4ceda;
    line-height: 1.65;
    margin-bottom: 24px;
    font-size: 15px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: #101d2d;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.btn.ghost {
    border: 1px solid #9eacbd;
    background: transparent;
    color: inherit;
}

.btn.small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
}

/* Grilles & panneaux */
.grid3,
.grid2,
.bracket {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.panel,
.stat {
    background: #fff;
    border: 1px solid #e7e2d8;
    border-radius: 12px;
    padding: 18px;
    margin: 14px 0;
    box-shadow: 0 8px 26px rgba(21, 36, 58, 0.05);
}

.panel h2 {
    font: 700 21px/1.25 'Playfair Display', serif;
    margin: 0 0 10px;
}

.panel p {
    color: #5b6878;
    line-height: 1.6;
}

.gold {
    color: #a17e3d;
    font-weight: 700;
}

.stat small {
    display: block;
    color: #6c7988;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    font: 700 30px/1.15 'Playfair Display', serif;
    margin-top: 8px;
    color: var(--navy);
}

.heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

/* Formulaires */
.formbox {
    max-width: 480px;
    margin: 16px auto;
    background: #fff;
    padding: 22px 18px;
    border-radius: 14px;
    border: 1px solid #e7e2d8;
}

.formbox h1 {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 14px 0 6px;
}

@media (max-width: 768px) {
    input {
        min-height: 4px;  /*fdl44*/
        padding: 10px 12px;
        border: 1px solid #d9dfe6;
        border-radius: 8px;
        font: inherit;
        margin-bottom: 8px;
    }
}
@media (min-width: 768px) {
    input {
        min-height: 4px;  /*fdl44*/
        padding: 10px 12px;
        border: 1px solid #d9dfe6;
        border-radius: 8px;
        font: inherit;
        margin-bottom: 8px;
    }
}
/*form .btn {
    margin-top: 10px;
}*/

a {
    color: #9b7739;
}

.notice {
    background: #fff5dd;
    border: 1px solid #e6d2a1;
    color: #70551d;
    padding: 13px 16px;
    border-radius: 8px;
    margin: 14px 0;
    font-size: 14px;
}

/* Bloc match générique */
.match {
    padding: 16px;
}

.matchmeta {
    font-size: 11px;
    letter-spacing: 1px;
    color: #6c7988;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 14px 48px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
}

.teams input {
    min-height: 42px;
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    padding: 6px 2px;
    margin: 0;
}

.teams span:first-child {
    text-align: left;
}

.teams span:last-child {
    text-align: right;
}

.match .btn {
    margin-top: 14px;
}

/* Tableaux & admin */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #edf0f2;
}

th {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #6c7988;
    text-transform: uppercase;
}

.adminrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px 62px auto;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid #e7e2d8;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 13px;
}

.adminrow input {
    min-height: 40px;
    margin: 0;
    padding: 6px 8px;
}

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

.ranking-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ranking-filter label {
    margin: 0;
    font-weight: 700;
}

.ranking-filter select {
    max-width: 100%;
    min-width: 200px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(190, 155, 83, 0.5);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.current-player {
    background: rgba(190, 155, 83, 0.14);
    outline: 1px solid rgba(190, 155, 83, 0.35);
}

.muted {
    opacity: 0.78;
    font-size: 0.9rem;
    margin-top: 12px;
}

footer {
    text-align: center;
    background: var(--navy);
    color: #aeb9c7;
    padding: 20px 16px;
    font-size: 11px;
    letter-spacing: 1.5px;
}

footer span {
    color: var(--gold);
}

/* Tablette & Desktop (>= 768px) */
@media (min-width: 768px) {
    .top {
        padding: 14px max(4vw, 24px);
        gap: 20px;
    }

    .nav-toggle {
        display: none;
    }

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

    .top nav a {
        min-height: auto;
        padding: 6px 4px;
        font-size: 13px;
    }

    .wrap {
        padding: 44px 24px 80px;
    }

    .grid2,
    .bracket {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .grid3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .hero {
        padding: 64px 7%;
        border-radius: 18px;
    }

    .hero::after {
        right: 6%;
        top: 16%;
        font-size: 140px;
    }

    .panel,
    .stat {
        padding: 22px;
        margin: 16px 0;
    }

    .formbox {
        padding: 32px;
        margin: 20px auto;
    }

    .heading {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .teams {
        grid-template-columns: minmax(0, 1fr) 56px 18px 56px minmax(0, 1fr);
        gap: 10px;
        font-size: 15px;
    }

    .teams input {
        font-size: 20px;
        padding: 8px 4px;
    }

    .adminrow {
        grid-template-columns: minmax(0, 1fr) 75px 75px auto;
        font-size: 13px;
    }

    .adminrow span {
        grid-column: auto;
    }
}

.scoring-legend {
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
}

.scoring-legend-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-bottom: 10px;
}

.scoring-legend-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #101b2c;
}

.scoring-legend-joker {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(246, 214, 74, 0.24);
    color: #7c5809;
    font-size: 11px;
    font-weight: 800;
}

.scoring-legend-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.scoring-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f7f8f9;
    border: 1px solid #edf0f2;
    min-width: 0;
}

.scoring-legend-pts {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 900;
    color: #c64b25;
}

.scoring-legend-desc {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .scoring-legend-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* V2.6 cookie-consent panel and footer legal links */
.cookie-banner{position:fixed;z-index:9999;left:12px;right:12px;bottom:12px;background:#101b2c;color:#fff;border:1px solid #d7b56d;border-radius:14px;padding:16px;box-shadow:0 12px 40px rgba(0,0,0,.3);display:flex;flex-wrap:wrap;gap:14px;align-items:center}.cookie-banner[hidden]{display:none}.cookie-banner p{margin:6px 0 0;color:#e6e9ee;font-size:14px}.cookie-actions{display:flex;flex-wrap:wrap;gap:8px}.cookie-actions button{border:1px solid #d7b56d;border-radius:8px;padding:10px 14px;min-height:42px;background:#d7b56d;color:#101b2c;font-weight:800}.cookie-actions button:nth-child(2){background:transparent;color:#fff}.cookie-actions .cookie-customize{background:transparent;color:#fff}.footer-legal{padding:12px 0;text-align:center;font-size:13px}.footer-legal a,.footer-legal button{color:inherit;text-decoration:underline;background:none;border:0;font:inherit;cursor:pointer}.chat-count{background:#d7b56d;color:#101b2c}@media(max-width:600px){.cookie-banner{left:8px;right:8px;bottom:8px;display:block;padding:13px}.cookie-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:12px}.cookie-actions button{width:100%}.cookie-actions .cookie-customize{grid-column:1/-1}}

.cookie-custom-panel{width:100%;padding:10px 0;border-top:1px solid rgba(215,181,109,.35)}.cookie-custom-panel label{display:block;margin:8px 0}.cookie-custom-panel input{margin-right:8px}
