/* ===== MODERNISATION APP.HTML - STYLE HOME PAGE ===== */

/* Désactiver la lueur de souris pour app.html */
.mouse-glow {
  display: none !important;
}

/* Petite lueur au centre comme dans les sections de la home page */
.hero::before {
  content: '' !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 800px !important;
  height: 800px !important;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 70%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.6 !important;
}

/* Supprimer aussi le ::before et ::after du body */
body::before,
body::after {
  display: none !important;
}

/* Grille animée en arrière-plan - ACTIVÉE */
.animated-grid-bg {
  display: block;
}

@keyframes gridMoveApp {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 50px 50px, 50px 50px;
  }
}

/* ===== BOUTON CONNEXION EN HAUT À DROITE ===== */
.login-btn-top {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(224, 224, 224, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.login-btn-top:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(224, 224, 224, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.login-btn-top svg {
  flex-shrink: 0;
}

/* Cacher le bouton connexion quand connecté */
body.user-connected .login-btn-top {
  display: none;
}

/* Afficher le hamburger seulement quand connecté */
body.user-connected #menuBtn {
  display: flex !important;
}

/* Cacher le panneau de connexion quand connecté */
body.user-connected .panel {
  display: none !important;
}

/* Désactiver les anciennes animations de rotation */
.card::before {
  animation: none !important;
  display: none;
}

.card::after {
  background: transparent !important;
}

/* Variables mises à jour */
:root {
  --bg: #0a0a0a;
  --bg-alt: #0A0A0A;
  --text: #ffffff;
  --muted: #9e9e9e;
  --accent: #ffffff;
  --panel-bg: rgba(26, 26, 26, 0.95);
  --card-bg: rgba(21, 21, 21, 0.95);
  --border: rgba(255, 255, 255, 0.1);
}

body {
  background: #0a0a0a;
  color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* Anciens backgrounds supprimés - utilisation des nouvelles grilles */

/* Hero background moderne */
.hero {
  background: transparent;
  position: relative;
}

/* ===== TIROIR LATÉRAL MODERNE (IDENTIQUE À LA HOME PAGE) ===== */

/* Le tiroir utilise maintenant les classes side-menu */
.left-drawer.side-menu {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 320px !important;
  height: 100vh;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 999 !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) !important;
  transform: translateX(-100%) !important;
}

/* Quand le menu est ouvert via body.left-open OU aria-hidden="false" */
body.left-open .left-drawer.side-menu,
.left-drawer.side-menu[aria-hidden="false"] {
  transform: translateX(0) !important;
}

/* Quand le menu est fermé */
.left-drawer.side-menu[aria-hidden="true"] {
  transform: translateX(-100%) !important;
}

/* Header du tiroir */
.ld-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 25px 20px !important;
}

.ld-hero {
  gap: 12px;
}

.ld-avatar {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.ld-name {
  color: #ffffff;
  font-weight: 600;
}

.ld-role {
  color: #9e9e9e;
}

/* Bouton déconnexion */
.ld-logout-btn {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff3b30;
  transition: all 0.3s ease;
}

.ld-logout-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.5);
  transform: scale(1.05);
}

/* Group */
.ld-group {
  padding: 20px 0 !important;
}

/* Group title */
.ld-group-title {
  padding: 15px 20px 10px !important;
  color: #9e9e9e !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* Liste des items */
.ld-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 !important;
}

/* Items du menu */
.ld-item {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 15px 20px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #9e9e9e !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.ld-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  padding-left: 30px !important;
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
}

.ld-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: none !important;
  border-left: 3px solid #ffffff !important;
  padding-left: 17px !important;
}

.ld-item::before {
  display: none !important;
}

/* Sublist container */
.ld-sublist {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ld-sublist.open {
  padding: 0 !important;
}

/* Sub-items */
.ld-sub-item {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 15px 20px 15px 35px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #9e9e9e !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.ld-sub-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  padding-left: 45px !important;
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
}

.ld-sub-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: none !important;
  border-left: 3px solid #ffffff !important;
  padding-left: 32px !important;
}

.ld-sub-item::before {
  display: none !important;
}

