/* =========================================================
   RENARDCHILL
   STYLE.CSS COMPLET
   7 CARTES EN HAUT + 7 CARTES EN BAS
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0b0d12;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --orange: #ff7a00;
    --orange-dark: #c95d00;

    --bg-main: #0b0d12;
    --bg-card: #11141a;
    --bg-card-2: #15181e;

    --border: #292d35;
    --border-orange: rgba(255, 122, 0, 0.45);

    --text: #ffffff;
    --text-muted: #aeb4c0;

    --radius: 14px;
}


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

header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #0f1218;

    border-top: 2px solid var(--orange);
    border-bottom: 1px solid var(--orange);
}

.header,
.site-header,
.navbar {
    width: 100%;
}

.header-container,
.nav-container,
.navbar-container {
    width: min(1450px, calc(100% - 40px));
    margin: 0 auto;

    min-height: 70px;

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

    gap: 20px;
}

header a {
    text-decoration: none;
}

header nav,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    flex-wrap: wrap;
}

header nav a,
.nav-links a {
    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: 0.2s ease;
}

header nav a:hover,
.nav-links a:hover {
    color: var(--orange);
}


/* =========================================================
   HERO
========================================================= */

.hero-home {
    width: 100%;

    background:
        linear-gradient(
            180deg,
            #10141c 0%,
            #0e1219 100%
        );

    padding: 0;
}

.hero-home-inner {
    width: min(1450px, calc(100% - 40px));

    margin: 0 auto;

    min-height: 380px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        390px;

    align-items: center;

    gap: 50px;

    padding: 55px 0;
}

.hero-copy {
    min-width: 0;
}

.hero-kicker {
    color: var(--orange);

    font-size: 17px;
    font-weight: 700;

    margin-bottom: 15px;
}

.hero-copy h1 {
    margin: 0 0 20px;

    font-size: clamp(48px, 5vw, 72px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;
}

.hero-copy h1 span {
    color: #ffffff;
}

.hero-copy h1 strong {
    color: var(--orange);
}

.hero-description {
    margin: 0 0 30px;

    color: #ffffff;

    font-size: 18px;

    line-height: 1.65;
}

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}

.home-btn {
    display: inline-flex;

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

    min-height: 48px;

    padding: 0 24px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition: 0.2s ease;
}

.home-btn-primary {
    background: var(--orange);

    color: #ffffff;

    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.20);
}

.home-btn-primary:hover {
    background: #ff8c26;

    transform: translateY(-2px);
}

.home-btn-secondary {
    background: #171a21;

    color: #ffffff;

    border: 1px solid #363b45;
}

.home-btn-secondary:hover {
    border-color: var(--orange);

    color: var(--orange);
}


/* =========================================================
   HERO LIVE CARD
========================================================= */

.hero-live-card {
    width: 100%;

    min-width: 0;

    padding: 22px;

    background:
        linear-gradient(
            180deg,
            #15181e,
            #111318
        );

    border: 1px solid #30343c;

    border-radius: 16px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.20);
}

.hero-live-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-bottom: 16px;

    border-bottom: 1px solid #2b2f36;

    font-size: 14px;
    font-weight: 800;
}

.live-badge {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 11px;

    border-radius: 7px;

    background: #ff3d3d;

    color: #ffffff;

    font-size: 12px;
}

.live-badge i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ffffff;

    display: inline-block;
}

.hero-live-game {
    margin-top: 20px;

    color: var(--orange);

    font-size: 16px;
    font-weight: 700;
}

.hero-live-card h2 {
    margin: 14px 0 10px;

    font-size: 22px;
}

.hero-live-meta,
.hero-live-note {
    color: #d5d8de;

    line-height: 1.5;

    font-size: 14px;
}

.hero-live-button {
    width: 100%;

    margin-top: 14px;
}


/* =========================================================
   COMMUNITY / STATISTIQUES
========================================================= */

.home-stats {
    width: 100%;

    padding: 32px 0 0;
}

.home-stats-grid {
    width: min(1450px, calc(100% - 40px));

    margin: 0 auto;

    display: grid;

    /*
     * EXACTEMENT 7 COLONNES
     */
    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 16px;

    align-items: stretch;
}


/* =========================================================
   CARTE DU HAUT
========================================================= */

