/* ============================================================================
   VARIABLES GLOBALES
   ============================================================================ */
   :root {
    --primary-color: #2f4b78;
    --secondary-color: #142137;
    --accent-color: #84d1f4;
    --success: #28a745;
    --error: #dc3545;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --bg-primary: #2f4b78;
    --bg-secondary: #142137;
    --border-light: rgba(255,255,255,0.1);
    --border-radius-md: 10px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 4px 15px rgba(0,0,0,0.3);
    --gradient-primary: linear-gradient(135deg, #2f4b78, #84d1f4);
    --gradient-secondary: linear-gradient(135deg, #142137, #2f4b78);
    --gradient-cool: linear-gradient(135deg, #84d1f4, #2f4b78);
    --transition-speed: 0.3s ease;
    --header-height: 90px;
  }
  
  /* ============================================================================
     RESET & GLOBAL
     ============================================================================ */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
  }
  
  /* ============================================================================
     HEADER & NAVIGATION
     ============================================================================ */
  .header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--text-light);
    box-shadow: var(--shadow-md);
  }
  
  .header {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: var(--header-height);
  }
  
  .header-container {
    max-width: 100%;
    margin: 0 35px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 50px;
    width: auto;
  }
  
  .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  
  /* Navigation Desktop */
  .nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    width: 100%;
    justify-content: space-between;
  }
  
  .nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    padding: 0.5rem 1rem;
    border-radius: 6px;
  }
  
  .nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    transform: translateY(-2px);
  }
  .section-LogHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .language-selector {
    position: relative;
  }
  
  .language-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
  }
  
  .language-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }
  
  .language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--text-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed);
    z-index: 1000;
    margin-top: 8px;
  }
  
  .language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .language-option {
    background: none;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
  }
  
  .language-option:first-child {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  }
  
  .language-option:last-child {
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  }
  
  .language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .user-menu-container {
    position: relative;
  }
  
  .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600 !important;
    transition: all var(--transition-speed) !important;
    cursor: pointer;
  }
  
  .btn-login:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
  }
  
  .btn-login img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
  }
 
  
  .user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--text-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition-speed);
  }
  
  .dropdown-item:hover {
    background: var(--bg-light);
  }
  
  /* Menu Hamburger Mobile */
  .header-controls {
    display: none;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }
  
  .menu-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }
  
  .menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-speed);
  }
  
  .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .language-btn-mobile {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
  }
  
  .language-btn-mobile:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }
  




  /* ============================================================================
     SIDEBAR MOBILE
     ============================================================================ */
  .nav-overlay {
   
  }
  

  
  .nav-sidebar {
    position: fixed;
    left: 0;
    width: 400px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform var(--transition-speed);
    overflow-y: auto;
  }
  
  .nav-sidebar.show {
    transform: translateX(0);
  }
  
  .nav-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: flex-end;
  }
  
  .close-nav-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    transition: all var(--transition-speed);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-nav-sidebar:hover {
    color: var(--primary-color);
    transform: scale(1.2);
  }
  
  .nav-sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .nav-sidebar-content a {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    border-left: 4px solid transparent;
  }
  
  .nav-sidebar-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 2rem;
  }
  
  /* ============================================================================
     LANGUAGE SIDEBAR MOBILE
     ============================================================================ */
     .language-btn-mobile {
   
      background: none;
      border: none;
      color: var(--primary-color);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      transition: all var(--transition-speed);
  }
  
  .language-btn-mobile:hover {
      background-color: rgba(255, 255, 255, 0.15);
      transform: scale(1.05);
  }
  .language-sidebar {
      position: fixed;
      right: -350px;
      top: 0;
      width: 350px;
      height: 100vh;
      background: var(--text-light);
      box-shadow: var(--shadow-lg);
      z-index: 2000;
      transition: right var(--transition-speed);
      overflow-y: auto;
    }
    .language-sidebar.show {
      right: 0;
    }
    
    .sidebar-header {
      background: var(--primary-color);
      color: var(--text-light);
      padding: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .sidebar-header h3 {
      margin: 0;
      font-size: 18px;
    }
    
    .close-sidebar {
      background: none;
      border: none;
      color: var(--text-light);
      font-size: 24px;
      cursor: pointer;
      padding: 0;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .sidebar-content {
      padding: 20px 0;
      display: flex;
      flex-direction: column;
    }
    
    .sidebar-language-option {
      background: none;
      border: none;
      padding: 15px 20px;
      text-align: left;
      cursor: pointer;
      color: var(--text-dark);
      font-size: 16px;
      transition: all 0.3s;
      border-bottom: 1px solid #eee;
    }
    
    .sidebar-language-option:hover {
      background-color: var(--bg-light);
      color: var(--primary-color);
      font-weight: bold;
      padding-left: 30px;
    }
    
    .sidebar-language-option.active {
      background-color: var(--accent-color);
      color: var(--primary-color);
      font-weight: bold;
    }
  
  /* ============================================================================
     BODY DASHBOARD
     ============================================================================ */
     .body-dashboard {
      display: flex;
      min-height: calc(100vh - var(--header-height));
      background-color: var(--bg-secondary);
  }
  
  
  .sidebar {
    position: inherit;
    top: var(--header-height);
    width: 280px;
    color: var(--text-light);
    height: 100%;
}
.nav-sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
  }
  .nav-sidebar-content a {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
      padding-left: 20px;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
      border-left-color: transparent;
  }
  .nav-sidebar-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    padding-left: 30px;
    color: var(--accent-color);
  }
  
  .sidebar::-webkit-scrollbar {
    width: 8px;
  }
  
  .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  
  .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
  
  .sidebar .nav-sidebar-content {
    padding: 20px 0;
  }
  
  .dashboard-main {
    flex: 1;
    background: var(--bg-light);
    min-height: calc(100vh - var(--header-height));
    padding: 30px;
  }
  
  /* ============================================================================
     MAIN CONTENT
     ============================================================================ */
  main.main-content {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
  }
  
  .section {
    display: block;
  }
  
  /* ============================================================================
     SIDEBAR D'ÉDITION (PROFIL)
     ============================================================================ */
  #sydebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 1000;
    transition: right var(--transition-speed);
    padding: 0;
    border-radius: 0;
  }
  
  #sydebar.active {
    right: 0;
  }
  
  .compotencesContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeIn var(--transition-speed) ease;
  }
  
  .sidebarRight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 2px solid var(--bg-light);
    background: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .sidebarRight-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: -0.5px;
  }
  
  .sidebarRight-header .btn-close {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed);
  }
  
  .sidebarRight-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transform: rotate(90deg);
  }
  
  .compotencesContainer-body {
    flex: 1;
    padding: 25px 20px;
    overflow-y: auto;
    background: var(--text-light);
  }
  
  /* ============================================================================
     FORMULAIRES
     ============================================================================ */
  .form-section {
    margin-bottom: 20px;
  }
  
  .form-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .form-section input[type="text"],
  .form-section input[type="email"],
  .form-section input[type="number"],
  .form-section input[type="file"],
  .form-section select,
  .form-section textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-speed);
    background: var(--bg-light);
    color: var(--text-dark);
  }
  
  .form-section input[type="text"]:focus,
  .form-section input[type="email"]:focus,
  .form-section input[type="number"]:focus,
  .form-section input[type="file"]:focus,
  .form-section select:focus,
  .form-section textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--text-light);
    box-shadow: 0 0 0 3px rgba(132, 209, 244, 0.15);
  }
  
  .form-section select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
  }
  
  .form-section textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  .form-section input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }
  
  .form-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(132, 209, 244, 0.3);
  }
  
  .form-section input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(132, 209, 244, 0.4);
    transform: scale(1.1);
  }
  
  .form-section input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(132, 209, 244, 0.3);
  }
  
  /* ============================================================================
     BOUTONS
     ============================================================================ */
  button {
    cursor: pointer;
    transition: all var(--transition-speed);
  }
  
  .compotencesContainer button[type="submit"],
  
  #save-skills,
  #save-languages,
  #save-description,
  #add-langue,
  #add-skill,
  #btn-change-bg {
    width: 100%;
    padding: 14px 20px;
    margin-top: 15px;
    margin-bottom: 10px;
    background: var(--secondary-color);
    color: var(--bg-light);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .compotencesContainer button[type="submit"]:hover,
  #save-skills:hover,
  #save-languages:hover,
  #save-description:hover,
  #add-langue:hover,
  #add-skill:hover,
  #btn-change-bg:hover {
    background: var(--gradient-cool);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  
  .compotencesContainer button[type="submit"]:active,
  .compotencesContainer button[type="button"]:active {
    transform: translateY(0);
  }
  
  #add-skill,
  #add-langue {
    width: auto;
    padding: 10px 15px;
    margin-left: 10px;
    margin-top: 0;
  }
  
  .upload-btn {
    display: inline-block;                 /* L'élément se comporte comme un bouton */
    padding: 10px 20px;                    /* Espacement intérieur */
    border: 2px solid var(--bg-secondary); /* Bordure avec couleur dynamique */
    color: var(--text-light);              /* Couleur du texte */
    cursor: pointer;                       /* Curseur pointeur au survol */
    border-radius: var(--border-radius-md);/* Coins arrondis */
    font-weight: bold;                      /* Texte en gras */
    text-align: center;                     /* Centre le texte si multi-lignes */
    text-decoration: none;                  /* Supprime soulignement si lien */
    transition: background 0.3s, color 0.3s; /* Animation sur hover */
}

