/* ---------------------------------------------------------
   AppHalt CSS - Apple-Like Premium Version
   Pur, calme, sobre, élégant, animations subtiles
   --------------------------------------------------------- */

/* Root variables ----------------------------------------------------------- */

:root {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-header: rgba(245, 247, 251, 0.9);
  --border-subtle: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --brand: #1d7ff4;
  --brand-soft: #e0edff;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 14px 40px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 50px rgba(15, 23, 42, 0.12);

  --max-width: 1080px;

  --fade-duration: 0.65s;
  --fade-distance: 14px;
}

/* ---------------------------------------------------------
   Global resets & base typography
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(
    circle at top center,
    #e3efff 0,
    #f5f7fb 55%,
    #f5f7fb 100%
  );
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  text-decoration: none;
  color: var(--brand);
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding: 44px 18px 100px;
}

.page-section {
  max-width: var(--max-width);
  margin: 0 auto 70px;
}

.page-section--hero {
  margin-top: 22px;
  margin-bottom: 86px;
}

/* ---------------------------------------------------------
   Animations (Apple-like)
   --------------------------------------------------------- */

.fade-slide {
  opacity: 0;
  transform: translateY(var(--fade-distance));
  transition:
    opacity var(--fade-duration) ease,
    transform var(--fade-duration) ease;
}

.fade-slide.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   Header (already included by your include system)
   --------------------------------------------------------- */

.ksp-row {
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  padding: 10px 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.ksp-pill {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Header styles preserved (brand, nav, buttons) but softened */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(248,250,255,0.82);
  border-bottom: 1px solid rgba(209,213,219,0.55);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.compat-figure {
  order: 2; /* force l'image à passer après le header */
  margin: 40px auto;
  text-align: center;
}

.compat-figure img {
  max-width: 80%;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(29,127,244,0.35);
}

.brand-name {
  font-size: 18px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}



.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.main-nav a.is-active {
  color: var(--brand);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 14px 34px rgba(29,127,244,0.42);
}

.btn--primary:hover {
  background: #1a72da;
}

.btn--ghost {
  background: rgba(255,255,255,0.9);
  border-color: rgba(148,163,184,0.5);
  color: var(--brand);
}

.btn--ghost:hover {
  background: white;
}

/* ---------------------------------------------------------
   Hero section
   --------------------------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow span {
  padding: 6px 12px;
  border: 1px solid rgba(209,213,219,0.9);
  background: white;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
}

.hero-title {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  margin: 16px 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-lead {
  font-size: 16px;
  max-width: 36rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px; /* espace idéal Apple-like */
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.card {
  background: var(--bg-elevated);
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226,232,240,0.85);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------------------------------------------------------
   Steps
   --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.step {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(226,232,240,0.85);
  box-shadow: var(--shadow-card);
}

.step-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ---------------------------------------------------------
   Two-column section
   --------------------------------------------------------- */

.two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: flex-start;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: "•";
  color: var(--brand);
  font-size: 18px;
  position: absolute;
  left: 6px;
  top: -2px;
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}

.testimonial {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(226,232,240,0.85);
  box-shadow: var(--shadow-card);
}

.quote-stars {
  color: #fbbf24;
  margin-bottom: 8px;
  font-size: 14px;
}

.testimonial p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.quote-name {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Pricing (download page)
   --------------------------------------------------------- */

.pricing-columns {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
}

.plan {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: var(--shadow-card);
}

.plan--pro {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

.plan-badge {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 600;
}

.plan--pro .plan-badge {
  background: linear-gradient(90deg,#facc15,#f97316);
  color: #111827;
}

.plan-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}

.plan-price span {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px;
}

.plan-features li {
  padding-left: 22px;
  margin-bottom: 8px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
}

.plan--pro .plan-features li::before {
  color: #34d399;
}

.plan-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq-list {
  max-width: 720px;
  margin: 0;          /* au lieu de 0 auto -> plus centré */
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,0.9);
  background: white;
  margin-bottom: 14px;
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 18px;
  transition: max-height 0.22s ease, padding-bottom 0.22s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 180px;
  padding-bottom: 16px;
}

.faq-toggle {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
}

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */

.contact-hero {
  text-align: center;
}

.contact-label {
  margin-top: 22px;
  margin-bottom: 4px;
  font-size: 14px;
}

.contact-email-cta {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 16px 36px rgba(29,127,244,0.42);
}

.contact-hint {
  margin-top: 18px;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.contact-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid rgba(226,232,240,0.85);
  box-shadow: var(--shadow-card);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  background: radial-gradient(circle at top, #e5efff 0, #ffffff 50%);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 18px;
}

.footer-cta {
  background: #111827;
  color: #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

/* Espace vertical entre les deux boutons dans le footer CTA */
.footer-cta .btn + .btn {
  margin-top: 10px;   /* ajuste 8–12px selon ton goût */
}

.footer-cta {
  gap: 0; /* on laisse le texte et les boutons côte à côte */
}

.footer-cta .btn {
  display: inline-flex;
}

.footer-cta .btn + .btn {
  margin-top: 10px;
}

/* Boutons dans le bloc CTA du footer */
.footer-cta .hero-actions {
  display: flex;
  flex-direction: column;   /* on force la colonne */
  align-items: flex-end;    /* alignés à droite du bloc sombre */
  gap: 10px;                /* espace net entre les 2 boutons */
}

.footer-cta-text h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.footer-cta-text p {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--brand);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .main-nav ul {
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .card-grid,
  .steps,
  .two-column,
  .testimonials-grid,
  .pricing-columns,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-meta {
    flex-direction: column;
    gap: 10px;
  }

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr; /* 1 colonne */
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  /* Centrer le menu et éviter l'effet décalé */
  .main-nav ul {
    justify-content: center;
  }
}

}

