/* Ancelotti Production · page des guides (/guides et /en/guides), dans le langage de l'accueil v17 (04/10/2026).
   Cette feuille se charge APRÈS /assets/v17/site.css : elle en hérite les variables, la police Mona Sans, la barre du haut,
   le menu du téléphone, le bouton flottant et le pied de page, qu'elle ne redéfinit pas. Elle ajoute l'accueil des guides
   (ouverture sombre, recherche, parcours, catégories), les listes (catégorie, lexique, liens) et la page de lecture.
   Deux classes du contenu des guides portent le même nom que des blocs de l'accueil (.num et .steps) : elles sont remises
   à zéro dans .g-body avant d'être dessinées.
   Source : Etapes realisees\Guides - école et site\site\guides.css (copié dans sortie\assets\v17\ par construire_guides_site.py). */

/* ------------------------------------------------------------------ 0. La page */
html { scroll-behavior: auto; -webkit-tap-highlight-color: transparent; }
:root {
  --g-blue: #2C5BC0;                       /* liens et accents de texte sur fond clair (contraste 5,7 sur --paper) */
  --g-blue-soft: rgba(59, 111, 216, 0.1);
  --g-line: rgba(12, 23, 48, 0.12);
  --g-card: #FFFFFF;
  --g-green: #0C6D3D;
  --g-green-soft: rgba(12, 109, 61, 0.1);
  --g-red: #B02D23;
  --g-red-soft: rgba(176, 45, 35, 0.1);
  --g-slate: #566079;
  --g-slate-soft: rgba(86, 96, 121, 0.1);
  --g-col: 38rem;                           /* colonne de lecture : 65 à 70 caractères à 18 px */
  --g-top: calc(var(--nav-h) + clamp(24px, 5vh, 56px));
}
main { display: block; min-height: 72svh; }
main:focus { outline: none; }
a, button, input, label { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
mark { padding: 0; border-radius: 3px; background: rgba(59, 111, 216, 0.2); box-shadow: 0 0 0 0.12em rgba(59, 111, 216, 0.2); color: inherit; }

/* « Guides » marqué comme la page courante dans la barre du haut */
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.menu__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
/* entre 901 et 1340 px, les cinq liens touchent le logo centré : on resserre un peu */
@media (min-width: 901px) { .nav { column-gap: 28px; } }
@media (min-width: 901px) and (max-width: 1400px) { .nav__links, .nav__end { gap: clamp(12px, 1.35vw, 20px); } }
/* le menu plein écran du téléphone passe sous la barre, pour que le bouton de fermeture reste accessible */
.nav { z-index: 80; }
/* le bouton flottant « Rejoindre l'agence », celui de l'accueil du site. Sur l'accueil des guides, il arrive dès qu'on
   commence à descendre (le premier écran reste à la recherche) ; sur les listes et pendant la lecture, il laisse la
   place au texte et revient quand le pied de page arrive à l'écran */
.cta { transition: background-color 300ms ease, opacity 200ms ease, transform 260ms var(--ease-out), visibility 0s; }
.js body[data-view="accueil"]:not([data-scrolled="true"]) .cta, .js body:not([data-view="accueil"]):not([data-footer="in"]) .cta, body[data-searching="true"] .cta { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(14px); transition: background-color 300ms ease, opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; }

/* Une seule vue à la fois. Sans script, l'ancre de l'adresse choisit la vue (:target), sinon l'accueil des guides. */
.view { display: none; }
html:not(.js) #view-accueil { display: block; }
html:not(.js) .view:target { display: block; }
html:not(.js) .view:has(:target) { display: block; }
html:not(.js) main:has(:target) #view-accueil { display: none; }
html:not(.js) body:has(main :target) .nav { color: var(--ink); }
.js .view.on { display: block; }
.ancre { position: absolute; }

/* Changement de vue : court, et seulement à l'arrivée */
@keyframes g-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes g-fade { from { opacity: 0; } }
.view.is-entering { animation: g-in 240ms var(--ease-out) backwards; }
@media (prefers-reduced-motion: reduce) { .view.is-entering { animation: g-fade 140ms ease backwards; } }

/* Le rond fléché (le même que celui du bouton flottant de l'accueil) */
.chip { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--g-line); color: var(--ink); transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.chip .icon { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a:hover .chip { background: var(--ink); border-color: var(--ink); color: var(--white); }
  a:hover .chip .icon { transform: translateX(2px); }
}

/* ------------------------------------------------------------------ 1. L'accueil des guides */
.gh { position: relative; isolation: isolate; overflow: hidden; overflow: clip; background: var(--backdrop); color: var(--white); text-align: center; padding: calc(var(--nav-h) + clamp(36px, 8.5vh, 96px)) 0 calc(clamp(52px, 9vh, 104px) + 36px); }
/* le ciel de l'accueil, sous un voile bleu nuit : presque plein en haut (la barre reste lisible), plus léger en bas */
.gh__sky { position: absolute; inset: 0; z-index: -1; background: #0B2A60 url("/assets/v17/img/ciel-1600.webp") 50% 62% / cover no-repeat; }
.gh__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 14, 31, 0.97) 0%, rgba(8, 22, 54, 0.92) 40%, rgba(11, 42, 96, 0.8) 100%); }
@media (min-width: 1700px) { .gh__sky { background-image: url("/assets/v17/img/ciel-1920.webp"); } }
@media (max-aspect-ratio: 4/5) { .gh__sky { background-image: url("/assets/v17/img/ciel-portrait-720.webp"); } }
.gh__title { max-width: 11em; margin-inline: auto; font-size: clamp(2.625rem, 6.3vw, 5.5rem); line-height: 0.95; text-wrap: balance; }
.gh__lead { max-width: 27em; margin: clamp(18px, 2.8vh, 28px) auto 0; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); font-stretch: 100%; line-height: 1.38; letter-spacing: -0.015em; color: rgba(255, 255, 255, 0.84); text-wrap: balance; }

