/* --------------------
   Base
-------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #f7f8fb;
  line-height: 1.5;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 60px 0;
  background: #f7f8fb;
}

.section.alt {
  background: #ffffff;
}

.section-tight {
  padding: 25px 0;
}

/* --------------------
   Header & Nav
-------------------- */

.main-header {
  background: #ffffff;
  border-bottom: 1px solid #dde3f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  text-decoration: none;
  color: #1e2a3b;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: #e5f0ff;
  color: #004aad;
}

.nav a.active {
  background: #004aad;
  color: #ffffff;
}

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

.hero {
  padding: 70px 0 80px;
  background: radial-gradient(circle at top left, #e7f0ff 0, #f7f8fb 55%);
}

.hero-small {
  padding: 40px 0;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 16px;
  color: #102340;
}

.hero p {
  max-width: 640px;
  font-size: 1rem;
  color: #3a4454;
}

.hero .cta-buttons {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Landing démo spécifique */

.hero-demo {
  background: linear-gradient(135deg, #0056b3 0%, #003f80 60%, #002552 100%);
  color: #ffffff;
  padding: 60px 0 70px;
}

.hero-demo-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.hero-demo-left {
  flex: 1 1 320px;
}

.hero-demo-right {
  flex: 1 1 340px;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0 10px;
}

.hero-benefits li {
  margin-bottom: 6px;
}

.hero-badges {
  margin-top: 8px;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-right: 8px;
  margin-bottom: 6px;
}

/* --------------------
   Typography
-------------------- */

h1, h2, h3, h4 {
  color: #102340;
  margin-top: 0;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 12px;
}

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

.features-list li {
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #004aad;
}

/* --------------------
   Grids & Cards
-------------------- */

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e6f0;
  padding: 18px 18px 20px;
  box-shadow: 0 4px 8px rgba(0, 17, 51, 0.03);
}

.card h3 {
  margin-top: 0;
}

.card-form {
  background: #ffffff;
  border-radius: 8px;
  border: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  padding: 22px 22px 24px;
  color: #333333;
}

/* Pricing cards */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.price {
  font-size: 1.2rem;
  margin-top: 8px;
}

/* Steps */

.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: etapes;
}

.steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}

.steps li::before {
  counter-increment: etapes;
  content: counter(etapes);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #004aad;
  color: #ffffff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notice / info */

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #f0f5ff;
  border: 1px solid #d4e0ff;
  font-size: 0.9rem;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.05s;
}

.btn-primary {
  background: #004aad;
  color: #ffffff;
  border-color: #004aad;
}

.btn-primary:hover {
  background: #003a8a;
  border-color: #003a8a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #004aad;
  border-color: #004aad;
}

.btn-outline:hover {
  background: #e5f0ff;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* --------------------
   Forms
-------------------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2a3a;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: 6px;
  border: 1px solid #cbd3e5;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #004aad;
  box-shadow: 0 0 0 1px rgba(0, 74, 173, 0.12);
}

.contact-form textarea {
  min-height: 80px;
  resize: vertical;
}

.small-note {
  font-size: 0.8rem;
  color: #666666;
  margin-top: 10px;
}

/* --------------------
   Proof / bandeaux
-------------------- */

.section-proof {
  background: #f0f4ff;
}

.proof-text {
  text-align: center;
  font-size: 0.95rem;
}

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

.footer {
  background: #0c1523;
  color: #e0e6f2;
  padding: 20px 0;
  margin-top: 30px;
  font-size: 0.85rem;
}

.footer a {
  color: #d4e0ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero,
  .hero-demo {
    padding: 40px 0 50px;
  }

  .hero-demo-inner {
    flex-direction: column;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
