/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f8fc;
  }
  
@font-face {
    font-family:"Inter";
    src: url(fonts/Inter/Inter-VariableFont_opsz,wght.ttf);
}

  .container {
    display: flex;
    padding-top: 20px; /* Si vous avez une navbar en haut */
  }
  
/* Main Content */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 270px;
    position: relative;
  }
  
.main-container{
    padding: 20px;
}
    /* Navigation Bar */
  
  .dark-mode {
      background-color: #2c3e50;
      color: white;
  }
  
  .sidebar {
      background-color: #182E68;
      color: white;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-radius: 0 10px 10px 0;
      height: 95vh; 
      width: 200px;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
    }

  
  .sidebar h2 {
      font-size: 20px;
      display: flex;
      align-items: center;
  }
  
  .sidebar h2 img {
      margin-right: 10px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
  }
  
  .sidebar ul {
      list-style: none;
      padding: 0;
  }
  
  .sidebar ul li {
      margin: 20px 0;
  }
  
  .sidebar ul li a {
      color: white;
      text-decoration: none;
      font-size: 18px;
      display: flex;
      align-items: center;
  }
  
  .sidebar ul li a img {
      width: 20px;
      margin-right: 10px;
  }
  
  .sidebar ul li a:hover {
      color: #77E2C6;;
  }
  
  .settings {
      margin-top: auto;
      padding-top: 20px;
  }
  
  .settings ul {
      list-style: none;
      padding: 0;
  }
  
  .settings ul li {
      margin: 15px 0;
  }
  
  .settings ul li a {
      color: white;
      text-decoration: none;
      font-size: 18px;
      display: flex;
      align-items: center;
  }
  
  .settings ul li a img {
      width: 20px;
      margin-right: 10px;
  }
  
  .settings ul li a:hover {
      color: #77E2C6;
  }
  
  .dark-mode-toggle {
      margin-top: 20px;
      justify-content: center;
  }
  
  .dark-mode-toggle button {
      background-color: #2C3E50;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
  }
  
  .dark-mode-toggle button:hover {
      background-color: #77E2C6;;
  }
  
  .dark-mode-toggle button span {
      font-size: 16px;
  }
  
  .toggle {
    position: relative;
    width: 80px; 
    height: 40px; 
    background-color: #ccc;
    border-radius: 40px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 20px;
    }
  
    .toggle .circle {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 36px;
        height: 36px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }
  
    .toggle.active .circle {
        transform: translateX(40px);
    }
  
    .toggle .sun,
    .toggle .moon {
        position: absolute;
        font-size: 16px;
        color: white;
        pointer-events: none;
        top: 50%;
        transform: translateY(-50%);
    }
  
    .toggle .sun {
        left: 10px;
    }
  
    .toggle .moon {
        right: 10px;
    }
  
  main {
      margin-left: 270px;
      padding: 20px;
  }
  
  .welcome {
      text-align: center;
      margin: 20px 0;
      padding: 20px;
      background-color: #ecf0f1;
      border-radius: 8px;
  }
  
  .section {
      display: flex;
      gap: 20px;
      margin-bottom: 30px;
  }
  
  .section .card {
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      flex: 1;
      padding: 20px;
  }
  
  .footer {
      background-color: #7f8c8d;
      height: 100px;
      margin-top: 50px;
  }
  
  
  /* fil d'ariane */
  .breadcrumb {
      font-size: 14px;
      color: #555;
    }
    
    .breadcrumb a {
      text-decoration: none;
      color: #182E68;
    }
    
    .breadcrumb a:hover {
      text-decoration: underline;
      color: #77E2C6;;
    }
    
    .breadcrumb span {
      color: #555;
      font-weight: bold; 
    }

  /* header */
  .header-right {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 220px;
    justify-content: flex-end;
    gap: 20px;
}


/* Barre de recherche */
.search-container {
display: flex;
align-items: center;
gap: 5px;
max-width: 270px;
}

.search-input {
width: 100%;
padding: 8px 12px;
border: 1px solid #D1D5DB;
border-radius: 5px;
font-size: 14px;
}

.search-input:focus {
outline: none;
border-color: #1ABC9C;
}

.search-btn {
background-color: white;
border: none;
cursor: pointer;
font-size: 18px;
color: #182E68;
}

/* Actions utilisateur */
.user-actions {
display: flex;
align-items: center;
gap: 15px;
}

.user-actions a{
    text-decoration: none;
    color: #182E68;
}

.action-btn {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
}

.user-profile {
display: flex;
align-items: center;
gap: 10px;
}

.profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-image: url('images/profil.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Main Content */
main {
    margin-left: 250px;
    padding: 20px;
}

.big-banner h2{
color: white;
font-size: 2.5rem;
}

.big-banner {
    width: 100%;
    height: 300px;
    background: url('images/etudiantlife.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.section {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #182E68;
}

.section-list {
    color: #34495e;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 35px; 
    width: 100%; 
    box-sizing: border-box;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    
    
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px; 
    width: 100%; 
    box-sizing: border-box;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    overflow-y: auto;
    scrollbar-color: #1abc9cc9 #f5f8fc; 
    scrollbar-width: 10px;
    max-height: 250px;
}

.card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 5rem;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card span {
    font-size: 1rem;
    color: #2c3e50;
    flex: 1;
}

.card-link {
    background-color: #77E2C6;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}


.card a {
    background-color: #77E2C6;
    color: black;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.card a:hover {
    background-color: #5bae98;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 200px;
        padding: 15px;
    }

    header {
        margin-left: 200px;
        padding: 10px;
    }

    main {
        margin-left: 200px;
        padding: 10px;
    }

    .big-banner {
        height: 200px;
        font-size: 18px;
    }
}

@media screen and (max-width: 576px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
    }

    header {
        margin-left: 0;
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    main {
        margin-left: 0;
        padding: 10px;
    }

    .big-banner {
        width: 100%;
        height: 150px;
        font-size: 16px;
    }

    .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}