/* Nested sublist container */
.ld-sublist-nested {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ld-sublist-nested.open {
  padding: 0 !important;
}

/* Nested sub-items */
.ld-sub-item-nested {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 15px 20px 15px 50px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #9e9e9e !important;
  transition: all 0.3s ease !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.ld-sub-item-nested:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  padding-left: 60px !important;
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
}

.ld-sub-item-nested.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: none !important;
  border-left: 3px solid #ffffff !important;
  padding-left: 47px !important;
}

.ld-sub-item-nested::before {
  display: none !important;
}

/* Texte des items */
.ld-item .txt,
.ld-sub-item .txt,
.ld-sub-item-nested .txt {
  color: inherit !important;
}

/* Chevron */
.ld-item .chev,
.ld-sub-item .chev {
  margin-left: auto !important;
  font-size: 0.85rem !important;
  opacity: 0.65 !important;
  color: currentColor !important;
  transition: transform 0.3s ease !important;
}

.ld-item[aria-expanded="true"] .chev {
  transform: rotate(90deg) !important;
}

.ld-sub-item[aria-expanded="true"] .chev {
  transform: rotate(90deg) !important;
}

/* Divider entre sections */
.ld-group + .ld-group::before {
  content: '';
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 15px 20px;
}

/* Spacer */
.ld-spacer {
  flex: 1 !important;
  min-height: 20px !important;
}

/* Footer */
.ld-footer {
  position: sticky !important;
  bottom: 0 !important;
  background: transparent !important;
  border-top: none !important;
  margin: 6px 0 4px !important;
  padding: 8px 6px !important;
  box-shadow: none !important;
  margin-top: auto !important;
}

/* Accès/Abonnements */
.ld-access {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 16px 12px 12px !important;
  margin: 12px 0 0 0 !important;
}

.ld-access-title {
  color: #9e9e9e !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 0 8px 10px !important;
  border-bottom: none !important;
  margin-bottom: 12px !important;
}

.ld-access-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.access-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(26, 26, 26, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  transition: border-color 0.2s ease !important;
}

.access-item:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.access-name {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}

.access-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
}

.access-quota {
  color: #9e9e9e !important;
  font-weight: 500 !important;
  font-size: 0.75rem !important;
}

.access-status {
  font-size: 0.7rem !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.access-status.expired {
  background: rgba(255, 59, 48, 0.15) !important;
  color: #ff3b30 !important;
}

.access-status.soon {
  background: rgba(255, 217, 102, 0.15) !important;
  color: #ffd966 !important;
}

/* Nouveaux styles pour les abonnements dans le menu latéral */
.access-list-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 10px;
}

.access-item-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.2s ease;
}

.access-item-menu:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Bouton de déconnexion */
.logout-item {
  color: #ff3b30 !important;
  margin-top: auto;
}

.logout-item:hover {
  background: rgba(255, 59, 48, 0.1) !important;
  color: #ff3b30 !important;
}

/* ===== NOUVEAUX STYLES MENU-ITEM (STRUCTURE FLAT) ===== */

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 20px;
  border-bottom: 1px solid rgba(36, 209, 255, 0.15);
}

.side-menu-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.close-menu-btn {
  background: transparent;
  border: none;
  color: #9e9e9e;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.close-menu-btn:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: transparent;
  border: none;
  color: #9e9e9e;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Grille animée en arrière-plan pour les boutons */
.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
  animation: gridMoveMenu 15s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@keyframes gridMoveMenu {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 20px 20px, 20px 20px;
  }
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding-left: 30px;
}

.menu-item:hover::before {
  opacity: 1;
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-left: 3px solid #ffffff;
}

.menu-item.active::before {
  opacity: 1;
}

.menu-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 20px;
}

