/* EcoloMag Tunisie
   Layout: night-blue bands (the lotus water) alternate with paper bands; the tree is the home page's thesis. */
:root {
  --night: #0B1024; --night-2: #141B36; --night-3: #1F2747; --night-line: #2A3356;
  --on-night: #F2F1EA; --on-night-2: #B9BDCB; --on-night-3: #8F95AD;
  --lime: #ADC843; --leaf: #39671C; --leaf-2: #549036;
  --bg: #F7F6EF; --surface: #FFFFFF; --surface-2: #EEEDE3; --fg: #0B1024; --fg-2: #474B5C; --line: #DCD9CB;
  --accent: #39671C; --accent-soft: #E8F0D2; --accent-on-soft: #2D5216; --focus: #39671C;
  --display: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: Manrope, 'Segoe UI', system-ui, sans-serif;
  --brand: 'Exo 2', Manrope, 'Segoe UI', sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1328; --surface: #151B33; --surface-2: #1A2140; --fg: #EDEDE6; --fg-2: #AEB3C4; --line: #2A3356;
    --accent: #ADC843; --accent-soft: #232D18; --accent-on-soft: #C9DE79; --focus: #ADC843; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1328; --surface: #151B33; --surface-2: #1A2140; --fg: #EDEDE6; --fg-2: #AEB3C4; --line: #2A3356;
  --accent: #ADC843; --accent-soft: #232D18; --accent-on-soft: #C9DE79; --focus: #ADC843; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--lime); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: 0.96; }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.1; }
p { margin: 0; }
.hi { color: var(--accent); }
.night .hi { color: var(--lime); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.night { background: var(--night); color: var(--on-night); }
.paper-2 { background: var(--surface-2); border-block: 1px solid var(--line); }
.section { padding-block: clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: end; justify-content: space-between; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head > p { max-width: 420px; color: var(--fg-2); }
.night .section-head > p { color: var(--on-night-2); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.night .eyebrow { color: var(--lime); }
.lead { font-size: 18px; line-height: 1.65; color: var(--fg-2); max-width: 62ch; }
.night .lead { color: var(--on-night-2); }

/* Header */
.site-head { background: var(--night); color: var(--on-night); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-night); }
.brand img { width: 46px; height: 38px; display: block; }
.brand span { font-family: var(--brand); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.brand b { color: var(--lime); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 10px; border-radius: 999px; color: var(--on-night-2); }
.nav a:hover { color: var(--on-night); background: var(--night-3); }
.nav a[aria-current="page"] { color: var(--night); background: var(--lime); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 800 15px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--night); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 700 14px var(--body); cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--fg); transition: all .2s; }
.night .chip { border-color: var(--night-line); color: var(--on-night); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--chip, var(--fg)); border-color: var(--chip, var(--fg)); color: var(--night); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--lime)); flex: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); }
.tag-ready { background: var(--lime); color: var(--night); }
.tag-soon { background: transparent; border: 1px solid var(--line); color: var(--fg-2); }
.night .tag-soon { border-color: var(--night-line); color: var(--on-night-3); }

/* Home hero + tree */
.hero-top { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; justify-content: space-between; padding-block: 28px 0; }
.hero-top > div { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-top aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); border: 1px solid var(--night-line); border-radius: 999px; padding: 8px 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font: 800 34px/1 var(--display); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-3); }
.tree-box { position: relative; width: 100%; max-width: 100%; aspect-ratio: 1200 / 1040; margin-top: 8px; }
.em-root { transition: opacity .45s, stroke-width .45s; }
.tree-box > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crown { position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; font: 600 13px var(--body); border: 1px solid var(--night-line); background: rgba(11, 16, 36, .82); color: var(--on-night); transition: background-color .3s, color .3s, border-color .3s; animation: emAppear .7s ease-out both 3.4s; }
@keyframes emAppear { from { opacity: 0; } to { opacity: 1; } }
.crown[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--night); font-weight: 800; }
.crown[aria-pressed="true"] .dot { background: var(--night); }
.fam-chips { display: none; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 24px; }
@media (max-width: 760px) { .crown { display: none; } .fam-chips { display: flex; } }

