:root{
    --bg:#f4f7fb;
    --card:#ffffff;
    --line:#e5e7eb;
    --text:#0f172a;
    --muted:#667085;
    --brand:#2563eb;
    --brand-2:#1d4ed8;
    --dark:#0f172a;
    --success:#1f9d57;
    --warning:#f59e0b;
    --danger:#dc2626;
    --shadow:0 12px 30px rgba(15,23,42,.08);
    --bottom-nav-height:74px;
}

*{
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html,
body{
    margin:0;
    padding:0;
    min-height:100%;
}

html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:linear-gradient(180deg,#f8fafc 0%, #eef4fb 100%);
    color:var(--text);
    padding-bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

body.mobile-menu-open{
    overflow:hidden;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    height:auto;
}

button,
input,
select,
textarea{
    font:inherit;
}

.wrap{
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
}

.site-header{
    position:sticky;
    top:0;
    z-index:30;
    backdrop-filter:blur(10px);
    background:rgba(248,250,252,.88);
    border-bottom:1px solid rgba(15,23,42,.06);
}

.site-header-inner{
    min-height:78px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:900;
    font-size:1.12rem;
}

.brand-logo{
    width:48px;
    height:48px;
    object-fit:contain;
    display:block;
    border-radius:14px;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
}

.main-nav{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.nav-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 14px;
    border-radius:999px;
    font-weight:700;
}

.nav-link:hover{
    background:#fff;
}

.nav-link-primary{
    background:linear-gradient(135deg,var(--brand),var(--brand-2));
    color:#fff;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 16px;
    border-radius:999px;
    border:1px solid var(--line);
    background:#fff;
    color:var(--text);
    font-weight:800;
    cursor:pointer;
}

.btn-primary{
    background:linear-gradient(135deg,var(--brand),var(--brand-2));
    color:#fff;
    border-color:transparent;
}

.btn-whatsapp{
    background:#25D366;
    color:#fff;
    border-color:transparent;
}

/* Installation PWA */

.install-app-box{
    display:none;
    margin-top:16px;
}

.install-app-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:16px;
    border-radius:22px;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    box-shadow:var(--shadow);
}

.install-app-content strong{
    display:block;
    font-size:1.06rem;
    margin-bottom:5px;
}

.install-app-content p{
    margin:0;
    color:rgba(255,255,255,.82);
    line-height:1.55;
}

.install-app-actions{
    display:flex;
    gap:10px;
    flex-shrink:0;
}

.install-app-actions .btn{
    border-color:rgba(255,255,255,.18);
}

.install-help{
    display:none;
    margin-top:10px;
    font-size:.9rem;
    color:rgba(255,255,255,.82);
    line-height:1.5;
}

.install-help.active{
    display:block;
}

.install-help-title{
    font-weight:900;
    color:#ffffff;
    margin-bottom:8px;
}

.install-help ol{
    margin:8px 0 0;
    padding-left:20px;
}

.install-help li{
    margin-bottom:5px;
}

/* Cartes et sections */

.hero{
    padding:32px 0 18px;
}

.hero-card{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:24px;
    padding:28px;
    border:1px solid var(--line);
    border-radius:30px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 34%),
        linear-gradient(180deg,#ffffff 0%, #f7fbff 100%);
    box-shadow:var(--shadow);
}

.hero-copy h1{
    margin:0 0 14px;
    font-size:clamp(2.2rem, 5vw, 4rem);
    line-height:1.02;
    letter-spacing:-.04em;
}

.hero-copy p{
    margin:0 0 18px;
    color:#475467;
    line-height:1.75;
    font-size:1.02rem;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.hero-side{
    display:grid;
    gap:14px;
    align-content:start;
}

.season-box,
.highlight-box{
    padding:18px;
    border-radius:22px;
    border:1px solid var(--line);
    background:#fff;
}

.season-box strong,
.highlight-box strong{
    display:block;
    font-size:1.2rem;
    margin-bottom:8px;
}

.season-box span,
.highlight-box span{
    color:var(--muted);
    line-height:1.6;
}

.section{
    margin-top:28px;
    scroll-margin-top:90px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:14px;
    margin-bottom:16px;
}

.section-head h2{
    margin:0 0 6px;
    font-size:1.7rem;
    letter-spacing:-.02em;
}

.section-head p{
    margin:0;
    color:var(--muted);
    line-height:1.5;
}

.cards-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
}

.match-card,
.result-card{
    border:1px solid var(--line);
    border-radius:24px;
    background:#fff;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.card-body{
    padding:18px;
}

.card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
    flex-wrap:wrap;
}

