:root {
  --blue: #2048d7;
  --deep-blue: #233f8f;
  --violet: #5a358b;
  --magenta: #c01886;
  --magenta-dark: #a90d78;
  --dark: #242936;
  --footer: #6f6f6f;
  --text: #111827;
  --muted: #5f6673;
  --white: #ffffff;
  --error: #c42335;
  --success: #137a42;
  --shadow: 0 24px 60px rgba(22, 24, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  display: grid;
  grid-template-columns: minmax(96px, 150px) 1fr minmax(160px, 230px);
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(20px, 4vw, 48px);
  color: var(--white);
  background: linear-gradient(105deg, var(--deep-blue) 0%, var(--violet) 48%, var(--magenta) 100%);
}

.header-logo {
  width: min(145px, 28vw);
}

.site-header h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0;
}

.event-date {
  justify-self: end;
  margin: 0;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(10px);
}

.event-banner {
  position: relative;
  height: auto;
  overflow: visible;
  background: var(--dark);
}

.event-banner img {
  width: 100%;
  height: auto;
  /* La hauteur de la bannière suit la hauteur réelle de l’image pour éviter toute coupure sur tablette. */
  object-fit: contain;
  object-position: center;
}

.event-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(21, 27, 40, 0.12), rgba(21, 27, 40, 0.02) 55%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.wifi-section {
  padding: 0 clamp(16px, 4vw, 64px) clamp(42px, 6vw, 86px);
  background:
    linear-gradient(135deg, rgba(32, 72, 215, 0.94) 0%, rgba(90, 53, 139, 0.95) 46%, rgba(192, 24, 134, 0.96) 100%);
}

.wifi-provider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  width: min(1200px, 100%);
  margin: 0 auto clamp(30px, 5vw, 54px);
  padding-top: clamp(22px, 4vw, 46px);
}

.wifi-provider h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
}