.menu-section-title {
  padding: 15px 20px 10px;
  color: #9e9e9e;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== PANNEAU DE CONNEXION MODERNE ===== */

.panel {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95) 0%, rgba(21, 21, 21, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(255, 255, 255, 0.05);
}

.card h2 {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-subtitle {
  color: #9e9e9e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inputs modernisés */
input {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(26, 26, 26, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

input::placeholder {
  color: #9e9e9e;
}

/* Boutons modernisés */
.btn {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ===== BARRE DE RECHERCHE MODERNE ===== */

.hero-search {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.hero-cat,
.hero-search input,
.hero-search button {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hero-cat:hover,
.hero-search input:hover,
.hero-search button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-cat:focus,
.hero-search input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.hero-search button {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #0a0a0a;
  font-weight: 600;
  border: none;
}

.hero-search button:hover {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Status */
.hero-status {
  color: #9e9e9e;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 20px;
}

/* ===== RÉSULTATS ET CARDS MODERNISÉS ===== */

.hero-result {
  background: transparent;
}

/* Tool cards */
.tool-card,
.result-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8) 0%, rgba(21, 21, 21, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.tool-card:hover,
.result-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Titres des cards */
.tool-card h3,
.result-card h3 {
  color: #ffffff;
  font-weight: 600;
}

/* Labels */
.label {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Success/Error messages */
.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  border-radius: 10px;
  padding: 12px 16px;
}

.danger,
.err {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff3b30;
  border-radius: 10px;
  padding: 12px 16px;
}

/* Loader moderne */
.loader-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
}

/* ===== HAMBURGER MENU ===== */

.hamburger {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(26, 26, 26, 1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.hamburger .bar {
  background: #ffffff;
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */

.autocomplete-dropdown {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.autocomplete-item {
  color: #ffffff;
  padding: 10px 15px;
  transition: all 0.2s ease;
}

.autocomplete-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* ===== AJUSTEMENTS POUR LA NAVBAR TOP ===== */

/* Ajouter un padding-top pour que le contenu ne soit pas caché derrière la navbar */
.hero {
  padding-top: 80px;
}

/* ===== SÉLECTEUR DE STYLE DE DESIGN ===== */

.design-style-selector {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 60px;
  text-align: center;
}

.design-style-selector h3 {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-weight: 500;
}

.style-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.6);
}

.style-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.style-option.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.style-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.style-name {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== DASHBOARD CONTAINER ===== */

.dashboard-container {
  display: flex;
  min-height: 100vh;
  padding-top: 56px;
  background: transparent;
}

/* ===== NOUVELLE SIDEBAR RÉTRACTABLE ===== */

*,
*::after,
*::before {
    box-sizing: inherit;
}

label,
button {
    cursor: pointer;
}

figure {
    margin-inline: 0;
    margin-block: 0.25rem;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
    font-size: inherit;
    line-height: 1.1;
}

input[type="checkbox"] {
    display: none;
}

:root {
    --bg--primary: hsl(203, 7%, 10%);
    --bg--active: hsla(203, 86%, 15%, 0.7);
    --bg--hover: hsl(200, 7%, 15%);
    --bg--focus: hsl(203, 7%, 12%);
    --gray--primary: hsl(200, 10%, 50%);
    --gray--secondary: hsl(200, 14%, 80%);

    --dark--primary: hsl(203, 13%, 90%);
    --dark--secondary: hsl(203, 4%, 70%);

    --accent--primary: hsl(206, 90%, 56%);
    --accent--secondary: hsl(206, 79%, 58%);

    --expanded: 16.875rem;
    --collapsed: 3.25rem;
    --svg: 1.125rem;
    --item: 2.25rem;
    --brad-outer: 0.75rem;
    --frame-space: 0.5rem;
    --brad-inner: calc(var(--brad-outer) - var(--frame-space));
}

.vertical-sidebar {
    display: flex;
    inline-size: var(--expanded);
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    z-index: 100;
}

.vertical-sidebar nav {
    background: var(--bg--primary);
    display: flex;
    flex-flow: column;
    min-width: var(--collapsed);
    border-radius: var(--brad-outer);
    flex: 0 0 auto;
    transition: flex-basis 300ms ease-out;
    will-change: flex-basis;
    padding: var(--frame-space);
    box-shadow: 0 3px 5px rgba(18, 51, 51, 0.2), 0 5px 17px rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.vertical-sidebar :checked ~ nav {
    flex-basis: var(--expanded);
}

.vertical-sidebar :not(:checked) ~ nav {
    flex-basis: var(--collapsed);
}

header {
    display: flex;
    flex-flow: column;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar__toggle-container {
    block-size: var(--item);
    display: flex;
    justify-content: end;
}

.nav__toggle {
    block-size: 100%;
    background: none;
    transition: all 233ms ease-in;
    border-radius: var(--brad-inner);
    outline: 2px solid transparent;
    outline-offset: -2px;
    overflow: hidden;
    border: none;
}

.toggle--icons {
    block-size: inherit;
    aspect-ratio: 1;
    display: inline-grid;
    place-content: center;
    grid-template-areas: "svg";
    z-index: 10;
}

.toggle-svg-icon {
    grid-area: svg;
    fill: var(--gray--primary);
    transition: fill 233ms ease-in;
}

.nav__toggle:hover {
    outline: 2px solid var(--accent--primary);
}

.toggle--icons:hover .toggle-svg-icon {
    fill: var(--dark--primary);
}

figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    container-type: inline-size;
    gap: 0.375rem;
}

.codepen-logo {
    margin-inline: auto;
    display: block;
    min-inline-size: 2.25rem;
    max-inline-size: 45cqi;
    aspect-ratio: 1;
    block-size: 100%;
    object-fit: cover;
    transition: width 100ms linear;
}

figcaption {
    text-align: center;
}

.user-id {
    font-size: 1.0625rem;
    font-weight: 500;
    margin-block-end: 0.25rem;
    color: var(--gray--secondary);
}

.user-role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray--primary);
}

.sidebar__wrapper {
    --list-gap: 0.5rem;
    display: flex;
    flex-flow: column;
    gap: var(--list-gap);
}

.sidebar__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-flow: column;
    gap: 0.125rem;
    overflow: hidden;
}

.sidebar__item {
    block-size: var(--item);
    border-radius: var(--brad-inner);
}

.item--heading {
    display: flex;
    align-items: end;
}

.sidebar__item--heading {
    margin-block-end: 0.4rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    font-weight: 500;
    color: var(--gray--primary);
    transition: color 200ms ease-in;
}

.sidebar__list:has(.sidebar__link):hover .sidebar__item--heading {
    color: var(--gray--secondary);
}

.sidebar__link {
    display: flex;
    text-decoration: none;
    block-size: 100%;
    align-items: center;
    gap: 0.5rem;
    outline: 2px solid transparent;
    border-radius: inherit;
}

.icon {
    aspect-ratio: 1;
    block-size: 100%;
    display: inline-grid;
}

.icon svg {
    place-self: center;
    inline-size: var(--svg);
    block-size: var(--svg);
    fill: var(--gray--primary);
    stroke: var(--gray--primary);
}

.text {
    pointer-events: none;
    color: var(--gray--secondary);
    font-size: 0.875em;
    font-weight: 500;
    transition: color 266ms ease-out;
}

.sidebar__link:hover {
    background: var(--bg--hover);
}

.sidebar__link:hover .icon svg {
    fill: var(--accent--primary);
    stroke: var(--accent--primary);
}

.sidebar__link:hover .text {
    color: var(--dark--primary);
}

.sidebar__link:focus {
    outline: 2px solid var(--accent--secondary);
    outline-offset: -2px;
    background: var(--bg--focus);
}

.sidebar__link:focus .icon svg {
    fill: var(--accent--primary);
    stroke: var(--accent--primary);
}

.sidebar__link:active {
    background-color: var(--bg--active);
}

aside:not(:has(:checked)) .toggle--open,
aside:has(:checked) .toggle--close {
    opacity: 0;
}

aside:not(:has(:checked)) :where(figcaption, .item--heading) {
    opacity: 0;
}

aside:has(:checked) :where(figcaption, .item--heading) {
    transition: opacity 300ms ease-in 200ms;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: fixed;
    translate: calc(var(--item) * 1.5) calc(var(--item) * 0.125);
    border-radius: var(--brad-inner);
    padding: 0.5rem 0.75rem;
    color: #ddd;
    background-color: hsl(198 16 30);
    box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    scale: 0 0;
    z-index: 999;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 350ms ease-out;
}

aside:not(:has(:checked)) .sidebar__link:where(:hover, :focus-visible)[data-tooltip]::before {
    opacity: 1;
    scale: 1;
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--expanded);
  transition: all 0.3s ease;
  min-height: 100vh;
}

.vertical-sidebar:not(:has(:checked)) + .main-content {
  margin-left: var(--collapsed);
}

/* ===== SÉLECTEUR D'OUTILS CENTRAL ===== */

.tool-selector {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  background: transparent;
  z-index: 10;
  position: relative;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-selector-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  position: relative;
  max-width: 1200px;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}

.tool-selector-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  opacity: 1 !important;
}

.tool-selector-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  opacity: 1 !important;
  visibility: visible !important;
}

.tool-selector-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6) !important;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.tool-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
}

/* ===== STYLE 1 - CARTE PREMIUM ===== */
.tool-selector-grid[data-active-style="style1"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 28px;
  background: linear-gradient(135deg, #2d2d2d 0%, #0A0A0A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 200px;
}

.tool-selector-grid[data-active-style="style1"] .tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-selector-grid[data-active-style="style1"] .tool-card::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 40px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 255, 255, 0.2));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.tool-selector-grid[data-active-style="style1"] .tool-card:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tool-selector-grid[data-active-style="style1"] .tool-card:hover::before {
  opacity: 1;
}

.tool-selector-grid[data-active-style="style1"] .tool-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-top: 48px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style1"] .tool-card-icon svg {
  stroke: #ffd700;
}

.tool-selector-grid[data-active-style="style1"] .tool-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style1"] .tool-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px 0;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style1"] .tool-card p::after {
  content: '****  ****  ****';
  display: block;
  margin-top: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== STYLE 2 - HEXAGONE TECH ===== */
.tool-selector-grid[data-active-style="style2"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(10, 10, 10, 0.8);
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.03) 0px, rgba(0, 255, 255, 0.03) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(90deg, rgba(255, 0, 255, 0.03) 0px, rgba(255, 0, 255, 0.03) 1px, transparent 1px, transparent 10px);
}

.tool-selector-grid[data-active-style="style2"] .tool-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
  background-size: 200% 200%;
  animation: hexGlow 3s linear infinite;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  z-index: -1;
}

