/* ==========================================================
   Agrumea — carnet des agrumes en pot
   Palette : vert feuille #2F4A3A (structure) · crème papier #F6F1E7 (fond) · jaune citron #E8B931 (accent rare)
   ========================================================== */
:root {
  /* Palette Agrumea — art_direction du project-spec (mode light) */
  --primary: #2F4A3A;
  --primary-hover: #253B2E;
  --on-primary: #FFFFFF;
  --secondary: #E8B931;
  --secondary-hover: #D4A51F;
  --bg: #F6F1E7;
  --surface: #FBF8F1;
  --text: #1F2A23;
  --text-secondary: #3A463E;
  --text-strong: #121A15;
  --text-muted: #5B6158;
  --text-faint: #B7AF9E;
  --fill: #EEE7D8;
  --border: #DCD3C0;
  --callout-bg: #FBF0CC;
  --callout-text: #5A4307;
  --callout-border: #E8B931;
  /* Tokens historiques du builder, remappés sur la palette */
  --blue: var(--primary);
  --blue-d: var(--primary-hover);
  --blue-dd: #1E3027;
  --cyan: var(--secondary);
  --cyan-s: var(--fill);
  --orange: var(--secondary);
  --orange-d: #6E520A;
  --orange-s: var(--callout-bg);
  --green: #2F7D4F;
  --green-s: #E5F4EA;
  --red: #B3261E;
  --red-s: #FCE8E6;
  --cream: var(--bg);
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --white: #fff;
  --r: 14px;
  --r-lg: 24px;
  --sh: 0 6px 24px rgba(31, 42, 35, .08);
  --sh-lg: 0 18px 50px rgba(31, 42, 35, .14);
  --f-d: 'Fraunces', Georgia, serif;
  --f-b: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: var(--f-d);
  --font-body: var(--f-b);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-b); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--f-d); line-height: 1.15; color: var(--blue-dd); margin: 0 0 var(--s4); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.2em; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #1A1200; padding: var(--s2) var(--s4); z-index: 100; }
