/* ============================================================
   STAGEMENTOR — Site vitrine
   style.css
   Charte : #1a1f3a (navy) | #6366f1 (indigo) | #f97316 (orange)
   Police : Inter (Google Fonts)
============================================================ */

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:      #1e1b4b;
  --indigo:    #6366f1;
  --indigo-dark: #4f46e5;
  --indigo-light: #eef2ff;
  --orange:    #f97316;
  --orange-light: #fff7ed;
  --text:      #1e293b;
  --text-muted: #64748b;
  --bg:        #ffffff;
  --bg-alt:    #f8fafc;
  --border:    #e2e8f0;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
  --header-h:  90px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── UTILITAIRES ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent  { color: var(--indigo); }
.text-orange  { color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.btn-primary:hover {
  background: var(--indigo-dark);
  border-color: var(--indigo-dark);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-outline:hover {
  background: var(--indigo-light);
}

.btn-white {
  background: #fff;
  color: var(--indigo-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--indigo-light);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── FADE-IN (IntersectionObserver) ─────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HEADER / NAV ────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.75);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  margin-left: 12px;
  flex-shrink: 0;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(241, 245, 249, 0.85);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Burger ouvert */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 50%, #fff7ed 100%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 80px;
  max-width: 740px;
}

.hero-badge {
  display: inline-block;
  background: var(--indigo-light);
  color: var(--indigo-dark);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* Forme décorative */
.hero-bg-shape {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── PROBLÈME ────────────────────────────────────────────── */
.probleme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.probleme-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.probleme-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.probleme-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.probleme-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.probleme-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── FONCTIONNALITÉS ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--indigo-light);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CAPTURES D'ÉCRAN ────────────────────────────────────── */
.tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 6px;
  width: fit-content;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tab-btn.active {
  background: #fff;
  color: var(--indigo);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover:not(.active) {
  color: var(--text);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mockup navigateur */
.browser-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.browser-bar {
  background: #f1f5f9;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28ca41; }

.browser-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 4px 14px;
  border-radius: 6px;
  margin-left: 12px;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  max-width: 340px;
}

.browser-body {
  background: var(--bg-alt);
  min-height: 400px;
  position: relative;
}

.browser-body img.screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder quand l'image n'existe pas encore */
.screenshot-fallback {
  display: none;
}

.browser-body.screenshot-placeholder .screenshot-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 380px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.browser-body.screenshot-placeholder img.screenshot {
  display: none;
}

.screenshot-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.screenshot-fallback p {
  font-weight: 600;
  color: var(--text);
}

.screenshot-fallback small {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── RGPD ────────────────────────────────────────────────── */
.rgpd {
  background: var(--indigo-light);
}

.rgpd .section-title { color: var(--navy); }

.rgpd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.rgpd-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid #c7d2fe;
  transition: box-shadow var(--transition), transform var(--transition);
}

.rgpd-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.rgpd-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.rgpd-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.rgpd-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── POUR QUI ? ──────────────────────────────────────────── */
.pourqui-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pourqui-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.pourqui-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: var(--indigo);
}

.pourqui-card--orange:hover {
  border-color: var(--orange);
}

.pourqui-avatar {
  font-size: 2.8rem;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--indigo-light);
  border-radius: 20px;
}

.pourqui-card--orange .pourqui-avatar {
  background: var(--orange-light);
}

.pourqui-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.pourqui-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pourqui-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pourqui-list li {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

/* ── CTA FINAL ───────────────────────────────────────────── */
.cta {
  background: var(--navy);
  color: #f1f5f9;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.cta-subtitle {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 44px;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder {
  color: #475569;
}

.form-group input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #475569;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #64748b;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #f1f5f9;
}

.footer-copy {
  font-size: 0.8rem;
  color: #475569;
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  margin-top: 8px;
}

/* ── RESPONSIVE — TABLETTE ───────────────────────────────── */
@media (max-width: 900px) {
  .features-grid,
  .probleme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pourqui-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .rgpd-grid {
    grid-template-columns: 1fr;
  }
}

/* ── RESPONSIVE — MOBILE ─────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --header-h: 76px;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 99;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 60px;
  }

  .hero-bg-shape {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Grilles */
  .features-grid,
  .probleme-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  /* Tabs */
  .tabs-nav {
    flex-direction: column;
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* ── FORMULAIRE — messages de retour ─────────────────── */
.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.form-message--success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-message--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