/* La recherche : la capsule blanche dans son anneau de verre, comme le bouton flottant de l'accueil */
.gsearch { position: relative; width: min(100%, 45rem); margin: clamp(26px, 4.4vh, 44px) auto 0; text-align: left; }
.gsearch__field { padding: 6px; border-radius: 60px; background: var(--glass-dark); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color 200ms ease, box-shadow 200ms ease; }
.gsearch__field:focus-within { background: rgba(255, 255, 255, 0.3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55); }
.gsearch__in { display: flex; align-items: center; gap: 12px; height: clamp(56px, 7vh, 64px); padding: 0 8px 0 22px; border-radius: 60px; background: var(--white); color: var(--ink); box-shadow: 0 6px 20px -10px rgba(12, 23, 48, 0.35); cursor: text; }
.gsearch__in > .icon { width: 22px; height: 22px; color: var(--ink-2); }
.gsearch input, .lfilter input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; -webkit-appearance: none; appearance: none; font: inherit; font-size: 1.0625rem; font-stretch: 100%; font-weight: 550; letter-spacing: -0.015em; color: var(--ink); }
.gsearch input::placeholder, .lfilter input::placeholder { color: var(--ink-2); opacity: 1; }
.gsearch input::-webkit-search-cancel-button, .lfilter input::-webkit-search-cancel-button { display: none; }
#search-clear { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 23, 48, 0.07); color: var(--ink); cursor: pointer; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
#search-clear[hidden] { display: none; }
#search-clear .icon { width: 16px; height: 16px; }
#search-clear:active { transform: scale(0.94); }
.gh__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin-top: clamp(16px, 2.4vh, 22px); font-size: 0.9375rem; font-stretch: 100%; font-weight: 550; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.72); }
.gh__stats > *:not(:last-child)::after { content: "·"; margin: 0 0.6em; opacity: 0.6; }
.gh__stats a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  #search-clear:hover { background: rgba(12, 23, 48, 0.13); }
  .gh__stats a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
}

/* Les résultats, sous le champ, pendant qu'on tape */
.gsearch__panel { margin-top: 12px; padding: 8px; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65); }
.gsearch__panel[hidden] { display: none; }
.res-h { padding: 16px 16px 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink-2); }
.res { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 20px; text-decoration: none; outline-offset: -2px; }
.res__n { font-stretch: var(--wide); font-size: 1.25rem; line-height: 1.08; letter-spacing: -0.05em; color: var(--g-blue); }
.res__n .icon { width: 22px; height: 22px; }
.res__t { display: block; font-size: 1.125rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.035em; }
.res__d { display: block; margin-top: 4px; font-size: 1rem; font-stretch: 100%; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-2); }
.res > .icon { align-self: center; width: 18px; height: 18px; color: var(--ink-2); }
.res:focus-visible, .res:active { background: rgba(12, 23, 48, 0.06); }
@media (hover: hover) and (pointer: fine) { .res:hover { background: rgba(12, 23, 48, 0.06); } }
#search-empty { padding: 22px 16px; font-size: 1.0625rem; font-stretch: 100%; line-height: 1.4; }
#search-empty[hidden] { display: none; }
/* pendant la recherche : le champ monte sous la barre, le reste s'efface */
body[data-searching="true"] .gh { min-height: 100svh; padding-top: calc(var(--nav-h) + 12px); padding-bottom: 96px; }
body[data-searching="true"] .gh__title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body[data-searching="true"] .gh__lead, body[data-searching="true"] .gh__stats, body[data-searching="true"] .sheet, body[data-searching="true"] .ghelp { display: none; }
body[data-searching="true"] .gsearch { margin-top: 0; }

/* La feuille claire qui recouvre l'ouverture (comme « Le principe » sur l'accueil) */
.sheet { position: relative; z-index: 1; margin-top: -36px; border-radius: 36px 36px 0 0; background: var(--paper); padding: clamp(56px, 9vh, 104px) 0 clamp(48px, 7vh, 88px); }
.sec-head p { margin-top: 16px; max-width: 38em; text-wrap: balance; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); font-stretch: 100%; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink-2); }

