/* Imagier : feuille de style de Premier gramme. Mobile d'abord. */
@font-face { font-family: 'Bagnard'; src: url('../caracteres/bagnard-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gantari'; src: url('../caracteres/gantari-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gantari'; src: url('../caracteres/gantari-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gantari'; src: url('../caracteres/gantari-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --blanc: #FFFFFF;
  --menthe: #BDE7D2;
  --menthe-pale: #E7F6EE;
  --menthe-fonce: #2F6B52;
  --rose: #F6C1C7;
  --rose-pale: #FDECEE;
  --rose-fonce: #9A3E4A;
  --encre: #22223B;
  --encre-2: #4B4B66;
  --papier: #F6F3EC;
  --filet: #DCD8E4;
  --r: 14px;
  --r-petit: 8px;
  --titre: 'Bagnard', 'Georgia', serif;
  --texte: 'Gantari', 'Segoe UI', system-ui, sans-serif;
  --large: 1180px;
  --colonne: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 17px/1.62 var(--texte); font-feature-settings: 'kern'; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--encre); text-decoration-color: var(--menthe-fonce); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--rose-fonce); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; text-wrap: wrap; margin: 0; }
p, li, dd, figcaption, summary { text-wrap: pretty; }
p { margin: 0 0 1em; }
.sauter { position: absolute; left: -9999px; top: 0; background: var(--encre); color: var(--blanc); padding: 10px 14px; z-index: 50; }
.sauter:focus { left: 12px; top: 12px; }
.bientot { text-decoration: underline dotted var(--encre-2); text-underline-offset: 3px; cursor: help; }

/* Bandeau d'âge et boîte (en-tête) */
.bandeau-age { background: var(--encre); color: var(--blanc); font-size: 13px; line-height: 1.4; }
.bandeau-age p { margin: 0 auto; max-width: var(--large); padding: 7px 16px; }
.bandeau-age strong { display: inline-block; background: var(--rose); color: var(--encre); border-radius: 4px; padding: 0 6px; margin-right: 6px; font-weight: 700; }
.boite { border-bottom: 1.5px solid var(--encre); background: var(--blanc); }
.boite__in { max-width: var(--large); margin: 0 auto; padding: 12px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.blason { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: max-content; }
.blason__cartes { position: relative; width: 38px; height: 46px; flex: none; }
.blason__cartes span { position: absolute; inset: 0; border: 1.5px solid var(--encre); border-radius: 7px; background: var(--menthe); }
.blason__cartes span:nth-child(1) { transform: rotate(-9deg) translate(-3px, 1px); background: var(--rose); }
.blason__cartes span:nth-child(2) { transform: rotate(5deg) translate(3px, 0); background: var(--papier); }
.blason__cartes span:nth-child(3) { display: grid; place-items: center; font: 400 15px/1 var(--titre); background: var(--blanc); }
.blason__cartes sup { font-size: 9px; }
.blason__nom { font: 400 25px/1 var(--titre); }
.blason__sous { display: block; font: 500 12.5px/1.3 var(--texte); color: var(--encre-2); margin-top: 4px; letter-spacing: 0.02em; }
.sommaire-haut { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.sommaire-haut::-webkit-scrollbar { display: none; }
.sommaire-haut__liste { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sommaire-haut__liste a, .sommaire-haut__quiz { display: block; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid transparent; }
.sommaire-haut__liste a:hover { border-color: var(--encre); }
.sommaire-haut__liste .current-menu-item a, .sommaire-haut__liste .current-category-ancestor a { background: var(--menthe-pale); border-color: var(--encre); }
.sommaire-haut__quiz { background: var(--rose); border-color: var(--encre); margin-left: auto; }
.sommaire-haut__quiz:hover { background: var(--rose-pale); }
@media (min-width: 900px) {
  .boite__in { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 16px; }
  .sommaire-haut { margin: 0; padding: 0; overflow: visible; }
}

/* Ouverture (accueil) : texte et tirage */
.table { display: block; }
.accueil-jeu { background: var(--papier); border-bottom: 1.5px solid var(--encre); }
.accueil-jeu__in { max-width: var(--large); margin: 0 auto; padding: 22px 16px 30px; display: grid; gap: 22px; }
.surtitre { font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--menthe-fonce); margin: 0 0 10px; }
.accueil-jeu__titre { font-size: clamp(30px, 5.2vw, 54px); }
.accueil-jeu__chapo { font-size: 18px; color: var(--encre-2); margin: 14px 0 16px; }
.accueil-jeu__signes { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.accueil-jeu__signes li { display: flex; align-items: center; gap: 8px; }
.initiale { display: inline-grid; place-items: center; width: 30px; height: 36px; border: 1.5px solid var(--encre); border-radius: 6px; font: 400 18px/1 var(--titre); background: var(--menthe); flex: none; }
.initiale[data-pg-teinte="rose"], [data-pg-teinte="rose"] > .initiale { background: var(--rose); }
.initiale--grande { width: 56px; height: 68px; font-size: 32px; border-radius: 10px; }
/* Mobile : le titre, puis le quiz tout de suite (au-dessus du pli), puis le chapô. */
@media (max-width: 899px) {
  .accueil-jeu__in { gap: 14px; padding-top: 16px; }
  .accueil-jeu__texte { display: contents; }
  .surtitre { order: 1; margin: 0; }
  .accueil-jeu__titre { order: 2; font-size: clamp(28px, 8vw, 40px); max-width: none; }
  .accueil-jeu__jeu { order: 3; }
  .accueil-jeu__chapo { order: 4; margin: 6px 0 0; font-size: 17px; }
  .accueil-jeu__signes { order: 5; }
  .tirage__titre { font-size: 20px; }
  .tirage__consigne { display: none; }
  .tirage__carte, .tirage__issue { padding: 14px 14px 12px; }
  .tirage__q { font-size: 20px; margin-bottom: 10px; }
  .tirage__choix label { padding: 9px 12px; }
  .bandeau-age__long { display: none; }
}
@media (min-width: 900px) {
  .accueil-jeu__in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 48px; padding: 44px 16px 52px; }
}

/* Tirage (quiz) */
.tirage { position: relative; }
.tirage__tete { margin-bottom: 12px; }
.tirage__titre { font-size: 24px; }
.tirage__consigne { font-size: 14.5px; color: var(--encre-2); margin: 4px 0 0; }
.tirage__paquet { position: relative; margin: 0; }
.tirage__carte, .tirage__issue { border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--blanc); padding: 18px 18px 16px; margin: 0 0 12px; min-width: 0; }
.tirage__carte legend { padding: 0; display: block; width: 100%; float: left; }
.tirage__carte legend + * { clear: both; }
.tirage__num { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; background: var(--menthe); border: 1.5px solid var(--encre); border-radius: 999px; padding: 1px 10px; margin: 0 0 10px; }
.tirage__q { display: block; font: 400 22px/1.2 var(--titre); margin-bottom: 14px; }
.tirage__choix { display: grid; gap: 8px; }
.tirage__choix label { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--filet); border-radius: 10px; cursor: pointer; font-weight: 500; line-height: 1.3; transition: border-color .15s, background .15s; }
.tirage__choix label:hover { border-color: var(--encre); }
.tirage__choix input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--encre); border-radius: 5px; margin: 0; flex: none; display: grid; place-items: center; }
.tirage__choix input:checked { background: var(--encre); box-shadow: inset 0 0 0 3px var(--blanc); }
.tirage__choix label:has(input:checked) { background: var(--menthe-pale); border-color: var(--encre); }
.tirage__retour, .tirage__rejouer { margin-top: 12px; background: none; border: 0; padding: 4px 0; font: 600 14px var(--texte); color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tirage__issue { background: var(--rose-pale); }
.tirage__pourquoi { font-size: 16px; }
.tirage__aller { display: block; font: 400 24px/1.18 var(--titre); padding: 14px 16px; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 10px; text-decoration: none; margin: 4px 0 14px; }
.tirage__aller::after { content: ' →'; }
.tirage__aller:hover { background: var(--menthe-pale); }
.tirage__aussi-titre { font-size: 13px; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 4px; }
.tirage__aussi { margin: 0; padding-left: 18px; }
.tirage__aussi li { margin: 3px 0; }
.tirage__sans-js { font-size: 15px; }
/* Avec JavaScript, les cartes se superposent en paquet. */
.tirage--actif .tirage__paquet { display: grid; margin-right: 12px; }
.tirage--actif .tirage__carte, .tirage--actif .tirage__issue { grid-area: 1 / 1; align-self: start; margin: 0; transition: transform .32s cubic-bezier(.2,.7,.3,1), opacity .25s; }
.tirage--actif .tirage__carte[data-pg-attente] { visibility: hidden; }
.tirage--actif .tirage__carte[data-pg-attente]:nth-of-type(2), .tirage--actif .tirage__carte[data-pg-dessus] + .tirage__carte[data-pg-attente] { visibility: visible; transform: rotate(2.2deg) translate(7px, 6px); background: var(--menthe); z-index: 1; }
.tirage--actif .tirage__carte[data-pg-dessus] + .tirage__carte[data-pg-attente] + .tirage__carte[data-pg-attente] { visibility: visible; transform: rotate(-1.8deg) translate(-6px, 9px); background: var(--rose); z-index: 0; }
.tirage--actif .tirage__carte[data-pg-attente] > * { opacity: 0; }
.tirage--actif .tirage__carte[data-pg-dessus] { z-index: 3; }
.tirage--actif .tirage__carte[data-pg-jouee] { opacity: 0; transform: translate(-40px, -6px) rotate(-6deg); pointer-events: none; z-index: 2; }
.tirage--actif .tirage__issue { z-index: 4; }
.tirage--actif .tirage__issue[hidden] { display: none; }
.tirage--actif[data-pg-fini] .tirage__carte { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .tirage--actif .tirage__carte, .tirage--actif .tirage__issue { transition: none; } }

/* Rangées de l'accueil */
.rangee { max-width: var(--large); margin: 0 auto; padding: 40px 16px 8px; }
.rangee__tete { margin-bottom: 18px; }
.rangee__tete h2 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 8px; }
.rangee__tete p { color: var(--encre-2); margin: 0; }
.rangee__suite { margin-top: 16px; font-weight: 600; }
.rangee__suite a::after { content: ' →'; }

