/* ===================== TOKENS ===================== */
:root {
  --navy: #0a1f44;
  --navy-2: #0e2a5e;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --cyan: #38bdf8;

  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f1b33;
  --muted: #5b6679;
  --border: #e2e8f3;

  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 68, .08);
  --shadow-md: 0 10px 30px rgba(10, 31, 68, .10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, .18);

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { position: relative; padding: 96px 0; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-bright) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
  animation: gradShift 6s ease infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 99, 235, .45); }
.btn-ghost { color: var(--navy); background: rgba(255,255,255,.85); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 252, .82);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.brand-mark { border-radius: 8px; }
.brand-accent { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--muted); font-size: .96rem; transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  color: #fff !important; background: var(--navy);
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===================== HERO ===================== */
.hero { position: relative; color: #eaf1ff; padding: 130px 0 170px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(56,189,248,.35), transparent 60%),
    radial-gradient(700px 500px at 10% 20%, rgba(59,130,246,.30), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #123a86 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: gradShift 14s ease infinite;
}
.hero-inner { max-width: 820px; position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; color: var(--cyan);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; color: #fff; }
.grad-text {
  background: linear-gradient(100deg, var(--cyan), #a5d8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #c4d4f3; margin: 22px 0 32px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.hero-badges li {
  font-size: .92rem; color: #d6e2fb; padding-left: 24px; position: relative;
}
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 40%, transparent 42%);
  box-shadow: 0 0 0 2px rgba(56,189,248,.3);
}

/* ===================== SLOPES (séparations inclinées) ===================== */
.slope { position: absolute; left: 0; width: 100%; height: 90px; z-index: 1; pointer-events: none; }
.slope-bottom { bottom: -1px; background: var(--bg); clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%); }
.slope-top { top: -1px; background: var(--bg); clip-path: polygon(0 0, 100% 0, 0 100%, 0 0); }
.features { background: var(--surface); }
.features .slope-bottom { background: var(--surface); }
.features .slope-top { background: var(--surface); }
.faq { background: var(--navy); color: #e7eefc; }
.faq .slope-top, .faq .slope-bottom { background: var(--navy); }
.faq .kicker { color: var(--cyan); }
.faq .section-head h2 { color: #fff; }

/* ===================== PRÉSENTATION ===================== */
.presentation-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.lead-text { font-size: 1.18rem; font-weight: 500; margin-bottom: 18px; }
.presentation-grid p { color: var(--muted); margin-bottom: 16px; }
.presentation-grid strong { color: var(--text); }
.stat-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-cards li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--blue); }
.stat-unit { font-size: 1rem; color: var(--muted); }
.stat-label { font-size: .9rem; color: var(--muted); }

/* ===================== FEATURES ===================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 18px rgba(37,99,235,.3);
}
.feature-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .98rem; }
.feature-card--highlight {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: none; color: #e7eefc;
}
.feature-card--highlight h3 { color: #fff; }
.feature-card--highlight p { color: #b9c8ea; }
.feature-card--highlight .feature-icon { background: linear-gradient(135deg, var(--cyan), #f59e0b); }

/* ===================== REVIEWS ===================== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; font-size: 1.1rem; }
.review-card blockquote { font-size: 1.02rem; margin-bottom: 18px; }
.review-card figcaption { display: flex; flex-direction: column; }
.review-card figcaption strong { font-family: var(--font-head); }
.review-card figcaption span { color: var(--muted); font-size: .88rem; }

/* ===================== FAQ ===================== */
.faq-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 4px 22px; transition: background .2s;
}
.faq-item[open] { background: rgba(56,189,248,.10); border-color: rgba(56,189,248,.4); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head);
  font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 18px; color: #c4d4f3; }

/* ===================== CONTACT & MAP ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 22px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-list a:hover { color: var(--blue); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; }

/* ===================== FORM ===================== */
.form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg);
}
.hfield { height: 0; width: 0; position: relative; z-index: -1;}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #fff;
}
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.error { color: #dc2626; font-size: .82rem; margin-top: 6px; min-height: 1em; }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.field-check input { margin-top: 3px; }
.field-check label { font-weight: 500; font-size: .9rem; color: var(--muted); }
.field-check .error { width: 100%; }

/* Honeypot — invisible aux humains */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: #c4d4f3; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .95rem; max-width: 280px; }
.footer-col h3 { font-size: 1rem; color: #fff; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: #a9bce0; font-size: .94rem; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem;
}
.to-top:hover { color: var(--cyan); }

/* ===================== PRICING ===================== */
.pricing { background: var(--bg); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card--featured {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--blue), var(--cyan)) border-box;
  border: 2px solid transparent;
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.price-head h3 { font-size: 1.4rem; font-weight: 800; }
.price-desc { color: var(--muted); margin-top: 8px; font-size: .96rem; min-height: 66px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 22px; }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--navy); }
.price-period { color: var(--muted); font-weight: 600; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-features li { position: relative; padding-left: 30px; color: var(--text); font-size: .96rem; }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 999px; background: rgba(37, 99, 235, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 36px; font-size: .96rem; }
.pricing-note a { color: var(--blue); font-weight: 600; }

/* ===================== SCROLL ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .presentation-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-desc { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; transform: translateY(-150%); transition: transform .3s ease; box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .feature-grid, .review-grid, .stat-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