/* Par où commencer : quatre étapes sur une ligne, en liste sur téléphone */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(32px, 5vh, 56px); }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n chip" "t t"; grid-template-rows: auto 1fr; align-items: start; gap: clamp(18px, 3vh, 28px) 14px; height: 100%; padding: 18px 0 8px; border-top: 1px solid var(--ink); text-decoration: none; transition: transform 140ms var(--ease-out); }
.pcard__n { grid-area: n; font-stretch: var(--wide); font-size: clamp(2.75rem, 4.4vw, 3.75rem); line-height: 0.82; letter-spacing: -0.06em; color: var(--blue); }
.pcard__t { grid-area: t; max-width: 11em; font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.05em; text-wrap: balance; }
.pcard .chip { grid-area: chip; }
.path li:first-child .chip { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pcard:active { transform: scale(0.985); }

/* Les cinq catégories : cinq fenêtres sur le même ciel, texte blanc */
.cats { margin-top: clamp(72px, 12vh, 136px); }
.cats__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4.5vh, 48px); }
.cat { position: relative; isolation: isolate; overflow: hidden; grid-column: span 2; display: flex; flex-direction: column; min-height: clamp(340px, 44vh, 400px); padding: clamp(22px, 2.3vw, 32px); border-radius: 28px; background: #0B2A60; color: var(--white); transition: transform 160ms var(--ease-out); }
.cat:nth-child(-n+2) { grid-column: span 3; }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/v17/img/ciel-1000.webp") var(--ciel, 50% 50%) / 240% auto no-repeat; transition: transform 700ms var(--ease-out); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 50, 118, 0.8) 0%, rgba(10, 36, 86, 0.92) 46%, rgba(8, 24, 58, 0.98) 100%); }
.cat[data-cat="commander"] { --ciel: 12% 30%; }
.cat[data-cat="qualite"] { --ciel: 88% 36%; }
.cat[data-cat="livraison"] { --ciel: 30% 78%; }
.cat[data-cat="argent"] { --ciel: 62% 64%; }
.cat[data-cat="compte"] { --ciel: 96% 84%; }
.cat__ic { width: 30px; height: 30px; }
.cat__t { margin-top: clamp(18px, 3vh, 28px); font-stretch: var(--wide); font-size: clamp(1.75rem, 2.7vw, 2.5rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.055em; }
.cat__peek { margin-top: clamp(20px, 3vh, 28px); }
.cat__peek a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 1.0625rem; font-stretch: 100%; font-weight: 550; line-height: 1.22; letter-spacing: -0.015em; text-decoration: none; }
.cat__peek .icon { flex: none; width: 16px; height: 16px; opacity: 0.6; transition: transform 250ms var(--ease-out), opacity 150ms ease; }
.cat__all { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.cat__all::after { content: ""; position: absolute; inset: 0; }                  /* toute la carte ouvre la catégorie */
.cat .chip { background: var(--white); border-color: var(--white); color: var(--ink); }
.cat:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .cat:hover::before { transform: scale(1.05); }
  .cat a:hover .chip { background: var(--white); border-color: var(--white); color: var(--ink); }
  .cat__peek a:hover .icon { opacity: 1; transform: translateX(3px); }
  .cat__peek a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}

/* Le lexique et les liens : deux entrées claires */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mcard { display: flex; flex-direction: column; min-height: 232px; padding: clamp(22px, 2.3vw, 32px); border-radius: 28px; background: var(--g-card); text-decoration: none; box-shadow: 0 24px 48px -40px rgba(12, 23, 48, 0.4); transition: transform 160ms var(--ease-out); }
.mcard__ic { width: 30px; height: 30px; color: var(--blue); }
.mcard__t { margin-top: clamp(18px, 3vh, 28px); font-stretch: var(--wide); font-size: clamp(1.625rem, 2.3vw, 2.125rem); line-height: 1; letter-spacing: -0.055em; }
.mcard__p { margin: 12px 0 20px; max-width: 26em; font-size: 1.0625rem; font-stretch: 100%; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink-2); }
.mcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.02em; }
.mcard:active { transform: scale(0.99); }

/* L'aide (Discord), avant le pied de page */
.ghelp { position: relative; z-index: 1; background: var(--paper); padding: 0 0 clamp(56px, 9vh, 104px); }
.ghelp__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px clamp(24px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.ghelp h2 { font-stretch: var(--wide); font-size: clamp(1.375rem, 1.9vw, 1.625rem); font-weight: 500; line-height: 1; letter-spacing: -0.055em; white-space: nowrap; }
.help-t { max-width: 36em; font-size: 1.0625rem; font-stretch: 100%; line-height: 1.42; letter-spacing: -0.015em; color: var(--ink-2); }
.help-t b, .help-t .hl { font-weight: 650; color: var(--ink); }
.gbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border-radius: 60px; background: var(--ink); color: var(--white); font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), opacity 150ms ease; }
.gbtn .icon { width: 20px; height: 20px; }
.gbtn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .gbtn:hover { opacity: 0.86; } }

/* ------------------------------------------------------------------ 2. Les listes : une catégorie, le lexique, les liens */
.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: clamp(32px, 6.5vw, 104px); align-items: start; padding-top: var(--g-top); padding-bottom: clamp(64px, 10vh, 120px); }
.split__intro { position: sticky; top: calc(var(--nav-h) + 20px); }
.v-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-2); }
.v-crumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.v-crumb .icon { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.v-crumb .sep { opacity: 0.5; }
.v-crumb .v-find { margin-left: auto; padding-left: 16px; }
@media (hover: hover) and (pointer: fine) {
  .v-crumb a { transition: color 150ms ease; }
  .v-crumb a:hover { color: var(--ink); }
  .v-crumb a:not(.v-find):hover .icon { transform: translateX(-3px); }
}
.split__intro h1 { margin-top: clamp(8px, 1.6vh, 16px); text-wrap: balance; }
.v-desc, .v-intro { margin-top: 20px; max-width: 28em; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); font-stretch: 100%; line-height: 1.42; letter-spacing: -0.015em; color: var(--ink-2); }
.v-intro { font-size: 1.0625rem; line-height: 1.5; }
.v-count { margin-top: 24px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink-2); }

