/* =========================================================
   ClassementAgencesGEO.fr — Feuille de style
   Direction : presse spécialisée premium
   Encre de nuit · Laiton · Papier ivoire
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Encre */
  --ink:        #0A1121;
  --ink-2:      #0E1729;
  --ink-3:      #16223B;
  --ink-line:   rgba(233, 224, 205, .14);
  --ink-line-2: rgba(233, 224, 205, .28);

  /* Papier */
  --paper:      #F7F3EA;
  --paper-2:    #F1EBDE;
  --paper-3:    #E7DFCE;

  /* Texte */
  --text:       #161D2B;
  --text-2:     #4B5567;
  --text-3:     #6E7889;
  --text-light: #DCD6C8;
  --text-light-2: rgba(220, 214, 200, .72);
  --rule:       rgba(22, 29, 43, .13);
  --rule-2:     rgba(22, 29, 43, .26);

  /* Laiton */
  --brass:      #C9A84C;
  --brass-hi:   #EBD08A;
  --gold-ink:   #D9B85E;   /* or lisible sur fond sombre */
  --gold-paper: #85661A;   /* or lisible sur fond clair */

  /* Typo */
  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-text:    'Newsreader', Georgia, 'Times New Roman', serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rythme */
  --gutter: clamp(1.15rem, 4vw, 2.25rem);
  --shell: 1180px;
  --measure: 68ch;
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(10,17,33,.05), 0 4px 14px rgba(10,17,33,.05);
  --shadow-md: 0 2px 6px rgba(10,17,33,.06), 0 18px 44px rgba(10,17,33,.10);
  --shadow-ink: 0 24px 60px rgba(10,17,33,.38);

  --ease: cubic-bezier(.22,.68,.32,1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }

body {
  font-family: var(--f-text);
  font-optical-sizing: auto;
  font-size: clamp(1.02rem, .45vw + .92rem, 1.13rem);
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain papier, très subtil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection { background: var(--brass); color: var(--ink); }

/* ---------- 3. TYPOGRAPHIE ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
strong, b { font-weight: 600; }
em { font-style: italic; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-mono);
  font-size: .705rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold-paper);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--gold-ink); }
.eyebrow-rule { width: 30px; height: 1px; background: currentColor; opacity: .55; flex: none; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--paper { background: var(--paper); }
.section--tint  { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section--ink   { background: var(--ink); color: var(--text-light); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  color: var(--text);
}
.section-title--light { color: #FBF7EE; }
.section-lead {
  margin-top: 1.1rem;
  font-size: 1.08em;
  color: var(--text-2);
  max-width: 42rem;
}
.section-outro { margin-top: 2.4rem; max-width: var(--measure); color: var(--text-2); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--ink); color: var(--paper);
  padding: .8rem 1.2rem; font-family: var(--f-mono); font-size: .8rem;
}
.skip-link:focus { left: .75rem; top: .75rem; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* ---------- 5. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono); font-size: .775rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: #241B00;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px rgba(201,168,76,.28);
}
.btn--gold:hover { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 16px 32px rgba(201,168,76,.36); }
.btn--ghost { border-color: var(--ink-line-2); color: var(--text-light); }
.btn--ghost:hover { border-color: var(--gold-ink); color: var(--gold-ink); background: rgba(201,168,76,.07); }
.btn--outline { border-color: var(--rule-2); color: var(--text); }
.btn--outline:hover { border-color: var(--text); background: var(--text); color: var(--paper); }

/* ---------- 6. MASTHEAD ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000;
  background: transparent; pointer-events: none;
}
.reading-progress__bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--brass-hi));
  transition: width .1s linear;
}

.masthead {
  position: sticky; top: 0; z-index: 900;
  background: rgba(10, 17, 33, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--ink-line);
  color: var(--text-light);
}
.masthead__inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 62px;
}
.wordmark { display: flex; align-items: center; gap: .7rem; flex: none; }
.wordmark__mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--brass);
  color: var(--gold-ink);
  font-family: var(--f-display); font-size: .95rem; font-weight: 700;
  line-height: 1;
  background: linear-gradient(160deg, rgba(201,168,76,.22), rgba(201,168,76,0));
}
.wordmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark__name {
  font-family: var(--f-mono); font-size: .755rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #FBF7EE;
  white-space: nowrap;
}
.wordmark__sub {
  font-family: var(--f-mono); font-size: .585rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--gold-ink);
}

.masthead__nav {
  display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem);
  margin-right: auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.masthead__nav::-webkit-scrollbar { display: none; }
.masthead__nav a {
  font-family: var(--f-mono); font-size: .715rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-light-2);
  padding-block: .35rem; position: relative; white-space: nowrap;
  transition: color .2s var(--ease);
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--gold-ink);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.masthead__nav a:hover { color: #FBF7EE; }
.masthead__nav a.is-active { color: var(--gold-ink); }
.masthead__nav a:hover::after, .masthead__nav a.is-active::after { transform: scaleX(1); }

.masthead__cta {
  flex: none;
  font-family: var(--f-mono); font-size: .69rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold-ink); white-space: nowrap;
  border: 1px solid var(--ink-line-2); border-radius: 2px;
  padding: .45rem .8rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.masthead__cta:hover, .masthead__cta[aria-current] {
  border-color: var(--gold-ink); background: rgba(201,168,76,.10);
}

/* ---------- 7. HERO ---------- */
.hero, .page-hero { position: relative; background: var(--ink); color: var(--text-light); overflow: hidden; isolation: isolate; }
.hero { padding-block: clamp(3.2rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute; top: -35%; right: -15%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, rgba(201,168,76,.20), rgba(201,168,76,.05) 42%, transparent 68%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%);
  opacity: .75;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.hero__eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  font-weight: 600;
  color: #FDFAF3;
  letter-spacing: -.028em;
  line-height: 1.02;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-ink);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero__year {
  font-family: var(--f-mono); font-weight: 400;
  font-size: .42em; vertical-align: .42em;
  letter-spacing: .02em; color: var(--gold-ink);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-light-2);
  border: 1px solid var(--ink-line-2); border-radius: 99px; padding: .35rem .85rem;
}
.hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #6FCF97; box-shadow: 0 0 0 3px rgba(111,207,151,.18); }
.hero__lead {
  margin-top: 1.6rem; max-width: 38rem;
  font-size: 1.06em; color: var(--text-light-2); line-height: 1.75;
}
.hero__lead strong { color: #FDFAF3; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: 2.6rem; padding-top: 1.7rem; border-top: 1px solid var(--ink-line);
}
.stat dt {
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-light-2); margin-bottom: .3rem;
}
.stat dd { font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; color: var(--gold-ink); line-height: 1; }

/* Podium */
.podium {
  border: 1px solid var(--ink-line-2);
  background: linear-gradient(170deg, rgba(201,168,76,.09), rgba(10,17,33,0) 55%), rgba(255,255,255,.02);
  padding: 1.4rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-ink);
}
.podium__label {
  font-family: var(--f-mono); font-size: .655rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-ink);
  padding-bottom: .9rem; margin-bottom: .3rem; border-bottom: 1px solid var(--ink-line);
}
.podium__item {
  display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .85rem;
  padding: .85rem .25rem; border-bottom: 1px solid var(--ink-line);
  transition: background-color .25s var(--ease), padding-left .25s var(--ease);
}
.podium__item:hover { background: rgba(201,168,76,.07); padding-left: .6rem; }
.podium__rank { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; color: var(--gold-ink); line-height: 1; }
.podium__name { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: #FDFAF3; line-height: 1.2; }
.podium__tag { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .07em; color: var(--text-light-2); text-transform: uppercase; margin-top: .2rem; }
.podium__arrow { color: var(--text-light-2); font-size: .9rem; transition: transform .25s var(--ease), color .25s var(--ease); }
.podium__item:hover .podium__arrow { transform: translateX(3px); color: var(--gold-ink); }
.podium__more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink);
}
.podium__more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 9. ANSWER BOX ---------- */
.answer-box { background: var(--paper); padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.answer-box__inner {
  position: relative;
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--brass);
  background: linear-gradient(135deg, rgba(201,168,76,.07), rgba(201,168,76,0) 60%), #FFFDF8;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-sm);
}
.answer-box__title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: .9rem; }
.answer-box__text { font-size: 1.06em; color: var(--text); max-width: 60ch; }
.answer-box__meta {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}