.provider-card {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.provider-card img {
  width: min(250px, 72%);
}

.signup-card {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  background: var(--white);
  border-radius: clamp(28px, 5vw, 72px);
  box-shadow: var(--shadow);
}

.form-message {
  display: none;
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.form-message.is-error,
.form-message.is-success {
  display: block;
}

.form-message.is-error {
  color: var(--error);
  background: #fff0f3;
  border: 1px solid rgba(196, 35, 53, 0.28);
}

.form-message.is-success {
  color: var(--success);
  background: #effaf4;
  border: 1px solid rgba(19, 122, 66, 0.28);
}

.form-message ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.liquid-swal-popup {
  width: min(620px, calc(100% - 28px));
  border: 1px solid rgba(32, 72, 215, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(22, 24, 38, 0.26);
  backdrop-filter: blur(18px);
}

.liquid-swal-title {
  color: var(--deep-blue);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}

.liquid-swal-html {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  text-align: left;
}

.swal-validation-block {
  padding: 14px 16px;
  background: rgba(32, 72, 215, 0.06);
  border: 1px solid rgba(32, 72, 215, 0.13);
  border-radius: 10px;
}

.swal-validation-block + .swal-validation-block {
  margin-top: 12px;
}

.swal-validation-privacy {
  background: #fff7f8;
  border-color: rgba(196, 35, 53, 0.22);
}

.swal-validation-lead {
  margin: 0 0 8px;
  font-weight: 900;
}

.swal-validation-list {
  margin: 0;
  padding-left: 22px;
}

.swal-validation-list li + li {
  margin-top: 6px;
}

.liquid-swal-confirm {
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 10px !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
}

.terms-popup-content {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  padding: 4px 12px 4px 2px;
  line-height: 1.58;
}

.terms-popup-content p {
  margin: 0 0 12px;
}

.terms-popup-main-title {
  margin: 0 0 18px;
  color: var(--deep-blue);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 900;
  text-align: center;
}

.terms-popup-title {
  margin-top: 20px !important;
  color: var(--text);
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px 30px;
  align-items: center;
}

.form-grid label {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.required-star {
  color: var(--error);
  font-weight: 900;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  color: var(--text);
  background: var(--white);
  border: 4px solid var(--magenta);
  border-radius: 0;
  font: inherit;
  font-size: 1.1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-grid select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--magenta) 50%),
    linear-gradient(135deg, var(--magenta) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 16px) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.form-grid input:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(32, 72, 215, 0.16);
}

.form-grid input.is-invalid,
.form-grid select.is-invalid {
  border-color: var(--error);
  background: #fff7f8;
}

.consent-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(840px, 100%);
  margin: 30px auto 0;
  color: #2d3138;
  font-size: clamp(0.98rem, 1.7vw, 1.25rem);
}

.consent-row label {
  font-weight: 700;
}

.consent-row input {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  accent-color: var(--blue);
}

.terms-link {
  margin: 0;
  padding: 0;
  color: #000000;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.terms-link:hover,
.terms-link:focus-visible {
  color: var(--blue);
}

.terms-link:focus-visible {
  outline: 3px solid rgba(32, 72, 215, 0.28);
  outline-offset: 4px;
}

.consent-row.is-invalid {
  color: var(--error);
}

.connect-button {
  display: block;
  width: min(380px, 100%);
  min-height: 78px;
  margin: clamp(30px, 5vw, 48px) auto 0;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(32, 72, 215, 0.28);
  cursor: pointer;
  font: inherit;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.connect-button:hover,
.connect-button:focus-visible {
  background: #173dcc;
  box-shadow: 0 18px 34px rgba(32, 72, 215, 0.36);
  transform: translateY(-1px);
}

.connect-button:disabled,
.connect-button.is-loading {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.connect-button:focus-visible {
  outline: 4px solid rgba(32, 72, 215, 0.28);
  outline-offset: 4px;
}

.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(42px, 6vw, 78px) clamp(24px, 5vw, 76px);
  background: var(--white);
  text-align: center;
}

.stand-number {
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--magenta-dark);
}

.info-section p {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
}

.stand-banner {
  display: block;
  width: min(920px, 100%);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(9, 21, 38, 0.16);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(220px, 1fr) auto minmax(150px, 220px);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: 14px clamp(18px, 4vw, 40px);
  color: var(--white);
  background: var(--footer);
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--white);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.footer-logo {
  width: min(180px, 40vw);
}

.cassava-logo {
  justify-self: end;
  width: min(210px, 42vw);
}

@media (min-width: 901px) {
  .wifi-provider {
    display: flex;
    grid-template-columns: none;
    justify-content: center;
    align-items: center;
    max-width: min(1240px, 100%);
    text-align: center;
    gap: clamp(16px, 2.5vw, 30px);
  }

  .wifi-provider h2 {
    flex: 0 1 auto;
  }

  /* En mode PC, le logo reste directement après le texte « par ». */
  .provider-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 88px;
    width: clamp(250px, 22vw, 340px);
    padding: clamp(14px, 2vw, 24px) clamp(24px, 3vw, 38px);
  }

  .provider-card img {
    width: min(210px, 76%);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    min-height: auto;
  }

  .event-date {
    justify-self: center;
  }

  .site-header h1 {
    max-width: 680px;
  }

  .wifi-provider {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .provider-card {
    width: min(360px, 86%);
    min-height: 118px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 30px);
  }

  .provider-card img {
    width: min(190px, 64%);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-grid label {
    margin-top: 8px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
  }

  .footer-logo,
  .cassava-logo {
    justify-self: center;
  }

  .stand-banner {
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px 16px;
  }

  .header-logo {
    display: none;
  }

  .site-header h1 {
    /* Titre réduit sur téléphone pour garder « Bienvenue au Katanga Business Meeting » sur une seule ligne. */
    max-width: 100%;
    font-size: clamp(1rem, 4.9vw, 1.34rem);
    line-height: 1.16;
    white-space: nowrap;
  }

  .wifi-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .signup-card {
    border-radius: 26px;
    padding: 24px 18px 30px;
  }

  .form-grid input,
  .form-grid select {
    min-height: 52px;
    border-width: 3px;
  }

  .consent-row {
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 0.96rem;
  }

  .connect-button {
    min-height: 64px;
    border-radius: 14px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .footer-logo {
    width: min(118px, 34vw);
  }

  .cassava-logo {
    width: min(136px, 38vw);
  }
}