/* Cartes de mots (recto le mot, verso l'explication) */
.paquet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.mot { position: relative; border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--blanc); min-height: 150px; }
.paquet .mot:nth-child(4n+1) .mot__recto { background: var(--menthe-pale); }
.paquet .mot:nth-child(4n+2) .mot__recto { background: var(--rose-pale); }
.paquet .mot:nth-child(4n+3) .mot__recto { background: var(--papier); }
.mot__recto { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; min-height: 150px; padding: 12px 14px 12px; border-radius: calc(var(--r) - 1.5px); }
.mot__recto:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.mot__genre { font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--encre-2); }
.mot__terme { font: 400 clamp(22px, 5.4vw, 28px)/1.1 var(--titre); overflow-wrap: anywhere; }
.mot__retourner { font-size: 12.5px; font-weight: 600; color: var(--encre-2); align-self: flex-end; }
.mot__retourner::after { content: ' ↻'; }
.mot__verso { padding: 12px 14px 14px; font-size: 15px; line-height: 1.5; border-top: 1.5px dashed var(--encre); }
.mot__verso p:last-child { margin-bottom: 0; }
.mot__rappel { display: none; }
.js .mot__verso { display: none; }
.js .mot--retourne .mot__recto { display: none; }
.js .mot--retourne .mot__verso { display: block; border-top: 0; background: var(--blanc); border-radius: var(--r); min-height: 150px; cursor: pointer; }
.js .mot--retourne .mot__rappel { display: block; font: 400 19px/1.1 var(--titre); margin-bottom: 6px; }
@media (min-width: 640px) { .paquet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .paquet--accueil { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Piles (rubriques) en papiers pastel empilés */
.piles { display: grid; gap: 26px; }
.pile { --pile-teinte: var(--menthe); position: relative; border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--blanc); padding: 18px 18px 14px; margin: 0 12px 12px 0; box-shadow: 6px 6px 0 -1.5px var(--pile-teinte), 6px 6px 0 0 var(--encre), 12px 12px 0 -1.5px var(--blanc), 12px 12px 0 0 var(--encre); }
.pile[data-pg-teinte="rose"] { --pile-teinte: var(--rose); }
.pile[data-pg-teinte="papier"] { --pile-teinte: var(--papier); }
.pile[data-pg-teinte="aubergine"] { --pile-teinte: var(--encre); }
.pile__rang { font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--encre-2); margin: 0 0 6px; }
.pile__nom { font-size: 28px; margin-bottom: 6px; }
.pile__nom a { text-decoration: none; }
.pile__nom a:hover { text-decoration: underline; }
.pile__accroche { color: var(--encre-2); font-size: 15.5px; }
.pile__cartes { margin: 0; padding: 0; list-style: none; counter-reset: c; border-top: 1.5px solid var(--encre); }
.pile__cartes li { counter-increment: c; border-bottom: 1px solid var(--filet); }
.pile__cartes li:last-child { border-bottom: 0; }
.pile__cartes a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 0; text-decoration: none; font-weight: 500; line-height: 1.35; }
.pile__cartes a::before { content: counter(c); font: 400 17px/1.2 var(--titre); color: var(--menthe-fonce); }
.pile__cartes a:hover { text-decoration: underline; }
@media (min-width: 760px) { .piles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 34px; } }

