/* ==========================================================================
   comparateur-banqueenligne.fr — Dashboard fintech, fond crème chaleureux
   ========================================================================== */

:root {
  --cream:        #FBF4E9;
  --cream-deep:   #F4E9D6;
  --paper:        #FFFFFF;
  --ink:          #241C3D;
  --muted:        #6B6280;
  --muted-dim:    #948C9F;
  --line:         #E9DFC9;
  --line-soft:    #F0E7D3;

  --primary:      #6C4CF1;
  --primary-deep: #4B2FD6;
  --primary-soft: #EFEAFD;

  --accent:       #FF3D9A;
  --accent-deep:  #E01C7C;
  --accent-soft:  #FFE6F2;

  --mark:         #FFB020;
  --mark-ink:     #5C3A00;
  --mark-soft:    #FFF1DA;

  --positive:     #17A673;
  --positive-soft:#E4F7EF;
  --negative:     #E1483D;
  --negative-soft:#FCEAE8;

  --surface:      var(--paper);
  --text:         var(--ink);

  --r-panel: 22px;
  --r-box:   16px;
  --r-ctrl:  12px;
  --r-tag:   8px;

  --lift:  0 1px 2px rgba(90,60,20,.04), 0 16px 32px -18px rgba(108,76,241,.28);
  --glow:  0 1px 2px rgba(90,60,20,.05), 0 22px 45px -20px rgba(255,61,154,.35);

  --wrap: 80rem;
  --prose: 76ch;
  --ease: cubic-bezier(.22,.61,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background:
    radial-gradient(48rem 32rem at 92% -8%, rgba(255,61,154,.10), transparent 60%),
    radial-gradient(42rem 30rem at -5% 8%, rgba(108,76,241,.10), transparent 55%),
    var(--cream);
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); max-width: 24ch; }
main > .wrap > h1:first-child { padding-top: 2.4rem; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); margin-top: 2.6rem; }
h3 { font-size: 1.18rem; margin-top: 1.7rem; letter-spacing: -0.015em; }

p, ul, ol { margin: 0 0 1.1rem; text-wrap: pretty; }
.prose { max-width: var(--prose); color: var(--muted); }
.prose h3 { color: var(--ink); }
.prose li { margin-bottom: .5rem; }

.lede {
  font-size: clamp(1.02rem, .96rem + .3vw, 1.12rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.6rem;
}

a { color: var(--primary-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r-ctrl) 0; text-decoration: none;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.disclosure {
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: .84rem; line-height: 1.45; padding: .55rem 0;
}
.disclosure a { color: #FFC1E0; font-weight: 600; }

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,244,233,.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: .8rem 2rem; padding-top: .85rem; padding-bottom: .85rem; }

.wordmark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.04em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.wordmark span {
  background: linear-gradient(100deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { margin-left: auto; display: flex; gap: .3rem; font-size: .92rem; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  padding: .5rem .85rem; border-radius: 999px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--cream-deep); }
.nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--accent));
  box-shadow: 0 6px 16px -6px rgba(255,61,154,.5);
}

.navtoggle { display: none; }
@media (max-width: 54rem) {
  .masthead .wrap { flex-wrap: wrap; }
  .nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: .2rem; margin-left: 0; padding-bottom: .7rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .85rem; width: 100%; border-radius: var(--r-ctrl); }
  .navtoggle {
    display: inline-flex; align-items: center; gap: .45rem; margin-left: auto;
    background: var(--paper); border: 1px solid var(--line); color: var(--ink);
    font: inherit; font-size: .9rem; padding: .5rem .9rem; border-radius: var(--r-ctrl); cursor: pointer;
  }
}

.crumbs { font-size: .84rem; color: var(--muted-dim); padding: 1.4rem 0 .2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--muted-dim); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.pagehead { padding: 1rem 0 .4rem; }

