/* Grille de base */
.form-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-grid .form-group {
  flex: 1 1 0;
}

/* Email plus large */
.form-grid .form-group-email-wide {
  flex: 2 1 0;
}

/* Label au-dessus des switches */
.switch-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #555;
}

/* Toggle switch (style iOS) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 24px;
}

.toggle-switch .slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .2s;
  border-radius: 50%;
}

/* état coché */
.toggle-switch input:checked + .slider {
  background-color: #2fbf71;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(22px);
}




/* ========================= */
/* CSS générales              */
/* ========================= */
/* Info-bulle sur les champs - IN'Side */
.password-hint {
    position: relative;
    display: inline-block;
    margin-left: 6px;
}

/* Champ Titre libelle dans QRcode / Short Url */
.input-large {
    width: 50%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}


/* Titres des blocs (cards) en vert IOP */
.card h2 {
    color: #8DC71F !important;
    font-weight: 600;
}

.hint-icon {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
}

.hint-text {
    visibility: hidden;
    opacity: 0;
    width: 260px;
    background: #ffffff;
    color: #374151;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-size: 0.80rem;
    line-height: 1.4;
    position: absolute;
    z-index: 20;

    top: 24px;
    left: -4px;

    transition: opacity 0.25s ease;
}

/* Affichage au survol */
.password-hint:hover .hint-text {
    visibility: visible;
    opacity: 1;
}


/* -------------------------------
   Les PlaceHolder
---------------------------------- */

/* Placeholders gris + italique sur inputs et textareas */
input::placeholder,
textarea::placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
}

/* Compatibilité navigateurs */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
}


/* ========================= */
/* RESET SIMPLE              */
/* ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================= */
/* PAGE LOGIN / AUTH         */
/* ========================= */

body.auth-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background: #f5f5f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  width: 100%;
  max-width: 1100px;
  padding: 24px;
}

/* Carte principale : logo + formulaire */
.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  position: relative;      /* nécessaire pour le bandeau ::after */
}

/* Bandeau coloré sur toute la largeur du bloc */
.auth-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #8CC63F, #E0007A);
  opacity: 0.75;
  pointer-events: none;
}

/* COLONNE GAUCHE : LOGO IN'SIDE */
.auth-brand {
  position: relative;
  padding: 40px 40px 32px 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #f0f2f5;
}

/* Logo */
.brand-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-inside {
  width: 380px;       /* GROS logo */
  max-width: 100%;    /* ne dépasse pas sur petits écrans */
  height: auto;
  display: block;
}

/* Bas de la colonne : texte */
.brand-subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.5;
  text-align: center;
  color: #6b7280;
}

/* COLONNE DROITE : FORMULAIRE */
.auth-form {
  padding: 40px 40px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.auth-intro {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  background-color: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #8CC63F;
  box-shadow: 0 0 0 1px rgba(140, 198, 63, 0.25);
}

/* Lien "mot de passe oublié" */
.link-small {
  font-size: 0.85rem;
  color: #E0007A;
  text-decoration: none;
}

.link-small:hover {
  text-decoration: underline;
}

/* Style générique pour tous les boutons .btn-submit */
.btn-submit {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #8DC71F; /* Vert IOP */
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.15s ease, transform 0.08s ease;
}

.btn-submit:hover {
  background-color: #7AB11A;
  transform: translateY(-1px);
}

.btn-submit:active {
  background-color: #6A9B16;
  transform: translateY(0);
}

/* Variante spécifique à la page de login */
.auth-form .btn-submit {
  width: 130px;
  margin: 0 auto;
  display: flex;
}


/* Empêche les boutons d'action de passer sur 2 lignes */
.admin-users-table td:last-child {
    white-space: nowrap;
    vertical-align: middle;
}
.admin-users-table td:last-child form {
    display: inline-block;
}



/* Icône dans le bouton si tu en remets une */
.btn-icon {
  font-size: 15px;
}

/* Alertes */
.alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
}

