/* =============================================================================
   NOS OFFRES — la page pivot.

   Trois blocs qui n'existent nulle part ailleurs : les cartes de formule, le
   tableau d'exemples à colonne variable, et la grille détaillée des garanties.
   Ils restent donc ici, et pas dans la couche composants.
   ========================================================================== */

/* ------------------------------------------------------------ pastilles --- */

.mpn-pastilles { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.mpn-pastilles li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: 99px;
    background: var(--mpn-surface);
    border: 1px solid var(--mpn-line);
    font-size: .88rem;
    font-weight: 600;
    color: var(--mpn-ink-body);
}
.mpn-pastilles li::before { content: '✓'; color: var(--mpn-bleu); font-weight: 800; }

.mpn-badge--blanc {
    background: var(--mpn-surface);
    border: 1px solid var(--mpn-line);
    color: var(--mpn-ink-body);
    box-shadow: 0 6px 18px -12px rgba(4, 18, 38, .5);
    text-transform: none;
    letter-spacing: 0;
    font-size: .8rem;
}
.mpn-souligne--bleu { color: var(--mpn-bleu); }
.mpn-souligne--bleu::after { background: linear-gradient(90deg, rgba(0, 91, 172, .28), rgba(225, 0, 15, .28)); }

/* -------------------------------------------------- les trois formules --- */

.off-cartes {
    display: grid;
    /* Grille des 3 formules historiques UNIQUEMENT -- gabarit d'origine,
       inchangé. Le Pack Bien-être/Bien-être+ vit dans sa PROPRE grille
       ci-dessous (.off-cartes--bien-etre) : les 5 cartes mélangées dans une
       seule grille `auto-fit` se répartissaient en 4+1 ou 3+2 selon la
       largeur d'écran, jamais proprement -- corrigé le 15/09/2026. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .off-cartes { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------ Pack Bien-être --- */
.off-bien-etre { border-top: 1px solid var(--mpn-line-soft); }
.off-bien-etre__entete {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 22px;
}
.off-cartes--bien-etre {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
}
@media (max-width: 640px) {
    .off-cartes--bien-etre { grid-template-columns: 1fr; }
}
.off-carte {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mpn-line);
    border-radius: var(--mpn-radius-lg);
    padding: 30px 26px 26px;
    background: var(--mpn-surface);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.off-carte:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgba(4, 18, 38, .4); }
.off-carte--prelude { --off-teinte: var(--mpn-prelude); --off-teinte-texte: var(--mpn-prelude-texte); }
.off-carte--primum { --off-teinte: var(--mpn-primum); --off-teinte-texte: var(--mpn-primum-texte); border-color: var(--mpn-primum); }
.off-carte--solidum_plus { --off-teinte: var(--mpn-solidum); --off-teinte-texte: var(--mpn-solidum-texte); }
.off-carte--bien_etre { --off-teinte: var(--mpn-bien-etre); --off-teinte-texte: var(--mpn-bien-etre-texte); }
.off-carte--bien_etre_plus { --off-teinte: var(--mpn-bien-etre-plus); --off-teinte-texte: var(--mpn-bien-etre-plus-texte); }
.off-carte:hover { border-color: var(--off-teinte); }

.off-carte__filet { width: 40px; height: 4px; border-radius: 99px; background: var(--off-teinte); }
.off-carte__sur {
    margin: 1rem 0 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--off-teinte-texte, var(--off-teinte));
}
/* En sombre, le filet prend la variante claire : l'aplat du Pack + y disparaîtrait. */
:root[data-theme='sombre'] .off-carte__filet { background: var(--off-teinte-texte, var(--off-teinte)); }
.off-carte__resume { margin: .5rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--mpn-ink-soft); }
/* Montant et unité restent sur la même ligne : à 106,03 € (07/10/2026), l'unité
   passait seule à la ligne sur mobile. C'est l'unité qui se replie dans sa
   propre boîte (min-width: 0), jamais le groupe. */
.off-carte__prix { display: flex; align-items: baseline; gap: 8px; margin: 1.1rem 0 0; flex-wrap: nowrap; }
.off-carte__prix > .off-carte__unite { min-width: 0; }
.off-carte__montant { font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; }
.off-carte__unite { font-size: .88rem; font-weight: 600; color: var(--mpn-ink-mute); }