/* ---------- 10. RANKING ---------- */
.ranking { list-style: none; display: flex; flex-direction: column; gap: clamp(1.1rem, 2.2vw, 1.8rem); counter-reset: rank; }

.rank-item {
  display: grid;
  grid-template-columns: clamp(92px, 11vw, 132px) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.5vw, 2.2rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: #FFFDF8;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.rank-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule-2); }

.rank-item__aside { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.rank-item__num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 700; line-height: .82;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rule-2);
  font-variant-numeric: lining-nums tabular-nums;
}
.rank-item__medal {
  font-family: var(--f-mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-paper);
  border: 1px solid rgba(201,168,76,.55); border-radius: 2px;
  padding: .22rem .5rem;
}

.rank-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .9rem; }
.rank-item__head h3 { font-size: clamp(1.45rem, 2.7vw, 2rem); }
.rank-item__domain {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--text-3);
}
.rank-item__meta {
  display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-top: .55rem;
  font-family: var(--f-mono); font-size: .655rem; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3);
}
.rank-item__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.rank-item__meta span + span::before { content: "·"; color: var(--brass); }
.rank-item__verdict {
  margin-top: 1rem;
  font-family: var(--f-display); font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-style: italic; font-weight: 500; line-height: 1.4;
  color: var(--gold-paper);
  padding-left: .9rem; border-left: 2px solid var(--brass);
}
.rank-item__desc { margin-top: 1.05rem; color: var(--text-2); max-width: 62ch; }
.rank-item__desc strong { color: var(--text); }
.rank-item__strengths { list-style: none; margin-top: 1.25rem; display: grid; gap: .5rem; }
.rank-item__strengths li {
  position: relative; padding-left: 1.35rem;
  font-size: .95em; color: var(--text-2); line-height: 1.55;
}
.rank-item__strengths li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid var(--brass); background: rgba(201,168,76,.2);
}
.rank-item__strengths:last-child { margin-bottom: .15rem; }

