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

/* ============================================================
   VARIABLES
============================================================ */
:root {
  --bg:          #f3f7fc;
  --white:       #ffffff;
  --text:        #0f1832;
  --muted:       #627087;
  --line:        rgba(15, 24, 50, 0.09);
  --primary:     #183d84;
  --blue:        #1d63ff;
  --soft-blue:   #eaf1ff;
  --panel-bg:    #f8fbff;

  --shadow-sm:   0 10px 24px rgba(15, 24, 50, 0.06);
  --shadow:      0 18px 42px rgba(15, 24, 50, 0.10);
  --shadow-soft: 0 10px 24px rgba(15, 24, 50, 0.08);
  --shadow-md:   0 18px 50px rgba(15, 24, 50, 0.10);
  --shadow-lg:   0 30px 80px rgba(15, 24, 50, 0.18);

  --radius-xl:   28px;
  --radius-lg:   22px;
  --radius-md:   16px;
  --container:   1180px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 99, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

button, input, textarea, select {
  font: inherit;
}

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

.page-wrap {
  min-height: 100vh;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-container {
  width: min(1220px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  height: 42px;
  width: auto;
}

.header-cta {
  min-height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(29, 99, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(29, 99, 255, 0.28);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  /*min-height: calc(100vh - 72px);*/
  padding: 56px 24px 46px;
  background:
    radial-gradient(circle at top left, rgba(29, 99, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.hero-container {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 58px;
  align-items: start;
}

.hero-left {
  padding-top: 6px;
}

.hero-left h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(2.25rem, 3.85vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-left h1 span {
  color: var(--blue);
}

.hero-text {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.hero-right {
  display: grid;
  gap: 16px;
  align-self: center;
}

/* ── Schema card ── */
.schema-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 24, 50, 0.06);
  border-radius: 26px;
  padding: 5px;
  box-shadow: var(--shadow-soft);
}

.schema-card img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

/* ── Form card ── */
.form-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}

.form-card.is-highlighted {
  animation: formPulse 0.9s ease;
}

@keyframes formPulse {
  0%   { box-shadow: 0 0 0 0 rgba(29, 99, 255, 0.24), var(--shadow); }
  100% { box-shadow: 0 0 0 14px rgba(29, 99, 255, 0), var(--shadow); }
}

.form-card-header {
  margin-bottom: 14px;
}

.form-card h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* ── Lead form ── */
.lead-form {
  display: grid;
  gap: 12px;
}

.compact-grid {
  display: grid;
  grid-template-columns: 1.16fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 750;
  font-size: 0.78rem;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 24, 50, 0.12);
  padding: 0 14px;
  outline: none;
  color: var(--text);
  background: #fbfdff;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  border-color: rgba(29, 99, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(29, 99, 255, 0.08);
}

.btn-primary {
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(29, 99, 255, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(29, 99, 255, 0.25);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.76rem;
  line-height: 1.35;
}

.consent input {
  margin-top: 2px;
  cursor: pointer;
}

/* ── Erreur formulaire ── */
.form-error {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid rgba(192, 57, 43, 0.18);
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Message de succès ── */
.form-success {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0faf5 0%, #e8f7f0 100%);
  border: 1px solid rgba(0, 167, 90, 0.20);
  box-shadow: 0 8px 24px rgba(0, 167, 90, 0.08);
}

.form-success-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 167, 90, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success-icon svg {
  width: 24px;
  height: 24px;
  stroke: #00a75a;
}

.form-success-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-success-text strong {
  font-size: 1rem;
  color: #00704d;
  font-weight: 700;
}

.form-success-text span {
  font-size: 0.88rem;
  color: #4a9070;
  line-height: 1.4;
}

/* ============================================================
   FEATURES SECTION
============================================================ */
.features-section {
  padding: 82px 0 96px;
  background:
    radial-gradient(circle at top right, rgba(24, 61, 132, 0.05), transparent 30%),
    linear-gradient(180deg, #eef4fb 0%, #f7faff 100%);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

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

.feature-tile {
  position: relative;
  padding: 26px 26px 24px;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(24, 61, 132, 0.14);
}

.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tile-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tile-title-group h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  background: rgba(24, 61, 132, 0.08);
  flex-shrink: 0;
}

.tile-plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(15, 24, 50, 0.08);
  background: var(--white);
  color: var(--primary);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tile-plus:hover {
  background: var(--soft-blue);
  border-color: rgba(29, 99, 255, 0.2);
}

.feature-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

/* ============================================================
   MODALS
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 12, 26, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(1460px, calc(100vw - 40px));
  height: min(92vh, 940px);
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.20);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 24, 50, 0.06);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: rgba(15, 24, 50, 0.12);
}

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.modal-left {
  padding: 44px 40px 34px;
  overflow-y: auto;
  background: var(--white);
}

.modal-right {
  position: relative;
  overflow: hidden;
  background: var(--panel-bg);
  border-left: 1px solid rgba(15, 24, 50, 0.06);
}

.modal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(24, 61, 132, 0.08);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.modal-left h3 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.modal-left > p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.info-block {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1px solid rgba(15, 24, 50, 0.06);
}

.info-block h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.info-block ul {
  margin: 0;
  padding-left: 18px;
}

.info-block li {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.text-note {
  margin-top: 8px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1px solid rgba(15, 24, 50, 0.06);
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ── Finance card ── */
.finance-card {
  display: grid;
  gap: 0;
  padding: 4px 18px 8px;
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid rgba(15, 24, 50, 0.06);
  margin-bottom: 18px;
}

.finance-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 24, 50, 0.07);
  color: var(--muted);
  font-size: 0.93rem;
}

.finance-row:last-child {
  border-bottom: none;
}

.finance-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.finance-sub {
  font-size: 0.80em;
  opacity: 0.72;
}

.finance-row strong {
  color: var(--text);
  white-space: nowrap;
  font-weight: 700;
  padding-top: 2px;
}

.finance-highlight {
  font-weight: 700;
  color: var(--text);
}

.finance-highlight strong {
  color: #00a75a;
}

/* ── Modal images ── */
.single-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Carousel ── */
.carousel-track {
  height: 100%;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  background: rgba(15, 24, 50, 0.18);
  color: white;
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}

.carousel-arrow:hover {
  background: rgba(15, 24, 50, 0.32);
}

.carousel-arrow.left  { left: 16px; }
.carousel-arrow.right { right: 16px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 24, 50, 0.22);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.carousel-dot.is-active {
  background: var(--primary);
}

/* ============================================================
   PARTNERS SECTION
============================================================ */
.partners-section {
  padding: 72px 0 26px;
  background: linear-gradient(180deg, #eef4fb 0%, #f7faff 100%);
}

.partners-head {
  text-align: center;
  margin-bottom: 32px;
}

.partners-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.partners-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.partner-card {
  height: 102px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 24, 50, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 24, 50, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 99, 255, 0.14);
  box-shadow: 0 18px 34px rgba(15, 24, 50, 0.08);
}

.partner-card img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partners-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1160px) {
  .compact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .compact-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-left h1 {
    max-width: 900px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-inner {
    grid-template-columns: 1fr;
  }
  .modal-right {
    min-height: 360px;
    border-left: none;
    border-top: 1px solid rgba(15, 24, 50, 0.06);
  }
}

@media (max-width: 760px) {
  .header-container {
    width: calc(100% - 24px);
  }
  .brand img {
    height: 38px;
  }
  .hero {
    padding: 38px 18px;
  }
  .hero-left h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
  .compact-grid {
    grid-template-columns: 1fr;
  }
  .compact-submit {
    width: 100%;
  }
  .container {
    width: calc(100% - 24px);
  }
  .features-section {
    padding: 50px 0 64px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-panel {
    width: 100%;
    height: 96vh;
    border-radius: 18px;
  }
  .modal-left {
    padding: 24px 18px 20px;
  }
  .modal-left h3 {
    font-size: 1.8rem;
  }
  .modal-right {
    min-height: 280px;
  }
  .finance-row {
    flex-direction: column;
    gap: 4px;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }
  .partners-section {
    padding: 54px 0 8px;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .partner-card {
    height: 88px;
    padding: 14px;
  }
  .partner-card img {
    max-height: 34px;
  }
  .form-success {
    gap: 12px;
    padding: 16px;
  }
  .form-success-icon {
    width: 38px;
    height: 38px;
  }
}