.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:0 10px;
    border-radius:999px;
    font-size:.76rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.badge-primary{
    background:rgba(37,99,235,.12);
    color:#1d4ed8;
}

.badge-success{
    background:rgba(31,157,87,.12);
    color:#137a42;
}

.badge-warning{
    background:rgba(245,158,11,.14);
    color:#b45309;
}

.badge-danger{
    background:rgba(220,38,38,.12);
    color:#b91c1c;
}

.match-meta{
    color:var(--muted);
    font-size:.9rem;
    line-height:1.55;
}

.teams-row{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:12px;
    align-items:center;
    margin:14px 0 16px;
}

.team-block{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:8px;
    min-width:0;
}

.team-logo{
    width:64px;
    height:64px;
    border-radius:18px;
    object-fit:cover;
    background:#fff;
    border:1px solid var(--line);
}

.team-name{
    font-weight:800;
    line-height:1.35;
    word-break:break-word;
}

.vs{
    font-weight:900;
    color:var(--muted);
    letter-spacing:.08em;
}

.score{
    font-size:1.4rem;
    font-weight:900;
    line-height:1;
    white-space:nowrap;
}

.empty-box{
    padding:20px;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff;
    color:var(--muted);
    box-shadow:var(--shadow);
}

.empty-box strong{
    color:var(--text);
}

.cta-section{
    margin-top:28px;
}

.cta-card{
    display:grid;
    grid-template-columns:1fr auto;
    gap:16px;
    align-items:center;
    padding:24px;
    border-radius:28px;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    box-shadow:var(--shadow);
}

.cta-card h2{
    margin:0 0 8px;
    font-size:1.8rem;
}

.cta-card p{
    margin:0;
    color:rgba(255,255,255,.82);
    line-height:1.7;
}

.footer{
    margin-top:36px;
    padding:26px 0 40px;
    color:var(--muted);
    font-size:.92rem;
}

/* Menu mobile */

.mobile-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
    background:rgba(15,23,42,.98);
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    z-index:1000;
    border-top:1px solid rgba(255,255,255,.1);
    box-shadow:0 -16px 36px rgba(15,23,42,.24);
}

.mobile-nav-item{
    appearance:none;
    border:0;
    background:transparent;
    color:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-width:0;
    min-height:64px;
    padding:7px 4px;
    cursor:pointer;
}

.mobile-nav-item-icon{
    font-size:1.24rem;
    line-height:1;
}

.mobile-nav-item-label{
    font-size:.68rem;
    font-weight:800;
    line-height:1.1;
    white-space:nowrap;
}

.mobile-nav-item.is-primary .mobile-nav-item-icon{
    width:38px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:linear-gradient(135deg,var(--brand),var(--brand-2));
    box-shadow:0 10px 22px rgba(37,99,235,.38);
}

.mobile-menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.52);
    z-index:1001;
    opacity:0;
    pointer-events:none;
    transition:.22s ease;
}

.mobile-menu-panel{
    position:fixed;
    left:12px;
    right:12px;
    bottom:calc(var(--bottom-nav-height) + 12px + env(safe-area-inset-bottom));
    max-height:min(74vh, 620px);
    overflow:auto;
    z-index:1002;
    background:#fff;
    border-radius:26px;
    box-shadow:0 28px 80px rgba(15,23,42,.32);
    transform:translateY(24px) scale(.98);
    opacity:0;
    pointer-events:none;
    transition:.22s ease;
}