/* Kit : cartes produit */
.assortiment { margin: 22px 0; }
.assortiment__pub { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; border: 1.5px solid var(--encre); border-radius: 999px; padding: 1px 10px; margin: 0 0 10px; background: var(--rose-pale); }
.assortiment__titre { font: 400 21px/1.2 var(--titre); margin: 0 0 12px; }
.assortiment__rang { display: grid; gap: 14px; }
.assortiment__mention { font-size: 13.5px; color: var(--encre-2); margin: 12px 0 0; }
.sachet { border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--blanc); overflow: hidden; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.sachet__photo { position: relative; background: var(--papier); border-right: 1.5px solid var(--encre); display: grid; place-items: center; }
.sachet__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; mix-blend-mode: multiply; }
.sachet__sorte { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.01em; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 999px; padding: 0 8px; }
.sachet__dos { padding: 12px 14px 14px; display: flex; flex-direction: column; min-width: 0; }
.sachet__chez { font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--menthe-fonce); margin: 0 0 2px; }
.sachet__nom { font: 400 19px/1.2 var(--titre); margin: 0 0 6px; }
.sachet__taux { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 6px; }
.sachet__taux span { font-size: 12.5px; font-weight: 600; background: var(--menthe-pale); border-radius: 5px; padding: 1px 7px; }
.sachet__contenu { font-size: 14px; margin: 0 0 6px; }
.sachet__prix { margin: 0 0 4px; font-size: 15px; }
.sachet__prix strong { font: 700 21px/1.1 var(--texte); }
.sachet__prix span { display: block; font-size: 13.5px; color: var(--encre-2); }
.sachet__note { font-size: 13.5px; color: var(--encre-2); margin: 2px 0 6px; }
.sachet__date { font-size: 12.5px; color: var(--encre-2); margin: auto 0 10px; }
.sachet__aller { display: block; text-align: center; align-self: stretch; font-weight: 700; font-size: 14.5px; text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--encre); border-radius: 999px; background: var(--menthe); }
.sachet__aller:hover { background: var(--blanc); }
/* Jamais de case vide : la grille suit le nombre de cartes (1 = bandeau, 2 et 4 = deux colonnes, 3 et 6 = trois, 5 = 3 + 2). */
@media (min-width: 640px) {
  .assortiment__rang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assortiment__rang[data-pg-n="1"] { grid-template-columns: 1fr; }
  .assortiment__rang:not([data-pg-n="1"]) .sachet { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .assortiment__rang:not([data-pg-n="1"]) .sachet__photo { border-right: 0; border-bottom: 1.5px solid var(--encre); }
  .assortiment__rang:not([data-pg-n="1"]) .sachet__photo img { aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; }
  .assortiment__rang[data-pg-n="1"] .sachet { grid-template-columns: 240px minmax(0, 1fr); }
  .assortiment__rang[data-pg-n="1"] .sachet__photo img { object-fit: contain; padding: 12px; }
  .assortiment__rang[data-pg-n="3"] .sachet:last-child, .assortiment__rang[data-pg-n="5"] .sachet:last-child { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .assortiment__rang[data-pg-n="3"], .assortiment__rang[data-pg-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .assortiment__rang[data-pg-n="3"] .sachet:last-child { grid-column: auto; }
  .assortiment__rang[data-pg-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .assortiment__rang[data-pg-n="5"] .sachet { grid-column: span 2; }
  .assortiment__rang[data-pg-n="5"] .sachet:nth-child(n+4) { grid-column: span 3; }
}

/* Ce qui n'est pas dans le paquet */
.refus { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.refus__carte { position: relative; border: 1.5px dashed var(--encre); border-radius: var(--r); padding: 16px 16px 12px; background: var(--blanc); overflow: hidden; }
.refus__carte::after { content: ''; position: absolute; right: -24px; top: 14px; width: 110px; height: 22px; background: var(--rose); transform: rotate(35deg); border-block: 1.5px solid var(--encre); }
.refus__titre { font: 400 21px/1.2 var(--titre); margin: 0 0 6px; padding-right: 54px; }
.refus__carte p { font-size: 15px; }
.refus__ref { font-size: 13px; color: var(--encre-2); margin: 0; }
@media (min-width: 760px) { .refus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .refus { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Questions (accueil, piles, articles) */
.interro, [data-pg="questions"] { display: grid; gap: 10px; }
.interro details, [data-pg="questions"] details { border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--blanc); }
.interro summary, [data-pg="questions"] summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 16px; font-weight: 650; line-height: 1.35; position: relative; }
.interro summary::-webkit-details-marker, [data-pg="questions"] summary::-webkit-details-marker { display: none; }
.interro summary::after, [data-pg="questions"] summary::after { content: '?'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 30px; border: 1.5px solid var(--encre); border-radius: 6px; display: grid; place-items: center; font: 400 17px/1 var(--titre); background: var(--menthe); }
.interro details[open] summary::after, [data-pg="questions"] details[open] summary::after { content: '!'; background: var(--rose); }
.interro details > div, [data-pg="questions"] details > div { padding: 0 16px 14px; border-top: 1px dashed var(--filet); padding-top: 12px; }
.interro details > div p:last-child, [data-pg="questions"] details > div p:last-child { margin-bottom: 0; }
.sources-plie { border-top: 1.5px solid var(--encre); padding-top: 10px; font-size: 14px; color: var(--encre-2); }
.sources-plie summary { cursor: pointer; font-weight: 600; }
.sources-plie ul { margin: 8px 0 0; padding-left: 18px; }

/* Dos de la boîte (pied) */
.revers { margin-top: 56px; background: var(--encre); color: var(--blanc); }
.revers a { color: var(--blanc); text-decoration-color: var(--menthe); }
.revers__in { max-width: var(--large); margin: 0 auto; padding: 34px 16px 30px; display: grid; gap: 26px; }
.revers__nom { font: 400 28px/1 var(--titre); margin-bottom: 10px; }
.revers__contenu, .revers__regle { font-size: 15px; color: #D9D8E6; }
.revers__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: 15px; }
.revers__legal { font-size: 13.5px; color: #C9C8DA; border-top: 1px solid #47476A; padding-top: 14px; }
.revers__legal p { margin: 0 0 6px; }
.revers__age { display: inline-block; background: var(--rose); color: var(--encre); border-radius: 4px; padding: 0 6px; font-weight: 700; margin-right: 4px; }
@media (min-width: 900px) { .revers__in { grid-template-columns: 1.2fr 1fr; } .revers__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; } }

/* Article .partie) */
.partie { max-width: calc(var(--colonne) + 32px); margin: 0 auto; padding: 0 16px; }
.partie__tete { padding: 18px 0 18px; }
.piste { font-size: 13.5px; color: var(--encre-2); margin-bottom: 14px; }
.piste a { color: var(--encre-2); }
.onglet { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; padding: 3px 12px 3px; border: 1.5px solid var(--encre); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--menthe); margin: 0 0 -1px; position: relative; }
[data-pg-teinte="rose"] .onglet { background: var(--rose); }
[data-pg-teinte="papier"] .onglet { background: var(--papier); }
[data-pg-teinte="aubergine"] .onglet { background: var(--encre); color: var(--blanc); }
.partie__titre { font-size: clamp(30px, 6.6vw, 50px); border-top: 1.5px solid var(--encre); padding-top: 14px; }
.partie__chapo { font-size: 19px; line-height: 1.5; color: var(--encre-2); margin: 14px 0 14px; }
.partie__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--encre-2); }
.partie__meta .initiale { width: 26px; height: 32px; font-size: 16px; }
.partie__meta > span:not(.initiale) + span::before { content: ''; }
.avis-pub { margin: 16px 0 0; font-size: 14px; background: var(--rose-pale); border: 1.5px solid var(--encre); border-radius: 10px; padding: 10px 14px; }
.partie__une { margin: 6px 0 26px; }
.partie__une img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1.5px solid var(--encre); border-radius: var(--r); }
.partie__une figcaption { font-size: 12.5px; color: var(--encre-2); margin-top: 6px; }
.partie__corps { max-width: none; }
.partie__corps > p, .partie__corps li { font-size: 18px; line-height: 1.66; }
.partie__corps h2 { font-size: clamp(25px, 5vw, 32px); margin: 46px 0 14px; display: flex; align-items: flex-start; gap: 12px; scroll-margin-top: 20px; }
.angle { flex: none; display: inline-grid; place-items: center; width: 34px; height: 42px; margin-top: -3px; border: 1.5px solid var(--encre); border-radius: 7px; font: 400 19px/1 var(--titre); background: var(--menthe); }
[data-pg-teinte="rose"] .angle { background: var(--rose); }
[data-pg-teinte="papier"] .angle { background: var(--papier); }
[data-pg-teinte="aubergine"] .angle { background: var(--encre); color: var(--blanc); }
.partie__corps h3 { font: 700 20px/1.3 var(--texte); margin: 28px 0 8px; }
.partie__corps ul, .partie__corps ol { padding-left: 22px; margin: 0 0 1.1em; }
.partie__corps li { margin: 4px 0; }
.partie__corps li::marker { color: var(--menthe-fonce); font-weight: 700; }
.partie__corps strong { font-weight: 700; }
.tablier { overflow-x: auto; margin: 18px 0 24px; border: 1.5px solid var(--encre); border-radius: var(--r); }
.tablier table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; line-height: 1.45; }
.tablier th, .tablier td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--filet); }
.tablier thead th { background: var(--menthe-pale); border-bottom: 1.5px solid var(--encre); font-weight: 700; }
.tablier tr:last-child td { border-bottom: 0; }

