/* ==========================================================================
   PrixPhotoIdentite.fr — feuille de style unique
   Design system éditorial "benchmark". Aucune dépendance, aucun webfont.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  --paper:        #fcfbf8;
  --paper-2:      #ffffff;
  --paper-3:      #f3f1ec;
  --ink:          #0d131b;
  --ink-2:        #3d4753;
  --ink-3:        #6b7784;
  --line:         #e2ded6;
  --line-2:       #cfcabf;

  --accent:       #1546c8;
  --accent-ink:   #123aa3;
  --accent-soft:  #eaf0ff;
  --gold:         #96702a;
  --gold-soft:    #fdf4e0;
  --green:        #0f6b45;
  --green-soft:   #e6f4ec;
  --amber:        #8a5a00;
  --amber-soft:   #fdf3dc;

  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;

  --shadow-1: 0 1px 2px rgba(16,21,28,.05), 0 1px 1px rgba(16,21,28,.03);
  --shadow-2: 0 2px 4px rgba(16,21,28,.05), 0 12px 28px -12px rgba(16,21,28,.16);
  --shadow-3: 0 30px 60px -30px rgba(16,21,28,.35);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --gut: clamp(1rem, 4vw, 2.5rem);
}

html[data-theme="dark"] {
  --paper:        #0c1015;
  --paper-2:      #131920;
  --paper-3:      #1a212a;
  --ink:          #eef1f5;
  --ink-2:        #b3bcc7;
  --ink-3:        #8b96a3;
  --line:         #232c37;
  --line-2:       #33404e;
  --accent:       #7ea6ff;
  --accent-ink:   #a9c4ff;
  --accent-soft:  #16233d;
  --gold:         #e0b465;
  --gold-soft:    #2a2213;
  --green:        #6fd3a3;
  --green-soft:   #10261d;
  --amber:        #e5bd72;
  --amber-soft:   #2a2213;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 14px 30px -14px rgba(0,0,0,.7);
  --shadow-3: 0 30px 60px -30px rgba(0,0,0,.8);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --paper:#0c1015; --paper-2:#131920; --paper-3:#1a212a;
    --ink:#eef1f5; --ink-2:#b3bcc7; --ink-3:#8b96a3;
    --line:#232c37; --line-2:#33404e;
    --accent:#7ea6ff; --accent-ink:#a9c4ff; --accent-soft:#16233d;
    --gold:#e0b465; --gold-soft:#2a2213;
    --green:#6fd3a3; --green-soft:#10261d;
    --amber:#e5bd72; --amber-soft:#2a2213;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 14px 30px -14px rgba(0,0,0,.7);
    --shadow-3: 0 30px 60px -30px rgba(0,0,0,.8);
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -0.021em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.55rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); letter-spacing: -0.026em; }
h3 { font-size: clamp(1.08rem, 2vw, 1.28rem); }
h4 { font-size: 1rem; }
p  { text-wrap: pretty; }

a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img, svg { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 760px; }
section { scroll-margin-top: 5.5rem; }
.section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.section + .section { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- 4. Header / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 1.25rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.brand em { font-style: normal; color: var(--ink-3); font-weight: 600; }
.brand__mark { width: 26px; height: 26px; flex: none; }

.nav { display: flex; gap: .15rem; margin-left: auto; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: .86rem; font-weight: 550; color: var(--ink-2); text-decoration: none;
  padding: .4rem .62rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--paper-3); color: var(--ink); }
.nav a[aria-current="page"], .nav a.is-active { color: var(--accent-ink); background: var(--accent-soft); }

.theme-toggle {
  flex: none; margin-left: .3rem; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- 5. Micro-composants ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--line-2); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 650; letter-spacing: .01em;
  padding: .22rem .55rem; border-radius: 999px;
  background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line);
}
.chip--free  { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.chip--gold  { background: var(--gold-soft);  color: var(--gold);  border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.chip--blue  { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.chip--amber { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow-1);
}
.card--flat { box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 650; text-decoration: none;
  padding: .6rem 1rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
html[data-theme="dark"] .btn--primary { color: #0b1017; }
.btn--primary:hover { color: #fff; box-shadow: var(--shadow-2); }
html[data-theme="dark"] .btn--primary:hover { color: #0b1017; }
.btn--ghost { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper-3); color: var(--ink); }

.src {
  font-size: .72rem; font-weight: 600; color: var(--ink-3); text-decoration: none;
  display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap;
}
.src:hover { color: var(--accent-ink); text-decoration: underline; }
.src::after { content: "↗"; font-size: .85em; }

/* ---------- 6. Hero ---------- */
.hero { padding-block: clamp(2.4rem, 6vw, 4.4rem) clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 62%);
  pointer-events: none; z-index: -1;
}
.hero h1 { margin-top: .8rem; max-width: 17ch; }
.hero__lead { font-size: clamp(1.02rem, 1.9vw, 1.2rem); color: var(--ink-2); max-width: 60ch; margin-top: 1.1rem; }

