.i.gold{color:var(--gold)}
.display{font:400 clamp(48px,4vw + 32px,104px)/1.2 var(--serif);color:var(--ink);margin:0;text-wrap:balance} /* #188 : interligne 1,2 (1,05 serrait l'italique) */
.kicker{font:400 24px/1.3 var(--hand);color:var(--accent);margin:0}
.caption{font:400 20px/1.3 var(--hand);color:var(--kraft-dark)}
.price{font:400 18px/1.2 var(--serif);font-variant-numeric:lining-nums tabular-nums;color:var(--ink)}
.polaroid{background:var(--card);border:1px solid var(--sand);border-radius:14px;padding:10px 10px 14px;box-shadow:var(--sh-card)}
.photo{position:relative;aspect-ratio:4/5;border-radius:8px;overflow:hidden} /* 0011 : photos de Pièce en 4:5 */
.atelier .photo,.insta .photo{aspect-ratio:1/1} /* récit et Instagram restent carrés */
.tilt-l{transform:rotate(-1.5deg)}
.tilt-r{transform:rotate(1.5deg)}
.card-link{display:block;color:inherit;text-decoration:none}
.row{display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;flex-wrap:wrap;padding:10px 2px 0}
.badge{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;height:24px;padding:2px 10px;border:1px solid currentColor;border-radius:999px;background:var(--card);font:400 14px/1.6 var(--serif);color:var(--ink-muted)}
.badge.teal{color:var(--teal)}
.badge.dashed{border-style:dashed}
.title{overflow-wrap:anywhere}
.badge-adoptee{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:4px;background:var(--wine);color:var(--on-ink);font:400 20px/1.3 var(--hand);border-radius:999px;padding:2px 12px;transform:rotate(4deg);box-shadow:var(--sh-hair)}
.badge-adoptee .i{font-size:.8em;color:var(--gold)}
main > section,main > .notice{margin-top:var(--section-gap)} /* 0011 : l'espace sépare les sections, plus de pointillé */
/* 0014 (b3) + 0016 : une pièce de bois flotté (sept dessins A B C D F G I, en cycle) par section, côtés alternés, jamais avant la première.
   Sous 1280 px : dans la marge entre deux sections. Dès 1280 px : dans la gouttière de part et d'autre de main, couchée à la verticale.
   Hors flux (absolues : ni hauteur de page ni focus touchés), jamais sous un texte, immobiles ; masquées sans textures.
   L'aside .notice et son ruban ne sont pas des sections : intacts. */
