/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* HEADER + NAV */
header.container nav {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: #ff7f7f;
    z-index: 3;
}

/* Ligne du haut */
.titre {
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
    position: relative;
}

.logo img {
    width: 3em;
    height: 3em;
    border-radius: 50%;
}

.titre h4 {
    flex: 1;
    text-align: center;
    font-size: 1.2em;
}

/* icône de déconnexion */
.index {
    position: absolute;
    right: 1em;
    top: 5em;
    transform: translateY(-50%);
}

/* Menu Icons (burger/close) */
.menu-icons {
    font-size: 1em;
    display: none;
    cursor: pointer;
    padding: 0.5em 1em;
    background: white;
}

/* Navigation Principale */
  
.nav-list {
    position: relative;
    display: flex;
    justify-content: center;
    list-style: none;
    outline: none;
    position: relative; /* pour .border-hide */
   
} 

  
  .nav-items {
    display: flex;
    border-bottom: 2px solid #405748;
  }

/* chaque item du menu */
.nav-list li {
    padding: 0em 0.3em;
    position: relative;
    margin-top: -0.8em;
}

/* suppression border-right pour le dernier item */
.nav-list li:last-child {
    border-right: none;
}

/* liens */
.nav-list a {
    color: #fff;
    font-size: 1em;
    display: flex;
    gap: 0.1em;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

/* hover */
.nav-list a:hover {
    background-color: #fff;
    color: #515050;;
}
.nav-list li.active {
    background-color: #fff;
    top: -0.1em;
  }
  .nav-list li.active a {
    cursor: pointer;
    color: #515050;;
  }
/* .border-hide: soulignement animé */
.border-hide {
    position: absolute;
    bottom: 0;
    height: 0.3em;
    background-color: #405748;
    pointer-events: none;
    display: none;
    transition: left 0.3s ease, width 0.3s ease;
    z-index: 10;
}

/* RESPONSIVE */
@media (max-width: 68.75em) {
  /* Icône burger en haut à droite */
  .menu-icons {
        display: block;
        position: fixed;
        top: -0.1em;
        right: 0.1em;
        z-index: 10;
        font-size: 1.8em;
        cursor: pointer;
        background: rgba(64, 87, 72, 0.8);
        padding: 0.3em 0.6em;
        border-radius: 0.25em;
        color: #fff;
    }

  /* Icônes burger/close */
  nav .fa-window-close {
    display: none;
  }
  nav.active .fa-window-close {
    display: block;
  }
  nav.active .fa-bars {
    display: none;
  }

  /* Menu à droite, masqué par défaut */
  .nav-list {
    position: fixed;
    top:7%;
    right: -100vw; /* caché hors de l’écran */
    height: 100vh;
    width: 100vw;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5em 1em 2em 1em;
    gap: 1em;
    font-size: 1em;
    transition: right 0.3s ease-in-out;
    z-index: 10;
    display: block;
    overflow-y: auto;
  }
  .nav-items{
    display: block;
  }

  /* Quand actif, le menu glisse depuis la droite */
  nav.active .nav-list {
    right: 0;
  }

  header.container nav {
    width: 100vw;
    height: 3em;
  }

  .nav-list li {
    padding: 1em 0;
    text-align: justify;
  }

  .nav-list a {
    color: #fff;
    width: 100%;
    padding-left: 1em;
    display: block;
  }

  .nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .border-hide {
    display: none !important;
  }

  .titre {
    padding-right: 4em; /* évite que le titre se fasse écraser par le menu */
  }
  .stats-grid {
    width: 99vw;
    margin: auto;
}
stat-box {
  width: 99vw;
  margin: auto;
}
}

  
.text p,.text h2,.text h1{
    padding: 0.3rem;
    display: inline-block;
    background-color: #101c32;
    border: 2px solid #101c32;
    /* border-radius: 50%; */
    transition: background-color 650ms;
    line-height: 2em;
    cursor: pointer;

    
    font-size: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #eee;
    text-transform: uppercase;
    align-self: normal;
}
.btn{
    padding: 1.3rem;
    display: inline-block;
    background-color: brown;
    border: 2px solid #101c32;
    border-radius: 1em;
    transition: background-color 650ms;
    line-height: 2em;
    cursor: pointer;

    
    font-size: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #eee;
    text-transform: uppercase;
}
.btn:hover{
    color: #101c32;
    background-color: rgba(0,0,0,.2);
}
.sub-menu{
    width: 20rem;
    display: block;
    position: absolute;
    border-top: 3px solid #101c32;
    background-color: #191919;
    z-index: 10;
    top: 16rem;
    opacity: 0;
    visibility: hidden;
    transition: all 650ms ease;
}
.sub-menu::before{
    content: "";
    position: absolute;
    top: 2.5rem;
    left: 3rem;
    border: 1.2rem solid transparent;
    border-bottom: #101c32;
}
.sub-menu .sub-menu::before{
    top: 9rem;
    left: 2.5rem;
    border: 1.2rem solid transparent;
    border-right: #101c32;
}
.sub-menu .sub-menu{
    border-top: none;
    border-left: 3px solid #101c32;
    top: 0;
    left: 160%;
}

.nav-list li:hover > .sub-menu{
    top: 8rem;
    opacity: 1;
    visibility: visible;
}
.sub-menu li:hover > .sub-menu{
    top: 0;
    left: 100%;
    display: block;
 }
 li.move-right{
    margin: auto 0 auto auto;
    line-height: initial;
 }



/*  */


.border-hide {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #fff; /* couleur de fond de ton menu ou page */
    pointer-events: none;
    display: none;
    transition: left 0.3s ease, width 0.3s ease;
    z-index: 10;
}

	
	body::-webkit-scrollbar{
		width:5px;
	}
	body::-webkit-scrollbar-track{
		background-color: #fff;
    transition: background-color 0.5s ease;
	}
	body::-webkit-scrollbar-thumb{
		background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.5s ease;
		border-radius: 10px;
	}
	body::-webkit-scrollbar-thumb:hover{
		background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.5s ease;
	}
    
/* div detail */
/* .stats-grid {
    max-width: 57vw;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin: auto;
    padding: 0;
    width: 96vw;
    font-family: 'Arial', sans-serif;
} */

.stat-box {
    width:96vw;
    /* max-width: 57vw; */
    background-color: #ff7f7f;
    color: #fff;
    padding: 0.5em;
    text-align: center;
    font-size: 1em;
    display: flex;
    gap: 0.5em;
    transition: transform 0.3s ease;
    border-bottom: 1px solid #eee;
}
.td{
    width: 100%;
    cursor: pointer;
    padding-top: 3%;
}

.stat-box i {
    font-size: 1.8em;
    margin-bottom: 0.3em;
    padding-right: 1.5%;
}



/* group */
/* div detail */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin: 5em auto;
    padding: 1em;
    width: 100%;
    font-family: 'Arial', sans-serif;
}

.stat-box {
    width: 23%;
    min-width: 200px;
    background: #444;
    color: #fff;
    padding: 1em;
    border-radius: 8px;
    text-align: center;
    line-height: 1.6em;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    transition: transform 0.3s ease;
}

.stat-box i {
    font-size: 1.8em;
    margin-bottom: 0.3em;
}

.stat-box:hover {
    transform: scale(1.05);
}

/* Couleurs personnalisées */
.blue { background: steelblue; }
.red { background: crimson; }
.green { background: seagreen; }
.purple { background: #6a5acd; }
.maroon { background: #800000; }
.teal { background: #008080; }
.navy { background: #000080; }
.olive { background: #808000; }
.crimson { background: #dc143c; }
.tomato { background: tomato; }
.tan { background: tan; }
.orange { background: darkorange; }
.darkred { background: darkred; }
.khaki { background: khaki; color: #000; }
.rosy { background: rosybrown; }
.burlywood { background: burlywood; }
.coral { background: lightcoral; }

/* group */