/* Lauréat — #1 */
.rank-item--laureate {
  background: linear-gradient(155deg, var(--ink-3) 0%, var(--ink) 58%);
  border-color: rgba(201,168,76,.42);
  color: var(--text-light);
  box-shadow: var(--shadow-ink);
  overflow: hidden;
}
.rank-item--laureate::after {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(201,168,76,.20), transparent 62%);
}
.rank-item--laureate:hover { box-shadow: 0 30px 70px rgba(10,17,33,.45); }
.rank-item--laureate .rank-item__num { color: var(--gold-ink); -webkit-text-stroke: 0; }
.rank-item--laureate .rank-item__medal {
  color: #241B00; background: linear-gradient(180deg, var(--brass-hi), var(--brass)); border-color: transparent; font-weight: 700;
}
.rank-item--laureate h3 { color: #FDFAF3; }
.rank-item--laureate .rank-item__domain { color: var(--text-light-2); }
.rank-item--laureate .rank-item__meta { color: var(--text-light-2); }
.rank-item--laureate .rank-item__verdict { color: var(--gold-ink); border-color: var(--brass); }
.rank-item--laureate .rank-item__desc { color: var(--text-light-2); }
.rank-item--laureate .rank-item__desc strong { color: #FDFAF3; font-weight: 500; }
.rank-item--laureate .rank-item__strengths li { color: var(--text-light-2); }
.rank-item--laureate .rank-item__strengths li::before { background: rgba(201,168,76,.3); }

/* Podium 2–3 */
.rank-item--podium { border-color: rgba(201,168,76,.34); }
.rank-item--podium .rank-item__num { color: var(--brass); -webkit-text-stroke: 0; opacity: .9; }

/* ---------- 11. PROSE ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15rem; }
.prose h3 {
  font-size: clamp(1.28rem, 2.2vw, 1.6rem);
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
}
.prose h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h4 { font-size: 1.15rem; margin-top: 2rem; }
.prose p { color: var(--text-2); }
.prose p strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--text-2); display: grid; gap: .55rem; }
.prose li::marker { color: var(--brass); }
.prose a:not(.btn) {
  color: var(--gold-paper); border-bottom: 1px solid rgba(201,168,76,.5);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.prose a:not(.btn):hover { background: rgba(201,168,76,.14); border-color: var(--brass); }

.lever-list { list-style: none !important; padding-left: 0 !important; counter-reset: lever; }
.lever-list li {
  position: relative; padding-left: 2.6rem; counter-increment: lever;
  padding-bottom: .9rem; border-bottom: 1px solid var(--rule);
}
.lever-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.lever-list li::before {
  content: counter(lever, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  color: var(--gold-paper);
  border: 1px solid rgba(201,168,76,.45); border-radius: 2px;
  padding: .12rem .32rem;
}

.pull-quote {
  margin-block: 2.2rem;
  padding: 1.5rem 1.7rem;
  background: linear-gradient(135deg, rgba(201,168,76,.10), rgba(201,168,76,.02));
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pull-quote p {
  font-family: var(--f-display); font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  line-height: 1.45; font-weight: 500; color: var(--text) !important;
}
.pull-quote__label {
  display: block;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-paper);
  margin-bottom: .6rem;
}

/* LLM grid */
.llm-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem;
  margin-block: 2.2rem;
}
.llm-card {
  padding: 1.25rem;
  background: #FFFDF8; border: 1px solid var(--rule); border-radius: var(--r-md);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.llm-card:hover { transform: translateY(-3px); border-color: rgba(201,168,76,.5); box-shadow: var(--shadow-sm); }
.llm-card__tag {
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3);
}
.llm-card h4 { font-size: 1.2rem; margin-top: .35rem; margin-bottom: .55rem; }
.llm-card p { font-size: .93em; color: var(--text-2); line-height: 1.6; }

/* Table comparative */
.table-wrap { margin-block: 2.2rem; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-md); background: #FFFDF8; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-table caption {
  text-align: left; padding: 1.05rem 1.25rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold-paper);
  border-bottom: 1px solid var(--rule);
}
.compare-table th, .compare-table td { padding: .85rem 1.25rem; text-align: left; vertical-align: top; font-size: .95em; }
.compare-table thead th {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text); background: var(--paper-2); border-bottom: 1px solid var(--rule-2); font-weight: 500;
}
.compare-table tbody th { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.compare-table tbody tr + tr th, .compare-table tbody tr + tr td { border-top: 1px solid var(--rule); }
.compare-table tbody td:last-child { color: var(--text); background: rgba(201,168,76,.055); }

/* ---------- 12. CRITÈRES ---------- */
.criteria-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1rem;
}
.criteria-card {
  position: relative; padding: 1.6rem 1.4rem 1.5rem;
  background: #FFFDF8; border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.criteria-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: linear-gradient(180deg, var(--brass), transparent);
  transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.criteria-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rule-2); }