.stats { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.6rem; }
.stat {
  display: flex; align-items: baseline; gap: .45rem;
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: .34rem .85rem;
  font-size: .8rem; color: var(--ink-2); box-shadow: var(--shadow-1);
}
.stat b { font-size: .95rem; color: var(--ink); letter-spacing: -.02em; }

/* ---------- 7. Bloc réponse (answer-first / GEO) ---------- */
.answer {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--paper-2); border-radius: var(--radius);
  padding: 1.35rem 1.5rem; box-shadow: var(--shadow-2);
}
.answer h2 { font-size: 1.05rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .5rem; }
.answer ul { list-style: none; padding: 0; margin-top: .9rem; }
.answer li { padding: .62rem 0; border-top: 1px dashed var(--line); font-size: .94rem; color: var(--ink-2); }
.answer li:first-child { border-top: 0; padding-top: .2rem; }
.answer li b { color: var(--ink); }

/* ---------- 8. Cartes "verdict" ---------- */
.verdict { display: block; text-decoration: none; color: inherit; position: relative; }
.verdict { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow-1); transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.verdict:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-2); color: inherit; }
.verdict__top { display: grid; gap: .5rem; justify-items: start; }
.verdict__top .chip { font-size: .7rem; }
.verdict__price { font-size: 1.65rem; font-weight: 750; letter-spacing: -.035em; }
.verdict__name { font-weight: 700; margin-top: .5rem; font-size: 1.02rem; }
.verdict__desc { font-size: .87rem; color: var(--ink-2); margin-top: .3rem; }
.verdict__cta { font-size: .78rem; font-weight: 650; color: var(--accent-ink); margin-top: .8rem; display: inline-flex; gap: .3rem; }

/* ---------- 9. Tableaux classement ---------- */
.tbl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.tbl-tools { display: flex; gap: .4rem; flex-wrap: wrap; }
.tbl-tools button {
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  padding: .34rem .7rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink-2);
}
.tbl-tools button:hover { border-color: var(--line-2); color: var(--ink); }
.tbl-tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.rank-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-1); }
.rank-table table { font-size: .92rem; }
.rank-table caption { text-align: left; padding: .9rem 1.1rem; font-size: .8rem; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--paper-3); }
.rank-table thead th {
  text-align: left; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper-3);
  white-space: nowrap;
}
.rank-table tbody tr { border-bottom: 1px solid var(--line); }
.rank-table tbody tr:last-child { border-bottom: 0; }
.rank-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.rank-table tbody tr.is-out { background: color-mix(in srgb, var(--paper-3) 60%, transparent); }
.rank-table td { padding: .85rem 1.1rem; vertical-align: top; color: var(--ink-2); }
.rank-table td:first-child { width: 1%; }
.rank-table .cell-name { color: var(--ink); font-weight: 650; }
.rank-table .cell-name a { color: inherit; text-decoration: none; }
.rank-table .cell-name a:hover { color: var(--accent-ink); text-decoration: underline; }
.rank-table .cell-note { font-size: .79rem; color: var(--ink-3); margin-top: .18rem; font-weight: 400; }
.rank-table .cell-price { font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: -.02em; }

.rk {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font-size: .8rem; font-weight: 750; background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line);
}
.rk--1 { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.rk--out { font-size: .95rem; color: var(--ink-3); }

/* Tableau → cartes sur mobile */
@media (max-width: 720px) {
  .rank-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rank-table tbody tr { display: grid; grid-template-columns: auto 1fr; gap: 0 .75rem; padding: .95rem 1.05rem; }
  .rank-table td { padding: 0; border: 0; }
  .rank-table td:first-child { grid-row: span 2; }
  .rank-table td[data-l]:not(:nth-child(1)):not(:nth-child(2)) { grid-column: 2; display: flex; gap: .5rem; justify-content: space-between; font-size: .84rem; padding-top: .3rem; }
  .rank-table td[data-l]:not(:nth-child(1)):not(:nth-child(2))::before {
    content: attr(data-l); color: var(--ink-3); font-size: .7rem; text-transform: uppercase;
    letter-spacing: .08em; font-weight: 700; padding-top: .15rem; flex: none;
  }
  .rank-table td[data-l]:not(:nth-child(1)):not(:nth-child(2)) > span { text-align: right; }
  .rank-table td:nth-child(2) { grid-column: 2; }
}

/* ---------- 9b. Tableau simple ---------- */
.simple-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-1); }
.simple-table table { font-size: .89rem; min-width: 560px; }
.simple-table th, .simple-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.simple-table thead th { font-size: .67rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); background: var(--paper-3); white-space: nowrap; }
.simple-table tbody tr:last-child td { border-bottom: 0; }
.simple-table td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- 10. Matrice fonctionnelle ---------- */
.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-1); }
.matrix { font-size: .84rem; min-width: 900px; }
.matrix th, .matrix td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { position: sticky; top: 0; background: var(--paper-3); font-size: .67rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); z-index: 2; }
.matrix tbody th { font-weight: 700; color: var(--ink); position: sticky; left: 0; background: var(--paper-2); z-index: 1; min-width: 170px; }
.matrix tbody tr:hover td, .matrix tbody tr:hover th { background: color-mix(in srgb, var(--accent-soft) 45%, var(--paper-2)); }
.matrix td { color: var(--ink-2); }
.matrix .yes { color: var(--green); font-weight: 650; }
.matrix .no  { color: var(--ink-3); }