/* Pack Bien-être/Bien-être+ : deux paliers d'âge empilés, chacun avec son
   montant + sa tranche -- jamais un montant nu qui laisserait deviner. */
.off-carte__prix--paliers { flex-direction: column; align-items: flex-start; gap: 2px; }
.off-carte__palier { display: flex; align-items: baseline; gap: 6px; }
.off-carte__palier .off-carte__montant { font-size: 1.7rem; }

.off-carte__args {
    display: grid;
    gap: 9px;
    margin: 1.25rem 0 1.6rem;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--mpn-line-soft);
    list-style: none;
}
.off-carte__args li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--mpn-ink-body);
}
.off-carte__args li::before { content: '✓'; flex: 0 0 auto; margin-top: 1px; color: var(--off-teinte-texte, var(--off-teinte)); font-weight: 800; }

/* Le bouton est colle en bas : sans `margin-top:auto`, trois cartes de hauteurs
   differentes donnent trois boutons a trois hauteurs differentes. */
.off-carte__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-top: auto;
    border-radius: 99px;
    border: 1px solid var(--mpn-line-strong);
    background: var(--mpn-surface);
    color: var(--mpn-ink);
    font-size: .95rem;
    font-weight: 600;
    transition: background .25s, border-color .25s, transform .25s;
}
.off-carte__cta:hover { background: var(--mpn-tint); border-color: var(--off-teinte); color: var(--mpn-ink); }
.off-carte--primum .off-carte__cta {
    background: var(--mpn-bleu-plein);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 26px -12px rgba(0, 91, 172, .8);
}
.off-carte--primum .off-carte__cta:hover { background: var(--mpn-bleu-hover); color: #fff; transform: translateY(-2px); }

/* Lien vers la plaquette PDF, sous le bouton de devis (07/10/2026). */
.off-carte__plaquette {
    display: block;
    margin-top: .7rem;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--mpn-bleu);
}
.off-carte__plaquette:hover { text-decoration: underline; }

/* ---- la carte mise en avant ---- */
.off-carte--vedette {
    background: var(--mpn-bloc);
    border-color: var(--mpn-bloc-line);
    color: var(--mpn-bloc-ink);
    padding-top: 34px;
    box-shadow: 0 30px 60px -34px rgba(4, 18, 38, .7);
}
.off-carte--vedette:hover { transform: translateY(-8px); box-shadow: 0 40px 72px -34px rgba(4, 18, 38, .8); }
.off-carte--vedette .off-carte__resume { color: var(--mpn-bloc-ink-soft); }
.off-carte--vedette .off-carte__unite { color: var(--mpn-bloc-ink-mute); }
.off-carte--vedette .off-carte__args { border-top-color: var(--mpn-bloc-line); }
.off-carte--vedette .off-carte__args li { color: var(--mpn-bloc-ink-soft); }
/* Le bouton etait blanc sur navy. Sur un bloc clair il disparaitrait : il
   devient le bouton plein, ce qui va dans les deux themes. */
