/* recherche.css : composants de la recherche (accueil, /agences/), du panneau de fiche et du guide. */
@keyframes rq-reflet { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rq-pop { from { opacity: .001; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rq-clign { 50% { opacity: 0; } }
@keyframes gd-points { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.rq-liste .enveloppe { justify-items: start; text-align: left; gap: 14px; }
.rq-liste h1 { font-size: clamp(30px, 4.2vw, 48px); max-width: none; }
.rq-liste .rq-halo { width: min(860px, 100%); }
.rq-liste .rq-boite textarea { font-size: 17px; min-height: 30px; }
.gd-titre { margin-bottom: 6px; }

/* ---------- accueil : la case ---------- */
.rq-une { padding-block: clamp(34px, 6vw, 72px) 20px; }
.rq-une .enveloppe { display: grid; justify-items: center; text-align: center; gap: 20px; }
.rq-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--encre-2); background: var(--carte); border: 1px solid var(--trait); border-radius: 999px; padding: 6px 12px 6px 10px; margin: 0; }
.rq-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); animation: pouls 2.2s infinite; flex: none; }
.rq-une h1 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 0; max-width: 17ch; text-wrap: balance; }
.rq-une h1 em { font-style: normal; background: linear-gradient(90deg, var(--a1), var(--a2) 45%, var(--a4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rq-chapo { margin: 0; font-size: 18px; color: var(--encre-2); max-width: 54ch; }
.rq-halo { position: relative; isolation: isolate; width: min(780px, 100%); border-radius: 24px; padding: 2px; background: conic-gradient(from var(--ang), var(--a1), var(--a2), var(--a3), var(--a4), var(--a1)); animation: tourne 9s linear infinite; text-align: left; }
.rq-halo::before { content: ""; position: absolute; inset: -16px; border-radius: 34px; background: inherit; filter: blur(26px); opacity: .3; z-index: -1; transition: opacity .4s; }
.rq-halo.pense { animation-duration: 1.4s; }
.rq-halo.pense::before { opacity: .7; }
.rq-boite { background: var(--carte); border-radius: 22px; }
.rq-boite .rq-ligne { display: flex; align-items: flex-end; gap: 10px; padding: 14px 14px 10px 20px; }
.rq-boite textarea { flex: 1; border: 0; outline: 0; resize: none; font: inherit; font-size: 19px; line-height: 1.45; color: var(--encre); background: transparent; min-height: 58px; max-height: 150px; field-sizing: content; padding: 4px 0; }
.rq-boite textarea::placeholder { color: #71767E; }
.rq-envoi { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--encre); color: #fff; font-size: 20px; cursor: pointer; flex: none; display: grid; place-items: center; transition: transform .15s; }
.rq-envoi:hover { transform: scale(1.06); }
.rq-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 0 20px 12px; font-size: 12.5px; color: var(--encre-2); }
.rq-pied .m { font-family: var(--chiffre); }
.rq-sugg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 840px; }
.rq-sugg a { border: 1px solid var(--trait); background: var(--carte); color: var(--encre); text-decoration: none; border-radius: 999px; padding: 8px 14px; font-size: 14px; transition: border-color .15s, transform .15s; }
.rq-sugg a:hover { border-color: var(--encre); transform: translateY(-1px); }
.rq-sugg a::after { content: " ↗"; color: var(--a2); }
.rq-porte { margin: 2px 0 0; font-size: 15px; color: var(--encre-2); }
.rq-porte a { font-weight: 600; color: var(--encre); }
.rq-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 1080px; margin-top: 14px; text-align: left; }
.rq-chiffre { background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; padding: 18px 20px; display: grid; gap: 6px; color: var(--encre); text-decoration: none; transition: border-color .15s, transform .2s; }
.rq-chiffre:hover { border-color: var(--encre); transform: translateY(-2px); }
.rq-chiffre b { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rq-chiffre span { font-size: 14px; color: var(--encre-2); }
.rq-chiffre small { font-size: 12.5px; color: var(--encre-2); margin-top: 4px; }
.rq-points { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.rq-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--trait); }
.rq-points i.o { background: var(--encre); }
.rq-une.cherche { padding-block: 18px 6px; }
.rq-une.cherche .enveloppe > :not(.rq-halo) { display: none; }

/* ---------- résultats ---------- */
.rq-res { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 26px; padding-block: 12px 40px; align-items: start; }
.rq-res[hidden] { display: none; }
.rq-cote { position: sticky; top: 74px; display: grid; gap: 18px; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 4px; }
.rq-l { font: 600 11.5px var(--chiffre); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); margin: 0 0 8px; display: flex; align-items: center; gap: 7px; }
.rq-compris { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-compris button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--encre); color: #fff; font: inherit; font-size: 13.5px; padding: 6px 8px 6px 12px; cursor: pointer; animation: rq-pop .35s cubic-bezier(.2,.8,.2,1); }
.rq-compris button span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); font-size: 12px; }
.rq-compris .vide { font-size: 13.5px; color: var(--encre-2); }
.rq-facettes details { border-top: 1px solid var(--trait-2); }
.rq-facettes summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 10px 2px; font-weight: 600; font-size: 14px; }
.rq-facettes summary::-webkit-details-marker { display: none; }
.rq-facettes summary::after { content: "+"; color: var(--encre-2); }
.rq-facettes details[open] summary::after { content: "–"; }
.rq-fac { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; background: none; color: var(--encre); padding: 6px 4px; border-radius: 8px; font: inherit; font-size: 13.5px; cursor: pointer; }
.rq-fac:hover { background: var(--carte); }
.rq-fac i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #9EA3AB; }
.rq-fac[aria-pressed="true"] i { background: var(--encre); border-color: var(--encre); box-shadow: inset 0 0 0 3px var(--carte); }
.rq-fac b { font: 500 12px var(--chiffre); color: var(--encre-2); }
.rq-fac.zero { color: #7C818A; }
.rq-rep { background: var(--carte); border: 1px solid var(--trait); border-radius: 20px; padding: 20px 22px; display: grid; gap: 12px; box-shadow: var(--ombre); }
.rq-rep-t { font-size: 17.5px; line-height: 1.6; margin: 0; max-width: none; }
.rq-rep-t .note { display: block; font-size: 14px; color: var(--ambre-texte); background: var(--ambre-fond); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.nom-lien { font-weight: 600; color: var(--encre); text-decoration: underline; text-decoration-color: var(--a2); text-underline-offset: 3px; }
.rq-pense { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; background: linear-gradient(90deg, var(--encre-2) 30%, var(--a2) 50%, var(--encre-2) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rq-reflet 1.4s linear infinite; }
.curseur { display: inline-block; width: 8px; height: 1.05em; background: var(--a2); vertical-align: -2px; margin-left: 2px; animation: rq-clign .8s steps(1) infinite; border-radius: 2px; }
.etincelle { width: 14px; height: 14px; flex: none; display: inline-block; background: conic-gradient(from 45deg, var(--a1), var(--a2), var(--a4), var(--a1)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.rq-relances { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-relances button { border: 1px dashed #9EA3AB; background: none; color: var(--encre); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.rq-relances button:hover { border-style: solid; border-color: var(--encre); }
.rq-rep-pied { font-size: 12.5px; color: var(--encre-2); margin: 0; max-width: none; }
.rq-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: end; }
.rq-stat b { font-size: 76px; font-weight: 600; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.rq-stat p { margin: 0; font-size: 17px; }
.rq-stat small { grid-column: 1 / -1; color: var(--encre-2); }
.rq-stat .rq-points { grid-column: 1 / -1; }
.rq-stat .rq-points i { width: 10px; height: 10px; }
.rq-titre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 26px 0 12px; }
.rq-titre h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.rq-titre span { font-size: 13px; color: var(--encre-2); }
.rq-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.rq-carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; padding: 16px 16px 14px; display: grid; gap: 12px; align-content: start; transition: box-shadow .2s, transform .2s, border-color .2s; }
.rq-carte:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(11,12,14,.4); }
.rq-carte.sel { border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre); }
.rq-carte-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rq-carte-h a { color: var(--encre); text-decoration: none; }
.rq-carte-h a:hover { text-decoration: underline; }
.rq-carte-h b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.rq-carte-h small { display: block; font-size: 13px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-score { font: 600 12px var(--chiffre); border-radius: 999px; padding: 4px 9px; background: var(--ok-fond); color: var(--ok); white-space: nowrap; }
.rq-score.presque { background: var(--ambre-fond); color: var(--ambre-texte); }
.pq { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; border-radius: 8px; padding: 3px 8px; margin: 0 4px 4px 0; }
.pq b { font-size: 11px; }
.pq.ok { background: var(--ok-fond); color: var(--ok); }
.pq.ko { background: var(--ko-fond); color: var(--ko); }
.rq-carte-p { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--trait-2); padding-top: 10px; }
.rq-act { display: flex; gap: 6px; }
.rq-act button, .rq-act a { border: 1px solid var(--trait); background: var(--carte); color: var(--encre); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.rq-act button:hover, .rq-act a:hover { border-color: var(--encre); }
.rq-act button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.rq-tout { border: 1px solid var(--trait); background: var(--carte); color: var(--encre); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; margin-top: 12px; }
.emp { display: inline-flex; gap: 5px; }
.emp span { display: inline-flex; gap: 2px; }
.emp i { width: 5px; height: 14px; border-radius: 2px; background: var(--trait); }
.emp i.o { background: var(--encre); }
.emp i.n { background: repeating-linear-gradient(0deg, var(--trait) 0 2px, transparent 2px 4px); }
.mono-tuile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none; }
.s-chatbot { background: #DCEEFF; color: #164F8C; } .s-vocal { background: #FFE3D9; color: #9A3A22; } .s-auto { background: #DBF4E5; color: #17683F; } .s-gen { background: #ECEAF1; color: #454A56; } .s-conseil { background: #FFF0C7; color: #765400; }
.tag-ed { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--ambre-fond); color: var(--ambre-texte); vertical-align: 2px; white-space: nowrap; }
.rq-plateau { position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; display: flex; align-items: center; gap: 12px; background: var(--encre); color: #fff; border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); font-size: 14px; }
.rq-plateau.vu { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.rq-plateau .mono-tuile { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; margin-left: -8px; border: 2px solid var(--encre); }
.rq-plateau .mono-tuile:first-of-type { margin-left: 0; }
.rq-plateau button { border: 0; border-radius: 999px; background: #fff; color: var(--encre); padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.rq-plateau button:disabled { opacity: .5; cursor: default; }
.rq-plateau .vider { background: transparent; color: #fff; padding: 8px; }

/* ---------- panneau latéral (fiche, comparaison) ---------- */
.fp-voile { position: fixed; inset: 0; z-index: 50; background: rgba(11,12,14,.3); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.fp-voile.vu { opacity: 1; pointer-events: auto; }
.fp { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(600px, 100vw); background: var(--carte); box-shadow: -30px 0 60px -30px rgba(0,0,0,.35); transform: translateX(104%); transition: transform .45s cubic-bezier(.2,.8,.2,1); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; }
.fp.vu { transform: none; visibility: visible; }
.fp.large { width: min(960px, 100vw); }
.fp-fermer { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; border: 1px solid var(--trait); background: var(--carte); color: var(--encre); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.fi { padding: 22px 24px 40px; display: grid; gap: 20px; }
.fi-tete { display: flex; gap: 14px; align-items: center; }
.fi-tete .mono-tuile { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.fi-sur { margin: 0; font: 12px var(--chiffre); color: var(--encre-2); }
.fi-nom { margin: 2px 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.fi-id { margin: 0; font-size: 14px; color: var(--encre-2); }
.fi-l { font: 600 11.5px var(--chiffre); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); margin: 0 0 8px; display: flex; gap: 7px; align-items: center; }
.fi-resume { background: linear-gradient(135deg, rgba(22,194,163,.08), rgba(63,167,255,.08) 50%, rgba(255,107,90,.07)); border-radius: 16px; padding: 16px 18px; }
.fi-portrait { margin: 0; font-size: 16px; line-height: 1.65; max-width: none; }
.cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 5px; background: var(--encre); color: #fff; font: 600 10.5px var(--chiffre); text-decoration: none; vertical-align: 2px; margin-left: 2px; padding: 0 3px; }
.cite:hover { background: var(--accent); color: #fff; }
.fi-src { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 12.5px; max-width: none; }
.fi-src a { text-decoration: none; color: var(--encre-2); }
.fi-src b { font: 600 10.5px var(--chiffre); background: var(--encre); color: #fff; border-radius: 4px; padding: 1px 4px; margin-right: 3px; }
.fi-form { display: flex; gap: 8px; border: 1px solid var(--trait); border-radius: 14px; padding: 6px 6px 6px 14px; background: var(--carte); }
.fi-form:focus-within { border-color: var(--encre); }
.fi-form input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; min-width: 0; color: var(--encre); }
.fi-form button { border: 0; background: var(--encre); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.fi-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fi-sugg button { border: 1px solid var(--trait); background: none; color: var(--encre); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.fi-sugg button:hover { border-color: var(--encre); }
.fi-reponse:not(:empty) { margin-top: 12px; border-left: 3px solid var(--a2); padding: 4px 0 4px 14px; display: grid; gap: 8px; font-size: 15px; }
.fi-reponse p { margin: 0; max-width: none; }
.fi-q { font-weight: 600; }
.fi-rl blockquote { margin: 4px 0; color: var(--encre-2); font-size: 14px; }
.fi-prov { font: 11.5px var(--chiffre); color: var(--encre-2); }
.fi-fam { border-top: 1px solid var(--trait-2); padding-block: 10px; }
.fi-fam > p { margin: 0 0 6px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; max-width: none; }
.fi-fam > p span { font: 500 12px var(--chiffre); color: var(--encre-2); }
.fi-k { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.fi-k i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--encre); }
.fi-k i.o { background: var(--encre); }
.fi-k i.n { border-style: dashed; border-color: #9EA3AB; }
.fi-k b { font-weight: 500; text-align: right; }
.fi-k small { grid-column: 2 / -1; font-size: 12px; color: var(--encre-2); }
.fi-liens { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp { padding: 24px; display: grid; gap: 18px; }
.cmp-tetes { display: grid; grid-template-columns: 200px repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.cmp-tetes::before { content: ""; }
.cmp-tetes div { display: grid; gap: 4px; justify-items: start; }
.cmp-tetes b { font-size: 17px; }
.cmp-tetes small { color: var(--encre-2); }
.cmp-ia { background: linear-gradient(135deg, rgba(22,194,163,.08), rgba(63,167,255,.08) 50%, rgba(255,107,90,.07)); border-radius: 16px; padding: 16px 18px; }
.cmp-ia ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.cmp-commun { margin: 10px 0 0; font-size: 13.5px; color: var(--encre-2); max-width: none; }
.cmp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-t th { text-align: left; font-weight: 500; color: var(--encre-2); width: 200px; padding: 8px 12px 8px 0; }
.cmp-t td { padding: 8px 12px; border-bottom: 1px solid var(--trait-2); }
.cmp-t td.o { color: var(--ok); font-weight: 600; }
.cmp-t td.x { color: var(--ko); }

/* ---------- portrait en tête de fiche (page) ---------- */
.fiche-ia { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.fiche-ia > section { background: var(--carte); border: 1px solid var(--trait); border-radius: 20px; padding: 18px 20px; box-shadow: var(--ombre); }
.fiche-ia > [data-fiche-qr] { background: var(--carte); border: 1px solid var(--trait); border-radius: 20px; padding: 18px 20px; box-shadow: var(--ombre); }
.fiche-ia .fi-resume { box-shadow: none; border: 0; background: linear-gradient(135deg, rgba(22,194,163,.1), rgba(63,167,255,.1) 50%, rgba(255,107,90,.08)); }

/* ---------- le guide ---------- */
.gd { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: 24px; box-shadow: var(--ombre); overflow: hidden; height: min(820px, calc(100vh - 150px)); min-height: 560px; margin-top: 16px; }
.gd-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-right: 1px solid var(--trait-2); min-height: 0; }
.gd-chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--trait-2); }
.gd-chat-h .rq-point { width: 34px; height: 34px; }
.gd-chat-h b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.gd-chat-h small { display: block; font-size: 12.5px; color: var(--encre-2); }
.rq-point { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from var(--ang), var(--a1), var(--a2), var(--a3), var(--a4), var(--a1)); animation: tourne 6s linear infinite; flex: none; }
.gd-fil { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.gd-msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: rq-pop .35s cubic-bezier(.2,.8,.2,1); }
.gd-msg.bot { align-self: flex-start; background: #F1F1EE; border-top-left-radius: 6px; }
.gd-msg.moi { align-self: flex-end; background: var(--encre); color: #fff; border-top-right-radius: 6px; }
.gd-msg .compte { font-weight: 700; background: linear-gradient(90deg, rgba(22,194,163,.25), rgba(63,167,255,.25)); border-radius: 5px; padding: 0 5px; }
.gd-msg.large { max-width: 100%; width: 100%; background: transparent; padding: 0; }
.gd-tape { display: inline-flex; gap: 4px; padding: 14px 16px; }
.gd-tape i { width: 7px; height: 7px; border-radius: 50%; background: var(--encre-2); animation: gd-points 1s infinite; }
.gd-tape i:nth-child(2) { animation-delay: .15s; } .gd-tape i:nth-child(3) { animation-delay: .3s; }
.gd-choix { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; }
.gd-choix button { border: 1px solid var(--trait); background: var(--carte); color: var(--encre); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14.5px; cursor: pointer; transition: border-color .15s, background-color .15s; display: inline-flex; gap: 6px; align-items: center; }
.gd-choix button:hover { border-color: var(--encre); }
.gd-choix button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.gd-choix button small { font: 12px var(--chiffre); color: var(--encre-2); }
.gd-choix button[aria-pressed="true"] small { color: #C9CDD3; }
.gd-choix .valider { background: var(--encre); color: #fff; border-color: var(--encre); }
.gd-saisie { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--trait-2); }
.gd-saisie input { flex: 1; min-width: 0; border: 1px solid var(--trait); border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 15px; outline: 0; background: var(--carte); color: var(--encre); }
.gd-saisie input:focus { border-color: var(--encre); }
.gd-saisie button { border: 0; border-radius: 14px; background: var(--encre); color: #fff; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; }
.gd-marche { min-height: 0; overflow-y: auto; padding: 20px 24px 28px; background: var(--papier); display: grid; align-content: start; gap: 14px; }
.gd-marche-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: end; }
.gd-marche-h p { margin: 0; font: 12px var(--chiffre); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.gd-marche-h h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.025em; line-height: 1.1; }
.gd-compte { text-align: right; }
.gd-compte b { display: block; font-size: 80px; font-weight: 600; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.gd-compte span { font-size: 13px; color: var(--encre-2); }
.gd-histoire { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 13px var(--chiffre); color: var(--encre-2); min-height: 20px; }
.gd-histoire b { color: var(--encre); background: var(--carte); border: 1px solid var(--trait); border-radius: 6px; padding: 1px 6px; }
.gd-actifs { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.gd-actifs button { border: 0; background: var(--encre); color: #fff; border-radius: 999px; padding: 5px 8px 5px 12px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.gd-actifs button span { background: rgba(255,255,255,.18); border-radius: 50%; width: 17px; height: 17px; display: grid; place-items: center; font-size: 11px; }
.gd-mur { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.gd-tuile { border: 1px solid var(--trait); background: var(--carte); color: var(--encre); border-radius: 14px; padding: 12px 8px 10px; display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1), filter .6s, border-color .3s, box-shadow .3s; font: inherit; text-decoration: none; width: 100%; }
.gd-tuile b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.gd-tuile span { font-size: 11px; line-height: 1.2; color: var(--encre-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-tuile.dedans { border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre), 0 10px 22px -16px rgba(63,167,255,.8); }
.gd-tuile.hors { opacity: .22; transform: scale(.92); filter: grayscale(1); }
.gd-tuile:hover { transform: translateY(-2px); }
.gd-tuile.hors:hover { opacity: .55; }
.gd-selec { display: grid; gap: 12px; }
.gd-selec h3 { margin: 0; font-size: 19px; }
.gd-selec > p { margin: -4px 0 0; font-size: 14px; color: var(--encre-2); max-width: none; }
.gd-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.gd-carte { border: 1px solid var(--trait); border-radius: 20px; background: var(--carte); overflow: hidden; display: grid; position: relative; box-shadow: var(--ombre); }
.gd-carte::before { content: ""; height: 4px; background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3), var(--a4)); }
.gd-carte-h { padding: 12px 16px 4px; display: flex; gap: 10px; align-items: center; }
.gd-carte-h b { display: block; font-size: 17px; letter-spacing: -.02em; }
.gd-carte-h small { font-size: 13px; color: var(--encre-2); }
.gd-carte ul { list-style: none; margin: 0; padding: 8px 16px; display: grid; gap: 5px; font-size: 14px; }
.gd-carte li::before { content: "✓ "; font-weight: 700; color: var(--ok); }
.gd-carte li.ko::before { content: "✗ "; color: var(--ko); }
.gd-carte-p { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 16px 14px; }
.gd-carte-p button, .gd-carte-p a { border: 1px solid var(--trait); background: var(--carte); color: var(--encre); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 500; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.gd-carte-p button:hover, .gd-carte-p a:hover { border-color: var(--encre); }
.gd-brief { border: 1px solid var(--trait); border-radius: 20px; background: var(--carte); padding: 16px 18px; display: grid; gap: 10px; box-shadow: var(--ombre); }
.gd-brief-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gd-brief pre { margin: 0; white-space: pre-wrap; font: 13.5px/1.55 var(--chiffre); background: var(--papier); border: 1px solid var(--trait-2); border-radius: 14px; padding: 14px; max-height: 280px; overflow: auto; }
.gd-brief button { border: 0; background: var(--encre); color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.gd-lien { border: 0; background: none; color: var(--encre); text-decoration: underline; text-decoration-color: var(--a1); text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 0; }

/* ---------- petits écrans ---------- */
@media (max-width: 900px) {
  .rq-res { grid-template-columns: 1fr; }
  .rq-cote { position: static; max-height: none; overflow: visible; }
  .rq-facettes { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .rq-facettes details { border: 1px solid var(--trait); border-radius: 14px; flex: none; padding: 0 12px; background: var(--carte); }
  .rq-chiffres { grid-template-columns: 1fr; }
  .fiche-ia { grid-template-columns: 1fr; }
  .gd { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 110px); }
  .gd-chat { order: 2; border-right: 0; }
  .gd-marche { order: 1; padding: 10px 14px; gap: 6px; border-bottom: 1px solid var(--trait-2); max-height: 210px; }
  .gd-marche-h h2, .gd-marche-h p, .gd-actifs, .gd-histoire { display: none; }
  .gd-compte { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .gd-compte b { font-size: 36px; }
  .gd-mur { grid-template-columns: repeat(auto-fill, minmax(24px, 1fr)); gap: 4px; }
  .gd-tuile { padding: 0; aspect-ratio: 1; border-radius: 6px; }
  .gd-tuile b { font-size: 9px; }
  .gd-tuile span { display: none; }
  .gd-marche .gd-selec, .gd-marche .gd-brief, .gd-marche .gd-lien { display: none; }
  .cmp-tetes { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .cmp-tetes::before { display: none; }
  .cmp-t th { width: auto; }
}
@media (max-width: 560px) {
  nav.site a:not(.porte-guide):not([aria-current]) { display: none; }
  .rq-boite textarea { font-size: 17px; min-height: 76px; }
  .rq-stat b { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) { .rq-compris button, .gd-msg, .gd-tuile, .fp, .rq-plateau { animation: none !important; transition: none !important; } }