/* la liste des guides d'une catégorie : numéro, titre, description */
.glist, .links { border-top: 1px solid var(--g-line); }
.gcard { display: grid; grid-template-columns: clamp(44px, 5vw, 64px) minmax(0, 1fr) 20px; gap: 12px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--g-line); text-decoration: none; }
.gcard__n { padding-top: 1px; font-stretch: var(--wide); font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.05em; color: var(--g-blue); }
.gcard__t, .lk-t { display: block; font-size: clamp(1.1875rem, 1.55vw, 1.375rem); font-weight: 650; line-height: 1.16; letter-spacing: -0.04em; text-wrap: balance; }
.gcard__d, .lk-d { display: block; margin-top: 7px; font-size: 1.0625rem; font-stretch: 100%; line-height: 1.42; letter-spacing: -0.015em; color: var(--ink-2); }
.gcard > .icon { align-self: center; width: 20px; height: 20px; color: var(--ink-2); transition: transform 250ms var(--ease-out), color 150ms ease; }
.gcard:active .gcard__t, .linkcard:active .lk-t { color: var(--g-blue); }
@media (hover: hover) and (pointer: fine) {
  .gcard__t, .lk-t { transition: color 150ms ease; }
  .gcard:hover .gcard__t, .linkcard:hover .lk-t { color: var(--g-blue); }
  .gcard:hover > .icon { transform: translateX(4px); color: var(--g-blue); }
}

/* le lexique */
.lfilter { display: flex; align-items: center; gap: 12px; height: 56px; max-width: 26rem; margin-top: 26px; padding: 0 20px; border-radius: 60px; background: var(--g-card); box-shadow: 0 0 0 1px var(--g-line); cursor: text; transition: box-shadow 150ms ease; }
.lfilter:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.lfilter .icon { width: 20px; height: 20px; color: var(--ink-2); }
.gloss-cat + .gloss-cat { margin-top: clamp(40px, 6vh, 64px); }
.gloss-cat[hidden], .term[hidden], #term-empty[hidden] { display: none; }
.gloss-cat h2 { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink-2); }
.gloss-cat h2 svg { width: 18px; height: 18px; }
.terms { margin-top: 14px; border-top: 1px solid var(--g-line); }
.term { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--g-line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.term dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.25rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.04em; }
.term-badge { padding: 0.16em 0.62em; border-radius: 60px; background: var(--ink); color: var(--white); font-size: 0.76em; font-weight: 700; letter-spacing: 0; }
.term dd { margin: 7px 0 0; font-size: 1.0625rem; font-stretch: 100%; line-height: 1.5; letter-spacing: -0.015em; color: var(--ink-2); }
#term-empty { padding: 4px 0 24px; font-size: 1.0625rem; font-stretch: 100%; color: var(--ink-2); }
@keyframes g-flash { from { background: var(--g-blue-soft); box-shadow: -12px 0 0 var(--g-blue-soft), 12px 0 0 var(--g-blue-soft); } to { background: transparent; box-shadow: -12px 0 0 transparent, 12px 0 0 transparent; } }
.term[data-flash="true"] { animation: g-flash 1800ms ease 200ms backwards; }

/* les liens utiles */
.linkcard { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--g-line); text-decoration: none; }
.linkcard > .icon { width: 20px; height: 20px; color: var(--ink-2); transition: transform 250ms var(--ease-out), color 150ms ease; }
.linkcard.todo { opacity: 0.6; }
.lk-soon { font-size: 0.9375rem; font-weight: 650; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .linkcard:hover > .icon { transform: rotate(45deg); color: var(--g-blue); } }

/* ------------------------------------------------------------------ 3. La lecture d'un guide */
.gview { width: min(100% - 2 * var(--gutter), var(--g-col)); margin-inline: auto; padding: var(--g-top) 0 clamp(64px, 10vh, 120px); }
.gview .v-head { padding-bottom: clamp(24px, 4vh, 36px); border-bottom: 1px solid var(--g-line); }
.v-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: clamp(10px, 2vh, 20px); font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-2); }
.g-num { color: var(--g-blue); }
.gview h1 { margin-top: 12px; font-stretch: var(--wide); font-size: clamp(2.125rem, 4.4vw, 3.375rem); font-weight: 500; line-height: 1; letter-spacing: -0.055em; word-spacing: 0.06em; text-wrap: balance; }
.gview .v-desc { max-width: none; margin-top: 18px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.36; letter-spacing: -0.02em; }
.copy-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 22px; padding: 0 18px 0 14px; border: 1px solid var(--g-line); border-radius: 60px; background: transparent; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; }
.copy-link__ic { position: relative; width: 18px; height: 18px; }
.copy-link__ic .icon { position: absolute; inset: 0; width: 18px; height: 18px; transition: opacity 180ms ease, transform 180ms var(--ease-out), filter 180ms ease; }
.copy-link .ic-ok { opacity: 0; transform: scale(0.6); filter: blur(2px); color: var(--g-green); }
.copy-link.ok .ic-ok { opacity: 1; transform: none; filter: none; }
.copy-link.ok .ic-link { opacity: 0; transform: scale(0.6); filter: blur(2px); }
.copy-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copy-link:hover { background: var(--g-card); border-color: rgba(12, 23, 48, 0.22); } }

