:root {
  --bg: #fbf8f2;
  --card: #fff;
  --fg: #1d1a16;
  --muted: #6f675c;
  --line: #e6dfd2;
  --accent: #e4572e;
  --accent-soft: #ffe6d9;
  --radius: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: light; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.stripe { height: 5px; background: linear-gradient(90deg, #e4572e, #d98e04, #17a673, #2e86ab, #7a5af8); }
.top, .hero, .stats, .cats, #annuaire { width: min(var(--max), 100% - 2rem); margin-inline: auto; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo em { font-style: normal; color: var(--accent); }
.top nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.top nav a { padding: .5rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.top nav a:hover { background: var(--accent-soft); color: var(--accent); }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 6vw, 4.5rem) 0; }
.kicker { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
h1 { margin: 1rem 0; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; max-width: 16ch; }
h1 em { font-style: normal; color: var(--accent); }
.sub { max-width: 60ch; color: var(--muted); font-size: 1.15rem; }
.cta { display: inline-block; margin-top: 1.75rem; background: var(--fg); color: #fff; font-weight: 700; padding: .8rem 1.5rem; border-radius: 999px; transition: background .15s, transform .15s; }
.cta:hover { background: var(--accent); transform: translateY(-1px); }
.badge { display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; transform: rotate(-6deg); box-shadow: 0 18px 40px -14px rgba(228, 87, 46, .55); align-content: center; }
.badge i { font-style: normal; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.badge b { font-size: 4rem; line-height: 1; letter-spacing: -.04em; }
.badge span { font-weight: 600; }

.ticker { overflow: hidden; background: var(--fg); color: #fff; padding: .8rem 0; }
.track { display: flex; width: max-content; gap: 2.5rem; animation: scroll 40s linear infinite; }
.track span { white-space: nowrap; font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.track span::before { content: "✦"; color: var(--accent); margin-right: 2.5rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 2.5rem 0 1rem; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.stats b { display: block; font-size: 2.4rem; line-height: 1.1; letter-spacing: -.03em; color: var(--accent); }
.stats span { color: var(--muted); font-size: .95rem; }

.title { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 2.5rem 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .55rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; transition: border-color .15s, transform .15s; }
.chip::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); }
.chip span { color: var(--muted); font-size: .85rem; }
.chip:hover { border-color: var(--c); transform: translateY(-1px); }

.search { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .5rem 0; margin-top: 1.5rem; border-bottom: 1px solid var(--line); }
.search .title { margin: .5rem 0; }
.search input { flex: 1; min-width: 14rem; max-width: 26rem; margin-left: auto; font: inherit; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search p { flex-basis: 100%; color: var(--muted); }

.cat { scroll-margin-top: 5rem; padding-top: 1.5rem; }
.cat h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 1rem; }
.cat h2 .dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); }
.cat h2 small { color: var(--muted); font-weight: 600; font-size: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 .6rem; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .7rem; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .6rem .9rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: var(--accent-soft); }
.card span { display: grid; min-width: 0; padding: 0 .4rem; }
.card b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card small { color: var(--muted); font-size: .8rem; }
.card em { position: absolute; }
.card { position: relative; }
.card em { top: 1rem; right: 1rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); font-style: normal; color: var(--muted); transition: color .15s, transform .15s; }
.card:hover { border-color: var(--c); box-shadow: 0 10px 24px -14px var(--c); transform: translateY(-2px); }
.card:hover em { color: var(--c); transform: translate(2px, -2px); }

.byline { display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.byline img { border-radius: 50%; object-fit: cover; width: 40px; height: 40px; }
.byline a { color: var(--fg); font-weight: 700; }
.byline a:hover { color: var(--accent); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs [aria-current] { color: var(--fg); font-weight: 600; }
.page-head { width: min(var(--max), 100% - 2rem); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; --c: var(--accent); }
.page-head h1 { max-width: none; }
.page-head .kicker .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); margin-right: .5rem; }
.page-head .count { margin-top: 1rem; color: var(--muted); }
.page-head .count b { color: var(--c); font-size: 1.4rem; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; padding-bottom: 2rem; }
.wrap > .grid { margin-top: 1rem; }
.more { margin-top: 1rem; font-weight: 600; }
.more a { color: var(--accent); }
.cat h2 a:hover { color: var(--accent); }

.author-hero { display: flex; align-items: center; gap: 2rem; }
.author-hero h1 { margin: .75rem 0; }
.portrait { flex: none; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); box-shadow: 0 14px 34px -14px rgba(29, 26, 22, .4); }

.prose { max-width: 52rem; margin-inline: auto; }
.prose h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 2.2rem 0 .6rem; }
.prose p { margin-bottom: .8rem; color: #3a352e; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose .chips a { text-decoration: none; color: var(--fg); }
.prose .note { margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.facts { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.facts dt, .facts dd { padding: .7rem 1rem; border-top: 1px solid var(--line); margin: 0; }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { font-weight: 700; background: #f6f1e7; }
.links, .plain { list-style: none; padding: 0; display: grid; gap: .5rem; }
.links a { display: flex; justify-content: space-between; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: var(--fg); }
.links a span { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.links a:hover { border-color: var(--accent); }
.plain a { text-decoration: none; }
.plain a:hover { text-decoration: underline; }

.faq { width: min(52rem, 100% - 2rem); margin: 3rem auto 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .6rem; color: var(--muted); }

.foot { margin-top: 4rem; background: var(--card); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot-grid, .foot-bottom { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding: 3rem 0 2rem; }
.foot .logo { color: var(--fg); font-size: 1.1rem; }
.foot-about p { margin-top: .8rem; max-width: 28ch; }
.foot h3 { color: var(--fg); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.foot ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.foot a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--line); font-size: .85rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .badge { width: 130px; height: 130px; order: -1; justify-self: start; }
  .badge b { font-size: 2.6rem; }
  .stats { grid-template-columns: 1fr; }
  .search input { margin-left: 0; max-width: none; }
  .author-hero { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-top: 1px solid var(--line); padding-bottom: .2rem; }
  .facts dd { border-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .top nav a { padding: .4rem .6rem; }
}
