/* ============================================================
   STYLE.CSS — Cloudflare Pages
   Landing page IDEL + page merci
   ============================================================ */

/* Image hero */
.idel-lp-hero-image-card {
  width: 100%;
  max-width: 720px;
  justify-self: end;
  margin: 0;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.idel-lp-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.idel-lp-hero-grid {
  align-items: center;
}

/* Footer légal */
.idel-lp-footer-legal {
  padding: 24px 0;
  background: var(--primary-dark, #132A63);
  color: var(--primary-soft, #EAF0FF);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.idel-lp-footer-legal-inner {
  width: min(100% - 32px, var(--max-width, 1120px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.idel-lp-footer-brand {
  margin: 0;
  font-size: 14px;
  color: var(--primary-soft, #EAF0FF);
}

.idel-lp-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}

.idel-lp-modal-link {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary-soft, #EAF0FF);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.idel-lp-modal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Popups */
.idel-lp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.idel-lp-modal.is-open {
  display: flex;
}

.idel-lp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.idel-lp-modal-box {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  max-height: 88vh;
  overflow: hidden;
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--text, #1C2430);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--border, #E4EAF2);
  display: flex;
  flex-direction: column;
}

.idel-lp-modal-box h2 {
  margin: 0 0 16px;
  color: var(--primary-dark, #132A63);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.idel-lp-modal-scroll-content {
  overflow-y: auto;
  max-height: 58vh;
  padding-right: 12px;
  margin-top: 8px;
}

.idel-lp-modal-scroll-content h3 {
  margin: 22px 0 8px;
  color: var(--primary-dark, #132A63);
  font-size: 18px;
  line-height: 1.3;
}

.idel-lp-modal-scroll-content p {
  margin: 0 0 14px;
  color: var(--muted, #5B6472);
  font-size: 15.5px;
  line-height: 1.7;
}

.idel-lp-modal-scroll-content ul {
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--muted, #5B6472);
}

.idel-lp-modal-scroll-content li {
  margin-bottom: 8px;
  color: var(--muted, #5B6472);
  font-size: 15.5px;
  line-height: 1.65;
}

.idel-lp-modal-scroll-content strong {
  color: var(--primary-dark, #132A63);
}

.idel-lp-modal-scroll-content::-webkit-scrollbar {
  width: 8px;
}

.idel-lp-modal-scroll-content::-webkit-scrollbar-track {
  background: var(--surface, #F8FAFC);
  border-radius: 999px;
}

.idel-lp-modal-scroll-content::-webkit-scrollbar-thumb {
  background: var(--primary, #1F3C88);
  border-radius: 999px;
}

.idel-lp-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: var(--surface, #F8FAFC);
  color: var(--primary-dark, #132A63);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.idel-lp-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.idel-lp-modal-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  background: var(--primary, #1F3C88);
  color: #ffffff;
  border: 1px solid var(--primary, #1F3C88);
}

.idel-lp-modal-button-secondary:hover {
  background: var(--primary-dark, #132A63);
}

/* Contact popup */
.idel-lp-contact-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.idel-lp-contact-form label {
  display: grid;
  gap: 7px;
  color: var(--primary-dark, #132A63);
  font-weight: 800;
  font-size: 14px;
}

.idel-lp-contact-form input,
.idel-lp-contact-form textarea {
  width: 100%;
  border: 1px solid var(--border, #E4EAF2);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text, #1C2430);
  background: var(--surface, #F8FAFC);
  outline: none;
}

.idel-lp-contact-form input:focus,
.idel-lp-contact-form textarea:focus {
  border-color: var(--primary, #1F3C88);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 60, 136, 0.10);
}

.idel-lp-contact-form button {
  margin-top: 4px;
  width: fit-content;
}

/* Page merci */
.gestiya-thankyou {
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, #eaf0ff, transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gestiya-thankyou-card {
  width: min(100%, 760px);
  padding: 48px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e4eaf2;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.gestiya-thankyou-eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f8fa;
  color: #2f8993;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gestiya-thankyou h1 {
  margin: 0;
  color: #132a63;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.gestiya-thankyou p {
  margin: 18px auto 0;
  color: #5b6472;
  font-size: 18px;
  line-height: 1.7;
  max-width: 620px;
}

.gestiya-thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-height: 54px;
  padding: 16px 28px;
  border-radius: 999px;
  background: #1f3c88;
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(31, 60, 136, 0.22);
}

.gestiya-thankyou-btn:hover {
  background: #132a63;
  color: #ffffff;
}

.gestiya-thankyou-note {
  font-size: 15px !important;
  color: #778295 !important;
}

.gestiya-thankyou-help {
  margin-top: 34px;
  padding: 24px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
}

.gestiya-thankyou-help h2 {
  margin: 0;
  color: #132a63;
  font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .idel-lp-hero-image-card {
    max-width: 520px;
    margin: 0 auto;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .idel-lp-footer-legal-inner {
    justify-content: center;
    text-align: center;
  }

  .idel-lp-footer-links {
    justify-content: center;
  }

  .idel-lp-modal {
    padding: 16px;
  }

  .idel-lp-modal-box {
    max-height: 90vh;
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .idel-lp-modal-scroll-content {
    max-height: 62vh;
  }

  .idel-lp-modal-actions {
    flex-direction: column;
  }

  .idel-lp-modal-button-secondary,
  .idel-lp-contact-form button {
    width: 100%;
  }

  .gestiya-thankyou {
    padding: 48px 16px;
  }

  .gestiya-thankyou-card {
    padding: 30px 20px;
  }

  .gestiya-thankyou p {
    font-size: 16px;
  }

  .gestiya-thankyou-btn {
    width: 100%;
  }
}

