/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f8fc;
  color: #2c3e50;
}

.container {
  display: flex;
  padding-top: 20px; /* Si vous avez une navbar en haut */
}


  /* 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; 
  }

/* Main Content */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 270px;
    position: relative;
  }
  

.content h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.sections {
  display: flex;
  gap: 20px;
}

.izly-section, .menu-section {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 40%; 
    margin-left: 30px;
    height: 75vh;
}


/* IZLY Section */

.izly-logo img {
  width: 40%;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 100px;
}


.izly-balance {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #77e2c572;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
}
  
.izly-balance .amount {
    font-weight: bold;
}

.izly-options {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 10px;
  height: 25vh;
}

.option {
  flex: 1;
  text-align: center;
  background-color: #77e2c572;;
  padding: 10px;
  border-radius: 20px;
  font-size: 14px;
}

.option a {
  color:#182E68;
  font-weight: bold;
  margin-top: 5px;
}

.option ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  font-size: 14px;
}

/* CROUS Menu Section */
.menu-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%; 
  }
  
  .menu-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 90%;
    margin: 0 auto; 
  }
  
  .menu-category {
    background-color:#77e2c572;
    padding-bottom: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .menu-category h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
  }
  
  .menu-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.5; 
  }
  
  
  .menu-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .menu-navigation button {
    background-color: #eef4fb;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
  }
  
  .menu-navigation button:hover {
    background-color: #d9e8f5;
  }
  
  
/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 70px;
    width: 100%;
  }
  
  .action-buttons button {
    background-color:#77E2C6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 30%;
    height: 7vh;
    text-align: center;
  }
  
  .action-buttons button:hover {
    background-color:#62bea6;
  }

  /* 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;
}

.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-color: #ccc;
}

/* carte aux alentours */

#map {
  height: 80vh; 
  margin-left: 245px; 
  margin-right: 5px; 
  border: 2px solid #ddd; 
  border-radius: 10px; 
}

.map-title h1 {
  margin-left: 300px; 
  padding-left: 0; 
}

.aux-alentours{
  padding-top: 50px;
  padding-bottom: 50px;
}

.popup-content {
  text-align: center;
  font-size: 14px;
}

.popup-content img {
  width: 100px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.popup-content button {
  background-color: #77E2C6;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}
.popup-content button:hover {
  background-color: #77e2c58c;
}

.popup-container {
  width: 300px;
  background-color: #DFF9F6;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.popup-header {
  background-color: #002851;
  color: white;
  text-align: center;
  font-size: 16px;
  padding: 8px;
  font-weight: bold;
}

.popup-body {
  display: flex;
  padding: 10px;
  gap: 10px;
  align-items: center;
}

.popup-body img {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.popup-info {
  text-align: left;
  font-size: 14px;
  flex: 1;
}

.popup-info p {
  margin: 5px 0;
}

.popup-info button {
  background-color: #002851;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.popup-info button:hover {
  background-color: #004080;
}