.off-carte--vedette .off-carte__cta { background: var(--mpn-bleu-plein); border-color: transparent; color: #fff; font-weight: 700; }
.off-carte--vedette .off-carte__cta:hover { transform: translateY(-2px); background: var(--mpn-bleu-hover); color: #fff; }

.off-carte__ruban {
    position: absolute;
    top: -12px;
    left: 26px;
    margin: 0;
    height: 24px;
    padding: 0 11px;
    border-radius: 99px;
    background: var(--mpn-rouge);
    color: #fff;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 8px 18px -10px rgba(225, 0, 15, .9);
}

/* Le lien prend toute la ligne, sans coche. Le selecteur porte `.off-carte__args` : sans lui,
   `.off-carte__args li::before` (plus specifique) gardait la coche, seule au-dessus du lien (11/11/2026). */
.off-carte__args .off-carte__lien-entraide { display: block; padding: 0; }
.off-carte__args .off-carte__lien-entraide::before { content: none; }
.off-carte__lien-entraide a {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 4px;
    padding: 11px 13px;
    border-radius: 12px;
    background: var(--mpn-bloc-voile);
    border: 1px solid var(--mpn-bloc-line);
    font-size: .9rem;
    font-weight: 700;
    color: var(--mpn-bloc-accent);
    transition: background .25s;
}
.off-carte__lien-entraide a:hover { background: var(--mpn-bloc-voile-fort); color: var(--mpn-bloc-accent); }

/* ------------------------------------------------- avantage SOLIDUM PLUS --- */

/* --------------------------------------------------------------- onglets --- */

.off-onglets {
    display: inline-flex;
    gap: 4px;
    margin-top: 1.7rem;
    padding: 4px;
    border-radius: 99px;
    background: var(--mpn-track);
    border: 1px solid var(--mpn-line);
    max-width: 100%;
    overflow-x: auto;
}
.off-onglets--vues { margin-top: 0; background: var(--mpn-surface); }
.off-onglet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 99px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    color: var(--mpn-ink-nav);
    transition: background .25s, color .25s;
}
.off-onglet:hover { color: var(--mpn-ink); }
.off-onglet.est-actif { background: var(--mpn-bleu-plein); color: #fff; }

/* Sans script, les onglets ne servent a rien : on les efface plutot que de
   laisser des boutons morts. */
html:not(.js) .off-onglets { display: none; }

/* --------------------------------------------- exemples de remboursement --- */

.off-exemples { margin-top: 1.4rem; }
.off-table { min-width: 720px; }
.off-table th[scope='row'] { font-weight: inherit; }
.off-exemple__nom { display: block; font-size: .97rem; font-weight: 700; color: var(--mpn-ink); }
.off-exemple__detail { display: block; margin-top: 2px; font-size: .82rem; color: var(--mpn-ink-mute); }
.off-num { text-align: right; white-space: nowrap; }
.off-mpn { color: var(--mpn-bleu); font-weight: 700; }

/* Les trois valeurs sont dans le document ; seule celle de la formule choisie
   s'affiche. C'est ce qui permet a un moteur de recherche de voir les trois. */
.off-val { display: none; }
.off-exemples[data-formule-active='0'] .off-val[data-val='0'],
.off-exemples[data-formule-active='1'] .off-val[data-val='1'],
.off-exemples[data-formule-active='2'] .off-val[data-val='2'] { display: inline-flex; }

.off-rac {
    align-items: center;
    padding: 5px 11px;
    border-radius: 99px;
    font-size: .9rem;
    font-weight: 700;
    background: var(--mpn-alerte-fond);
    color: var(--mpn-alerte-texte);
}
.off-rac--nul { background: var(--mpn-succes-fond); color: var(--mpn-succes-texte); }

/* -------------------------------------------------------- fiches garantie --- */

.off-entete-vues {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.off-vue[hidden] { display: none; }
/* Sans script, les deux vues restent affichees : mieux vaut une page plus
   longue qu'un contenu qu'on ne peut pas atteindre. */
html:not(.js) .off-vue[hidden] { display: block; }

.off-fiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 2rem; }
.off-fiche {
    display: flex;
    flex-direction: column;
    background: var(--mpn-surface);
    border: 1px solid var(--mpn-line);
    border-radius: var(--mpn-radius);
    padding: 24px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.off-fiche:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -28px rgba(4, 18, 38, .4); border-color: var(--mpn-line-hover); }
.off-fiche h3 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; }
.off-fiche__desc { margin: .5rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--mpn-ink-soft); }

.off-niveaux { display: grid; gap: 1px; margin: 1.1rem 0 0; border-radius: 12px; overflow: hidden; background: var(--mpn-line-soft); }
.off-niveau {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    background: var(--mpn-surface);
}
.off-niveau dt {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .66rem;
    letter-spacing: .12em;
    color: var(--mpn-ink-nav);
    white-space: nowrap;
}
.off-niveau dd { margin: 0; font-size: .84rem; font-weight: 700; text-align: right; }
.off-niveau--haut { background: var(--mpn-bloc); }
.off-niveau--haut dt { color: var(--mpn-bloc-accent); }
/* Nom de chaque formule dans sa couleur de plaquette (07/10/2026). */
.off-niveau.off-niveau--prelude dt { color: var(--mpn-prelude-texte); }
.off-niveau.off-niveau--primum dt { color: var(--mpn-primum-texte); }
.off-niveau.off-niveau--solidum_plus dt { color: var(--mpn-solidum-texte); }
.off-niveau.off-niveau--bien_etre dt { color: var(--mpn-bien-etre-texte); }
.off-niveau.off-niveau--bien_etre_plus dt { color: var(--mpn-bien-etre-plus-texte); }
.off-niveau--haut dd { color: var(--mpn-bloc-ink); }

