.hero {
    min-height: 700px;
    background:
        linear-gradient(to right,
            rgba(2, 6, 23, 0.72) 0%,
            rgba(2, 6, 23, 0.45) 28%,
            rgba(2, 6, 23, 0.12) 55%,
            transparent 75%),
        linear-gradient(to bottom,
            rgba(2, 6, 23, 0.08) 0%,
            rgba(2, 6, 23, 0.25) 55%,
            rgba(2, 6, 23, 0.55) 82%,
            #020617 100%),
        url(../../img/fond-landing.png);
    background-size: cover;
    background-position: center;
}

.hero-container {
    width: 100%;
    min-height: 700px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 60px;
    align-items: start;
}

.hero-left {
    width: 100%;
}

.hero-left h1 {
    max-width: 720px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(72px, 7vw, 110px);
    line-height: 0.92;
    letter-spacing: 5px;
    color: #FFFFFF;
    text-transform: uppercase;
}

.hero-left span {
    display: block;
    color: #A3E635;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(58px, 5.8vw, 90px);
}

.hero-text {
    max-width: 550px;
    margin-top: 22px;
    color: #FFFFFF;
    font-size: clamp(16px, 1.4vw, 22px);
    line-height: 1.6;
    opacity: 0.92;
}

.hero-features {
    width: 100%;
    max-width: 600px;
    min-height: 150px;
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    padding: 0 25px;
    color: white;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card {
    width: 33.33%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-card i {
    font-size: 30px;
    color: #A3E635;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 18px;
    line-height: 1.5;
    color: #FFFFFF;
}

.hero-right {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 28px 28px 32px;
    color: white;
    background: linear-gradient(180deg, #020617, #0f172a);
    border: 2px solid rgba(255, 255, 255, 0.236);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(163, 230, 53, 0.04);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #A3E635;
    border-radius: 50%;
    box-shadow:
        0 0 12px #A3E635,
        0 0 25px #A3E635;
    top: -6px;
    left: -6px;
    opacity: 0;
    z-index: 3;
}

.login-card.active-glow::before {
    opacity: 1;
    animation: orbit-border 2.5s linear infinite;
}

@keyframes orbit-border {
    0% {
        top: -6px;
        left: -6px;
    }

    25% {
        top: -6px;
        left: calc(100% - 6px);
    }

    50% {
        top: calc(100% - 6px);
        left: calc(100% - 6px);
    }

    75% {
        top: calc(100% - 6px);
        left: -6px;
    }

    100% {
        top: -6px;
        left: -6px;
    }
}

.login-card h2 {
    font-size: 25px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px 0;
}

.login-form {
    width: 100%;
    gap: 18px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 14px;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #A3E635;
    cursor: pointer;
}

.login-options {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-options a {
    color: #A3E635;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
    font-weight: 500;
}

.logged-card {
    width: 500px;
    padding: 36px;
    gap: 22px;
}

.logged-card h2 {
    font-size: 28px;
    margin: 0;
}

.user-group {
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.user-group span {
    color: #A3E635;
    font-weight: 700;
}

.user-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    gap: 30px;
}

.user-action {
    width: 100%;
    min-height: 76px;
    padding: 0 22px;
    border-radius: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: 0.25s ease;
}

.user-action span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(2, 6, 23, 0.18);
}

.user-action strong {
    display: block;
    font-size: 20px;
    color: #020617;
}

.user-action small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: rgba(2, 6, 23, 0.65);
}

.user-action.primary {
    background: linear-gradient(135deg, #A3E635, #84CC16);
}

.user-action.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(163, 230, 53, 0.35);
}

.user-action.secondary strong {
    color: white;
}

.user-action.secondary small {
    color: rgba(255, 255, 255, 0.65);
}

.user-action.secondary span {
    background: rgba(163, 230, 53, 0.12);
}

.register-separator {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 4px 0;
}

.register-separator span {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.register-separator p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    white-space: nowrap;
}

.register-btn {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.login-error {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    font-size: 14px;
    font-weight: 500;
}

.account-deleted-message {
    max-width: 720px;
    margin: 35px auto 25px;
    padding: 22px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #052e16, #0f172a);
    border: 1px solid rgba(163, 230, 53, 0.45);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    color: white;
    text-align: center;
}

.account-deleted-message h3 {
    color: #A3E635;
    font-size: 24px;
    margin-bottom: 12px;
}

.account-deleted-message p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
    margin: 6px 0;
}

.champion-banner {

    position: relative;
    width: 100%;
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
        url('../img/stadium.jpg');

    background-size: cover;
    background-position: center;

    border-radius: 25px;

    margin-top: 40px;

    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
}

.champion-content {

    position: relative;
    z-index: 2;

    text-align: center;
    color: white;

    padding: 40px;
}

.champion-subtitle {

    font-size: 1rem;
    letter-spacing: 4px;
    color: gold;

    margin-bottom: 20px;

    font-weight: 600;
}

.trophy {

    font-size: 5rem;

    animation: float 3s ease-in-out infinite;
}

.champion-avatar {

    width: 150px;
    height: 150px;

    border-radius: 50%;

    object-fit: cover;

    margin-top: 20px;
    margin-bottom: 20px;

    border: 5px solid gold;

    box-shadow:
        0 0 20px gold,
        0 0 50px rgba(255, 215, 0, 0.4);
}

.champion-content h1 {

    font-size: 4rem;
    font-weight: 800;

    margin-bottom: 10px;

    color: gold;

    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 25px rgba(255, 215, 0, 0.4);
}

.champion-score {

    font-size: 1.3rem;
    color: #ddd;

    margin-bottom: 40px;
}

.champion-stats {

    display: flex;
    gap: 25px;

    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {

    width: 170px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 20px;

    padding: 25px;

    transition: 0.3s;
}

.stat-card:hover {

    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.12);
}

.stat-card span {

    font-size: 2rem;

    display: block;

    margin-bottom: 10px;
}

.stat-card h3 {

    font-size: 2rem;
    color: gold;

    margin-bottom: 5px;
}

.stat-card p {

    font-size: 0.95rem;
    color: #ccc;
}

@keyframes float {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}



/* =========================
   TOP 3 - pseudos cliquables
========================= */

.general-ranking .ranking-user .pseudo {
    min-width: 0;
}

.home-ranking-pseudo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
}

.home-ranking-pseudo-link:hover {
    color: #A3E635;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-ranking-pseudo-link:focus-visible {
    outline: 2px solid rgba(163, 230, 53, 0.65);
    outline-offset: 3px;
}

.ranking-full-link {
    display: block;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(163, 230, 53, 0.12);
    border: 1px solid rgba(163, 230, 53, 0.35);
    color: #A3E635;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.ranking-full-link:hover {
    background: rgba(163, 230, 53, 0.22);
}

.my-groups-home .card-header i {
    color: #38bdf8;
}

.home-groups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.home-group-item span {
    color: white;
    font-weight: 700;
}

.home-group-item small {
    color: #38bdf8;
    font-weight: 800;
    letter-spacing: 1px;
}

.dashboard-grid.dashboard-grid-2 {
    grid-template-columns: repeat(2, minmax(280px, 420px));
    justify-content: center;
}

.dashboard-grid.dashboard-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bonus-badge {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(159, 239, 0, 0.15);
    border: 1px solid #9FEF00;
    color: #9FEF00;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.site-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.site-popup {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 34px 28px;

    border-radius: 24px;
    background: linear-gradient(135deg, #020617, #0f172a);
    border: 1px solid rgba(163, 230, 53, 0.35);

    color: white;
    text-align: center;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    animation: popupIn 0.25s ease;
}

.site-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: white;

    cursor: pointer;
}

.site-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    background: rgba(163, 230, 53, 0.14);
    color: #A3E635;
    font-size: 30px;
}

.site-popup h2 {
    margin-bottom: 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 2px;
}

.site-popup p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.site-popup-btn {
    margin-top: 12px;
    padding: 13px 24px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(135deg, #A3E635, #22c55e);
    color: #020617;

    font-weight: 900;
    cursor: pointer;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ========================================
   RESPONSIVE INTÉGRÉ
   Anciennement dans layout/responsive.css
======================================== */


@media screen and (max-width: 1300px) {

    .hero-container {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 45px;
        padding: 65px 45px;
    }

    .login-card {
        width: 360px;
    }

    .hero-features {
        max-width: 520px;
    }

    .logged-card {
        max-width: 340px;
        padding: 24px;
    }

    .logged-card h2 {
        font-size: 22px;
    }

    .user-action strong {
        font-size: 15px;
    }

    .user-action small {
        font-size: 11px;
    }
}


@media screen and (min-width: 901px) {

    .logged-card {
        margin-top: 10px;
    }

    .user-actions {
        gap: 16px;
    }

    .user-action {
        min-height: 62px;
    }
}


@media screen and (max-width: 900px) {

    .hero {
        min-height: auto;
        background-position: center;
    }

    .hero-container {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;
        padding: 45px 18px;
        text-align: center;
    }

    .hero-left h1 {
        max-width: 100%;
        font-size: 64px;
        letter-spacing: 3px;
    }

    .hero-left span {
        font-size: 54px;
    }

    .hero-text {
        max-width: 100%;
        font-size: 16px;
    }

    .hero-features {
        width: 100%;
        max-width: 420px;
        min-height: auto;
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }

    .feature-card {
        width: 100%;
        min-height: auto;
    }

    .feature-card p {
        font-size: 16px;
    }

    .hero-right {
        width: 100%;
    }

    .login-card,
    .logged-card {
        width: 100%;
        max-width: 420px;
        padding: 24px;
    }

    .logged-card {
        max-width: 380px;
        text-align: center;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .user-group {
        font-size: 15px;
    }

    .user-action {
        min-height: 70px;
        padding: 14px 16px;
        text-align: left;
    }

    .dashboard {
        width: 100%;
        max-width: 100%;
        padding: 24px 14px;
        overflow-x: hidden;
    }

    .dashboard .team {
        flex-direction: column;
    }

    .dashboard .team span {
        margin-left: 0;
        font-size: 24px;
        letter-spacing: 3px;
    }

    .dashboard-grid,
    .dashboard-grid.dashboard-grid-2,
    .dashboard-grid.dashboard-grid-3 {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        gap: 22px;
        justify-content: stretch;
    }

    .dashboard-grid>*,
    .ranking-card,
    .stats-list,
    .stats-card,
    .next-match-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .card-header {
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
    }

    .card-header h3 {
        font-size: 28px;
        white-space: normal;
    }
}


@media screen and (max-width: 768px) {

    .site-popup {
        padding: 26px 18px;
        border-radius: 20px;
    }

    .site-popup-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .site-popup h2 {
        font-size: 30px;
        letter-spacing: 1px;
        line-height: 1.1;
    }

    .site-popup p {
        font-size: 14px;
        line-height: 1.5;
    }

    .site-popup-btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    .site-popup-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .login-btn,
    .register-btn {
        height: 48px;
        font-size: 14px;
    }

    .champion-content h1 {
        font-size: 2.5rem;
    }

    .champion-avatar {
        width: 110px;
        height: 110px;
    }

    .champion-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 260px;
    }
}


@media screen and (max-width: 420px) {

    .site-popup-overlay {
        padding: 12px;
    }

    .site-popup {
        padding: 22px 16px;
    }

    .site-popup h2 {
        font-size: 26px;
    }

    .site-popup p {
        font-size: 13px;
    }

    .site-popup-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* ========================================
   BOUTON DU PROCHAIN MATCH
======================================== */

.next-match-actions {
    display: flex;
    justify-content: flex-start;

    margin-top: 30px;
}

.btn-prono-next-match {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 15px 26px;

    border: 0;
    border-radius: 16px;

    background: linear-gradient(135deg, #a3e635, #22c55e);
    color: #020617;

    box-shadow:
        0 10px 28px rgba(34, 197, 94, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-prono-next-match i {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(2, 6, 23, 0.14);

    font-size: 14px;
}

.btn-prono-next-match:hover {
    color: #020617;

    filter: brightness(1.04);

    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 16px 35px rgba(34, 197, 94, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-prono-next-match:focus-visible {
    outline: 3px solid rgba(163, 230, 53, 0.42);
    outline-offset: 4px;
}

.btn-prono-next-match:active {
    transform: translateY(0) scale(0.98);
}

/*
 * Le pronostic est déjà enregistré :
 * on garde le bouton visible et cliquable pour permettre
 * à l'utilisateur de consulter ou modifier ses pronostics.
 */
.btn-prono-next-match.prono-done {
    background: rgba(163, 230, 53, 0.12);
    border: 1px solid rgba(163, 230, 53, 0.38);
    color: #a3e635;

    box-shadow: none;
}

.btn-prono-next-match.prono-done i {
    background: rgba(163, 230, 53, 0.14);
}

.btn-prono-next-match.prono-done:hover {
    background: rgba(163, 230, 53, 0.2);
    color: #bef264;

    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.16);
}

@media screen and (max-width: 900px) {
    .next-match-actions {
        width: 100%;
        justify-content: center;

        margin-top: 25px;
    }

    .btn-prono-next-match {
        width: 100%;
        max-width: 320px;
    }
}

@media screen and (max-width: 600px) {
    .btn-prono-next-match {
        width: 100%;
        max-width: none;

        padding: 14px 18px;

        font-size: 16px;
    }
}