/* Ajustements globaux : typographie plus compacte et responsive. */
html {
  font-size: 15.5px;
}

body {
  font-size: 15.5px;
  line-height: 1.62;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
}

.container-custom {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-padding {
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(56px, 7vw, 92px);
}

.text-lg { font-size: 1rem; line-height: 1.55rem; }
.text-xl { font-size: 1.12rem; line-height: 1.55rem; }
.text-2xl { font-size: 1.38rem; line-height: 1.85rem; }
.text-3xl { font-size: 1.72rem; line-height: 2.08rem; }
.text-4xl { font-size: 2.08rem; line-height: 2.36rem; }
.text-5xl { font-size: 2.65rem; line-height: 1.05; }
.text-6xl { font-size: 3.15rem; line-height: 1.02; }
.text-7xl { font-size: 3.75rem; line-height: 1; }

.page-image-hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 4.15rem) !important;
}

.page-image-hero p {
  font-size: clamp(.95rem, 1.35vw, 1.2rem) !important;
}

.home-finance h2,
.partners-head h1,
.prefooter-partners-block h2,
.news-shot-head h1 {
  font-size: clamp(2rem, 4.4vw, 4rem) !important;
}

.news-detail-body p,
.venue-design-copy p,
.partners-head p,
.prefooter-partners-block p {
  font-size: clamp(.95rem, 1.2vw, 1.05rem) !important;
}

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

@media (max-width: 1180px) {
  .container-custom {
    width: min(100% - 28px, 1080px);
  }

  #site-header nav .gap-1 {
    gap: 0;
  }

  #site-header a,
  #site-header button {
    font-size: .9rem !important;
  }
}

@media (max-width: 1023px) {
  html { font-size: 15px; }
  body { font-size: 15px; }

  .section-padding {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .lg\:grid-cols-2,
  .lg\:grid-cols-3,
  .lg\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  .prefooter-promo {
    position: static !important;
  }
}

@media (max-width: 760px) {
  html { font-size: 14.5px; }
  body {
    font-size: 14.5px;
    line-height: 1.58;
  }

  .container-custom {
    width: min(100% - 24px, 100%);
  }

  .section-padding {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .grid,
  .flex {
    min-width: 0;
  }

  .md\:grid-cols-2,
  .md\:grid-cols-3,
  .md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  .page-image-hero {
    min-height: 210px !important;
  }

  .page-image-hero__inner {
    padding-top: 88px !important;
    padding-bottom: 38px !important;
  }

  .page-image-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.75rem) !important;
    line-height: 1.04 !important;
  }

  .page-image-hero p {
    font-size: .95rem !important;
  }

  .rounded-3xl { border-radius: 20px; }
  .rounded-2xl { border-radius: 16px; }
}

@media (max-width: 480px) {
  .text-5xl,
  .text-6xl,
  .text-7xl {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .text-4xl {
    font-size: 1.85rem;
    line-height: 2.15rem;
  }

  .text-3xl {
    font-size: 1.55rem;
    line-height: 1.9rem;
  }

  .px-10 {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}