/* Rangées alignées d'une fiche à l'autre (retour de Jordan du 06/10/2026, « lignes décalées ») :
   chaque fiche reprend les rangées de la grille (titre, description, 5 niveaux, exemple), et la liste
   des niveaux reprend celles de la fiche. Une valeur sur deux lignes agrandit donc la même rangée dans
   les fiches voisines, au lieu de décaler tout ce qui suit dans la sienne. */
@supports (grid-template-rows: subgrid) {
    .off-fiche { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; }
    .off-niveaux { grid-row: span 5; grid-template-rows: subgrid; row-gap: 1px; align-self: stretch; }
    .off-fiche__exemple { align-self: start; }
}

.off-fiche__exemple {
    margin: .9rem 0 0;
    padding-top: .9rem;
    border-top: 1px solid var(--mpn-line-soft);
    font-size: .84rem;
    line-height: 1.5;
    color: var(--mpn-ink-nav);
}

/* ----------------------------------------------------- tableau détaillé --- */

.off-detail {
    margin-top: 2rem;
    background: var(--mpn-surface);
    border: 1px solid var(--mpn-line);
    border-radius: var(--mpn-radius-lg);
    overflow: hidden;
    overflow: clip;
}
/* En-tête des formules collant (06/10/2026) : sans lui, plus bas dans les 46 lignes, plus rien ne dit
   quelle colonne est quelle formule. `overflow: clip` (et non hidden) sur le cadre : il rogne les
   coins arrondis sans devenir un conteneur de défilement, sinon l'en-tête ne collerait à rien. */
.off-detail__entete { position: sticky; top: var(--mpn-header-h, 82px); z-index: 3; }
.off-detail__entete {
    display: grid;
    grid-template-columns: 25% 10% 13% 13% 13% 13% 13%;
    background: var(--mpn-bloc);
    color: var(--mpn-bloc-ink);
    font-size: .78rem;
    font-weight: 700;
}
.off-detail__entete > div { padding: 16px 10px; }
.off-detail__entete > div:first-child { padding-left: 20px; }
.off-detail__formule { border-left: 1px solid var(--mpn-bloc-line); text-align: center; }
.off-detail__formule.est-milieu { background: var(--mpn-bloc-voile-fort); }
.off-detail__nom { display: block; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.off-detail__tarif { display: block; font-size: .68rem; font-weight: 600; color: var(--mpn-bloc-ink-mute); }

.off-cat { border-top: 1px solid var(--mpn-line-soft); }
.off-cat summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--mpn-surface);
    transition: background .2s;
    list-style: none;
}
.off-cat summary::-webkit-details-marker { display: none; }
.off-cat[open] summary { background: var(--mpn-surface-blue); }
.off-cat summary:hover { background: var(--mpn-tint); }
.off-cat__fleche {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--mpn-bleu);
    transition: transform .25s;
}
.off-cat[open] .off-cat__fleche { transform: rotate(90deg); }
.off-cat__nom { font-size: 1rem; font-weight: 700; }
.off-cat__compte { margin-left: auto; font-size: .82rem; color: var(--mpn-ink-mute); }

/* `table-layout:fixed` + colonnes en pourcentage : c'est ce qui aligne les six
   tables sous l'en-tete unique, alors que chacune vit dans son propre <details>. */
.off-detail__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.off-detail__table th[scope='row'] {
    padding: 13px 20px;
    font-size: .9rem;
    font-weight: 400;
    text-align: left;
    color: var(--mpn-ink-body);
}
.off-detail__table td { padding: 13px 10px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--mpn-ink-body); border-left: 1px solid var(--mpn-line-soft); }
.off-detail__table tr { border-top: 1px solid var(--mpn-page); }
.off-detail__table tbody tr:nth-child(even) { background: var(--mpn-surface-alt); }
.off-ligne__ss { color: var(--mpn-ink-mute); font-weight: 400; border-left: 0; }
.off-detail__table td.est-milieu { font-weight: 700; color: var(--mpn-bleu); background: var(--mpn-colonne-avant); }
.off-detail__table tbody tr:nth-child(even) td.est-milieu { background: var(--mpn-colonne-avant-alt); }
.off-ligne__haut { color: var(--mpn-ink); }