.home-stat-card {
    min-width: 0;

    min-height: 104px;

    padding: 18px;

    display: flex;

    align-items: center;

    gap: 14px;

    background:
        linear-gradient(
            180deg,
            #15181e,
            #11141a
        );

    border: 1px solid var(--border);

    border-radius: 14px;

    text-decoration: none;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-stat-card:hover {
    border-color: var(--border-orange);

    transform: translateY(-2px);
}

.home-stat-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;

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

    border-radius: 12px;

    background: #292018;

    font-size: 28px;
}

.home-stat-card > div:last-child {
    min-width: 0;
}

.home-stat-card strong {
    display: block;

    color: #ffffff;

    font-size: 22px;
    font-weight: 900;

    line-height: 1.05;

    word-break: normal;
}

.home-stat-card span {
    display: block;

    margin-top: 5px;

    color: #aeb4c0;

    font-size: 13px;

    line-height: 1.2;
}


/* =========================================================
   TOP SUPPORTER - CARTE DU HAUT
========================================================= */

.home-stat-ranking {
    min-width: 0;
}

.home-stat-ranking strong {
    font-size: 21px;

    line-height: 1.05;

    /*
     * Autorise le retour à la ligne
     * mais évite les coupures lettre par lettre
     */
    overflow-wrap: normal;
    word-break: normal;
}


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

.home-content {
    width: 100%;

    padding: 48px 0 80px;
}

.home-grid {
    width: min(1450px, calc(100% - 40px));

    margin: 0 auto;

    display: grid;

    /*
     * EXACTEMENT 7 COLONNES
     *
     * Les cartes du bas utilisent donc
     * EXACTEMENT les mêmes colonnes
     * que les cartes du haut.
     */
    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 16px;

    align-items: stretch;
}


/* =========================================================
   PANELS DU BAS
========================================================= */

.home-panel {
    min-width: 0;

    width: 100%;

    min-height: 545px;

    padding: 20px;

    background:
        linear-gradient(
            180deg,
            #15181e,
            #11141a
        );

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;
}


/*
 * IMPORTANT :
 * On ne modifie PAS les colonnes.
 * Chaque panel occupe une seule colonne.
 */

.home-giveaway-panel {
    grid-column: auto;
}

.home-planning-panel {
    grid-column: auto;
}

.home-news-panel {
    grid-column: auto;
}

.home-supporters-panel {
    grid-column: auto;
}


/* =========================================================
   WIDGETS
========================================================= */

.home-widget {
    width: 100%;

    min-width: 0;
}

.home-widget-title {
    width: 100%;

    display: flex;

    align-items: center;

    padding-bottom: 14px;

    margin-bottom: 8px;

    border-bottom: 1px solid #2b2f36;

    color: #ffffff;

    font-size: 15px;

    font-weight: 800;
}

.home-widget-title span {
    min-width: 0;
}


/* =========================================================
   TITRES DES CARTES DU BAS
========================================================= */

.home-panel h1,
.home-panel h2,
.home-panel h3 {
    max-width: 100%;

    color: #ffffff;
}

.home-panel strong {
    color: #ffffff;
}


/* =========================================================
   TOP SUPPORTERS
========================================================= */

.top-supporters-widget {
    width: 100%;

    min-width: 0;
}

.supporters-list {
    width: 100%;

    min-width: 0;
}

.supporter-row {
    width: 100%;

    min-width: 0;

    min-height: 53px;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto;

    align-items: center;

    column-gap: 8px;

    border-bottom: 1px solid #292d34;
}

.supporter-row:last-child {
    border-bottom: none;
}


/* =========================================================
   RANG
========================================================= */