.skip-link:focus { left: var(--s2); top: var(--s2); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- Boutons & badges ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s2); padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--f-b); font-size: 1rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #1A1200; box-shadow: 0 6px 18px rgba(232, 185, 49, .35); }
.btn-primary:hover { background: #D4A51F; color: #1A1200; transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--blue); color: var(--blue-d); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--cyan-s); color: var(--blue-d); border: 1px solid var(--cyan); }
.badge svg { width: 14px; height: 14px; }
.badge-orange { background: var(--orange-s); color: var(--orange-d); border-color: #E8B931; }
.badge-green { background: var(--green-s); color: var(--green); border-color: #B5DEC3; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-d); margin-bottom: var(--s3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-d); font-weight: 700; font-size: 1.45rem; color: var(--blue-dd); text-decoration: none; }
.brand:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--blue-dd); cursor: pointer; }
.main-nav > ul { display: flex; align-items: center; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.main-nav a, .sub-btn { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: var(--f-b); }
.main-nav a:hover, .sub-btn:hover, .main-nav a[aria-current="page"] { background: var(--cyan-s); color: var(--blue-d); }
.main-nav svg { width: 16px; height: 16px; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: var(--s2); list-style: none; margin: 4px 0 0; }
.has-sub.open .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { width: 100%; }
.nav-cta .btn { color: #1A1200; }

/* ---------- Hero ---------- */
.hero { padding: var(--s8) 0 var(--s7); background: radial-gradient(1200px 500px at 85% -10%, var(--cyan-s), transparent 60%), var(--cream); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 62%, rgba(232, 185, 49, .35) 62%); }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; aspect-ratio: 4/5; object-fit: cover; width: 100%; max-height: 560px; box-shadow: var(--sh-lg); }
.float-card { position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--sh-lg); padding: var(--s3) var(--s4); font-size: .9rem; display: flex; gap: var(--s3); align-items: center; border: 1px solid var(--line); }
.float-card strong { display: block; font-family: var(--f-d); font-size: 1.5rem; color: var(--blue); line-height: 1; }
.float-card.a { left: -4%; bottom: 10%; }
.float-card.b { right: 0; top: 6%; }
.page-hero { padding: var(--s7) 0 var(--s6); background: linear-gradient(180deg, var(--cyan-s), var(--cream)); border-bottom: 1px solid var(--line); }
.page-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 68ch; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: var(--s4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }
.crumbs a { color: var(--blue-d); }

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-blue { background: var(--blue-dd); color: #F6F1E7; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: var(--s6); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-blue .section-head p { color: #D9E2D6; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: calc(var(--s7) * -1); position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); box-shadow: var(--sh); }
.stat strong { display: block; font-family: var(--f-d); font-size: 2.1rem; color: var(--blue); line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: var(--s5); }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.card a.stretch { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; padding-top: var(--s3); }
.num-chip { position: absolute; top: 14px; left: 14px; background: var(--orange); color: #1A1200; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--f-d); box-shadow: var(--sh); }
.card-media { position: relative; }
.card-count { font-weight: 600; color: var(--blue-d); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.sit-card { padding: var(--s5); gap: var(--s2); }
.sit-card h3 { font-size: 1.1rem; margin: 0; }
.sit-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--s2); height: 100%; }
.sit-card h3 { transition: color .2s; }
.sit-card:hover h3 { color: var(--blue); }
.sit-card p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- L'année du pot (frise) ---------- */
.year { display: grid; gap: var(--s4); grid-template-columns: 1fr; counter-reset: step; }
.year a { display: flex; gap: var(--s4); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); text-decoration: none; color: var(--ink); transition: .2s; }
.year a:hover { border-color: var(--blue); transform: translateX(4px); }
.year .dot { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.year strong { display: block; font-family: var(--f-d); font-size: 1.1rem; color: var(--blue-dd); }
.year small { color: var(--muted); }

/* ---------- Split / Z-pattern ---------- */
.split { display: grid; gap: var(--s6); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s3); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; }
.checks svg { flex: 0 0 22px; color: var(--green); margin-top: 3px; width: 22px; height: 22px; }
.checks.no svg { color: var(--red); }
.method { display: grid; gap: var(--s5); }
.method .m-item { background: rgba(255, 255, 255, .07); border: 1px solid rgba(232, 185, 49, .3); border-radius: var(--r); padding: var(--s5); }
.method .m-item svg { color: var(--cyan); width: 30px; height: 30px; margin-bottom: var(--s3); }
.method p { color: #D9E2D6; margin: 0; font-size: .97rem; }

/* ---------- Page situation ---------- */
.sit-layout { display: grid; gap: var(--s6); padding: var(--s6) 0 var(--s8); }
.sit-main > section { margin-bottom: var(--s6); }
.sit-main h2 { font-size: 1.55rem; }
.en-bref { background: var(--cyan-s); border-left: 5px solid var(--blue); padding: var(--s5); border-radius: 0 var(--r) var(--r) 0; font-size: 1.1rem; }
.en-bref strong.label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-d); margin-bottom: var(--s2); }
.points { list-style: none; padding: 0; display: grid; gap: var(--s3); counter-reset: pt; }
.points li { position: relative; padding: var(--s4) var(--s4) var(--s4) 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); counter-increment: pt; }
.points li::before { content: counter(pt); position: absolute; left: var(--s4); top: var(--s4); width: 28px; height: 28px; border-radius: 8px; background: var(--cyan); color: var(--blue-dd); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.gestes { list-style: none; padding: 0; counter-reset: g; display: grid; gap: var(--s4); }
.gestes li { position: relative; padding-left: 56px; counter-increment: g; min-height: 40px; }
.gestes li::before { content: counter(g); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #1A1200; font-family: var(--f-d); font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; }
.gestes li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: -14px; width: 2px; background: var(--line); }
.gestes li:last-child::after { display: none; }
.callout { border-radius: var(--r); padding: var(--s5); display: flex; gap: var(--s4); align-items: flex-start; }
.callout svg { flex: 0 0 28px; width: 28px; height: 28px; }
.callout p { margin: 0; }
.callout strong { display: block; margin-bottom: 4px; }
.callout.erreur { background: var(--orange-s); border: 1px solid #E8B931; }
.callout.erreur svg { color: var(--orange-d); }
.callout.carnet { background: #fff; border: 2px dashed var(--blue); }
.callout.carnet svg { color: var(--blue); }
.callout.alerte { background: var(--red-s); border: 1px solid #F2B8B5; }
.callout.alerte svg { color: var(--red); }
.sit-aside { display: grid; gap: var(--s5); align-content: start; }
.fiche, .aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.fiche { border-top: 6px solid var(--orange); }
.fiche h2, .aside-box h2 { font-size: 1.1rem; margin-bottom: var(--s3); }
.fiche dl { margin: 0; display: grid; gap: var(--s3); }
.fiche dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.fiche dd { margin: 0; font-weight: 600; color: var(--blue-dd); }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.aside-box li a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .93rem; color: var(--ink); }
.aside-box li a:hover { background: var(--cyan-s); color: var(--blue-d); }
.aside-box li a[aria-current="page"] { background: var(--blue); color: #fff; font-weight: 600; }
.releves { width: 100%; border-collapse: collapse; font-size: .95rem; }
.releves th, .releves td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.releves th { background: var(--cyan-s); color: var(--blue-dd); }
.pn { display: grid; gap: var(--s3); margin-top: var(--s6); }
.pn a { display: block; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); }
.pn a:hover { border-color: var(--blue); }
.pn small { display: block; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; }
.pn strong { font-family: var(--f-d); color: var(--blue-dd); }
.sources-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); font-size: .95rem; }
.sources-box h2 { font-size: 1.1rem; }
.sources-box ul { margin: 0; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s3); padding: 0 var(--s5); }
.faq summary { cursor: pointer; font-weight: 600; padding: var(--s4) 0; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); color: var(--blue-dd); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--orange-d); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: var(--s4); margin: 0; }