@keyframes hexGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tool-selector-grid[data-active-style="style2"] .tool-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.4), 0 0 60px rgba(255, 0, 255, 0.3);
}

.tool-selector-grid[data-active-style="style2"] .tool-card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.5);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.tool-selector-grid[data-active-style="style2"] .tool-card:hover .tool-card-icon {
  border-color: rgba(255, 0, 255, 0.8);
  background: rgba(255, 0, 255, 0.1);
  transform: rotate(180deg);
}

.tool-selector-grid[data-active-style="style2"] .tool-card-icon svg {
  stroke: #00ffff;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

.tool-selector-grid[data-active-style="style2"] .tool-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00ffff;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.tool-selector-grid[data-active-style="style2"] .tool-card p {
  font-size: 0.9rem;
  color: rgba(255, 0, 255, 0.8);
  margin: 0;
  font-family: 'Courier New', monospace;
}

/* ===== STYLE 3 - GRILLE INTÉGRÉE ===== */
.tool-selector-grid[data-active-style="style3"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: transparent;
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
}

.tool-selector-grid[data-active-style="style3"] .tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: gridMove 2s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover::before {
  opacity: 1;
}

.tool-selector-grid[data-active-style="style3"] .tool-card:hover {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow:
    0 0 30px rgba(0, 255, 136, 0.2),
    inset 0 0 30px rgba(0, 255, 136, 0.05);
}

.tool-selector-grid[data-active-style="style3"] .tool-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.05);
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style3"] .tool-card-icon svg {
  stroke: #00ff88;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