.criteria-card:hover::before { transform: scaleY(1); }
.criteria-card__num {
  display: block; font-family: var(--f-mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; color: var(--gold-paper); margin-bottom: .85rem;
}
.criteria-card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.criteria-card p { font-size: .94em; color: var(--text-2); line-height: 1.6; }
.criteria-card--feature {
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  border-color: rgba(201,168,76,.4); color: var(--text-light);
  box-shadow: var(--shadow-ink);
}
.criteria-card--feature h3 { color: #FDFAF3; }
.criteria-card--feature p { color: var(--text-light-2); }
.criteria-card--feature .criteria-card__num { color: var(--gold-ink); }

/* ---------- 13. FAQ ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem;
  padding: 1.25rem .25rem; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: clamp(1.05rem, 1.9vw, 1.25rem); font-weight: 600;
  line-height: 1.35; color: var(--text);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-paper); }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px; margin-top: .38em;
  border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary { color: var(--gold-paper); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .62em; }
.faq__answer { padding: 0 .25rem 1.5rem; max-width: 60ch; }
.faq__answer p { color: var(--text-2); }
.faq__answer p + p { margin-top: .9rem; }
.faq__answer .faq-ul { margin: .8rem 0 .9rem 1.2rem; display: grid; gap: .45rem; color: var(--text-2); }
.faq__answer .faq-ul li::marker { color: var(--brass); }
.faq details[open] .faq__answer { animation: fadeUp .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 14. MÉTHODOLOGIE ---------- */
.methodology { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(1.6rem, 4vw, 3.5rem); }
.methodology__body p { color: var(--text-light-2); max-width: 60ch; }
.methodology__body p strong { color: #FDFAF3; font-weight: 500; }
.methodology__list { list-style: none; margin-top: 1.5rem; display: grid; gap: .85rem; max-width: 60ch; }
.methodology__list li {
  position: relative; padding-left: 1.5rem; color: var(--text-light-2); font-size: .97em; line-height: 1.6;
}
.methodology__list li::before {
  content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1px; background: var(--brass);
}
.methodology__list strong { color: #FDFAF3; font-weight: 500; }
.methodology__note {
  margin-top: 1.7rem; padding-top: 1.2rem; border-top: 1px solid var(--ink-line);
  font-size: .88rem; color: rgba(220,214,200,.55) !important;
}
.methodology__note strong { color: var(--gold-ink) !important; }

/* ---------- 15. ARTICLES / CARTES BLOG ---------- */
.posts-strip { background: var(--paper-2); border-block: 1px solid var(--rule); }
.posts-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.posts-head .section-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }

.post-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; list-style: none; }
.post-card {
  display: flex; flex-direction: column;
  background: #FFFDF8; border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 1.45rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,168,76,.45); }
.post-card__cat {
  font-family: var(--f-mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-paper);
}
.post-card__title { font-size: 1.28rem; margin-top: .6rem; line-height: 1.22; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card__excerpt { margin-top: .7rem; font-size: .95em; color: var(--text-2); line-height: 1.6; flex: 1; }
.post-card__meta {
  margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-family: var(--f-mono); font-size: .645rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.post-card__meta span + span::before { content: "·"; margin-right: .5rem; color: var(--brass); }

.post-featured {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.7rem, 4vw, 2.8rem);
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  border: 1px solid rgba(201,168,76,.35); border-radius: var(--r-md);
  color: var(--text-light); box-shadow: var(--shadow-ink);
  margin-bottom: 2.4rem; overflow: hidden;
}
.post-featured::after {
  content: ""; position: absolute; top: -45%; right: -8%; width: 440px; height: 440px; pointer-events: none;
  background: radial-gradient(circle, rgba(201,168,76,.20), transparent 62%);
}
.post-featured__flag {
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-ink);
}
.post-featured h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); color: #FDFAF3; margin-top: .75rem; }
.post-featured h2 a::after { content: ""; position: absolute; inset: 0; }
.post-featured p { margin-top: 1rem; color: var(--text-light-2); max-width: 46ch; }
.post-featured__meta {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .55rem;
  font-family: var(--f-mono); font-size: .655rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light-2);
}
.post-featured__meta span + span::before { content: "·"; margin-right: .55rem; color: var(--brass); }
.post-featured__aside { position: relative; }
.post-featured__quote {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.4; color: var(--gold-ink);
  padding-left: 1.1rem; border-left: 2px solid var(--brass);
}

/* ---------- 16. PAGES BLOG ---------- */
.page-hero { padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(2.4rem, 5vw, 3.6rem); }
.crumbs {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light-2);
}
.crumbs a { color: var(--gold-ink); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: rgba(220,214,200,.35); }
.page-hero__title { font-size: clamp(2rem, 5.2vw, 3.8rem); color: #FDFAF3; letter-spacing: -.025em; }
.page-hero__title--post { font-size: clamp(1.85rem, 4.4vw, 3.2rem); max-width: 20ch; }
.page-hero__lead { margin-top: 1.3rem; max-width: 56ch; color: var(--text-light-2); font-size: 1.06em; }
.page-hero__meta {
  margin-top: 1.5rem; font-family: var(--f-mono); font-size: .67rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-light-2);
}

