/* ============================================================
   INDEX.CSS — Page d'accueil Atryvia
   ============================================================ */

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 240, 232, 0.96) 0%,
    rgba(245, 240, 232, 0.88) 50%,
    rgba(245, 240, 232, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--navy);
}

.hero-title .highlight {
  color: var(--gold-dark);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 56ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* QR card décorative */
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.qr-card {
  background: linear-gradient(145deg, #e8dcc8, #d4c8b0);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 220px;
  transform: rotate(2deg);
}

.qr-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 12px;
}

.qr-code {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background-color: white;
  border-radius: 8px;
  padding: 8px;
  opacity: 0.7;
  background-image:
    repeating-linear-gradient(0deg, #1a1a1a 0px, #1a1a1a 4px, transparent 4px, transparent 8px),
    repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 4px, transparent 4px, transparent 8px);
  background-size: 8px 8px;
}

.qr-card-brand {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.qr-caption {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  font-style: italic;
  text-align: right;
}

/* ===== BARRE FEATURES ===== */
.features-bar {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.features-bar-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== DEMO ===== */
.demo-section {
  padding: 64px 0 48px;
}

.demo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
}

.demo-image {
  background-image: url('https://cdn.prod.website-files.com/69d4c1a2d2af053fb1a810c5/69fdaa4ecec06f8935df1dd4_1778231499.png');
  background-size: cover;
  background-position: center;
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.demo-badge {
  background: rgba(26, 42, 58, 0.85);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-content {
  padding: 32px 36px;
}

.demo-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.demo-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.demo-title .accent {
  color: var(--green);
}

.demo-description {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.demo-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.demo-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

.demo-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

/* ===== SERVICES ===== */
.services-section {
  padding: 0 0 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.service-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 6px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.service-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: white;
  margin-bottom: 64px;
}

.cta-banner h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.cta-banner > p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0 auto 28px;
}

.cta-highlights {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-highlight {
  text-align: center;
  color: white;
}

.cta-highlight-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cta-highlight-text {
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }

  .hero-aside {
    display: none;
  }

  .demo-card {
    grid-template-columns: 1fr;
  }

  .demo-image {
    min-height: 200px;
  }
}

@media (max-width: 760px) {
  .features-bar-inner {
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    justify-content: center;
  }
}