/* Recto / verso (ouverture d'article) */
.rv { display: grid; border: 1.5px solid var(--encre); border-radius: var(--r); overflow: hidden; margin: 0 0 26px; }
.rv__recto { background: var(--menthe); padding: 16px 18px; border-bottom: 1.5px dashed var(--encre); }
[data-pg-teinte="rose"] .rv__recto { background: var(--rose); }
[data-pg-teinte="papier"] .rv__recto { background: var(--papier); }
.rv__recto p { font: 400 23px/1.2 var(--titre); margin: 0; }
.rv__verso { background: var(--blanc); padding: 14px 18px 6px; }
.rv__coin { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--encre-2); margin-bottom: 6px; }
.rv__verso ul { margin: 0 0 10px; padding-left: 20px; }
.rv__verso li { font-size: 16.5px; line-height: 1.5; margin: 5px 0; }
@media (min-width: 760px) { .rv { grid-template-columns: 0.9fr 1.3fr; } .rv__recto { border-bottom: 0; border-right: 1.5px dashed var(--encre); } }

/* Texte officiel, conseil, vignette */
.officiel { margin: 24px 0; padding: 16px 18px 14px; border-radius: var(--r); background: var(--papier); border: 1.5px solid var(--encre); }
.officiel__tampon { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; border: 1.5px solid var(--menthe-fonce); color: var(--menthe-fonce); border-radius: 5px; padding: 0 7px; transform: rotate(-2deg); margin: 0 0 8px; }
.officiel blockquote { margin: 0 0 8px; font-size: 17px; line-height: 1.55; }
.officiel figcaption { font-size: 13.5px; color: var(--encre-2); }
.conseil { margin: 24px 0; padding: 14px 16px; border-radius: var(--r); background: var(--rose-pale); border: 1.5px solid var(--encre); }
.conseil p { margin: 0; font-size: 16px; }
.illustre { margin: 28px 0; }
.illustre img { width: auto; max-width: 100%; max-height: 460px; margin-inline: auto; border-radius: var(--r); border: 1.5px solid var(--encre); }
.illustre figcaption { font-size: 14.5px; color: var(--encre-2); margin-top: 8px; line-height: 1.45; }
.illustre__credit { display: block; font-size: 12px; margin-top: 2px; }
.partie__corps .paquet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .partie__corps .paquet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Questions et sources en fin d'article */
[data-pg="questions"], [data-pg="sources"] { margin-top: 40px; }
[data-pg="questions"] h2, [data-pg="sources"] h2 { margin-bottom: 8px; }
[data-pg="sources"] ul { padding-left: 20px; }
[data-pg="sources"] li { font-size: 15px !important; color: var(--encre-2); }

