/* ==========================================================================
   ASTAUR — Site vitrine · DA Kelvio (thème clair)
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. Variables & reset
   -------------------------------------------------------------------------- */
:root {
  --blue:        #2d3be8;
  --blue-hover:  #1e2bc4;
  --blue-light:  #eef0fd;

  --bg:          #f5f6fa;
  --surface:     #ffffff;
  --border:      #e5e7eb;
  --border-dark: #d1d5db;

  --text:        #111827;
  --text-2:      #6b7280;
  --text-3:      #9ca3af;

  --green:       #16a34a;
  --green-bg:    #f0fdf4;
  --green-border:#bbf7d0;

  --radius-sm:   6px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);

  --container:   1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   2. Utilitaires
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--surface); }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.7;
}

.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 1px 3px rgba(45,59,232,.25);
}
.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,59,232,.3);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.btn--lg { padding: 13px 26px; font-size: .95rem; }

.btn--white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--blue);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.4px;
  flex-shrink: 0;
}
.header-logo:hover { color: var(--blue-hover); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background .1s, color .1s;
}
.header-nav a:hover { background: var(--bg); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.header-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}

.header-nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 16px;
}
.header-nav-mobile a {
  padding: 10px 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
}
.header-nav-mobile a:hover { color: var(--text); background: var(--bg); }
.header-nav-mobile .mobile-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.header-nav-mobile.open { display: flex; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .accent { color: var(--blue); }

.hero-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-note {
  font-size: .78rem;
  color: var(--text-3);
  margin-bottom: 56px;
}

.hero-mockup {
  width: 100%;
  max-width: 980px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,.06);
  margin: 0 auto;
  background: var(--bg);
}
.hero-mockup img { width: 100%; }

/* --------------------------------------------------------------------------
   6. Stats
   -------------------------------------------------------------------------- */
.stats-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 8px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-item__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label {
  font-size: .78rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Steps
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.step-card:hover {
  border-color: rgba(45,59,232,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: .975rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: .875rem; color: var(--text-2); line-height: 1.65; }

/* --------------------------------------------------------------------------
   8. Features
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.feature-card:hover {
  border-color: rgba(45,59,232,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.feature-card h3 { font-size: .975rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: .875rem; color: var(--text-2); line-height: 1.65; }

/* --------------------------------------------------------------------------
   9. Story
   -------------------------------------------------------------------------- */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.story-text p { font-size: .925rem; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.story-text p strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
  10. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 22px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.plan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.plan-card--featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, #eef0fd 0%, #ffffff 55%);
  box-shadow: 0 0 0 4px rgba(45,59,232,.08), 0 8px 32px rgba(45,59,232,.13);
}
.plan-card--featured:hover {
  box-shadow: 0 0 0 4px rgba(45,59,232,.1), 0 12px 40px rgba(45,59,232,.18);
  transform: translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}
.plan-card--featured .plan-name { color: var(--blue); }

.plan-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}
.plan-price sup {
  font-size: .95rem;
  font-weight: 700;
  vertical-align: top;
  margin-top: 5px;
  display: inline-block;
  letter-spacing: 0;
}
.plan-period {
  font-size: .76rem;
  color: var(--text-3);
  margin: 5px 0 0;
}
.plan-tagline {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.45;
  margin-top: 10px;
  min-height: 2.5em;
}
.plan-sites {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
  margin: 16px 0 0;
}
.plan-card--featured .plan-sites {
  background: rgba(45,59,232,.12);
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0 16px;
}

.plan-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .845rem;
  color: var(--text-2);
  line-height: 1.4;
}
.plan-features li::before {
  content: '';
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%2316a34a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.plan-features li.off {
  color: var(--text-3);
}
.plan-features li.off::before {
  background: var(--bg);
  border-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --------------------------------------------------------------------------
  11. FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item.open { border-color: rgba(45,59,232,.3); }

.faq-question {
  width: 100%; text-align: left;
  background: none; border: none;
  padding: 16px 20px;
  cursor: pointer;
  font-size: .9rem; font-weight: 600;
  color: var(--text); font-family: var(--font);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .1s;
}
.faq-question:hover { background: var(--bg); }
.faq-item.open .faq-question { background: var(--bg); }

.faq-arrow {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .1s;
  color: var(--text-2); font-size: .7rem;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--blue-light);
  color: var(--blue);
  border-color: rgba(45,59,232,.2);
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .25s;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 20px 18px; }
.faq-answer p { font-size: .875rem; color: var(--text-2); line-height: 1.7; }

/* --------------------------------------------------------------------------
  12. CTA final
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--blue);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.04em; margin-bottom: 12px; }
.cta-section p  { font-size: .95rem; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
  13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 800;
  color: var(--blue); letter-spacing: -.4px;
  margin-bottom: 10px;
}
.footer-desc { font-size: .85rem; color: var(--text-2); line-height: 1.65; margin-bottom: 12px; max-width: 280px; }
.footer-credit { font-size: .78rem; color: var(--text-3); }
.footer-credit a { color: var(--blue); }
.footer-credit a:hover { color: var(--blue-hover); }

.footer-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .875rem; color: var(--text-2); transition: color .1s; }
.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-3);
}

/* --------------------------------------------------------------------------
  14. Animations scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease-out, transform .5s ease-out;
  will-change: opacity, transform;
}
.reveal.from-left  { transform: translateX(-20px); }
.reveal.from-right { transform: translateX(20px); }
.reveal.visible    { opacity: 1; transform: none; }

.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
.stagger-item.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
  15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-nav, .header-actions { display: none; }
  .header-burger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-tagline { min-height: auto; }
  .story-layout { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 0; }
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .cta-section h2 { font-size: 1.6rem; }
}