/* ---- Grille dashboard : header, résumé et tableau vus ensemble -------- */
.dashboard {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
  margin: 1.4rem 0 2.2rem;
}
@media (max-width: 60rem) { .dashboard { grid-template-columns: 1fr; } }

.picker {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--lift);
}
.picker__q {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
  margin: 0 0 .2rem; color: var(--ink);
}
.picker__hint { font-size: .87rem; color: var(--muted-dim); margin: 0 0 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream-deep);
  font-size: .89rem; color: var(--muted);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .15s var(--spring);
}
.chip span::before {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 1.5px solid var(--line); border-radius: 5px; background: var(--paper);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.chip:hover span { border-color: var(--primary); transform: translateY(-1px); }
.chip input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); font-weight: 600; }
.chip input:checked + span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.6l3.2 3.2L13 5'/%3E%3C/svg%3E"), linear-gradient(100deg, var(--primary), var(--accent));
  background-size: 10px, cover; background-position: center; background-repeat: no-repeat;
  border-color: transparent;
}
.chip input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.picker__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  margin-top: 1rem; padding-top: .95rem; border-top: 1px solid var(--line-soft);
  font-size: .87rem; color: var(--muted-dim);
}
.picker__reset {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line); color: var(--primary-deep);
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: .4rem .85rem; border-radius: 999px; cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .15s var(--spring);
}
.picker__reset::before {
  content: "↺"; font-size: .95rem; line-height: 1;
}
.picker__reset:hover { background: var(--primary-soft); border-color: var(--primary); transform: rotate(-18deg) scale(1.04); }
.picker__reset:active { transform: rotate(-30deg) scale(.96); }

.result {
  background: linear-gradient(150deg, var(--primary) 0%, var(--accent) 130%);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-panel);
  box-shadow: var(--glow);
  padding: 1.7rem 1.8rem;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  min-height: 15rem;
  position: relative;
  overflow: hidden;
}
.result::after {
  content: "";
  position: absolute; right: -3rem; top: -3rem; width: 12rem; height: 12rem;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  border-radius: 50%;
}
.result__tag {
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--mark-ink); background: var(--mark);
  padding: .28rem .65rem; border-radius: var(--r-tag);
  margin-bottom: .8rem;
}
.result__name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.85rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.12;
  margin: 0 0 .4rem; color: #fff;
}
.result__why { color: rgba(255,255,255,.88); margin: 0 0 1.1rem; max-width: 42ch; font-size: .93rem; }
.result__side { display: flex; align-items: baseline; gap: .6rem; }
.result__price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.2rem, 1.9rem + 1.2vw, 2.7rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: .95;
  color: #fff; font-variant-numeric: tabular-nums;
}
.result__unit { font-size: .84rem; color: rgba(255,255,255,.75); }
.result__empty { display: none; color: rgba(255,255,255,.92); font-size: .95rem; }
.result.is-empty { justify-content: center; }
.result.is-empty .result__tag, .result.is-empty .result__name, .result.is-empty .result__why, .result.is-empty .result__side { display: none; }
.result.is-empty .result__empty { display: block; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 100%);
  background-size: 160% 160%; background-position: 0% 50%;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: .94rem; line-height: 1.2;
  padding: .78rem 1.4rem; border: 1px solid transparent;
  border-radius: var(--r-ctrl); white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(255,61,154,.5);
  transition: background-position .35s var(--ease), transform .15s var(--spring), box-shadow .2s var(--ease);
}
.cta:hover { background-position: 100% 50%; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(255,61,154,.6); }
.cta:active { transform: translateY(0); }
.cta--ghost { background: #fff; color: var(--primary-deep); border-color: var(--line); box-shadow: none; }
.cta--ghost:hover { background: var(--primary-soft); border-color: var(--primary); box-shadow: none; }
.cta--sm { padding: .5rem .95rem; font-size: .86rem; border-radius: 9px; }
.cta[data-aff-missing] {
  background: #fff; border: 1.5px dashed #C9BDF7; color: var(--primary);
  cursor: not-allowed; pointer-events: none; box-shadow: none; opacity: .85;
}
.result .cta[data-aff-missing] { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: #fff; }
.result .cta { background: #fff; color: var(--primary-deep); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.result .cta:hover { background: #fff; color: var(--accent-deep); }

.section { padding: 2rem 0 1rem; }
.section:first-of-type { padding-top: 0; }
.section h2 { margin-top: 0; margin-bottom: .25rem; }

.note {
  position: relative;
  background: var(--mark-soft);
  border: 1px solid #F3D89A;
  border-radius: var(--r-box);
  padding: 1.3rem 1.5rem 1.3rem 3.2rem;
  margin: 0 0 2.2rem;
  max-width: 62ch;
  font-size: .99rem; line-height: 1.5;
  color: var(--mark-ink);
}
.note::before { content: "★"; position: absolute; left: 1.3rem; top: 1.28rem; font-size: 1.05rem; color: var(--mark); }
.note p { margin: 0; }
.note strong { color: var(--mark-ink); font-weight: 700; }

.tablebox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  overflow: hidden;
  margin: 1rem 0 .8rem;
  box-shadow: var(--lift);
  position: relative;
}
.tablebox::before {
  content: "";
  display: block; height: 4px;
  background: linear-gradient(100deg, var(--primary), var(--accent));
}
.tablescroll { overflow-x: auto; }
table.grid { border-collapse: collapse; width: 100%; min-width: 48rem; font-size: .93rem; }
table.grid caption { text-align: left; padding: 1rem 1.2rem; font-size: .85rem; color: var(--muted-dim); border-bottom: 1px solid var(--line-soft); }

table.grid thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: .74rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted-dim);
  text-align: left; padding: .72rem 1.2rem; white-space: nowrap;
}