/* ---------- 11. Encadrés ---------- */
.callout {
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); background: var(--paper-2);
  display: grid; gap: .5rem;
}
.callout--warn  { background: var(--amber-soft);  border-color: color-mix(in srgb, var(--amber) 28%, transparent); }
.callout--info  { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.callout--good  { background: var(--green-soft);  border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.callout h3 { font-size: .98rem; }
.callout p { font-size: .9rem; color: var(--ink-2); }

.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .35rem .9rem; }
.checks li { font-size: .87rem; color: var(--ink-2); display: flex; gap: .5rem; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; flex: none; }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: .9rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: .85rem; align-items: start; }
.steps li::before {
  content: counter(s, decimal-leading-zero); font-size: .74rem; font-weight: 750; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 8px; width: 2rem; height: 2rem; display: grid; place-items: center;
}
.steps h3 { font-size: .97rem; }
.steps p { font-size: .88rem; color: var(--ink-2); margin-top: .12rem; }

/* ---------- 12. FAQ ---------- */
.faq { display: grid; gap: .55rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.faq summary {
  cursor: pointer; list-style: none; padding: .95rem 1.15rem; font-weight: 650; font-size: .97rem;
  display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--ink-3); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__a { padding: .95rem 1.15rem; font-size: .92rem; color: var(--ink-2); }
.faq .faq__a > * + * { margin-top: .7rem; }

/* ---------- 13. Sources / citation ---------- */
.ref-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.ref-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; background: var(--paper-2); }
.ref-list .ref-type { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: var(--ink-3); }
.ref-list a { font-weight: 650; }
.ref-list p { font-size: .85rem; color: var(--ink-2); margin-top: .25rem; }

.cite-box { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1rem 1.15rem; background: var(--paper-3); }
.cite-box code { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); display: block; line-height: 1.6; }
.copy-btn { margin-top: .7rem; }

/* ---------- 14. Fil d'Ariane & pagination ---------- */
.crumbs { font-size: .78rem; color: var(--ink-3); padding-top: 1.1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-2); }

.next-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; }
.next-links a {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none;
  background: var(--paper-2); display: block; box-shadow: var(--shadow-1); transition: transform .14s ease, box-shadow .14s ease;
}
.next-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.next-links b { display: block; color: var(--ink); font-size: .95rem; }
.next-links span { display: block; color: var(--ink-3); font-size: .82rem; margin-top: .18rem; }

/* ---------- 15. Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-3); padding-block: 2.6rem 2rem; margin-top: 2rem; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem; }
.footer h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: .6rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .32rem; }
.footer a { font-size: .87rem; color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); display: grid; gap: .5rem; }

/* ---------- 16. Fiche prestataire ---------- */
.provider-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }
.price-grid .card { display: grid; gap: .2rem; }
.price-grid .p-val { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; }
.price-grid .p-lab { font-size: .8rem; color: var(--ink-3); }

.spec { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: .1rem 1.4rem; font-size: .92rem; }
.spec dt { font-weight: 650; color: var(--ink); padding: .6rem 0; border-top: 1px solid var(--line); }
.spec dd { color: var(--ink-2); padding: .6rem 0; border-top: 1px solid var(--line); margin: 0; }
@media (max-width: 560px) {
  .spec { grid-template-columns: 1fr; }
  .spec dd { border-top: 0; padding-top: 0; }
}

