/* Mobile refinements: stable photography, native swipes and comfortable touch spacing. */
@media (max-width: 760px) {
  html { scroll-padding-top: 24px; scroll-padding-bottom: 88px; }
  body { -webkit-text-size-adjust: 100%; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: clamp(44px, 9vw, 64px); }
  .section-heading { margin-bottom: 24px; }
  .section-heading > div, .section-heading > p,
  .smart-layout > *, .approach > *, .coverage-grid > *, .faq > * { min-width: 0; }
  .section-heading h2, .about h2, .coverage h2, .smart-security h2,
  .approach-copy h2, .faq h2 {
    font-size: clamp(31px, 8.3vw, 42px);
    line-height: 1.13;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
    margin-bottom: 20px;
  }
  .eyebrow { margin-bottom: 16px; }
  .section-heading > p, .about-copy > p,
  .coverage-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.65; }
  .button, .text-link { max-width: 100%; }
  .button { min-height: 48px; white-space: normal; line-height: 1.4; }
  .button > span, .text-link > span { flex: 0 0 auto; }

  /* Keep the header useful even on 320px phones and with French labels. */
  .site-header { padding-inline: 14px; gap: 8px; }
  .site-header .brand img { width: clamp(100px, 29vw, 124px); }
  .language-switch a { min-width: 38px; min-height: 44px; }
  .menu-toggle { min-width: 52px; min-height: 44px; justify-content: center; }
  .site-header nav {
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 10px 20px 20px;
  }
  .site-header nav > a:not(.button) { min-height: 50px; }
  .site-header nav .button { justify-content: space-between; }

  /* A fixed small-viewport reference avoids jumps as browser toolbars collapse. */
  .hero {
    min-height: 480px;
    height: clamp(480px, calc(100svh - 164px), 680px);
    max-height: 680px;
    border-radius: 0 0 24px 24px;
  }
  .hero .hero-content { width: calc(100% - 40px); padding: 0 0 28px; }
  .hero h1, html[lang=fr] .hero h1 {
    font-size: clamp(34px, 8.8vw, 52px);
    line-height: 1.08;
    margin-bottom: 20px;
  }
  .hero-actions, html[lang=fr] .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 50px; padding: 13px 20px; gap: 20px; }
  .js-motion .hero-picture img { animation: none; transform: none; }
  .js-motion .hero-content > h1 { animation-duration: .4s; }

  .technology-intro { padding-block: 26px 30px; }
  .technology-intro-heading { margin-bottom: 16px; }
  .technology-intro-heading h2 { font-size: clamp(22px, 5.9vw, 27px); line-height: 1.25; }
  .technology-intro-card { grid-template-columns: 32% minmax(0, 1fr); border-radius: 18px; }
  .technology-intro-card > div { min-width: 0; padding: 17px 15px; }
  .technology-intro-card h3 { font-size: 19px; line-height: 1.25; gap: 8px; }
  .technology-intro-card h3 > span { flex: 0 0 auto; }
  .technology-intro-card p { font-size: 14px; line-height: 1.55; }
  .clients-inner { gap: 12px 8px; padding-block: 22px; }
  .client-link { min-width: 0; }
  .client-wordmark small { font-size: 10px; letter-spacing: .05em; }

  /* Native scrolling remains in charge: no rotation or scale while swiping. */
  .service-slider { --card-width: min(84vw, 360px); margin-inline: -20px; }
  .service-grid {
    gap: 14px;
    padding: 12px max(18px, calc((100% - var(--card-width)) / 2)) 24px;
    perspective: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }
  .service-card { padding-inline: 20px; border-radius: 20px; }
  .service-card.is-before, .service-card.is-after, .service-card.is-current { transform: none; }
  .service-card.is-current { box-shadow: 0 10px 25px -18px #53298066; }
  .service-photo { width: calc(100% + 40px); margin-inline: -20px; height: clamp(180px, 54vw, 224px); }
  .service-card .card-top { margin-block: 18px 16px; }
  .service-card h3 { font-size: 23px; line-height: 1.2; min-height: 0; margin-bottom: 12px; }
  .service-card > p { min-height: 0; font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
  .service-card summary { min-height: 56px; font-size: 14px; }
  .service-card ul { padding-right: 2px; }
  .slider-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 2px 8px;
    max-width: 380px;
    padding: 0 16px 6px;
    margin-inline: auto;
  }
  .slider-prev { grid-column: 1; grid-row: 1; }
  .slider-next { grid-column: 3; grid-row: 1; }
  .slider-dots { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .slider-dot { width: 100%; min-width: 24px; height: 44px; }
  .slider-count { grid-column: 1 / -1; grid-row: 2; text-align: center; font-size: 12px; }
  .slider-arrow { width: 44px; height: 44px; }
  .slider-hint { padding-inline: 20px; font-size: 11px; letter-spacing: .1em; }
  .services-bottom { gap: 10px; padding-top: 18px; }

  .coverage-grid, .approach { gap: 28px; }
  .map-panel { padding: 18px 14px; border-radius: 20px; }
  .map-topline { gap: 10px; font-size: 9px; letter-spacing: .07em; }
  .map-caption { font-size: 12px; line-height: 1.5; }
  .smart-security { padding-bottom: 0; }
  .smart-layout { gap: 16px; }
  .smart-image { height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 20px; }
  .smart-image > img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .smart-features article, .monitoring-capabilities > div { padding: 20px; border-radius: 18px; }
  .smart-features h3, .monitoring-capabilities h3 { line-height: 1.25; }
  .monitoring { padding-bottom: 0; }
  .monitoring-visual figcaption { font-size: 11px; letter-spacing: .06em; }
  .monitoring-visual figcaption .status-dot { flex: 0 0 6px; }
  .image-tag { line-height: 1.5; font-size: 10px; letter-spacing: .08em; }

  .field-gallery-track {
    gap: 14px;
    padding: 3px 2px 16px;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .field-gallery-track > figure { flex: 0 0 86%; min-width: 0; border-radius: 20px; }
  .field-gallery-track figcaption { font-size: 14px; padding: 15px 16px; }
  .approach-photo { height: auto; aspect-ratio: 4 / 3; }
  .approach-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .approach-steps > div { gap: 16px; padding-top: 20px; margin-top: 20px; }
  .approach-steps > div > span { flex: 0 0 22px; }
  .approach-steps h3 { font-size: 18px; line-height: 1.3; }

  .response-banner { height: auto; min-height: 420px; padding: 16px; }
  .response-copy { width: 100%; padding: 20px; border-radius: 16px; }
  .response-copy .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 16px; }
  .response-copy h2 { font-size: clamp(27px, 7.2vw, 34px); line-height: 1.16; margin-bottom: 20px; }
  .response-copy .button { font-size: 14px; gap: 12px; }
  .faq-list summary { min-height: 64px; gap: 14px; }
  .faq-list summary > span { flex: 0 0 22px; text-align: center; }
  .faq-list p { padding-right: 0; }

  .contact.section { padding-block: 38px; }
  .contact > .container { gap: 22px; }
  .contact-heading h2 { font-size: clamp(31px, 8.2vw, 40px); line-height: 1.12; margin-bottom: 12px; }
  .contact-heading > p:last-child { font-size: 16px; line-height: 1.6; }
  .email-options { gap: 12px; }
  .email-option { display: grid; gap: 10px; padding: 18px; border-radius: 18px; }
  .email-option h3 { font-size: 20px; line-height: 1.25; }
  .email-option .email-address { margin: 0; font-size: 15px; line-height: 1.5; }
  .email-option .button { width: 100%; margin: 4px 0 0; padding: 12px 16px; font-size: 14px; gap: 12px; }
  .footer-main { gap: 8px 20px; }
  .footer-main > a:last-child { font-size: 14px; overflow-wrap: anywhere; }
  .footer-bottom { font-size: 11px; }
  .legal-links { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .legal-page .legal-links { padding-bottom: 24px; }
  .mobile-contact { grid-template-columns: .8fr 1.2fr; }
  .mobile-contact a { min-height: 58px; padding: 12px 10px; line-height: 1.35; text-align: center; gap: 8px; }
  .mobile-contact a > span, .mobile-contact svg { flex: 0 0 auto; }
  .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .legal-page .cookie-banner { bottom: 12px; }
  .cookie-links { flex-wrap: wrap; gap: 0 16px; }

  /* Short transitions keep touch feedback immediate and text readable in motion. */
  .js-motion .reveal {
    --reveal-delay: 0ms !important;
    translate: 0 10px;
    transition-duration: .35s, .4s, .2s, .2s, .2s, .2s;
  }
  .js-motion .reveal.is-visible { translate: 0 0; }
}

@media (min-width: 560px) and (max-width: 760px) {
  .email-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-gallery-track > figure { flex-basis: 65%; }
}

@media (max-width: 380px) {
  .topline { padding-inline: 14px; font-size: 10px; letter-spacing: 0; }
  .site-header { padding-inline: 12px; gap: 6px; }
  .site-header .brand img { width: 100px; }
  .hero-actions .button { padding-inline: 18px; font-size: 14px; }
  .technology-intro-card { grid-template-columns: 30% minmax(0, 1fr); }
  .technology-intro-card > div { padding: 15px 12px; }
  .technology-intro-card h3 { font-size: 18px; }
  .client-wordmark { font-size: 14px; }
  .client-wordmark small { letter-spacing: 0; }
  .client-link > span { margin-left: 2px; }
  .bleu { font-size: 20px; }
  .response-banner { padding: 12px; }
  .response-copy { padding: 18px 16px; }
  .email-option { padding: 16px; }
  .mobile-contact a, html[lang=fr] .mobile-contact a { font-size: 11px; }
}

@media (max-width: 760px) and (hover: none) {
  .button:hover, .text-link:hover, .slider-arrow:hover:not(:disabled),
  .technology-intro-card:hover, .field-gallery-track > figure:hover,
  .technology-intro-card:hover > img, .field-gallery-track > figure:hover img,
  .service-card.is-current:hover .service-photo { transform: none; }
  .button:active, .slider-arrow:active:not(:disabled) { transform: scale(.985); }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .js-motion .reveal, .js-motion .reveal.is-visible { opacity: 1; translate: none; transform: none; }
  .button:active, .slider-arrow:active:not(:disabled) { transform: none; }
}