/* ---------- Outils / formulaires ---------- */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--sh); }
.tool-grid { display: grid; gap: var(--s5); }
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { font-weight: 600; font-size: .95rem; color: var(--blue-dd); }
.field small { color: var(--muted); }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 74, 58, .18); }
input[type=range] { width: 100%; accent-color: var(--orange); }
.range-val { font-family: var(--f-d); font-size: 2rem; color: var(--blue); line-height: 1; }
.results { display: grid; gap: var(--s3); }
.res { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.res .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.res.ok { background: var(--green-s); border-color: #B5DEC3; } .res.ok .ic { background: var(--green); color: #fff; }
.res.warn { background: var(--orange-s); border-color: #E8B931; } .res.warn .ic { background: var(--orange); color: #1A1200; }
.res.bad { background: var(--red-s); border-color: #F2B8B5; } .res.bad .ic { background: var(--red); color: #fff; }
.res strong { display: block; color: var(--blue-dd); }
.res span.d { font-size: .9rem; color: var(--muted); }
.res a { font-size: .85rem; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-bottom: var(--s5); }
.month-grid button { padding: 12px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--blue-dd); transition: .2s; }
.month-grid button:hover { border-color: var(--blue); }
.month-grid button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.month-grid button.now { box-shadow: inset 0 0 0 2px var(--orange); }
.month-panel h3 { margin-bottom: var(--s3); }
.task-list { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.task-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); display: flex; gap: var(--s3); align-items: flex-start; }
.task-list svg { flex: 0 0 22px; color: var(--blue); width: 22px; height: 22px; margin-top: 2px; }
.task-list a { font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: var(--s2); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .92rem; background: #fff; }
.seg input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--cyan-s); color: var(--blue-dd); position: sticky; top: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: var(--s4) 0; }
.mini-stats div { background: var(--cyan-s); border-radius: var(--r); padding: var(--s3) var(--s4); }
.mini-stats strong { display: block; font-family: var(--f-d); font-size: 1.5rem; color: var(--blue); }
.mini-stats span { font-size: .82rem; color: var(--muted); }
.chart { width: 100%; height: 160px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- Filtres liste ---------- */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s5); position: sticky; top: 76px; z-index: 5; background: var(--cream); padding: var(--s3) 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--blue-dd); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.count-line { color: var(--muted); font-size: .95rem; }
.empty { text-align: center; padding: var(--s7); color: var(--muted); display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dd); color: #D9E2D6; padding-top: var(--s8); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
.footer-title { font-family: var(--f-b); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #F6F1E7; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.brand-light { color: #fff; margin-bottom: var(--s3); }
.footer-note { color: var(--cyan); font-family: var(--f-d); font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(246, 241, 231, .25); margin-top: var(--s7); padding: var(--s5) 0; font-size: .88rem; color: #A9B8AC; }
.footer-bottom p { margin: 0; }

/* ---------- Animations ---------- */
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: none; }
.no-js .reveal-on-scroll { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .btn, .card, .year a { transition: none; }
}

/* ---------- Prose (pages légales / à propos) ---------- */
.prose h2 { margin-top: var(--s6); font-size: 1.5rem; }
.prose ul { margin-bottom: var(--s4); }
.src-list { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.src-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); }
.src-list a { font-weight: 600; }
.src-list p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .year { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: repeat(3, 1fr); }
  .pn { grid-template-columns: 1fr 1fr; }
  .month-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .mini-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .year { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.rev > :first-child { order: 2; }
  .sit-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .sit-aside { position: sticky; top: 92px; }
  .tool-grid { grid-template-columns: 380px 1fr; align-items: start; }
  .filters { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 859px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: var(--s3) var(--s4) var(--s5); box-shadow: var(--sh-lg); max-height: calc(100vh - 68px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .sub-btn { width: 100%; padding: 12px; }
  .sub { position: static; display: none; box-shadow: none; border: 0; padding-left: var(--s4); margin: 0; background: transparent; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .float-card.a { left: 2%; }
  .hero { padding-top: var(--s6); }
}

/* ===== BLOC SOUS-MENU OUTILS — sans JavaScript (hover + focus-within) ===== */
.nav-item{position:relative;display:inline-flex;align-items:center}
.has-sub>a::after{content:"";display:inline-block;width:5px;height:5px;margin-left:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.has-sub::after{content:"";position:absolute;top:100%;left:0;right:0;height:18px}
.sub-nav{position:absolute;top:calc(100% + 18px);left:-16px;z-index:30;min-width:296px;flex-direction:column;gap:1px;padding:8px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 34px rgba(31,58,77,.14);display:none}
.has-sub:hover>.sub-nav,.has-sub:focus-within>.sub-nav{display:flex}
.sub-nav a{display:block;padding:9px 12px;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap;border-left:2px solid transparent}
.sub-nav a small{display:block;margin-top:2px;font-family:var(--font-body);font-size:11px;font-weight:400;color:var(--text-muted)}
.sub-nav a:hover,.sub-nav a:focus{background:var(--fill);color:var(--primary);border-left-color:var(--primary)}
.sub-nav a:hover small,.sub-nav a:focus small{color:var(--text-secondary)}
.sub-nav-all{margin-top:5px;border-top:1px solid var(--line);padding-top:11px!important;color:var(--primary)}
@media(max-width:850px){
.nav-item{display:block}
.has-sub::after{display:none}
.has-sub>a::after{transform:rotate(45deg) translateY(-2px)}
.sub-nav{position:static;display:flex;min-width:0;margin:9px 0 4px 2px;padding:2px 0 2px 14px;border:0;border-left:2px solid var(--line);box-shadow:none;background:transparent;gap:0}
.sub-nav a{white-space:normal;padding:7px 0;font-size:13px;border-left:0}
.sub-nav a small{display:none}
.sub-nav a:hover,.sub-nav a:focus{background:transparent}
.sub-nav-all{padding-top:8px!important}
}

/* ===== BLOC LARGEUR UNIFIÉE — toutes les pages à la largeur de la home ===== */
/*
 * Posé par 06a2-largeur-contenu. Les sélecteurs ci-dessous ont été RELEVÉS
 * dans les feuilles réellement chargées par le front, pas devinés : c'est la
 * correction du défaut d'origine, où une liste de classes supposées rendait
 * le bloc inerte sans que rien ne le signale.
 *
 * Largeur de référence relevée sur `.container` : 1180 px.
 *
 * `!important` est délibéré. Une contrainte peut être déclarée dans une
 * feuille chargée APRÈS celle-ci, ou plus bas dans ce même fichier par un
 * bloc appendu ultérieurement : à spécificité égale elle gagnerait, et le
 * bloc serait posé, validé, et sans effet.
 *
 * Les contrôles de formulaire, les images et les cartes sont épargnés.
 *
 * Ce qui suit la borne « relevé automatique : fin » est CONSERVÉ au rejeu :
 * c'est là que vivent les règles tranchées à la main. N'écris rien au-dessus.
 */

/* --- relevé automatique : début --- */
.hero-lead{max-width:none!important}   /* styles.css : 56ch */
.page-hero p.lead{max-width:none!important}   /* styles.css : 68ch */
.section-head{max-width:none!important}   /* styles.css : 760px */
.source-list{max-width:none!important}   /* styles.css : 820px */

/* Grilles à deux colonnes relevées, NON collapsées d'office : une grille de
   cartes se collapserait à tort. À trancher au brief 06a2, puis à écrire
   SOUS la borne de fin ci-dessous. */
/*   .pn { grid-template-columns: 1fr 1fr }  (styles.css) */
/*   .split { grid-template-columns: 1fr 1fr }  (styles.css) */
/* --- relevé automatique : fin --- */

/* Règles tranchées à la main, conservées au rejeu de 06a2. */
/* Règles tranchées à la main, conservées au rejeu de 06a2. */
.content-narrow{max-width:none!important}
.content-narrow select,.content-narrow input[type=number],.content-narrow input[type=text]{max-width:520px}
.article-layout{width:min(1140px,calc(100% - 40px));margin-inline:auto}
.article-body{max-width:72ch}
.article-layout{width:min(100% - 28px,1140px)}

/* ===== ENVELOPPE + OUVERTURE NORMÉE (couches 1 et 2 du gabarit) ===== */
.author-card{display:flex;gap:18px;align-items:flex-start;margin:0 0 22px;padding:20px 22px;background:var(--fill);border-left:3px solid var(--primary)}
.author-card .author-avatar{flex:0 0 auto;line-height:0}
.author-card .author-img{object-fit:cover}
.author-footer .author-card .author-img{width:88px;height:88px;object-fit:cover;border-radius:var(--radius-round, 50%)}
.author-footer .author-card .author-monogram{width:88px;height:88px;font-size:30px}
.author-name{margin:0;font-family:var(--font-heading);font-size:16px;font-weight:700;line-height:1.3}
.author-name a{color:var(--text-strong)}
.author-name a:hover{color:var(--primary)}
.author-job{display:block;margin-top:3px;font-size:11px;font-weight:400;text-transform:uppercase;letter-spacing:1.1px;color:var(--text-muted)}
.author-legit{margin:11px 0 0;font-size:14.5px;line-height:1.5;font-weight:600;color:var(--text-strong)}
.author-bio{margin:7px 0 0;font-size:13.5px;line-height:1.55;color:var(--text-secondary)}
.author-links{margin:10px 0 0;font-size:13px}
.author-links a{color:var(--primary);font-weight:700;border-bottom:1px solid currentColor}
.page-dates{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0 0 22px;font-size:12px;color:var(--text-muted)}
.page-dates time{font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-secondary)}
.method-note{margin:0 0 26px;padding:17px 19px;background:var(--callout-bg);border:1px solid var(--callout-border);border-left:3px solid var(--primary)}
.method-note-title{margin:0 0 6px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--callout-text)}
.method-note p:last-child{margin:0;font-size:14px;line-height:1.6;color:var(--callout-text)}
.opening{margin:0 0 34px}
.opening .answer{margin:0;padding:22px 24px;background:var(--primary);color:var(--white);font-family:var(--font-heading);font-size:clamp(17px,1.9vw,20px);line-height:1.45;letter-spacing:-.2px}
.essentials{margin:0;padding:20px 24px;background:var(--surface);border:1px solid var(--border);border-top:0}
.essentials-title{margin:0 0 10px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted)}
.essentials ul{margin:0;padding:0;list-style:none}
.essentials li{position:relative;padding:7px 0 7px 22px;font-size:15px;line-height:1.5;color:var(--text)}
.essentials li::before{content:"";position:absolute;left:0;top:15px;width:8px;height:2px;background:var(--primary)}
.scope{margin:0;padding:14px 24px;background:var(--fill);border:1px solid var(--border);border-top:0;font-size:13.5px;line-height:1.55;color:var(--text-secondary)}
.scope span{font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.1px;color:var(--text-muted);margin-right:6px}
.scope a{color:var(--primary);font-weight:700;border-bottom:1px solid currentColor}
.scope a:hover{color:var(--primary)}
.update-log{margin:0;padding:20px 22px;border-top:2px solid var(--secondary);background:var(--fill)}
.update-log-title{margin:0 0 9px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted)}
.update-log ul{margin:0;padding:0;list-style:none}
.update-log li{padding:6px 0;font-size:13.5px;line-height:1.5;color:var(--text-secondary);border-bottom:1px solid var(--border)}
.update-log li:last-child{border-bottom:0}
.update-log time{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-weight:500;color:var(--text-strong)}
@media(max-width:640px){.author-card{padding:16px}.opening .answer{padding:18px}.essentials,.scope{padding:16px 18px}}

