/* Tablet content zone — 500–799px (user tablet range; hybrid laptop content starts at 800px) */

@media (min-width: 500px) and (max-width: 799px) {
  html.tablet-content-zone,
  body.tablet-content-zone {
    overflow-x: clip;
    max-width: 100%;
  }

  body.tablet-content-zone.diy-page {
    background: #fff;
  }

  body.tablet-content-zone.diy-page .app-shell {
    background: #fff;
    overflow-x: clip;
  }

  body.tablet-content-zone.diy-page .phone {
    max-width: none;
    width: 100%;
    box-shadow: none;
    background: #fff;
    min-height: auto;
    overflow-x: clip;
  }

  /* ── Nous contacter ── */
  body.contact-page.diy-page .diy-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px 28px 48px;
    box-sizing: border-box;
    background: #fff;
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
  }

  body.contact-page .contact-main {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0 auto;
  }

  body.contact-page .contact-page-title {
    font-size: clamp(1.85rem, 5vw, 2.25rem);
    margin-bottom: 24px;
    color: #11214a;
    text-align: left;
  }

  body.contact-page .action-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 32px;
  }

  body.contact-page .action-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  body.contact-page .action-card .label {
    font-size: 1rem;
    font-weight: 600;
  }

  body.contact-page .contact-form-section {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 28px 24px;
    border: 1px solid #e4e7f2;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
  }

  body.contact-page .contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 22px;
    color: #11214a;
  }

  body.contact-page .contact-form {
    display: block;
  }

  body.contact-page .contact-field {
    margin-bottom: 16px;
  }

  body.contact-page .contact-input,
  body.contact-page .contact-textarea,
  body.contact-page .contact-recaptcha {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 1rem;
  }

  body.contact-page .contact-textarea {
    min-height: 130px;
  }

  body.contact-page .contact-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #11214a;
  }

  body.contact-page .contact-attach-btn,
  body.contact-page .contact-send-btn {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  body.contact-page .contact-recaptcha {
    margin-top: 12px;
    font-size: 0.78rem;
  }

  /* ── Retours et échanges ── */
  body.retours-page.diy-page .diy-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px 28px 48px;
    box-sizing: border-box;
    background: #fff;
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
  }

  body.retours-page .retours-main {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    background: transparent;
  }

  body.retours-page .retours-title {
    font-size: clamp(1.85rem, 5vw, 2.25rem);
    margin-bottom: 12px;
    color: #11214a;
    text-align: center;
  }

  body.retours-page .retours-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 24px;
    text-align: center;
    color: #5b6685;
    max-width: 520px;
  }

  body.retours-page .retours-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 16px;
    box-sizing: border-box;
  }

  body.retours-page .retours-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #11214a;
    margin-bottom: 8px;
  }

  body.retours-page .retours-input {
    width: 100%;
    border-radius: 10px;
    border-color: #e4e7f2;
    padding: 13px 15px;
    font-size: 1rem;
  }

  body.retours-page .retours-input:focus {
    border-color: #004ebc;
    box-shadow: 0 0 0 2px rgba(0, 78, 188, 0.15);
  }

  body.retours-page .retours-btn {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
  }

  body.retours-page .retours-divider {
    max-width: 560px;
    margin: 22px auto;
    padding: 0;
  }

  body.retours-page .retours-btn-secondary {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    padding: 14px 18px;
    line-height: 1.35;
  }

  /* ── Suivre ma commande ── */
  body.track-order-page.diy-page .diy-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px 28px 48px;
    box-sizing: border-box;
    background: #fff;
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
  }

  body.track-order-page .track-main {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    background: transparent;
  }

  body.track-order-page .track-title {
    font-size: clamp(1.85rem, 5vw, 2.25rem);
    margin-bottom: 12px;
    color: #11214a;
    text-align: center;
  }

  body.track-order-page .track-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 24px;
    text-align: center;
    color: #5b6685;
    max-width: 520px;
  }

  body.track-order-page .track-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 16px;
    box-sizing: border-box;
  }

  body.track-order-page .track-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #11214a;
    margin-bottom: 8px;
  }

  body.track-order-page .track-input {
    width: 100%;
    border-radius: 10px;
    border-color: #e4e7f2;
    padding: 13px 15px;
    font-size: 1rem;
  }

  body.track-order-page .track-input:focus {
    border-color: #004ebc;
    box-shadow: 0 0 0 2px rgba(0, 78, 188, 0.15);
  }

  body.track-order-page .track-btn {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    margin-top: 4px;
  }

  /* ── Retour / réclamation cadeau ── */
  body.gift-return-page.diy-page .diy-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 20px 28px 48px;
    box-sizing: border-box;
    background: #fff;
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
  }

  body.gift-return-page .gift-main {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    background: transparent;
  }

  body.gift-return-page .gift-back-btn {
    margin-bottom: 16px;
  }

  body.gift-return-page .gift-title {
    font-size: clamp(1.65rem, 4.5vw, 2rem);
    margin-bottom: 12px;
    color: #11214a;
    line-height: 1.2;
  }

  body.gift-return-page .gift-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #5b6685;
  }

  body.gift-return-page .gift-form {
    width: 100%;
    border: 1px solid #e4e7f2;
    border-radius: 16px;
    padding: 24px 24px 28px;
    background: #fff;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  body.gift-return-page .gift-section-title,
  body.gift-return-page .gift-missing-link,
  body.gift-return-page .gift-field:has(#gift-address),
  body.gift-return-page .gift-field:has(#gift-picture),
  body.gift-return-page .gift-attach-btn,
  body.gift-return-page .gift-file-name,
  body.gift-return-page .gift-btn {
    grid-column: 1 / -1;
  }

  body.gift-return-page .gift-section-title {
    font-size: 1.05rem;
    margin-top: 6px;
    margin-bottom: 14px;
    color: #11214a;
  }

  body.gift-return-page .gift-section-title:first-of-type {
    margin-top: 0;
  }

  body.gift-return-page .gift-missing-link {
    margin: -2px 0 18px;
    font-size: 0.92rem;
  }

  body.gift-return-page .gift-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #11214a;
  }

  body.gift-return-page .gift-input,
  body.gift-return-page .picker-trigger {
    width: 100%;
    border-radius: 10px;
    border-color: #e4e7f2;
    padding: 13px 15px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  body.gift-return-page .gift-input:focus,
  body.gift-return-page .picker-trigger:focus {
    border-color: #004ebc;
    box-shadow: 0 0 0 2px rgba(0, 78, 188, 0.15);
  }

  body.gift-return-page .gift-btn {
    min-height: 50px;
    font-size: 1rem;
    margin-top: 8px;
  }

  body.gift-return-page .gift-footer-rule {
    margin: 28px 0 16px;
  }

  body.gift-return-page .gift-policy-link {
    font-size: 0.95rem;
  }

  body.gift-return-page .picker-overlay.open .picker-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(440px, calc(100vw - 32px));
    height: min(480px, calc(100vh - 64px));
    max-height: calc(100vh - 64px);
    border-radius: 16px;
    transform: translate(-50%, -50%);
    padding-bottom: 0;
    box-shadow: 0 16px 48px rgba(17, 33, 74, 0.22);
  }

  body.gift-return-page .picker-hetle {
    display: none;
  }

  body.gift-return-page .picker-header {
    padding: 18px 20px 12px;
  }

  body.gift-return-page .picker-search-wrap {
    padding: 10px 16px;
  }

  /* ── Imprimables ── */
  body.printables-page.diy-page {
    background: #fff;
  }

  body.printables-page .diy-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 0 40px;
    box-sizing: border-box;
    background: #fff;
  }

  body.printables-page #view-listing .page-hero,
  body.printables-page #view-section-all .page-hero,
  body.printables-page #view-tag .page-hero {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    line-height: 0;
  }

  body.printables-page #view-listing .page-hero img,
  body.printables-page #view-section-all .page-hero img,
  body.printables-page #view-tag .page-hero img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0;
  }

  body.printables-page #view-listing .breadcrumb,
  body.printables-page #view-section-all .breadcrumb,
  body.printables-page #view-tag .breadcrumb {
    background: rgb(249, 249, 249);
    padding: 18px 24px;
    font-size: 16px;
  }

  body.printables-page #view-listing .tags-section,
  body.printables-page #view-section-all .tags-section,
  body.printables-page #view-tag .tags-section {
    padding: 18px 24px 22px;
  }

  body.printables-page #view-listing .activity-cards,
  body.printables-page #view-section-all .activity-cards,
  body.printables-page #view-tag .activity-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 0 24px 32px;
    flex-direction: unset;
  }

  body.printables-page .activity-card {
    padding: 0;
  }

  body.printables-page .activity-card .card-img {
    height: 140px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  body.printables-page .activity-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  body.printables-page .activity-card p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.printables-page .activity-card .card-tags {
    flex-wrap: wrap;
    gap: 6px;
  }

  body.printables-page .activity-card .tag {
    font-size: 12px;
    padding: 7px 12px;
  }

  body.printables-page #view-tag .tagged-header {
    padding: 0 24px 20px;
    font-size: 22px;
    text-align: left;
  }

  body.printables-page .hero + .photo-card {
    margin-top: 0 !important;
  }

  body.printables-page .view-all {
    display: flex;
    justify-content: center;
    padding: 20px 24px 0;
    margin: 0;
  }

  body.printables-page .view-all .btn-all {
    width: auto;
    min-width: 200px;
    padding: 14px 32px;
  }

  body.printables-page #view-section-all,
  body.printables-page #view-tag {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
  }

  body.printables-page #view-section-all .hero,
  body.printables-page #view-tag .hero {
    margin: 0 -24px 20px;
    width: calc(100% + 48px);
    border-radius: 0;
  }

  body.printables-page #view-section-all .hero img,
  body.printables-page #view-tag .hero img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0;
  }

  body.printables-page #view-section-all .tags-section,
  body.printables-page #view-tag .tags-section {
    padding: 0 0 20px;
  }

  body.printables-page #sectionImprimerablesCards,
  body.printables-page #tagImprimerablesCards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 0 0 36px;
  }

  body.printables-page #sectionImprimerablesCards .photo-card,
  body.printables-page #tagImprimerablesCards .photo-card {
    margin: 0 !important;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
  }

  body.printables-page #sectionImprimerablesCards .photo-card svg,
  body.printables-page #sectionImprimerablesCards .photo-card img,
  body.printables-page #tagImprimerablesCards .photo-card svg,
  body.printables-page #tagImprimerablesCards .photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.printables-page #sectionImprimerablesCards .card-text,
  body.printables-page #tagImprimerablesCards .card-text {
    padding: 10px 0 0;
  }

  body.printables-page .section-bc,
  body.printables-page #view-detail .bc {
    padding: 16px 24px 8px;
    font-size: 15px;
  }

  body.printables-page .tags-section {
    padding: 16px 24px 20px;
  }

  body.printables-page #view-detail .detail-h {
    font-size: 26px;
    padding: 12px 24px;
  }

  body.printables-page #view-detail .detail-img {
    margin: 0 24px;
    border-radius: 14px;
    overflow: hidden;
  }

  body.printables-page #view-detail .detail-body {
    padding: 18px 24px 8px;
    font-size: 16px;
  }

  body.printables-page #view-detail .btn-dl {
    margin: 0 24px 32px;
  }

  body.printables-page .more-section {
    padding: 0 24px;
  }

  body.printables-page #moreImprimerablesCards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.printables-page #moreImprimerablesCards .more-card .photo-card {
    margin: 0 !important;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
  }

  /* ── DIY activities listing ── */
  body.diy-activities-page .diy-content,
  body.diy-page:has(.activity-cards) .diy-content {
    max-width: none;
    width: 100%;
    padding: 0 0 40px;
    box-sizing: border-box;
  }

  body.diy-page:has(.activity-cards) .page-hero,
  body.diy-activities-page .page-hero {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    line-height: 0;
  }

  body.diy-page:has(.activity-cards) .page-hero img,
  body.diy-activities-page .page-hero img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0;
  }

  body.diy-page:has(.activity-cards) .breadcrumb,
  body.diy-activities-page .breadcrumb {
    background: rgb(249, 249, 249);
    padding: 18px 24px;
    font-size: 16px;
  }

  body.diy-page:has(.activity-cards) .tags-section,
  body.diy-activities-page .tags-section {
    padding: 18px 24px 22px;
  }

  body.diy-activities-page .activity-cards,
  body.diy-page:has(.activity-cards) .activity-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 0 24px 32px;
    flex-direction: unset;
  }

  body.diy-page:has(.activity-cards) .activity-card,
  body.diy-activities-page .activity-card {
    padding: 0;
  }

  body.diy-page:has(.activity-cards) .activity-card .card-img,
  body.diy-activities-page .activity-card .card-img {
    height: 140px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  body.diy-page:has(.activity-cards) .activity-card h3,
  body.diy-activities-page .activity-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  body.diy-page:has(.activity-cards) .activity-card p,
  body.diy-activities-page .activity-card p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.diy-page:has(.activity-cards) .activity-card .card-tags,
  body.diy-activities-page .activity-card .card-tags {
    flex-wrap: wrap;
    gap: 6px;
  }

  body.diy-page:has(.activity-cards) .activity-card .tag,
  body.diy-activities-page .activity-card .tag {
    font-size: 12px;
    padding: 7px 12px;
  }

  body.diy-activities-page .diy-listing-newsletter,
  body.diy-page:has(.activity-cards) .diy-listing-newsletter {
    margin: 0 24px 36px;
    border-radius: 14px;
  }

  /* ── Toys in Action — full-width (no phone frame) ── */
  html.toys-action-page,
  body.toys-action-page {
    overflow-x: clip;
    max-width: 100%;
    background: #111 !important;
  }

  body.toys-action-page .stage {
    display: block !important;
    padding: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
    background: #111 !important;
  }

  body.toys-action-page .app {
    width: 100%;
    max-width: 100% !important;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
  }

  body.toys-action-page .site-chrome {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 100% !important;
    border-radius: 0 !important;
    flex-shrink: 0;
    z-index: 30;
    background: var(--cream, #fffdf8);
    overflow: visible;
  }

  body.toys-action-page .video-stage {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0;
    border-radius: 0 !important;
    background: #000;
    z-index: 10;
  }

  body.toys-action-page .video-scroll {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  body.toys-action-page .video-page {
    height: 100%;
  }

  body.toys-action-page .video-visual {
    background: #1a1a1a;
  }

  body.toys-action-page .progress-rail {
    padding: 12px 20px 0;
  }

  body.toys-action-page .video-top-controls {
    top: 20px;
    right: 16px;
    gap: 8px;
  }

  body.toys-action-page .video-top-controls .icon-btn,
  body.toys-action-page .video-nav .icon-btn,
  body.toys-action-page .mute-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
    color: #fff;
  }

  body.toys-action-page .video-nav {
    right: 16px;
    gap: 8px;
  }

  body.toys-action-page .mute-btn {
    right: 16px;
    bottom: 120px;
  }

  body.toys-action-page .video-stage.peek-collapsed .mute-btn {
    bottom: 56px;
  }

  body.toys-action-page .peek-toggle-wrap {
    padding: 0 16px 6px;
  }

  body.toys-action-page .peek-toggle-label {
    display: inline;
    font-size: 12px;
  }

  body.toys-action-page .peek-strip {
    max-height: 110px;
    padding: 0 12px 16px;
    gap: 8px;
    align-items: center;
  }

  body.toys-action-page .peek-card {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  }

  body.toys-action-page .peek-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 22px;
    flex-shrink: 0;
  }

  body.toys-action-page .peek-text .name {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }

  body.toys-action-page .peek-text .price {
    font-size: 12px;
    margin-top: 2px;
    font-weight: 700;
  }

  body.toys-action-page .peek-shop-btn {
    display: none;
  }

  body.toys-action-page .peek-arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
    flex-shrink: 0;
  }

  body.toys-action-page .toast {
    bottom: 120px;
    font-size: 13px;
  }

  body.toys-action-page #shareBackdrop,
  body.toys-action-page #optionsBackdrop,
  body.toys-action-page #pdpBackdrop {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    transform: none;
  }

  body.toys-action-page #shareDrawer,
  body.toys-action-page #optionsDrawer {
    position: fixed;
    top: 50%;
    bottom: auto;
    left: 50%;
    width: min(360px, calc(100vw - 32px));
    max-width: 360px;
    border-radius: 16px;
    padding: 20px 22px 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    visibility: hidden;
  }

  body.toys-action-page #shareDrawer.open,
  body.toys-action-page #optionsDrawer.open {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
    visibility: visible;
  }

  body.toys-action-page #shareDrawer .drawer-hetle,
  body.toys-action-page #optionsDrawer .drawer-hetle {
    display: none;
  }

  body.toys-action-page .pdp-drawer {
    position: fixed;
    left: 50%;
    bottom: 0 !important;
    top: auto;
    z-index: 49;
    width: 100%;
    max-width: 100% !important;
    height: 100%;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    transform: translateX(-50%) translateY(100%);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
  }

  body.toys-action-page .pdp-drawer.open {
    transform: translateX(-50%) translateY(0);
  }

  body.toys-action-page .pdp-drawer-chrome {
    border-radius: 0 !important;
    flex-shrink: 0;
  }

  body.toys-action-page .pdp-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.toys-action-page #pdpBackdrop {
    z-index: 48;
  }

  body.toys-action-page .backdrop {
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    top: 0;
    height: 100%;
  }
}