/* Signature et même pile */
.carte-signature { display: flex; gap: 16px; align-items: flex-start; margin: 40px 0 0; padding: 18px; border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--menthe-pale); }
.carte-signature[data-pg-teinte="rose"] { background: var(--rose-pale); }
.carte-signature[data-pg-teinte="rose"] .initiale { background: var(--rose); }
.carte-signature p { font-size: 15.5px; margin: 0 0 6px; }
.carte-signature__nom { font: 400 21px/1.2 var(--titre) !important; }
.carte-signature--tete { margin: 18px 0 26px; }
.meme-pile { max-width: var(--large); margin: 0 auto; padding: 40px 16px 0; }
.meme-pile h2 { font-size: 28px; margin-bottom: 14px; }
.meme-pile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meme-pile a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1.5px solid var(--encre); border-radius: var(--r); text-decoration: none; background: var(--blanc); }
.meme-pile a:hover { background: var(--papier); }
.meme-pile__coin { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--menthe-fonce); }
.meme-pile__titre { font: 400 21px/1.2 var(--titre); }
.meme-pile__chapo { font-size: 15px; color: var(--encre-2); }
@media (min-width: 760px) { .meme-pile ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Pioche : format C, petit paquet flottant en bas à droite */
.pioche { position: fixed; right: 14px; bottom: 14px; z-index: 30; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.pioche[data-pg-visible] { opacity: 1; transform: none; pointer-events: auto; }
.pioche__paquet { position: relative; width: 66px; height: 80px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--encre); }
.pioche_.revers, .pioche__face { position: absolute; inset: 0; border: 1.5px solid var(--encre); border-radius: 9px; }
.pioche_.revers:nth-child(1) { background: var(--rose); transform: rotate(-8deg) translate(-4px, 2px); }
.pioche_.revers:nth-child(2) { background: var(--menthe); transform: rotate(5deg) translate(3px, 1px); }
.pioche__face { background: var(--blanc); display: grid; place-content: center; text-align: center; line-height: 1; }
.pioche__lib { font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em; display: block; margin-bottom: 3px; }
.pioche__n { font: 400 26px/1 var(--titre); }
.pioche__sur { font-size: 13px; color: var(--encre-2); }
.pioche__paquet:hover .pioche__face, .pioche__paquet[aria-expanded="true"] .pioche__face { background: var(--menthe-pale); }
.pioche__etal { position: absolute; right: 0; bottom: 92px; width: min(340px, calc(100vw - 28px)); max-height: min(70vh, 520px); overflow-y: auto; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: var(--r); padding: 14px 12px 10px; box-shadow: 0 10px 30px rgba(34, 34, 59, .16); }
.pioche__titre { font: 400 19px/1.2 var(--titre); margin: 0 4px 10px; }
.pioche__etal ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pioche__etal a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 8px; border: 1.5px solid var(--filet); border-radius: 9px; text-decoration: none; font-size: 15px; line-height: 1.3; font-weight: 500; }
.pioche__etal a span { display: grid; place-items: center; width: 26px; height: 30px; border: 1.5px solid var(--encre); border-radius: 5px; font: 400 15px/1 var(--titre); background: var(--papier); }
.pioche__etal a[aria-current] { border-color: var(--encre); background: var(--menthe-pale); }
.pioche__etal a[aria-current] span { background: var(--menthe); }
@media (min-width: 1100px) { .pioche { right: 28px; bottom: 28px; } .pioche__paquet { width: 76px; height: 92px; } .pioche__etal { bottom: 104px; } }
@media print { .pioche { display: none; } }