.em-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: emDraw 1.6s cubic-bezier(.4, 0, .2, 1) forwards; }
.em-d0 { animation-delay: .5s; animation-duration: 1s; }
.em-glow { transform-box: fill-box; transform-origin: center; animation: emBreathe 8s ease-in-out infinite; }
.em-pollen { opacity: 0; animation: emPollen 8s ease-in-out infinite; }
@keyframes emBreathe { 0%, 100% { opacity: .75; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes emPollen { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .85; } 100% { opacity: 0; transform: translate(14px, -70px); } }
.em-d1 { animation-delay: .7s; } .em-d2 { animation-delay: 1.4s; animation-duration: 2.2s; } .em-d3 { animation-delay: 2.2s; animation-duration: 2.8s; }
.em-grp { transition: opacity .45s; }
.em-leaves { animation: emFade .8s ease-out both 3.3s; }
.em-rip { transform-box: fill-box; transform-origin: center; animation: emRip 5s ease-out infinite; }
.em-rip2 { animation-delay: 1.7s; } .em-rip3 { animation-delay: 3.4s; }
.em-pl { transform-box: fill-box; transform-origin: 100% 100%; animation: emOpenL 1.2s cubic-bezier(.2, .8, .2, 1) both .1s; }
.em-pr { transform-box: fill-box; transform-origin: 0% 100%; animation: emOpenR 1.2s cubic-bezier(.2, .8, .2, 1) both .1s; }
.em-pc { transform-box: fill-box; transform-origin: 50% 100%; animation: emGrow 1s cubic-bezier(.2, .8, .2, 1) both .3s; }
.em-map { animation: emFade .8s ease-out both .7s; }
.em-sway { transform-origin: 50% 95%; animation: emSway 10s ease-in-out infinite 5s; }
@keyframes emDraw { to { stroke-dashoffset: 0; } }
@keyframes emRip { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes emOpenL { from { transform: rotate(-32deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes emOpenR { from { transform: rotate(32deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes emGrow { from { transform: scale(.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes emFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes emSway { 0%, 100% { transform: rotate(-.5deg); } 50% { transform: rotate(.5deg); } }
@keyframes emTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker { border-top: 1px solid #222A4A; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: emTicker 46s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; font-size: 14px; color: var(--on-night-2); white-space: nowrap; }

/* Explorer (home) */
.explorer { background: #10162E; color: var(--on-night); }
.exp-head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: end; justify-content: space-between; }
.exp-head > div { display: flex; flex-direction: column; gap: 10px; }
.exp-head p { max-width: 460px; color: var(--on-night-2); }
.row-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.theme-list { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.theme-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; cursor: pointer; text-align: start; font: 600 15px var(--body); border: 0; background: transparent; color: var(--on-night-2); transition: background-color .2s, color .2s; }
.theme-btn:hover { background: var(--night-2); color: var(--on-night); }
.theme-btn[aria-pressed="true"] { background: var(--night-3); color: #FFFFFF; font-weight: 800; }
.theme-btn > span:first-child { display: flex; align-items: center; gap: 12px; }
.preview { flex: 999 1 520px; min-width: 0; background: var(--bg); color: var(--fg); border-radius: 28px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.preview-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.preview-top span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.tabs button { min-height: 42px; border: 0; border-radius: 999px; cursor: pointer; font: 700 14px var(--body); background: transparent; color: var(--fg-2); transition: all .2s; }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.scale-text { min-height: 80px; color: var(--fg-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--fg); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(11, 16, 36, .6); }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--fg-2); }
.card .meta span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.card p { color: var(--fg-2); font-size: 15px; }
.card .path { font-size: 13px; color: var(--fg-2); }
.feature-card { min-height: 280px; justify-content: space-between; }
.feature-card h3 { font-size: 30px; }

/* Catalogue */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px var(--body); color: var(--fg); min-height: 48px; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
select { min-height: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 15px var(--body); max-width: 100%; }
.count { font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.fam-block { display: flex; flex-direction: column; gap: 18px; }
.fam-block h2 { font-size: clamp(26px, 3vw, 38px); display: flex; align-items: center; gap: 14px; }
.fam-block h2 .dot { width: 16px; height: 16px; }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.disc-col { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.disc-col h3 { font-size: 18px; margin-bottom: 6px; }
.disc-col a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; margin-inline: -8px; border-radius: 10px; text-decoration: none; color: var(--fg); font-size: 15px; }
.disc-col a:hover { background: var(--surface-2); }
.empty { padding: 40px; text-align: center; color: var(--fg-2); border: 1px dashed var(--line); border-radius: 20px; }

/* Dossier */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--on-night-2); }
.crumbs a { color: var(--on-night-2); }
.dossier-hero { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 22px; }
.dossier-hero h1 { max-width: 16ch; }
.dossier-hero .row-chips span { background: var(--night-3); color: var(--on-night); }
.dossier-layout { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 64px; align-items: flex-start; }
.toc { flex: 1 1 220px; min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); display: flex; flex-direction: column; gap: 4px; }
.toc a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--fg-2); font-weight: 600; font-size: 15px; border-inline-start: 2px solid var(--line); }
.toc a:hover { color: var(--fg); border-color: var(--accent); }
.article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.article section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.article section p { font-size: 18px; line-height: 1.75; max-width: 66ch; }
.scale-head { display: flex; align-items: center; gap: 14px; }
.scale-head svg { flex: none; }
.notice { background: var(--accent-soft); color: var(--accent-on-soft); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.notice p { font-size: 16px !important; }
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quiz fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.quiz legend { font: 800 20px/1.3 var(--display); margin-bottom: 10px; }
.quiz button.opt { text-align: start; min-height: 52px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 600 15px var(--body); cursor: pointer; }
.quiz button.opt:hover { border-color: var(--fg); }
.quiz button.opt[data-state="good"] { background: var(--lime); border-color: var(--lime); color: var(--night); }
.quiz button.opt[data-state="bad"] { background: var(--surface-2); color: var(--fg-2); text-decoration: line-through; }
.quiz output { font-size: 15px; color: var(--fg-2); min-height: 24px; }
.key-figures { display: flex; flex-direction: column; gap: 12px; }
.kf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.kf { background: var(--night); color: var(--on-night); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kf strong { font: 800 clamp(26px, 3vw, 34px)/1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; }
.kf span { font-size: 14px; line-height: 1.45; color: var(--on-night-2); }
.kf sup a { color: var(--lime); }
.article sup a { font-size: 12px; font-weight: 800; color: var(--accent); text-decoration: none; padding: 0 2px; }
.article sup a:hover { text-decoration: underline; }
.sources li { scroll-margin-top: 24px; }
.sources li:target { background: var(--accent-soft); border-radius: 8px; }
.sources a { color: var(--fg); }
.tag-rich { background: var(--fg); color: var(--bg); }
.agir { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.agir li { background: var(--accent-soft); color: var(--accent-on-soft); border-radius: 18px; padding: 18px 20px; font-size: 16px; line-height: 1.55; font-weight: 600; }
.sources { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); }
.article section p.src-note { font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.pager { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.pager a { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.pager a:last-child { text-align: end; }
.pager small { color: var(--fg-2); font-size: 13px; }

/* Learn */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.publics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.publics div { border-top: 2px solid var(--fg); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.publics strong { font: 800 20px/1.2 var(--display); }
.publics span { font-size: 15px; color: var(--fg-2); }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 0 32px; }
.gloss dl { margin: 0; display: contents; }
.gloss div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.gloss dt { font: 800 18px/1.2 var(--display); }
.gloss dd { margin: 0; color: var(--fg-2); font-size: 15px; }
.path-card ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Offers */
.offer { scroll-margin-top: 16px; }
.offer-grid { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.offer-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.offer-list { flex: 1 1 380px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.offer-list li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.offer-list strong { font: 800 19px/1.25 var(--display); }
.offer-list span { color: var(--fg-2); font-size: 15px; }
.offer-note { font-size: 14px; color: var(--fg-2); max-width: 70ch; }
.charter { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.charter li { counter-increment: c; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--lime); padding-top: 16px; }
.charter li::before { content: counter(c); font: 800 32px/1 var(--display); color: var(--lime); }
.charter strong { font: 800 19px/1.25 var(--display); }
.charter span { color: var(--on-night-2); font-size: 15px; }

/* Actors */
.actors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.actor { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.actor:target { outline: 3px solid var(--accent); }
.actor .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; color: var(--fg-2); }
.actor h3 { font-size: 20px; }
.actor p { color: var(--fg-2); font-size: 15px; }
.actor-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.actor-themes a { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg); text-decoration: none; }
.actor-themes a:hover { background: var(--accent-soft); color: var(--accent-on-soft); }
.actor-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.plan-hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan p { color: var(--fg-2); font-size: 15px; }
.plan ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
fieldset { min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 44px; }
.check input, .field .check input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--accent); flex: none; }
.pv-actors { font-size: 14px; color: var(--fg-2); }
.pv-actors a { color: var(--fg); font-weight: 700; }
.roots-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; align-items: center; padding: 4px 0 28px; font-size: 14px; color: var(--on-night-2); }
.roots-caption a { color: var(--lime); font-weight: 700; }

/* Label : la Feuille citoyenne */
.label-hero { padding-block: 40px 64px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.label-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.leaf-meter { display: flex; gap: 6px; align-items: flex-end; }
.leaf-meter svg { width: 26px; height: 36px; fill: var(--lime); }
.leaf-meter svg.leaf-off { fill: none; stroke: currentColor; stroke-width: 10; opacity: .35; }
.leaf-meter-hero { flex: 1 1 260px; justify-content: center; gap: 12px; color: var(--on-night-3); }
.leaf-meter-hero svg { width: 46px; height: 64px; }
.leaf-meter-hero svg:nth-child(2) { transform: translateY(-14px); } .leaf-meter-hero svg:nth-child(3) { transform: translateY(-22px); } .leaf-meter-hero svg:nth-child(4) { transform: translateY(-14px); }
.leaf-fall { animation: emLeafFall 7s ease-in-out infinite 1.5s; transform-origin: 50% 100%; }
@keyframes emLeafFall { 0%, 35% { transform: translateY(-14px) rotate(0); opacity: 1; } 55% { transform: translate(30px, 90px) rotate(70deg); opacity: 0; } 70% { transform: translateY(-14px) scale(.2); opacity: 0; } 90%, 100% { transform: translateY(-14px) scale(1); opacity: 1; } }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.steps3 li { display: flex; flex-direction: column; gap: 10px; }
.steps3 p { color: var(--fg-2); }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-on-soft); font: 800 20px/44px var(--display); text-align: center; }
.org-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 24px; }
.org-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; }
.org-head h3 { font-size: clamp(26px, 3vw, 34px); margin-top: 10px; }
.org-meta { color: var(--fg-2); font-size: 14px; margin-top: 6px !important; }
.org-score { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--fg-2); font-size: 14px; }
.org-score strong { color: var(--fg); font: 800 18px var(--display); }
.org-score .leaf-meter svg { fill: var(--accent); }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.promises li { display: flex; flex-direction: column; gap: 8px; }
.pr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.pr-top strong { font-size: 16px; }
.pr-top a { font-size: 13px; font-weight: 600; color: var(--accent); }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.b-ok { background: #5FA83A; } .b-mid { background: #E8B24A; } .b-ko { background: #D9603F; }
.pr-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.testimonies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.testi { background: var(--bg); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.testi p { font-size: 15px; }
.testi-who { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.reply { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; display: flex; flex-direction: column; gap: 4px; }
.sim { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.sim-inputs { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sim-row { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sim-row strong { font-size: 15px; }
.sim-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sim-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.sim-fields input { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 700 16px var(--body); padding: 0 12px; width: 100%; font-variant-numeric: tabular-nums; }
.sim-out { flex: 1 1 260px; min-width: 0; background: var(--night); color: var(--on-night); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: flex-start; }
.sim-out .leaf-meter { color: var(--on-night-3); }
.sim-out .leaf-meter svg { width: 34px; height: 46px; }
.sim-out strong { font: 800 26px var(--display); }
.sim-out p { color: var(--on-night-2); font-size: 14px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.rules li { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--fg); padding-top: 14px; }
.rules strong { font: 800 18px/1.25 var(--display); }
.rules span { color: var(--fg-2); font-size: 15px; }
.verdicts { display: flex; flex-wrap: wrap; gap: 10px; }
.verdict { position: relative; }
.verdict input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.verdict span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; background: var(--surface); }
.verdict input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.verdict input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* About */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: minmax(80px, 140px) minmax(0, 1fr); gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline .year { font: 800 clamp(36px, 4vw, 52px)/1 var(--display); color: var(--accent); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--fg-2); max-width: 66ch; }
.timeline ul { margin: 12px 0 0; padding-inline-start: 18px; color: var(--fg-2); display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } }
.archive { background: var(--night); color: var(--on-night); border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.archive blockquote { margin: 0; font: 600 clamp(20px, 2.4vw, 28px)/1.35 var(--display); letter-spacing: -0.01em; }
.archive figcaption { font-size: 14px; color: var(--on-night-3); }
.founder { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.founder > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.founder ul { margin: 0; padding-inline-start: 18px; color: var(--fg-2); display: flex; flex-direction: column; gap: 6px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 500 16px var(--body); }
.field select { border-radius: 14px; }
.field textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.form output, .letter output { font-size: 15px; min-height: 22px; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-grid > * { flex: 1 1 340px; min-width: 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row code { font: 700 17px var(--body); user-select: all; }

/* Letter + footer */
.letter { background: var(--night); color: var(--on-night); border-radius: 32px; padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.letter > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.letter form { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.letter input { flex: 1 1 220px; min-width: 0; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--on-night); font: 500 16px var(--body); }
.letter output { flex-basis: 100%; color: var(--on-night-2); }
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.site-foot a:hover { color: var(--fg); }
.site-foot small { color: var(--fg-2); font-size: 14px; display: block; max-width: 46ch; }
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal p, .legal li { color: var(--fg-2); }


/* ---------- Graines ---------- */
.sprout { flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sprout svg { width: 150px; height: 200px; overflow: visible; }
.s-seed { fill: #C9A86A; }
.s-stem { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: grStem 1.2s .3s ease-out forwards; }
.s-leaf { fill: var(--lime); transform-box: fill-box; transform-origin: bottom center; transform: scale(0); animation: grLeaf .7s cubic-bezier(.2,.8,.2,1) forwards; }
.s-l1 { animation-delay: 1.2s; } .s-l2 { animation-delay: 1.5s; } .s-l3 { animation-delay: 1.8s; fill: var(--leaf-2); }
@keyframes grStem { to { stroke-dashoffset: 0; } }
@keyframes grLeaf { to { transform: scale(1); } }
.sprout-count { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sprout-count strong { font: 800 40px/1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; }
.sprout-count span { font-size: 13px; color: var(--on-night-3); }
.bareme { display: flex; flex-direction: column; border-top: 2px solid var(--fg); }
.bareme-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.6fr); gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.b-act { font: 800 19px/1.25 var(--display); }
.b-val { font: 800 17px/1 var(--display); color: var(--accent-on-soft); background: var(--accent-soft); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.b-rule { color: var(--fg-2); font-size: 15px; }
@media (max-width: 640px) { .bareme-row { grid-template-columns: 1fr auto; } .b-rule { grid-column: 1 / -1; } }
.step-n.wide { align-self: flex-start; width: auto; min-width: 44px; padding: 0 12px; border-radius: 999px; }
.counter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; }
.counter div { background: var(--night); color: var(--on-night); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.counter strong { font: 800 40px/1 var(--display); color: var(--lime); }
.counter span { font-size: 14px; color: var(--on-night-2); }
.publics.on-night div { border-top-color: var(--lime); }
.publics.on-night span { color: var(--on-night-2); }
.carnet { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.carnet-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.carnet-top strong { font: 800 56px/1 var(--display); color: var(--accent-on-soft); font-variant-numeric: tabular-nums; }
.carnet-top span { color: var(--fg-2); }
.carnet-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.carnet-bar span { display: block; height: 100%; width: 0; background: var(--leaf-2); border-radius: 999px; transition: width .6s; }
.carnet-fams { display: flex; flex-wrap: wrap; gap: 8px; }
.carnet-fams span { font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); }
.seed-msg a { font-weight: 700; }
.graines-band { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; background: var(--accent-soft); color: var(--accent-on-soft); border-radius: 28px; padding: 32px; }
.graines-band > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.graines-band h2 { font-size: clamp(28px, 4vw, 40px); }
.graines-band p { margin: 0; }

/* ---------- Kit éducatif ---------- */
[lang="ar"] { font-family: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', 'Arial', serif; }
.k-ar-lead { font-family: 'Noto Naskh Arabic', serif; font-size: 22px; color: var(--lime); margin: 0; }
.k-cycles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.k-cycle { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--fg); transition: transform .3s, box-shadow .3s; min-width: 0; }
.k-cycle:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 16, 36, .12); }
.k-cycle h3 { font-size: 28px; }
.k-cycle p { margin: 0; color: var(--fg-2); font-size: 14px; }
.k-cycle ol { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.k-cycle li { display: flex; gap: 8px; align-items: baseline; }
.k-go { margin-top: auto; font-weight: 800; color: var(--accent); }
.k-card .k-ar { font-family: 'Noto Naskh Arabic', serif; font-size: 17px; color: var(--fg-2); margin: 0; }
.k-meth { display: flex; flex-wrap: wrap; gap: 6px; }
.k-meth span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-on-soft); font-weight: 600; }
.k-compass { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.k-compass li { display: flex; flex-direction: column; gap: 10px; }
.k-compass p { color: var(--fg-2); font-size: 15px; margin: 0; }
.k-ph { display: inline-block; align-self: flex-start; font: 800 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; color: #0B1024; background: #ADC843; }
.k-ph[data-ph="Enquêter"] { background: #7FC4D8; } .k-ph[data-ph="Comprendre"] { background: #E3B65B; } .k-ph[data-ph="Agir"] { background: #E58E6A; } .k-ph[data-ph="Partager"] { background: #C7A3E0; }
.k-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.k-tools > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.k-tools h3 { font-size: 19px; letter-spacing: -0.02em; }
.k-tools p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.publics.on-night a { color: var(--lime); }
.k-cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.k-cal li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); min-width: 0; }
.k-cal span { font: 800 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.k-cal a { font-weight: 700; color: var(--fg); }
.k-cards { margin-top: 24px; }
.k-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; margin-top: 16px; }
.k-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.k-two > div, .k-three > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.k-two h3, .k-three h3 { font-size: 20px; }
.k-list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.k-list li { color: var(--fg-2); }
.k-crit li::marker { content: '✓  '; color: var(--accent); font-weight: 800; }
.k-question { background: var(--night); color: var(--on-night); border-radius: 22px; padding: 24px; }
.k-question .label { color: var(--lime); }
.k-question p { font: 800 clamp(22px, 3vw, 30px)/1.2 var(--display); letter-spacing: -0.02em; margin: 8px 0 0; }
.k-seances { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.k-seance { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.k-seance h3 { font-size: 19px; margin-bottom: 8px; }
.k-seance h3 small { font: 600 13px var(--body); color: var(--fg-2); margin-inline-start: 6px; }
.k-seance ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); }
@media (max-width: 560px) { .k-seance { grid-template-columns: 1fr; } }
.k-print { margin-top: 8px; }
/* Fiche élève */
.fiche { background: #FFFFFF; color: #111; border: 2px dashed var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.fiche[lang="ar"] { font-size: 19px; line-height: 1.8; }
.f-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-bottom: 2px solid #111; padding-bottom: 10px; }
.f-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.f-who { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85em; }
.f-title { font: 800 1.5em/1.25 var(--display); display: flex; gap: 10px; align-items: center; margin: 0; }
.fiche[lang="ar"] .f-title { font-family: 'Noto Naskh Arabic', serif; font-weight: 700; }
.f-intro { margin: 0; font-style: italic; }
.f-ex { display: flex; flex-direction: column; gap: 8px; break-inside: avoid; }
.f-ex h4 { margin: 0; font-size: 1.05em; display: flex; gap: 8px; align-items: center; }
.f-n { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #111; color: #fff; font-size: .8em; flex: none; }
.f-consigne { margin: 0; color: #333; }
.f-list { margin: 0; padding-inline-start: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.f-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.f-lines span { border-bottom: 1px dotted #777; height: 1px; }
.f-draw { height: 170px; border: 1.5px solid #111; border-radius: 12px; }
.f-relier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 40px; }
.fiche { min-width: 0; overflow-wrap: anywhere; }
.f-mots { overflow-x: auto; }
@media (max-width: 560px) { .f-relier { gap: 10px 16px; } .fiche { padding: 16px; } .f-mots table { font-size: 14px; } }
.f-relier ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.f-relier li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #999; border-radius: 10px; padding: 8px 10px; }
.f-relier .f-r li { justify-content: flex-start; }
.f-relier i { width: 12px; height: 12px; border-radius: 50%; background: #111; flex: none; }
.f-vf, .f-qcm { margin: 0; padding-inline-start: 1.4em; display: flex; flex-direction: column; gap: 10px; }
.f-vf li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.f-vf li > span:first-child { flex: 1 1 260px; }
.f-box { border: 1.5px solid #111; border-radius: 8px; padding: 2px 10px; font-size: .85em; }
.f-qcm p { margin: 0 0 6px; }
.f-qcm ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.f-check { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #111; border-radius: 3px; margin-inline-end: 6px; vertical-align: -2px; }
.f-table { overflow-x: auto; }
.f-table table, .f-mots table { border-collapse: collapse; width: 100%; }
.f-table th, .f-table td, .f-mots td { border: 1px solid #555; padding: 8px 10px; text-align: start; vertical-align: top; }
.f-table td { height: 34px; }
.f-table th { background: #EFEFEA; }
.f-retiens { border: 2px solid #39671C; border-radius: 14px; padding: 12px 16px; background: #F1F6E4; }
.f-retiens p { margin: 6px 0 0; }
.f-mots strong { display: block; margin-bottom: 6px; }
.f-mots td[lang="fr"] { font-family: var(--body); }
.f-foot { margin: 0; font-size: .8em; color: #555; text-align: center; }
@media print {
  .site-head, .site-foot, #lettre, .toc, .pager, .k-print, .crumbs, .actions { display: none !important; }
  body, .article, main { background: #fff !important; color: #000 !important; }
  .night { background: #fff !important; color: #000 !important; }
  .night * { color: #000 !important; }
  .dossier-layout { display: block !important; }
  body.print-fiche main > *:not(.dossier-layout) { display: none !important; }
  body.print-fiche .article > *:not(.fiche) { display: none !important; }
  body.print-guide .fiche { break-before: page; }
  .fiche { border: 0; padding: 0; }
  .k-seance, .k-tools > div, .f-retiens, .f-mots, .f-relier, .f-table { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  .s-stem, .s-leaf { animation: none; stroke-dashoffset: 0; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .em-draw { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* Photos */
.photo-band { margin: 0; position: relative; background: var(--night, #0B1024); }
.photo-band img { display: block; width: 100%; height: clamp(220px, 42vw, 460px); object-fit: cover; }
.photo-band figcaption { position: absolute; right: 12px; bottom: 10px; max-width: 80%; font-size: 12px; line-height: 1.4; color: #fff; background: rgba(11, 16, 36, .72); padding: 4px 10px; border-radius: 99px; }
.photo-band figcaption a { color: #ADC843; }
.feature-card.has-photo { padding-top: 0; overflow: hidden; }
.card-photo { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px; height: 180px; object-fit: cover; }

/* ---------- En-tête : menu compact, menu mobile, recherche ---------- */
html { scroll-padding-top: 84px; }
.site-head { position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 var(--night-line); }
.site-head .wrap.head-row { flex-wrap: nowrap; gap: 14px; padding-block: 12px; position: relative; }
.site-head .nav { flex: 1; justify-content: center; flex-wrap: nowrap; align-items: center; gap: 2px; }
.site-head .nav a, .nav-more-btn { white-space: nowrap; padding: 9px 11px; font-size: 15px; }
.nav-more { position: relative; }
.nav-more-btn { font: 600 15px var(--body); color: var(--on-night-2); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] { color: var(--on-night); background: var(--night-3); }
.nav-more-btn[data-current="true"] { color: var(--night); background: var(--lime); }
.nav-more-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); flex-direction: column; }
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu a { border-radius: 10px !important; }
.nav-cta { display: none !important; }
.head-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--on-night); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--night-3); }
.burger { display: none; }
.head-cta { padding: 10px 18px; }
.search-panel { background: var(--night-2); border-top: 1px solid var(--night-line); padding-block: 16px 20px; }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; min-width: 0; font: 500 18px var(--body); color: var(--fg); background: var(--surface); border: 2px solid transparent; border-radius: 999px; padding: 12px 20px; }
.search-form input:focus { outline: none; border-color: var(--lime); }
.search-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.search-results:empty { display: none; }
.search-results a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--on-night); padding: 10px 14px; border-radius: 12px; }
.search-results a b { font-weight: 700; }
.search-results a span { font-size: 13px; color: var(--on-night-3); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--night-3); }
.search-results .tout a { color: var(--lime); font-weight: 700; }
.search-results .vide { color: var(--on-night-2); padding: 10px 14px; }
@media (max-width: 1239px) {
  .burger { display: grid; }
  .js .site-head .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night-2); border-top: 1px solid var(--night-line); padding: 12px var(--gutter-r) 18px var(--gutter-l); grid-template-columns: 1fr 1fr; gap: 6px; max-height: calc(100vh - 70px); overflow: auto; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .js .site-head .nav.open { display: grid; }
  .site-head .nav a { border-radius: 12px; padding: 12px 14px; background: var(--night-3); color: var(--on-night); }
  .nav-more-btn { display: none; }
  .nav-more, .nav-more-menu { display: contents !important; }
  .nav-cta { display: block !important; grid-column: 1 / -1; text-align: center; background: var(--lime) !important; color: var(--night) !important; }
  html:not(.js) .site-head .wrap.head-row { flex-wrap: wrap; }
  html:not(.js) .site-head .nav { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .head-cta { display: none; }
  .brand span { font-size: 18px; }
  .brand img { width: 38px; height: 32px; }
  .search-form .btn { display: none; }
}
@media (max-width: 380px) { .site-head .nav { grid-template-columns: 1fr; } }
.site-head .search-panel .wrap { display: block; padding-block: 0; }
.site-head .nav a[aria-current="page"] { background: var(--lime); color: var(--night); }

/* ---------- Icônes EcoloMag (familles et disciplines) ---------- */
.ico { flex: none; display: inline-block; vertical-align: middle; }
.ico .a { fill: var(--ic); stroke: none; opacity: .55; }
.night .ico .a, .search-panel .ico .a { opacity: .7; }
.crown[aria-pressed="true"] .ico .a, .chip[aria-pressed="true"] .ico .a, .chip[aria-selected="true"] .ico .a { fill: var(--night); opacity: .22; }
.fam-block h2 .ico { color: var(--fg); }
.disc-col h3 { display: flex; align-items: center; gap: 8px; }
.disc-col h3 .ico { opacity: .9; }
#exp-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
#exp-eyebrow .ico { color: var(--on-night); }
#pv-path .ico { color: var(--fg); }
#pv-path { display: inline-flex; align-items: center; gap: 8px; }
.tag .ico { margin-inline-start: -3px; }
.dossier-hero { position: relative; }
.dossier-hero .hero-ico { position: absolute; top: 40px; right: var(--gutter-r); color: var(--on-night); width: 128px; height: 128px; padding: 24px; border-radius: 32px; background: var(--night-2); border: 1px solid var(--night-line); box-sizing: content-box; }
.dossier-hero .hero-ico .a { opacity: .8; }
.search-results a.has-ico { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; }
.search-results a.has-ico .sr-ico { grid-row: span 2; color: var(--on-night); }
@media (max-width: 900px) { .dossier-hero .hero-ico { width: 72px; height: 72px; padding: 14px; border-radius: 22px; } }
@media (max-width: 640px) { .dossier-hero .hero-ico { position: static; order: -1; width: 48px; height: 48px; padding: 10px; border-radius: 16px; } }
.disc-col a > span:first-child { display: flex; align-items: center; gap: 10px; }
.disc-col a .ico { color: var(--fg); }
.theme-btn .ico { color: currentColor; }
.theme-btn .ico .a { opacity: .75; }
.card-ico > .ico { color: var(--fg); margin-bottom: 4px; }
#pv-title { display: flex; align-items: center; gap: 14px; }
#pv-title .pv-ico { color: var(--fg); }

/* ---------- Recherche plein texte (Explorer et menu) ---------- */
.resultats { display: flex; flex-direction: column; gap: 14px; }
.res-sum { color: var(--fg-2); margin: 0; }
.res-sum b { color: var(--fg); }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.res { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--surface, #fff); border: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s; }
.res:hover, .res:focus-visible { border-color: var(--fg); transform: translateY(-1px); }
.res-ico { color: var(--fg); margin-top: 2px; }
.res-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.res-kind { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
.res-title { font-family: var(--display, inherit); font-size: 19px; font-weight: 800; line-height: 1.25; }
.res-snip { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.res mark, .search-results mark { background: color-mix(in srgb, var(--lime, #ADC843) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-results mark { background: color-mix(in srgb, var(--lime, #ADC843) 40%, transparent); color: #fff; }
.res-more { align-self: center; }
.search-results a.has-ico span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .res { grid-template-columns: 32px 1fr; gap: 12px; padding: 14px; } .res-ico { width: 32px; height: 32px; } .res-title { font-size: 17px; } }

/* ---------- Bouton thème clair / sombre ---------- */
.theme-btn-toggle .ico-soleil { display: none; }
:root[data-theme="dark"] .theme-btn-toggle .ico-soleil { display: block; }
:root[data-theme="dark"] .theme-btn-toggle .ico-lune { display: none; }
html { transition: none; }

/* En-tête mobile : la marque se réduit, les trois boutons restent dans l'écran */
.site-head .brand { min-width: 0; flex: 0 1 auto; }
.site-head .brand span { white-space: nowrap; overflow: hidden; text-overflow: clip; }
@media (max-width: 480px) {
  .site-head .wrap.head-row { gap: 8px; }
  .head-tools { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .brand { gap: 8px; }
  .brand span { font-size: 16px; }
  .brand img { width: 32px; height: 27px; }
}
@media (max-width: 380px) {
  .brand span { font-size: 14.5px; letter-spacing: -0.02em; }
  .brand img { width: 28px; height: 24px; }
  .head-tools { gap: 5px; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 340px) {
  .brand span { font-size: 12.5px; }
  .site-head .wrap.head-row { gap: 6px; }
}

/* Petits écrans (320–360 px) : rien ne doit dépasser */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
p, li, dd, dt, blockquote, .testi, .org-card { overflow-wrap: break-word; min-width: 0; }
.testimonies > *, .org-card > * { min-width: 0; }
.gloss { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
@media (max-width: 360px) {
  h1 { font-size: 34px; }
  #hero-h { font-size: 33px; }
  h2 { font-size: 29px; }
}
.testimonies { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
