/* PigeonMalin — theme.css. DA « carnet du voyageur malin » : aubergine-prune + or bon plan,
   Familjen Grotesk (display) + Literata (corps) + ui-monospace (data). 0 CDN, 0 JS framework. */

:root {
  --pm-ink: #241f31; --pm-plum: #5b4b8a; --pm-plum-2: #4a3d73; --pm-amber: #f2a63b;
  --pm-amber-soft: #fbeccb; --pm-kraft: #efe7d6; --pm-paper: #faf8f4; --pm-white: #ffffff;
  --pm-line: #e6e3dc; --pm-slate: #6b6675;
  --f-display: 'Familjen Grotesk', system-ui, sans-serif;
  --f-corps: 'Literata', Georgia, serif;
  --f-data: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
  --r: 12px; --r-s: 8px; --r-pill: 999px;
  --sp: 96px; --pad: clamp(1rem, 4vw, 2rem);
  --wrap: 1180px; --read: 720px;
  --sh: 0 14px 34px rgba(36,31,49,.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pm-white); color: var(--pm-ink);
  font-family: var(--f-corps); font-size: 1.06rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pm-plum); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: 1.75rem; } h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.read { max-width: var(--read); margin-inline: auto; }
section { padding-block: clamp(3rem, 8vw, var(--sp)); }

/* ---------- utilitaires ---------- */
.kicker { font-family: var(--f-display); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--pm-plum); display: inline-block; }
.data { font-family: var(--f-data); font-size: .92em; letter-spacing: -.01em; }
.chapo { font-size: 1.2rem; color: var(--pm-slate); line-height: 1.6; }
.bg-paper { background: var(--pm-paper); }
.bg-ink { background: var(--pm-ink); color: #fff; }
.bg-ink .kicker { color: var(--pm-amber); }
/* diviseur signature : ligne de route pointillee */
.route { height: 0; border-top: 2px dashed var(--pm-line); position: relative; margin: 1rem 0; }
.route::after { content: ""; position: absolute; right: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--pm-amber); }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: .4rem; }

/* ---------- boutons & liens ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-weight: 600; font-size: 1rem; padding: .8rem 1.3rem; border-radius: var(--r-s); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease; min-height: 44px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pm-plum); color: #fff; }
.btn-primary:hover { background: var(--pm-plum-2); }
.btn-ink { background: var(--pm-ink); color: #fff; }
.btn-outline { border-color: var(--pm-ink); color: var(--pm-ink); background: transparent; }
.btn-ghost { color: var(--pm-plum); padding-inline: 0; }
.btn-amber { background: var(--pm-amber); color: var(--pm-ink); }
.prose a { color: var(--pm-plum); text-underline-offset: 3px; }
.prose a:hover { color: var(--pm-amber); }

/* ---------- header / nav ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--pm-line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--pm-ink); font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand .dot { color: var(--pm-amber); }
.brand svg { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; margin-left: auto; }
.site-nav a { color: var(--pm-ink); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pm-plum); }
.site-nav .btn { margin-left: .4rem; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--pm-line); border-radius: var(--r-s); background: #fff; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--pm-ink); }
.burger span { top: 21px; } .burger span::before { top: -7px; } .burger span::after { top: 7px; }
@media (max-width: 900px) {
  .burger { display: block; }
  .site-nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--pm-line); padding: .5rem var(--pad) 1.2rem; transform: translateY(-140%); transition: transform .25s ease; }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--pm-line); }
  .site-nav .btn { margin: .8rem 0 0; justify-content: center; }
}

/* ---------- hero magazine ---------- */
.hero { padding-block: clamp(2.4rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.5rem); }
.hero .lead { font-size: 1.2rem; color: var(--pm-slate); max-width: 40ch; }
.hero-card { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); aspect-ratio: 4/3; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .tag { position: absolute; left: 1rem; top: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { order: -1; } }

/* pastilles / tags */
.tag { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .6rem; border-radius: var(--r-pill); background: var(--pm-amber); color: var(--pm-ink); }
.tag-soft { background: var(--pm-amber-soft); color: var(--pm-plum-2); }
.price { font-family: var(--f-data); font-size: .82rem; background: var(--pm-amber-soft); color: var(--pm-plum-2); padding: .2rem .5rem; border-radius: var(--r-s); }

/* ---------- bande rubriques ---------- */
.rubriques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .rubriques { grid-template-columns: 1fr 1fr; } }
.rubrique { display: block; text-decoration: none; color: var(--pm-ink); background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--r); padding: 1.2rem; transition: transform .12s ease, box-shadow .12s ease; }
.rubrique:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.rubrique h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.rubrique p { font-size: .92rem; color: var(--pm-slate); margin: 0; }

