/* CSS spécifique pour la page Outils - Version simplifiée */

/* ========================================
   SECTION PRINCIPALE
======================================== */

.outils-main-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  padding: 3rem 0;
  min-height: 60vh;
}

.outils-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   NAVIGATION PAR ONGLETS
======================================== */

.nav-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  background: white;
  border-radius: 50px;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.nav-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  font-family: inherit;
}

.nav-tab:hover {
  color: #1f2937;
}

.nav-tab.active {
  background: linear-gradient(135deg, #a76107, #d4822a);
  color: white;
  box-shadow: 0 2px 8px rgba(167, 97, 7, 0.3);
}

/* ========================================
   ZONE DE CONTENU
======================================== */

.content-area {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-section {
  display: none;
}

.category-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ========================================
   GRILLE DE GROS BOUTONS
======================================== */

.tools-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tool-button {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.tool-button:hover {
  background: linear-gradient(135deg, #fef5e7, #fff8f0);
  border-color: #d4822a;
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(167, 97, 7, 0.15);
  text-decoration: none;
}

.tool-button:active {
  transform: scale(0.98);
}

/* Icône du bouton */
.button-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  transition: transform 0.2s;
}

.tool-button:hover .button-icon {
  transform: rotate(5deg) scale(1.1);
}

/* Titre du bouton */
.button-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* Description du bouton */
.button-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.3;
}

/* ========================================
   BADGES
======================================== */

.badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-popular {
  background: #10b981;
  color: white;
}

.badge-beta {
  background: #f59e0b;
  color: white;
}

.badge-soon {
  background: #6b7280;
  color: white;
}

/* ========================================
   BOUTON DÉSACTIVÉ
======================================== */

.tool-button.disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  opacity: 0.6;
  cursor: not-allowed;
}

.tool-button.disabled:hover {
  transform: none;
  box-shadow: none;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

/* ========================================
   SECTION INFORMATION
======================================== */

.info-section {
  margin-top: 2rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fef5e7, #fff8f0);
  border-radius: 10px;
}

.info-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-text {
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.5;
}

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

@media (max-width: 768px) {
  .outils-container {
    padding: 0 0.75rem;
  }
  
  .nav-tabs {
    padding: 0.2rem;
    max-width: 100%;
  }
  
  .nav-tab {
    font-size: 0.85rem;
    padding: 0.6rem 0.5rem;
  }
  
  .content-area {
    padding: 1.5rem 1rem;
    border-radius: 10px;
  }
  
  .tools-buttons {
    grid-template-columns: 1fr;
  }
  
  .tool-button {
    padding: 1.25rem;
  }
  
  .button-icon {
    font-size: 2rem;
  }
  
  .button-title {
    font-size: 0.95rem;
  }
  
  .button-desc {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .outils-main-section {
    padding: 2rem 0;
  }
  
  .nav-tabs {
    flex-wrap: wrap;
    border-radius: 12px;
    gap: 0.25rem;
  }
  
  .nav-tab {
    flex: 1 1 45%;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
  }
  
  .content-area {
    padding: 1rem;
  }
  
  .tool-button {
    padding: 1rem;
  }
  
  .badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }
  
  .info-section {
    padding: 1rem;
  }
  
  .info-title {
    font-size: 0.85rem;
  }
  
  .info-text {
    font-size: 0.8rem;
  }
}

/* ========================================
   THÈME SOMBRE
======================================== */

:root.theme-dark .outils-main-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, #1a1a1a 100%);
}

:root.theme-dark .nav-tabs {
  background: #2a2a2a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

:root.theme-dark .nav-tab {
  color: var(--text-secondary);
}

:root.theme-dark .nav-tab:hover {
  color: var(--text-color);
}

:root.theme-dark .nav-tab.active {
  background: linear-gradient(135deg, #a76107, #d4822a);
  color: white;
}

:root.theme-dark .content-area {
  background: #2a2a2a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

:root.theme-dark .tool-button {
  background: #1a1a1a;
  border-color: var(--border-color);
}

:root.theme-dark .tool-button:hover {
  background: linear-gradient(135deg, #3a2a1a, #2a2a2a);
  border-color: #d4822a;
}

:root.theme-dark .tool-button.disabled {
  background: #151515;
  border-color: #333;
  opacity: 0.5;
}

:root.theme-dark .tool-button.disabled:hover {
  background: #151515;
  border-color: #333;
}

:root.theme-dark .button-title {
  color: var(--text-color);
}

:root.theme-dark .button-desc {
  color: var(--text-secondary);
}

:root.theme-dark .info-section {
  background: linear-gradient(135deg, #2a1f1a, #1f1a1a);
}

:root.theme-dark .info-title {
  color: #d4822a;
}

:root.theme-dark .info-text {
  color: #c4a570;
}

/* ========================================
   ANIMATIONS SUPPLÉMENTAIRES
======================================== */

/* Animation au survol des badges */
.badge {
  transition: transform 0.2s ease;
}

.tool-button:hover .badge {
  transform: scale(1.05);
}

/* Animation de pulse pour les boutons "Bientôt" */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

.tool-button.disabled {
  animation: pulse 3s infinite;
}

/* Focus pour l'accessibilité */
.nav-tab:focus,
.tool-button:focus {
  outline: 2px solid #d4822a;
  outline-offset: 2px;
}

:root.theme-dark .nav-tab:focus,
:root.theme-dark .tool-button:focus {
  outline-color: #f59e0b;
}