/* ==========================================================================
   LANYATECH - EXPERIENCE MOBILE (inspiration application Alibaba)
   Ce fichier ne s'active que sur les smartphones (max-width: 767px).
   Le site desktop reste inchange.
   ========================================================================== */

/* Elements de l'application mobile : masques sur ordinateur */
.m-header,
.m-bottom-nav,
.m-footer,
.m-home,
.m-category-chips,
.m-account-hero,
.m-auth-tabs,
.m-checkout-submit {
  display: none;
}

@media (max-width: 767px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    background: #f5f5f5;
    color: #222;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* Boutons principaux : rouge du logo (a la place du jaune) */
  .btn-primary,
  .btn-success,
  .btn-amz,
  .account-login-btn {
    background: #f20d16;
    border-color: #f20d16;
    color: #fff;
  }

  .btn-primary:hover,
  .btn-success:hover,
  .btn-amz:hover,
  .account-login-btn:hover {
    background: #d10b13;
    border-color: #d10b13;
    color: #fff;
  }

  body.m-page-product {
    padding-bottom: calc(158px + env(safe-area-inset-bottom));
  }

  body.m-page-cart {
    padding-bottom: calc(158px + env(safe-area-inset-bottom));
  }

  body.m-page-checkout {
    padding-bottom: calc(168px + env(safe-area-inset-bottom));
  }

  body.m-page-auth {
    padding-bottom: 0;
  }

  /* Le header et le footer desktop laissent place a l'application.
     Le bandeau d'annonces (#announcementsBar) reste visible sur mobile. */
  .site-header,
  .footer-top,
  .footer-main,
  .footer-bottom {
    display: none !important;
  }

  /* ---------- Bandeau d'annonces (mobile) ---------- */
  #announcementsBar {
    display: block !important;
    min-height: 2rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.74rem;
    line-height: 1.3;
  }

  /* Aucune annonce active : le bandeau reste masqué, même sur mobile */
  #announcementsBar[hidden] {
    display: none !important;
  }

  #announcementsBar > div {
    animation-duration: 26s;
  }

  #announcementsBar > div > span {
    padding-right: 2rem;
  }

  /* ---------- Header application ---------- */
  .m-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f20d16;
    color: #fff;
    padding: 8px 12px 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  .m-header-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
  }

  .m-back {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    flex: 0 0 32px;
  }

  .m-page-home .m-back {
    display: none;
  }

  .m-brand {
    order: 1;
    display: inline-flex;
    align-items: center;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 4px 6px;
    line-height: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  }

  .m-brand img {
    display: block;
    height: 36px;
    width: auto;
  }

  .m-header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  .m-header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
  }

  .m-header-icon:active {
    background: rgba(255, 255, 255, 0.18);
  }

  .m-header-cart .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1px solid #f20d16;
    border-radius: 999px;
    background: #fff;
    color: #f20d16;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }

  .m-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
  }

  .m-search-icon {
    display: flex;
    color: #999;
    flex: 0 0 auto;
  }

  .m-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
  }

  .m-search input::placeholder {
    color: #999;
  }

  .m-location {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .m-location strong {
    font-weight: 800;
  }

  .m-location span {
    opacity: 0.7;
  }

  /* ---------- Navigation basse ---------- */
  .m-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: flex;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  }

  .m-nav-item {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 0;
    color: #8a8a8a;
    font-size: 10px;
  }

  .m-nav-item.active {
    color: #f20d16;
    font-weight: 800;
  }

  .m-nav-icon {
    display: flex;
  }

  .m-nav-badge {
    position: absolute;
    top: -4px;
    right: 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #f20d16;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
  }

  /* ---------- Footer compact ---------- */
  .m-footer {
    display: block;
    padding: 18px 14px 24px;
    background: #f5f5f5;
    color: #8a8a8a;
    font-size: 11px;
    text-align: center;
  }

  .m-footer-brand {
    margin-bottom: 2px;
    color: #333;
    font-size: 12px;
    font-weight: 800;
  }

  .m-footer p {
    margin: 0 0 6px;
  }

  .m-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
  }

  .m-footer-links a {
    color: #555;
  }

  .m-footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 8px;
  }

  .m-footer-social-title {
    margin: 0;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .m-footer-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .m-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e2e2;
    color: #444;
  }

  .m-footer-social a:active {
    background: #f0f0f0;
  }

  .m-footer-social svg {
    width: 15px;
    height: 15px;
    display: block;
  }

  .m-footer-copy {
    color: #aaa;
    font-size: 10px;
  }

  /* ---------- Accueil mobile ---------- */
  .m-home {
    display: block;
  }

  body.m-page-home .hero,
  body.m-page-home .benefits,
  body.m-page-home .section,
  body.m-page-home .newsletter {
    display: none !important;
  }

  .m-banner-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .m-banner-row::-webkit-scrollbar {
    display: none;
  }

  .m-banner {
    position: relative;
    display: flex;
    flex: 0 0 86%;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
    padding: 16px;
    border-radius: 16px;
    color: #fff;
    scroll-snap-align: start;
  }

  .m-banner-primary {
    background: linear-gradient(135deg, #f20d16 0%, #ff4d55 100%);
  }

  .m-banner-secondary {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }

  .m-banner::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
  }

  .m-banner-kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
    opacity: 0.9;
    text-transform: uppercase;
  }

  .m-banner h1 {
    max-width: 80%;
    margin: 6px 0;
    font-size: 22px;
    line-height: 1.15;
  }

  .m-banner p {
    max-width: 85%;
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.95;
  }

  .m-banner-btn {
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    color: #f20d16;
    font-size: 11px;
    font-weight: 800;
  }

  .m-banner-secondary .m-banner-btn {
    color: #111827;
  }

  .m-services {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fff;
  }

  .m-service {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #555;
    font-size: 10px;
    text-align: center;
  }

  .m-service svg {
    color: #f20d16;
  }

  .m-section {
    margin-bottom: 10px;
    padding: 14px 0;
    border-radius: 14px;
    background: #fff;
  }

  .m-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 10px;
  }

  .m-section-head h2 {
    color: #222;
    font-size: 16px;
    font-weight: 800;
  }

  .m-section-head > a {
    color: #f20d16;
    font-size: 11px;
    font-weight: 700;
  }

  .m-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    padding: 0 12px;
  }

  .m-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #333;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }

  .m-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 16px;
    background: #fde8e9;
    color: #f20d16;
    font-size: 10px;
    font-weight: 800;
  }

  .m-cat-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
  }

  .m-flash-section {
    background: linear-gradient(180deg, #fde8e9 0%, #fff 55%);
  }

  .m-countdown {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f20d16;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .m-flash-products {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 14px 14px;
    scrollbar-width: none;
  }

  .m-flash-products::-webkit-scrollbar {
    display: none;
  }

  .m-flash-products .m-product-card {
    flex: 0 0 150px;
  }

  .m-recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px 12px;
  }

  .m-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
  }

  .m-product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: 10px;
    background: #f7f7f7;
  }

  .m-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .m-product-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f20d16;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
  }

  .m-product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }

  .m-product-name {
    display: -webkit-box;
    min-height: 31px;
    overflow: hidden;
    color: #222;
    font-size: 12px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .m-product-rating {
    color: #999;
    font-size: 10px;
  }

  .m-product-ship {
    color: #0a8a5f;
    font-size: 10px;
    font-weight: 600;
  }

  .m-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
  }

  .m-product-price {
    color: #f20d16;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
  }

  .m-product-price span {
    font-size: 9px;
    font-weight: 700;
  }

  .m-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 0;
    border-radius: 50%;
    background: #f20d16;
    color: #fff;
  }

  .m-add-to-cart:disabled {
    background: #ccc;
  }

  .m-add-to-cart.added {
    background: #0a8a5f;
  }

  /* ---------- Catalogue mobile ---------- */
  .m-category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
    scrollbar-width: none;
  }

  .m-category-chips::-webkit-scrollbar {
    display: none;
  }

  .m-chip {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #444;
    font-size: 12px;
    font-weight: 600;
  }

  .m-chip.active {
    background: #f20d16;
    color: #fff;
  }

  .m-page-products .page-shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .m-page-products .filters-sidebar {
    display: none !important;
  }

  .m-page-products .results-main {
    padding: 10px 12px 20px;
  }

  .m-page-products .results-bar {
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: #fff;
  }

  .m-page-products .results-count {
    font-size: 11px;
  }

  .m-page-products .sort-control {
    gap: 4px;
    font-size: 10px;
  }

  .m-page-products .sort-control select {
    padding: 5px 6px;
    border-radius: 8px;
    font-size: 11px;
  }

  .m-page-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .m-page-products .product-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: none;
  }

  .m-page-products .product-image {
    height: auto;
    margin: 0;
    padding: 10px;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
  }

  .m-page-products .product-image img {
    max-width: 100%;
    max-height: 100%;
  }

  .m-page-products .product-body {
    gap: 3px;
    padding: 8px;
  }

  .m-page-products .product-category,
  .m-page-products .product-rating,
  .m-page-products .product-delivery {
    display: none;
  }

  .m-page-products .product-title {
    min-height: 31px;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .m-page-products .product-price {
    margin: 2px 0 0;
  }

  .m-page-products .price-whole {
    color: #f20d16;
    font-size: 14px;
  }

  .m-page-products .price-currency {
    color: #f20d16;
    font-size: 9px;
  }

  .m-page-products .product-stock {
    margin: 0 0 4px;
    font-size: 10px;
  }

  .m-page-products .add-to-cart {
    margin-top: auto;
    padding: 7px 4px;
    border-color: #f20d16;
    border-radius: 8px;
    background: #f20d16;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
  }

  .m-page-products .product-badge {
    display: none;
  }

  /* ---------- Fiche produit mobile ---------- */
  .m-page-product .product-detail-layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .m-page-product .detail-gallery {
    position: static;
    padding: 0;
    background: #fff;
  }

  .m-page-product .detail-main-image {
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: 1 / 1;
    background: #fff;
  }

  .m-page-product .detail-main-image img {
    width: 100%;
    height: 100%;
    padding: 16px;
    object-fit: contain;
  }

  .m-page-product .detail-info {
    padding: 14px 16px 0;
    background: #fff;
  }

  .m-page-product .detail-info h1 {
    font-size: 18px;
  }

  .m-page-product .detail-price {
    font-size: 24px;
  }

  .m-page-product .detail-desc,
  .m-page-product .detail-bullets {
    font-size: 13px;
  }

  .m-page-product .buy-box {
    position: fixed;
    top: auto;
    right: 0;
    bottom: calc(54px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .m-page-product .buy-box-price {
    flex: 0 0 auto;
    margin: 0;
    color: #f20d16;
    font-size: 18px;
  }

  .m-page-product .buy-box-delivery,
  .m-page-product .buy-box-stock,
  .m-page-product .qty-row,
  .m-page-product .buy-box-secure,
  .m-page-product .btn-share-product {
    display: none;
  }

  .m-page-product .buy-box .btn-amz {
    flex: 1;
    margin: 0;
    padding: 10px 14px;
    border-color: #f20d16;
    border-radius: 999px;
    background: #f20d16;
    color: #fff;
    font-weight: 800;
  }

  /* ---------- Panier mobile ---------- */
  .m-page-cart .cart-layout {
    display: block;
    max-width: none;
    padding: 10px 12px 20px;
  }

  .m-page-cart .cart-card {
    padding: 12px;
    border: 0;
    border-radius: 14px;
  }

  .m-page-cart .cart-card-header h1 {
    font-size: 18px;
  }

  .m-page-cart .cart-price-label {
    display: none;
  }

  .m-page-cart .cart-item {
    grid-template-columns: 82px 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .m-page-cart .cart-item-image {
    width: 82px;
    height: 82px;
  }

  .m-page-cart .cart-item-title {
    font-size: 13px;
  }

  .m-page-cart .cart-item-stock,
  .m-page-cart .cart-item-shipping {
    font-size: 11px;
  }

  .m-page-cart .cart-item-price {
    grid-column: 2;
    color: #f20d16;
    font-size: 14px;
    text-align: left;
  }

  .m-page-cart .subtotal-box {
    position: fixed;
    top: auto;
    right: 0;
    bottom: calc(54px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .m-page-cart .subtotal-line {
    flex: 1;
    margin: 0;
    font-size: 11px;
  }

  .m-page-cart .subtotal-line strong {
    display: block;
    color: #f20d16;
    font-size: 16px;
  }

  .m-page-cart .subtotal-box .btn-amz {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 10px 14px;
    border-color: #f20d16;
    border-radius: 999px;
    background: #f20d16;
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
  }

  .m-page-cart .subtotal-note {
    display: none;
  }

  .m-page-cart .cart-card-footer {
    display: none !important;
  }

  /* ---------- Checkout mobile ---------- */
  .m-page-checkout .checkout-shell {
    display: block;
    max-width: none;
    padding: 10px 12px 20px;
  }

  .m-page-checkout .checkout-card {
    margin-bottom: 10px;
    padding: 14px;
    border: 0;
    border-radius: 14px;
  }

  .m-page-checkout .checkout-card h2 {
    font-size: 16px;
  }

  .m-page-checkout .order-summary {
    position: static;
    margin-top: 10px;
    padding: 14px;
    border: 0;
    border-radius: 14px;
  }

  .m-page-checkout #submitOrderBtn {
    display: none;
  }

  .m-checkout-submit {
    position: fixed;
    right: 12px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #f20d16;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 6px 16px rgba(242, 13, 22, 0.35);
  }

  .m-checkout-submit:active {
    transform: scale(0.99);
    box-shadow: 0 3px 8px rgba(242, 13, 22, 0.3);
  }

  .m-checkout-submit span {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
  }

  .m-checkout-submit strong {
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: #0f1111;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  /* ---------- Compte mobile ---------- */
  .m-page-account .container-narrow {
    max-width: none;
    padding: 0 12px 20px;
  }

  .m-page-account .page-title {
    display: none;
  }

  .m-account-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f20d16 0%, #ff4d55 100%);
    color: #fff;
  }

  .m-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #fff;
    color: #f20d16;
    font-size: 16px;
    font-weight: 800;
  }

  .m-account-hero strong {
    display: block;
    font-size: 16px;
  }

  .m-account-hero span {
    font-size: 11px;
    opacity: 0.9;
  }

  .m-page-account .account-card {
    margin-bottom: 10px;
    padding: 14px;
    border: 0;
    border-radius: 14px;
  }

  .m-page-account .account-card h2 {
    font-size: 15px;
  }

  /* Bouton "Se connecter" bien visible sur mobile */
  .m-page-account #accountNotAuth {
    padding: 18px 14px 16px;
  }

  .m-page-account #accountNotAuth p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #555;
  }

  .m-page-account .account-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px rgba(242, 13, 22, 0.35);
  }

  .m-page-account .account-login-btn:active {
    transform: scale(0.99);
    box-shadow: 0 3px 8px rgba(242, 13, 22, 0.3);
  }

  .m-page-account .account-guest-hint {
    margin: 12px 0 0;
    font-size: 12px;
  }

  .m-page-account .form-grid {
    gap: 10px;
  }

  .m-page-account .table-container,
  .m-page-account #accountOrders {
    overflow-x: auto;
    border: 0;
    -webkit-overflow-scrolling: touch;
  }

  .m-page-account #accountOrders table {
    min-width: 720px;
    font-size: 12px;
  }

  .m-page-account #accountOrders th,
  .m-page-account #accountOrders td {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .m-page-account #accountOrders .order-cancel-btn {
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .m-page-account #accountOrders .account-orders-notice {
    margin: 0 0 10px;
    font-size: 12px;
  }

  /* ---------- Connexion mobile ---------- */
  .m-page-auth .auth-shell {
    max-width: none;
    margin: 0;
    padding: 12px 12px 24px;
  }

  .m-page-auth .auth-brand,
  .m-page-auth .auth-divider {
    display: none;
  }

  .m-page-auth .m-search,
  .m-page-auth .m-location,
  .m-page-auth .m-bottom-nav,
  .m-page-auth .m-footer {
    display: none;
  }

  .m-auth-tabs {
    display: flex;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
  }

  .m-auth-tabs button {
    flex: 1;
    padding: 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #777;
    font-size: 13px;
    font-weight: 700;
  }

  .m-auth-tabs button.active {
    background: #f20d16;
    color: #fff;
  }

  .m-page-auth .auth-box {
    margin-bottom: 0;
    padding: 16px;
    border: 0;
    border-radius: 16px;
  }

  .m-page-auth .auth-box h2 {
    font-size: 18px;
  }

  .m-page-auth .auth-box-signup {
    display: none;
  }

  .m-page-auth.m-auth-signup .auth-box-login {
    display: none;
  }

  .m-page-auth.m-auth-signup .auth-box-signup {
    display: block;
  }

  .m-page-auth .auth-new {
    margin-top: 10px;
    padding: 12px 16px;
    border: 0;
    border-radius: 14px;
  }

  .m-product-tag.is-promo {
    background: #e67a00;
  }

  .m-product-tag.is-top {
    background: #b91c1c;
  }

  .m-product-tag.is-best {
    background: #0b6b3a;
  }

  .m-product-tag.is-popular {
    background: #1f4e79;
  }

  .m-product-share {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  }

  .m-product-share:active {
    background: #ececec;
  }

  .m-product-share svg {
    width: 14px;
    height: 14px;
    display: block;
  }

  .share-toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .m-price-old {
    display: block;
    margin-bottom: 1px;
    color: #999;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: line-through;
  }

  .m-price-discount {
    display: inline-block;
    margin-left: 3px;
    padding: 0 3px;
    border-radius: 3px;
    background: #f20d16;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    vertical-align: middle;
  }

  .m-countdown.is-off {
    background: #8a8a8a;
    font-size: 9px;
  }

  /* ---------- Confidentialite (mobile) ---------- */
  .m-page-legal .legal-main {
    padding: 14px 12px 24px;
  }

  .m-page-legal .legal-intro {
    margin-bottom: 12px;
  }

  .m-page-legal .page-title {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .m-page-legal .contact-eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .m-page-legal .contact-lead {
    font-size: 13px;
    line-height: 1.5;
  }

  .m-page-legal .legal-updated {
    margin-top: 8px;
    font-size: 11px;
  }

  .m-page-legal .legal-card {
    margin-bottom: 10px;
    padding: 14px;
    border: 0;
    border-radius: 14px;
  }

  .m-page-legal .legal-card h2 {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .m-page-legal .legal-card p,
  .m-page-legal .legal-list li {
    font-size: 13px;
    line-height: 1.55;
  }

  .m-page-legal .legal-list {
    padding-left: 16px;
  }

  .m-page-legal .legal-contact {
    margin-top: 12px;
    padding: 16px 14px;
    border-radius: 14px;
  }

  .m-page-legal .legal-contact h2 {
    font-size: 15px;
  }

  .m-page-legal .legal-contact p {
    font-size: 12px;
  }

  .m-page-legal .legal-contact-actions {
    flex-direction: column;
  }

  .m-page-legal .legal-contact-actions .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 13px;
    text-align: center;
  }

  /* Partage produit : disponible sur ordinateur uniquement */
  .product-share,
  .m-product-share {
    display: none !important;
  }
}

/* Tres petits ecrans : le bouton de commande reste sur une seule ligne */
@media (max-width: 360px) {
  .m-checkout-submit {
    gap: 8px;
    padding: 0 14px;
  }

  .m-checkout-submit span {
    font-size: 15px;
  }

  .m-checkout-submit strong {
    padding: 4px 8px;
    font-size: 12px;
  }
}