.byline { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line); }
.byline__avatar, .author-card__avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(160deg, var(--brass-hi), var(--brass)); color: #241B00;
}
.byline__text { display: flex; flex-direction: column; gap: .15rem; }
.byline__name { font-family: var(--f-display); font-size: 1rem; font-weight: 600; color: #FDFAF3; }
.byline__meta { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light-2); display: flex; gap: .45rem; }

.post-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: 88px; }
.toc__label {
  font-family: var(--f-mono); font-size: .63rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-paper);
  padding-bottom: .8rem; border-bottom: 1px solid var(--rule-2); margin-bottom: .9rem;
}
.toc ol { list-style: none; display: grid; gap: .1rem; counter-reset: toc; }
.toc a {
  display: block; padding: .4rem 0 .4rem .9rem;
  border-left: 1px solid var(--rule);
  font-size: .85rem; line-height: 1.4; color: var(--text-3);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover, .toc a.is-active { color: var(--gold-paper); border-color: var(--brass); }

.post { max-width: var(--measure); }
.post > h2 {
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.post > h2:first-of-type { margin-top: .5rem; }
.post > h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 2.1rem; padding-top: 0; border-top: 0; scroll-margin-top: 80px; }
.post > p:first-of-type::first-letter {
  float: left; font-family: var(--f-display); font-size: 3.4em; line-height: .82;
  font-weight: 700; color: var(--gold-paper);
  padding: .06em .12em 0 0;
}
.post blockquote {
  margin-block: 2rem; padding: 1.3rem 1.6rem;
  background: linear-gradient(135deg, rgba(201,168,76,.1), rgba(201,168,76,.02));
  border-left: 3px solid var(--brass); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post blockquote p { font-family: var(--f-display); font-size: 1.16em; font-style: italic; color: var(--text) !important; line-height: 1.5; }
.post img { border-radius: var(--r-md); margin-block: 1.8rem; border: 1px solid var(--rule); }
.post hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.4rem; }
.post code {
  font-family: var(--f-mono); font-size: .86em;
  background: var(--paper-3); padding: .13em .4em; border-radius: 3px; color: #3A2E10;
}
.post pre {
  background: var(--ink); color: var(--text-light); padding: 1.2rem 1.3rem;
  border-radius: var(--r-md); overflow-x: auto; margin-block: 1.8rem; font-size: .85em; line-height: 1.6;
}
.post pre code { background: none; padding: 0; color: inherit; }
.post table { width: 100%; border-collapse: collapse; margin-block: 1.8rem; font-size: .95em; }
.post th, .post td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--rule); }
.post thead th { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: var(--paper-2); }

.post__footer { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--rule-2); }
.post__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.tag {
  font-family: var(--f-mono); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--rule-2); border-radius: 99px; padding: .3rem .75rem;
}
.author-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1.25rem;
}
.author-card__name { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; }
.author-card__bio { font-size: .9em; color: var(--text-2); margin-top: .25rem; line-height: 1.55; }

.post-cta {
  margin-top: 3.5rem; padding: clamp(1.6rem, 3.5vw, 2.5rem);
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  border: 1px solid rgba(201,168,76,.35); border-radius: var(--r-md);
  color: var(--text-light); box-shadow: var(--shadow-ink);
}
.post-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #FDFAF3; margin-bottom: .7rem; }
.post-cta p { color: var(--text-light-2); max-width: 52ch; margin-bottom: 1.5rem; }
.post-cta .eyebrow { color: var(--gold-ink); }

.related { margin-top: 3rem; }
.related__label {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-paper); margin-bottom: 1.3rem;
}