/* ---------- grille d'articles ---------- */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .agrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .agrid { grid-template-columns: 1fr; } }
.acard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--r); overflow: hidden; transition: transform .14s ease, box-shadow .14s ease; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.acard .ph { aspect-ratio: 16/10; overflow: hidden; }
.acard .ph img { width: 100%; height: 100%; object-fit: cover; }
.acard .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.acard .cat { font-family: var(--f-display); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pm-plum); }
.acard h3 { font-size: 1.16rem; margin: 0; }
.acard .date { font-family: var(--f-data); font-size: .78rem; color: var(--pm-slate); }
.acard.feature { grid-column: span 2; flex-direction: row; }
.acard.feature .ph { flex: 1 1 55%; aspect-ratio: auto; }
.acard.feature .body { flex: 1 1 45%; justify-content: center; }
.acard.feature h3 { font-size: 1.5rem; }
@media (max-width: 900px) { .acard.feature { grid-column: span 2; } }
@media (max-width: 600px) { .acard.feature { grid-column: span 1; flex-direction: column; } .acard.feature .ph { aspect-ratio: 16/10; } }

/* ---------- astuce de Pidgy (signature) ---------- */
.astuce { position: relative; background: var(--pm-kraft); border-radius: var(--r); padding: 1.2rem 1.3rem 1.2rem 1.5rem; margin: 1.6rem 0; border-left: 5px solid var(--pm-amber); }
.astuce .head { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.astuce .head svg { width: 22px; height: 22px; color: var(--pm-plum); }
.astuce .head b { font-family: var(--f-display); font-size: .95rem; letter-spacing: .01em; }
.astuce p { margin: 0; color: #4a4550; }

/* ---------- newsletter carte d'embarquement ---------- */
.pass { position: relative; background: var(--pm-ink); color: #fff; border-radius: var(--r); padding: clamp(1.6rem, 4vw, 2.6rem); overflow: hidden; }
.pass::before, .pass::after { content: ""; position: absolute; width: 26px; height: 26px; background: var(--pm-white); border-radius: 50%; top: 50%; transform: translateY(-50%); }
.pass::before { left: -13px; } .pass::after { right: -13px; }
.pass .kicker { color: var(--pm-amber); }
.pass h2 { color: #fff; }
.pass .code { font-family: var(--f-data); font-size: .8rem; color: rgba(255,255,255,.6); letter-spacing: .1em; }
.pass form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; max-width: 460px; }
.pass input { flex: 1 1 220px; padding: .8rem 1rem; border-radius: var(--r-s); border: 0; font: inherit; }

/* ---------- page & article ---------- */
.page-head { max-width: var(--read); margin: 0 auto; }
.crumbs { font-family: var(--f-display); font-size: .84rem; color: var(--pm-slate); margin-bottom: 1rem; }
.crumbs a { color: var(--pm-slate); text-decoration: none; font-weight: 600; display: inline-block; padding: .4rem .1rem; }
.crumbs a:hover { color: var(--pm-plum); }
.prose { max-width: var(--read); margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--r); margin: 1.4rem 0; }
.hero-lead { max-width: var(--read); margin: 1.4rem auto 0; }
.hero-lead img { border-radius: var(--r); box-shadow: var(--sh); }
.meta { font-family: var(--f-data); font-size: .82rem; color: var(--pm-slate); }

/* tableaux infos pratiques */
.twrap { overflow-x: auto; background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left, linear-gradient(-90deg, #fff 30%, rgba(255,255,255,0)) right; background-repeat: no-repeat; background-size: 30px 100%, 30px 100%; background-attachment: local, local; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: .96rem; }
.prose thead th { background: var(--pm-ink); color: #fff; text-align: left; padding: .6rem .8rem; font-family: var(--f-display); font-size: .9rem; }
.prose td { padding: .55rem .8rem; border-bottom: 1px solid var(--pm-line); }
.prose tbody tr:nth-child(even) { background: var(--pm-paper); }
.prose td.data, .prose .td-data { font-family: var(--f-data); }

/* FAQ */
.faq { margin: 1.6rem auto 0; max-width: var(--read); }
.faq details { border: 1px solid var(--pm-line); border-radius: var(--r-s); padding: .3rem 1rem; margin-bottom: .7rem; background: #fff; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; padding: .7rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--pm-amber); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding-bottom: .8rem; color: #4a4550; }

/* à lire aussi */
.alire { border-top: 1px solid var(--pm-line); margin-top: 2.5rem; padding-top: 1.6rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--pm-ink); color: rgba(255,255,255,.8); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot .foot-title { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-foot a { color: rgba(255,255,255,.82); text-decoration: none; display: block; padding: .24rem 0; }
.site-foot a:hover { color: var(--pm-amber); }
.site-foot .brand { color: #fff; }
.site-foot .legal { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- a11y ---------- */
:focus-visible { outline: 3px solid var(--pm-plum); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: .5rem; z-index: 60; background: var(--pm-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-s); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