/* Footer texte (ancienne version si utilisée) */
.auth-footer-text {
  margin-top: 18px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* FOOTER GLOBAL */
.auth-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.auth-footer .separator {
  margin: 0 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    border-right: none;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 50px;
  }
}

@media (max-width: 600px) {
  .auth-wrapper {
    padding: 16px;
  }

  .auth-card {
    border-radius: 16px;
  }

  .auth-brand,
  .auth-form {
    padding: 26px 22px 22px 22px;
  }

  .logo-inside {
    width: 260px;
  }

  .auth-form h1 {
    font-size: 1.45rem;
  }
}

/* ========================= */
/* PORTAIL IN'SIDE - DASHBOARD */
/* ========================= */

.portal-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9fafb;
  color: #111827;
}

/* Topbar épurée */
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.portal-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-logo {
  height: 32px;
  width: auto;
}

.portal-topbar-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
}

.portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}

.portal-user-email {
  color: #4b5563;
}

.portal-topbar-link {
  color: #E0007A;
  text-decoration: none;
  font-weight: 500;
}

.portal-topbar-link:hover {
  text-decoration: underline;
}

/* Zone centrale */
.portal-main {
  max-width: 1180px;
  margin: 24px auto 32px auto;
  padding: 0 24px;
}

/* Saut de ligne dans la grille des applications */
.apps-break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

.portal-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f3f4f6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease;
}

.portal-user-icon:hover {
    background: #e5e7eb;
}

.user-avatar {
    font-size: 16px;
    color: #374151;
    pointer-events: none;
}


/* Bloc central type "Galaxie" */
.portal-hero {
  text-align: center;
  margin: 30px 0 26px 0;
}

.portal-hero-logo {
  height: 72px;
  width: auto;
  margin-bottom: 10px;
}

.portal-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d1d5db;
  text-transform: uppercase;
}

