/* Styles principaux pour l'annuaire des agences SEO */

/* Variables personnalisées - Thème SEO/Web Marketing */
:root {
  --primary-color: #2563eb; /* blue-600 - Confiance, technologie */
  --primary-dark: #1d4ed8; /* blue-700 */
  --primary-light: #dbeafe; /* blue-100 */
  --secondary-color: #f97316; /* orange-500 - Énergie, créativité */
  --secondary-dark: #ea580c; /* orange-600 */
  --secondary-light: #fed7aa; /* orange-200 */
  --accent-color: #8b5cf6; /* violet-500 - Innovation */
  --text-dark: #1f2937; /* gray-800 */
  --text-light: #f9fafb; /* gray-50 */
  --background-light: #f8fafc; /* slate-50 */
  --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --article-spacing: 1.5rem;
  --heading-color: #1e40af; /* blue-800 */
  --success-color: #10b981; /* emerald-500 */
  --warning-color: #f59e0b; /* amber-500 */
}

/* Animations améliorées pour le thème SEO */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

.pulse-hover:hover {
  animation: pulse 0.3s ease-in-out;
}

/* Styles personnalisés - Thème SEO/Digital Marketing */
.hero-section {
  background: var(--background-gradient);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

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

.category-card, .region-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.category-card:hover, .region-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-light);
  background: linear-gradient(145deg, #ffffff 0%, var(--background-light) 100%);
}

/* Styles pour les étoiles de notation - Thème SEO */
.star-rating {
  display: inline-flex;
  color: var(--secondary-color); /* orange pour les étoiles */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.star-empty {
  color: #d1d5db; /* gray-300 */
}

/* Style pour la carte dans la page entreprise */
#map {
  width: 100%;
  height: 250px;
  border-radius: 0.5rem;
}

/* Styles pour les formulaires */
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
}

/* Style pour les listes de services */
.service-item {
  position: relative;
  padding-left: 1.5rem;
}

.service-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Style pour les avis clients */
.review-card {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* Styles pour responsive design */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hidden-mobile {
    display: none;
  }
}

/* Style pour le menu mobile */
.mobile-menu {
  display: none;
}

@media (max-width: 640px) {
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
}

/* Style pour les résultats de recherche - Thème SEO moderne */
.search-result-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.search-result-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: left 0.3s ease;
}

.search-result-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
  border-color: var(--primary-light);
  background: linear-gradient(145deg, #ffffff 0%, var(--background-light) 100%);
}

.search-result-item:hover::before {
  left: 0;
}

/* Style pour les badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-color);
}

.badge-secondary {
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
  border: 1px solid var(--secondary-color);
}

.badge-success {
  background-color: #d1fae5; /* emerald-100 */
  color: #065f46; /* emerald-800 */
  border: 1px solid var(--success-color);
}

.badge-gray {
  background-color: #f3f4f6; /* gray-100 */
  color: #4b5563; /* gray-600 */
  border: 1px solid #d1d5db;
}

/* Ancien badge-green pour compatibilité */
.badge-green {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-color);
}

/* Styles pour les articles de contenu */
.article-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--article-spacing);
  line-height: 1.2;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.75rem;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  border-left: 4px solid var(--primary-color);
  padding-left: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  list-style-type: none;
}

.article-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.article-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.article-content strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.article-content u {
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
  padding-bottom: 1px;
}

.article-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.article-content a:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-content table td, .article-content table th {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.article-content table tr:nth-child(even) {
  background-color: #f9fafb;
}

.article-content table tr:first-child {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.article-content table td:first-child {
  font-weight: 500;
}

/* Amélioration des tableaux pour mobile */
.article-content table {
  min-width: 600px;
}

/* Responsive design pour les articles */
@media (max-width: 768px) {
  .article-content {
    padding: 1rem;
  }
  
  .article-content h1 {
    font-size: 1.75rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content table {
    display: block;
    overflow-x: auto;
  }
}

/* Espacement entre sections */
.article-content h2 + p {
  margin-top: 0.5rem;
}

/* Style pour les listes dans les articles */
.article-content ul + p {
  margin-top: 1rem;
}

/* Mise en valeur des sections */
.article-content h2 {
  position: relative;
  overflow: hidden;
}

/* Style amélioré pour les liens */
.article-content a {
  position: relative;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 1px;
}



.article-content a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}



/* Style pour les paragraphes avec mise en valeur */
.article-content p strong:first-child {
  position: relative;
  display: inline-block;
  padding-right: 0.25rem;
}

.article-content p strong:first-child::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
}

/* Espacement et style pour les conclusions */
.article-content h2.conclusion + p {
  font-style: italic;
  padding: 1rem;
  background-color: var(--background-light);
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
}

/* Ajustements pour les images dans les articles */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
