/* Maquette de la page Démos (28/10/2026), univers de Cosmos : tpl/v2/demos/page.php.
   Mêmes polices que le support et l'installation. */
@font-face { font-family: 'Inter Tight Doc'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/v2/fonts/essai/inter-tight-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Doc'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/v2/fonts/inter-var.woff2) format('woff2'); }

.de {
  --de-titre: 'Inter Tight Doc', 'Inter Doc', system-ui, sans-serif;
  --de-corps: 'Inter Doc', system-ui, sans-serif;
  --de-fond: #F6F5F3;
  --de-filet: rgba(17,17,17,.1);
  --de-encre: #111;
  --de-gris: #767676;
  --de-pale: #CFCFCB;
  font-family: var(--de-corps);
  color: var(--de-encre);
}
.de img { display: block; }
:where(.de) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }

.de-h1 { font-family: var(--de-titre); font-weight: 700; font-size: clamp(42px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -.045em; margin: 0; }
.de-h2 { font-family: var(--de-titre); font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 40px; }
.de-h2--centre { text-align: center; margin-bottom: 16px; }
.de-chapo { font-size: 18px; line-height: 1.5; color: var(--de-gris); max-width: 520px; margin: 22px auto 0; text-align: center; }
.de-chapo--gauche { text-align: left; margin-left: 0; }

.de-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--de-encre); background: #fff; border: 1px solid var(--de-filet); transition: transform .2s, background .2s; }
.de-btn:hover { transform: translateY(-1px); }
.de-btn--noir { background: var(--de-encre); color: #fff; border-color: var(--de-encre); }
.de-btn--plein { width: 100%; }
.de-mdp { font-size: 14px; color: var(--de-gris); white-space: nowrap; }
.de-mdp b { color: var(--de-encre); font-weight: 600; letter-spacing: .04em; }
.de-mdp--pilule { display: inline-block; line-height: 46px; height: 48px; padding: 0 20px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--de-filet); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ── Le haut : le nuage d'images en vol, à la Cosmos ─────────────────────── */
.de-haut { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #fff; display: grid; place-items: center; perspective: 900px; }
.de-nuage { position: absolute; inset: 0; transform-style: preserve-3d; }
.de-nuage img {
  position: absolute;
  width: var(--w, 96px); aspect-ratio: 1; object-fit: contain;
  mix-blend-mode: multiply; filter: brightness(1.045);   /* 245 → blanc : plus de boîte grise autour des photos de Colonne et d'OFFSET */   /* les photos sur fond blanc deviennent des objets détourés (Théo, 28/10 : les fonds blancs se mélangeaient mal) */
  left: 0; top: 0; will-change: transform, opacity;   /* l'orbite est posée par demos.js à chaque image */
}
.de-haut-centre { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.de-haut-centre::before { content: ''; position: absolute; inset: -60px -120px; z-index: -1; background: radial-gradient(closest-side, #fff 55%, transparent); }
.de-haut-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.de-bas-fleche { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--de-filet); color: var(--de-encre); }

/* Le mot qui tourne, avec sa vignette (« lamp with character ») */
.de-tourne { display: grid; justify-items: center; margin-top: .04em; }
.de-tourne-mot { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .22em; opacity: 0; filter: blur(12px); transform: translateY(.25em); transition: opacity .6s, filter .6s, transform .6s cubic-bezier(.2,.7,.2,1); }
.de-tourne-mot.is-on { opacity: 1; filter: none; transform: none; }
.de-tourne-mot img { width: 1.05em; height: .8em; object-fit: cover; border-radius: .14em; transform: rotate(-4deg); }

/* ── Les blocs ─────────────────────────────────────────────────────────── */
.de-bloc { width: min(100% - 32px, 1360px); margin: 0 auto; padding: 120px 0 0; scroll-margin-top: 80px; }
.de-bloc-tete { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.de-bloc-tete .de-h2 { margin: 0; }
.de-fin { text-align: center; padding: 160px 0 var(--fg-bas, 140px); }

/* Version A : les noms qui s'allument, les images à droite */
.de-noms { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.de-noms-liste { list-style: none; margin: 0; padding: 0; }
.de-nom { display: flex; align-items: center; gap: 0; width: 100%; padding: 2px 0; }
.de-nom-t { font-family: var(--de-titre); font-weight: 700; font-size: clamp(44px, 6vw, 88px); line-height: 1.08; letter-spacing: -.045em; color: var(--de-pale); transition: color .35s, filter .35s; }
.de-nom-vignette { filter: brightness(1.045); object-fit: contain !important; flex: none; margin-right: 0; width: 0; height: clamp(44px, 5vw, 72px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; opacity: 0; transition: width .35s cubic-bezier(.2,.7,.2,1), opacity .35s; }
.de-nom-palier { align-self: flex-start; margin: 1.6em 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--de-gris); opacity: 0; transition: opacity .35s; }
.de-noms-liste:hover .de-nom-t { filter: blur(1.5px); }
.de-nom.is-on .de-nom-t, .de-nom:hover .de-nom-t, .de-nom:focus-visible .de-nom-t { color: var(--de-encre); filter: none; }
.de-nom.is-on .de-nom-vignette, .de-nom:hover .de-nom-vignette { width: clamp(34px, 3.8vw, 54px); margin-right: 16px; opacity: 1; }
.de-nom.is-on .de-nom-palier, .de-nom:hover .de-nom-palier { opacity: 1; }
.de-noms-images { position: sticky; top: 120px; height: min(70vh, 620px); }
.de-noms-jeu { position: absolute; inset: 0; }
.de-noms-jeu img { position: absolute; width: 42%; aspect-ratio: 3 / 4; object-fit: cover; background: #fff; filter: brightness(1.045); opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .6s cubic-bezier(.2,.7,.2,1); }
.de-noms-jeu img:nth-child(1) { left: 54%; top: 0; }
.de-noms-jeu img:nth-child(2) { left: 6%; top: 26%; transition-delay: .06s; }
.de-noms-jeu img:nth-child(3) { left: 58%; top: 62%; width: 36%; transition-delay: .12s; }
.de-noms-jeu.is-on img { opacity: 1; transform: none; }

/* Version B : les cartes « collection » */
.de-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.de-carte { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--de-filet); border-radius: 22px; background: #fff; }
.de-carte-clic { display: grid; justify-items: center; text-align: center; padding-bottom: 6px; }
.de-carte-mosaique { width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.de-carte-mosaique img { width: 100%; height: 100%; object-fit: cover; background: var(--de-fond); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.de-carte-mosaique img:first-child { grid-row: span 2; object-position: top; }
.de-carte:hover .de-carte-mosaique img { transform: scale(1.04); }
.de-carte-pastille { width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; background: #fff; position: relative; }
.de-carte-pastille img { width: 100%; height: 100%; object-fit: cover; }
.de-carte-nom { font-family: var(--de-titre); font-weight: 700; font-size: 24px; letter-spacing: -.03em; margin-top: 8px; }
.de-carte-palier { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--de-gris); margin-top: 2px; }
.de-carte-quoi { font-size: 15px; color: var(--de-gris); margin-top: 8px; }

/* Version C : la mosaïque d'exploration */
.de-explore { width: min(100% - 32px, 1440px); margin: 0 auto; padding: 150px 0 0; }
.de-explore-tete { max-width: 760px; }
.de-h1--gauche { text-align: left; }
.de-filtres { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 40px 0 24px; padding: 8px 0; background: linear-gradient(#fff 70%, transparent); }
.de-filtre { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--de-fond); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.de-filtre:first-child { padding-left: 16px; }
.de-filtre img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.de-filtre.is-on { background: var(--de-encre); color: #fff; }
.de-filtres .de-mdp { margin-left: auto; flex: none; padding-left: 16px; }
.de-mosaique { columns: 5 220px; column-gap: 12px; }
.de-tuile { position: relative; display: block; width: 100%; margin: 0 0 12px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--de-fond); transition: opacity .35s, transform .35s; }
.de-tuile img { width: 100%; height: auto; }
.de-tuile--e img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.de-tuile-nom { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.de-tuile:hover .de-tuile-nom, .de-tuile--e .de-tuile-nom { opacity: 1; transform: none; }
.de-tuile.is-cache { display: none; }

/* ── Le tiroir de détail ────────────────────────────────────────────────── */
.de-tiroir { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(920px, 100%); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; background: #fff; color: var(--de-encre); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .5s cubic-bezier(.2,.7,.2,1), display .5s allow-discrete, overlay .5s allow-discrete; font-family: var(--de-corps); }
.de-tiroir[open] { transform: none; }
@starting-style { .de-tiroir[open] { transform: translateX(100%); } }
.de-tiroir::backdrop { background: rgba(17,17,17,0); backdrop-filter: blur(0); transition: background .5s, backdrop-filter .5s, display .5s allow-discrete, overlay .5s allow-discrete; }
.de-tiroir[open]::backdrop { background: rgba(17,17,17,.28); backdrop-filter: blur(6px); }
@starting-style { .de-tiroir[open]::backdrop { background: rgba(17,17,17,0); backdrop-filter: blur(0); } }
.de-tiroir-fermer { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--de-fond); border: 0; cursor: pointer; color: var(--de-encre); }
.de-tiroir-corps { padding: 48px 48px 64px; }
.de-f-palier { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--de-gris); margin: 0 0 10px; }
.de-f-nom { font-family: var(--de-titre); font-weight: 700; font-size: clamp(48px, 7vw, 80px); line-height: 1; letter-spacing: -.045em; margin: 0; }
.de-f-quoi { font-size: 19px; color: var(--de-gris); margin: 14px 0 0; }
.de-f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.de-f-ecrans { position: relative; margin-top: 40px; padding: 28px 28px 0; background: var(--de-fond); border-radius: 22px; overflow: hidden; }
.de-f-ecran { width: 86%; border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px var(--de-filet); }
.de-f-mobile { position: absolute; right: 28px; bottom: -40px; width: 22%; border-radius: 18px; border: 5px solid #111; }
.de-f-bas { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 48px; }
.de-f-h3 { font-family: var(--de-titre); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; }
.de-f-note { font-size: 14px; color: var(--de-gris); margin: 12px 0 0; }
.de-editeur { border: 1px solid var(--de-filet); border-radius: 14px; overflow: hidden; font-size: 14px; }
.de-editeur-t { margin: 0; padding: 12px 16px; font-weight: 600; background: var(--de-fond); border-bottom: 1px solid var(--de-filet); }
.de-reg { display: grid; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--de-filet); }
.de-editeur-t + .de-reg { border-top: 0; }
.de-reg-l { font-size: 12px; color: var(--de-gris); }
.de-reg-v { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.de-pastille { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.de-bascule { width: 28px; height: 16px; border-radius: 999px; background: var(--de-pale); position: relative; }
.de-bascule::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.de-bascule--on { background: var(--de-encre); }
.de-bascule--on::after { left: 14px; }
.de-sections { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.de-sections li { counter-increment: s; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--de-filet); font-size: 15px; }
.de-sections li::before { content: counter(s, decimal-leading-zero); color: var(--de-gris); font-variant-numeric: tabular-nums; }
.de-f-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 20px; }
.de-f-imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--de-fond); }

/* ── Téléphone ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .de-haut { min-height: 600px; }
  .de-chapo { font-size: 16px; }
  .de-bloc { padding-top: 80px; }
  /* Téléphone : la même expérience que le PC (Théo, 28/10). Les images de la boutique
     allumée restent collées en haut, les noms défilent dessous ; celui qui passe au
     milieu de l'écran s'allume, un toucher ouvre sa fiche. */
  .de-haut-actions { flex-direction: column; align-items: center; }
  .de-haut-actions > * { width: min(100%, 330px); height: 52px; line-height: 50px; padding: 0 16px; text-align: center; font-size: 15px; }
  .de-haut-actions .de-mdp--pilule { font-size: 14px; }
  .de-noms { grid-template-columns: 1fr; gap: 8px; }
  .de-noms-images { order: -1; position: sticky; top: 64px; z-index: 2; height: 200px; background: linear-gradient(#fff 88%, rgba(255,255,255,0)); }
  /* Une rangée alignée : même hauteur, même ligne, produit entier (Théo, 28/10 : « plus pro ») */
  .de-noms-jeu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: center; }
  .de-noms-jeu img, .de-noms-jeu img:nth-child(n) { position: static; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
  .de-noms-liste { padding-bottom: 30vh; }
  .de-nom { padding: 4px 0; }
  .de-nom-t { font-size: 52px; }
  .de-nom-vignette { height: 46px; }
  .de-nom.is-on .de-nom-vignette { width: 36px; margin-right: 12px; }
  .de-nom-palier { font-size: 10px; margin-top: 1.1em; margin-left: 10px; }
  .de-noms-liste:hover .de-nom-t { filter: none; }
  .de-bloc-tete { gap: 16px; margin-bottom: 16px; }
  .de-cartes { grid-template-columns: 1fr; }
  .de-bloc-tete { flex-direction: column; align-items: start; }
  .de-mosaique { columns: 2; column-gap: 8px; }
  .de-tuile { margin-bottom: 8px; }
  .de-explore { padding-top: 120px; }
  .de-filtres .de-mdp { display: none; }
  .de-tiroir { inset: auto 0 0 0; width: 100%; height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  @starting-style { .de-tiroir[open] { transform: translateY(100%); } }
  .de-tiroir-corps { padding: 32px 16px 48px; }
  .de-f-ecrans { padding: 16px 16px 0; }
  .de-f-bas { grid-template-columns: 1fr; gap: 32px; }
  .de-f-mobile { right: 16px; width: 28%; bottom: -24px; border-width: 3px; border-radius: 12px; }
}

/* Le tri par palier : sélecteur segmenté à la Apple */
.de-segment { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--de-fond); flex: none; }
.de-segment-pastille { position: absolute; top: 4px; bottom: 4px; left: var(--px, 4px); width: var(--pw, 0); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: left .4s cubic-bezier(.2,.7,.2,1), width .4s cubic-bezier(.2,.7,.2,1); }
.de-segment-b { position: relative; z-index: 1; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--de-gris); transition: color .25s; }
.de-segment-b span { font-weight: 500; opacity: .6; margin-left: 2px; }
.de-segment-b.is-on { color: var(--de-encre); }
.de-noms-liste li { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1), opacity .35s; }
.de-noms-liste li > .de-nom { min-height: 0; overflow: hidden; }
.de-noms-liste li.is-cache { grid-template-rows: 0fr; opacity: 0; }
@media (max-width: 760px) {
  .de-segment { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .de-segment-b { padding: 0 12px; font-size: 13px; }
  .de-noms-liste li.is-cache { border-top: 0; }
}

/* Le bouton principal : la flèche descend au survol */
.de-btn--fleche { gap: 10px; padding-right: 8px; }
.de-btn--fleche i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); overflow: hidden; transition: background .25s; }
.de-btn--fleche svg { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.de-btn--fleche:hover { transform: none; }
.de-btn--fleche:hover i { background: #fff; color: var(--de-encre); }
.de-btn--fleche:hover svg { animation: de-fleche .7s cubic-bezier(.2,.7,.2,1); }
@keyframes de-fleche { 0% { transform: none; } 45% { transform: translateY(26px); } 46% { transform: translateY(-26px); } 100% { transform: none; } }
.de-mdp--sous { margin: 16px 0 0; text-align: center; font-size: 14px; }

/* Tous les réglages */
.de-tous-b { margin-top: 16px; height: 44px; gap: 8px; }
.de-tous-b span { font-weight: 500; color: var(--de-gris); }
.de-tous-b[aria-expanded="true"] { background: var(--de-encre); color: #fff; }
.de-tous { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--de-filet); }
.de-tous-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.de-tous-tete .de-f-h3 { margin: 0; }
.de-segment--petit .de-segment-b { height: 34px; font-size: 13px; padding: 0 14px; }
.de-segment--petit .de-segment-b.is-on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.de-tous-groupes { columns: 2 300px; column-gap: 20px; margin-top: 24px; }
.de-groupe { break-inside: avoid; margin: 0 0 20px; border: 1px solid var(--de-filet); border-radius: 14px; overflow: hidden; font-size: 14px; }
.de-groupe-t { margin: 0; padding: 10px 16px; font-weight: 600; background: var(--de-fond); }
.de-groupe .de-reg { grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; }
.de-groupe .de-reg-l { font-size: 13px; color: var(--de-texte, #333); display: flex; align-items: center; gap: 8px; }
.de-groupe .de-reg-v { font-size: 13px; text-align: right; justify-content: end; }
.de-point { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-accent, #992CFF); vertical-align: middle; }
.de-voir-change, [data-voir-etat="change"] .de-reg:not(.is-change), [data-voir-etat="change"] .de-groupe--sans { display: none; }

/* Produits larges (les lunettes d'Éclipse) : jamais rognés en carré (Théo, 28/10). Le jeu
   passe en trois bandes larges décalées, produit entier ; demos.js pose la classe d'après
   la forme réelle des images. */
.de-noms-jeu img { object-fit: contain; }
@media (min-width: 761px) {
  .de-noms-jeu--large img, .de-noms-jeu--large img:nth-child(n) { width: 78%; aspect-ratio: 2 / 1; }
  .de-noms-jeu--large img:nth-child(1) { left: 22%; top: 2%; }
  .de-noms-jeu--large img:nth-child(2) { left: 0; top: 34%; }
  .de-noms-jeu--large img:nth-child(3) { left: 16%; top: 66%; }
}
.de-f-imgs img { object-fit: contain; }

/* Le tri par thème, sous la liste */
.de-tri { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 56px; }
.de-tri-t { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--de-gris); }

/* Le nom allumé, sur écran tactile : un premier toucher allume, le bouton Open dit
   que le second ouvre la fiche (Théo, 28/10) */
.de-nom-ouvrir { display: none; }
@media (hover: none) {
  .de-nom-ouvrir { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin-left: auto; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--de-encre); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
  .de-nom.is-on .de-nom-ouvrir { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .de-noms-liste { padding-bottom: 8vh; }
  .de-nom-palier { position: absolute; margin: 0; top: 0; left: 48px; font-size: 9px; }
  .de-nom { position: relative; padding-top: 10px; }
  .de-tri { margin-top: 32px; }
}

/* « Sort by theme + » */
.de-tri-b { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px 0 20px; border-radius: 999px; border: 1px solid var(--de-filet); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--de-encre); }
.de-tri-b i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--de-encre); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.de-tri-b i::before, .de-tri-b i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #fff; }
.de-tri-b i::after { transform: rotate(90deg); }
.de-tri.is-ouvert .de-tri-b i { transform: rotate(135deg); }
.de-tri-choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); transition: max-height .45s cubic-bezier(.2,.7,.2,1), opacity .3s, transform .45s cubic-bezier(.2,.7,.2,1); }
.de-tri.is-ouvert .de-tri-choix { max-height: 120px; opacity: 1; transform: none; }
.de-tri-p { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--de-fond); font-size: 14px; font-weight: 600; cursor: pointer; border: 0; color: var(--de-encre); transition: background .2s, color .2s; }
.de-tri-p span { font-weight: 500; opacity: .55; margin-left: 2px; }
.de-tri-p.is-on { background: var(--de-encre); color: #fff; }
.de-tri .de-tri-choix button:nth-child(2) { transition-delay: .03s; }
/* Le bouton Open suit le vrai pointeur (le dernier appui), pas seulement la media query */
.de.is-tactile .de-nom-ouvrir { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin-left: auto; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--de-encre); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.de.is-tactile .de-nom.is-on .de-nom-ouvrir { opacity: 1; transform: none; }

/* « Sort by theme + » en texte, à la Apple (Théo, 28/10 : pas de pastilles) : le déclencheur
   est un lien avec un petit +, les paliers sont de grands mots gris qui s'allument comme
   les noms de la liste. */
.de-tri-b { height: auto; padding: 6px 0; border: 0; background: none; gap: 10px; font-size: 17px; }
.de-tri-b i { width: 22px; height: 22px; }
.de-tri-b i::before, .de-tri-b i::after { width: 10px; margin-left: -5px; }
.de-tri-choix { gap: 4px 28px; align-items: baseline; }
.de-tri.is-ouvert .de-tri-choix { max-height: 260px; }
.de-tri-p { height: auto; padding: 0; background: none; border-radius: 0; font-family: var(--de-titre); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.04em; color: var(--de-pale); transition: color .3s; }
.de-tri-p span { font-family: var(--de-corps); font-size: 13px; font-weight: 600; letter-spacing: 0; vertical-align: super; opacity: 1; color: var(--de-gris); margin-left: 4px; }
.de-tri-p:hover, .de-tri-p:focus-visible { color: var(--de-gris); }
.de-tri-p.is-on { background: none; color: var(--de-encre); }
@media (max-width: 760px) {
  .de-tri-choix { flex-direction: column; align-items: center; gap: 2px; }
  .de-tri-p { font-size: 34px; }
}
