﻿/* ============================================================================
 * Bloc: Base (typo, container, en-têtes)
 * - Mise en page générale, centrage, card principale .container
 * ============================================================================ */
body {
  min-height: 100vh;
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: #ececec;
  background-attachment: fixed;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  margin-bottom: 24px;
}
h1,
h2,
h3,
h4,
h5,
h6,
.main-title {
  font-family: inherit;
}

label {
  margin: 12px 0 6px;
  font-weight: 500;
}

textarea,
select,
button {
  font-size: 16px;
  margin-bottom: 12px;
}

/* Card principale qui contient le contenu de la page */
.container {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 1.5px 6px rgba(0, 0, 0, .08);
  width: 50vw;
  max-width: 900px;
  min-width: 320px;
  text-align: center;
}

/* Bandeau titre + logo */
.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.main-title {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0 16px 0 0;
}

.main-logo {
  max-width: 110px;
  width: auto;
  height: auto;
  vertical-align: middle;
  margin: 0 0 0 10px;
}


/* Quelques ombres spécifiques */
.login {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 1.5px 6px rgba(0, 0, 0, .08);
}

.admin-warning,
.admin-sort-info {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
}


/* Boutons discrets (icônes, actions secondaires) */
button.btn-discrete,
.btn-discrete {
  background: transparent !important;
  border: 1px solid #e6e6e6 !important;
  color: #222 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font-size: .95em !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

button.btn-discrete:hover,
.btn-discrete:hover {
  background: rgba(0, 0, 0, .03) !important;
}
/* ============================================================================
 * Bloc: Formulaires et actions globales (styles génériques)
 * - Boutons principaux (hors admin)
 * - Liens/boutons stylés via style inline → harmonisation
 * ============================================================================ */

textarea {
  display: block;
  margin: 0 auto 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
}

/* Boutons principaux sur les pages non-admin */
body:not(.admin-page) button,
body:not(.admin-page) .copy-group button,
body:not(.admin-page) .login-submit,
body:not(.admin-page) .btn,
body:not(.admin-page) a.button {
  background: linear-gradient(90deg, #6719b1, #9b4ef0);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Effet "pressé" */
button:active,
.copy-group button:active,
.login-submit:active,
a.button:active {
  transform: translateY(1px);
}

/* Hover des boutons principaux */
button:hover,
.copy-group button:hover,
.login-submit:hover,
a.button:hover {
  box-shadow: 0 8px 28px rgba(114, 114, 114, 0.096);
  opacity: .98;
}

/* Normalisation des liens stylés inline hors admin */
body:not(.admin-page) a[style] {
  background: linear-gradient(90deg, #6719b1, #9b4ef0) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Normalisation des boutons inline (style attribué) hors admin */
body:not(.admin-page) button[style],
body:not(.admin-page) input[type=submit][style],
body:not(.admin-page) input[type=button][style] {
  background: linear-gradient(90deg, #6719b1, #9b4ef0) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  border: none !important;
}

/* Petits boutons en-tête (Mes secrets, Logout, etc.) */
.header-action {
  background: transparent;
  color: #4b5563;
  border: 1px solid rgba(75, 85, 99, .08);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
}

.header-action:hover {
  background: rgba(34, 126, 255, 0.04);
  color: #2d3748;
  box-shadow: none;
  opacity: .98;
}
/* ============================================================================
 * Bloc: Navigation utilisateur (onglets et boutons)
 * - Onglets hauts pour actions utilisateur
 * ============================================================================ */

.navbar-tabs.user-actions {
  display: flex !important;
  gap: 10px !important;
  align-items: stretch;
  padding: 0 !important;
  margin: 0 0 12px !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

.navbar-tabs.user-actions > li {
  flex: 1 1 0;
  display: flex;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar-tabs.user-actions > a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.navbar-tabs.user-actions li > a,
.navbar-tabs.user-actions > a,
.navbar-tabs.user-actions li > .nav-btn {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 8px;
  line-height: 1;
  text-decoration: none;
}

.navbar-tabs.user-actions a,
.navbar-tabs.user-actions .nav-btn {
  background: #f1f3f554;
  border: 1px solid #d6d8db;
  color: #111;
  font-weight: 600;
  font-size: 14px;
  transition: background .12s, transform .06s;
}

.navbar-tabs.user-actions a:hover,
.navbar-tabs.user-actions .nav-btn:hover {
  background: #e9ecefb6;
  transform: translateY(-1px);
}

.navbar-tabs.user-actions a:active,
.navbar-tabs.user-actions .nav-btn:active {
  transform: translateY(0);
}

/* Onglet admin légèrement différent */
.navbar-tabs.user-actions .nav-btn.admin,
.navbar-tabs.user-actions a.admin {
  background: #fff5e6;
  border-color: #f0d9b5;
}
/* ============================================================================
 * Bloc: Sliders généraux (présentation et thumbs)
 * - Style commun pour les sliders (ranges)
 * ============================================================================ */

.slider-group {
  margin: 25px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}

.slider-group .slider-head {
  margin-bottom: 2px;
  position: relative;
  top: -6px;
  font-weight: 600;
  color: #333;
}

.slider-head label {
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  font-size: 16px;
}

.slider-wrapper {
  position: relative;
  padding: 8px 0;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.slider-wrapper input[type=range] {
  flex: 0 1 55%;
  max-width: 55%;
  min-width: 140px;
  height: 28px;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  margin: 0;
}

/* Track (WebKit) */
.slider-wrapper input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffab2c 0%, #ed6c13 50%, #ffab2c 100%);
}

/* Thumb (WebKit) */
.slider-wrapper input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  background: #6719b1;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  cursor: pointer;
}

.slider-wrapper input[type=range]::-webkit-slider-thumb:hover {
  background: #6a1bb8;
}

.slider-wrapper input[type=range]::-webkit-slider-thumb:active {
  transform: scale(.98);
}

/* Thumb (Firefox) */
.slider-wrapper input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6719b1;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

/* Graduations au-dessus du slider */
.slider-ticks {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  box-sizing: border-box;
  overflow: visible;
  padding: 0;
}

.slider-ticks span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 600;
  transition: all .12s ease;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .8);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}

/* Ajustements spécifiques Firefox */
@supports (-moz-appearance:none) {
  .slider-wrapper input[type=range] {
    -moz-appearance: none;
    background: transparent;
  }
  .slider-wrapper input[type=range]::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffab2c 0%, #ed6c13 50%, #ffab2c 100%);
  }
  .slider-wrapper input[type=range]::-moz-range-thumb {
    cursor: pointer;
  }
}
/* ============================================================================
 * Bloc: Index 50/50 (layout colonnes + séparateurs)
 * - Mise en colonne du générateur + partie classique
 * ============================================================================ */

body[data-page=index] .sliders-with-classic {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

body[data-page=index] .sliders-with-classic > .sliders-column,
body[data-page=index] .sliders-with-classic > .classic-box,
body[data-page=index] .sliders-with-classic > .classic-side {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  box-sizing: border-box;
}

body[data-page=index] .sliders-with-classic {
  position: relative;
}

body[data-page=index] .sliders-with-classic > .classic-side,
body[data-page=index] .sliders-with-classic > .classic-box {
  border-left: 1px solid rgba(0, 0, 0, .08);
  padding-left: 12px;
}

/* Slider pleine largeur dans cette mise en page */
body[data-page=index] .slider-wrapper input[type=range] {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}
/* ============================================================================
 * Bloc: Texte intro (infos au-dessus du générateur)
 * ============================================================================ */

.generator-intro {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding-bottom: 12px;
}

.pw-info-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  text-align: left;
  color: #444;
  font-size: 13.5px;
}

.pw-info-list li {
  margin: 4px 0;
}
/* ============================================================================
 * Bloc: Classic box (générateur de MDP: conteneur + slider)
 * - Style du bloc "générateur classique"
 * ============================================================================ */

.classic-box {
  background: #fcfcfc;
  border: 2px solid #e4e4e47a;
  color: #222222;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.classic-box h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #111;
}

.classic-box .pw-note {
  display: none;
}

.classic-box .pw-gen {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 0;
}

.classic-box hr {
  display: none;
}

/* Slider interne au bloc classique */
.classic-box .pw-gen input[type=range] {
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff9a3c 0%, #7a1fcf 100%) no-repeat, #e5e7eb;
  background-size: var(--fill, 0%) 100%, 100% 100%;
}

/* WebKit */
.classic-box .pw-gen input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: transparent;
}

.classic-box .pw-gen input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  background: #6719b1;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  cursor: pointer;
}

/* Firefox track & progress */
.classic-box .pw-gen input[type=range]::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
}

.classic-box .pw-gen input[type=range]::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff9a3c 0%, #6719b1 100%);
}