/* le texte */
.g-body { padding-top: clamp(24px, 4vh, 36px); font-size: 1.0625rem; font-stretch: 100%; font-weight: 450; line-height: 1.62; letter-spacing: -0.011em; overflow-wrap: break-word; }
.g-body > * + * { margin-top: 1.15em; }
.g-body > * { max-width: var(--g-col); }
.g-body p, .g-body li { text-wrap: pretty; }
.g-body h4 { margin: 2.1em 0 0; font-stretch: var(--wide); font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 550; line-height: 1.08; letter-spacing: -0.045em; text-wrap: balance; scroll-margin-top: calc(var(--nav-h) + 16px); }
.g-body h4 + * { margin-top: 0.85em; }
.g-body strong, .g-body b { font-weight: 680; }
.g-body a { color: var(--g-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.g-body ul:not([class]) { display: grid; gap: 0.7em; }
.g-body ul:not([class]) > li { position: relative; padding-left: 1.5em; }
.g-body ul:not([class]) > li::before { content: ""; position: absolute; left: 0.3em; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* nombres mis en avant (remise à zéro : .num existe aussi sur l'accueil) */
.g-body .num { all: unset; font-weight: 680; white-space: nowrap; }

/* les étapes numérotées (remise à zéro : .steps existe aussi sur l'accueil) */
.g-body ol.steps { all: unset; box-sizing: border-box; display: block; list-style: none; max-width: var(--g-col); margin-top: 1.6em; border-top: 1px solid var(--g-line); counter-reset: etape; }
.g-body ol.steps > li { position: relative; display: block; padding: 1.15em 0 1.2em 3.5rem; border-bottom: 1px solid var(--g-line); counter-increment: etape; }
.g-body ol.steps > li::before { content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: 1.02em; font-stretch: var(--wide); font-size: 1.375rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.05em; color: var(--g-blue); }
.g-body ol.steps > li > strong:first-child { display: block; margin-bottom: 0.3em; font-size: 1.12em; line-height: 1.25; letter-spacing: -0.03em; }

/* l'encadré « à retenir » */
.g-body .gold { margin-top: 1.7em; padding: 1.1em 1.3em 1.15em; border-radius: 20px; background: var(--g-blue-soft); }
.g-body .gold + * { margin-top: 1.7em; }

/* étiquettes GL et RL, états d'une commande */
.tag { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.1em 0.62em 0.1em 0.46em; border-radius: 60px; font-size: 0.82em; font-weight: 700; line-height: 1.5; letter-spacing: 0; vertical-align: 0.06em; white-space: nowrap; }
.tag svg { width: 1em; height: 1em; stroke-width: 2.6; }
.tag-gl { color: var(--g-green); background: var(--g-green-soft); }
.tag-rl { color: var(--g-red); background: var(--g-red-soft); }
.st { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.2em 0.78em 0.2em 0.56em; border-radius: 60px; font-size: 0.92em; font-weight: 680; line-height: 1.4; white-space: nowrap; color: var(--st, var(--g-blue)); background: var(--st-bg, var(--g-blue-soft)); }
.st svg { flex: none; width: 1.05em; height: 1.05em; }
.st b { font-weight: inherit; }
.st-wait { --st: var(--g-slate); --st-bg: var(--g-slate-soft); }
.st-qc { --st: var(--g-red); --st-bg: var(--g-red-soft); }
.st-ok { --st: var(--g-green); --st-bg: var(--g-green-soft); }

/* les fiches d'état : une frise verticale, sans boîte */
.g-body .status-flow { max-width: var(--g-col); margin-top: 1.6em; }
.sf-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-bottom: 28px; }
.sf-card:last-child { padding-bottom: 0; }
.sf-card::before { content: ""; position: absolute; left: 21.5px; top: 44px; bottom: 0; width: 1px; background: var(--g-line); }
.sf-card:last-child::before { display: none; }
.sf-node { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g-card); color: var(--sf, var(--g-blue)); box-shadow: 0 0 0 1px var(--g-line); }
.sf-node svg { width: 20px; height: 20px; }
.sf-wait { --sf: var(--g-slate); }
.sf-ok { --sf: var(--g-green); }
.sf-action .sf-node { background: var(--g-red); color: var(--white); box-shadow: none; }
.sf-body { padding-top: 8px; }
.sf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sf-head .st { padding: 0; background: none; color: var(--ink); font-size: 1.14em; letter-spacing: -0.03em; white-space: normal; }
.sf-head .st svg { display: none; }
.sf-flag { padding: 0.18em 0.72em; border-radius: 60px; font-size: 0.82em; font-weight: 700; color: var(--g-red); background: var(--g-red-soft); }
.sf-mean { margin-top: 0.3em; }
.sf-do { margin-top: 0.25em; color: var(--ink-2); }
.sf-lbl { margin-right: 0.5em; font-weight: 680; color: var(--ink); }

/* les grilles de poids */
.kg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: var(--g-col); margin-top: 1.4em; }
.kg { display: flex; flex-direction: column; gap: 2px; padding: 13px 16px 14px; border-radius: 16px; background: var(--g-card); }
.kg b { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.kg span { font-size: 1.1875rem; font-weight: 680; line-height: 1.2; letter-spacing: -0.03em; }

/* les tableaux : une carte blanche ; s'il est trop large, le tableau défile dans son cadre, jamais la page */
.tablewrap { margin-top: 1.8em; border-radius: 20px; background: var(--g-card); box-shadow: 0 0 0 1px var(--g-line); overflow: hidden; font-size: 1rem; line-height: 1.45; }
.tablewrap + * { margin-top: 1.8em; }
.tcap { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-size: 1.0625rem; font-weight: 680; line-height: 1.25; letter-spacing: -0.03em; }
.tcap svg { flex: none; width: 20px; height: 20px; color: var(--g-blue); }
.tscroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(12, 23, 48, 0.25) transparent; }
.tablewrap table { width: 100%; border-collapse: collapse; text-align: left; }
.tablewrap th { padding: 11px 20px; border-top: 1px solid var(--g-line); background: rgba(12, 23, 48, 0.035); font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap; }
.tablewrap td { padding: 14px 20px; border-top: 1px solid var(--g-line); vertical-align: top; }
.td-short { white-space: nowrap; }
.td-num { font-stretch: var(--wide); font-size: 1.125rem; letter-spacing: -0.05em; color: var(--g-blue); }
.td-alert { color: var(--g-red); }
.td-good { color: var(--g-green); }
.td-alert.td-short, .td-good.td-short { font-weight: 680; }
.td-sub { display: block; margin-top: 5px; font-size: 0.9375rem; color: var(--ink-2); }
.td-ic { display: inline-flex; align-items: center; gap: 8px; }
.td-ic svg { flex: none; width: 18px; height: 18px; color: var(--g-blue); }
.td-ic.is-eco svg { color: var(--g-green); }
.td-ic.is-fast svg { color: var(--ink); }
.t-msg tbody td:last-child { white-space: pre-line; }

/* les mots du lexique dans le texte : un appui ouvre leur définition */
.term-inline { font-weight: 600; }
.term-inline[data-term] { cursor: pointer; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: rgba(59, 111, 216, 0.75); border-radius: 4px; }
.termpop { position: absolute; z-index: 50; left: 0; top: 0; width: min(21.5rem, calc(100vw - 32px)); padding: 16px 18px; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgba(12, 23, 48, 0.08), 0 24px 48px -20px rgba(12, 23, 48, 0.4); font-size: 1rem; font-stretch: 100%; line-height: 1.45; letter-spacing: -0.01em; transform-origin: var(--ox, 50%) var(--oy, 0); transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
.termpop[data-open="false"] { opacity: 0; transform: scale(0.97); visibility: hidden; pointer-events: none; transition: opacity 110ms ease, transform 110ms ease, visibility 0s linear 110ms; }
.termpop__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 1.0625rem; font-weight: 680; letter-spacing: -0.03em; }
.termpop__d { margin-top: 5px; color: var(--ink-2); }
.termpop a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 6px; font-weight: 650; color: var(--g-blue); text-decoration: none; }
.termpop a .icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .termpop, .termpop[data-open="false"] { transition: none; } }

