:root {
  --blue: #08264a;
  --blue2: #123d6b;
  --green: #45a829;
  --green2: #7ac943;
  --yellow: #f6b21a;
  --bg: #f6f9fc;
  --text: #102a43;
  --muted: #60758a;
  --border: #dce6ef;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* HEADER */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  max-width: 270px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo {
  display: block !important;
  width: auto !important;
  height: 70px !important;
  max-height: 70px !important;
  max-width: 250px !important;
  object-fit: contain !important;
}

/* Ancien logo texte, caché si jamais il reste dans le code */
.brand-icon,
.brand-text {
  display: none !important;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.menu a {
  color: var(--blue);
}

.menu a:hover {
  color: var(--green);
}

/* Sécurité pour empêcher toute image du header de devenir immense */
header img,
.topbar img,
.nav img {
  max-height: 58px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain !important;
}

/* BOUTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 21px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: .2s ease;
}

.btn-main {
  background: var(--green);
  color: white !important;
  box-shadow: 0 16px 34px rgba(69, 168, 41, .22);
}

.btn-main:hover {
  background: #348d1d;
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: var(--blue) !important;
  border: 1px solid var(--border);
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at top right, rgba(246, 178, 26, .24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(69, 168, 41, .15), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 50%, #edf7ff 100%);
  padding: 74px 0 82px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 28px;
}

.breadcrumb span:last-child {
  color: var(--blue);
  font-weight: 800;
}

.label {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

h1 {
  font-size: 58px;
  line-height: 1.03;
  margin: 0;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: -2px;
}

h2 {
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: -1px;
}

h3 {
  color: var(--blue);
  margin: 0 0 10px;
}

.hero p,
.text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 24px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: white;
  border: 1px solid var(--border);
  color: #334155;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 14px;
}

.badge b {
  color: var(--green);
}

.hero-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 30px 76px rgba(8, 38, 74, .16);
}

/* FORMULAIRE */

.form-title,
.mini-form-title {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: white;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.form-title::after,
.mini-form-title::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(246, 178, 26, .17);
}

.form-title strong,
.mini-form-title strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.form-title span,
.mini-form-title span {
  position: relative;
  z-index: 2;
  display: block;
  color: #cfe2f5;
  line-height: 1.5;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 14px;
  font-size: 15px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
  font-family: Arial, Helvetica, sans-serif;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 4px rgba(69, 168, 41, .10);
}

/* SECTIONS */

.section {
  padding: 82px 0;
  background: white;
}

.section.grey {
  background: var(--bg);
}

.section.dark {
  background: var(--blue);
  color: white;
}

.section.dark h2,
.section.dark h3 {
  color: white;
}

.section.dark .text {
  color: #cfe2f5;
}

.center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* GRILLES ET CARTES */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.card-icon {
  min-width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #eefbe9;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 900;
  padding: 0 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.card a {
  color: var(--green) !important;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

/* STEPS / INFOS */

.steps,
.info-list {
  display: grid;
  gap: 14px;
}

.step,
.info-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.info-ico {
  width: 48px;
  height: 44px;
  border-radius: 14px;
  background: #fff7ed;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

.step strong,
.info-row strong {
  display: block;
  color: var(--blue);
  margin-bottom: 5px;
}

.step span,
.info-row span {
  color: var(--muted);
  line-height: 1.55;
}

/* TABLEAUX */

.compare {
  margin-top: 42px;
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th {
  background: var(--blue);
  color: white;
  text-align: left;
  padding: 18px;
  font-size: 15px;
}

td {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  color: #4b5f75;
  line-height: 1.55;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

td strong {
  color: var(--blue);
}

/* CARTES DARK */

.dark-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.dark-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 24px;
}

.dark-card strong {
  display: block;
  color: white;
  font-size: 19px;
  margin-bottom: 10px;
}

.dark-card p {
  color: #cfe2f5;
  line-height: 1.65;
  margin: 0;
}

/* NOTE */

.note {
  margin-top: 26px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: 22px;
  padding: 22px;
  line-height: 1.65;
}

.note strong {
  color: #9a3412;
}

/* FAQ */

.faq {
  display: grid;
  gap: 15px;
  margin-top: 42px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.faq-item strong {
  color: var(--blue);
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* CTA */

.cta {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: white;
  padding: 78px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
}

.cta h2 {
  color: white;
}

.cta p {
  color: #cfe2f5;
  font-size: 18px;
  line-height: 1.65;
}

.cta-card {
  background: white;
  color: var(--blue);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .18);
}

.cta-line {
  background: #f8fafc;
  border-radius: 16px;
  padding: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* FOOTER */

.footer {
  background: #061d38;
  color: white;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer p,
.footer a {
  color: #cfe2f5;
  line-height: 1.6;
  font-size: 14px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

/* MESSAGE SUCCÈS */

.success {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  max-width: 380px;
  display: none;
}

.success strong {
  display: block;
  margin-bottom: 5px;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .hero-grid,
  .split,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .dark-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 15px;
  }

  .nav {
    min-height: 70px;
  }

  .brand {
    max-width: 250px;
  }

  .brand-logo {
    height: 70px !important;
    max-height: 70px !important;
    max-width: 250px !important;
  }

  header img,
  .topbar img,
  .nav img {
    max-height: 58px !important;
    max-width: 250px !important;
  }

  .hero {
    padding: 38px 0 48px;
  }

  .section,
  .cta {
    padding: 52px 0;
  }

  h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  h2 {
    font-size: 28px;
  }

  .hero p,
  .text {
    font-size: 16px;
  }

  .grid-3,
  .grid-4,
  .dark-cards {
    grid-template-columns: 1fr;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-card,
  .card,
  .cta-card,
  .faq-item {
    box-shadow: none;
  }

  .success {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
}