table.grid td, table.grid tbody th {
  padding: 1.05rem 1.1rem; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums; font-size: .95rem;
  color: var(--muted);
}
table.grid tbody tr:last-child td, table.grid tbody tr:last-child th { border-bottom: 0; }
table.grid tbody th { font-weight: 700; font-size: .99rem; white-space: nowrap; color: var(--ink); }
table.grid tbody th .offer { display: block; font-weight: 400; font-size: .81rem; color: var(--muted-dim); margin-top: .1rem; }

.banklogo { display: flex; align-items: center; gap: .85rem; min-width: 13.5rem; }
.banklogo__img {
  flex: none; width: 5.25rem; height: 2.4rem; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.banklogo__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.banklogo__img--initial {
  width: 2.4rem; margin-right: 2.85rem;
  background: linear-gradient(140deg, var(--primary), var(--accent)); border: 0;
  color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.05rem;
}
.banklogo__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.banklogo__name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.banklogo__txt .offer { font-weight: 500; font-size: .8rem; color: var(--muted-dim); }

table.grid tbody tr:nth-child(even) { background: rgba(108,76,241,.015); }
table.grid tbody tr { transition: background .18s var(--ease); }
table.grid tbody tr:hover { background: var(--primary-soft); }

table.grid tbody tr.is-top { position: relative; background: var(--mark-soft); box-shadow: inset 4px 0 0 var(--mark); }
table.grid tbody tr.is-top:hover { background: #FCE9C4; }
table.grid tbody tr.is-top .banklogo__txt::after {
  content: "★ Notre choix"; display: inline-block; margin-top: .35rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--mark-ink); background: var(--mark); padding: .17rem .5rem; border-radius: 999px; vertical-align: middle;
}

table.grid tbody tr[hidden] { display: none; }
table.grid td.price { white-space: nowrap; }
.price { font-weight: 700; color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
.price--free { color: var(--positive); }
table.grid td.price--free > * , table.grid td.price--free { color: var(--positive); }
table.grid td.price { font-size: 1rem; }
.pill-paid {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px;
  background: var(--mark-soft); color: var(--mark-ink);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: .98rem;
}
.pill-free {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px;
  background: var(--positive-soft); color: var(--positive);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: .98rem;
}
table.grid td[data-label="Condition d'accès"] { font-size: .88rem; color: var(--ink); min-width: 11rem; }
table.grid td[data-label="Carte"] { min-width: 10rem; }
table.grid td[data-label="Offre"] { text-align: right; white-space: nowrap; }
table.grid thead th:last-child { text-align: right; }
.tablefoot { font-size: .84rem; color: var(--muted-dim); max-width: none; margin: 0 0 2.4rem; }
.tablefoot strong { color: var(--ink); font-weight: 600; }

@media (max-width: 54rem) {
  .tablescroll { overflow-x: visible; }
  table.grid { min-width: 0; display: block; }
  table.grid caption { display: block; }
  table.grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.grid tbody, table.grid tr { display: block; }
  table.grid tr { border-bottom: 1px solid var(--line); padding: .3rem 0 .8rem; }
  table.grid tbody tr:last-child { border-bottom: 0; }
  table.grid tbody th { border: 0; padding: .9rem 1.1rem .3rem; font-size: 1.02rem; }
  table.grid td { display: flex; justify-content: space-between; gap: 1.5rem; border: 0; padding: .3rem 1.1rem; font-size: .9rem; }
  table.grid td::before { content: attr(data-label); color: var(--muted-dim); font-size: .86rem; flex: none; }
  table.grid td:last-child { padding-top: .8rem; }
  table.grid td:last-child::before { display: none; }
  table.grid td:last-child .cta { width: 100%; }
  table.grid tbody tr.is-top { border-radius: var(--r-tag); }
  table.grid tbody tr.is-top .banklogo__txt::after { display: block; width: fit-content; margin: .4rem 0 0; }
}

/* ---- Grille de cartes banque (logos + fiches condensées) -------------- */
.bankgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1rem; margin: 1rem 0 2rem;
}
.bankcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box);
  padding: 1.2rem 1.3rem; box-shadow: var(--lift);
  transition: transform .2s var(--spring), box-shadow .2s var(--ease);
}
.bankcard:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.bankcard__logo {
  width: 2.6rem; height: 2.6rem; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.05rem;
  color: #fff; background: linear-gradient(140deg, var(--primary), var(--accent));
  margin-bottom: .8rem; overflow: hidden;
}
.bankcard__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }

.fiche__logo {
  width: 2.5rem; height: 2.5rem; border-radius: 9px; flex: none;
  border: 1px solid var(--line-soft); object-fit: contain; background: #fff; padding: 4px;
  margin-right: .1rem;
}
.bankcard__name { font-weight: 700; font-size: 1.02rem; margin-bottom: .2rem; }
.bankcard__price { font-size: .88rem; color: var(--muted-dim); }

.fiche {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1rem;
  box-shadow: var(--lift);
  transition: transform .2s var(--spring), box-shadow .2s var(--ease);
}
.fiche:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.fiche__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-bottom: .1rem; }
.fiche__head h3 { margin: 0; font-size: 1.26rem; color: var(--ink); }
.fiche__price { margin-left: auto; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fiche__price small { font-size: .77rem; font-weight: 400; color: var(--muted-dim); letter-spacing: 0; }
.fiche__for { color: var(--muted-dim); font-size: .93rem; margin: 0 0 1rem; }

.points { list-style: none; padding: 0; margin: 0 0 1.2rem; max-width: 60ch; }
.points li { position: relative; padding-left: 1.55rem; margin-bottom: .42rem; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--positive); }
.points li.minus::before { background: var(--negative); }

.faq { display: grid; gap: .6rem; align-items: start; }
@media (min-width: 58rem) { .faq { grid-template-columns: 1fr 1fr; } }
.faq details { margin-bottom: 0 !important; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); margin-bottom: .55rem; overflow: hidden; transition: border-color .18s var(--ease); }
.faq details[open] { border-color: var(--primary); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-weight: 600; color: var(--ink); display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .22s var(--spring);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.faq details > div { padding: 0 1.3rem 1.15rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.byline { display: block; font-size: .85rem; color: var(--muted-dim); border-top: 1px solid var(--line); padding-top: 1.05rem; margin-top: 2.4rem; }

.paths { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
@media (min-width: 46rem) { .paths { grid-template-columns: 1fr 1fr; } }
.paths a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box);
  padding: 1.05rem 1.25rem; text-decoration: none; color: var(--ink); font-weight: 600;
  transition: border-color .18s var(--ease), transform .18s var(--spring), box-shadow .18s var(--ease);
}
.paths a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--lift); color: var(--accent-deep); }
.paths__icon {
  font-style: normal; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: linear-gradient(140deg, var(--primary-soft), var(--accent-soft)); margin-right: -.2rem;
}
.paths span { margin-left: auto; font-weight: 400; color: var(--muted-dim); font-size: .87rem; text-align: right; }