/* Pages .carton) */
.carton { max-width: 992px; margin: 0 auto; padding: 0 16px; }
.carton__tete { padding: 18px 0 10px; }
.carton__titre { font-size: clamp(30px, 6.4vw, 48px); }
.carton__chapo { font-size: 19px; color: var(--encre-2); margin: 12px 0 8px; }
.carton__date { font-size: 13.5px; color: var(--encre-2); }
.carton__corps { max-width: none; }
.carton__corps > p, .carton__corps li { font-size: 17.5px; line-height: 1.65; }
.carton__corps h2 { font-size: clamp(24px, 4.6vw, 30px); margin: 38px 0 12px; display: flex; gap: 12px; align-items: flex-start; }
.carton__corps h3 { font: 700 19px/1.3 var(--texte); margin: 24px 0 8px; }
.carton--jeu .carton__corps .tirage { margin: 10px 0 30px; }
@media (min-width: 760px) { .carton--jeu .tirage__choix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.carton--perdu { min-height: 50vh; display: grid; place-items: center; }
.perdu { border: 1.5px solid var(--encre); border-radius: var(--r); padding: 26px; max-width: 520px; background: var(--rose-pale); margin: 30px 0; }
.perdu__coin { font: 400 42px/1 var(--titre); margin-bottom: 8px; }
.jeton { display: inline-block; font-weight: 700; text-decoration: none; padding: 10px 18px; border: 1.5px solid var(--encre); border-radius: 999px; background: var(--menthe); }

/* Pile (page d'entrée d'une rubrique) : bandeau photo, bloc titre qui le chevauche, tout le reste au même bord. */
.pile-tete { position: relative; background: var(--menthe-pale); border-bottom: 1.5px solid var(--encre); }
.pile-tete[data-pg-teinte="rose"] { background: var(--rose-pale); }
.pile-tete[data-pg-teinte="papier"] { background: var(--papier); }
.pile-tete[data-pg-teinte="aubergine"] { background: #E4E3EC; }
.pile-tete__bandeau { margin: 0; position: relative; }
.pile-tete__bandeau img { width: 100%; height: clamp(200px, 34vw, 400px); object-fit: cover; border-bottom: 1.5px solid var(--encre); }
.pile-tete__bandeau figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 11.5px; color: var(--blanc); background: rgba(34, 34, 59, .7); padding: 2px 8px; border-radius: 6px; }
.pile-tete__in { max-width: var(--large); margin: 0 auto; padding: 0 16px 26px; }
.pile-tete__carte { position: relative; margin-top: -64px; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: var(--r); padding: 16px 18px 18px; }
.pile-tete__rang { font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--encre-2); margin: 0 0 8px; }
.pile-tete__titre { font-size: clamp(30px, 5.2vw, 52px); }
.pile-tete__chapo { font-size: 18.5px; color: var(--encre-2); margin: 12px 0 0; }
.reperes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.reperes li { border: 1.5px solid var(--encre); border-radius: 10px; background: var(--blanc); padding: 10px 14px; display: flex; gap: 12px; align-items: baseline; }
.reperes strong { font: 400 26px/1 var(--titre); white-space: nowrap; }
.reperes span { font-size: 14.5px; line-height: 1.4; }
@media (min-width: 760px) { .reperes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .reperes li { flex-direction: column; gap: 6px; } .pile-tete__carte { margin-top: -110px; padding: 22px 26px 24px; } }
.pile-page { max-width: var(--large); margin: 0 auto; padding: 0 16px; }
.pile-page > section, .pile-page > .a-venir { margin-top: 38px; }
.pile-page h2 { font-size: clamp(24px, 4.4vw, 32px); margin: 0 0 14px; }
.pile-mot { border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--menthe-pale); padding: 18px 20px; }
.pile-mot[data-pg-teinte="rose"] { background: var(--rose-pale); }
.pile-mot[data-pg-teinte="rose"] .initiale { background: var(--rose); }
.pile-mot__qui { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0 0 10px; }
.pile-mot__texte p { font-size: 17.5px; line-height: 1.65; }
.pile-mot__note { margin: 4px 0 0; padding: 10px 14px; background: var(--blanc); border: 1.5px dashed var(--encre); border-radius: 10px; font-size: 15.5px; }
.pile-vedette a { display: grid; text-decoration: none; border: 1.5px solid var(--encre); border-radius: var(--r); overflow: hidden; background: var(--blanc); }
.pile-vedette a:hover { background: var(--papier); }
.pile-vedette__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pile-vedette__texte { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; }
.pile-vedette__coin { align-self: flex-start; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--encre); border-radius: 999px; padding: 1px 10px; background: var(--menthe); }
.pile-vedette__titre { font: 400 clamp(24px, 3.6vw, 34px)/1.12 var(--titre); }
.pile-vedette__chapo { font-size: 17px; color: var(--encre-2); }
.pile-vedette__aller { font-weight: 700; text-decoration: underline; text-decoration-color: var(--menthe-fonce); text-underline-offset: 3px; }
@media (min-width: 900px) { .pile-vedette a { grid-template-columns: 1.15fr 1fr; } .pile-vedette__photo img { height: 100%; aspect-ratio: auto; min-height: 340px; border-right: 1.5px solid var(--encre); } .pile-vedette__texte { justify-content: center; padding: 28px; } }
.tapis { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tapis__carte a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; border: 1.5px solid var(--encre); border-radius: var(--r); padding: 12px 12px 16px; background: var(--blanc); }
.tapis__carte a:hover { background: var(--papier); }
.tapis__num { position: absolute; left: 20px; top: 20px; z-index: 1; display: grid; place-items: center; width: 32px; height: 38px; border: 1.5px solid var(--encre); border-radius: 7px; background: var(--blanc); font: 400 18px/1 var(--titre); }
.tapis__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; }
.tapis__titre { font: 400 22px/1.18 var(--titre); padding: 0 4px; }
.tapis__chapo { font-size: 15px; color: var(--encre-2); padding: 0 4px; }
.tapis--liste .tapis__num { position: static; }
@media (min-width: 700px) { .tapis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tapis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tapis:has(> li:nth-child(2):last-child), .tapis:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a-venir { border: 1.5px dashed var(--encre); border-radius: var(--r); padding: 14px 16px; }
.a-venir__titre { font-weight: 700; margin: 0 0 6px; }
.a-venir ul { margin: 0; padding-left: 18px; }
.a-venir li span { color: var(--encre-2); font-size: 14.5px; }
.pile-utile { border-top: 1.5px solid var(--encre); padding-top: 26px; }
.pile-utile__suite { margin: 14px 0 0; font-weight: 600; }
.pile-utile__suite a::after { content: " →"; }
.pile-utile__mention { font-size: 13.5px; color: var(--encre-2); margin: 8px 0 0; }
.paquet--pile { margin: 0; }
@media (min-width: 1000px) { .paquet--pile { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reflexes { margin: 0; display: grid; gap: 10px; }
.reflexes > div { display: grid; gap: 4px; border: 1.5px solid var(--encre); border-radius: 10px; padding: 12px 16px; background: var(--blanc); }
.reflexes dt { font: 400 22px/1.15 var(--titre); }
.reflexes dd { margin: 0; font-size: 16px; }
@media (min-width: 760px) { .reflexes > div { grid-template-columns: 260px 1fr; align-items: baseline; gap: 16px; } }
.pile-guide h2 { margin-top: 30px; }
.pile-guide p, .pile-guide li { font-size: 17.5px; line-height: 1.65; }
.pile-sources ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--encre-2); }
.pile-sources li { margin: 4px 0; }
.autres-piles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.autres-piles a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px 12px 16px; border: 1.5px solid var(--encre); border-radius: var(--r); text-decoration: none; background: var(--menthe-pale); }
.autres-piles li[data-pg-teinte="rose"] a { background: var(--rose-pale); }
.autres-piles li[data-pg-teinte="papier"] a { background: var(--papier); }
.autres-piles li[data-pg-teinte="aubergine"] a { background: #E4E3EC; }
.autres-piles__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; border: 1.5px solid var(--encre); }
.autres-piles strong { font: 400 23px/1.2 var(--titre); padding: 0 4px; }
.autres-piles__accroche { font-size: 15px; color: var(--encre-2); padding: 0 4px; }
@media (min-width: 760px) { .autres-piles ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Lien coupé (aperçu local) */
.hors-jeu { display: grid; place-items: center; min-height: 100vh; background: var(--papier); padding: 16px; }
.hors-jeu__carte { max-width: 520px; border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--blanc); padding: 24px; }
.hors-jeu__coin { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--rose-fonce); }
.hors-jeu__url { font-size: 13px; word-break: break-all; background: var(--papier); padding: 8px; border-radius: 8px; }

