/* ============================================================
   BLOC ANALYSE LOGO IA - DESIGN EXCLUSIF CADEAUWEB
   ============================================================ */

/* Conteneur Principal (Aside pour le SEO) */
.nd-logo-analysis {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #28a745, #e4599e) border-box;
  border: 2px solid transparent !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin: 20px 10px;
  transition: transform 0.3s ease;
}

.nd-logo-analysis .card-body {
  padding: 0;
  background: #fff;
}

/* Header & Titre (Optimisé SEO) */
.nd-logo-head {
  background: #fdfcfd;
  padding: 1.1rem;
  border-bottom: 1px solid #f0f0f0;
}

.nd-logo-title {
  font-size: 1rem;
  font-weight: 800;
  color: #333;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
  display: block;
}

.ai-badge {
  background: linear-gradient(90deg, #be185d, #e4599e);
  color: white;
  font-size: 0.65rem;
  padding: 2px 9px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
  letter-spacing: 1px;
  font-weight: 900;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(228, 89, 158, 0.2);
}

.nd-logo-intro {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Zone d'Upload (Dropzone) */
.nd-logo-analysis-content {
  padding: 1.2rem;
}

.nd-logo-dropzone {
  border: 2px dashed #d1d5db;
  background: #f9fafb;
  border-radius: 10px;
  padding: 1.8rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nd-logo-dropzone:hover, .nd-logo-dropzone--active {
  border-color: #e4599e;
  background: #fff5fa;
  transform: translateY(-2px);
}

.nd-logo-dropzone i {
  font-size: 2.2rem;
  color: #e4599e;
  display: block;
  margin-bottom: 8px;
}

.nd-logo-dropzone-text {
  font-size: 0.88rem;
  color: #4b5563;
}

/* Bouton d'Analyse */
#nd-logo-analyze-btn {
  background: #28a745;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
  transition: all 0.3s ease;
  color: #fff;
}

#nd-logo-analyze-btn:hover {
  background: #218838;
  transform: scale(1.02);
}

/* Animation de Scan (Loading) */
#nd-logo-analysis-loading {
  position: relative;
  min-height: 80px;
  overflow: hidden;
}

.ia-scanner {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e4599e, transparent);
  position: absolute;
  top: 0;
  left: 0;
  animation: scanMove 2.5s infinite ease-in-out;
}

@keyframes scanMove {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.loading-text {
  color: #e4599e;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-top: 25px;
  animation: pulse 1.5s infinite;
}

/* Résultat d'Analyse */
#nd-logo-analysis-result {
  animation: fadeInUp 0.5s ease-out;
}

.badge-ia-certifie {
  background: #e9f7ef;
  color: #1e7e34;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid #28a745;
}

/* Boîte de conseil IA */
#nd-logo-conseil-block strong {
  color: #be185d;
  font-size: 0.75rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

#nd-logo-conseil-text {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Bloc Contact Expert */
.contact-expert-box {
  background: #f1f5f9;
  border-left: 4px solid #e4599e;
  padding: 10px;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 12px;
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

.contact-expert-box i {
  color: #e4599e;
  margin-right: 5px;
}

/* Technique Star Box */
.technique-star-box {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin: 15px 0;
}

.nd-logo-technique-principale-badge {
  background: linear-gradient(90deg, #be185d, #e4599e);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(228, 89, 158, 0.3);
  text-transform: uppercase;
}

/* Autres options possibles (badges techniques secondaires) */
#nd-logo-techniques-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.secondary-tech-badge {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Alertes (Qualité image, etc) */
#nd-logo-alerts {
  border-radius: 8px;
  padding: 10px;
  font-size: 0.8rem;
}

/* Animations globales */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 767px) {
  .nd-logo-analysis { margin: 15px 5px; }
  .nd-logo-title { font-size: 0.95rem; }
}