/* Mobile v100 — une page courte, lisible et facile a parcourir au pouce. */
.mobile-brand-link,
.mobile-quick-nav,
.mobile-rail-controls,
.shop-category-icon {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 80px;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    min-height: 72px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
    padding: 8px 12px !important;
  }

  /* L'aperçu local utilise un en-tête simplifié, mais doit reproduire la
     même hauteur et garder le panier accessible que la vraie boutique. */
  .demo-header {
    min-height: 72px !important;
    padding: 8px 12px !important;
  }

  .demo-header .demo-brand img {
    width: 42px;
    height: 42px;
  }

  .mobile-brand-link {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: var(--ivory);
    text-decoration: none;
  }

  .mobile-brand-link img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(197, 192, 125, .35);
  }

  .mobile-brand-link span {
    overflow: hidden;
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 7px;
  }

  .site-header .header-cart,
  .demo-header .header-cart {
    display: grid !important;
    width: 44px;
    height: 44px;
  }

  .mobile-menu summary {
    width: 44px;
    height: 44px;
  }

  .site-header + .hero.hero-cover {
    margin-top: 72px !important;
  }

  .hero-cover-action {
    padding: 10px 16px 12px !important;
  }

  .hero-cover-action .button {
    min-height: 48px;
  }

  .mobile-quick-nav {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 8px;
    border-block: 1px solid rgba(197, 192, 125, .22);
    background: rgba(6, 16, 13, .96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    backdrop-filter: blur(16px);
  }

  .mobile-quick-nav a {
    display: grid;
    min-height: 44px;
    min-width: 0;
    flex: 1 1 0;
    place-items: center;
    padding: 6px 3px;
    border: 1px solid rgba(197, 192, 125, .2);
    border-radius: 9px;
    color: rgba(250, 250, 248, .9);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .mobile-quick-nav a:last-child {
    border-color: var(--gold);
    background: var(--gold);
    color: #10231d;
  }

  .expertise-rail {
    display: none !important;
  }

  .brand-memory {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 42px 16px !important;
  }

  .brand-memory h2,
  .brand-memory-copy h2 {
    margin: 6px 0 14px !important;
    font-size: clamp(2.2rem, 11.5vw, 3.25rem) !important;
    line-height: .98 !important;
  }

  .brand-memory .eyebrow {
    margin-bottom: 12px;
  }

  .brand-memory-lead {
    margin-bottom: 18px !important;
    font-size: .94rem !important;
    line-height: 1.5 !important;
  }

  .brand-memory .button {
    min-height: 48px;
  }

  .brand-memory-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
  }

  .brand-memory-list li {
    display: grid !important;
    min-width: 0;
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 6px !important;
    padding: 12px 5px !important;
    border: 1px solid rgba(197, 192, 125, .2) !important;
    border-radius: 12px;
    text-align: center;
  }

  .brand-memory-list b {
    width: 30px !important;
    height: 30px !important;
    font-size: 9px !important;
  }

  .brand-memory-list strong {
    font-size: 11px;
  }

  .brand-memory-list span,
  .brand-memory-signature {
    display: none !important;
  }

  .section {
    padding: 46px 16px !important;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .section-heading,
  .shop-heading,
  .group-intro,
  .process-section,
  .about-section,
  .quote-section,
  .faq-section {
    gap: 20px !important;
  }

  .section-heading,
  .shop-heading,
  .group-intro {
    margin-bottom: 24px !important;
  }

  .section-heading h2,
  .shop-heading h2,
  .group-intro h2,
  .process-copy h2,
  .about-copy h2,
  .quote-intro h2,
  .faq-section h2 {
    font-size: clamp(1.9rem, 9vw, 2.75rem) !important;
    line-height: 1.04;
  }

  .section-heading > p,
  .shop-heading > div:first-child > p:last-child,
  .group-intro > p,
  .process-copy > p,
  .about-copy > p,
  .quote-intro > p {
    font-size: .9rem !important;
    line-height: 1.55 !important;
  }

  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    display: flex;
    min-height: 164px !important;
    grid-column: auto !important;
    flex-direction: column;
    padding: 16px !important;
  }

  .service-card-top {
    margin-bottom: 16px !important;
  }

  .service-card-top span {
    font-size: 10px;
  }

  .service-symbol {
    font-size: 1rem;
  }

  .service-card h3 {
    margin-bottom: 0 !important;
    font-size: 15px !important;
    line-height: 1.2;
  }

  .service-card p {
    display: none;
  }

  .service-card a {
    display: flex;
    min-height: 44px;
    align-items: center;
    margin-top: auto !important;
    padding-top: 14px;
    font-size: 10px !important;
  }

  .shop-heading-simple .button-outline {
    min-height: 48px;
  }

  .shop-section .shop-toolbar {
    display: grid;
    width: 100%;
    max-width: 380px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 auto 24px !important;
    padding: 0;
    overflow: visible;
  }

  .shop-section .shop-toolbar button.shop-category-tile {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #3a4e45;
    box-shadow: none;
  }

  .shop-section .shop-toolbar button.shop-category-tile:hover,
  .shop-section .shop-toolbar button.shop-category-tile.active {
    background: transparent;
    color: #3a4e45;
  }

  .shop-section .shop-toolbar button.shop-category-tile:focus-visible {
    outline: 3px solid #3a4e45;
    outline-offset: 4px;
  }

  .shop-section .shop-category-icon {
    display: block;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    padding: 13px;
    border: 1px solid #d3dbd5;
    border-radius: 17px;
    background: #f3f6f3;
    box-shadow: 0 3px 8px rgba(16, 35, 29, .06);
  }

  .shop-section .shop-category-tile:hover .shop-category-icon,
  .shop-section .shop-category-tile.active .shop-category-icon {
    border-color: #3a4e45;
    background: #3a4e45;
    color: #eee6ad;
  }

  .shop-section .shop-category-label {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .mobile-rail-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
  }

  .mobile-rail-controls span {
    color: currentColor;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
  }

  .mobile-rail-controls button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: 800 1.1rem/1 sans-serif;
  }

  .mobile-rail-controls button:disabled {
    opacity: .34;
    cursor: default;
  }

  .shop-section [data-mobile-rail-controls="#product-grid"] {
    display: none !important;
  }

  .shop-section .product-grid {
    display: grid !important;
    max-width: none !important;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
  }

  .shop-section .product-card {
    position: relative;
    min-width: 0;
    border-radius: 18px;
  }

  .shop-section .product-card:hover {
    transform: none;
  }

  .shop-section .product-image,
  .shop-section .product-image img {
    min-height: 0 !important;
    height: clamp(92px, 28vw, 150px) !important;
  }

  .shop-section .product-image:not(.product-image--cutout) img,
  .shop-section .product-image--cutout img {
    padding: 8px !important;
  }

  .shop-section .product-image img[src*="decoupe-vinyle-catalog-v1-20260902.webp"] {
    width: clamp(92px, 28vw, 150px);
    max-width: 100%;
  }

  .shop-section .product-image > span,
  .shop-section .product-customizable-note,
  .shop-section .product-copy > small,
  .shop-section .product-copy > p,
  .shop-section .product-variation-summary,
  .shop-section .product-price-human-note {
    display: none !important;
  }

  .shop-section .product-copy {
    min-height: 0 !important;
    gap: 8px;
    padding: 10px 12px 12px !important;
  }

  .shop-section .product-copy h3 {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .shop-section .product-bottom {
    display: block !important;
    margin-top: auto;
    padding: 0 20px 0 0 !important;
    border: 0;
  }

  .shop-section .product-bottom strong {
    font-size: 12px !important;
    line-height: 1.3;
  }

  .shop-section .product-bottom span,
  .shop-section .product-bottom del {
    display: none !important;
  }

  .shop-section .product-bottom button,
  .shop-section .product-bottom .request-product-link {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #3a4e45;
    font-size: 0;
  }

  .shop-section .product-bottom button::after,
  .shop-section .product-bottom .request-product-link::after {
    position: absolute;
    right: 12px;
    bottom: 11px;
    content: "\2197";
    font-size: 17px;
    line-height: 1;
  }

  .shop-section .product-bottom button:focus-visible,
  .shop-section .product-bottom .request-product-link:focus-visible {
    outline: 3px solid #3a4e45;
    outline-offset: -4px;
  }

  .group-empty {
    padding: 20px !important;
  }

  .group-steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 22px !important;
  }

  .group-steps article {
    min-width: 0;
    padding: 13px 8px !important;
    border-top: 2px solid var(--turquoise);
    border-left: 0 !important;
    border-radius: 9px;
    text-align: center;
  }

  .group-steps strong {
    margin-top: 7px !important;
    font-size: 11px !important;
    line-height: 1.25;
  }

  .group-steps p {
    display: none;
  }

  .group-empty .button {
    min-height: 48px;
  }

  #realisations.ms-gallery-section {
    padding: 46px 16px !important;
  }

  #realisations .ms-gallery-heading {
    gap: 14px !important;
    margin-bottom: 20px !important;
  }

  #realisations .ms-gallery-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  #realisations .ms-gallery-intro {
    font-size: .9rem !important;
    line-height: 1.55 !important;
  }

  #realisations .ms-gallery-filters {
    margin-bottom: 14px !important;
  }

  #realisations .mobile-rail-controls {
    color: var(--msg-cream);
  }

  #realisations .ms-gallery-grid {
    display: grid !important;
    grid-auto-columns: min(82vw, 320px);
    grid-auto-flow: column;
    grid-template-columns: none !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 0 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  #realisations .ms-gallery-item,
  #realisations .ms-gallery-item:first-child,
  #realisations .ms-gallery-item:nth-child(8) {
    grid-column: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #realisations .ms-gallery-card,
  #realisations .ms-gallery-item:first-child .ms-gallery-card,
  #realisations .ms-gallery-item:nth-child(8) .ms-gallery-card,
  #realisations.gallery-size-comfortable .ms-gallery-card,
  #realisations.gallery-size-showcase .ms-gallery-card {
    height: 300px !important;
  }

  #realisations .ms-gallery-description {
    display: none;
  }

  #realisations .ms-gallery-status {
    margin-top: 6px;
  }

  .process-section {
    padding-block: 46px !important;
  }

  .process-copy .button {
    min-height: 48px;
    margin-top: 18px !important;
  }

  .process-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .process-list li {
    display: block !important;
    min-width: 0;
    padding: 14px !important;
    border: 1px solid rgba(197, 192, 125, .16) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
  }

  .process-list strong {
    display: block;
    margin-top: 8px;
    font-size: 13px !important;
    line-height: 1.3;
  }

  .process-list p {
    display: none;
  }

  .about-visual {
    display: none !important;
  }

  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 20px !important;
  }

  .about-values span {
    padding: 10px;
    border: 1px solid rgba(197, 192, 125, .14);
    border-radius: 9px;
    font-size: 11px !important;
  }

  .quote-help {
    display: none !important;
  }

  .quote-form {
    gap: 12px !important;
    padding: 16px !important;
  }

  .form-row,
  .form-row.three {
    gap: 12px !important;
  }

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

  .quote-form textarea {
    min-height: 110px;
  }

  .faq-list summary {
    min-height: 62px !important;
    gap: 14px !important;
    font-size: 13px !important;
  }

  .site-footer {
    gap: 24px !important;
    padding: 42px 16px !important;
  }
}

@media (max-width: 370px) {
  .mobile-brand-link span {
    display: none;
  }

  .mobile-quick-nav a {
    font-size: 9px;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    min-height: 172px !important;
    padding: 14px !important;
  }

  #realisations .ms-gallery-grid {
    grid-auto-columns: 86vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-grid,
  #realisations .ms-gallery-grid {
    scroll-behavior: auto;
  }
}