.classic-box .pw-gen input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6719b1;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  cursor: pointer;
}

/* Organisation interne du générateur */
.classic-box .pw-gen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* zone texte généré */
.pw-gen-output {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e0e0e0;
}

/* bloc longueur + slider */
.pw-gen-length {
  margin-top: 6px;
  padding: 6px 0;
  border-bottom: 1px dashed #e0e0e0;
}

/* bloc checkbox + boutons */
.pw-gen-options {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-top: 6px;
  padding-top: 6px;
  border-top: none;
  min-width: 0;          /* important pour Firefox */
}

/* colonne options (checkboxes) */
.pw-gen-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 140px;       /* autorise mieux la compression */
  min-width: 0;          /* important dans un flex */
}

.pw-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.pw-opt input[type="checkbox"],
.pw-opt input[type="radio"] {
  margin: 0;
}

/* colonne boutons à droite */
.pw-gen-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex: 0 1 140px;       /* au lieu de 0 0 150px: peut rétrécir */
  max-width: 150px;
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px dashed #e0e0e0;
}

.pw-gen-buttons button,
.pw-gen-buttons button[type="button"] {
  width: 100% !important;
  min-width: 0 !important;      /* évite de forcer la largeur en flex */
  justify-content: center !important;
  background: #ffffff !important;
  color: #333333 !important;
  border: 2px solid #e5e7eb !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  padding: 2px 4px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1.9 !important;
}

