/* Layout : bandeau vert, en-tête logo, colonne centrée de 640px — outil, résultat, pub iCox, puis contenu d'aide. Thème clair unique, comme cpix.fr. */
@font-face { font-family: "Quicksand"; font-weight: 500; font-display: swap; src: url("fonts/quicksand-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 600; font-display: swap; src: url("fonts/quicksand-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-display: swap; src: url("fonts/quicksand-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
:root {
  --ink: #1d1d1b;
  --text: #3b3b38;
  --mut: #6d6d69;
  --ln: #e4e4e1;
  --bg: #ffffff;
  --band: #f5f5f3;
  --g: #6b9a1f;
  --g-dk: #4e7614;
  --g-soft: #eef4e1;
  --or: #c45a1e;
  --bad: #b42318;
  --blue: #3a648f;
  --f: "Quicksand", "Nunito", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.in { max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.bar { background: var(--g); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding-block: 8px; line-height: 1.35; }
.top { border-bottom: 1px solid var(--ln); }
.top .in { padding-block: 14px; }
.logo { display: inline-flex; align-items: flex-end; gap: 12px; text-decoration: none; }
.logo img { height: 48px; width: auto; display: block; }
.logo .tag { font-size: 12px; font-weight: 600; color: var(--mut); line-height: 1.3; padding-bottom: 3px; }
.fr { display: inline-block; width: 15px; height: 10px; vertical-align: -1px; background: linear-gradient(90deg, #1f4fa3 0 33.3%, #fff 33.3% 66.6%, #d4232c 66.6%); box-shadow: 0 0 0 1px #e0e0dc; }

main .in { padding-block: 24px 40px; display: grid; gap: 14px; }
h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.lead { margin: -6px 0 6px; font-size: 14px; color: var(--mut); }

form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.lab { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mut); }
.help { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--f); color: var(--g-dk); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.help .q { width: 18px; height: 18px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; font-size: 11px; }
.field { border: 3px solid var(--g); border-radius: 16px; display: flex; align-items: center; padding: 4px 4px 4px 14px; gap: 4px; background: #fff; }
.field:focus-within { box-shadow: 0 0 0 4px var(--g-soft); }
#q { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 16px var(--f); padding: 10px 0; }
#q.digits { font: 500 16px var(--mono); letter-spacing: .03em; }
#q:focus { outline: none; }
#q::placeholder { color: #9a9a95; font-weight: 500; }
.cam { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--mut); cursor: pointer; position: relative; }
.cam:hover { background: var(--band); color: var(--ink); }
.cam input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.go { flex: none; background: var(--g); color: #fff; border: 0; border-radius: 11px; padding: 12px 16px; font: 700 15px var(--f); cursor: pointer; }
.go:hover { background: var(--g-dk); }
button:focus-visible, a:focus-visible, .cam:focus-within { outline: 2px solid var(--g-dk); outline-offset: 2px; }
.hint { font-size: 13px; color: var(--mut); min-height: 20px; font-variant-numeric: tabular-nums; }

.bubble { position: absolute; z-index: 6; top: 34px; right: 0; width: 320px; max-width: 100%; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.5; display: grid; gap: 8px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }
.bubble::before { content: ""; position: absolute; top: -6px; right: 56px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.bubble strong { font-size: 14px; }
.bubble ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.bubble kbd { font: 500 12px var(--mono); background: rgba(255,255,255,.14); border-radius: 4px; padding: 1px 5px; }
.bubble .tip { color: #c9e39a; }
.bubble .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #fff; opacity: .7; font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; }

.suggest { position: absolute; z-index: 5; top: 92px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--ln); border-radius: 14px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.3); max-height: 330px; overflow-y: auto; }
.suggest li { padding: 10px 12px; border-radius: 9px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--g-soft); }
.suggest .s-name { font-weight: 700; min-width: 0; }
.suggest .s-name small { color: var(--mut); font-weight: 600; }
.suggest .s-ref { font: 500 12px var(--mono); color: var(--mut); flex: none; }
.suggest .s-empty { color: var(--mut); cursor: default; }
.suggest .s-empty:hover { background: none; }

.card { border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; }
.card .hd { padding: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.card .br { font-size: 13px; color: var(--mut); font-weight: 600; }
.card .md { margin: 2px 0 0; font-size: 24px; font-weight: 700; line-height: 1.15; }
.tg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tg span { background: var(--g-soft); color: var(--g-dk); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.ok-badge { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--g-soft); color: var(--g-dk); display: grid; place-items: center; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--ln); font-size: 14px; }
.rows dt { color: var(--mut); }
.rows dd { margin: 0; font: 500 13px var(--mono); text-align: right; overflow-wrap: anywhere; min-width: 0; }
.ok { color: var(--g-dk); font-family: var(--f) !important; font-weight: 700; }
.bad { color: var(--bad); font-family: var(--f) !important; font-weight: 700; }
.unk { padding: 16px; display: grid; gap: 6px; font-size: 14px; color: var(--text); }
.unk b { font-size: 18px; color: var(--ink); }
.cta { display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--g); color: #fff; padding: 15px 16px; border-radius: 14px; font-weight: 700; font-size: 16px; text-align: center; line-height: 1.25; text-decoration: none; }
.cta:hover { background: var(--g-dk); }
.trust { display: flex; justify-content: space-between; gap: 6px 12px; font-size: 12px; color: var(--mut); font-weight: 600; flex-wrap: wrap; }

.icox { border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; display: grid; text-decoration: none; margin-top: 6px; }
.icox-top { display: flex; gap: 14px; align-items: center; padding: 12px 14px; }
.icox-top img { height: 40px; width: auto; flex: none; }
.icox-top div { font-size: 14px; font-weight: 700; line-height: 1.3; min-width: 0; }
.icox-top small { display: block; color: var(--mut); font-weight: 600; font-size: 12px; }
.icox-cta { background: var(--or); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 14px; display: flex; justify-content: space-between; }
.icox:hover .icox-cta { filter: brightness(1.08); }

.seo { border-top: 8px solid var(--band); }
.seo .in { padding-block: 28px 32px; display: grid; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--text); }
.seo h2 { margin: 8px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.seo h2:first-child { margin-top: 0; }
.seo p { margin: 0; max-width: 65ch; }
.seo .ans { background: var(--g-soft); border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.seo ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.faq { border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--ln); }
.faq summary { padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mut); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 14px 14px; font-size: 14px; }
footer.foot { border-top: 1px solid var(--ln); }
footer.foot .in { padding-block: 18px 28px; font-size: 13px; color: var(--mut); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
footer.foot a { color: var(--mut); }

/* Pages modèles et liste */
.crumb { font-size: 13px; color: var(--mut); font-weight: 600; }
.crumb a { color: var(--mut); }
.crumb b { color: var(--g-dk); }
.facts .rows div:first-child { border-top: 0; }
.back { font-size: 14px; font-weight: 700; color: var(--g-dk); }
.brands { display: grid; gap: 18px; }
.brands h2 { margin: 0 0 6px; font-size: 17px; }
.brands ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.brands a { color: var(--g-dk); text-decoration: none; font-weight: 600; }
.brands a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) { .card { animation: in .2s ease-out; } @keyframes in { from { opacity: .4; transform: translateY(3px) } to { opacity: 1; transform: none } } }

/* ---------- v3 : en-tête allégé, textes centrés, résultat en carte, iCox bleu ---------- */
.bar { font-size: clamp(11px, 3.2vw, 13px); padding-inline: 8px; }
.top .in { display: flex; justify-content: center; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.logo img { height: 44px; }
.pill { font-size: 12px; font-weight: 700; color: var(--g-dk); background: var(--g-soft); border-radius: 999px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.pill:hover { background: #e2edcc; }
main .in, .seo .in, footer.foot .in { text-align: center; }
h1 { font-size: clamp(22px, 6.2vw, 27px); }
.lead { margin: -6px auto 6px; }
.lab { justify-content: center; flex-wrap: wrap; gap: 2px 14px; }
.bubble { left: 50%; right: auto; transform: translateX(-50%); text-align: left; }
.bubble::before { right: auto; left: 50%; margin-left: 60px; }
#q { text-align: center; }
.card { text-align: center; }
.card .hd { flex-direction: column; justify-content: center; gap: 10px; padding: 20px 16px 6px; }
.card .ph { display: block; }
.tg { justify-content: center; }
.tg .t-ok { display: inline-flex; align-items: center; gap: 3px; }
.tg .t-ok svg { width: 14px; height: 14px; }
.tg .t-bad { background: #fdecea; color: var(--bad); }
.acts { padding: 12px 16px 16px; display: grid; gap: 10px; }
.share { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: #fff; color: var(--g-dk); border: 1.5px solid var(--ln); border-radius: 12px; padding: 11px 14px; font: 700 14px var(--f); cursor: pointer; }
.share:hover { border-color: var(--g); background: var(--g-soft); }
.unk { text-align: center; justify-items: center; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: 12.5px; }
.trust span { display: grid; justify-items: center; gap: 4px; }
.trust svg { color: var(--g-dk); }
.icox { background: var(--blue); color: #fff; border: 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; }
.icox img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px 6px; }
.icox-txt { display: grid; gap: 2px; text-align: center; min-width: 0; }
.icox-txt b { font-size: 15px; line-height: 1.25; }
.icox-txt small { font-size: 12px; opacity: .85; }
.icox-go { font-size: 20px; }
.icox:hover { filter: brightness(1.08); }
.seo p { margin-inline: auto; }
.seo ol { list-style-position: inside; padding: 0; }
.faq summary { justify-content: center; position: relative; padding-inline: 34px; }
.faq summary::after { position: absolute; right: 14px; }
footer.foot .in { flex-direction: column; align-items: center; }
.crumb { text-align: center; }
.brands h2, .brands ul { justify-content: center; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#q:focus::placeholder { color: transparent; }
#q::placeholder { font-size: clamp(13px, 4vw, 16px); }
h1 { font-size: clamp(20px, 5.4vw, 24px); }
