/* Guide du site */
.gd-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 40px; }
.gd-sommaire { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.gd-sommaire-titre { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.gd-sommaire ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gd-sommaire a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text-dim); font-size: 13px; text-decoration: none; transition: background .15s, color .15s; }
.gd-sommaire a span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface3); font-size: 10px; font-weight: 700; flex-shrink: 0; }
.gd-sommaire a .mdi { font-size: 16px; }
.gd-sommaire a:hover { background: var(--hover); color: var(--text); }
.gd-sommaire a.is-actif { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-weight: 600; }
.gd-sommaire a.is-actif span { background: var(--accent); color: #fff; }

.gd-contenu { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.gd-section { --gd: var(--accent); scroll-margin-top: calc(var(--header-h) + 16px); padding: 24px 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); line-height: 1.7; }
.gd-bleu { --gd: var(--accent); } .gd-vert { --gd: var(--accent2); } .gd-rose { --gd: var(--accent3); }
.gd-orange { --gd: var(--accent4); } .gd-violet { --gd: var(--accent5); } .gd-cyan { --gd: var(--accent6); }
.gd-section > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gd-section > header > .mdi { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--gd) 14%, transparent); color: var(--gd); font-size: 22px; flex-shrink: 0; }
.gd-section h2 { margin: 0; padding: 0; border: 0; font-size: 18px; }
.gd-section h2::before { display: none; }
.gd-num { order: 3; margin-left: auto; font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 900; color: color-mix(in srgb, var(--gd) 22%, transparent); }
.gd-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--text); }
.gd-section h3 .mdi { color: var(--gd); font-size: 18px; }
.gd-section p { margin: 0 0 12px; }
.gd-section code { padding: 1px 6px; border-radius: 5px; background: var(--code-bg); font-size: .92em; }
.gd-section a:not(.btn):not(.gd-carte) { color: var(--gd); font-weight: 600; }

.gd-etapes { counter-reset: gd; list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-etapes > li { counter-increment: gd; position: relative; padding: 10px 14px 10px 50px; border-radius: 12px; background: var(--surface2); }
.gd-etapes > li::before { content: counter(gd); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gd); color: #fff; font-size: 12px; font-weight: 700; }
.gd-etapes > li strong { color: var(--text); }
.gd-etapes-petit > li { padding: 8px 12px 8px 46px; font-size: 14px; }
.gd-etapes-petit > li::before { top: 8px; width: 24px; height: 24px; }

.gd-liste { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-liste li { display: flex; gap: 12px; align-items: flex-start; }
.gd-liste li > .mdi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--gd) 12%, transparent); color: var(--gd); font-size: 17px; flex-shrink: 0; }
.gd-puces { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.gd-puces li { margin-bottom: 6px; }
.gd-puces li::marker { color: var(--gd); }

.gd-deux, .gd-trois { display: grid; gap: 18px; margin-bottom: 8px; }
.gd-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-deux > div, .gd-trois > div { padding: 16px; border-radius: 12px; background: var(--surface2); }

.gd-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.gd-carte { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.gd-carte:hover { border-color: var(--gd); transform: translateY(-2px); }
.gd-carte .mdi { font-size: 22px; color: var(--gd); }
.gd-carte strong { font-size: 14px; }
.gd-carte span { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.gd-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--gd) 10%, transparent); color: var(--text); font-size: 13px; }
.gd-chips .mdi { color: var(--gd); }

.gd-statuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 16px; }
.gd-statuts article { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface2); }
.gd-statuts article p { font-size: 13px; color: var(--text-dim); }
.gd-statuts ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.gd-statuts li { display: flex; gap: 6px; margin-bottom: 5px; }
.gd-statuts li .mdi { color: var(--accent2); }

.gd-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gd-astuce { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0 !important; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent4) 9%, transparent); font-size: 14px; }
.gd-astuce > .mdi { color: var(--accent4); font-size: 20px; flex-shrink: 0; }
.gd-encart { display: flex; gap: 14px; margin-top: 18px; padding: 16px; border: 1px dashed var(--border2); border-radius: 12px; font-size: 14px; }
.gd-encart > .mdi { font-size: 26px; color: var(--gd); }
.gd-encart strong:first-child { display: block; color: var(--text); }

.gd-progression { padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent2) 40%, var(--border)); border-radius: 16px; background: color-mix(in srgb, var(--accent2) 6%, var(--surface)); }
.gd-progression-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gd-progression-tete > .mdi { font-size: 26px; color: var(--accent2); }
.gd-progression-tete span { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--accent2); color: #fff; font-size: 12px; font-weight: 700; }
.gd-progression ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gd-progression a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text-dim); font-size: 13px; text-decoration: none; }
.gd-progression li.is-fait a { color: var(--text); }
.gd-progression li.is-fait .mdi { color: var(--accent2); }
.gd-fin { margin-top: 4px; }

@media (max-width: 980px) {
    .gd-page { grid-template-columns: 1fr; gap: 18px; }
    .gd-sommaire { position: static; max-height: none; }
    .gd-sommaire ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gd-trois, .gd-statuts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .gd-section { padding: 18px 16px; }
    .gd-deux { grid-template-columns: 1fr; }
    .gd-sommaire ol { grid-template-columns: 1fr; }
    .gd-num { font-size: 22px; }
}

/* tous les badges */
.gd-badges-titre { margin: 18px 0 2px !important; }
.gd-badges-titre span { padding: 0 7px; border-radius: 99px; background: var(--surface3); color: var(--text-dim); font-size: 11px; }
.gd-badges-texte { font-size: 13px; color: var(--text-dim); margin-bottom: 10px !important; }
.gd-badges { --bc: var(--accent); list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gd-badges li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface2); line-height: 1.45; }
.gd-badges li.is-gagne { border-color: color-mix(in srgb, var(--bc) 45%, var(--border)); background: color-mix(in srgb, var(--bc) 7%, var(--surface)); }
.gd-badge-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--bc) 15%, transparent); color: var(--bc); font-size: 18px; flex-shrink: 0; }
.gd-badges strong { display: block; font-size: 13px; color: var(--text); }
.gd-badges span:not(.gd-badge-ic) { display: block; font-size: 12px; color: var(--text-dim); }
.gd-badges small { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; color: var(--bc); }
.gd-badges small .mdi { font-size: 14px; }
.gd-badge-ok { color: var(--accent2); }

/* textes plus compacts */
.gd-hero p { font-size: 14px; }
.gd-section { font-size: 13.5px; line-height: 1.65; padding: 20px 22px; }
.gd-section h2 { font-size: 16px; }
.gd-section h3 { font-size: 13px; }
.gd-section > header > .mdi { width: 36px; height: 36px; font-size: 19px; border-radius: 10px; }
.gd-num { font-size: 22px; }
.gd-etapes > li { padding: 8px 12px 8px 44px; }
.gd-etapes > li::before { left: 11px; top: 8px; width: 22px; height: 22px; font-size: 11px; }
.gd-etapes-petit > li, .gd-puces, .gd-astuce, .gd-encart { font-size: 13px; }
.gd-liste li > .mdi { width: 26px; height: 26px; font-size: 15px; }
.gd-carte strong { font-size: 13px; }
.gd-carte span { font-size: 12px; }
.gd-chips span { font-size: 12px; }
.gd-sommaire a { font-size: 12.5px; padding: 6px 8px; }
