/* Critical CSS pour le Above-The-Fold (Home hero + CTA) */
/* Déplacé depuis index.html pour permettre CSP stricte sans 'unsafe-inline' */

/* Skip link — Accessibilité WCAG 2.2 (2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: #0e2a7a;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #22b687;
  outline-offset: 2px;
}
/* Focus-visible global — WCAG 2.2 (2.4.7 + 2.4.11) */
:focus-visible {
  outline: 3px solid #22b687;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Supprimer outline par défaut si pas keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}
:root,
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f3f6ff;
  color: #1e293b;
}
#root {
  min-height: 100vh;
  background: linear-gradient(120deg, #f3f6ff 0%, #ffffff 100%);
}
.home-vitrine {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.home-header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  /* CWV: contain:layout isole le calcul de layout, réduit le travail rendu LCP */
  contain: layout;
  /* CWV: min-height stable prévient le CLS quand le carousel charge (inset absolu) */
  min-height: 280px;
}
.home-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-header p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 24px;
  color: #475569;
}
.buttons__container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 36px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.cta-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 10px 20px 35px rgba(102, 126, 234, 0.35);
}
.cta-button.secondary {
  background: #fff;
  border: 2px solid #5a67d8;
  color: #5a67d8;
}
.presentation,
.demo {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-top: 24px;
}
.demo h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.search-placeholder {
  border: 1px dashed #d0d7ff;
  border-radius: 16px;
  padding: 32px;
  margin-top: 16px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: rgba(255, 255, 255, 0.85);
}
.search-placeholder__ping {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
  margin-top: 12px;
  animation: placeholder-pulse 1.6s infinite ease-in-out;
}
@keyframes placeholder-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}
@media (min-width: 768px) {
  .buttons__container {
    flex-direction: row;
    justify-content: center;
  }
}
