/* Largeur utile : aucun défilement horizontal de la page.
   Bureau : le tableau produits tient dans la carte. Téléphone : lignes en cartes.
   Chargé après les feuilles de page. Jetons existants seulement, aucun style en ligne. */

html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }
.shell, .shell-main, main, .container, .footer, .card, .table-wrap {
  min-width: 0; max-width: 100%;
}
img, video, canvas, iframe, svg.hc, .hc { max-width: 100%; height: auto; }
pre, code, kbd, samp, .mono, .rd-secret, .omn-hash, .conn-secret {
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
pre { white-space: pre-wrap; overflow-x: auto; }
.lp-list { overflow-x: hidden; }
.lp-list a, .lp-list button { overflow-wrap: anywhere; }
p, li, dd, h1, h2, h3, .sub, .hint, .banner span, td, th { overflow-wrap: break-word; }
.callout { flex-wrap: wrap; }
.callout > * { min-width: 0; max-width: 100%; }
.omn-card.callout { flex-direction: column; align-items: stretch; }
.omn-note { max-width: min(72ch, 100%); }
.opp-competitor-picks { overflow-x: hidden; max-width: 100%; }
.opp-competitor-picks .pick-row,
.opp-competitor-picks .check { min-width: 0; max-width: 100%; }
.opp-competitor-picks .check span { overflow-wrap: anywhere; }

/* Lien d'évitement : hors écran vers le haut, pas vers la gauche (ne élargit pas la page). */
.skip-link { left: 12px; top: -80px; }
.skip-link:focus { top: 8px; left: 12px; }

/* Grilles : les colonnes peuvent rétrécir sous la taille du contenu. */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .kpis > *, .features > *,
.pricing > *, .offers > *, .row2 > *, .mock-stats > *, .welcome-grid > *,
.add-form > *, .net-figures > *, .promo-grid > *, .pi-grid > *, .rd-grid > *,
.honest > *, .lg-layout > * { min-width: 0; }

/* ── Navigation publique : menu replié sous 900 px ── */
.pub-menu { display: none; }
.pub-menu > summary { list-style: none; }
.pub-menu > summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
  .nav .container { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .pub-menu { display: block; }
  .pub-menu-panel {
    position: fixed; z-index: 80; top: 60px; left: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 2px;
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px;
  }
  .pub-menu-panel a {
    display: flex; align-items: center; min-height: 44px; padding: 8px 12px;
    border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none;
  }
  .pub-menu-panel a:hover { background: var(--soft); text-decoration: none; }
  .nav-right { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
  .nav-right .btn { white-space: normal; }
}
@media (max-width: 640px) {
  .nav-right { width: 100%; margin-left: 0; }
  .nav-right .btn.sm { flex: 1; }
  .nav-login { display: none; } /* reste dans le menu, le hero et le pied de page */
}

/* ── Offres empilées, formulaires pleine largeur ── */
@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .footer { padding-left: 16px; padding-right: 16px; }
  .pricing, .offers, .features, .grid-2, .grid-3, .grid-4, .row2,
  .add-form, .invite-form, .net-figures, .honest, .lg-layout, .rd-grid, .rd-grid.two,
  .auth-split {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .kpis, .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mock-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .auth, .auth.auth-wide, .checkout, .mw-820 { max-width: none; width: 100%; margin-left: 0; margin-right: 0; box-sizing: border-box; }
  .auth { padding: 20px 16px; }
  input, select, textarea, .search { max-width: 100%; min-width: 0; }
  .add-form, .invite-form, .row2, .p56-product, .omn-form, .promo-form, .u-a7d3bbc3, .u-8d73026a {
    display: flex; flex-direction: column; align-items: stretch;
  }
  .u-5af557a5, .minw-180, .minw-240, .channel-head .check { min-width: 0 !important; }
  .u-8d73026a { flex-wrap: wrap !important; }
  .banner, .page-head, .page-head .actions, .hero-ctas, .mock-head, .toolbar, .modebar {
    max-width: 100%;
  }
  .banner { flex-wrap: wrap; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .btn { max-width: 100%; white-space: normal; }
  .btn.icon { white-space: nowrap; width: 34px; max-width: 34px; }
  .stat .value, .plan .amount, .mock-stat .ml, .hero h1, .section-title, h1, h2 {
    overflow-wrap: anywhere;
  }
  .hero-mock, .mock-url { max-width: 100%; }
  .mock-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pv-lazy { content-visibility: visible; }
  .topbar .logo { min-width: 0; }
  .topbar .logo { overflow: hidden; }
}

/* ── Tableau produits : tient dans la carte (ordinateur portable) ── */
@media (min-width: 901px) {
  #products .products-fit { overflow-x: clip; }
  #ptable {
    table-layout: fixed; width: 100%;
  }
  #ptable col.c-product { width: 24%; }
  #ptable col.c-competitor { width: 13%; }
  #ptable col.c-price { width: 16%; }
  #ptable col.c-old { width: 11%; }
  #ptable col.c-change { width: 11%; }
  #ptable col.c-stock { width: 12%; }
  #ptable col.c-read { width: 13%; }
  .products-fit.has-actions col.c-product { width: 21%; }
  .products-fit.has-actions col.c-competitor { width: 12%; }
  .products-fit.has-actions col.c-price { width: 15%; }
  .products-fit.has-actions col.c-old { width: 10%; }
  .products-fit.has-actions col.c-change { width: 10%; }
  .products-fit.has-actions col.c-stock { width: 11%; }
  .products-fit.has-actions col.c-read { width: 12%; }
  .products-fit.has-actions col.c-actions { width: 9%; }
  #ptable th, #ptable td { padding: 8px 8px; }
  #ptable th {
    white-space: normal; line-height: 1.25; letter-spacing: .03em; vertical-align: bottom;
  }
  #ptable th a.th-sort { white-space: normal; display: inline; }
  #ptable td { overflow: hidden; vertical-align: top; }
  #ptable .num { white-space: normal; }
  #ptable .pname, #ptable .purl {
    display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  #ptable .purl { font-size: 12px; font-weight: 450; color: var(--muted); margin-top: 2px; }
  #ptable a.purl:hover { color: var(--brand); }
  #ptable .chip {
    white-space: normal; max-width: 100%; height: auto; line-height: 1.35;
    overflow-wrap: anywhere; justify-content: center; text-align: center;
  }
  #ptable a.chip.domain {
    display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; vertical-align: bottom;
  }
  #ptable td.price [data-price-state] {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0;
  }
  #ptable .pc-amount, #ptable .old { white-space: nowrap; }
  #ptable .btn:not(.icon) { max-width: 100%; white-space: normal; height: auto; min-height: 32px; }
  #ptable td.num .chip.drop, #ptable td.num .chip.rise, #ptable td.num .chip.flat {
    min-width: 0; width: auto; max-width: 100%;
  }
  #ptable .row-actions { flex-wrap: nowrap; }
  #ptable td.col-actions { overflow: visible; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .is-app .container { padding-left: 16px; padding-right: 16px; }
  #ptable th, #ptable td { padding: 8px 6px; }
  #ptable .price { font-size: 13px; }
  #ptable .row-actions { flex-direction: column; align-items: flex-end; }
  .products-fit.has-actions col.c-actions { width: 46px; }
  .products-fit.has-actions col.c-product { width: 20%; }
}