/* petite barre séparatrice avant Passphrase */
.pw-gen-separator {
  margin: 4px 0 2px 0;
  border-top: 1px dashed #e0e0e0;
}
/* ============================================================================
 * Bloc: Popup générateur (overlay, dialog, fermeture)
 * ============================================================================ */

.pw-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.pw-modal.open {
  display: flex;
}

.pw-modal .pw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.034);
  -webkit-backdrop-filter: blur(5px) saturate(120%);
  backdrop-filter: blur(1px) saturate(120%);
  will-change: backdrop-filter;
  transition: background .18s ease, backdrop-filter .18s ease;
}

.pw-modal .pw-modal-dialog {
  position: relative;
  z-index: 1001;
}

/* bouton de fermeture sans fond ni bordure */
.pw-modal .pw-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #555;
}

.pw-modal .pw-modal-close:focus {
  outline: none;
}

body.modal-open {
  overflow: hidden;
}
/* ============================================================================
 * Bloc: Générateur MDP (sortie + actions locales)
 * - Champ texte #pwOut où le MDP est affiché
 * ============================================================================ */

.classic-box .pw-gen #pwOut {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 8px 10px;
  border: 1px solid #6200ff;
  border-radius: 6px;
  background: #fff;
  font-family: monospace;
  font-size: 14px;
  overflow: hidden;
  word-break: break-all;
}
/* ============================================================================
 * Bloc: Tables communes (logs, mespastes, admin)
 * - Normalisation des tables utilisées dans l’interface
 * ============================================================================ */

.logs-table,
.mespastes-table,
.admin-table,
table.logs,
.logs-like-simple {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: transparent !important;
  table-layout: auto;
}

.logs-table thead th,
.mespastes-table thead th,
.admin-table thead th,
table.logs thead th {
  background: #f6f6f6 !important;
  font-weight: 700 !important;
  color: #222 !important;
  padding: 10px 12px !important;
  text-align: left !important;
  border-bottom: 1px solid #e6e6e6 !important;
}