.mobile-menu-overlay.active,
.mobile-menu-panel.active{
    opacity:1;
    pointer-events:auto;
}

.mobile-menu-panel.active{
    transform:translateY(0) scale(1);
}

.mobile-menu-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 16px 10px;
    border-bottom:1px solid #eef2f7;
}

.mobile-menu-brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:900;
}

.mobile-menu-brand img{
    width:40px;
    height:40px;
    object-fit:contain;
    border-radius:12px;
    border:1px solid var(--line);
    background:#fff;
}

.mobile-menu-close{
    width:40px;
    height:40px;
    border:0;
    border-radius:999px;
    background:#f1f5f9;
    color:#0f172a;
    font-weight:900;
    cursor:pointer;
}

.mobile-menu-content{
    padding:10px 12px 16px;
}

.mobile-menu-group-title{
    margin:14px 8px 8px;
    color:#667085;
    font-size:.78rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.mobile-menu-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 12px;
    border-radius:16px;
    color:#0f172a;
    font-weight:850;
    background:#fff;
}

.mobile-menu-link:hover{
    background:#f8fafc;
}

.mobile-menu-link span:first-child{
    display:flex;
    align-items:center;
    gap:10px;
}

.mobile-menu-link small{
    color:#98a2b3;
    font-weight:900;
}

.mobile-menu-divider{
    height:1px;
    background:#eef2f7;
    margin:10px 4px;
}

/* Responsive */

@media (min-width: 901px){
    body{
        padding-bottom:0;
    }

    .mobile-bottom-nav,
    .mobile-menu-overlay,
    .mobile-menu-panel{
        display:none !important;
    }
}

@media (max-width: 1080px){
    .hero-card{
        grid-template-columns:1fr;
    }

    .cards-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .cta-card{
        grid-template-columns:1fr;
    }
}

@media (max-width: 900px){
    .main-nav{
        display:none;
    }

    .site-header-inner{
        min-height:64px;
    }

    .brand-logo{
        width:42px;
        height:42px;
    }

    .hero{
        padding:16px 0 8px;
    }

    .hero-card{
        border-radius:24px;
    }
}

@media (max-width:720px){
    .wrap{
        width:min(100%, calc(100% - 20px));
    }

    .site-header-inner{
        padding:10px 0;
    }

    .brand{
        font-size:1rem;
    }

    .install-app-content{
        flex-direction:column;
        align-items:flex-start;
    }

    .install-app-actions{
        width:100%;
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .install-app-actions .btn{
        width:100%;
    }

    .cards-grid{
        grid-template-columns:1fr;
    }

    .hero-card{
        padding:18px;
    }

    .hero-copy h1{
        font-size:2.15rem;
    }

    .hero-copy p{
        font-size:.98rem;
        line-height:1.65;
    }

    .hero-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .btn{
        width:100%;
    }

    .section{
        margin-top:22px;
    }

    .section-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .section-head h2{
        font-size:1.42rem;
    }

    .teams-row{
        grid-template-columns:1fr auto 1fr;
        gap:8px;
    }

    .team-logo{
        width:54px;
        height:54px;
        border-radius:16px;
    }

    .team-name{
        font-size:.88rem;
    }

    .match-meta{
        font-size:.86rem;
    }

    .card-body{
        padding:15px;
    }

    .cta-card{
        padding:20px;
        border-radius:24px;
    }

    .cta-card h2{
        font-size:1.45rem;
    }

    .footer{
        padding-bottom:24px;
    }
}

@media (max-width:390px){
    .mobile-nav-item-label{
        font-size:.62rem;
    }

    .hero-copy h1{
        font-size:1.9rem;
    }

    .badge{
        font-size:.68rem;
    }

    .install-app-actions{
        grid-template-columns:1fr;
    }

    .teams-row{
        grid-template-columns:1fr;
    }

    .vs,
    .score{
        text-align:center;
    }
}