/**
 * SCRIBONAUTES — Page d'accueil
 * pages/home.css
 */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: var(--gradient-hero);
}

.hero-bg-ornament {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61, 107, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Illustration papier */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-paper {
  position: relative;
  width: 300px;
  height: 380px;
  background: var(--surface);
  border-radius: 4px 12px 12px 4px;
  box-shadow: var(--shadow-xl), 4px 4px 0 var(--accent-mid), 8px 8px 0 var(--border-strong);
  padding: 36px 32px;
  overflow: hidden;
}

.hero-paper::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(200, 40, 40, 0.15);
}

.paper-lines {
  position: absolute;
  inset: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.paper-lines span {
  display: block;
  height: 1px;
  background: rgba(61, 107, 94, 0.12);
  width: 100%;
}

.paper-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}

.paper-line {
  height: 10px;
  background: var(--accent-light);
  border-radius: 5px;
  animation: shimmer 2.5s ease-in-out infinite;
}

.paper-line.long   { width: 80%; }
.paper-line.medium { width: 60%; }
.paper-line.short  { width: 35%; }

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.paper-ink {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-size: 2rem;
  opacity: 0.3;
  transform: rotate(-15deg);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50%       { transform: rotate(-15deg) translateY(-6px); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 80px 0 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--trans-base);
}

.feature-card:hover {
  border-color: var(--green-border);
  background: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   CTA BOTTOM
   ============================================================ */
.cta-banner {
  padding: 80px 0;
  background: var(--accent-light);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cta-sub {
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { display: none; }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