/* ---------- 17. Prose (pages éditoriales) ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.15rem; display: grid; gap: .4rem; }
.prose li { color: var(--ink-2); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.1rem;
  color: var(--ink-2); font-size: 1.03rem;
}
.prose table { font-size: .9rem; margin-top: 1.2rem; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); }

.updated { font-size: .78rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: .4rem; }

.lazy { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ---------- 18. Impression ---------- */
@media print {
  .topbar, .footer, .theme-toggle, .tbl-tools, .next-links, .btn, .hero::after { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .rank-table, .answer, .callout { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .faq details { break-inside: avoid; }
  .faq details:not([open]) .faq__a { display: block; }
  a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  .nav a::after, .crumbs a::after { content: ""; }
  section { break-inside: auto; }
}


/* ==========================================================================
   Refonte visuelle — v7.1
   ========================================================================== */

/* Divulgation du lien capitalistique, au niveau de l'offre */
.disclosure {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem;
  font-size: .7rem; font-weight: 650; line-height: 1.3;
  padding: .16rem .5rem; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
}
.disclosure::before { content: "◆"; font-size: .6em; }

.rank-legal {
  font-size: .76rem; color: var(--ink-3); margin-bottom: 1.1rem;
  padding: .55rem .8rem; border-radius: var(--radius-sm);
  background: var(--paper-3); border: 1px solid var(--line); max-width: 70ch;
}
.rank-legal a { font-weight: 650; }

/* Hero : trame typographique plus tenue + halo double */
.hero::before {
  content: ""; position: absolute; inset: auto auto -30% -15%; width: 460px; height: 460px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 9%, transparent) 0%, transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero h1 { letter-spacing: -.038em; }
.hero__lead { line-height: 1.55; }

/* Cartes verdict : barre d'accent au survol, hiérarchie renforcée */
.verdict { overflow: hidden; }
.verdict::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .22s ease;
}
.verdict:hover::before { transform: scaleY(1); }
.verdict__price { letter-spacing: -.04em; line-height: 1.05; }
.verdict__name { letter-spacing: -.012em; }

/* Tableaux : ligne n°1 mise en valeur, rythme plus aéré */
.rank-table tbody tr:has(.rk--1) { background: color-mix(in srgb, var(--gold-soft) 45%, transparent); }
.rank-table tbody tr:has(.rk--1) .cell-price { color: var(--gold); }
.rank-table td { padding-block: .95rem; }
.rank-table caption { font-weight: 500; }
.rk { box-shadow: var(--shadow-1); }
.rk--1 { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 12%, transparent); }

/* Bloc réponse : accent en dégradé plutôt qu'un trait plat */
.answer { border-left-width: 0; position: relative; padding-left: 1.65rem; }
.answer::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
}

/* Titres de section : filet supérieur discret */
.section > .wrap > .eyebrow:first-child { margin-bottom: .55rem; }

/* Liens de prose plus lisibles */
.prose a { text-decoration-thickness: .075em; text-underline-offset: .2em; }

/* Liste de définitions des mentions légales */
.spec dt { letter-spacing: -.005em; }
.spec dd a { font-weight: 600; }

/* Pied de page : séparation plus nette */
.footer__legal p + p { margin-top: .45rem; }
.footer__legal strong { color: var(--ink-2); }

/* Focus visible renforcé sur fond sombre */
html[data-theme="dark"] :focus-visible { outline-color: var(--accent-ink); }

/* Impression : la divulgation doit rester lisible */
@media print {
  .disclosure { background: none; border: 1px solid #999; color: #000; }
  .rank-legal { background: none; }
}

/* ---------------------------------------------------------------- limites éditeur
   Bloc « les cas où un concurrent fait mieux ». Volontairement sobre : c'est un
   constat éditorial, pas un encadré d'alerte. Le liseré suffit à le distinguer. */
.limits {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 1.5rem 1.5rem 1.35rem;
}
.limits h2 { margin-top: .55rem; }
.limits__lead {
  margin-top: .8rem;
  max-width: 72ch;
  font-size: .92rem;
  color: var(--ink-2);
}
.lim {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lim;
  display: grid;
  gap: .55rem;
}
.lim li {
  counter-increment: lim;
  position: relative;
  padding: .85rem 1rem .85rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.lim li::before {
  content: counter(lim);
  position: absolute;
  left: .85rem;
  top: .9rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
}
.lim li > b {
  display: block;
  font-size: .95rem;
  line-height: 1.35;
}
.lim__best {
  display: block;
  margin-top: .35rem;
  font-size: .85rem;
  color: var(--ink-2);
}
.lim__best a { font-weight: 600; }
.lim__why {
  display: block;
  margin-top: .35rem;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink-3);
}
@media (max-width: 640px) {
  .limits { padding: 1.15rem 1rem 1rem; }
  .lim li { padding: .8rem .85rem .8rem 2.4rem; }
}