/* les vraies captures de Lolobuy (figures posées par construire_guides_site.py, déjà annotées : cadres, flèches,
   pastilles bleues). L'image n'est jamais agrandie au-delà de sa taille réelle (--l, écrite sur la figure). Un coin
   arrondi et un filet fin, rien d'autre : les captures viennent d'un site orange et blanc, le cadre reste neutre.
   La légende suit son image de près ; les repères numérotés reprennent la pastille bleue de l'image.
   Sur téléphone (plus bas), une capture large défile de côté dans son cadre, jamais la page. */
.g-body { container-type: inline-size; }                     /* pour qu'une figure d'étape connaisse la largeur de la colonne (cqi) */
.g-body ol.steps > li { --retrait: 3.5rem; }
.g-body ul:not([class]) > li { --retrait: 1.5em; min-width: 0; }
.g-body .shot { margin-top: 1.7em; }
.g-body h4 + .shot { margin-top: 1.1em; }
.g-body :where(.shot) + * { margin-top: 1.8em; }
.g-body .shot + .shot { margin-top: 2.1em; }
.g-body li > .shot { margin-top: 1.15em; }
.g-body li > .shot + .shot { margin-top: 1.9em; }
.g-body li > .shot:last-child { margin-bottom: 0.5em; }
.shot__lien { position: relative; display: block; width: min(100%, var(--l)); border-radius: 12px; overflow: hidden; background: var(--g-card); cursor: zoom-in; transition: opacity 120ms ease; }
.shot__lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--g-line); pointer-events: none; }
.shot__lien img { width: 100%; }
.shot__lien:active { opacity: 0.86; }
.shot__lien:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 12px; }
.shot figcaption { max-width: var(--g-col); margin-top: 0.75em; font-size: 0.9375rem; line-height: 1.45; letter-spacing: -0.008em; color: var(--ink-2); }
.shot__rep { display: grid; gap: 0.5em; margin-top: 0.7em; color: var(--ink); counter-reset: repere; }
.shot__rep li { position: relative; min-height: 1.5rem; padding-left: 2.125rem; counter-increment: repere; }
.shot__rep li::before { content: counter(repere); position: absolute; left: 0; top: calc((1.45em - 1.5rem) / 2); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #1665FF; color: #FFFFFF; font-size: 0.8125rem; font-stretch: 100%; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* guide précédent, guide suivant, retour à la catégorie */
.g-footnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: var(--g-col); margin-top: clamp(48px, 8vh, 88px); }
.fn { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: 20px 22px 22px; border-radius: 24px; background: var(--g-card); box-shadow: 0 0 0 1px var(--g-line); text-decoration: none; transition: transform 140ms var(--ease-out); }
.fn small { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-2); }
.fn small .icon { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.fn > span { font-size: clamp(1.125rem, 1.5vw, 1.25rem); font-weight: 650; line-height: 1.14; letter-spacing: -0.04em; text-wrap: balance; }
.fn b { display: block; margin-bottom: 4px; font-stretch: var(--wide); font-weight: 500; letter-spacing: -0.05em; color: var(--g-blue); }
.fn.prev { grid-column: 1; }
.fn.next { grid-column: 2; align-items: flex-end; text-align: right; background: var(--night); color: var(--white); box-shadow: none; }
.fn.next small { color: rgba(255, 255, 255, 0.72); }
.fn.next b { color: #8FB2F5; }
.fn.next:first-child, .fn.prev:nth-last-child(2) { grid-column: 1 / -1; }
.fn:active { transform: scale(0.985); }
.fn-all { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
  .fn.prev:hover small .icon { transform: translateX(-3px); }
  .fn.next:hover small .icon { transform: translateX(3px); }
  .fn-all:hover { color: var(--ink); }
}

/* à l'ordinateur : une colonne fine avec les guides de la même catégorie */
.gside { display: none; }
@media (min-width: 1100px) {
  .js body[data-view="guide"] main { display: grid; grid-template-columns: 15rem minmax(0, 50rem); column-gap: clamp(40px, 5.6vw, 88px); align-items: start; width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
  .js body[data-view="guide"] .gside { display: block; grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--nav-h) + 12px); max-height: calc(100svh - var(--nav-h) - 24px); margin-top: var(--g-top); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent 100%); }
  .js body[data-view="guide"] .gside::-webkit-scrollbar { display: none; }
  .js body[data-view="guide"] .gview.on { grid-column: 2; grid-row: 1; width: auto; margin: 0; }
}
.gside__nav[hidden] { display: none; }
.gside__h { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-2); text-decoration: none; }
.gside__h .icon { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.gside ol { display: grid; gap: 2px; margin-top: 6px; padding-bottom: 56px; }
.gside li a { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 2px; padding: 6px 12px; margin-left: -12px; border-radius: 12px; font-size: 0.9375rem; font-stretch: 100%; font-weight: 550; line-height: 1.28; letter-spacing: -0.01em; color: var(--ink-2); text-decoration: none; }
.gside li a b { font-weight: 600; opacity: 0.75; }
.gside li a[aria-current="page"] { background: rgba(12, 23, 48, 0.06); color: var(--ink); font-weight: 650; }
@media (hover: hover) and (pointer: fine) {
  .gside li a, .gside__h { transition: color 150ms ease; }
  .gside li a:hover, .gside__h:hover { color: var(--ink); }
  .gside__h:hover .icon { transform: translateX(-3px); }
}

/* ------------------------------------------------------------------ 4. Écrans moyens et téléphone */
@media (min-width: 768px) { .g-body { font-size: 1.125rem; } }
/* au-dessus du téléphone : les tableaux de quatre colonnes et plus prennent toute la largeur disponible */
@media (min-width: 821px) {
  .gview { width: min(100% - 2 * var(--gutter), 50rem); }
  .gview .v-head, .g-footnav { max-width: var(--g-col); }
  .g-body > .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"]) { max-width: none; }
  .tablewrap:is([data-cols="5"], [data-cols="6"]) :is(th, td) { padding-inline: 14px; }
  .tablewrap[data-cols="6"] { font-size: 0.9375rem; }
}
/* Les captures, selon la place.
   Tablette et ordinateur : l'image tient toujours dans la colonne (réduite s'il le faut, un clic l'ouvre en grand) ; une
   image étroite laisse sa légende se ranger à côté d'elle. Au-dessus de 820 px, une image s'arrête au bord du texte
   (--col : la colonne de lecture, moins le retrait de l'étape), sauf si cela la réduisait à moins de 72 % de sa taille :
   elle prend alors toute la largeur disponible, comme les grands tableaux.
   Téléphone : réduite à la largeur de l'écran, une capture de 1 150 px serait illisible. Si elle devait être réduite à
   moins de 70 % de sa taille, elle en garde au moins 75 % (640 px au minimum, jamais plus que sa taille réelle) et défile
   de côté dans son cadre, qui va d'un bord de l'écran à l'autre : la page, elle, ne défile jamais de côté. */
@media (min-width: 700px) {
  .shot { --col: calc(var(--g-col) - var(--retrait, 0px)); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75em 28px; }
  .shot__vue { flex: none; width: min(100%, var(--l), max(var(--col), (0.72 * var(--l) - var(--col)) * 9999)); }
  .shot__lien { width: 100%; }
  .shot figcaption { flex: 1 1 16rem; margin-top: 0; }
}
@media (min-width: 768px) { .shot figcaption { font-size: 1rem; } }
/* le tableau des lignes relevées sur Lolobuy (guide 23, data-releve) : à l'ordinateur, ses trois prix restent sur une ligne */
@media (min-width: 1280px) { .tablewrap[data-releve] tbody td:nth-child(3) { white-space: nowrap; } }
@media (max-width: 820px) { .tablewrap[data-releve] tbody td:nth-child(3).td-court { display: block; } }      /* en fiche : le nom de la colonne est long, les prix se lisent dessous */
@media (min-width: 821px) {
  .g-body > .shot { max-width: none; }
  @supports (width: 1cqi) { .g-body li > .shot { width: calc(100cqi - var(--retrait, 0px)); } }
}
@media (max-width: 699px) {
  .g-body li > .shot { margin-left: calc(-1 * var(--retrait, 0px)); }
  .shot__vue { margin: -6px calc(-1 * var(--gutter)); padding: 6px var(--gutter); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shot__vue::-webkit-scrollbar { display: none; }
  .shot__lien { width: max(min(100%, var(--l)), min(var(--l), max(640px, 0.75 * var(--l)), (0.7 * var(--l) - 100%) * 9999)); }
}
@media (max-width: 1000px) {
  .cat, .cat:nth-child(-n+2) { grid-column: span 3; }
  .cat:first-child { grid-column: 1 / -1; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vh, 40px); }
  .split__intro { position: static; }
  .ghelp__in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .gsearch__field { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.2); }
}
/* Téléphone et petite tablette : un tableau dont les cases portent du texte long devient une suite de fiches (la première
   case fait le titre, les autres reprennent le nom de leur colonne) : rien à faire défiler de côté. Les tableaux courts
   (des nombres) restent des tableaux, et défilent dans leur cadre s'il le faut. La classe .is-fiche est posée par le script. */