/* Raccourci vers la sélection (pages d'achat) */
.raccourci { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -10px 0 26px; font-size: 15.5px; }
.raccourci a { font-weight: 700; text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--encre); border-radius: 999px; background: var(--menthe); }
.raccourci a::after { content: ' ↓'; }
.raccourci a:hover { background: var(--blanc); }
.raccourci span { font-size: 13px; color: var(--encre-2); }
#selection { scroll-margin-top: 16px; }

/* Accueil : pour qui, photos des piles */
.pour-qui { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pour-qui a, .pour-qui li > div { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px 12px 16px; border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--blanc); text-decoration: none; }
.pour-qui a:hover { background: var(--papier); }
.pour-qui__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; border: 1.5px solid var(--encre); margin-bottom: 4px; }
.pour-qui__qui { font: 400 23px/1.2 var(--titre); padding: 0 4px; }
.pour-qui__texte { font-size: 15.5px; color: var(--encre-2); padding: 0 4px; }
.pour-qui__aller { margin-top: auto; padding: 6px 4px 0; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--menthe-fonce); text-underline-offset: 3px; }
@media (min-width: 760px) { .pour-qui { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pile__photo { margin: -18px -18px 14px; border-bottom: 1.5px solid var(--encre); border-radius: calc(var(--r) - 1.5px) calc(var(--r) - 1.5px) 0 0; overflow: hidden; }
.pile__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Grille des cartes d'une pile : jamais de case vide (1 = pleine largeur, 5 = 3 + 2, 7 = 3 + 2 + 2 évité par 4 + 3). */
.tapis:has(> li:only-child) { grid-template-columns: 1fr; }
@media (min-width: 1040px) {
  .tapis:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tapis:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .tapis:has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: span 3; }
  .tapis:has(> li:nth-child(7):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tapis:has(> li:nth-child(7):last-child) > li { grid-column: span 3; }
  .tapis:has(> li:nth-child(7):last-child) > li:nth-child(n+5) { grid-column: span 4; }
}
@media (min-width: 700px) and (max-width: 1039px) {
  .tapis:has(> li:nth-child(odd):last-child) > li:last-child { grid-column: 1 / -1; }
}
.assortiment__ansm { margin: 10px 0 0; padding: 10px 14px; font-size: 14px; background: var(--rose-pale); border: 1.5px solid var(--encre); border-radius: 10px; }