.tool-selector-grid[data-active-style="style3"] .tool-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
  font-family: 'Courier New', monospace;
  position: relative;
  z-index: 1;
}

.tool-selector-grid[data-active-style="style3"] .tool-card p {
  font-size: 0.9rem;
  color: rgba(0, 255, 136, 0.6);
  margin: 0;
  font-family: 'Courier New', monospace;
  position: relative;
  z-index: 1;
}

/* ===== STYLE 4 - CARTES EMPILÉES ===== */
.tool-selector-grid[data-active-style="style4"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
}

.tool-selector-grid[data-active-style="style4"] .tool-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-selector-grid[data-active-style="style4"] .tool-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  background: rgba(15, 15, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  z-index: -2;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover::before {
  inset: 8px;
  transform: translateY(4px);
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover::after {
  inset: 16px;
  transform: translateY(8px);
}

.tool-selector-grid[data-active-style="style4"] .tool-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border-radius: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-selector-grid[data-active-style="style4"] .tool-card:hover .tool-card-icon {
  transform: translateY(-12px) scale(1.1);
}

.tool-selector-grid[data-active-style="style4"] .tool-card-icon svg {
  stroke: #ffffff;
}

.tool-selector-grid[data-active-style="style4"] .tool-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 10;
}

.tool-selector-grid[data-active-style="style4"] .tool-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  position: relative;
  z-index: 10;
}