.logs-table tbody td,
.mespastes-table tbody td,
.admin-table tbody td,
table.logs tbody td {
  background: transparent !important;
  padding: 10px 12px !important;
  color: inherit !important;
  border-bottom: 1px solid #f0f0f0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.logs-table tbody tr:last-child td,
.mespastes-table tbody tr:last-child td,
.admin-table tbody tr:last-child td,
table.logs tbody tr:last-child td {
  border-bottom: 0 !important;
}

.logs-table td.text-center,
.mespastes-table td.text-center,
.admin-table td.text-center,
table.logs td.text-center {
  text-align: center !important;
}

/* Forcer alignement gauche par défaut */
.logs-table th:not(.text-center),
.logs-table td:not(.text-center),
.logs-like-table th:not(.text-center),
.logs-like-table td:not(.text-center),
table.logs th:not(.text-center),
table.logs td:not(.text-center),
.mespastes-table th:not(.text-center),
.mespastes-table td:not(.text-center),
.admin-table th:not(.text-center),
.admin-table td:not(.text-center) {
  text-align: left !important;
  vertical-align: middle !important;
}
/* ============================================================================
 * Bloc: Mes pastes (actions + bouton Aperçu orange)
 * - Styles spécifiques aux tableaux / boutons de mespastes.php
 * ============================================================================ */

.mespastes-table td,
.mespastes-table th {
  vertical-align: middle !important;
}

.mespastes-table td:first-child,
.mespastes-table td:last-child {
  text-align: center !important;
  vertical-align: middle !important;
  width: 140px;
  box-sizing: border-box;
}

/* Boutons d’action dans les tableaux mespastes */
.mespastes-table .action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 110px !important;
  height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  box-sizing: border-box;
  line-height: 1 !important;
}

