*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
     font-family: Arial, sans-serif;
       background-color: #f5f7fc;
}
.app{
    display: flex;
    min-height: 100vh;
}

.sidebar{
    width: 260px;
    background-color: #151b30;
    color: #f6f6f6;
    padding: 30px 20px;
      flex-shrink: 0;
}

.sidebar nav{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sidebar nav a{
    text-decoration: none;
    color: #aab2cb;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar nav a:hover{
   color: white;
   background-color: #35375e;
}
.sidebar h2 {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar h2 i {
    color: #60a5fa;
    font-size: 26px;
}


.sidebar nav a.active {
    background-color: #35375e;
    color: white;
}

.main-content{
    flex: 1;
    padding: 40px;
    min-width: 0;
}
.main-content h1{
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
     color: #151b30;
}

.main-content > p {
    font-size: 18px;
    color: #64748b;
    margin-top: 15px;
    padding: 10px;
}

.carte {
background-color: white;
border-radius: 12px;
flex: 1 1 250px;
padding: 25px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease;
}


.carte-icone {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.icone-bleue {
    background-color: #dbeafe;
    color: #2563eb;
}


.icone-violette {
    background-color: #f3e8ff;
    color: #9333ea;
}

.icone-verte {
    background-color: #dcfce7;
    color: #16a34a;
}



.carte h3{
    font-size: 16px;
     color: #64748b;
      margin-bottom: 15px;
}

.carte p{
    font-size: 32px;
    font-weight: 700;
    color: #151b30;
}
.carte:hover{
    transform: translateY(-5px);
}

.cartes{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 15px;
    }
}
.main-content h1 {
    font-size: 32px;
}

@media (max-width: 600px) {
    .main-content h1 {
        font-size: 24px;
    }
}


.formations{
    margin-top: 40px;
}

.formations h2{
    font-size: 24px;
    color: #151b30;
      margin-bottom: 20px;
}

.formation{
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     overflow: hidden;
}
.formation img{
     width: 100%;
     height: 150px;
     /* object-fit: cover; */
      object-fit: contain;
      background-color: #e34f26;
       display: block;
}

.formation .img-html {
    background-color: #e34f26;
}

.formation .img-css {
    background-color: #0068b8;
}

.formation .img-js {
    background-color: #ffdf00;
}

.grille-formations{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* grid-template-columns: 1fr 1fr 1fr; */
}

.formation-contenu{
    padding: 20px;
}

.formation-contenu h3{
    font-size: 20px;
     color: #151b30;
      margin-bottom: 10px;
}

.formation-contenu p{
     font-size: 14px;
       color: #64748b;
     margin-bottom: 15px;
}

.formation-infos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.formation-infos span {
    font-size: 13px;
    color: #64748b;
     display: flex;
    align-items: center;
    gap: 6px;
}

.formation-infos .fa-signal {
    color: #16a34a;
}

.formation button i {
    margin-right: 8px;
}

.formation button{
    width: 100%;
    padding: 12px;
     background-color: #35375e;
     color: white;
       border: none;
       border-radius: 8px;
         cursor: pointer;
      transition: 0.3s;    
}

.formation button:hover {
    background-color: #151b30;
}

/* Tablette */
@media (max-width: 1024px) {
    .grille-formations {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Téléphone */
@media (max-width: 600px) {
    .grille-formations {
        grid-template-columns: 1fr;
    }
}

.progression {
    margin-top: 40px;
}

.progression h2 {
    font-size: 24px;
    color: #151b30;
    margin-bottom: 20px;
}

.liste-progression {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cours-progression{
 display: flex;
  align-items: center;
    gap: 25px;
}

.cours-progression img{
    width: 60px;
     height: 60px;
      border-radius: 10px;
        object-fit: cover;
  flex-shrink: 0;
}


.progression-contenu {
    flex: 1;
    min-width: 0;
}

.progression-infos{
    display: flex;
    justify-content: space-between;
     align-items: center;
      margin-bottom: 10px;
}

.progression-infos h3 {
    font-size: 16px;
    color: #151b30;
}

.progression-infos span {
    font-size: 14px;
    font-weight: bold;
    color: #35375e;
}

.barre-progression {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.barre-remplie {
      height: 100%;
    
    border-radius: 20px;
}
.barre-html {
    width: 80%;
    background-color: #e34f26;
}
.barre-css {
    width: 50%;
    background-color: #0068b8;
}
.barre-js {
    width: 25%;
    background-color: #ffdf00;
}

.progression-contenu p{
    font-size: 13px;
     color: #64748b;
      margin-top: 8px;
}

@media (max-width: 600px) {

     .liste-progression {
        padding: 15px;
        gap: 20px;
    }


  .cours-progression {
        gap: 12px;
    }

.cours-progression img {
        width: 45px;
        height: 45px;
    }
      .progression-infos h3 {
        font-size: 14px;
    }
       .progression-contenu p {
        font-size: 12px;
    }
    
}


.mobile-header {
    display: none;
}

@media (max-width: 768px){

.mobile-header{
    display: flex;
    justify-content: space-between;
     align-items: center;
        background-color: #151b30;
        color: white;
        padding: 15px 20px;
}

.mobile-header h2 i {
        color: #60a5fa;
    }

        #menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }



}

@media (max-width: 768px) {

    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar.open {
        display: block;
    }

}



