/* Style général */
body {
    font-family: Calibri, sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
  }
  
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2e8b57;
    color: white;
    padding: 10px;
    height: auto; /* Dynamically adjusted */
    -webkit-app-region: drag;
    transition: height 0.3s ease, padding 0.3s ease;
  }
  
  .header img {
    height: 40px; /* Default size for the logo */
    transition: height 0.3s ease;
  }
  
  .header.standalone img {
    height: 30px; /* Smaller size for the logo in app mode */
  }
  
  .header h2 {
    font-size: 1.5rem; /* Default font size */
    transition: font-size 0.3s ease;
  }
  
  .header.standalone h2 {
    font-size: 1.2rem; /* Smaller font size in app mode */
  }
  
  .navbar .nav-link {
    font-size: 1rem;
    transition: font-size 0.3s ease;
  }
  
  .navbar .nav-link.standalone {
    display: none; /* Hide link when in standalone mode */
  }
  
  .dropdown {
    position: relative;
  }
  
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }
  
  .dropdown.standalone .dropbtn {
    padding: 5px 10px;
  }

  /* Ensure buttons (like Fichier dropdown) are not draggable */
  .navbar, .nav-link {
    -webkit-app-region: no-drag;
  }

  .branding img {
    height: 40px; /* Adjust size */
    margin-right: 10px;
  }

  
  .branding {
    display: flex;
    align-items: center;
  }
  
  .branding img {
    height: 40px;
    margin-right: 10px;
  }
  
  .branding h2 {
    color: white;
    margin: 0;
    font-size: 1.5em;
  }
  
  .navbar {
    display: flex;
    gap: 25px;
    align-items: center;
  }
  
  .navbar .dropdown {
    position: relative;
  }
  
  .navbar .dropbtn {
    background-color: #2e8b57;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1em;
  }
  
  .navbar .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  .navbar .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .navbar .dropdown-content a:hover {
    background-color: #f1f1f1;
  }
  
  .navbar .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* Popup styles */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 5;
  }
  
  .overlay.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 80%;
    max-width: 600px;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #2e8b57;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .popup.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
  }
  
  .popup h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2e8b57;
  }
  
  .popup form label {
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .popup form input {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
  }
  
  .popup-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
  }
  
  .popup-buttons .btn {
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #2e8b57;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .popup-buttons .btn:hover {
    background-color: #3a9c6b;
  }
  
  .popup-buttons .close-btn {
    background-color: #dc3545;
  }
  
  .popup-buttons .close-btn:hover {
    background-color: #b02a37;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f8ff;
    font-size: 0.9em;
    color: #888;
  }
  