/* YEBA – Couleurs officielles de l'app (yeba_constants.dart) */

:root {
  /* Couleurs YEBA */
  --yeba-blue: #1E88E5;
  --yeba-coral: #FF6B6B;
  --yeba-bg-dark: #1A1A2E;
  --yeba-bg-secondary: #2A203A;
  --yeba-text: #FFFFFF;
  --yeba-text-muted: #B0B0CC;
  /* Header & footer */
  --header-bg: var(--yeba-bg-dark);
  --header-text: var(--yeba-text);
  --header-text-hover: var(--yeba-blue);
  --btn-primary: var(--yeba-blue);
  --btn-primary-hover: #1565C0;
  --footer-bg: var(--yeba-bg-dark);
  --footer-text: var(--yeba-text-muted);
  /* Contenu */
  --body-bg: #f8fafc;
  --section-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --container: min(90vw, 1100px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header – YEBA pro avec icônes et couleurs officielles */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--header-text);
}

.site-logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--yeba-blue), var(--yeba-coral));
  border-radius: 10px;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.site-logo__mark {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-logo__tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yeba-text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--yeba-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav__link i {
  font-size: 1rem;
  opacity: 0.9;
}

.site-nav__link:hover {
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__link:hover i {
  color: var(--yeba-blue);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--yeba-blue), #1976D2);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  margin-left: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.site-nav__cta i {
  font-size: 0.9375rem;
}

.site-nav__cta:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.45);
  transform: translateY(-1px);
}

/* Hero – centré, gros titre + CTA téléchargement */
.hero {
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 50%, var(--body-bg) 100%);
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-download-hero {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.btn-download-hero:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}

.hero-version {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections – fond blanc ou gris clair */
.section {
  padding: 4rem 0;
  background: var(--section-bg);
}

.section--light {
  background: var(--body-bg);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.6;
}

/* Pourquoi YEBA ? – 3 blocs avec icônes YEBA */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.why-card {
  background: var(--section-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.why-card:hover {
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.12);
  border-color: rgba(30, 136, 229, 0.25);
  transform: translateY(-2px);
}

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--yeba-blue), var(--yeba-coral));
  border-radius: 14px;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.35);
}

.why-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Fonctionnalités – cartes avec icônes YEBA */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--section-bg);
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.1);
  border-color: rgba(30, 136, 229, 0.2);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--yeba-blue), var(--yeba-coral));
  border-radius: 12px;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Bloc CTA téléchargement – fond bleu/sombre */
.section--cta {
  background: var(--header-bg);
  color: var(--header-text);
  text-align: center;
  padding: 4rem 0 5rem;
}

.section-title--light {
  color: #fff;
}

.section-lead--light {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.btn-download {
  background: var(--btn-primary);
  color: #fff;
  margin-top: 0.5rem;
}

.btn-download:hover {
  background: var(--btn-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.download-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* Footer – YEBA pro, couleurs officielles, icônes */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--yeba-text);
}

.footer-logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--yeba-blue), var(--yeba-coral));
  border-radius: 8px;
  font-size: 1rem;
  color: #fff;
}

.footer-logo__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--yeba-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--yeba-blue);
}

.footer-nav a i {
  font-size: 0.875rem;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
}

.footer-copy,
.footer-domain {
  font-size: 0.875rem;
  color: var(--footer-text);
  margin: 0 0 0.5rem 0;
}

.footer-domain:last-child {
  margin-bottom: 0;
}

.footer-copy i,
.footer-domain i {
  margin-right: 0.25rem;
  opacity: 0.8;
}

.footer-link {
  color: var(--yeba-blue);
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    min-height: 68px;
  }

  .site-logo__icon {
    width: 38px;
    height: 38px;
    font-size: 1.0625rem;
  }

  .site-logo__mark {
    font-size: 1.25rem;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav__link,
  .site-nav__cta {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .site-nav__link span {
    display: none;
  }

  .site-nav__link i {
    font-size: 1.125rem;
    margin: 0;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    padding-bottom: 1.25rem;
  }

  .footer-nav {
    justify-content: center;
    gap: 1.25rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .why-card {
    padding: 1.5rem;
  }
}
