/* Ti Fweta — ajustements du site en ligne */
.tfm-burger, .tfm-panel { display: none; }

@media (max-width: 760px) {
  /* En-tête compact : logo · compte · panier · menu */
  header > div { padding: 14px 72px 14px 16px !important; gap: 10px !important; flex-wrap: nowrap !important; }
  header > div > a:first-child img { height: 32px !important; }
  header nav[aria-label="Menu principal"] { display: none !important; }
  header nav[aria-label="Menu principal"] + div { gap: 8px !important; margin-left: auto; }
  header nav[aria-label="Menu principal"] + div > a[href="fouets.html"] { display: none !important; }
  header a[href^="login.html"], header a[href^="compte.html"] { font-size: 0 !important; gap: 0 !important; width: 42px; height: 42px; min-height: 42px !important; justify-content: center; border: 1px solid #3A3A3A; border-radius: 50%; box-sizing: border-box; }
  .tfc-btn { width: 42px !important; height: 42px !important; margin-left: 0 !important; }

  .tfm-burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; position: absolute; top: 14px; right: 16px; z-index: 60; width: 42px; height: 42px; padding: 0; background: #D9342B; border: 0; border-radius: 50%; cursor: pointer; }
  .tfm-burger span { display: block; width: 18px; height: 2px; background: #FFFFFF; border-radius: 2px; }
  .tfm-panel:not([hidden]) { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 200; background: #0B0B0B; color: #FFFFFF; padding: 14px 16px 28px; box-sizing: border-box; overflow-y: auto; font-family: Urbanist, "Helvetica Neue", Arial, sans-serif; }
  .tfm-top { display: flex; justify-content: space-between; align-items: center; min-height: 42px; }
  .tfm-home { color: #A3A3A3; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
  .tfm-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #3A3A3A; background: transparent; color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
  .tfm-links { display: flex; flex-direction: column; margin: 28px 0; border-top: 1px solid #262626; }
  .tfm-links a { color: #FFFFFF; text-decoration: none; font-family: "DM Serif Display", Georgia, serif; font-size: 32px; line-height: 1.1; padding: 16px 0; border-bottom: 1px solid #262626; }
  .tfm-links a[aria-current="page"] { color: #D9342B; }
  .tfm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
  .tfm-cta, .tfm-acc { display: block; text-align: center; text-decoration: none; padding: 18px; border-radius: 4px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .tfm-cta { background: #D9342B; color: #FFFFFF; }
  .tfm-acc { border: 1px solid #3A3A3A; color: #FFFFFF; }
  html.tfm-open, html.tfm-open body { overflow: hidden; }

  /* Titres : jamais plus larges que l'écran */
  h1 { font-size: clamp(44px, 13vw, 64px) !important; overflow-wrap: break-word; hyphens: auto; }
  h2 { font-size: clamp(34px, 10vw, 48px) !important; overflow-wrap: break-word; hyphens: auto; }
  main, section, header + div { max-width: 100vw; }
}

@media (max-width: 760px) {
  /* Mises en page en colonnes : une seule colonne sur téléphone */
  [style*="grid-template-columns"]:not([style*="auto-fill"]):not([style*="auto-fit"]):not([style*="repeat(5"]):not([style*="repeat(4"]):not([style*="repeat(3"]):not([style*="70px minmax"]):not([style*="56px minmax"]):not([style*="1.2fr) minmax(0, 1fr) minmax(0, 1fr)"]):not([style*="110px 40px 140px"]):not([data-keep-cols]) { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="grid-template-columns"]:not([style*="auto-fill"]):not([style*="auto-fit"]):not([style*="repeat(5"]):not([style*="repeat(4"]):not([style*="repeat(3"]):not([style*="70px minmax"]):not([style*="56px minmax"]):not([style*="1.2fr) minmax(0, 1fr) minmax(0, 1fr)"]):not([style*="110px 40px 140px"]):not([data-keep-cols]) > [style*="grid-column"]:not([style*="1 / -1"]) { grid-column: auto !important; }
  [style*="minmax(140px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  :root { --gx: 16px; }
  [style*="border-top: 2px solid #D9342B"][style*="display: flex"] { flex-direction: column; }
  dl[style*="min-width: 320px"] { min-width: 0 !important; width: 100%; }
  [style*="padding: 120px"], [style*="padding: 110px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  .tf-toc { position: static !important; }
  [style*="110px 40px 140px"] { grid-template-columns: 44px 18px 60px minmax(0, 1fr) !important; gap: 8px !important; }
  [style*="1.2fr) minmax(0, 1fr) minmax(0, 1fr)"] { gap: 8px !important; }
}