/*
Theme Name: Les Émaux du Vivant
Description: Site de l'atelier de céramique de Marie-Pascale Vernay : le carnet d'atelier, du vieux chêne à la boîte aux lettres.
Author: Les Émaux du Vivant
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: emauxduvivant
*/
/* Carnet d'atelier : papier vert sauge, découpes de kraft au bord déchiré, trait d'encre façon gravure, annotations à la craie. La terre est vivante. */
:root {
  --sauge: #5D705D;
  --sauge-fonce: #3F4F41;
  --foret: #26322A;
  --kraft: #D6BF99;
  --kraft-clair: #E6D6B8;
  --os: #EFE7D6;
  --encre: #1A1714;
  --encre-douce: #4A4036;
  --craie: #EEE8DA;
  --craie-douce: #C9CFBE;
  --terre: #A4442F;
  --ardoise: #3E5566;
  --mousse: #6E8150;
  --lichen: #9AA97F;
  --fell: "IM Fell English", Georgia, serif;
  --main: "Caveat", "Segoe Print", cursive;
  --texte: "Karla", "Segoe UI", system-ui, sans-serif;
  --g-l: max(16px, env(safe-area-inset-left, 0px));
  --g-r: max(16px, env(safe-area-inset-right, 0px));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .05 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --nuages: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .08 0 0 0 0 .05 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
main { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { background: var(--sauge) var(--grain); background-image: var(--grain), var(--nuages); color: var(--craie); font: 400 1.0625rem/1.7 var(--texte); }
body.porte-fermee { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px dashed var(--craie); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--fell); font-weight: 400; line-height: 1.05; text-wrap: balance; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--g-l); padding-right: var(--g-r); }
.note { font: 400 1.35rem/1.15 var(--main); color: var(--craie); }
.note.encre { color: var(--encre-douce); }
.rond { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border: 1.5px solid currentColor; border-radius: 50%; font: 400 1.1rem var(--main); }
.spores { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
svg .ink { fill: none; stroke: var(--encre); stroke-linecap: round; stroke-linejoin: round; }

/* Découpe de kraft au bord déchiré */
.decoupe { position: relative; isolation: isolate; color: var(--encre); }
.decoupe::before { content: ""; position: absolute; inset: -9px; background: var(--os); filter: url(#dechire-large); z-index: -2; }
.decoupe::after { content: ""; position: absolute; inset: 0; background: var(--kraft) var(--grain); filter: url(#dechire); z-index: -1; }

/* ===================== L'entrée ===================== */
.entree { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--sauge-fonce); background-image: var(--grain), var(--nuages); transition: opacity .9s ease; }
.entree.partie { opacity: 0; pointer-events: none; }
.entree-scene { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--g-r) calc(14px + env(safe-area-inset-bottom, 0px)) var(--g-l); transition: transform 1.2s cubic-bezier(.6,0,.4,1); }
.entree.plonge .entree-scene { transform: scale(7); }
.entree .incipit { font: italic 400 clamp(1.05rem, 2.4vw, 1.4rem)/1.35 var(--fell); color: var(--craie); text-align: center; max-width: 34ch; margin: 0; }
.chene { position: relative; width: min(760px, 94vw, calc(100vh - 190px)); width: min(760px, 94vw, calc(100dvh - 190px)); aspect-ratio: 1; }
.chene .devant { pointer-events: none; }
.fond-foret { position: absolute; inset: 0; width: 100%; height: 100%; }
.balance { animation: balance 5s ease-in-out infinite alternate; }
.balance.lent { animation-duration: 6.5s; }
@keyframes balance { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.chene > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.respire { transform-box: fill-box; transform-origin: 50% 100%; animation: respire 5.5s ease-in-out infinite; }
@keyframes respire { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.018); } }
.yeux-ouverts, .bouche-sourire { opacity: 0; transition: opacity .5s ease; }
.entree.eveil .yeux-ouverts, .entree.eveil .bouche-sourire { opacity: 1; }
.entree.eveil .yeux-fermes, .entree.eveil .bouche-dort { opacity: 0; transition: opacity .3s ease; }
.lianes path { transition: stroke-dashoffset 1.1s ease-in; }
.lianes .fleurette { transition: opacity .6s ease, transform .6s ease; transform-box: fill-box; transform-origin: center; }
.entree.eveil .lianes .fleurette { opacity: 0; transform: scale(.3); }
.battant-zone { position: absolute; left: 38.375%; top: 60.25%; width: 22%; height: 36.25%; perspective: 900px; }
.battant { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: 0 50%; transition: transform 1.3s cubic-bezier(.5,0,.2,1); }
.battant svg { width: 100%; height: 100%; display: block; overflow: visible; }
.entree.toque .battant { animation: toc .7s ease-in-out; }
.entree.ouverte .battant { transform: rotateY(-108deg); }
@keyframes toc { 0%,100% { transform: none; } 12% { transform: translateX(-2px) rotate(-.8deg); } 24% { transform: none; } 56% { transform: translateX(-2px) rotate(-.8deg); } 68% { transform: none; } }
.lueur { animation: lueur 2.6s ease-in-out infinite; }
@keyframes lueur { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.lueur-douce { animation: lueur-douce 2.6s ease-in-out infinite; }
@keyframes lueur-douce { 0%,100% { opacity: .08; } 50% { opacity: .24; } }
.anno { position: absolute; font: 400 clamp(1.05rem, 2.3vw, 1.4rem)/1.1 var(--main); color: var(--craie); pointer-events: none; white-space: nowrap; }
.anno svg { overflow: visible; }
.a-numero { left: 2%; top: 3%; display: flex; gap: 8px; align-items: center; }
.a-chut { left: 64%; top: 43%; text-align: left; }
.a-frapper { right: 66%; top: 49%; }
.toc-bulle { position: absolute; font: 600 clamp(1.5rem, 3.5vw, 2.1rem) var(--main); color: var(--craie); opacity: 0; pointer-events: none; }
.toc-bulle.t1 { left: 28%; top: 60%; } .toc-bulle.t2 { left: 64%; top: 56%; }
.entree.toque .toc-bulle.t1 { animation: bulle .9s ease-out .05s both; }
.entree.toque .toc-bulle.t2 { animation: bulle .9s ease-out .42s both; }
@keyframes bulle { 0% { opacity: 0; transform: translateY(6px) rotate(-6deg) scale(.8); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-24px) rotate(4deg) scale(1.05); } }
.entree-boutons { position: relative; z-index: 2; display: grid; gap: 8px; justify-items: center; }
.frapper { font: 600 1.45rem var(--main); border: 0; padding: 8px 26px 10px; cursor: pointer; transition: transform .2s; }
.frapper:hover { transform: rotate(-1.5deg) scale(1.04); }
.passer { font: 400 .9rem var(--texte); color: var(--craie-douce); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== Barre ===================== */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #3F4F41; }
.barre { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(63, 79, 65, .9); backdrop-filter: blur(6px); border-bottom: 1px dashed #EEE8DA44; }
.barre .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 26px; height: 36px; flex: none; }
.logo b { font: 500 1.1rem/1 "Fraunces", Georgia, serif; color: var(--craie); }
.menu { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font: 400 1.25rem var(--main); }
.menu a { text-decoration: none; color: var(--craie-douce); }
.menu a:hover { color: var(--craie); text-decoration: underline wavy; text-underline-offset: 4px; }
.revoir { font: 400 .82rem var(--texte); color: var(--craie); background: none; border: 1px dashed #EEE8DA88; border-radius: 999px; padding: 4px 12px; cursor: pointer; }

/* ===================== Chapitres ===================== */
.chapitre { position: relative; padding-block: 72px; }
.chap-num { display: flex; gap: 10px; align-items: center; color: var(--craie-douce); margin-bottom: 8px; }
.chap-num .note { color: var(--craie-douce); font-size: 1.4rem; }
.chapitre h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 20px; color: var(--craie); }
.chapitre .chapeau { color: var(--craie-douce); max-width: 58ch; margin: 0 0 30px; }
.racines { display: block; width: 100%; height: 70px; overflow: visible; }
.racines path { fill: none; stroke: var(--encre); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.trace-moi { transition: stroke-dashoffset 2.2s ease; }

/* I. La terre est vivante */
.ouverture { overflow: hidden; padding-block: 56px 40px; }
.ouverture .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.ouverture h1 { font-size: clamp(3rem, 7.5vw, 6rem); color: var(--craie); margin-block: 8px 20px; letter-spacing: -.01em; }
.ouverture h1 i { color: #E9C9B8; }
.ouverture p { color: var(--craie-douce); max-width: 44ch; margin: 0 0 16px; font-size: 1.1rem; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; font: 600 1.35rem/1 var(--main); text-decoration: none; padding: 10px 22px 12px; cursor: pointer; border: 0; transition: transform .2s; }
.btn:hover { transform: rotate(-1.2deg) translateY(-2px); }
.btn.os, .btn.terre, .frapper { position: relative; isolation: isolate; background: none; }
.btn.os::before, .btn.terre::before, .frapper::before { content: ""; position: absolute; inset: 0; z-index: -1; filter: url(#dechire); }
.btn.os, .frapper { color: var(--encre); } .btn.os::before, .frapper::before { background: var(--os); }
.btn.terre { color: var(--os); } .btn.terre::before { background: var(--terre); }
.btn.trait { background: none; color: var(--craie); border: 1.5px dashed var(--craie); border-radius: 4px; }
.btn svg, .lien-insta svg { width: 1em; height: 1em; vertical-align: -.12em; }
.lien-insta { display: inline-flex; align-items: center; gap: 6px; }
/* Petit papier déchiré sous une annotation */
.papier { isolation: isolate; padding: 3px 12px 5px; }
.note.papier, .anno.papier { color: var(--encre); }
.papier::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--os) var(--grain); filter: url(#dechire-petit); }
.hero-planche { position: relative; justify-self: center; width: 100%; max-width: 470px; }
.hero-planche .decoupe { padding: 22px 22px 54px; transform: rotate(-2deg); }
.hero-planche img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1.5px solid var(--encre); filter: saturate(.92); }
.hero-planche .legende { position: absolute; left: 26px; bottom: 12px; font: 400 1.35rem var(--main); color: var(--encre); }
.hero-planche .a1 { position: absolute; right: -8px; top: -20px; transform: rotate(4deg); }
.hero-planche .a2 { position: absolute; left: -58px; top: 40%; transform: rotate(-6deg); }
.brin { position: absolute; pointer-events: none; overflow: visible; }

/* II. Les mains dans la terre */
.mains .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.mains .decoupe { padding: 26px; transform: rotate(1.5deg); max-width: 400px; width: 100%; justify-self: center; }
.mains .decoupe svg { width: 100%; height: auto; display: block; }
.mains .decoupe .note { position: absolute; left: 24px; bottom: -40px; color: var(--craie); transform: rotate(-3deg); }
.mains p { color: var(--craie-douce); margin: 0 0 16px; max-width: 60ch; }
.lettrine::first-letter { float: left; font: 400 4.6rem/.78 var(--fell); color: var(--craie); padding: 8px 10px 0 0; }
.signature { font: 400 2rem var(--main); color: var(--craie); }

/* III. Le carnet */
.carnet { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-top: 10px; box-shadow: 0 20px 50px #0005; }
.carnet .page { position: relative; padding: 34px 30px; background: var(--kraft-clair) var(--grain); color: var(--encre);
  background-image: var(--grain), linear-gradient(#1A171411 1px, transparent 1px), linear-gradient(90deg, #1A17140D 1px, transparent 1px); background-size: auto, 26px 26px, 26px 26px; }
.carnet .page.g { border-radius: 6px 0 0 6px; box-shadow: inset -18px 0 26px -18px #0005; }
.carnet .page.d { border-radius: 0 6px 6px 0; box-shadow: inset 18px 0 26px -18px #0005; }
.carnet .page h3 { font: 600 1.9rem var(--main); margin-bottom: 4px; color: var(--encre); }
.pot-zone { position: relative; max-width: 330px; margin: 0 auto; }
.pot-zone svg { width: 100%; height: auto; display: block; }
.zone { cursor: pointer; transition: fill .35s ease; }
.zone:hover { filter: brightness(1.06); }
.pot.cuit .zone { filter: saturate(1.25) contrast(1.05); }
.eclat { opacity: 0; transition: opacity .8s ease; }
.pot.cuit .eclat { opacity: .55; }
.four-lueur { opacity: 0; }
.pot.enfourne .four-lueur { animation: four 1.6s ease-in-out; }
@keyframes four { 0% { opacity: 0; } 40%,60% { opacity: .9; } 100% { opacity: 0; } }
.bocaux { display: flex; flex-wrap: wrap; gap: 6px 4px; justify-content: center; margin: 6px 0 14px; }
.bocal { border: 0; background: none; cursor: pointer; padding: 4px; display: grid; justify-items: center; gap: 0; width: 86px; transition: transform .2s; }
.bocal svg { width: 56px; height: 70px; overflow: visible; }
.bocal span { font: 400 1.12rem/1 var(--main); color: var(--encre); text-align: center; }
.bocal[aria-pressed="true"] { transform: translateY(-6px) rotate(-3deg); }
.bocal[aria-pressed="true"] span { text-decoration: underline wavy var(--terre); text-underline-offset: 3px; }
.liste { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 6px; font: 400 1.35rem/1.15 var(--main); }
.liste li { display: flex; gap: 10px; align-items: baseline; }
.liste .coche { width: 1.1em; height: 1.1em; border: 1.5px solid var(--encre); border-radius: 3px; display: inline-grid; place-items: center; flex: none; font-size: 1.1rem; line-height: 1; color: var(--terre); }
.liste small { font: 400 .92rem/1.4 var(--texte); color: var(--encre-douce); display: block; }
.outils { display: flex; gap: 10px; flex-wrap: wrap; }
.outils .btn { font-size: 1.25rem; }
.outils .btn.trait { color: var(--encre); border-color: var(--encre); }
.carnet-message { font: 400 1.3rem var(--main); color: var(--terre); min-height: 1.4em; margin: 10px 0 0; }

/* IV. Le cabinet des pièces */
.cabinet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 46px 30px; padding-top: 16px; }
.tirage { position: relative; border: 0; padding: 10px 10px 46px; background: var(--os); cursor: pointer; transform: rotate(var(--r, 0deg)); box-shadow: 0 10px 24px #0004; transition: transform .3s ease, box-shadow .3s ease; text-align: left; font: inherit; color: var(--encre); }
.tirage::before { content: ""; position: absolute; left: 50%; top: -12px; width: 76px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: #E3D7B9B3; box-shadow: 0 1px 2px #0002; }
.tirage:hover, .tirage:focus-visible { transform: rotate(0deg) translateY(-8px) scale(1.03); box-shadow: 0 18px 36px #0005; z-index: 2; }
.tirage img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tirage .leg { position: absolute; left: 12px; right: 12px; bottom: 8px; display: flex; justify-content: space-between; gap: 6px; font: 400 1.18rem/1.1 var(--main); }
.tirage .leg b { font-weight: 400; color: var(--terre); }
.tirage .num { position: absolute; right: -14px; top: 18px; color: var(--craie); }
dialog.fiche { border: 0; padding: 0; background: transparent; width: min(900px, 94vw); max-height: 92vh; overflow: visible; }
dialog.fiche::backdrop { background: rgba(26, 30, 26, .82); }
dialog.fiche[open] .decoupe { animation: pose .45s cubic-bezier(.2,.9,.3,1.15); }
@keyframes pose { from { transform: rotate(-4deg) scale(.9); opacity: 0; } }
.fiche .decoupe { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 26px; max-height: 90vh; overflow: auto; }
.fiche img { width: 100%; height: 100%; max-height: 74vh; object-fit: cover; border: 1.5px solid var(--encre); }
.fiche-texte { display: grid; gap: 10px; align-content: center; }
.fiche-texte h3 { font-size: 2.1rem; }
.fiche-texte p { margin: 0; color: var(--encre-douce); }
.fiche-texte .prix { font: 600 1.6rem var(--main); color: var(--terre); }
.fermer { position: absolute; top: -16px; right: -10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--os); color: var(--encre); font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 12px #0004; z-index: 3; }

/* V. L'atelier des émaux */
.etiquettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 34px; margin-bottom: 44px; }
.etiquette { position: relative; padding: 34px 30px 28px 54px; display: grid; gap: 10px; align-content: start; }
.etiquette:nth-child(1) { transform: rotate(-1.5deg); } .etiquette:nth-child(2) { transform: rotate(1.2deg); } .etiquette:nth-child(3) { transform: rotate(-.8deg); }
.etiquette .oeillet { position: absolute; left: 18px; top: 30px; width: 18px; height: 18px; border-radius: 50%; background: var(--sauge); border: 2px solid var(--encre); }
.etiquette .ficelle { position: absolute; left: -40px; top: 20px; width: 70px; height: 30px; overflow: visible; }
.etiquette h3 { font-size: 2rem; }
.etiquette p { margin: 0; color: var(--encre-douce); }
.etiquette a { color: var(--terre); text-underline-offset: 3px; }
.etiquette dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; border-top: 1.5px dashed #1A171455; padding-top: 10px; }
.etiquette dt { font: 400 1.2rem var(--main); color: var(--terre); }
.etiquette dd { margin: 0; padding-top: 3px; }
.etiquette .tampon { justify-self: start; font: 400 1.15rem var(--main); color: var(--ardoise); border: 1.5px solid var(--ardoise); border-radius: 4px; padding: 0 8px; transform: rotate(-3deg); }
.appel { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; border-top: 1px dashed #EEE8DA55; padding-top: 30px; }
.appel p { margin: 0; font: italic 400 1.35rem/1.4 var(--fell); max-width: 44ch; }
.tel .note { display: block; color: var(--craie-douce); }
.tel strong { font: 400 1.8rem var(--fell); user-select: all; }

/* VI. La boîte aux lettres */
.poste .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
form.lettre { position: relative; padding: 34px 32px 30px; background: var(--os) var(--grain); color: var(--encre); filter: drop-shadow(0 14px 22px #0004); display: grid; gap: 14px;
  background-image: var(--grain), repeating-linear-gradient(transparent 0 31px, #3E556622 31px 32px); }
form.lettre::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: #A4442F55; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { display: grid; gap: 2px; padding-left: 10px; }
.champ label { font: 400 1.25rem var(--main); color: var(--encre-douce); }
.champ label small { font-size: 1rem; }
.champ input, .champ select, .champ textarea { font: 400 1.05rem var(--texte); color: var(--encre); background: transparent; border: 0; border-bottom: 1.5px solid #1A171466; padding: 6px 2px; width: 100%; border-radius: 0; }
.champ textarea { min-height: 130px; resize: vertical; border: 1.5px solid #1A171433; border-radius: 4px; padding: 8px; background: #ffffff33; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--terre); box-shadow: 0 2px 0 var(--terre); }
.champ select { background: transparent; }
.champ select option { color: #1A1714; background: #EFE7D6; }
.erreur { font: 400 1.15rem var(--main); color: var(--terre); }
.champ.invalide input, .champ.invalide textarea { border-color: var(--terre); }
form.lettre .btn { justify-self: start; margin-left: 10px; }
.merci { padding: 34px 30px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.merci h3 { font-size: 2rem; }
.merci p { margin: 0; color: var(--encre-douce); max-width: 44ch; }
.note-maquette { font: 400 .85rem var(--texte); background: #A4442F22; padding: 4px 10px; border-radius: 6px; }
.boite-zone { position: relative; max-width: 360px; width: 100%; justify-self: center; }
.boite-zone svg { width: 100%; height: auto; display: block; overflow: visible; }
.clapet { transform-box: fill-box; transform-origin: 0 50%; transition: transform .5s ease; }
.boite-zone.ouverte .clapet { transform: scaleX(-.55); }
.boite-zone .note { position: absolute; right: -10px; top: 7%; transform: rotate(5deg); }
.poste aside p { color: var(--craie-douce); margin: 14px 0 0; }
.enveloppe-vol { position: fixed; z-index: 60; width: 90px; height: 60px; pointer-events: none; }

/* Pied de page */
footer { position: relative; overflow: hidden; background: var(--foret) var(--grain); color: var(--craie-douce); padding-block: 50px 28px; }
footer .colonnes { display: grid; grid-template-columns: 1.3fr 1fr 1fr 230px; gap: 30px; align-items: center; position: relative; }
footer h3 { font: 600 1.6rem var(--main); color: var(--craie); margin-bottom: 6px; }
footer p, footer address { margin: 0; font-style: normal; line-height: 1.85; }
footer details { position: relative; margin-top: 30px; border-top: 1px dashed #EEE8DA33; padding-top: 16px; }
footer summary { cursor: pointer; color: var(--craie); font: 400 1.3rem var(--main); }
footer details p { margin-top: 10px; max-width: 76ch; font-size: .92rem; }
.a-venir { background: #EEE8DA22; color: var(--craie); padding: 0 4px; border-radius: 4px; }
.bas { position: relative; margin-top: 22px; font-size: .85rem; }
.potiere { width: 100%; max-width: 230px; padding: 8px 10px; justify-self: end; transform: rotate(1.5deg); }
.potiere svg { display: block; width: 100%; height: auto; }
.p-corps { transform-origin: 70px 150px; animation: berce 3.2s ease-in-out infinite alternate; }
@keyframes berce { from { transform: rotate(-1.5deg); } to { transform: rotate(2.5deg); } }
.p-tete { transform-origin: 88px 92px; animation: hoche 1.6s ease-in-out infinite alternate; }
@keyframes hoche { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
.p-bras { animation: pousse 1.6s ease-in-out infinite alternate; }
@keyframes pousse { from { transform: translate(-1px, 1px); } to { transform: translate(2px, -2px); } }
.p-pot { transform-origin: 168px 148px; animation: monte 3.2s ease-in-out infinite alternate; }
@keyframes monte { from { transform: scale(1.04, .84); } to { transform: scale(.94, 1.14); } }
.p-roue { animation: tourne .7s linear infinite; }
@keyframes tourne { to { stroke-dashoffset: -30; } }

@media (max-width: 900px) {
  .ouverture .wrap, .mains .wrap, .poste .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-planche { max-width: 380px; }
  .hero-planche .a2 { display: none; }
  .carnet { grid-template-columns: 1fr; }
  .carnet .page.g { border-radius: 6px 6px 0 0; box-shadow: inset 0 -18px 26px -18px #0005; }
  .carnet .page.d { border-radius: 0 0 6px 6px; box-shadow: none; }
  .cabinet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etiquettes { grid-template-columns: 1fr; }
  footer .colonnes { grid-template-columns: 1fr; }
  .potiere { justify-self: center; }
  .fiche .decoupe { grid-template-columns: 1fr; }
  .fiche img { max-height: 40vh; }
  .a-chut { left: 63%; top: 43%; } .a-frapper { right: 62%; top: 50%; }
}
@media (max-width: 560px) {
  .champs-2 { grid-template-columns: 1fr; }
  .cabinet { gap: 36px 18px; }
  .menu { gap: 10px; font-size: 1.1rem; }
  .a-numero { top: -2%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.mains .decoupe img { display: block; width: 100%; height: auto; }
.piege { position: absolute; left: -9999px; }
.tel a { text-decoration: none; }
