/* ==========================================================================
   Page Outils Internes - Styles CSS
   ========================================================================== */

/* Hero Section */
.outils-hero {
  background: linear-gradient(#003A65);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  
}

/* Breadcrumb dans le hero */
/* .outils-hero .breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  justify-content: center;
} */

.outils-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.outils-hero .breadcrumb-item.active {
  color: white;
}

/* Content Section */
.outils-content {
  padding-bottom: 4rem;
}

/* Grille d'outils */
.outils-grid {
  margin-top: 2rem;
}

.outils-grid .row {
  margin: -15px;
}

.outils-grid [class*="col-"] {
  padding: 15px;
}

/* Cartes d'outils */
.outil-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.outil-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.outil-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  padding: 1.5rem;
}

.outil-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Images des outils */
.outil-image {
  text-align: center;
  margin-bottom: 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.outil-image img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.outil-card:hover .outil-image img {
  transform: scale(1.05);
}

/* Informations des outils */
.outil-info {
  text-align: center;
}

.outil-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.outil-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Section d'aide */
.outils-help {
  border-top: 1px solid #e5e7eb;
  padding-top: 3rem;
}

.help-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
}

.help-icon {
  color: #3b82f6;
}

.help-card h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 600;
}

.help-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 767.98px) {
  .outils-hero {
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .outils-grid .row {
    margin: -10px;
  }
  
  .outils-grid [class*="col-"] {
    padding: 10px;
  }
  
  .outil-link {
    padding: 1rem;
  }
  
  .outil-image {
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .outil-image img {
    max-height: 60px;
  }
  
  .outil-title {
    font-size: 1.125rem;
  }
  
  .outil-description {
    font-size: 0.8rem;
  }
  
  .help-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .outils-hero {
    padding: 2rem 0 1.5rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .outil-link {
    padding: 0.75rem;
  }
  
  .outil-image {
    height: 50px;
  }
  
  .outil-image img {
    max-height: 50px;
  }
  
  .help-card {
    padding: 1.5rem;
  }
}

/* Animation au chargement */
.outil-card {
  animation: fadeInUp 0.6s ease-out;
}

.outil-card:nth-child(2) { animation-delay: 0.1s; }
.outil-card:nth-child(3) { animation-delay: 0.2s; }
.outil-card:nth-child(4) { animation-delay: 0.3s; }
.outil-card:nth-child(5) { animation-delay: 0.4s; }
.outil-card:nth-child(6) { animation-delay: 0.5s; }

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

/* États de focus pour l'accessibilité */
.outil-link:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Indicateur de lien externe */
.outil-link[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'/%3e%3c/svg%3e");
  background-size: contain;
  margin-left: 0.25rem;
  opacity: 0.5;
  vertical-align: top;
  margin-top: 0.125rem;
}