/* ==========================================================================
   MARKETING.CSS - STYLE COMPLET POUR SITE VITRINE
   ========================================================================== */

/* --- 1. GLOBAL & RESET --- */
body {
  background: #fff; /* Fond blanc dominant pour la vitrine */
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden; /* Évite le scroll horizontal sur animation */
}

/* --- 2. NAVBAR VITRINE --- */
.vitrine-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.vitrine-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* --- 3. SECTIONS GÉNÉRIQUES --- */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* --- 4. HERO SECTION (ACCUEIL & FEATURES) --- */
.hero-section,
.feature-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #eaf1fb 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle,
.feature-hero .lead {
  font-size: 1.25rem;
  color: var(
    --text-secondary
  ); /* Peut être un gris bleuté selon tes variables */
  color: #64748b; /* Fallback si var non def */
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Animation flottante pour l'icône du Hero */
.feature-hero-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Image Principale Hero */
.feature-hero-visual {
  margin-top: 50px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  background: white;
  overflow: hidden;
}

.feature-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 5. GRILLES (FONCTIONNALITÉS / AVANTAGES) --- */
/* Grille simple (Accueil) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Grille Avantages (Détail) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-card,
.benefit-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center; /* Centré par défaut pour les avantages */
}

.feature-card:hover,
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-icon,
.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block; /* Force le bloc pour centrage */
}

/* Titres des cartes */
.feature-card h3,
.benefit-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

/* --- 6. GRILLE DE CARTES NAVIGABLES (PAGE FONCTIONNALITÉS) --- */
.features-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.feature-box__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

/* Couleurs des icônes */
.bg-blue {
  background: #e0f2fe;
  color: #0284c7;
}
.bg-green {
  background: #dcfce7;
  color: #16a34a;
}
.bg-purple {
  background: #f3e8ff;
  color: #9333ea;
}
.bg-orange {
  background: #ffedd5;
  color: #ea580c;
}
.bg-red {
  background: #fee2e2;
  color: #dc2626;
}
.bg-indigo {
  background: #e0e7ff;
  color: #4f46e5;
}

.feature-box__link {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- 7. VIDÉO RESPONSIVE --- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 8. ÉTAPES (COMMENT ÇA MARCHE) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

@media (min-width: 992px) {
  .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(
      to right,
      var(--border-color) 50%,
      transparent 50%
    );
    background-size: 10px 100%;
    z-index: 1;
  }
}

/* --- 9. DÉTAILS FONCTIONNALITÉS (LAYOUT TEXTE/IMAGE) --- */
.feature-intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-primary);
}

.feature-layout-twocol {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
}

.feature-layout-twocol.reverse {
  flex-direction: row-reverse;
}

.feature-layout-twocol .text-content,
.feature-layout-twocol .visual-content {
  flex: 1;
}

.feature-layout-twocol h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-layout-twocol ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-layout-twocol ul li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.05rem;
  color: #64748b;
}

.feature-layout-twocol ul li::before {
  content: "\f00c"; /* FontAwesome Check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--success-color);
}

.visual-content img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* --- 10. CAS D'USAGE --- */
.use-cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.use-case-item {
  background: white;
  padding: 25px;
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--primary-color);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.use-case-icon {
  font-size: 2rem;
  background: var(--background-light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.use-case-item h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.use-case-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

/* --- 11. FOOTER VITRINE --- */
.vitrine-footer {
  background: var(--text-primary); /* Fond sombre */
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--primary-color);
}

/* --- 12. RESPONSIVE GLOBAL --- */
@media (max-width: 992px) {
  .feature-layout-twocol,
  .feature-layout-twocol.reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-layout-twocol ul {
    text-align: left;
    display: inline-block; /* Pour centrer le bloc mais garder les puces à gauche */
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  } /* Penser au menu burger */
  .hero-section {
    padding-top: 100px;
  }
}
/* --- STYLE ADMIN --- */
.admin-container {
  max-width: 1400px;
  margin: 100px auto;
  padding: 20px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: #f1f5f9;
  padding: 20px;
  border-radius: 8px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.admin-table th,
.admin-table td {
  padding: 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.admin-table th {
  background: #f8fafc;
}
.admin-form-group {
  margin-bottom: 15px;
}
.admin-form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}
.badge-active {
  background: #dcfce7;
  color: #166534;
}
.badge-inactive {
  background: #fee2e2;
  color: #991b1b;
}
/* Séparateur entre les blocs de détails */
.section-separator {
  height: 1px;
  background-color: var(--border-color);
  margin: 60px auto; /* Espace vertical */
  width: 200px; /* Petit trait centré */
  border: none;
}
/* --- PAGES LÉGALES (CGU / CONFIDENTIALITÉ) --- */
.legal-content {
  background: #fff;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.legal-content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--background-light);
}

.legal-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

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

/* Encadré de version/date */
.legal-meta {
  background: var(--background-light);
  padding: 15px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 40px;
  border: 1px solid var(--border-color);
}
