:root {
  --gw-purple: #9C60A4;
  --gw-indigo: #5A4A99;
  --gw-dark: #141226;
  --gw-light: #f7f5fb;
  --gw-gradient: linear-gradient(135deg, #9C60A4 0%, #5A4A99 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gw-dark);
  background: #fff;
}

.navbar {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(20,18,38,.06);
}

.navbar-brand img { height: 72px; width: auto; }
.nav-link { font-weight: 650; color: var(--gw-dark); }
.nav-link:hover, .phone-link { color: var(--gw-indigo); }
.phone-link { font-weight: 800; }

.btn-gw {
  background: var(--gw-gradient);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.5rem;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(90,74,153,.28);
  transition: .2s ease;
}

.btn-gw:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(90,74,153,.35);
}

.hero {
  padding: 110px 0 90px;
  background:
    radial-gradient(circle at top right, rgba(156,96,164,.22), transparent 35%),
    radial-gradient(circle at bottom left, rgba(90,74,153,.16), transparent 38%),
    #fff;
}

.badge-gw {
  display: inline-flex;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(156,96,164,.11);
  color: var(--gw-indigo);
  font-weight: 800;
  font-size: .9rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 850;
}

.text-gradient {
  background: var(--gw-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead { font-size: 1.25rem; color: #5f5a72; }
.section { padding: 90px 0; }
.section-light { background: var(--gw-light); }

.card-gw, .hero-card {
  border: 0;
  border-radius: 28px;
  padding: 34px;
  height: 100%;
  box-shadow: 0 18px 50px rgba(20,18,38,.08);
  background: #fff;
}

.hero-card { text-align: left; }
.hero-logo { width: 130px; max-width: 45%; height: auto; margin-bottom: 24px; }

.icon-gw {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--gw-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  margin-bottom: 22px;
}

.card-dark {
  background: var(--gw-dark);
  color: #fff;
}

.card-dark p { color: rgba(255,255,255,.72); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: rgba(255,255,255,.82); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #fff; font-weight: 900; }

.process-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gw-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-box {
  border-radius: 32px;
  background: var(--gw-dark);
  color: #fff;
  padding: 48px;
  box-shadow: 0 25px 70px rgba(20,18,38,.25);
}

.contact-phone a {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 850;
  text-decoration: none;
}

.form-control, .form-select {
  border-radius: 16px;
  padding: .9rem 1rem;
  border: 1px solid #e1ddeb;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gw-purple);
  box-shadow: 0 0 0 .25rem rgba(156,96,164,.15);
}

.rgpd-line { display: flex; gap: 10px; align-items: flex-start; }
.rgpd-line input { margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

footer { padding: 34px 0; color: #777; }
footer a { color: #777; text-decoration: none; }
footer a:hover { color: var(--gw-indigo); }

@media (max-width: 991px) {
  .navbar-brand img { height: 58px; }
  .hero { padding: 70px 0 70px; }
  .contact-box { padding: 30px; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-legal-link { border: 0; background: transparent; padding: 0; color: #777; text-decoration: none; }
.footer-legal-link:hover { color: var(--gw-indigo); }
.legal-modal { border: 0; border-radius: 24px; overflow: hidden; }
.legal-modal .modal-header { background: var(--gw-gradient); color: #fff; border: 0; padding: 24px 28px; }
.legal-modal .btn-close { filter: invert(1) grayscale(100%); opacity: .9; }
.legal-modal .modal-body { padding: 30px; color: #4f4a5f; line-height: 1.65; }
.legal-modal .modal-body h3 { margin-top: 28px; margin-bottom: 10px; font-size: 1.15rem; color: var(--gw-dark); font-weight: 850; }
.legal-modal .modal-body h3:first-of-type { margin-top: 0; }
.legal-modal .modal-body a { color: var(--gw-indigo); font-weight: 700; }

/* Correctifs responsive anti-scroll horizontal */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
p,
a,
button,
.badge-gw,
.btn,
.nav-link,
.footer-links {
  overflow-wrap: anywhere;
}

.btn,
.btn-gw {
  white-space: normal;
  text-align: center;
}

.hero .d-flex,
.footer-links {
  min-width: 0;
}

.cf-turnstile {
  max-width: 100%;
  overflow: hidden;
}

.cf-turnstile iframe {
  max-width: 100% !important;
}

.modal-dialog {
  max-width: calc(100% - 24px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 575px) {
  .navbar > .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar-brand img {
    height: 48px;
  }

  .hero {
    padding: 42px 0 56px;
  }

  h1 {
    font-size: clamp(2.1rem, 14vw, 3rem);
    letter-spacing: -.035em;
  }

  .lead {
    font-size: 1.08rem;
  }

  .section {
    padding: 58px 0;
  }

  .card-gw,
  .hero-card {
    border-radius: 22px;
    padding: 24px;
  }

  .contact-box {
    border-radius: 24px;
    padding: 24px 18px;
  }

  .contact-phone a {
    font-size: 1.2rem;
  }

  .footer-links {
    gap: 6px;
    align-items: flex-start;
  }

  .footer-links span {
    display: none;
  }

  .footer-links a,
  .footer-legal-link {
    display: block;
    width: 100%;
    text-align: left;
  }

  .legal-modal .modal-header {
    padding: 20px;
  }

  .legal-modal .modal-body {
    padding: 22px 18px;
  }
}

@media (max-width: 360px) {
  .contact-box {
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .form-control,
  .form-select {
    padding-left: .8rem;
    padding-right: .8rem;
  }

  .cf-turnstile {
    transform: scale(.92);
    transform-origin: left top;
    width: 304px;
    height: 62px;
  }
}
