/* Noxpager — Overrides mobile (≤900px) — chargé après theme + pages */

html {
  scroll-padding-top: var(--header-offset, 64px);
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ─── Header ─── */

@media (max-width: 900px) {
  .site-header__auth-desktop {
    display: none !important;
  }

  .site-header__brand span {
    font-size: 0.95rem;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .site-header__brand img {
    width: 28px;
    height: 28px;
  }

  .site-header__brand span {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}

/* ─── Landing ─── */

@media (max-width: 900px) {
  .ticker__item {
    padding: 0.55rem 1.25rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 1rem 3.25rem;
  }

  .hero__logo-wrap {
    width: clamp(120px, 34vw, 180px);
    margin-bottom: 1.25rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 0 0.25rem;
  }

  .hero__badges {
    gap: 0.35rem;
    margin-top: 1rem;
  }

  .hero__badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
  }

  .hero__cta {
    max-width: 100%;
    width: 100%;
    padding: 0 0.25rem;
  }

  .hero__scroll {
    display: none;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section__head--center {
    margin-bottom: 1.75rem;
  }

  .section__title {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .section__desc {
    font-size: 0.9rem;
  }

  .stats__grid {
    padding: 1.25rem 1rem;
    gap: 0.65rem;
  }

  .stat {
    padding: 1rem 0.5rem;
  }

  .stat__value {
    font-size: 1.5rem;
  }

  .stat__label {
    font-size: 0.72rem;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cases__grid {
    gap: 0.75rem;
  }

  .arch__visual {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .arch__arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }

  .arch__elfes {
    width: 100%;
  }

  .credits-spotlight {
    padding: 3rem 0;
  }

  .credits-spotlight__grid {
    gap: 1.5rem;
  }

  .credits-spotlight__features li {
    font-size: 0.85rem;
  }

  .credits-calculator {
    width: 100%;
    max-width: none;
    padding: 1.25rem;
  }

  .credits-calculator__qty {
    font-size: 2rem;
  }

  .pricing {
    padding-bottom: 3rem;
  }

  .pricing-showcase {
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .pricing-carousel__stage {
    width: 100%;
    max-width: min(100%, 320px);
    height: 240px;
  }

  .pricing-carousel__arrow {
    width: 36px;
    height: 36px;
  }

  .pricing-carousel__arrow--prev {
    left: 0;
  }

  .pricing-carousel__arrow--next {
    right: 0;
  }

  .pricing-detail__panel {
    max-width: 100%;
    padding: 1.25rem;
  }

  .faq__list {
    padding: 0;
  }

  .faq__item summary {
    font-size: 0.92rem;
    padding: 0.85rem 0;
  }

  .cta-band {
    padding: 3rem 1rem;
    text-align: center;
  }

  .cta-band__title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .cta-band__text {
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-band .btn {
    display: flex;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .cta-band .btn + .btn {
    margin-left: auto;
    margin-top: 0.65rem;
  }
}

@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .credits-calculator__presets {
    flex-direction: column;
  }

  .credits-calculator__preset {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 380px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .hero__badges {
    justify-content: flex-start;
  }
}

/* ─── Inscription ─── */

@media (max-width: 900px) {
  .reg-main {
    padding: 5.5rem 0.85rem 2.5rem;
  }

  .reg-card {
    padding: 1.35rem;
    border-radius: 14px;
  }

  .reg-steps {
    margin: 1.25rem 0 1.5rem;
  }

  .reg-step__label {
    font-size: 0.65rem;
  }

  .reg-step__dot {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .reg-step__connector {
    margin-bottom: 0.95rem;
  }

  .reg-email-split {
    flex-direction: column;
    align-items: stretch;
  }

  .reg-email-split__local {
    border-radius: 10px !important;
    border-right: 1px solid var(--nox-border) !important;
  }

  .reg-email-split__at {
    display: none;
  }

  .reg-email-split__domain {
    border-radius: 10px !important;
    width: 100% !important;
  }

  .reg-phone-row {
    flex-direction: column;
  }

  .reg-indicatif__btn {
    width: 100%;
    border-radius: 10px;
    border-right: 1px solid var(--nox-border);
    justify-content: space-between;
  }

  .reg-indicatif__dropdown {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }

  .reg-phone-input {
    border-radius: 10px;
    width: 100%;
  }

  .reg-picker-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .reg-picker-box {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }

  .reg-picker-grid {
    grid-template-columns: 1fr;
  }

  .reg-nav-row {
    flex-direction: column-reverse;
    gap: 0.65rem;
  }

  .reg-nav-row .reg-submit,
  .reg-nav-row .reg-btn-back {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .reg-row,
  .reg-row--3 {
    grid-template-columns: 1fr;
  }
}

/* ─── Auth (login / app) ─── */

@media (max-width: 900px) {
  .auth-page {
    padding: 5.5rem 0.85rem 2.5rem;
    min-height: auto;
  }

  .auth-card {
    padding: 1.35rem;
    border-radius: 14px;
  }

  .auth-submit {
    min-height: 44px;
  }
}

/* ─── Pages légales ─── */

@media (max-width: 900px) {
  .legal-page {
    padding: 5.5rem 0.85rem 2.5rem;
  }

  .legal-page__card {
    padding: 1.35rem;
    border-radius: 14px;
  }

  .legal-page__body h2 {
    font-size: 1.05rem;
  }
}

/* ─── Footer ─── */

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__legal-row {
    justify-content: center;
  }
}

/* ─── Boutons touch ─── */

@media (max-width: 900px) {
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