.portal-hero-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Grille des applications */
.portal-apps {
  margin-top: 18px;
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Tuiles */
.app-tile {
  position: relative;
  width: 180px;
  height: 170px;
  background: #ffffff;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  padding: 18px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.app-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(224, 0, 122, 0.08), transparent 60%),
              radial-gradient(circle at bottom right, rgba(140, 198, 63, 0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.14s ease;
}

.app-tile > * {
  position: relative;
  z-index: 1;
}

.app-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.app-tile:hover::before {
  opacity: 1;
}

/* Icône ronde */
.app-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  margin-bottom: 12px;
}

.app-icon-emoji {
  font-size: 1.7rem;
}

/* Titres et textes */
.app-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-text {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: auto;
}

/* Badge (Admin / Restreint) */
.app-chip {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.app-chip-admin {
  background: #e0f2fe;
  color: #1d4ed8;
}

.app-chip-locked {
  background: #fee2e2;
  color: #b91c1c;
}

/* État désactivé */
.app-tile-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-tile-disabled:hover {
  transform: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

/* Footer */
.portal-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* Responsive dashboard */
@media (max-width: 768px) {
  .portal-main {
    padding: 0 16px;
  }

  .portal-hero-logo {
    height: 60px;
  }

  .portal-hero-title {
    font-size: 1.8rem;
  }

  .app-tile {
    width: 150px;
    height: 160px;
  }
}

/* ===================== */
/*   ADMIN USERS STYLE   */
/* ===================== */

.admin-page-wrapper {
  max-width: 1100px;
  margin: 24px auto 40px auto;
  padding: 0 16px;
}

.admin-page-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-page-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.flash-messages {
  margin-bottom: 16px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.muted {
  color: #6b7280;
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.form-footer {
  margin-top: 14px;
  text-align: right;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

table.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.admin-users-table thead {
  background: #f3f4f6;
}

table.admin-users-table th,
table.admin-users-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

table.admin-users-table th {
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
}

.badge-inactive {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-admin {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-user {
    background: #e5e7eb;  /* gris clair */
    color: #374151;       /* gris foncé */
}

form.inline {
  display: inline;
}

.btn-small {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 6px;
}


.btn-reset {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-reset:hover {
  background: #fecaca;
}

/* Alignement et style du toggle Admin */
.admin-role-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;       /* aligne en bas par rapport au champ mot de passe */
}

/* Ligne du switch + texte */
.switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #374151;
}

/* On cache la checkbox native */
.switch-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Rail du switch */
.switch-track {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background-color 0.18s ease;
}

/* Pastille */
.switch-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transform: translateX(0);
  transition: transform 0.18s ease;
}

/* État activé */
.switch-toggle input:checked + .switch-track {
  background: #8DC71F;
}

.switch-toggle input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
}

.switch-label {
  white-space: nowrap;
}

/* Donner aux labels des switches le même style que les labels des input classiques */
.switch-label {
  font-size: 0.9rem !important;
  color: #374151 !important; /* même couleur que Prénom* */
  font-weight: 400;          /* identique aux autres labels */
  margin-bottom: 6px;        /* même espacement */
}

/* SWITCHES COMPACTS ET CENTRÉS */
.switches-compact {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
}

.switch-item {
  display: flex;
  align-items: center;
  gap: 10px; /* espace entre texte et switch */
}

/* Texte du switch = même style que les labels classiques */
.switch-text {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 400;
  white-space: nowrap;
}



/* Boutons icône (actions utilisateur : droits / reset / poubelle) */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn svg {
  transition: 0.15s ease;
}
.icon-btn:hover svg {
  transform: scale(1.15);
}

/* Couleurs des icônes d'action */
.icon-btn.conges {
  color: #0b8a6f;
}
.icon-btn.conges:hover {
  color: #0d9d7f;
}

.icon-btn.reset {
  color: #2c7be5;
}
.icon-btn.reset:hover {
  color: #1a68d1;
}

button.danger,
.icon-btn.danger {
  color: #c0392b;
}
.icon-btn.danger:hover {
  color: #e74c3c;
}


/* ===================== */
/*   QRcode STYLE        */
/* ===================== */

.qr-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.qr-image {
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.15);
}

.badge-incube {
  background: #fef3c7;
  color: #92400e;
}

.badge-mpe {
  background: #e0f2fe;
  color: #1d4ed8;
}

.badge-evenement {
  background: #fee2e2;
  color: #b91c1c;
}

.icon-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.icon-button:hover {
  opacity: 0.8;
}
/* Styles des listes déroulantes dans les formulaires admin */
.admin-page-wrapper .form-group select {
  width: 100%;
  padding: 10px 32px 10px 12px;      /* même hauteur que les inputs */
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 0.95rem;
  color: #111827;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.admin-page-wrapper .form-group select:focus {
  outline: none;
  border-color: #8DC71F;                    /* vert IOP */
  box-shadow: 0 0 0 1px rgba(140,198,63,0.25);
}

.delete-text-button {
    background: none;
    border: none;
    color: #dc2626;        /* rouge */
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.delete-text-button:hover {
    text-decoration: underline;
    color: #b91c1c;        /* rouge plus foncé au survol */
}

/* Lien supprimer – même style que portal-topbar-link mais en rouge */
.delete-link {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: #dc2626;      /* rouge */
    text-decoration: none;
    padding: 0;
}

.delete-link:hover {
    text-decoration: underline;
    color: #b91c1c;      /* rouge foncé */
}

.review-link {
    color: #2563eb; /* Bleu moderne type Tailwind -> #2563eb */
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.review-link:hover {
    text-decoration: underline;
    color: #1e40af; /* bleu foncé au survol */
}




/* ===================== */
/*   Badges pour les logs du module Backup       */
/* ===================== */
/* Badges génériques */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    background: #e5e7eb; /* gris clair */
}

/* Succès : texte vert + bordure verte */
.badge-success {
    color: #16a34a !important;
    border: 1px solid #16a34a;
}

/* Erreur : texte rouge + bordure rouge */
.badge-error {
    color: #dc2626 !important;
    border: 1px solid #dc2626;
}


/* -------------------------------
   Personnalisation Flatpickr
   Week-ends en rouge
---------------------------------- */

.flatpickr-day.weekend-day {
    background: #ffe5e5 !important;
    color: #c00 !important;
}

.flatpickr-day.weekend-day.flatpickr-disabled {
    background: #ffe5e5 !important;
    color: #c00 !important;
    cursor: not-allowed;
}

/* -------------------------------
   Flatpickr - Week-ends en rouge
---------------------------------- */

.flatpickr-day.weekend-day {
    background: #ffe5e5 !important;
    color: #c00 !important;
}

.flatpickr-day.weekend-day.flatpickr-disabled {
    background: #ffe5e5 !important;
    color: #c00 !important;
    cursor: not-allowed;
}

/* -------------------------------
   Flatpickr - Jours fériés en jaune
---------------------------------- */

.flatpickr-day.holiday-day {
    background: #fff7c2 !important; /* jaune pâle */
    color: #8a6d00 !important;
    position: relative;
}

.flatpickr-day.holiday-day.flatpickr-disabled {
    cursor: not-allowed;
}

/* Petit point pour identifier visuellement (optionnel) */
.flatpickr-day.holiday-day::after {
    content: "★";
    font-size: 0.6em;
    position: absolute;
    top: 2px;
    right: 3px;
}


/* -------------------------------
   Jours déjà posés : bleu
---------------------------------- */
.flatpickr-day.taken-day {
    background: #d6e9ff !important;
    color: #004a80 !important;
    position: relative;
}

.flatpickr-day.taken-day.flatpickr-disabled {
    cursor: not-allowed;
}

.flatpickr-day.taken-day::after {
    content: "●";
    font-size: 0.6em;
    position: absolute;
    bottom: 2px;
    right: 3px;
}

/* -------------------------------
   Gros fichiers
---------------------------------- */

.file-dropzone {
  border: 2px dashed #8cc63f;           /* vert comme tes boutons */
  border-radius: 12px;
  background: #f7fef5;                  /* léger fond vert très clair */
  padding: 24px;
  margin-top: 8px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.file-dropzone-inner {
  text-align: center;
  max-width: 420px;
}

.file-dropzone:hover {
  border-color: #66a92c;
  background-color: #eefde4;
  transform: translateY(-1px);
}

.file-dropzone.dragover {
  border-color: #2563eb;
  background-color: #e0f2fe;
}

.file-dropzone-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.file-dropzone-title {
  margin: 0;
  font-weight: 600;
}

.file-dropzone-subtitle {
  margin: 2px 0 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.file-dropzone-help {
  margin-top: 10px;
  color: #6b7280;
  font-size: 0.8rem;
}

/* Liste des fichiers sélectionnés */
.file-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  font-size: 0.9rem;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.file-list li:last-child {
  border-bottom: none;
}

.file-list span.file-size {
  color: #6b7280;
  font-size: 0.8rem;
}

/* --- STYLE HARMONISÉ POUR LA TABLE DE PARTAGE --- */

.share-link-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-link-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 0.85rem;
  color: #374151;
}

.btn-light {
  background: #e5e7eb;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.btn-light:hover {
  background: #d1d5db;
}

/* -------------------------------
   Notifications
---------------------------------- */


.top-notification {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    max-width: 320px;
    min-width: 260px;
    font-size: 0.9rem;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    animation: toast-life 7s forwards;
}

  .top-notification-success {
    background: #ecfdf3;
    border: 1px solid #22c55e;
    color: #14532d;
  }
  .top-notification-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
  }
  .top-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  }
  .top-notification-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .top-notification-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: inherit;
  }
  .top-notification-body {
    padding: 8px 10px;
  }

@keyframes toast-life {
    0% {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        visibility: hidden;
    }
}
