/* L'Oisillon v6 — la v5 (image d'abord, oiseaux détourés qui sortent du cadre, typographie géante, aplats du Gould)
   rendue utile à la lecture : recherche dès l'ouverture, en-tête qui suit, boucle de lecture, textes plus grands,
   boutique ramenée à une ligne. Revue croisée claude-main + codex-sol du 17/10/2026. */
:root {
  --forest: #13281c; --forest-2: #1d3a29; --bone: #f1efea; --sheet: #fbfaf7;
  --ink: #161c15; --muted: #3f473d;
  --green: #2f5a3c; --yellow: #e2a52a; --purple: #6b3d5e; --teal: #20535c; --sand: #e7dcc6; --red: #972922;
  --serif: "Fraunces", Georgia, serif; --sans: "Mulish", system-ui, sans-serif;
  --pad: clamp(18px, 4.4vw, 72px); --space: clamp(64px, 10vw, 168px);
  --t-small: 16px; --t-body: 18px; --t-lead: clamp(20px, 1.1rem + .6vw, 25px); --t-sub: clamp(26px, 1.3rem + 1.1vw, 34px);
  --t-head: clamp(44px, 1.8rem + 3.6vw, 84px); --t-giant: clamp(76px, 3rem + 10.5vw, 220px);
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 var(--t-body)/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--yellow); }
h1, h2, h3, p, figure, ul, ol, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: .95; text-wrap: balance; }
h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-sub); line-height: 1.05; }
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 var(--t-small)/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .25s, background-color .25s; }
.btn:hover { transform: translateY(-3px); background: #f0b53c; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--yellow); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { left: 12px; }

/* En-tête : posé sur l'ouverture, puis fixe ; il se cache quand on descend et revient quand on remonte */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 36px; padding: 18px var(--pad); color: #f3f1ea; transition: transform .4s var(--ease), background-color .3s, padding .3s; }
.top.solid { background: rgba(19,40,28,.94); padding-block: 10px; }
.top.hide { transform: translateY(-110%); }
.top .brand img { width: 96px; filter: brightness(0) invert(1); transition: width .3s; }
.top.solid .brand img { width: 70px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-weight: 600; font-size: var(--t-small); }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.top nav .all { padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.top nav .all:hover { text-decoration: none; background: #f0b53c; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; min-height: 48px; display: grid; place-items: center; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary .open, .menu summary .close { display: none; }
.menu[open] summary .close { display: inline; }
.menu[open] nav { position: absolute; left: var(--pad); right: var(--pad); top: 100%; background: var(--sheet); color: var(--ink); display: grid; padding: 10px 22px 18px; border-radius: 0 0 22px 22px; }
.menu nav a { padding: 12px 0; font: 500 var(--t-lead) var(--serif); text-decoration: none; }

/* Ouverture */
.hero { position: relative; min-height: max(760px, 100svh); background: var(--forest); color: #f3f1ea; padding: 140px var(--pad) 48px; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.hero .leaves { position: absolute; top: 40px; right: -40px; width: min(40vw, 560px); opacity: .3; pointer-events: none; }
.hero h1 { position: relative; z-index: 1; font-size: var(--t-giant); line-height: .82; letter-spacing: -.06em; align-self: center; }
.hero h1 > span { display: block; overflow: hidden; padding: .16em 0 .24em; margin: -.16em 0 -.16em; }   /* bas : jambage du g de « élevage » (19/10) */
.hero h1 > span > span { display: block; }
.hero h1 > span + span { padding-left: 12vw; }
.hero .bird { position: absolute; z-index: 2; right: 0; top: 22%; width: min(38vw, 600px); pointer-events: none; }
.hero-foot { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: end; margin-top: 40px; }
.hero-foot > p { font: 400 var(--t-lead)/1.4 var(--serif); max-width: 34ch; color: #dfe7dc; }

/* Recherche : « Quel oiseau élevez-vous ? » */
.finder { display: grid; gap: 10px; }
.finder label { font: 500 var(--t-lead)/1.2 var(--serif); color: #fff; }
.finder .field { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.finder input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: transparent; padding: 0 18px; font: 500 19px var(--sans); color: var(--ink); border-radius: 999px; }
.finder input:focus-visible { box-shadow: none; outline: 0; }
.finder .field:focus-within { box-shadow: 0 0 0 4px var(--yellow); }
.finder .btn { min-height: 52px; }
.finder .hint { font-size: var(--t-small); color: #c4d1c6; }
.finder .hint a { color: #fff; font-weight: 600; }
.finder-out { display: grid; gap: 6px; }
.finder-out:empty { display: none; }
.finder-out a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-radius: 16px; background: rgba(255,255,255,.1); text-decoration: none; font: 500 var(--t-lead)/1.2 var(--serif); }
.finder-out a:hover, .finder-out a:focus-visible { background: rgba(255,255,255,.2); }
.finder-out small { font: 400 var(--t-small) var(--sans); color: #c4d1c6; white-space: nowrap; }

/* Rail des espèces */
.rail-sec { padding: var(--space) 0 calc(var(--space) * .7); }
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--pad); margin-bottom: 30px; }
.rail-head p { color: var(--muted); max-width: 40ch; margin-top: 14px; }
.rail-head .read-count { color: var(--green); font-weight: 700; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 22px; cursor: pointer; transition: transform .2s, background-color .2s; }
.rail-ctrl button:hover { transform: scale(1.08); background: var(--green); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 340px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 90px var(--pad) 20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.sp { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 24px; text-decoration: none; border-radius: 28px; transition: transform .35s; }
.sp img { position: absolute; left: 50%; top: -70px; width: auto; max-width: 86%; max-height: 225px; transform: translateX(-50%); transition: transform .5s var(--ease); }
.sp:hover { transform: translateY(-6px); }
.sp:hover img { transform: translateX(-50%) translateY(-14px) rotate(-3deg) scale(1.04); }
.sp h3 { position: relative; }
.sp p { position: relative; font-size: var(--t-small); margin-top: 8px; }
.sp .latin { display: block; font: italic 500 var(--t-small) var(--serif); margin-top: 6px; }
.sp.lu::after { content: "Déjà lu"; position: absolute; top: 18px; right: 18px; font: 700 15px var(--sans); background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; }
.sp.all-guides { justify-content: center; gap: 14px; background: var(--ink); color: #f3f1ea; }
.sp.all-guides strong { font: 500 clamp(64px, 3rem + 3vw, 110px)/.9 var(--serif); letter-spacing: -.05em; }
.sp.all-guides span { font: 500 var(--t-sub)/1.1 var(--serif); }
.c-green { background: var(--green); color: #f1f5ee; }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-purple { background: var(--purple); color: #f8eef5; }
.c-teal { background: var(--teal); color: #eef8f9; }
.c-sand { background: var(--sand); color: var(--ink); }
.c-red { background: var(--red); color: #fdf0ee; }

/* La saison des nichées : trois gestes, trois scènes */
.season { margin: 0 var(--pad); background: var(--yellow); border-radius: 36px; padding: clamp(32px, 5vw, 76px); display: grid; gap: 40px; }
.season-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.season-head p { font: 400 var(--t-lead)/1.4 var(--serif); max-width: 40ch; }
.season-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.season-cards a { display: grid; grid-template-rows: auto 1fr; gap: 14px; background: var(--sheet); border-radius: 26px; padding: 20px 22px 24px; text-decoration: none; transition: transform .3s; }
.season-cards a:hover { transform: translateY(-6px); }
.season-cards img { width: 100%; aspect-ratio: 1.15; object-fit: contain; transition: transform .5s var(--ease); }
.season-cards a:hover img { transform: scale(1.05) rotate(-1.5deg); }
.season-cards strong { display: block; font: 500 var(--t-sub)/1.05 var(--serif); letter-spacing: -.03em; }
.season-cards span { display: block; color: var(--muted); font-size: var(--t-small); margin-top: 8px; }

/* Familles : liste géante, l'oiseau suit le pointeur sur ordinateur */
.families { padding: var(--space) var(--pad); position: relative; }
.families > p { color: var(--muted); max-width: 44ch; margin: 16px 0 40px; }
.families .touch-hint { display: none; }
.fam li a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; text-decoration: none; transition: color .25s, padding .25s; }
.fam li a strong { font: 500 clamp(40px, 1.6rem + 4.4vw, 104px)/1 var(--serif); letter-spacing: -.045em; }
.fam li a span { font: 500 var(--t-lead) var(--serif); white-space: nowrap; }
.fam li a small { display: none; }
.fam li a:hover { padding-left: 18px; }
.fam li:nth-child(1) a:hover { color: var(--green); } .fam li:nth-child(2) a:hover { color: #9a6c12; } .fam li:nth-child(3) a:hover { color: var(--purple); }
.fam li:nth-child(4) a:hover { color: var(--teal); } .fam li:nth-child(5) a:hover { color: var(--red); }
.fam img.inline { display: none; }
.cursor-bird { position: fixed; top: 0; left: 0; width: 260px; pointer-events: none; z-index: 30; opacity: 0; transition: opacity .25s; }
.cursor-bird.on { opacity: 1; }

/* Les éleveurs qui écrivent */
.writers { padding: 0 var(--pad) var(--space); }
.writers > p { color: var(--muted); max-width: 46ch; margin: 16px 0 36px; }
.writers ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.writers li a { display: grid; gap: 14px; padding: 24px; border-radius: 26px; background: var(--sheet); text-decoration: none; height: 100%; transition: transform .25s; }
.writers li a:hover { transform: translateY(-4px); }
.writers .ini { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 500 26px/1 var(--serif); color: #fff; }
.writers strong { font: 500 var(--t-sub)/1.05 var(--serif); letter-spacing: -.03em; }
.writers span { color: var(--muted); font-size: var(--t-small); }

/* Santé et soins */
.practice { display: grid; grid-template-columns: 1fr 1fr; margin: 0 var(--pad) var(--space); background: var(--sheet); color: var(--ink); border-radius: 36px; overflow: hidden; }
.practice > img { width: 100%; height: 100%; object-fit: cover; }
.practice div { padding: var(--space) clamp(28px, 5vw, 88px); display: flex; flex-direction: column; gap: 22px; }
.practice div > p { font: 400 var(--t-lead)/1.4 var(--serif); max-width: 34ch; color: var(--muted); }
.practice ul { display: grid; gap: 10px; margin-top: 10px; }
.practice li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px; border-radius: 18px; background: var(--teal); color: #eef8f9; text-decoration: none; transition: background-color .2s, transform .2s; }
.practice li a:hover { background: var(--forest); transform: translateX(6px); }
.practice li strong { font: 500 var(--t-sub)/1.1 var(--serif); }
.practice li span { font-size: var(--t-small); white-space: nowrap; }

/* VolièrePro : les mêmes oiseaux */
.app-band { position: relative; background: var(--forest); color: #eef3ea; padding: var(--space) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; overflow: hidden; }
.app-band > div > p { color: #c7d4c6; max-width: 40ch; margin: 22px 0 32px; font-size: var(--t-lead); font-family: var(--serif); }
.flock { position: relative; min-height: 460px; }
.flock img { position: absolute; }
.flock img:nth-child(1) { width: 52%; left: 4%; top: 6%; }
.flock img:nth-child(2) { width: 40%; right: 2%; top: 0; }
.flock img:nth-child(3) { width: 38%; left: 34%; bottom: 0; }

/* 2lpro */
.continue { padding: var(--space) var(--pad); background: var(--purple); color: #f8eef5; display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; }
.continue > div > p { color: #ead6e4; max-width: 40ch; margin-top: 22px; font: 400 var(--t-lead)/1.4 var(--serif); }
.continue-links { display: grid; gap: 10px; align-content: start; }
.continue-links a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 26px; border-radius: 18px; background: rgba(255,255,255,.08); text-decoration: none; font: 500 var(--t-sub) var(--serif); transition: background-color .2s, padding .2s; }
.continue-links a small { display: block; font: 500 var(--t-small) var(--sans); color: #ead6e4; margin-bottom: 4px; }
.continue-links a:hover { background: rgba(255,255,255,.16); padding-left: 34px; }

/* Archives de la boutique : une ligne */
.shop-archive { padding: 44px var(--pad); color: var(--muted); font-size: var(--t-small); text-align: center; text-wrap: balance; }
.shop-archive a { color: var(--ink); font-weight: 600; }

footer { background: #0c1a12; color: #d7e0d8; padding: 80px var(--pad) 36px; }
footer .big { font: 500 clamp(64px, 2rem + 9vw, 190px)/.85 var(--serif); letter-spacing: -.06em; color: #f3f1ea; }
footer .top-reads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 4px 24px; margin-top: 44px; }
footer .top-reads a { padding: 10px 0; text-decoration: none; font: 500 var(--t-lead)/1.2 var(--serif); color: #f3f1ea; }
footer .top-reads a:hover { text-decoration: underline; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 44px; font-size: var(--t-small); }
footer .row > p { max-width: 70ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { font-weight: 600; text-decoration: none; padding: 10px 0; }
footer nav a:hover { text-decoration: underline; }

/* Mouvement : n'existe que si le script tourne et si l'on n'a pas demandé moins d'animations */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease); }
  .js .rise.in { opacity: 1; transform: none; }
  .hero .bird, .a-hero .bird { animation: arrive 1.4s var(--ease) both, sway 7s ease-in-out 1.4s infinite alternate; transform-origin: 45% 75%; }
  @keyframes sway { from { rotate: -1.2deg; } to { rotate: 1.4deg; } }
  /* Profondeur au pointeur (variables posées par anim.js, souris uniquement) */
  .hero .bird, .a-hero .bird { translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 16px); transition: translate .7s var(--ease); }
  .hero .leaves, .a-hero .leaves { translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -12px); transition: translate .9s var(--ease); }
  .hero h1, .a-hero h1 { translate: calc(var(--px, 0) * -8px) 0; transition: translate 1s var(--ease); }
  .hero h1 > span > span { animation: mask 1.1s var(--ease) both; }
  .hero h1 > span + span > span { animation-delay: .14s; }
  @keyframes arrive { from { opacity: 0; transform: translate(60px, 40px) rotate(6deg); } }
  @keyframes mask { from { transform: translateY(105%); } }
  @keyframes up { from { opacity: 0; transform: translateY(60px); } }
  /* Parallaxe en CSS quand le navigateur sait le faire, sur ordinateur seulement */
  @supports (animation-timeline: view()) {
    @media (min-width: 1001px) {
      [data-par] { animation: drift linear both; animation-timeline: view(); }
      .hero .bird[data-par] { animation: arrive 1.4s var(--ease) both; }
      @keyframes drift { from { translate: 0 40px; } to { translate: 0 -40px; } }
    }
  }
  /* Passage d'une page à l'autre : l'oiseau cliqué devient celui de l'ouverture */
  @view-transition { navigation: auto; }
  ::view-transition-group(bird) { animation-duration: .7s; animation-timing-function: var(--ease); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
}

/* Tablette et téléphone */
@media (max-width: 1000px) {
  .top nav { display: none; } .menu { display: block; }
  .hero .bird { width: 46vw; top: 30%; right: -2vw; }
  .hero-foot, .season-head, .practice, .app-band, .continue { grid-template-columns: 1fr; }
  .season-cards { grid-template-columns: 1fr 1fr; }
  .season-cards a:last-child { grid-column: 1 / -1; }
  .writers ul { grid-template-columns: 1fr 1fr; }
  .practice > img { max-height: 420px; }
  .flock { min-height: 360px; }
}
@media (max-width: 640px) {
  :root { --t-giant: 19vw; }
  .hero { padding-top: 110px; grid-template-rows: auto auto auto; min-height: 0; }
  .hero h1 > span + span { padding-left: 0; }
  .hero .bird { position: relative; top: auto; right: auto; width: 78vw; margin: -10px 0 0 auto; }
  .finder .field { flex-direction: column; border-radius: 26px; }
  .finder .btn { justify-content: center; }
  .rail-head { flex-direction: column; align-items: start; }
  .rail-ctrl button { width: 48px; height: 48px; }
  .rail { grid-auto-columns: 80vw; }
  .season { padding: 28px 16px 16px; gap: 24px; border-radius: 28px; }
  .season-cards { grid-template-columns: 1fr; gap: 10px; }
  .season-cards a { grid-template-columns: 104px 1fr; grid-template-rows: none; align-items: center; gap: 14px; padding: 14px; }
  .season-cards img { aspect-ratio: 1; }
  .families .hover-hint { display: none; } .families .touch-hint { display: inline; }
  .fam li a { display: grid; grid-template-columns: 1fr 84px; align-items: center; gap: 2px 12px; }
  .fam li a strong { font-size: clamp(34px, 9vw, 44px); }
  .fam li a span { grid-column: 1; font-size: var(--t-small); font-family: var(--sans); white-space: normal; }
  .fam li a small { display: block; grid-column: 1; color: var(--muted); font-size: var(--t-small); }
  .fam img.inline { display: block; grid-column: 2; grid-row: 1 / 4; width: 84px; }
  .writers ul { grid-template-columns: 1fr; }
  .flock { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; min-height: 0; }
  .flock img:nth-child(n) { position: static; width: 100%; }
}

/* Page « Tous les guides » */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-hero { background: var(--forest); color: #f3f1ea; padding: 150px var(--pad) 56px; display: grid; gap: 22px; }
.g-hero h1 { font-size: var(--t-giant); line-height: .85; letter-spacing: -.06em; }
.g-hero > p { font: 400 var(--t-lead)/1.4 var(--serif); color: #dfe7dc; max-width: 44ch; }
.g-tools { display: grid; gap: 16px; margin-top: 10px; }
.g-tools input { min-height: 56px; border: 0; border-radius: 999px; padding: 0 24px; font: 500 19px var(--sans); color: var(--ink); max-width: 640px; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #f3f1ea; font: 600 var(--t-small) var(--sans); cursor: pointer; }
.chips button:hover { border-color: #fff; }
.chips button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); }
.sort select { min-height: 44px; border-radius: 12px; border: 0; padding: 0 12px; font: 500 var(--t-small) var(--sans); }
.g-count { padding: 40px var(--pad) 0; color: var(--muted); font-weight: 600; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 90px 18px; padding: 110px var(--pad) var(--space); }
.g-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; height: 100%; padding: 22px; border-radius: 26px; text-decoration: none; transition: transform .3s; }
.g-card:hover { transform: translateY(-6px); }
.g-card img { position: absolute; left: 50%; top: -70px; width: 70%; max-height: 240px; object-fit: contain; transform: translateX(-50%); transition: transform .5s var(--ease); }
.g-card:hover img { transform: translateX(-50%) translateY(-10px) rotate(-3deg); }
.g-card .g-ini { position: absolute; top: 14px; left: 22px; font: 500 150px/1 var(--serif); letter-spacing: -.06em; opacity: .22; }
.g-card h2 { position: relative; font-size: clamp(24px, 1.2rem + .7vw, 30px); line-height: 1.05; }
.g-card p { position: relative; font-size: var(--t-small); margin-top: 8px; }
.g-card.lu::after { content: "Déjà lu"; position: absolute; top: 16px; right: 16px; font: 700 15px var(--sans); background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 640px) { .g-hero { padding-top: 120px; } .g-grid { gap: 80px 12px; } }

/* Grain de tirage sur les fonds sombres (bruit SVG, aucun fichier) */
.hero, .a-hero, .g-hero, .app-band, footer { position: relative; isolation: isolate; }
.hero::after, .a-hero::after, .g-hero::after, .app-band::after, footer::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sp.started::after { content: "Commencé"; position: absolute; top: 18px; right: 18px; font: 700 15px var(--sans); background: var(--sheet); color: var(--ink); padding: 6px 12px; border-radius: 999px; }
.all-guides strong, .brief dd { font-variant-numeric: tabular-nums; }

/* v8 : « Ce mois-ci dans la volière » et « Mes oiseaux » (sans compte) */
.mine { padding: var(--space) var(--pad) 0; display: grid; gap: 28px; }
.mine-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.mine-head p { font: 400 var(--t-lead)/1.4 var(--serif); color: var(--muted); max-width: 44ch; }
.mine-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mine-pick button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 18px 4px 6px; border-radius: 999px; border: 2px solid var(--ink); background: var(--sheet); color: var(--ink); font: 600 var(--t-small) var(--sans); cursor: pointer; transition: background-color .2s, transform .2s; }
.mine-pick button img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: var(--bone); }
.mine-pick button:hover { transform: translateY(-2px); }
.mine-pick button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.mine-pick button[aria-pressed="true"]::after { content: "✓"; font-weight: 700; color: var(--yellow); }
.mine-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.mine-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 24px; border-radius: 26px; background: var(--sheet); text-decoration: none; transition: transform .3s; }
.mine-card:hover { transform: translateY(-5px); }
.mine-card img { width: 96px; height: 96px; object-fit: contain; margin-top: -48px; transition: transform .5s var(--ease); }
.mine-card:hover img { transform: rotate(-4deg) scale(1.06); }
.mine-card blockquote { margin: 0; font: italic 500 clamp(20px, 1rem + .5vw, 24px)/1.3 var(--serif); letter-spacing: -.01em; }
.mine-card blockquote.r { font-style: normal; }
.mine-card footer { all: unset; display: grid; gap: 2px; font-size: var(--t-small); color: var(--muted); }
.mine-card footer b { color: var(--ink); }
.mine-cards { padding-top: 40px; }
.mine-card.mine-yours { background: var(--yellow); }
.mine-card.mine-yours footer { color: var(--ink); }
.mine-empty { grid-column: 1 / -1; color: var(--muted); }
.mine-note { font-size: var(--t-small); color: var(--muted); }
.resume-card { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border-radius: 22px; background: var(--forest); color: #f3f1ea; text-decoration: none; }
.resume-card strong { font: 500 var(--t-sub)/1.1 var(--serif); }
.resume-card span { font-size: var(--t-small); color: #c4d1c6; }
.sp.yours { outline: 4px solid var(--ink); outline-offset: 4px; }
@media (max-width: 1000px) { .mine-head { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 640px) { .mine-pick { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 8px; scrollbar-width: none; } .mine-pick button { flex: none; } }

/* v9 : sélecteur commun L'Oisillon ⇄ VolièrePro (même place, même forme sur les deux sites) */
.eco { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.12); gap: 2px; font: 700 14px var(--sans); }
.eco a { padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; color: inherit; opacity: .85; }
.eco a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.eco a[aria-current] { background: #f3f1ea; color: var(--forest); opacity: 1; }
.top.solid .eco { background: rgba(255,255,255,.1); }
@media (max-width: 1000px) { .eco { margin-left: auto; } .menu { margin-left: 10px; } }
@media (max-width: 480px) { .eco a { padding: 7px 10px; font-size: 13px; } .top .brand img { width: 64px; } }
@media (max-width: 480px) { .eco-l { display: none; } }
footer .big span { color: var(--yellow); }
/* L'Oisillon v6 — page article : ouverture illustrée, « en bref », texte large et confortable, marge collante (auteur, 2lpro, guide suivant),
   frise qui se remplit, barre « Ensuite », suite de lecture. */
.progress { position: fixed; top: 0; left: 0; height: 6px; width: 100%; background: var(--accent, var(--yellow)); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }
.a-hero { position: relative; min-height: max(640px, 88svh); background: var(--forest); color: #f3f1ea; padding: 150px var(--pad) 64px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; overflow: hidden; }
.a-hero .leaves { position: absolute; top: 40px; right: -40px; width: min(36vw, 520px); opacity: .28; pointer-events: none; }
.a-hero h1 { font-size: clamp(64px, 2.4rem + 7.4vw, 168px); line-height: .84; letter-spacing: -.055em; }
.a-hero .byline { margin-top: 30px; font: 500 var(--t-lead)/1.35 var(--serif); color: #dfe7dc; }
.a-hero .byline span { display: block; font: 400 var(--t-small) var(--sans); margin-top: 8px; color: #b9c8bc; }
.a-hero .bird { position: relative; z-index: 2; width: min(100%, 470px); justify-self: center; margin-bottom: -100px; }
.brief { position: relative; z-index: 3; margin: -40px var(--pad) 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.brief div { padding: 26px 24px; border-radius: 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.brief dd { margin: 0; font: 500 clamp(28px, 1.3rem + 1.4vw, 40px)/1 var(--serif); letter-spacing: -.03em; }
.brief dt { font-size: var(--t-small); margin-top: 8px; }
.brief div:nth-child(1) { background: var(--green); color: #f1f5ee; }
.brief div:nth-child(2) { background: var(--yellow); }
.brief div:nth-child(3) { background: var(--purple); color: #f8eef5; }
.brief div:nth-child(4) { background: var(--teal); color: #eef8f9; }
.brief div:nth-child(5) { background: var(--sand); }
.a-body { display: grid; grid-template-columns: 210px minmax(0, 68ch) minmax(260px, 340px); justify-content: space-between; gap: clamp(24px, 3.4vw, 64px); padding: var(--space) var(--pad); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; }
.toc p { font-weight: 700; margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--muted); padding: 9px 0 9px 14px; border-left: 3px solid #d9d4c8; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--accent, var(--yellow)); }
.prose { font-size: calc(20px * var(--fs, 1)); line-height: 1.7; min-width: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(36px, 1.5rem + 2.4vw, 60px); margin-top: 1.7em; scroll-margin-top: 110px; }
.prose h3 { font-size: var(--t-sub); }
.prose a { color: var(--green); font-weight: 600; }
.prose .btn { color: var(--ink); }
.prose .lede { font: 500 clamp(22px, 1.2rem + .7vw, 28px)/1.4 var(--serif); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo figure { border-radius: 28px; padding: 28px 20px 18px; display: grid; justify-items: center; }
.duo img { height: 340px; width: auto; object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.duo figure:hover img { transform: translateY(-10px) rotate(-2deg); }
.duo figcaption { font: 500 var(--t-sub) var(--serif); margin-top: 6px; }
.sex { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sex div { padding: 24px; background: var(--sheet); border-radius: 22px; }
.sex h3 { font-size: var(--t-lead); margin-bottom: 10px; }
.sex li { padding: 5px 0 5px 22px; position: relative; }
.sex li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.sex div:last-child li::before { background: #8b8f86; }
.photos { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.photos figure { background: var(--sheet); padding: 10px 10px 8px; border-radius: 14px; }
.photos img { border-radius: 8px; }
.photos figcaption { font-size: var(--t-small); color: var(--muted); padding-top: 6px; }
.box-2lpro { background: var(--purple); color: #f8eef5; padding: 28px 30px; border-radius: 26px; display: grid; gap: 10px; }
.box-2lpro strong { font: 500 var(--t-sub)/1.1 var(--serif); color: #fff; }
.prose .box-2lpro a { color: #ffd98a; }
.next-inline { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 22px; background: var(--sand); text-decoration: none; transition: transform .25s; }
.next-inline:hover { transform: translateX(8px); }
.next-inline img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.next-inline span { display: block; font-size: var(--t-small); color: var(--muted); }
.next-inline strong { font: 500 var(--t-sub)/1.1 var(--serif); color: var(--ink); }
.timeline { list-style: none; padding: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 18px 22px; background: var(--sheet); border-radius: 18px; align-items: baseline; }
.timeline li b { font: 500 var(--t-lead)/1.1 var(--serif); color: var(--green); }
.box-app { background: var(--forest); color: #e8eee4; padding: 30px; border-radius: 26px; display: flex; gap: 22px; align-items: end; justify-content: space-between; }
.box-app strong { display: block; font: 500 var(--t-sub)/1.1 var(--serif); color: #fff; margin-bottom: 8px; }
.kit { background: var(--sheet); padding: 28px 30px; border-radius: 26px; }
.kit h2 { font-size: var(--t-sub); margin: 0 0 12px; }
.kit li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.kit li span { color: var(--muted); font-weight: 400; font-size: var(--t-small); }
.kit p { color: var(--muted); font-size: var(--t-small); }
.author { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: 24px; background: var(--sand); }
.author .ini { flex: none; width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 500 var(--t-lead)/1 var(--serif); }
.next-big { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; margin: 60px var(--pad) var(--space); border-radius: 36px; text-decoration: none; min-height: 380px; }
.next-big img { width: 88%; max-width: 440px; justify-self: center; margin-top: -90px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.next-big:hover img { transform: translateY(-12px) rotate(-3deg); }
.next-big div { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; gap: 14px; }
.next-big h2 { font-size: var(--t-head); }
.next-big:hover h2 { text-decoration: underline; text-underline-offset: 8px; }
.more { padding: 0 0 var(--space); }
@media (prefers-reduced-motion: no-preference) {
  .a-hero h1 { animation: up 1s cubic-bezier(.2,.8,.2,1) both; }
}
@media (max-width: 1000px) {
  .a-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .a-hero .bird { width: 60vw; margin: 20px auto -80px; }
  .brief { grid-template-columns: repeat(3, 1fr); margin-top: -30px; }
  .a-body { grid-template-columns: 1fr; }
  .toc { position: static; }
  .next-big { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brief { grid-template-columns: 1fr 1fr; }
  .brief div:last-child { grid-column: 1 / -1; }
  .toc { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad); background: var(--bone); }
  .toc p { display: none; }
  .toc a { flex: none; border: 0; padding: 8px 14px; border-radius: 99px; background: var(--sheet); }
  .toc a.on { background: var(--yellow); }
  .next-big { min-height: 0; margin-top: 120px; }
  .next-big img { width: 70%; margin-top: -110px; }
  .duo img { height: 220px; }
  .sex { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .box-app { flex-direction: column; align-items: start; }
  .next-inline { grid-template-columns: 80px 1fr; } .next-inline img { width: 80px; }
}

/* Scènes illustrées (Codex, retenues le 17/10) */
.scene-wide { background: var(--sand); border-radius: 28px; padding: 28px 28px 18px; display: grid; gap: 10px; }
.scene-wide img { width: 100%; height: auto; }
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scenes figure { background: var(--sheet); border-radius: 26px; padding: 22px 18px 16px; display: grid; gap: 10px; align-content: start; }
.scenes img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.scenes figure:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.scene-wide figcaption, .scenes figcaption { font-size: var(--t-small); color: var(--muted); }
.box-app { position: relative; padding-left: 230px; margin-top: 90px; }
.box-app .box-art { position: absolute; left: 10px; bottom: 0; width: 220px; height: auto; }
@media (max-width: 640px) {
  .scenes { grid-template-columns: 1fr; }
  .box-app { padding: 170px 24px 26px; }
  .box-app .box-art { left: 50%; translate: -50% 0; top: -80px; bottom: auto; width: 230px; }
}

/* v6 : marge collante, citations, frise continue, barre « Ensuite » (revue croisée du 17/10) */
.margin { position: sticky; top: 100px; display: grid; gap: 14px; }
.margin .author { align-items: start; font-size: var(--t-small); }
.margin .box-2lpro { padding: 24px; font-size: var(--t-small); }
.margin .box-2lpro strong { font-size: clamp(22px, 1.1rem + .5vw, 28px); }
.margin .box-2lpro a { color: #ffd98a; font-weight: 700; }
.side-next { display: grid; gap: 4px; padding: 20px 22px 22px; border-radius: 24px; background: var(--green); color: #f1f5ee; text-decoration: none; overflow: hidden; }
.side-next img { width: 70%; margin: -6px auto 6px; transition: transform .5s var(--ease); }
.side-next:hover img { transform: translateY(-8px) rotate(-3deg); }
.side-next span { font-size: var(--t-small); color: #cfe0d2; }
.side-next strong { font: 500 var(--t-sub)/1.05 var(--serif); }
.prose blockquote { border-left: 6px solid var(--accent, var(--yellow)); padding: 4px 0 4px 26px; }
.prose blockquote p { font: italic 500 clamp(24px, 1.2rem + .8vw, 32px)/1.3 var(--serif); letter-spacing: -.01em; }
.timeline { position: relative; padding-left: 52px; gap: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 15px; top: 14px; bottom: 30px; width: 4px; border-radius: 2px; }
.timeline::before { background: #d9d4c8; }
.timeline::after { background: var(--accent, var(--green)); transform-origin: top; }
.timeline li { position: relative; background: none; padding: 0 0 26px; border-radius: 0; }
.timeline li::before { content: ""; position: absolute; left: -47px; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--bone); border: 4px solid var(--accent, var(--green)); }
.next-bar { position: fixed; z-index: 45; left: var(--pad); right: var(--pad); bottom: 16px; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 22px; border-radius: 22px; background: var(--forest); color: #f3f1ea; transform: translateY(160%); transition: transform .5s var(--ease); }
.next-bar.on { transform: none; }
.next-bar a { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 14px; padding: 10px 0; text-decoration: none; }
.next-bar small { grid-column: 1; font-size: var(--t-small); color: #b9c8bc; }
.next-bar strong { grid-column: 1; font: 500 clamp(20px, 1rem + .6vw, 26px)/1.15 var(--serif); }
.next-bar a span { grid-column: 2; grid-row: 1 / 3; font-size: 26px; }
.next-bar button { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 24px; cursor: pointer; }
.next-bar button:hover { background: rgba(255,255,255,.2); }
@media (min-width: 1001px) { .next-bar { left: auto; width: 440px; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .timeline::after { animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 70%; }
    @keyframes fill { from { transform: scaleY(0); } }
  }
}
@media (max-width: 1100px) {
  .a-body { grid-template-columns: 200px minmax(0, 1fr); }
  .margin { position: static; grid-column: 2; grid-template-columns: 1fr 1fr; }
  .margin .author { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .a-body { grid-template-columns: 1fr; }
  .margin { grid-column: auto; }
}
@media (max-width: 640px) {
  .prose { font-size: calc(19px * var(--fs, 1)); }
  .margin { grid-template-columns: 1fr; }
  .timeline { padding-left: 44px; }
  .timeline li::before { left: -39px; }
  .timeline::before, .timeline::after { left: 13px; }
}
.box-app .btn { flex: none; white-space: nowrap; }

/* v7 : sexage comparé par zones */
.sex-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sex-tabs button { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 600 var(--t-small) var(--sans); cursor: pointer; transition: background-color .2s, color .2s; }
.sex-tabs button:hover { background: var(--sand); }
.sex-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.duo figure { overflow: hidden; position: relative; }
.duo img { transform-origin: 50% 50%; }
.duo[data-focus] img { transition: transform .8s var(--ease); }
.duo[data-focus="tete"] img { transform: scale(2.3); transform-origin: var(--o-tete); }
.duo[data-focus="aile"] img { transform: scale(1.8); transform-origin: var(--o-aile); }
.duo[data-focus="queue"] img { transform: scale(2); transform-origin: var(--o-queue); }
.duo[data-focus="tete"] figure:hover img, .duo[data-focus="aile"] figure:hover img, .duo[data-focus="queue"] figure:hover img { translate: none; }
.duo figcaption { position: relative; z-index: 1; }
.sex li { transition: background-color .3s, color .3s; border-radius: 10px; }
.sex[data-focus] li { color: var(--muted); }
.sex[data-focus] li.hl { color: var(--ink); background: var(--sand); font-weight: 600; }

/* v7 : la reproduction racontée au défilement */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.story-art { position: sticky; top: 110px; aspect-ratio: .9; border-radius: 28px; background: var(--sheet); overflow: hidden; }
.story-art figure { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 22px 20px 18px; opacity: 0; transform: scale(.96); transition: opacity .6s ease, transform .8s var(--ease); }
.story-art figure.on { opacity: 1; transform: none; }
.story-art img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.story-art figcaption { font-size: var(--t-small); color: var(--muted); }
.story-steps li { padding-bottom: 0; min-height: 34vh; display: block; }
.story-steps li b { display: block; margin-bottom: 6px; }
.js .story-steps li { opacity: .45; transition: opacity .4s; }
.js .story-steps li.on { opacity: 1; }
.story-steps li:last-child { min-height: 0; padding-bottom: 8px; }
@media (max-width: 640px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-art { top: 64px; z-index: 5; aspect-ratio: 1.5; box-shadow: 0 0 0 10px var(--bone); }
  .story-art figure { grid-template-rows: 1fr; padding: 12px; }
  .story-art figcaption { display: none; }
  .story-steps { margin-top: 24px; }
  .story-steps li { min-height: 28vh; }
}
@media (prefers-reduced-motion: reduce) { .story-art figure { transition: none; } .duo[data-focus] img { transition: none; } }

/* v7 : taille du texte, reprise de lecture, chiffres */
.txt-size { display: flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--muted); }
.txt-size span { margin-right: 6px; }
.txt-size button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 500 18px/1 var(--serif); cursor: pointer; }
.txt-size button:nth-of-type(2) { font-size: 22px; } .txt-size button:nth-of-type(3) { font-size: 27px; }
.txt-size button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.resume { position: fixed; z-index: 45; left: var(--pad); bottom: 16px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent, var(--yellow)); color: var(--ink); font: 700 var(--t-small) var(--sans); cursor: pointer; }
.brief dd, .byline .n { font-variant-numeric: tabular-nums; }
.duo figcaption { transition: background-color .4s, padding .4s; border-radius: 999px; }
.duo[data-focus] figcaption { background: rgba(251,250,247,.9); padding: 2px 16px; }
.duo[data-focus="tete"] img { transform: scale(2.6); }

/* v8 : fil d'Ariane, « l'essentiel », questions fréquentes, auteur cliquable */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: var(--t-small); color: #b9c8bc; }
.crumbs a { color: #f3f1ea; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.byline a { color: inherit; text-underline-offset: .18em; }
.essentiel { background: var(--forest); color: #eef1ea; border-radius: 28px; padding: 30px clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.essentiel h2 { margin: 0; font-size: clamp(30px, 1.2rem + 1.6vw, 44px); color: #fff; scroll-margin-top: 110px; }
.essentiel dl { margin: 0; display: grid; gap: 14px; }
.essentiel dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.12); }
.essentiel dt { font-weight: 700; color: var(--accent, var(--yellow)); }
.essentiel dd { margin: 0; font-size: .95em; line-height: 1.55; }
.add-mine { justify-self: start; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--accent, var(--yellow)); background: transparent; color: #fff; font: 700 var(--t-small) var(--sans); cursor: pointer; }
.add-mine:hover { background: rgba(255,255,255,.08); }
.add-mine[aria-pressed="true"] { background: var(--accent, var(--yellow)); color: var(--ink); }
.faq { display: grid; gap: 10px; }
.faq h2 { margin-bottom: 8px; }
.faq details { background: var(--sheet); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font: 500 clamp(20px, 1rem + .5vw, 24px)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font: 400 30px/1 var(--sans); color: var(--muted); transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 20px; font-size: .95em; }
.faq-more { font-size: var(--t-small); color: var(--muted); }
.margin .author a, .author a { color: inherit; }
@media (max-width: 640px) { .essentiel dl div { grid-template-columns: 1fr; gap: 4px; } }
.author-hero { min-height: max(560px, 70svh); }
.author-body { display: grid; grid-template-columns: minmax(0, 68ch) minmax(260px, 340px); justify-content: space-between; gap: clamp(24px, 4vw, 72px); padding: var(--space) var(--pad); align-items: start; }
@media (max-width: 1000px) { .author-body { grid-template-columns: 1fr; } }
/* L'Oisillon v8 — fiche du catalogue : la graine racontée par les éleveurs, pas vendue. */
.p-hero { position: relative; background: var(--forest); color: #f3f1ea; padding: 150px var(--pad) 80px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; overflow: hidden; }
.p-hero h1 { font-size: clamp(56px, 2rem + 6vw, 140px); line-height: .86; letter-spacing: -.055em; }
.p-lede { margin-top: 26px; font: 400 var(--t-lead)/1.4 var(--serif); color: #dfe7dc; max-width: 36ch; }
.p-note { margin-top: 20px; display: inline-block; font-size: var(--t-small); padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); color: #dfe7dc; }
.p-art { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; }
.p-grain { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.p-bird { position: absolute; pointer-events: none; }
.p-bird.b1 { width: 46%; right: -10%; bottom: -4%; }
.p-bird.b2 { width: 44%; left: -12%; top: -6%; }
.p-compo, .p-voices, .p-for, .p-reviews, .p-more { padding: var(--space) var(--pad) 0; }
.p-compo { display: grid; gap: 22px; max-width: 1100px; }
.bar { display: flex; height: 64px; border-radius: 999px; overflow: hidden; }
.bar span { flex: var(--w) 0 0; }
.js .bar span { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease); }
.js .bar.in span { transform: none; }
.legend { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.legend div { display: grid; gap: 2px; }
.legend dt { display: flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--muted); }
.legend dt i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.legend dd { margin: 0; font: 500 clamp(30px, 1.2rem + 1.6vw, 48px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.p-small { font-size: var(--t-small); color: var(--muted); max-width: 70ch; }
.p-voices { display: grid; gap: 28px; }
.p-voices-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.p-voices-head p { font: 400 var(--t-lead)/1.4 var(--serif); color: var(--muted); }
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 40px; }
.voice { position: relative; display: grid; gap: 16px; padding: 28px 28px 24px; border-radius: 28px; text-decoration: none; transition: transform .3s; }
.voice:hover { transform: translateY(-5px); }
.voice img { width: 110px; margin-top: -76px; }
.voice blockquote { margin: 0; font: italic 500 clamp(21px, 1rem + .6vw, 27px)/1.3 var(--serif); }
.voice footer { all: unset; display: grid; gap: 2px; font-size: var(--t-small); opacity: .92; }
.p-rail { padding-left: 0; padding-right: 0; }
.p-reviews { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.p-score { background: var(--yellow); border-radius: 28px; padding: 28px; display: grid; gap: 6px; }
.p-score b { font: 500 96px/.9 var(--serif); letter-spacing: -.04em; }
.p-score span { font-size: 26px; letter-spacing: 4px; }
.p-score p { font-size: var(--t-small); }
.p-reviews ul { display: grid; gap: 10px; margin: 18px 0; }
.p-reviews li { background: var(--sheet); border-radius: 18px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.p-reviews li p { font: 500 clamp(19px, 1rem + .4vw, 23px)/1.35 var(--serif); }
.p-reviews li span { font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.p-more { padding-bottom: var(--space); }
.p-more .rail-head { padding: 0; }
.p-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.p-grid a { display: grid; gap: 10px; text-decoration: none; font-weight: 600; }
.p-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; transition: transform .4s var(--ease); }
.p-grid a:hover img { transform: scale(1.03) rotate(-1deg); }
.p-grid .all { background: var(--ink); color: #f3f1ea; border-radius: 22px; aspect-ratio: 1; place-content: center; padding: 20px; text-align: center; }
.p-grid .all b { font: 500 72px/.9 var(--serif); }
@media (max-width: 1000px) {
  .p-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .p-art { width: min(80vw, 420px); margin-top: 20px; }
  .p-voices-head, .p-reviews { grid-template-columns: 1fr; gap: 16px; }
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .legend { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .voices { grid-template-columns: 1fr; gap: 56px; }
  .p-grid { grid-template-columns: 1fr 1fr; }
  .p-reviews li { flex-direction: column; gap: 4px; }
}

/* Catégorie du catalogue */
.c-hero { background: var(--forest); color: #f3f1ea; padding: 150px var(--pad) 64px; display: grid; gap: 20px; }
.c-hero h1 { font-size: var(--t-giant); line-height: .85; letter-spacing: -.06em; }
.c-hero > p:not(.p-note) { font: 400 var(--t-lead)/1.4 var(--serif); color: #dfe7dc; max-width: 46ch; }
.c-hero .p-note { justify-self: start; }
.c-guides { padding: var(--space) var(--pad) 0; display: grid; gap: 20px; }
.c-guides-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.c-guides-list a { display: grid; gap: 8px; padding: 24px; border-radius: 24px; background: var(--yellow); text-decoration: none; transition: transform .25s; }
.c-guides-list a:hover { transform: translateY(-4px); }
.c-guides-list b { font: 500 var(--t-sub)/1.08 var(--serif); letter-spacing: -.02em; }
.c-guides-list span { font-size: var(--t-small); }
.c-list { padding: var(--space) var(--pad); display: grid; gap: 22px; }
.c-list-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px 16px; }
.c-card { display: grid; gap: 6px; text-decoration: none; }
.c-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; transition: transform .4s var(--ease); }
.c-card:hover img { transform: scale(1.03) rotate(-1deg); }
.c-card span { font: 500 var(--t-lead)/1.2 var(--serif); }
.c-card small { font-size: var(--t-small); color: var(--muted); }
.nf { min-height: max(700px, 100svh); }
.nf .bird { transform: scaleX(-1); }
@media (max-width: 1000px) { .c-guides-list { grid-template-columns: 1fr; } }
.nf .bird { width: min(30vw, 440px); top: 16%; }

/* Thème WordPress : contenu K2 importé (guides) et pages simples */
.lo-k2 img { border-radius: 14px; margin: 1.2em auto; width: auto; max-width: 100%; height: auto; }
.lo-k2 p:empty, .lo-k2 span:empty { display: none; }
.lo-k2 h3 { font-size: var(--t-sub); margin-top: 1.4em; }
.lo-k2 table { border-collapse: collapse; width: 100%; font-size: .9em; }
.lo-k2 td, .lo-k2 th { border-bottom: 1px solid #d9d4c8; padding: 8px; text-align: left; }
.lo-k2 a { color: var(--green); font-weight: 600; }
.lo-video { aspect-ratio: 16 / 9; margin: 1.4em 0; border-radius: 14px; overflow: hidden; background: var(--ink); }
.lo-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.margin .lo-lettre { background: var(--sand); color: var(--ink); text-decoration: none; }
.margin .lo-lettre span { font-weight: 800; }
.lo-page { padding: 150px var(--pad) var(--space); max-width: 900px; margin-inline: auto; }
.lo-page h1 { font-size: var(--t-head); margin-bottom: 30px; }
.lo-page .prose { background: var(--sheet); padding: clamp(22px, 4vw, 48px); border-radius: 28px; }
.lo-page .prose h2, .lo-page .prose h3 { line-height: 1.08; }
.lo-page .prose ul, .lo-page .prose ol { padding-left: 1.3em; }
.lo-page .prose ul { list-style: disc; }
.lo-page .prose { overflow-wrap: anywhere; }
.letter-body [hidden] { display: none; }

/* La lettre : contenu autonome, en-tête et pied du thème. */
.letter-page { background: var(--bone); }
.letter-hero { background: var(--forest); color: #f3f1ea; padding: 170px var(--pad) 72px; }
.letter-hero h1 { max-width: 12ch; font-size: clamp(52px, 2rem + 6vw, 128px); }
.letter-hero p { max-width: 40ch; margin-top: 24px; color: #dfe7dc; font: 400 var(--t-lead)/1.4 var(--serif); }
.letter-body { max-width: 980px; padding: 48px var(--pad) var(--space); display: grid; gap: 28px; }
.letter-body form { display: grid; gap: 18px; background: var(--sheet); border-radius: 28px; padding: 28px clamp(20px, 3vw, 34px); }
.letter-label { font: 500 var(--t-sub)/1.2 var(--serif); }
.letter-field { display: flex; gap: 8px; flex-wrap: wrap; }
.letter-field input { flex: 1 1 260px; min-width: 0; min-height: 56px; border-radius: 999px; border: 2px solid var(--ink); padding: 0 22px; font: 500 19px var(--sans); }
.letter-body fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.letter-body legend { font-weight: 700; margin-bottom: 8px; }
.letter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.letter-chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer; font-weight: 600; font-size: var(--t-small); }
.letter-chips input { width: 20px; height: 20px; accent-color: var(--ink); }
.letter-consent { color: var(--muted); font-size: var(--t-small); }
.letter-hp { position: absolute; left: -9999px; }
.letter-msg { background: var(--sheet); border-radius: 24px; padding: 24px 26px; font: 500 var(--t-lead)/1.35 var(--serif); }
.letter-msg.ok { background: var(--green); color: #f1f5ee; }
.letter-msg.err { background: var(--red); color: #fdf0ee; }
.letter-points { list-style: disc; padding-left: 1.2em; }
.letter-points li { margin: 6px 0; }
body.lo .wp-site-blocks { padding: 0; }
.byline b.n { font-weight: 400; }
.lo-prod { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 20px; background: var(--sheet); text-decoration: none; color: var(--ink) !important; font-weight: 400 !important; max-width: 520px; }
.lo-prod img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; margin: 0 !important; }
.lo-prod small { display: block; color: var(--muted); font-size: 14px; }
.lo-prod b { font: 500 21px/1.15 var(--serif); }
.margin .lo-lettre strong { color: var(--ink); }
.c-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px var(--pad) 0; }
.c-sub a { padding: 10px 18px; border-radius: 999px; background: var(--sheet); text-decoration: none; font-weight: 700; font-size: var(--t-small); }
.c-sub small { color: var(--muted); margin-left: 4px; }
.c-card img, .p-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: #fff; }
.lo-desc { padding-bottom: 0; }
.g-grid li[hidden] { display: none; }
body.lo main, body.lo footer { text-align: left; }

/* Commentaires sous les guides (inc/commentaires.php) */
.lo-avis { margin-top: clamp(56px, 7vw, 96px); padding-top: 40px; border-top: 2px solid var(--ink); font-family: var(--sans); }
.lo-avis h2 { font-size: var(--t-sub); line-height: 1.1; margin: 0 0 28px; }
.lo-avis h2 span { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; margin-left: 6px; border-radius: 999px; background: var(--yellow); font: 700 .55em/1 var(--sans); vertical-align: middle; letter-spacing: 0; }
.lo-fil { padding: 22px 0; border-bottom: 1px solid rgba(22,28,21,.14); }
.lo-c-qui { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-size: var(--t-small); }
.lo-c-qui span { color: var(--muted); }
.lo-c-qui time { color: var(--muted); margin-left: auto; }
.lo-c-txt p { margin: 0 0 .6em; font-size: var(--t-body); line-height: 1.6; }
.lo-c-txt p:last-child { margin-bottom: 0; }
.lo-c-txt a { overflow-wrap: anywhere; }
.lo-c-rep { margin: 16px 0 0 clamp(14px, 3vw, 28px); padding: 16px 18px; border-radius: 16px; background: var(--sheet); }
.lo-c-equipe { background: #e9efe6; border-left: 4px solid var(--green); }
.lo-c-plus summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 48px; margin: 18px 0 4px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); font: 700 var(--t-small) var(--sans); list-style: none; }
.lo-c-plus summary::-webkit-details-marker { display: none; }
.lo-c-plus[open] summary { display: none; }
.lo-c-merci { margin: 24px 0 0; padding: 16px 18px; border-radius: 16px; background: #e9efe6; font-weight: 600; }
.lo-c-form { display: grid; gap: 10px; margin-top: 36px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--sheet); }
.lo-c-form h3 { font-size: clamp(22px, 1rem + .8vw, 28px); line-height: 1.15; }
.lo-c-note { font-size: var(--t-small); color: var(--muted); margin: 0 0 6px; }
.lo-c-form label { font-weight: 700; font-size: var(--t-small); display: block; margin-bottom: 6px; }
.lo-c-form textarea, .lo-c-form input { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid rgba(22,28,21,.35); border-radius: 12px; background: #fff; font: 400 var(--t-body) var(--sans); color: var(--ink); }
.lo-c-form textarea { resize: vertical; min-height: 140px; }
.lo-c-form textarea:focus, .lo-c-form input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.lo-c-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lo-c-2 p { margin: 0; }
.lo-c-form .btn { justify-self: start; margin-top: 8px; }
.lo-c-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .lo-c-2 { grid-template-columns: 1fr; } .lo-c-qui time { margin-left: 0; } }

/* Retour en haut (19/10/2026) — anim.js crée le bouton ; il remonte au-dessus de la barre « guide suivant » quand elle est là. */
.haut { position: fixed; z-index: 44; right: 16px; bottom: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 6px 18px rgba(22,28,21,.25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, visibility .25s, transform .25s, bottom .3s; }
.haut.on { opacity: 1; visibility: visible; transform: none; }
.haut:hover { background: #f0b83c; }
body:has(.next-bar.on) .haut { bottom: 108px; }
@media print { .haut { display: none; } }

/* Mots trop longs pour un téléphone (19/10/2026) : « ornithologique » en titre, adresses web dans les guides K2 */
.a-hero > * { min-width: 0; }
.a-hero h1 { overflow-wrap: break-word; }
@media (max-width: 600px) { .a-hero h1.mot-long { font-size: clamp(38px, 11vw, 64px); } }   /* titre avec un mot de 12 lettres ou plus : plus petit plutôt que coupé */
.prose { overflow-wrap: break-word; }
.prose a, .prose em, .prose strong { overflow-wrap: anywhere; }