/* Packs Bien-être dans le comparatif (06/10/2026) : teinte verte et filet plus marqué devant le
   premier Pack, pour lire « 3 formules + 2 Packs » d'un coup d'œil. Aucune césure : un montant
   ou un nom de formule ne se coupe jamais au milieu. */
.off-detail__table td,
.off-detail__table th,
.off-detail__entete > div,
.off-niveau dd { hyphens: none; overflow-wrap: normal; word-break: normal; }
/* Sept colonnes : un montant long (« 50 %, jusqu'à 23 € (1/an) ») passe à la ligne entre deux
   mots ; les espaces insécables du filtre `typo` gardent « 23 € » ou « 100 % » d'un seul tenant. */
.off-detail__table td.off-num { white-space: normal; }
.off-detail__aide { display: none; margin: 1.4rem 0 -1.2rem; font-size: .84rem; color: var(--mpn-ink-mute); }
.off-detail__formule--pack .off-detail__nom { white-space: normal; line-height: 1.25; }
.off-detail__formule--pack { background: rgba(15, 160, 110, .22); }
.off-detail__entete .off-premier-pack { border-left: 2px solid var(--mpn-bien-etre, #0FA06E); }
.off-detail__table td.off-premier-pack { box-shadow: inset 2px 0 0 var(--mpn-bien-etre, #0FA06E); }
.off-detail__table td.off-col-pack { color: var(--mpn-bien-etre-dark, #0B7A54); background: rgba(15, 160, 110, .06); }
.off-detail__table tbody tr:nth-child(even) td.off-col-pack { background: rgba(15, 160, 110, .10); }
.off-niveau--pack dt { color: var(--mpn-bien-etre-dark, #0B7A54); }
.off-niveau--premier-pack { border-top: 2px solid var(--mpn-bien-etre, #0FA06E); }
/* Thème sombre : le vert foncé des Packs devenait illisible sur fond sombre (même correctif que
   bien-etre.css, le vert « succès » clair du thème). */
:root[data-theme='sombre'] .off-detail__table td.off-col-pack,
:root[data-theme='sombre'] .off-niveau--pack dt { color: var(--mpn-succes-texte, #6ADFA0); }

/* ------------------------------------------------------------- responsive --- */

/* Cinq formules (06/10/2026) : sous 1100 px, le tableau détaillé DÉFILE dans son cadre au lieu de
   tasser ses sept colonnes (les noms se chevauchaient à 768 px), et la colonne « Garantie » reste figée
   pendant le défilement. En-tête et tables partagent la même largeur minimale, sinon ils se désalignent. */
@media (max-width: 1100px) {
    .off-detail__aide { display: block; }
    .off-detail { overflow-x: auto; }
    .off-detail__entete,
    .off-detail__table,
    .off-cat { min-width: 960px; }
    /* La ligne de catégorie couvre toute la largeur défilable ; son nom reste à gauche, visible. */
    .off-cat__nom { position: sticky; left: 20px; }
    .off-detail__entete > div { padding-left: 6px; padding-right: 6px; }
    .off-detail__entete > div:first-child,
    .off-detail__table th[scope='row'] { position: sticky; left: 0; z-index: 1; }
    .off-detail__entete > div:first-child { background: var(--mpn-bloc); }
    .off-detail__table th[scope='row'] { background: var(--mpn-surface); box-shadow: 1px 0 0 var(--mpn-line-soft); }
    .off-detail__table tbody tr:nth-child(even) th[scope='row'] { background: var(--mpn-surface-alt); }
}

@media (max-width: 1000px) {
    .off-cartes { grid-template-columns: 1fr; }
    .off-carte--vedette { order: -1; }
    .off-fiches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .off-fiches { grid-template-columns: 1fr; }
    .off-entete-vues { align-items: flex-start; }
    /* Le tableau detaille defile dans son cadre : l'en-tete et les six tables
       partagent la meme largeur minimale, sinon elles se desalignent. */
    .off-detail { overflow-x: auto; }
    .off-detail__entete,
    .off-detail__table,
    .off-cat { min-width: 820px; }
    .off-detail__entete { grid-template-columns: 17% 8% 15% 15% 15% 15% 15%; }
    .off-detail__table col:nth-child(1) { width: 17% !important; }
    .off-detail__table col:nth-child(2) { width: 8% !important; }
    .off-detail__table col:nth-child(n+3) { width: 15% !important; }
    .off-detail__table th[scope='row'] { padding: 12px 10px 12px 14px; font-size: .84rem; }
    .off-detail__entete > div:first-child { padding-left: 14px; }
}

/* Défilement par colonnes ENTIÈRES (06/10/2026) : les largeurs sont des fractions exactes de la zone
   visible du cadre (unités cqw, le cadre est un conteneur), et chaque en-tête de colonne aimante le
   défilement juste à droite de la colonne « Garantie » figée. Aucune position d'arrêt, fin comprise,
   ne laisse une colonne à moitié cachée sous la colonne figée.
   Tablette : « Garantie » 25 % + 3 colonnes de 25 %. Sans cqw, les largeurs minimales ci-dessus restent. */
@supports (width: 1cqw) {
    @media (max-width: 1100px) {
        /* --u = 1 % de la zone VISIBLE du cadre. `cqw` compte la largeur sous la barre de défilement
           verticale (15 px sur un ordinateur) : offres.js mesure cette barre dans --off-barre. */
        .off-detail { container-type: inline-size; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
        .off-detail > * { --u: calc((100cqw - var(--off-barre, 0px)) / 100); }
        /* Le cadre défile aussi en hauteur, à la taille de l'écran sous l'en-tête du site : c'est la
           seule façon de garder l'en-tête des formules collant quand le tableau défile de côté. */
        .off-detail { overflow: auto; max-height: calc(100vh - var(--mpn-header-h, 82px) - 16px); max-height: calc(100svh - var(--mpn-header-h, 82px) - 16px); }
        .off-detail__entete { top: 0; }
        .off-detail__entete > div:first-child { z-index: 4; }
        .off-detail__entete,
        .off-detail__table,
        .off-cat { min-width: 0; width: calc(var(--u) * 175); }
        /* La bordure fusionnée du tableau dépasse de 1 à 2 px : rognée ici (clip, et non hidden, pour
           que la colonne « Garantie » reste collante), sinon la fin du défilement décale tout. */
        .off-cat { overflow: clip; }
        .off-detail__entete { grid-template-columns: repeat(7, calc(var(--u) * 25)); }
        .off-detail__table col { width: calc(var(--u) * 25) !important; }
        /* L aimant est aussi sur les cellules : une fois le cadre defile en hauteur, l en-tete collant
           compte pour sa position d origine, hors de vue, et le navigateur ne l aimante plus. */
        .off-detail__entete > div:not(:first-child),
        .off-detail__table td { scroll-snap-align: start; scroll-margin-left: calc(var(--u) * 25); }
    }
    /* Téléphone : « Garantie » 40 % + 2 colonnes de 30 %. */
    @media (max-width: 700px) {
        .off-detail__entete,
        .off-detail__table,
        .off-cat { min-width: 0; width: calc(var(--u) * 220); }
        .off-detail__entete { grid-template-columns: calc(var(--u) * 40) repeat(6, calc(var(--u) * 30)); }
        .off-detail__table col:nth-child(1) { width: calc(var(--u) * 40) !important; }
        .off-detail__table col:nth-child(n+2) { width: calc(var(--u) * 30) !important; }
        .off-detail__entete > div:not(:first-child),
        .off-detail__table td { scroll-margin-left: calc(var(--u) * 40); }
        .off-detail__nom { white-space: normal; }
        .off-detail__entete > div { padding-left: 4px; padding-right: 4px; }
        .off-detail__table td { padding-left: 5px; padding-right: 5px; font-size: .84rem; }
        .off-detail__table th[scope="row"] { padding-left: 12px; padding-right: 6px; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .off-carte:hover,
    .off-carte--vedette:hover,
    .off-fiche:hover,
    .off-carte__cta:hover { transform: none; }
    .off-cat__fleche { transition: none; }
}