/* ===== STYLE 5 - TERMINAL ===== */
.tool-selector-grid[data-active-style="style5"] .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 28px;
  background: #0A0A0A;
  border: 2px solid #00ff00;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 200px;
  font-family: 'Courier New', monospace;
}

.tool-selector-grid[data-active-style="style5"] .tool-card::before {
  content: '> _';
  position: absolute;
  top: 8px;
  right: 12px;
  color: #00ff00;
  font-size: 0.9rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.tool-selector-grid[data-active-style="style5"] .tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 0, 0.03) 50%, transparent 100%);
  animation: scanline 3s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.tool-selector-grid[data-active-style="style5"] .tool-card:hover {
  box-shadow:
    0 0 20px rgba(0, 255, 0, 0.3),
    inset 0 0 20px rgba(0, 255, 0, 0.1);
  border-color: #00ff88;
}

.tool-selector-grid[data-active-style="style5"] .tool-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid #00ff00;
  border-radius: 4px;
  margin-bottom: 24px;
}

.tool-selector-grid[data-active-style="style5"] .tool-card-icon svg {
  stroke: #00ff00;
  filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.6));
}

.tool-selector-grid[data-active-style="style5"] .tool-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00ff00;
  margin: 0 0 12px 0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.tool-selector-grid[data-active-style="style5"] .tool-card h3::before {
  content: '$ ';
}

.tool-selector-grid[data-active-style="style5"] .tool-card p {
  font-size: 0.9rem;
  color: #00ff00;
  margin: 0;
  opacity: 0.7;
}

.tool-selector-grid[data-active-style="style5"] .tool-card p::before {
  content: '// ';
  opacity: 0.5;
}

/* Style par défaut (actuel/glassmorphisme) */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(30px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 220px;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%, rgba(255, 255, 255, 0.05));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.15s; }
.tool-card:nth-child(3) { animation-delay: 0.2s; }
.tool-card:nth-child(4) { animation-delay: 0.25s; }
.tool-card:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.1);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  margin-bottom: 28px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-card-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.tool-card-icon svg {
  stroke: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
  transition: all 0.5s ease;
}

.tool-card:hover .tool-card-icon svg {
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.5));
}

.tool-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tool-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .hero-search {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cat {
    width: 100%;
  }
}


/* Conteneur avec animation d'expansion */
.container {
  display: flex !important;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  opacity: 1 !important;
  visibility: visible !important;
}

.card {
  --hoverContorno: #959595;
  flex: 1;
  min-width: 150px;
  height: 254px;
  background: #0A0A0A;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 20px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all 0.5s ease;
}

.card:hover {
  flex: 2;
  background: rgb(255, 255, 255);
  border: 2px solid rgb(200, 200, 200);
  background-color: #dfdfdf;
  -webkit-animation: cardAnimacion 1.4s;
  animation: cardAnimacion 1.4s;
}

@-webkit-keyframes cardAnimacion {
  0% {
    box-shadow: 0 0 0 0 var(--hoverContorno);
  }
  50% {
    box-shadow: 0 0 0 0.3em var(--hoverContorno);
  }
  100% {
    box-shadow: 0 0 0 0.6em rgba(149, 149, 149, 0);
  }
}

@keyframes cardAnimacion {
  0% {
    box-shadow: 0 0 0 0 var(--hoverContorno);
  }
  50% {
    box-shadow: 0 0 0 0.3em var(--hoverContorno);
  }
  100% {
    box-shadow: 0 0 0 0.6em rgba(149, 149, 149, 0);
  }
}

.container .tool-card-icon {
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.5s;
  opacity: 1 !important;
  visibility: visible !important;
}

.container .tool-card-icon svg {
  stroke: #ffffff;
  width: 40px;
  height: 40px;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all 0.5s;
}

.card:hover .tool-card-icon svg {
  stroke: #000000;
}

.container .card h3 {
  color: #ffffff !important;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 10px 0;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all 0.5s;
}

.card:hover h3 {
  color: #000000 !important;
}

.container .card p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all 0.5s;
}

.card:hover p {
  color: rgba(0, 0, 0, 0.7) !important;
}