/* Signature de tête — identité et dates sur une seule ligne. Le parcours de
   l'auteur n'est pas ici : il se lit en pied, via .author-footer. */
.author-byline{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:0 0 26px;padding-bottom:14px;border-bottom:1px solid var(--border,#D3CEC1);font-size:13px;color:var(--text-secondary,#4A554D)}
.byline-author a{color:var(--primary,#2F4A3A);font-weight:700;border-bottom:1px solid currentColor}
.byline-author a:hover{color:var(--primary-hover,#253B2E)}
.author-byline .page-dates{margin:0;gap:6px 18px}

/* Pied d'article — la carte auteur complète, détachée du corps du texte. */
.author-footer{margin:38px 0 22px;border-top:2px solid var(--secondary,#3A4A3F)}
.author-footer .author-card{margin:0}

/* Signature dans le hero d'article (blog) : le hero est un aplat sombre, la
   signature doit y passer en blanc. Sans cette règle, elle hérite des couleurs
   pensées pour un fond clair et devient illisible (contraste ~1,1:1). */
.guide-hero .author-byline,
.guide-hero .author-byline .page-dates,
.guide-hero .byline-author a,
.guide-hero .page-dates time{color:#FFFFFF}
.guide-hero .author-byline{border-bottom-color:rgba(255,255,255,.28)}

/* ===== SOURCES — liens sortants cités près de l'affirmation ===== */
.source-note a[rel~="nofollow"]{color:var(--primary);font-weight:600;border-bottom:1px solid var(--text-faint)}
.source-note a[rel~="nofollow"]:hover{color:var(--primary);border-bottom-color:var(--primary)}
.tool-table a[rel~="nofollow"]{font-weight:600;text-decoration:none;border-bottom:1px solid var(--text-faint)}
.tool-table a[rel~="nofollow"]:hover{color:var(--primary);border-bottom-color:var(--primary)}
.source-list{list-style:none;margin:0;padding:0;max-width:820px}
.source-list li{padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.source-list li:last-child{border-bottom:0}
.source-list span{display:block;margin-top:2px;font-size:11px;color:var(--text-muted)}