.upload-btn:hover {
  border: 2px solid var(--bg-primary); 
}


  
  /* ============================================================================
     LISTES & ITEMS
     ============================================================================ */
  #selected-skills-list,
  #langues-container {
    list-style: none;
    padding: 0;
    margin: 15px 0;
  }
  
  .skill-item,
  .langue-item,
  .location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    margin: 10px 0;
    border-left: 4px solid var(--accent-color);
    transition: all var(--transition-speed);
    animation: slideIn var(--transition-speed) ease;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .skill-item:hover,
  .langue-item:hover,
  .location-item:hover {
    background: var(--text-light);
    box-shadow: var(--shadow-sm);
    border-left-color: var(--primary-color);
  }
  
  .skill-item span,
  .langue-item span,
  .location-item strong {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
  }
  
  .btn-delete {
    background-color: red;
   
  }
  
  .btn-delete:hover {

  }
  
  /* ============================================================================
     CHARACTER COUNT
     ============================================================================ */
  .character-count {
    margin-top: 12px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    color: var(--text-dark);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .character-count span:first-child {
    font-weight: 600;
    color: var(--accent-color);
  }
  
  /* ============================================================================
     ÉTATS VIDES
     ============================================================================ */
  .empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-style: italic;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    margin: 20px 0;
    border: 2px dashed rgba(0, 0, 0, 0.1);
  }
  
  .empty-message {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
  }
  
  /* ============================================================================
     VIGNETTE PROFIL
     ============================================================================ */
  .vignette {
    background-image: url('../images/cover/532181848.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    position: relative;
  }
  
  .vignette::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-md);
    z-index: 1;
  }
  
  .vignette-info {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 2;
  }
  
  .box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 60px;
    padding: 5px;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed);
  }
  
  .box:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
  }
  
  #fileInputImgProfile {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  
  .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .vigte {
    flex: 1;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
  }
 
  .langi {
    width: 50px;
    height: 50px;

  }
  
  .itemVigteinfo {
    margin-bottom: 20px;
  }
  
  .itemVigteinfo_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  
  .usernameLabel h1 {
    font-size: 2rem;
    color: var(--text-light);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .langi {
    cursor: pointer;
    transition: transform var(--transition-speed);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:var(--primary-color)
  }
  
  .langi:hover {
    transform: scale(1.1);
  
  }
  
  .langi img {
    filter: brightness(0) invert(1);
  }
  
  .itemVigteDescription {
    margin-top: 15px;
  }
  
  #view-profile {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    transition: all var(--transition-speed);
    text-decoration: none;
    font-weight: 600;
  }
  
  #view-profile:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
  }
  
  .desktop-text {
    display: inline;
  }
  
  .mobile-icon {
    display: none;
  }
  
  /* ============================================================================
     BOX INFOS
     ============================================================================ */
  .box-item-info {
    background: transparent;
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-top: 20px;
    position: relative;
    z-index: 2;
  }
  
  .donne {
    width: 100%;
    display: flex;
    gap: 15px;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    border-radius: var(--border-radius-md);
  }
  
  .box-donne {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    text-align: center;
    min-width: 150px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
  }
  
  /* ============================================================================
     SECTIONS PRINCIPALES
     ============================================================================ */
  .dh-con {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--text-light);
    padding: 20px;
    border-radius: var(--border-radius-md);
  }
  
  .dh-conta {
    flex: 1;
    min-width: 300px;
  }
  
  .dt-cont {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .staat-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .staat-box h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .section-header svg {
    width: 24px;
    height: 24px;
  }
  
  .section-header strong {
    font-size: 1.1rem;
    color: var(--text-dark);
  }
  
  /* ============================================================================
     LANGUES & COMPÉTENCES
     ============================================================================ */
  .evi,
  .locali,
  .lang,
  .stat-box,
  .stay-box {
    background: var(--text-light);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
  }
  
  .langueContaine,
  #liste-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }
  
  .langueContaine span,
  #liste-skills span {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
  }
  
  .langueContaine span:hover,
  #liste-skills span:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .skill-tag {
    display: inline-block;
    background: var(--gradient-cool);
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 4px 4px 4px 0;
    box-shadow: var(--shadow-sm);
  }
  
  /* ============================================================================
     DESCRIPTION
     ============================================================================ */
  .descriptionText {
    margin-top: 10px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius-md);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 150px;
  }
  
  /* ============================================================================
     LOCALISATION
     ============================================================================ */
  .localisation-details,
  .deplacement-details {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    color: var(--text-dark);
  }
  
  .localisation-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
  }
  
  .localisation-details a:hover {
    text-decoration: underline;
  }
  
  .localisation-item {
    padding: 10px 15px;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
    font-weight: 500;
  }
  
  /* ============================================================================
     PORTFOLIO
     ============================================================================ */
  .portfolio-widget {
    background: var(--text-light);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
  }
  
  .portfolio-header {
    margin-bottom: 20px;
  }
  
  .portfolio-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
  }
  
  .file-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
  }
  
  .file-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-speed);
  }
  
  .file-item:hover {
    box-shadow: var(--shadow-md);
  }
  
  .file-item.uploading {
    opacity: 0.7;
    border-color: var(--accent-color);
  }
  
  .file-item.uploaded {
    border-color: var(--success);
  }
  
  .file-item.upload-error {
    border-color: var(--error);
  }
  
  .file-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
  }
  
  .file-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    word-break: break-all;
    font-size: 0.9rem;
  }
  
  .upload-status {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
  }
  
  .file-action {
    display: inline-block;
    padding: 6px 10px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 8px;
    transition: all var(--transition-speed);
    text-align: center;
  }
  
  .file-action:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
  }
  
  .file-delete {
    padding: 6px 10px;
    background: var(--error);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all var(--transition-speed);
    width: 40px;
  }
  
  .file-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
  }
  
  .file-delete:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }
  
  .upload-area {
    border: 2px dashed var(--text-dark);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    background: var(--bg-light);
  }
  
  .upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(132, 209, 244, 0.1);
  }
  
  .upload-area.dragover {
    border-color: var(--accent-color);
    background: rgba(132, 209, 244, 0.15);
    box-shadow: var(--shadow-md);
  }
  
  .upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .upload-icon {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: bold;
  }
  
  .upload-prompt p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
  }
  
  .upload-prompt small {
    color: #999;
    font-size: 12px;
  }
  
  .preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
  }
  
  /* ============================================================================
     MODAL PARTAGE
     ============================================================================ */
  .modalShareProfil {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  
  .modalShareProfil.active {
    display: flex;
  }
  
  .modalContent {
    background: var(--text-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
  }
  
  .closeModalSharProfile {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    background: none;
    border: none;
    transition: all var(--transition-speed);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .closeModalSharProfile:hover {
    color: var(--error);
    transform: rotate(90deg);
  }
  
  .modalContent h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
  }
  
  .modalContent p {
    margin: 15px 0;
    color: var(--text-dark);
  }
  
  .lienShareSection {
    display: flex;
    gap: 10px;
    margin: 15px 0;
  }
  
  .lienShareSection input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius-md);
    color: var(--text-dark);
  }
  
  .lienShareSection input:focus {
    outline: none;
    border-color: var(--accent-color);
  }
  
  .lienShareSection button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
  }
  
  .lienShareSection button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
  }
  
  .shareButtonsReseauSection {
    margin-top: 20px;
  }
  
  .shareButtonsReseau {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .shareBtn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-speed);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .shareBtn.facebook {
    background: #3b5998;
  }
  
  .shareBtn.facebook:hover {
    background: #2d4373;
    transform: translateY(-2px);
  }
  
  .shareBtn.twitter {
    background: #1da1f2;
  }
  
  .shareBtn.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
  }
  
  /* ============================================================================
     SCROLLBAR
     ============================================================================ */
  #sydebar::-webkit-scrollbar {
    width: 8px;
  }
  
  #sydebar::-webkit-scrollbar-track {
    background: var(--bg-light);
  }
  
  #sydebar::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
  }
  
  #sydebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
  }
  
  #sydebar {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-light);
  }
  
  /* ============================================================================
     ANIMATIONS
     ============================================================================ */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(450px);
    }
    to {
      transform: translateX(0);
    }
  }
  
  /* ============================================================================
     FOOTER
     ============================================================================ */
  .footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    border-top: 2px solid var(--accent-color);
  }
  
  .footer p {
    margin: 0;
    font-weight: 500;
  }
  
  /* ============================================================================
     RESPONSIVE - Tablets
     ============================================================================ */
  @media (max-width: 1024px) {
    #sydebar {
      width: 400px;
      right: -400px;
    }
  
    .nav {
      gap: 20px;
    }
  
    .dashboard-main {
      padding: 20px;
    }
  
    .vignette {
      height: 400px;
    }
  
    .box-donne {
      min-width: 120px;
      font-size: 12px;
      padding: 10px 8px;
    }
  
    .dh-con {
      flex-direction: column;
    }
  
    .file-list {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
  }
  
  /* ============================================================================
     RESPONSIVE - Mobile
     ============================================================================ */
  @media (max-width: 768px) {
    .header-controls {
      display: flex;
      width: 100%;
      justify-content: space-between;
      align-items: center;
    }
  
    .nav {
      display: none;
    }
  
    #sydebar {
      width: 100%;
      right: -100%;
    }
  
    .body-dashboard {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      top: auto;
    }
  
    .dashboard-main {
      padding: 15px;
    }
  
    .vignette {
      height: 350px;
      padding: 15px;
    }
  
    .box {
      width: 150px;
      height: 150px;
      margin: 30px;
    }
  
    .usernameLabel h1 {
      font-size: 1.5rem;
    }
  
    .donne {
      flex-direction: column;
      gap: 10px;
    }
  
    .box-donne {
      width: 100%;
      font-size: 12px;
      padding: 10px;
    }
  
    .dh-con {
      flex-direction: column;
      padding: 10px;
    }
  
    .staat-box {
      gap: 10px;
    }
  
    .staat-box h3 {
      font-size: 1.1rem;
    }
  
    .langueContaine,
    #liste-skills {
      gap: 6px;
    }
  
    .langueContaine span,
    #liste-skills span {
      padding: 6px 10px;
      font-size: 0.8rem;
    }
  
    .descriptionText {
      min-height: 100px;
      padding: 10px;
    }
  
    .file-list {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
  
    .upload-prompt p {
      font-size: 0.9rem;
    }
  
    .desktop-text {
      display: none;
    }
  
    .mobile-icon {
      display: inline;
    }
  
    .modalContent {
      width: 95%;
      padding: 20px;
    }
  
    .sidebarRight-header {
      padding: 15px;
    }
  
    .sidebarRight-header h2 {
      font-size: 18px;
    }
  
    .compotencesContainer-body {
      padding: 15px;
    }
  
    .form-section input,
    .form-section select,
    .form-section textarea {
      padding: 10px 12px;
      font-size: 16px;
    }
  
    .compotencesContainer button[type="submit"],
    .compotencesContainer button[type="button"],
    #save-skills,
    #save-languages,
    #save-description,
    #add-langue,
    #add-skill {
      padding: 12px 15px;
      font-size: 14px;
    }
  }
  
  /* ============================================================================
     RESPONSIVE - Small Mobile
     ============================================================================ */
  @media (max-width: 480px) {
    .btnLoginMobile{
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .header-container {
      padding: 0 0px;
    }
  
    .logo img {
      max-width: 100px;
    }
  
    .header {
      height: 70px;
    }
  
    .dashboard-main {
      padding: 10px;
    }
  
    .vignette {
      height: 400px;
      padding: 10px;
      margin-bottom: 15px;
    }
  
    .vignette-info {
      gap: 10px;
    }
  
    .box {
      width: 120px;
      height: 120px;
      margin: 20px;
    }
  
    .usernameLabel h1 {
      font-size: 1.2rem;
    }
  
    .itemVigteinfo_header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .langi {
      align-self: flex-end;
    }
  
    .box-item-info {
      padding: 10px;
      margin-top: 10px;
    }
  
    .donne {
      gap: 8px;
    }
  
    .box-donne {
      width: 100%;
      font-size: 11px;
      padding: 8px;
      min-width: 100%;
    }
  
    .dh-con {
      padding: 10px;
      gap: 10px;
    }
  
    .evi,
    .locali,
    .lang,
    .stat-box,
    .stay-box,
    .portfolio-widget {
      padding: 15px;
      margin-bottom: 15px;
    }
  
    .staat-box h3 {
      font-size: 1rem;
    }
  
    .section-header strong {
      font-size: 1rem;
    }
  
    .langueContaine,
    #liste-skills {
      gap: 4px;
    }
  
    .langueContaine span,
    #liste-skills span {
      padding: 5px 8px;
      font-size: 0.75rem;
    }
  
    .descriptionText {
      padding: 10px;
      min-height: 100px;
      font-size: 13px;
    }
  
    .character-count {
      padding: 10px;
      font-size: 12px;
    }
  
    .upload-area {
      padding: 15px;
    }
  
    .upload-icon {
      font-size: 2rem;
    }
  
    .upload-prompt p {
      font-size: 0.8rem;
      margin: 5px 0;
    }
  
    .upload-prompt small {
      font-size: 10px;
    }
  
    .file-list {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .modalContent {
      width: 98%;
      padding: 15px;
    }
  
    .lienShareSection {
      flex-direction: column;
    }
  
    .lienShareSection button {
      width: 100%;
    }
  
    .shareButtonsReseau {
      flex-direction: column;
    }
  
    .shareBtn {
      width: 100%;
    }
  
    .skill-item,
    .langue-item,
    .location-item {
      padding: 10px 12px;
      flex-direction: column;
      align-items: flex-start;
    }
  
    .btn-delete {
      align-self: flex-end;
    }
  
    .sidebarRight-header {
      padding: 12px;
    }
  
    .sidebarRight-header h2 {
      font-size: 16px;
    }
  
    .sidebarRight-header .btn-close {
      width: 35px;
      height: 35px;
      font-size: 24px;
    }
  
    .compotencesContainer-body {
      padding: 12px;
    }
  
    .form-section label {
      font-size: 12px;
    }
  
    .form-section input,
    .form-section select,
    .form-section textarea {
      padding: 10px;
      font-size: 14px;
    }
  
    .compotencesContainer button[type="submit"],
    .compotencesContainer button[type="button"],
    #save-skills,
    #save-languages,
    #save-description,
    #add-langue,
    #add-skill {
      padding: 10px 12px;
      font-size: 13px;
      margin-top: 10px;
    }
  
    #add-skill,
    #add-langue {
      width: 100%;
      margin-left: 0;
    }
    .sidebar{
      display: none;
    }
  }