 
   
   body { font-family: Arial, sans-serif; font-size: 14px; background-color: #f5f5f5; margin: 0; }
        header { background-color: #333; color: #fff; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }
        header a { color: #fff; text-decoration: none; margin-left: 10px; }
        .container { padding: 15px; }
        .roots a {
            display: inline-block;
            padding: 6px 10px;
            margin-right: 4px;
            margin-bottom: 4px;
            text-decoration: none;
            border-radius: 4px;
            background-color: #ddd;
            color: #000;
        }
        .roots a.active {
            background-color: #007bff;
            color: #fff;
        }

        a{  
            text-decoration: none;
            color: #000;
        }
     
        .folder { font-weight: bold; }
        .folder a { 
            text-decoration:none; 
            color:#000;
            padding-top: 14px;
            display: inline-block;
        }
         .folder a:hover { 
            color:#007BFF;
         }

        .foldername{
            margin-left: 3px;
            margin-bottom: 14px;
            display: inline-block;
            vertical-align: middle;
        }

        .actions form { display: inline; }
        input[type="text"] {
            padding: 4px;
        }
        .forms { margin-top: 15px; display: flex; gap: 20px; flex-wrap: wrap; }
        .forms form {
            background-color: #fff;
            padding: 10px;
            border-radius: 4px;
            border: 1px solid #ddd;
        }
       
        .path {
            margin-top: 40px;
            font-size: 20px;
            color: #000;
        }
        .copy-url-input {
            width: 100%;
            max-width: 420px;
        }



            .login-container {
                max-width: 350px;
                margin: 80px auto;
                background-color: #fff;
                padding: 20px;
                border-radius: 6px;
                box-shadow: 0 0 10px rgba(0,0,0,0.1);
            }
            label { display: block; margin-bottom: 5px; }
            input[type="text"], input[type="password"] {
                width: 100%;
                padding: 8px;
                margin-bottom: 10px;
                border: 1px solid #ccc;
                border-radius: 4px;
            }
            button {
                padding: 8px 16px;
                border: none;
                border-radius: 4px;
                background-color: #007bff;
                color: #fff;
                cursor: pointer;
            }
            .error { color: red; margin-bottom: 10px; }

        h1 { margin-bottom:20px; }




        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            background-color: #fff;
        }
        th, td {
            padding: 6px 8px;
            border-bottom: 1px solid #eee;
        }
        th { background-color: #f0f0f0; text-align: left; }

        form { display:inline-block; margin:0; }

        input[type="text"], input[type="password"] {
            padding:5px; width:160px;
        }


         button {
            padding: 4px 8px;
            border-radius: 4px;
            border: none;
            background-color: #007bff;
            color: #fff;
            cursor: pointer;
        }
        button.delete {
            color: #dc3545;
            background-color: #fff;
        }

        button.replace {
            color: #000;
            background-color: #fff;
        }

        button.password {
            color: #fff;
            background-color: #333;
            
        }

        .lien{
            text-decoration: none;
            color:#000;
            font-weight: bold;
        }
        .lien:hover{
            color:#007bff;
        }

        button.small { 
            padding:3px 6px; 
            font-size:12px; 
        }

        .card {
            background:#fff; 
            padding:15px; 
            width:400px;
            border-radius:6px; 
            margin-bottom:20px;
            border:1px solid #ddd;
        }


        /* ---- MODAL ---- */

        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(3px);
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            padding: 25px;
            border-radius: 10px;
            width: 350px;
            box-shadow: 0 0 20px rgba(0,0,0,0.2);
            animation: fadeIn .3s ease;
        }

        .modal h3 {
            margin-top: 0;
            margin-bottom: 15px;
        }

        .close-modal {
            float: right;
            cursor: pointer;
            font-size: 18px;
            color: #666;
        }

        .close-modal:hover {
            color: black;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }


        .copy-link{
            cursor: pointer;
        }


        


 /* Aspect général du champ fichier (on laisse visible le nom du fichier choisi) */
  #file {
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    padding: 6px;
    background: #fff;
  }

  /* Style du bouton natif (navigateurs modernes) */
  #file::file-selector-button {
    background: #ddd;        /* même style que "Enregistrer" */
    color: #555555;
    border: none;
    border-radius: 2px;
    padding: 10px 16px;
    margin-right: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform .05s ease, background .2s ease;
  }

  /* Hover / Active */
  #file:hover::file-selector-button {
    background: #b6b6b6;
  }
  #file::file-selector-button {
    transform: translateY(1px);
  }

  /* Focus accessible */
  #file:focus-visible::file-selector-button {
    outline: 2px solid #ddd;
    outline-offset: 2px;
  }

  /* ---- Fallback WebKit (Safari, vieux Chrome) ---- */
  #file::-webkit-file-upload-button {
    background: #ddd;
    color: #555;
    border: none;
    border-radius: 2px;
    padding: 10px 16px;
    margin-right: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform .05s ease, background .2s ease;
  }
  #file:hover::-webkit-file-upload-button {
    background: #b6b6b6;
  }
  #file:active::-webkit-file-upload-button {
    transform: translateY(1px);
  }