.supporter-rank {
    width: 30px;
    height: 30px;

    border: 1px solid #353a43;

    border-radius: 50%;

    display: flex;

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

    flex-shrink: 0;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.supporter-rank.medal {
    border-color: var(--orange);
}


/* =========================================================
   INFORMATIONS SUPPORTER
========================================================= */

.supporter-info {
    min-width: 0;

    overflow: hidden;
}

.supporter-info strong {
    display: block;

    width: 100%;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    /*
     * LE PSEUDO RESTE LISIBLE
     * ET NE DISPARAÎT PAS.
     */
    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

    line-height: 1.2;
}


/* =========================================================
   PIÈCES
========================================================= */

.supporter-coins {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 5px;

    flex-shrink: 0;

    color: var(--orange);

    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;
}

.supporter-coins::first-letter {
    color: var(--orange);
}


/* =========================================================
   BOUTON CLASSEMENT
========================================================= */

.home-widget-button {
    width: 100%;

    min-height: 42px;

    margin-top: 14px;

    padding: 10px 14px;

    display: flex;

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

    border: 1px solid var(--orange-dark);

    border-radius: 9px;

    background: #18191d;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    text-align: center;

    transition: 0.2s ease;
}

.home-widget-button:hover {
    background: #211b16;

    border-color: var(--orange);

    color: #ffffff;
}


/* =========================================================
   TOP CADEAUX
========================================================= */

.gifts-list,
.top-gifts-list,
.top-cadeaux-list {
    width: 100%;

    min-width: 0;
}

.gift-row,
.gifts-row,
.top-gift-row {
    width: 100%;

    min-height: 53px;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 8px;

    border-bottom: 1px solid #292d34;
}

.gift-row:last-child,
.gifts-row:last-child,
.top-gift-row:last-child {
    border-bottom: none;
}


/* =========================================================
   TOP LIKES
========================================================= */

.likes-list,
.top-likes-list {
    width: 100%;

    min-width: 0;
}

.like-row,
.likes-row,
.top-like-row {
    width: 100%;

    min-height: 53px;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 8px;

    border-bottom: 1px solid #292d34;
}

.like-row:last-child,
.likes-row:last-child,
.top-like-row:last-child {
    border-bottom: none;
}


/* =========================================================
   PLANNING
========================================================= */

.home-planning-panel,
.home-news-panel {
    min-width: 0;
}

.home-planning-panel * ,
.home-news-panel * {
    max-width: 100%;
}

.planning-item {
    width: 100%;

    min-width: 0;

    padding: 9px 0;

    border-bottom: 1px solid #292d34;
}

.planning-item:last-child {
    border-bottom: none;
}

.planning-item strong {
    color: #ffffff;
}

.planning-item small {
    color: #aeb4c0;
}


/* =========================================================
   NEWS
========================================================= */

.news-item {
    width: 100%;

    min-width: 0;

    padding: 10px 0;

    border-bottom: 1px solid #292d34;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3,
.news-item strong {
    color: #ffffff;
}

.news-item p {
    color: #c4c8d0;
}


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

.home-content a:not(.home-widget-button),
.home-panel a {
    color: #ffffff;
}

.home-content a:hover,
.home-panel a:hover {
    color: var(--orange);
}


/* =========================================================
   TEXTE VIDE
========================================================= */

.home-empty {
    padding: 25px 0;

    color: #8e949f;

    font-size: 14px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE - TABLETTE
========================================================= */

@media (max-width: 1200px) {

    .header-container,
    .nav-container,
    .navbar-container,
    .home-stats-grid,
    .home-grid,
    .hero-home-inner {
        width: min(1100px, calc(100% - 30px));
    }


    /*
     * 7 colonnes restent visibles,
     * mais on réduit les espaces.
     */

    .home-stats-grid,
    .home-grid {
        gap: 10px;
    }

    .home-stat-card {
        padding: 13px;

        gap: 9px;
    }

    .home-stat-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        font-size: 22px;
    }

    .home-stat-card strong {
        font-size: 17px;
    }

    .home-stat-card span {
        font-size: 11px;
    }

    .home-panel {
        padding: 14px;
    }

    .supporter-row {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            auto;

        column-gap: 5px;
    }

    .supporter-rank {
        width: 27px;
        height: 27px;

        font-size: 12px;
    }

    .supporter-info strong {
        font-size: 11px;
    }

    .supporter-coins {
        font-size: 11px;
    }
}


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

@media (max-width: 900px) {

    .header-container,
    .nav-container,
    .navbar-container {
        width: calc(100% - 24px);
    }

    header nav,
    .nav-links {
        gap: 12px;
    }

    header nav a,
    .nav-links a {
        font-size: 13px;
    }


    /* HERO */

    .hero-home-inner {
        width: calc(100% - 24px);

        grid-template-columns: 1fr;

        gap: 25px;

        padding: 45px 0;
    }

    .hero-copy h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }


    /*
     * 7 cartes deviennent 2 colonnes
     * sur tablette/mobile large.
     */

    .home-stats-grid,
    .home-grid {
        width: calc(100% - 24px);

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .home-stat-card {
        min-height: 90px;
    }

    .home-panel {
        min-height: auto;
    }
}


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

@media (max-width: 600px) {

    header {
        position: relative;
    }

    header nav,
    .nav-links {
        display: none;
    }

    .hero-home-inner {
        width: calc(100% - 20px);

        padding: 35px 0;
    }

    .hero-copy h1 {
        font-size: 40px;

        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .home-btn {
        width: 100%;
    }


    /*
     * Sur téléphone :
     * 1 carte par ligne.
     */

    .home-stats-grid,
    .home-grid {
        width: calc(100% - 20px);

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .home-stat-card {
        min-height: 90px;

        padding: 16px;
    }

    .home-panel {
        min-height: auto;

        padding: 16px;
    }

    .supporter-row {
        min-height: 55px;
    }

    .supporter-info strong {
        font-size: 13px;
    }

    .supporter-coins {
        font-size: 12px;
    }
}


/* =========================================================
   TRÈS PETIT MOBILE
========================================================= */

@media (max-width: 400px) {

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-live-card {
        padding: 16px;
    }

    .home-stat-card {
        padding: 14px;
    }

    .home-stat-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .supporter-row {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            auto;
    }
}

/* =========================================================
   CORRECTION CARTES DU HAUT - 7 COLONNES
========================================================= */

.home-stats-grid {
    width: min(1450px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;

    align-items: stretch;
}

.home-stat-card {
    width: 100%;
    min-width: 0;

    height: 104px;
    min-height: 104px;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 10px;

    overflow: hidden;
}

/* Icône */
.home-stat-card .home-stat-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;
    flex: 0 0 42px;

    font-size: 23px;
}

/* Partie texte */
.home-stat-card > div:last-child {
    min-width: 0;
    flex: 1;
}

/* Gros chiffre / titre */
.home-stat-card strong {
    display: block;

    width: 100%;

    font-size: 17px;
    line-height: 1.05;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

/* Sous-titre */
.home-stat-card span {
    display: block;

    margin-top: 5px;

    font-size: 11px;

    line-height: 1.15;

    white-space: normal;
}

/* Top Supporters */
.home-stat-ranking strong {
    font-size: 17px;

    line-height: 1.05;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}


/* =========================================================
   BAS : EXACTEMENT LES MÊMES 7 COLONNES
========================================================= */

.home-grid {
    width: min(1450px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 16px;

    align-items: stretch;
}

.home-panel {
    width: 100%;
    min-width: 0;

    min-height: 545px;

    overflow: hidden;
}


/* =========================================================
   TOP SUPPORTERS - PSEUDOS
========================================================= */

.supporter-row {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        auto;

    align-items: center;

    column-gap: 7px;

    min-height: 53px;

    border-bottom: 1px solid #292d34;
}

.supporter-rank {
    width: 29px;
    height: 29px;

    min-width: 29px;
}

.supporter-info {
    min-width: 0;

    overflow: hidden;
}

.supporter-info strong {
    display: block;

    width: 100%;

    font-size: 12px;

    line-height: 1.15;

    /*
     * Le pseudo peut revenir à la ligne,
     * mais ne sera plus coupé avec ...
     */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.supporter-coins {
    flex-shrink: 0;

    white-space: nowrap;

    font-size: 12px;

    color: #ff7a00;

    font-weight: 900;
}


/* =========================================================
   TOP CADEAUX
========================================================= */

.gift-row,
.gifts-row,
.top-gift-row {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 7px;

    min-height: 53px;

    border-bottom: 1px solid #292d34;
}


/* =========================================================
   TOP LIKES
========================================================= */

.like-row,
.likes-row,
.top-like-row {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 7px;

    min-height: 53px;

    border-bottom: 1px solid #292d34;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .home-stats-grid,
    .home-grid {
        gap: 10px;
    }

    .home-stat-card {
        padding: 10px;

        gap: 7px;
    }

    .home-stat-card .home-stat-icon {
        width: 38px;
        height: 38px;

        min-width: 38px;
        flex-basis: 38px;

        font-size: 20px;
    }

    .home-stat-card strong,
    .home-stat-ranking strong {
        font-size: 15px;
    }

    .home-stat-card span {
        font-size: 10px;
    }
}


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

@media (max-width: 900px) {

    .home-stats-grid,
    .home-grid {
        width: calc(100% - 24px);

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .home-stat-card {
        height: auto;
        min-height: 90px;
    }
}


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

@media (max-width: 600px) {

    .home-stats-grid,
    .home-grid {
        width: calc(100% - 20px);

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .home-stat-card {
        min-height: 90px;

        padding: 14px;
    }

    .home-stat-card strong,
    .home-stat-ranking strong {
        font-size: 18px;
    }

    .home-stat-card span {
        font-size: 12px;
    }
}