/* Bouton Aperçu (variante orange) */
.mespastes-table .preview-btn,
.mespastes-table a.preview-btn,
.mespastes-table button.preview-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 110px !important;
  height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  background: linear-gradient(180deg, #ffad61 0%, #ffbe55 100%) !important;
  border: 1px solid #ff8000 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

/* Hover + active Aperçu */
.mespastes-table .preview-btn:hover,
.mespastes-table a.preview-btn:hover,
.mespastes-table button.preview-btn:hover {
  background: linear-gradient(180deg, #ffb168 0%, #ffc686 100%) !important;
  transform: translateY(-1px) !important;
}

.mespastes-table .preview-btn:active,
.mespastes-table a.preview-btn:active,
.mespastes-table button.preview-btn:active {
  transform: none !important;
  opacity: 0.98 !important;
}

/* Bouton supprimer (rouge) */
.mespastes-table .btn-danger.action-btn,
.mespastes-table button.btn-danger.action-btn {
  background: linear-gradient(90deg, #c0392b, #e74c3c) !important;
  color: #fff !important;
  border: none !important;
}

/* Liens dans les cellules : pas de style bouton ici */
.mespastes-table td > a,
.mespastes-table td > a[style] {
  background: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  width: auto !important;
}

/* Titres de sections (admin / autres) */
.section-admin-pastes {
  margin-top: 30px;
  color: #444;
  border-bottom: 2px solid #393241;
  padding-bottom: 8px;
}

.admin-paste-user {
  color: #6719b1;
  font-weight: 700;
}

.section-other-pastes {
  margin-top: 30px;
  color: #444;
  border-bottom: 2px solid #ed6c13;
  padding-bottom: 8px;
}

.other-paste-user {
  color: #ed6c13;
  font-weight: 700;
}
/* ============================================================================
 * Bloc: Tables admin (typographie et en-têtes)
 * - Styles spécifiques au tableau de gestion des utilisateurs
 * ============================================================================ */

table.admin-table,
.admin-table th,
.admin-table td {
  font-size: 12px;
  padding: 0 4px;
  line-height: 1;
  height: 16px;
}

.admin-users-table {
  max-width: 900px;
  min-width: 0;
}

.admin-table th.login,
.admin-table td.login,
.admin-table th.type,
.admin-table td.type,
.admin-table th.action,
.admin-table td.action {
  font-size: 15px;
  padding: 8px 10px;
}

.admin-table th {
  font-size: 18px;
  font-weight: 600;
}

.admin-page .admin-table thead,
.admin-page .admin-table thead th,
.admin-table thead,
.admin-table thead th {
  background: #f6f6f6 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  font-weight: 700 !important;
  color: #222 !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
}

.admin-page .admin-table thead th.type,
.admin-page .admin-table thead th.action,
#usersTable thead th.type,
#usersTable thead th.action {
  text-align: center !important;
}
/* ============================================================================
 * Bloc: Formulaire de connexion (champs et bouton)
 * ============================================================================ */

.login-input::placeholder {
  color: rgba(0, 0, 0, .45) !important;
  font-size: 16px !important;
}

.login-input {
  border: none !important;
  border-bottom: 2px solid rgba(0, 0, 0, .14) !important;
  background: transparent !important;
  padding: 14px 6px 10px 6px !important;
  font-size: 16px !important;
}

.login-input:focus {
  border-bottom-color: #6719b1 !important;
  outline: none;
  box-shadow: none;
}

.login-session {
  display: block;
  margin: 42px auto 0;
  padding: 12px 20px;
  min-height: auto;
  text-align: center;
}

.login-box {
  background: #fff;
  padding: 20px 22px;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.login-box h2 {
  margin: 0 0 18px;
  font-size: 22px;
  color: #222;
  font-weight: 700;
  letter-spacing: .6px;
}

.login-field {
  margin: 12px 0 6px;
}

/* Bouton de soumission login */
.login-submit {
  display: inline-block;
  margin-top: 18px;
  background: linear-gradient(135deg, #ed6c13 0%, #ff9f3c 32%, #ffbe55 58%, #ffc971 68%, #f89451 99%) !important;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit:hover {
  box-shadow: 0 6px 20px rgba(255, 140, 0, .18) !important;
  opacity: .98;
}

/* Bouton SSO Microsoft 365 */
.ms365-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6f1fcf 0%, #7b3fe2 32%, #9b63f4 58%, #ff9a3c 92%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.ms365-btn svg {
  margin-right: 8px;
}

.ms365-btn:hover {
  box-shadow: 0 8px 28px rgba(138, 63, 224, .18);
  opacity: .98;
}

.ms365-btn:active {
  transform: translateY(1px);
}
/* ============================================================================
 * Bloc: Affichage d’un paste (zone code et copie)
 * ============================================================================ */

pre {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 16px;
  font-family: monospace;
  text-align: left;
  margin-bottom: 16px;
  word-break: break-all;
}

span#copied {
  display: inline-block;
  color: green;
  font-weight: bold;
  opacity: 0;
  transition: opacity .3s ease;
  font-size: 14px;
}

.paste-content {
  word-break: break-all;
  white-space: pre-wrap;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.copy-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.copied-text {
  margin-top: 0;
  min-height: 22px;
}
/* ============================================================================
 * Bloc: Générateur MDP (bouton générer)
 * ============================================================================ */

.genpw-cta {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.genpw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3f4f6 0%, #eceff1 100%) !important;
  background-image: none !important;
  color: #374151 !important;
  border: 1px solid #e6e9ec !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .12s ease, transform .06s;
}

.genpw-btn:hover {
  background: linear-gradient(180deg, #eceff1 0%, #e2e6ea 100%) !important;
  transform: translateY(-1px) !important;
}

.genpw-btn:active {
  background: linear-gradient(180deg, #e6eaee 0%, #dfe6ea 100%) !important;
  transform: none !important;
}
/* ============================================================================
 * Bloc: Responsive (empilement et tailles)
 * - Ajustements sur mobiles / petites largeurs
 * ============================================================================ */

@media (max-width: 760px) {
  body[data-page=index] .sliders-with-classic > .classic-side,
  body[data-page=index] .sliders-with-classic > .classic-box {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 12px;
  }
}

@media (max-width: 600px) {
  body,
  html {
    padding: 0;
    margin: 0;
    font-size: 16px;
  }

  .container,
  .header-title,
  .admin-warning,
  .admin-sort-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
  }

  table {
    width: 100% !important;
    font-size: 15px;
    overflow-x: auto;
    display: block;
  }

  th,
  td {
    padding: 6px 4px;
    word-break: break-word;
  }

  .main-logo {
    max-width: 60px;
    height: auto;
  }

  .admin-warning,
  .admin-sort-info {
    font-size: 14px;
    padding: 8px 6px;
  }

  .copy-group button,
  button {
    font-size: 15px;
    padding: 6px 12px;
  }
}

@media (max-width: 520px) {
  .navbar-tabs.user-actions > li,
  .navbar-tabs.user-actions > a {
    flex: 0 1 auto;
  }

  .navbar-tabs.user-actions li > a,
  .navbar-tabs.user-actions > a {
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .slider-wrapper input[type=range] {
    flex-basis: 60%;
    max-width: 60%;
    min-width: 110px;
  }

  .slider-ticks {
    top: -16px;
  }

  .slider-ticks span {
    font-size: 12px;
    padding: 1px 3px;
  }
}
/* ============================================================================
 * Bloc: Transitions communes boutons (hover / active)
 * ============================================================================ */
/* transitions douces pour tous les boutons */
button,
.btn,
a.nav-btn,
.nav-btn,
.login-submit,
.genpw-btn,
.ms365-btn,
.copy-group button,
.preview-btn {
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  will-change: transform;
}

/* léger lift au hover */
button:hover,
.btn:hover,
a.nav-btn:hover,
.nav-btn:hover,
.login-submit:hover,
.genpw-btn:hover,
.ms365-btn:hover,
.copy-group button:hover,
.preview-btn:hover {
  transform: translateY(-1px);
}

/* retour à l'état pressé */
button:active,
.btn:active,
a.nav-btn:active,
.nav-btn:active,
.login-submit:active,
.genpw-btn:active,
.ms365-btn:active,
.copy-group button:active,
.preview-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
/* ============================================================================
 * Bloc: Switch mode MDP/Passphrase
 * ============================================================================ */

.pw-gen-mode {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.pw-gen-mode .mode-btn {
  flex: 1 1 0;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #d1d5db60;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
}

.pw-gen-mode .mode-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #00000085;
}
/* ============================================================================
 * Bloc: Checkbox / radios du générateur (orange + carré)
 * ============================================================================ */

.pw-opt input[type="checkbox"],
.pw-opt input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;      /* même forme pour tout (carré arrondi) */
  border: 1px solid #000000;
  background: #ffffff;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, opacity .12s ease;
}

/* état : survol */
.pw-opt input[type="checkbox"]:hover,
.pw-opt input[type="radio"]:hover {
  box-shadow: 0 0 0 3px rgba(255, 119, 23, 0.15);
}

/* état : coché */
.pw-opt input[type="checkbox"]:checked,
.pw-opt input[type="radio"]:checked {
  background: #ff7717;
  border-color: #3a3a3a;
}

/* icône de coche pour les checkbox */
.pw-opt input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

/* pour les radios : carré blanc au centre */
.pw-opt input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: #ffffff;
}

/* état grisé (disabled) */
.pw-opt input[type="checkbox"]:disabled,
.pw-opt input[type="radio"]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

/* garder la coche visible même grisée */
.pw-opt input[type="checkbox"]:disabled:checked::after,
.pw-opt input[type="radio"]:disabled:checked::after {
  opacity: 0.9;
}
/* ============================================================================
 * Bloc: Fix Firefox (width/min-width pour le générateur)
 * ============================================================================ */

.classic-box .pw-gen,
.classic-box .pw-gen-output,
.classic-box .pw-gen-length,
.classic-box .pw-gen-options,
.classic-box .pw-gen #pwOut,
.classic-box .pw-gen input[type="range"] {
  min-width: 0;
}

/* Assurer largeur correcte pour sortie + slider dans Firefox */
.classic-box .pw-gen #pwOut,
.classic-box .pw-gen input[type="range"] {
  width: 100%;
  box-sizing: border-box;
}
