/* Local mobile-first pass loaded after page styles. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
}

a,
button,
input,
textarea,
select,
.btn,
.mobile-gallery-toggle,
.cf-type-btn,
.choice-item {
  touch-action: manipulation;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  #header,
  #header.hero-mode,
  #header.hero-mode.scrolled {
    height: 60px;
    padding-left: max(18px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(18px, env(safe-area-inset-right, 0px)) !important;
  }

  .logo {
    max-width: calc(100vw - 96px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .burger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
  }

  .nav-overlay {
    z-index: 850;
    justify-content: flex-start;
    gap: 28px;
    padding: 100px 24px calc(96px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }

  .nav-overlay a {
    font-size: 1.42rem;
    text-align: center;
    line-height: 1.08;
  }

  #mobile-social-bar {
    height: calc(52px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    gap: clamp(34px, 12vw, 56px);
    z-index: 650;
  }

  h1,
  h2,
  h3,
  .hero-h1,
  .m-hero-h1,
  .g-hero-h1,
  .la-hero-h1,
  .jf-hero-h1,
  .pg-hero-h1,
  .faq-hero h1,
  .nm-big-title {
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  p,
  li,
  .hero-sub,
  .m-approche-text,
  .g-intro-text,
  .pg-intro-text,
  .jf-intro-text,
  .faq-page-head p {
    overflow-wrap: break-word;
  }

  .btn,
  .btn-outline,
  .btn-inv,
  .btn-sm,
  .hero-hero-cadeau,
  .tarif-cta,
  .cf-type-btn,
  .choice-item,
  .mobile-gallery-toggle,
  .nm-submit,
  .nm-return {
    min-height: 48px;
  }

  .btn,
  .btn-outline,
  .btn-inv,
  .hero-hero-cadeau {
    white-space: normal !important;
    text-align: center;
    justify-content: center;
  }

  .hero,
  .m-hero,
  .g-hero,
  .la-hero,
  .jf-hero,
  .pg-hero {
    min-height: 0 !important;
  }

  .hero {
    height: auto !important;
    min-height: 100svh !important;
    padding: 92px 18px calc(92px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
  }

  .hero-body {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 0;
    max-width: 520px;
  }

  .hero-h1 {
    font-size: 3.3rem !important;
    line-height: .95;
  }

  .hero-sub {
    font-size: 1rem;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas .btn,
  .hero-hero-cadeau {
    width: 100%;
  }

  .hero-bottom {
    left: 18px;
    right: 18px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    font-size: .7rem;
    line-height: 1.5;
  }

  .m-hero,
  .g-hero,
  .la-hero {
    height: auto !important;
    min-height: 70svh !important;
    padding: 96px 22px 42px !important;
  }

  .m-photo-break {
    height: 36svh !important;
  }

  .s-proof,
  .s-leonard,
  .s-process,
  .s-gallery,
  .s-contact,
  .idx-avis,
  .m-approche,
  .m-approche-gallery,
  .m-tarifs,
  .m-processus,
  .m-galerie,
  .m-avis,
  .m-contact,
  .m-reportages,
  .g-intro,
  .g-services,
  .g-gallery,
  .g-contact,
  .la-intro,
  .la-gallery,
  .faq-page,
  .faq-context,
  .pg-cta,
  .jf-cta,
  .jf-film,
  .jf-avis,
  .jf-livraison,
  footer {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .s-proof,
  .s-leonard,
  .s-process,
  .s-gallery,
  .s-contact,
  .idx-avis,
  .m-approche,
  .m-tarifs,
  .m-processus,
  .m-galerie,
  .m-avis,
  .m-contact,
  .g-intro,
  .g-services,
  .g-gallery,
  .g-contact,
  .la-intro,
  .la-gallery {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .s-proof-cards,
  .s-process-grid,
  .s-leonard,
  .m-approche-inner,
  .m-tarifs-grid,
  .m-processus-grid,
  .g-services-grid,
  .g-process-grid,
  .g-reportages-grid,
  .faq-page-inner,
  .faq-context-inner,
  footer {
    grid-template-columns: 1fr !important;
  }

  .m-tarifs-grid {
    gap: 12px !important;
  }

  .tarif-card,
  .tarif-card--featured {
    transform: none !important;
  }

  .tarif-card.expanded,
  .tarif-card.expanded.is-centered {
    left: 16px !important;
    right: 16px !important;
    top: 50% !important;
    width: auto !important;
    max-height: min(78svh, 620px);
    transform: translateY(-50%) !important;
  }

  .cf-selector,
  .choice-wrap,
  .mobile-gallery-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .cf-type-btn,
  .choice-item {
    width: 100%;
    justify-content: center;
    white-space: normal;
    line-height: 1.25;
  }

  .cf-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .cf-input,
  .cf-textarea,
  .nm-input,
  .nm-textarea {
    min-height: 48px;
  }

  .s-gallery-grid,
  .jf-masonry,
  .pg-masonry {
    columns: 2 !important;
    column-gap: 6px !important;
  }

  .s-gallery-item,
  .jf-masonry-item,
  .pg-masonry-item {
    margin-bottom: 6px !important;
  }

  .m-galerie-grid,
  .g-gallery-grid,
  .la-gallery-grid,
  .nm-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  .m-rep-card {
    height: auto !important;
    min-height: 320px;
  }

  .m-rep-card-body {
    left: 22px !important;
    right: 22px !important;
    bottom: 24px !important;
  }

  .lb,
  .jf-lightbox,
  .pg-lightbox {
    z-index: 10000 !important;
  }

  .lb img,
  .jf-lightbox img,
  .pg-lightbox img {
    max-width: 94vw !important;
    max-height: 82svh !important;
  }

  .faq-hero {
    padding: 108px 22px 50px !important;
  }

  .faq-paths {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .faq-paths-inner {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .faq-paths-inner::-webkit-scrollbar {
    display: none;
  }

  .faq-link-card {
    min-width: min(78vw, 320px);
  }

  #guide-modal,
  #cp-modal,
  #exit-popup {
    padding: 16px !important;
  }

  #guide-modal-card,
  #exit-popup-card,
  #cp-modal-inner {
    width: min(100%, 430px) !important;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
  }

  #guide-modal-card {
    padding: 24px 18px 22px !important;
  }

  .guide-options {
    grid-template-columns: 1fr !important;
  }

  .numen-wrap {
    padding: 52px 20px 72px !important;
  }
}

@media (max-width: 540px) {
  #header,
  #header.hero-mode,
  #header.hero-mode.scrolled {
    height: 56px;
  }

  .section-label,
  .m-hero-meta,
  .g-hero-meta,
  .jf-hero-meta,
  .pg-hero-meta,
  .faq-kicker {
    letter-spacing: .11em !important;
    line-height: 1.35;
  }

  .hero-h1 {
    font-size: 2.75rem !important;
  }

  .m-hero-h1,
  .g-hero-h1,
  .la-hero-h1,
  .jf-hero-h1,
  .pg-hero-h1,
  .faq-hero h1 {
    font-size: 2.85rem !important;
  }

  .hero-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .s-proof,
  .s-leonard,
  .s-process,
  .s-gallery,
  .s-contact,
  .idx-avis,
  .m-approche,
  .m-tarifs,
  .m-processus,
  .m-galerie,
  .m-avis,
  .m-contact,
  .g-intro,
  .g-services,
  .g-gallery,
  .g-contact,
  .la-intro,
  .la-gallery,
  .faq-page,
  .faq-context,
  .pg-cta,
  .jf-cta,
  .jf-film,
  .jf-avis,
  .jf-livraison,
  footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .m-hero,
  .g-hero,
  .la-hero,
  .jf-hero,
  .pg-hero {
    min-height: 64svh !important;
  }

  .jf-hero-content,
  .pg-hero-content {
    bottom: 38px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .jf-intro,
  .pg-intro {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .jf-film-video-wrap {
    aspect-ratio: 4 / 5 !important;
  }

  .ft-copy {
    align-items: flex-start !important;
    gap: 8px !important;
  }
}