/* ── Tableau produits : cartes empilées (téléphone et tablette, barre latérale repliée) ── */
@media (max-width: 900px) {
  #products .products-fit { overflow: visible; }
  #ptable, #ptable tbody { display: block; width: 100%; }
  #ptable thead { display: none; }
  #ptable colgroup { display: none; }
  #ptable tr[data-row] {
    display: block; margin: 10px 12px; padding: 4px 14px 8px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  }
  #ptable td {
    display: grid !important;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 8px 10px; align-items: start;
    padding: 9px 0 !important; border: 0; border-bottom: 1px solid var(--line);
    text-align: end; white-space: normal; overflow: visible;
  }
  #ptable td::before {
    content: attr(data-label);
    text-align: start; font-size: 11px; font-weight: 650; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); line-height: 1.3;
  }
  #ptable td.col-product {
    display: block !important; text-align: start; padding-top: 12px !important;
  }
  #ptable td.col-product::before { content: none; }
  #ptable td.col-actions { border-bottom: 0; }
  #ptable .hide-sm, #ptable .hide-md { display: grid !important; }
  #ptable .only-sm-block, #ptable .only-md-block { display: none !important; }
  #ptable .pname {
    max-width: 100%; white-space: nowrap; display: block;
    overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset;
  }
  #ptable .purl {
    display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; font-weight: 450; color: var(--muted); margin-top: 2px;
  }
  #ptable .chip { white-space: normal; max-width: 100%; height: auto; overflow-wrap: anywhere; }
  #ptable td.price [data-price-state] {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0;
  }
  #ptable .num { white-space: normal; text-align: end; }
  #ptable .row-actions { flex-direction: row !important; justify-content: flex-end; gap: 6px; }
  #ptable td:last-child { padding-left: 0 !important; }
}

/* ── Autres tableaux : cartes (libellés posés par app.js) ── */
@media (max-width: 900px) {
  table.pv-cards { display: block; width: 100%; border-collapse: separate; }
  table.pv-cards thead { display: none; }
  table.pv-cards tbody, table.pv-cards tr { display: block; width: 100%; }
  table.pv-cards tr {
    margin: 0 0 10px; padding: 4px 12px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--bg);
  }
  table.pv-cards td {
    display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: 8px; align-items: start;
    padding: 8px 0; border: 0; border-bottom: 1px solid var(--line);
    text-align: end; white-space: normal; min-width: 0;
    overflow-wrap: anywhere;
  }
  table.pv-cards td:last-child { border-bottom: 0; }
  table.pv-cards td::before {
    content: attr(data-label);
    text-align: start; font-size: 11px; font-weight: 650; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
  }
  table.pv-cards td:not([data-label]) { grid-template-columns: minmax(0, 1fr); text-align: start; }
  table.pv-cards td:not([data-label])::before { content: none; }
  table.pv-cards .num, table.pv-cards .old { white-space: normal; }
  .table-wrap { overflow-x: clip; }
  .lg-rights td:first-child { white-space: normal; }
  #ptable .btn:not(.icon) { max-width: 100%; white-space: normal; height: auto; min-height: 32px; }
}

@media (forced-colors: active) {
  #ptable tr[data-row], table.pv-cards tr, .pub-menu-panel { border: 1px solid CanvasText; }
}
