/* Pages de fond de pixool.fr — même palette et même grain que la page d'accueil,
   dont les jetons sont recopiés ici. L'accueil garde son style en ligne (c'est
   la page à afficher le plus vite) ; les pages de fond sont nombreuses et se
   ressemblent, elles partagent donc un fichier que le navigateur met en cache. */

:root {
  --ink: #182338;
  --muted: #62708a;
  --paper: #fffaf3;
  --surface: #ffffff;
  --line: #eadfcf;
  --coral: #ff725e;
  --coral-dark: #df5146;
  --mint: #9ee6c6;
  --blue: #79b7ff;
  --yellow: #ffd66b;
  --night: #17314b;
  --shadow: 0 24px 70px rgba(31, 45, 72, .16);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 107, .28), transparent 34rem),
    radial-gradient(circle at 92% 6%, rgba(121, 183, 255, .18), transparent 30rem),
    var(--paper);
  line-height: 1.6;
}

a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--coral); }
img { display: block; max-width: 100%; }

/* ── Chrome commun ──────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 243, .86);
  border-bottom: 1px solid rgba(234, 223, 207, .76);
}

.nav-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

/* :not(.button) n'est pas cosmetique. `.nav-links a` (0,1,1) l'emporte sur
   `.button` (0,1,0) : sans l'exclusion, le bouton herite du gris --muted de
   la barre et son libelle sort gris sur fond corail. L'accueil n'a pas le
   probleme parce que sa regle equivalente porte sur l'element `a` (0,0,1),
   qui perd contre `.button`. */
.nav-links a:not(.button) { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 114, 94, .32);
}

.button:hover { background: var(--coral-dark); color: #fff; }

footer {
  width: min(1160px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .92rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ── Corps de l'article ─────────────────────────────────────────────── */

.article {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 40px;
}

.fil {
  font-size: .86rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 20px;
}

.fil a { color: inherit; text-decoration: none; }
.fil a:hover { color: var(--ink); text-decoration: underline; }

.article h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.chapeau {
  font-size: 1.16rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.signature {
  font-size: .86rem;
  color: var(--muted);
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 46px 0 14px;
}

.article h3 {
  font-size: 1.12rem;
  margin: 30px 0 8px;
}

.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 700; }

/* Un chiffre qu'on veut voir sans lire le paragraphe. */
.reperes {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.reperes li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin: 0;
}

.reperes b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.reperes span { font-size: .9rem; color: var(--muted); }

/* Ce qu'une étude dit, et ce qu'elle ne dit pas. */
.nuance {
  background: rgba(121, 183, 255, .12);
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  padding: 18px 20px 4px;
  margin: 26px 0 30px;
}

.nuance p:last-child { margin-bottom: 16px; }

.encart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  margin: 34px 0;
  box-shadow: var(--shadow);
}

.encart h2 { margin-top: 0; }
.encart p:last-of-type { margin-bottom: 20px; }

.sources {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}

.sources h2 { font-size: 1.1rem; margin: 0 0 12px; }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 10px; }

.suite {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.suite h2 { font-size: 1.1rem; margin: 0 0 12px; }
.suite ul { list-style: none; padding: 0; }
.suite li { margin-bottom: 10px; }

@media (max-width: 760px) {
  .nav-links a:not(.button) { display: none; }
}

/* ── Sommaire des guides ─────────────────────────────────────────────── */

.sommaire {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 40px;
}

.sommaire-tete { max-width: 720px; margin-bottom: 46px; }

.sommaire-tete h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.famille { margin-bottom: 48px; }

.famille > h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 18px;
}

.grille {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.fiche {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 24px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fiche:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.fiche h3 {
  font-size: 1.1rem;
  line-height: 1.28;
  margin: 0 0 8px;
  color: var(--coral-dark);
}

.fiche h3::after { content: " →"; }
.fiche p { margin: 0; font-size: .94rem; color: var(--muted); }