.empty-state {
  border: 1px dashed var(--rule-2); border-radius: var(--r-md);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center; background: #FFFDF8;
}
.empty-state h2 { font-size: 1.5rem; margin-bottom: .7rem; }
.empty-state p { color: var(--text-2); max-width: 46ch; margin-inline: auto; }
.empty-state code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-3); padding: .15em .45em; border-radius: 3px; }

/* ---------- 17. FOOTER ---------- */
.site-footer { background: var(--ink); color: var(--text-light-2); padding-block: clamp(2.8rem, 6vw, 4rem) 2rem; border-top: 1px solid var(--ink-line); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--ink-line); }
.site-footer__blurb { max-width: 38ch; font-size: .95em; margin-top: 1.1rem; }
.site-footer h3 {
  font-family: var(--f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer ul a { font-size: .93em; transition: color .2s var(--ease); }
.site-footer ul a:hover { color: #FDFAF3; }
.site-footer__bottom { padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer__legal { font-size: .84rem; max-width: 62ch; }
.site-footer__legal strong { color: var(--text-light); font-weight: 500; }
.site-footer__top-link {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); border: 1px solid var(--ink-line-2); padding: .5rem .9rem; border-radius: 2px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-footer__top-link:hover { border-color: var(--gold-ink); background: rgba(201,168,76,.08); }

/* ---------- 18. REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .hero__main > * { animation: heroIn .8s var(--ease) both; }
.js .hero__main > *:nth-child(1) { animation-delay: .05s; }
.js .hero__main > *:nth-child(2) { animation-delay: .12s; }
.js .hero__main > *:nth-child(3) { animation-delay: .19s; }
.js .hero__main > *:nth-child(4) { animation-delay: .26s; }
.js .hero__main > *:nth-child(5) { animation-delay: .33s; }
.js .hero__main > *:nth-child(6) { animation-delay: .40s; }
.js .podium { animation: heroIn .9s var(--ease) .3s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .podium { max-width: 32rem; }
  .methodology { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; }
  .toc ol { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); display: grid; }
  .post-featured { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .wordmark__text { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .masthead__inner { min-height: 54px; gap: .9rem; }
  .masthead__nav {
    gap: 1.1rem; padding-right: .4rem;
    mask-image: linear-gradient(to right, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .masthead__cta { padding: .38rem .6rem; font-size: .63rem; }
  .toc { top: 74px; }
  .rank-item { grid-template-columns: 1fr; gap: .9rem; }
  .rank-item__aside { flex-direction: row; align-items: center; gap: .9rem; }
  .rank-item__num { font-size: 2.6rem; }
  .hero__stats { gap: 1.4rem 2rem; }
  .stat dd { font-size: 1.5rem; }
  .site-footer__top { grid-template-columns: 1fr; }
  .post > p:first-of-type::first-letter { font-size: 2.9em; }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }
  .masthead__cta span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. IMPRESSION ---------- */
@media print {
  .masthead, .reading-progress, .hero__bg, .post-cta, .toc, .site-footer__top-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-hero, .section--ink, .rank-item--laureate, .criteria-card--feature, .post-featured { background: #fff !important; color: #000 !important; }
  .hero__title, .page-hero__title, .section-title--light, .rank-item--laureate h3 { color: #000 !important; }
  a { text-decoration: underline; }
  .faq details { break-inside: avoid; }
}

/* ---------- 21. ÉTATS JS ---------- */
.masthead.is-stuck { box-shadow: 0 10px 34px rgba(10, 17, 33, .30); border-bottom-color: var(--ink-line-2); }

/* ---------- 22. SIGNATURE AUTEUR ---------- */
.byline__link {
  color: inherit;
  border-bottom: 1px solid rgba(201, 168, 76, .45);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.byline__link:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
.author-card__name .byline__link { border-bottom-color: rgba(22, 29, 43, .2); }
.author-card__name .byline__link:hover { color: var(--gold-paper); border-color: var(--brass); }
.author-card__role {
  font-family: var(--f-mono); font-size: .645rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-paper); margin-top: .3rem;
}
