/* ============================================
   app.aecforward.ai — page d'accueil des démos
   Style repris du site aecforward.ai (Astro) :
   website/2026_04_astro/website/src/styles/global.css
   et ses composants Navigation, HeroSection, ServicesSection, Footer.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette (identique au site) */
  --color-primary-blue: #3FA9F5;
  --color-green: #7AC943;
  --color-orange: #FF931E;
  --color-light-grey: #F2F2F2;
  --color-navy: #173753;
  --color-white: #FFFFFF;
  --color-red: #EF4136;
  --color-deep-purple: #93278F;
  --color-amber-gold: #FFC20E;

  /* Semantic tokens */
  --color-bg: var(--color-white);
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-cta: #0077cc;
  --color-cta-hover: #005fa3;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-hero: clamp(2rem, 4vw, 3.25rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-section: clamp(3rem, 6vw, 6rem);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Navigation (comme Navigation.astro) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-light-grey);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  height: var(--nav-height);
}

.nav-logo { height: 4rem; width: auto; }

.nav-menu { display: flex; align-items: center; gap: var(--space-md); }

.nav-link {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link:focus { color: var(--color-cta); }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cta);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  min-height: 44px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.nav-cta:hover, .nav-cta:focus, .button:hover, .button:focus { background-color: var(--color-cta-hover); }

/* --- Hero (comme HeroSection.astro, sans image animée) --- */
.hero {
  padding: var(--space-section) var(--space-sm) var(--space-md);
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-headline { font-size: var(--font-size-hero); line-height: 1.1; }

.hero-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-cta);
}

.hero-subheading {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 640px;
}

/* --- Cartes des démos (comme ServicesSection.astro) --- */
.demos-section { padding: var(--space-md) var(--space-sm) var(--space-section); }

.demos-inner { max-width: var(--max-width); margin-inline: auto; }

.demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.demo-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: 8px;
  border-top: 3px solid var(--accent, var(--color-primary-blue));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.demo-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--space-md);
  flex: 1;
}

.badge {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  color: var(--color-white);
}
.badge--live { background-color: var(--color-green); }
.badge--soon { background-color: var(--color-orange); }
.badge--request { background-color: var(--color-primary-blue); }
.badge--neutral { background-color: var(--color-text-muted); }

.demo-title { font-size: var(--font-size-xl); font-weight: 600; }

.demo-description { color: var(--color-text-muted); }

.demo-meta { font-size: 0.875rem; color: var(--color-text-muted); }

.demo-text .button { align-self: flex-start; margin-top: auto; }

.button--secondary {
  background-color: var(--color-white);
  color: var(--color-cta);
  border: 2px solid var(--color-cta);
}
.button--secondary:hover, .button--secondary:focus { background-color: var(--color-cta); color: var(--color-white); }

/* --- Page d'accès client (private.html) --- */
.hero.private { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.hero.private .badge { align-self: center; }
.private-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-top: var(--space-xs); }

/* --- Bandeau contact --- */
.contact-band {
  background-color: var(--color-light-grey);
  padding: var(--space-section) var(--space-sm);
  text-align: center;
}
.contact-band h2 { font-size: var(--font-size-2xl); margin-bottom: var(--space-sm); }
.contact-band p { color: var(--color-text-muted); max-width: 640px; margin: 0 auto var(--space-md); }
.contact-band .button { font-size: var(--font-size-lg); padding: 0.875rem 2rem; }

/* --- Pied de page (comme Footer.astro) --- */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}
.site-footer p { opacity: 0.85; }
.site-footer a { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 767px) {
  :root { --nav-height: 4rem; }
  .nav-logo { height: 3rem; }
  .nav-link { display: none; }
  .demos-grid { grid-template-columns: 1fr; }
  .hero-value { font-size: 1.15rem; }
  .hero-subheading { font-size: var(--font-size-base); }
}

@media (min-width: 768px) {
  .nav-container { padding-inline: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-card, .demo-card:hover { transition: none; transform: none; }
}