.foot {
  background: var(--ink); color: rgba(255,255,255,.68);
  margin-top: 3.6rem; padding: 2.7rem 0 3.1rem; font-size: .9rem;
}
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 2rem; }
.foot h2 { font-family: "Instrument Sans", sans-serif; font-size: .88rem; font-weight: 600; margin: 0 0 .65rem; color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .4rem; }
.foot a { color: rgba(255,255,255,.68); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__legal { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); max-width: 80ch; font-size: .83rem; line-height: 1.6; }

.admin { max-width: 58rem; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.admin table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; }
.admin th, .admin td { padding: .72rem .92rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.admin tbody tr:last-child th, .admin tbody tr:last-child td { border-bottom: 0; }
.admin thead th { background: var(--cream-deep); font-size: .82rem; color: var(--muted-dim); font-weight: 600; }
.admin input[type="url"] { width: 100%; padding: .58rem .78rem; font: inherit; font-size: .9rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 9px; }
.admin input[type="url"]:focus { border-color: var(--accent); outline: none; }
.admin .bank { font-weight: 600; white-space: nowrap; color: var(--ink); }
.admin .tag { display: block; font-weight: 400; font-size: .78rem; color: var(--muted-dim); }
.admin textarea { width: 100%; min-height: 17rem; padding: 1rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .81rem; line-height: 1.6; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-box); }
.admin__bar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.5rem; }
.admin__status { font-size: .88rem; color: var(--primary-deep); font-weight: 500; }

/* ---- Rangée d'arguments avec icônes (page d'accueil) ------------------ */
.highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: .85rem; margin: 0 0 2rem;
}
.highlight {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-box); padding: 1rem 1.1rem;
  box-shadow: var(--lift);
  transition: transform .2s var(--spring), box-shadow .2s var(--ease);
}
.highlight:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.highlight__icon {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(140deg, var(--primary-soft), var(--accent-soft));
}
.highlight__text { font-size: .89rem; line-height: 1.35; }
.highlight__text strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: .1rem; }
.highlight__text span { color: var(--muted-dim); }

/* ---- Bandeau de stats chiffrées ---------------------------------------- */
.statbar {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  padding: 1.1rem 0 1.6rem;
  margin-bottom: .4rem;
}
.statbar__item { display: flex; flex-direction: column; }
.statbar__num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.statbar__label { font-size: .82rem; color: var(--muted-dim); margin-top: .15rem; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--spring); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 40rem) {
  .cta--ghost { white-space: normal; text-align: center; }
  .result__side { flex-wrap: wrap; }
}
table.grid tbody tr.is-top .pill-paid, table.grid tbody tr.is-top .pill-free { background: #fff; box-shadow: 0 0 0 1px var(--line); }