@media (max-width: 820px) {
  .tablewrap { border-radius: 18px; }
  .tcap { padding: 14px 16px; }
  .tablewrap th, .tablewrap td { padding: 12px 14px; }
  .tablewrap th { white-space: normal; vertical-align: bottom; }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .t-msg, .is-fiche) thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .t-msg, .is-fiche) :is(table, tbody) { display: block; }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .t-msg, .is-fiche) tr { display: block; padding: 14px 16px 12px; border-top: 1px solid var(--g-line); }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .t-msg, .is-fiche) td { display: block; padding: 5px 0; border: 0; white-space: normal; }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .is-fiche) td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .is-fiche) td:is(.td-short, .td-court) { display: grid; grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr); gap: 12px; }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .t-msg, .is-fiche) td:first-child { display: block; padding-bottom: 6px; font-size: 1.0625rem; font-weight: 680; color: var(--ink); }
  .tablewrap:is([data-cols="4"], [data-cols="5"], [data-cols="6"], .is-fiche) td:first-child::before { display: none; }
}
@media (max-width: 640px) {
  .gh { padding-top: calc(var(--nav-h) + 28px); padding-bottom: calc(44px + 36px); }
  .gh__title { font-size: clamp(2.375rem, 11.4vw, 2.875rem); }
  .gsearch__in { padding-left: 18px; gap: 10px; }
  .sheet { padding-top: 44px; }
  /* le parcours en liste : numéro, titre, flèche */
  .path { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid var(--g-line); }
  .pcard { grid-template-columns: 2.25rem minmax(0, 1fr) auto; grid-template-areas: "n t chip"; align-items: center; gap: 14px; min-height: 80px; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--g-line); }
  .pcard__n { font-size: 2.25rem; line-height: 1; }
  .pcard__t { max-width: none; font-size: 1.25rem; }
  .gh__stats { font-stretch: 92%; }
  .gh__stats > *:not(:last-child)::after { margin: 0 0.45em; }
  .cat__t { margin-top: 16px; }
  .cat__peek { margin-top: 16px; }
  .cats { margin-top: 64px; }
  .cats__grid, .more { gap: 12px; }
  .cat, .cat:nth-child(-n+2), .cat:first-child { grid-column: 1 / -1; min-height: 0; border-radius: 24px; }
  .cat__all { margin-top: 0; }
  .more { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .mcard { min-height: 0; border-radius: 24px; }
  .gcard { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0; }
  .gcard > .icon { display: none; }
  .lfilter { max-width: none; }
  /* lecture */
  .gview h1 { font-size: clamp(2rem, 9.4vw, 2.375rem); }
  .g-body ol.steps > li { padding-left: 2.75rem; --retrait: 2.75rem; }
  .g-body .gold { padding: 1em 1.1em 1.05em; border-radius: 18px; }
  .sf-card { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .sf-card::before { left: 19.5px; top: 40px; }
  .sf-node { width: 40px; height: 40px; }
  .sf-body { padding-top: 6px; }
  .kg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; }
  .kg span { font-size: 1.0625rem; }
  .g-footnav { grid-template-columns: minmax(0, 1fr); }
  .fn { min-height: 0; }
  .fn.prev, .fn.next { grid-column: 1; }
  .fn.next { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .chip, .chip .icon, .cat, .cat::before, .mcard, .pcard, .fn, .gbtn, .copy-link, .copy-link__ic .icon, .gcard > .icon, .linkcard > .icon, .v-crumb .icon { transition: none; }
  .term[data-flash="true"] { animation: none; background: var(--g-blue-soft); }
}
@media (prefers-reduced-transparency: reduce) {
  .gsearch__field { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.24); }
}
@media (prefers-contrast: more) {
  :root { --g-line: rgba(12, 23, 48, 0.4); }
  .cat::after { background: #081A3E; }
}