main > section{position:relative}
main > section::before{content:"";position:absolute;left:3%;top:calc(-1 * var(--section-gap) + 12px);width:min(74%,360px);height:calc(var(--section-gap) - 24px);background:url(../../img/bois-flotte-a.svg) 0 50%/contain no-repeat;pointer-events:none}
main > section:nth-of-type(2n)::before{left:auto;right:3%;background-position:100% 50%}
main > section:nth-of-type(7n+3)::before{background-image:url(../../img/bois-flotte-b.svg)}
main > section:nth-of-type(7n+4)::before{background-image:url(../../img/bois-flotte-c.svg)}
main > section:nth-of-type(7n+5)::before{background-image:url(../../img/bois-flotte-d.svg)}
main > section:nth-of-type(7n+6)::before{background-image:url(../../img/bois-flotte-f.svg)}
main > section:nth-of-type(7n+7)::before{background-image:url(../../img/bois-flotte-g.svg)}
main > section:nth-of-type(7n+1)::before{background-image:url(../../img/bois-flotte-i.svg)}
main > section:first-of-type::before{content:none}
/* gouttière : place libre = (100vw - 1180px) / 2 + 24px de marge de main, moins 16px pour la barre de défilement (jamais de défilement horizontal) */
@media (min-width:1280px){
  main > section::before{--f:clamp(56px,calc(50vw - 582px),220px);top:calc(220px - .5 * var(--f));left:calc(-.5 * var(--f) - 180px);right:auto;width:360px;height:var(--f);background-position:50% 50%;transform:rotate(90deg)}
  main > section:nth-of-type(2n)::before{left:calc(100% + .5 * var(--f) - 180px);transform:rotate(-90deg)}
}
@media (forced-colors:active),(prefers-contrast:more){main > section::before{content:none}}
.hero{position:relative;aspect-ratio:4/3;max-height:560px;margin:0 -16px;overflow:hidden;background:linear-gradient(180deg,#B9CAD3 0%,#D6DDDC 38%,#9FBFC4 44%,#A9C3C4 46.5%,#DFD3B8 50%,#D7C39A 75%,#CDB07A 100%);-webkit-mask-image:linear-gradient(#000 calc(100% - 120px),transparent);mask-image:linear-gradient(#000 calc(100% - 120px),transparent)} /* fondu en transparence : le sable du fond (#152) reste visible dessous */
.hero svg{position:absolute;left:0;top:30%;width:100%;height:auto}
.hero-text{text-align:center;padding:8px 0 0}
.hero-text .display{margin:8px 0 16px}
.hero-text .body{margin:24px 0}
.hero-text .btn-secondary{margin-top:12px}
.tags{margin:20px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;align-items:center}
.sec-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 16px;margin-bottom:12px}
.sec-head .headline{font-style:italic}
.sec-head .btn-secondary{margin-left:auto}
.cap2{margin:0 0 12px;line-height:1.4} /* CAP-2 : au-dessus de la grille, compacte */
.closed-note{margin:0 0 12px;color:var(--ink-soft)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.adopted{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;padding:8px 0 4px}
.adopted .polaroid{width:calc(50% - 8px)}
.adopt-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin:0;padding:6px 2px 0}
.adopt-meta .badge-adoptee{position:static}
.insta{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;padding:8px 0 4px}
.insta-card{position:relative;width:calc(50% - 8px);padding:8px 8px 26px;border-radius:12px}
.insta-card time{position:absolute;left:12px;bottom:3px;font-size:18px;line-height:1}
.center{text-align:center;margin:16px 0 0}
.notice{position:relative;background:var(--parchment);border:1px solid var(--sand);border-radius:14px;padding:32px 24px;box-shadow:var(--sh-relief);text-align:center;margin-top:24px}
.notice::before{content:"";position:absolute;top:-14px;left:50%;width:110px;height:28px;margin-left:-55px;background:var(--paper-deep);opacity:.8;transform:rotate(2deg)}
.notice .headline,.atelier .headline{font-style:italic;margin:8px 0 12px}
.notice .btn-primary,.atelier .btn-primary{margin-top:20px}
.notice .body{text-align:left}
.ph-prairie{background:linear-gradient(160deg,#D7E6E9 0%,#B9CF8E 45%,#6E8F4B 100%)}
.ph-maree{background:linear-gradient(165deg,#E6F0F2 0%,#8FCBD3 40%,#2E8FA0 100%)}
.atelier{display:grid;gap:28px}
.atelier .polaroid{width:min(100%,300px);margin-inline:auto}
@media (max-width:400px){.notice{padding:32px 16px}}
html:has(.hero){overflow-x:clip} /* photo en 100vw (desktop) : pas de barre de défilement horizontale */
/* --- mobile : couverture portrait (même fond que le desktop, repli CSS sans JS) --- */
@media (max-width:767px){
  /* #162 + 0014 : la photo prend l'écran restant une fois réservés l'en-tête (56 px, plus de rang de navigation), surtitre + titre display sur 3 lignes + bouton (322 px, interligne 1,2 : #188) et la barre de menu basse (56 px + zone sûre) */
  .hero{aspect-ratio:auto;height:clamp(240px,calc(100svh - 380px - var(--botnav-h)),72svh);width:calc(100% + 32px)}
  .hero.pic.pic-heros-boucles-ocean{background-image:url(/photos/insta-vague-en-vitrail.jpg);background-position:50% 40%}
  .grid > .polaroid:nth-child(n+4){display:none} /* #187 : trois trouvailles sur téléphone (six dès 768 px) ; la boutique garde le reste */
}
/* #188 : à 360 px le titre display (centré) déborde de 8 px dans la marge ; « à marée basse, » et « serti à la main. » tiennent alors sur une ligne chacun (sinon 5 lignes et le bouton sort du premier écran) */
@media (max-width:400px){.hero-text .display{margin-inline:-8px}}
/* --- desktop (DESIGN.md : rupture 768 px, conteneur 1180 px, mesure 820 px) --- */
@media (min-width:768px){
  .hero{aspect-ratio:auto;height:clamp(260px,calc(100svh - 450px),560px);width:100vw;margin:0 calc(50% - 50vw)} /* 0010 : la photo relie la mer de l'en-tête au sable, d'un bord à l'autre ; #162 : en-tête 64 px + surtitre, titre display sur 2 lignes et bouton (386 px, interligne 1,2 : #188) restent dans le premier écran */
  .hero-text{max-width:1100px;margin:0 auto} /* 0011 : le titre display tient sur deux lignes ; le récit garde la mesure */
  .hero-text .body{max-width:820px;margin-inline:auto}
  .hero-text .display{margin:12px 0 20px}
  .hero-text .kicker{font-size:26px}
  .hero-text .btn-primary{width:auto;display:inline-flex;padding:10px 26px}
  .sec-head{margin-bottom:16px}
  .cap2{margin-bottom:16px}
  .grid{gap:30px}
  .adopted{gap:30px}
  .adopted .polaroid{width:240px}
  .insta{gap:20px}
  .insta-card{width:170px}
  .notice{max-width:820px;margin-inline:auto;padding:40px 44px}
  .notice .btn-primary{width:auto;display:inline-flex;padding:10px 26px}
  .atelier{max-width:820px;margin-inline:auto;grid-template-columns:2fr 3fr;align-items:center;gap:40px}
  .atelier .polaroid{width:100%}
  .atelier .btn-primary{width:auto;display:inline-flex;padding:10px 26px}
}
