/* Styles de base pour MOBILE FIRST */
body {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    overflow-x: hidden;
    background-color: #eeedf4;
}

/* Conteneur principal */
.main-content {
    width: 95%;
    max-width: 524px;
    margin: 40px auto;
}

/* Conteneur de la carte de points */
.zone-content1 {
    height: auto;
    min-height: 181px;
    padding: 20px 20px 20px 5px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: black;
    border: 1px solid #e7e6ee;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

/* Bande diagonale verte pour mobile et tablette */
.zone-content1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 76.6px;
    height: 100%;
    background-color: rgb(35, 75, 39);
    border-right: 1px solid #e7e6ee;
    clip-path: polygon(0px 182px, 0px 0px, 76.6px 0px);
    z-index: 1;
}

/* Contenu de la carte pour mobile */
.zone-content1-mobile-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

/* Masquer le contenu desktop par défaut */
.zone-content1-desktop-content {
    display: none;
}

.team-visuals-mobile {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
    max-width: 100px;
    margin-right: 15px;
    height: auto;
}

.team-logo-mobile {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.team-stats-container-mobile {
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.stats-grid-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 0;
}

/* Styles généraux pour les stat-item */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}

.stat-label {
    font-weight: bold;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
}

.stat-value {
    font-weight: 700;
    font-size: 18px;
    color: rgb(35, 75, 39);
    margin-top: 5px;
}

.logo-hidden {
    display: hidden;
}

/* ----------------------------------------------------------- */
/* --- Media Queries pour les écrans de 768px et plus --- */
/* ----------------------------------------------------------- */
@media (min-width: 768px) {
    .main-content {
        max-width: 702px;
    }
    
    .zone-content1 {
        height: 90px;
        width: 100%;
        min-height: unset;
        padding: 0;
        box-sizing: border-box;
        background-color: #ffffff;
        color: black;
        border: 1px solid #e7e6ee;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-left: 76.6px;
    }

    .zone-content1-mobile-content {
        display: none;
    }

    .zone-content1-desktop-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding: 10px;
        z-index: 2;
    }

    .zone-content1-desktop-content .stats-left-column,
    .zone-content1-desktop-content .stats-right-column {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        flex-grow: 1;
        padding: 0;
        margin: 0;
        justify-content: space-around;
    }
    
    .zone-content1-desktop-content .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 5px;
        text-align: center;
    }

    .zone-content1-desktop-content .stat-label {
        margin-right: 0;
        margin-bottom: 5px;
        white-space: nowrap;
    }

    .zone-content1-desktop-content .team-visuals {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 85px;
        width: auto;
        flex-shrink: 0;
        margin: 0 15px;
        overflow: visible;
    }

    .zone-content1-desktop-content .team-visuals::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) skewX(-20deg);
        width: 50%;
        height: 100%;
        background-color: #A78D7F;
        z-index: -1;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }
    
    .zone-content1-desktop-content .team-visuals .team-logo {
        height: 98%;
        max-width: 100px;
        width: auto;
        object-fit: contain;
        content: url('../img/teams/gat.png');
        position: relative;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------- */
/* --- Media Query pour les écrans de 990px et plus --- */
/* ----------------------------------------------------------- */
@media (min-width: 990px) {
    .main-content {
        max-width: 944px;
        position: relative;
    }
    
    .zone-content1 {
        width: 100%;
        height: 90px;
        overflow: visible;
        display: flex;
        align-items: center;
        padding-left: 76.6px;
        box-sizing: border-box;
    }

    .zone-content1::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 76.6px;
        height: 100%;
        background-color: rgb(35, 75, 39);
        border-right: 1px solid #e7e6ee;
        clip-path: polygon(0px 182px, 0px 0px, 76.6px 0px);
        z-index: 1;
    }

    .zone-content1-desktop-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding: 10px;
        z-index: 2;
    }

    .stats-grid-desktop {
        display: flex;
        flex-grow: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        gap: 20px;
    }

    .stats-grid-desktop .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 5px;
        text-align: center;
    }

    .stats-grid-desktop .stat-label {
        font-weight: bold;
        font-size: 11px;
        color: #555;
        text-transform: uppercase;
        margin-right: 0;
        margin-bottom: 5px;
        white-space: nowrap;
    }

    .stats-grid-desktop .stat-value {
        font-weight: 700;
        font-size: 18px;
        color: rgb(35, 75, 39);
        margin-top: 5px;
    }
    
    .zone-content1-desktop-content .stats-left-column,
    .zone-content1-desktop-content .stats-right-column {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        gap: 20px;
    }
    
    .zone-content1-desktop-content .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 5px;
        text-align: center;
    }

    .zone-content1-desktop-content .stat-label {
        font-weight: bold;
        font-size: 11px;
        color: #555;
        text-transform: uppercase;
        margin-right: 0;
        margin-bottom: 5px;
        white-space: nowrap;
    }

    .zone-content1-desktop-content .stat-value {
        font-weight: 700;
        font-size: 18px;
        color: rgb(35, 75, 39);
        margin-top: 5px;
    }

    .zone-content1-desktop-content .team-visuals {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 170px;
        width: 100px;
        overflow: visible;
        flex-shrink: 0;
        margin: 0 15px;
    }
    
    .zone-content1-desktop-content .team-visuals::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) skewX(-20deg);
        width: 60px;
        height: 90px;
        background-color: #A78D7F;
        z-index: -1;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }
    
    .zone-content1-desktop-content .team-visuals .team-logo {
        height: 160px;
        width: auto;
        max-width: none;
        object-fit: contain;
        content: url('../img/teams/gat.png');
        position: relative;
        transform: translateY(0);
    }
    
    .logo-hidden {
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        border-bottom: 40px solid #eeedf4;
        z-index: 2;
        border-top: 40px solid transparent;
    }
}


/* ----------------------------------------------------------- */
/* --- Media Query pour les écrans de 1200px et plus --- */
/* ----------------------------------------------------------- */
@media (min-width: 1200px) {
    .main-content {
       max-width: 1170px;
    }

    .zone-content1 {
        width: 100%;
    }
}


/* Styles globaux pour mobile */
.team-stats-container,
.stats-grid {
    display: none;
}