/* ══════════════════════════════════════════════════════════════
   Gorin-no-sho · feuille principale
   Architecture : 1. jetons Yin/Yang  2. socle  3. accueil et coupe
   4. barre  5. hero  6. sections  7. cinq roues  8. Dokkōdō
   9. pied  10. mouvement réduit
   Tailwind (CDN) fournit les utilitaires ; ici vivent les composants.
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Jetons : Yin (nuit du dojo) par défaut, Yang (manuscrit) ── */
:root {
    --fond: #fcfaf2;
    --fond-2: #f2eee1;
    --encre: #1a1a1a;
    --encre-douce: #57534a;
    --rouge: #a3191b;          /* rouge laque */
    --or: #34353b;             /* anthracite */
    --trait: rgba(26, 26, 26, .14);
    --ma: clamp(5rem, 14vh, 9rem);   /* le « Ma » : l'espace vide entre les choses */
    --cadre: 76rem;
    --courbe: cubic-bezier(.7, 0, .2, 1);
}
:root.dark {
    --fond: #0b0c10;
    --fond-2: #111218;
    --encre: #ece7da;
    --encre-douce: #9d988b;
    --rouge: #b91c1c;          /* rouge sang impérial (red-700) */
    --or: #c5a059;             /* or mat */
    --trait: rgba(236, 231, 218, .12);
}

/* ── 2. Socle ── */
html { scroll-behavior: auto; }
body { min-height: 100vh; transition: background-color .6s var(--courbe), color .6s var(--courbe); }
body.verrou { overflow: hidden; }
::selection { background: var(--rouge); color: #fcfaf2; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cadre { width: min(100% - 2rem, var(--cadre)); margin-inline: auto; }
@media (min-width: 768px) { .cadre { width: min(100% - 6rem, var(--cadre)); } }
em { font-style: italic; }

/* Papier washi : un grain très fin, en Yang seulement */
:root:not(.dark) body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

/* ── 3. Écran d'accueil ── */
.accueil { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; color: #ece7da; background: #0b0c10; }
.accueil.fendu { background: transparent; }
.accueil-moitie { position: absolute; inset: 0; background: #0b0c10; transition: transform 1.1s var(--courbe); }
.accueil-haut { clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%); }
.accueil-bas { clip-path: polygon(0 62%, 100% 38%, 100% 100%, 0 100%); }
.accueil.fendu .accueil-haut { transform: translate(-3%, -110%); }
.accueil.fendu .accueil-bas { transform: translate(3%, 110%); }
.accueil.fendu .accueil-contenu { opacity: 0; transform: scale(.98); transition-duration: .25s; }
.accueil.parti { display: none; }
.accueil::after { /* le fil de la lame, juste avant la coupe */
    content: ""; position: absolute; left: -5%; right: -5%; top: 50%; height: 1px; z-index: 2;
    background: linear-gradient(90deg, transparent, #fcfaf2 30%, #fcfaf2 70%, transparent);
    transform: rotate(-13deg) scaleX(0); opacity: 0;
}
.accueil.fendu::after { animation: fil .5s var(--courbe) forwards; }
@keyframes fil { 0% { transform: rotate(-13deg) scaleX(0); opacity: 1; } 60% { transform: rotate(-13deg) scaleX(1); opacity: 1; } 100% { transform: rotate(-13deg) scaleX(1); opacity: 0; } }
.accueil-contenu { position: relative; z-index: 1; width: min(100% - 3rem, 46rem); text-align: center; transition: opacity .6s, transform .6s; }
.accueil-kanji { font-size: 1.1rem; color: #c5a059; letter-spacing: .4em; margin-bottom: 3rem; opacity: 0; animation: monte 1.6s .2s var(--courbe) forwards; }
.maxime { font-size: clamp(1.6rem, 4.2vw, 2.9rem); line-height: 1.3; letter-spacing: .02em; opacity: 0; animation: monte 2.2s .6s var(--courbe) forwards; text-wrap: balance; }
.maxime-source { margin-top: 1.6rem; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: #9d988b; opacity: 0; animation: monte 1.8s 1.6s var(--courbe) forwards; }
.bouton-entrer {
    margin-top: 4.5rem; padding: 1rem 2.4rem; min-height: 52px; border: 1px solid rgba(197, 160, 89, .55); border-radius: 2px;
    font: 500 .78rem/1 "Cinzel", serif; letter-spacing: .32em; text-transform: uppercase; color: #ece7da; background: transparent;
    cursor: pointer; opacity: 0; animation: monte 1.6s 2.4s var(--courbe) forwards; transition: background .4s, color .4s, border-color .4s;
}
.bouton-entrer:focus-visible { outline-offset: 7px; }
.bouton-entrer:hover { background: #b91c1c; border-color: #b91c1c; }
.accueil-note { margin-top: 1.6rem; font-size: .75rem; color: #6f6b62; opacity: 0; animation: monte 1.6s 2.8s forwards; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Coupe : film du sabre au passage Yin ↔ Yang */
.coupe { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; background: #0b0c10; }
.coupe video { width: 100%; height: 100%; object-fit: cover; }
.coupe.joue { opacity: 1; }
.coupe.sort { opacity: 0; transition: opacity .7s var(--courbe); }
.coupe-trait { display: none; }
.coupe.sans-film { background: transparent; }
.coupe.sans-film .coupe-trait { /* repli sans film : un trait d'encre en diagonale */
    display: block; position: absolute; left: -10%; right: -10%; top: 50%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--rouge) 20%, #fcfaf2 50%, var(--or) 80%, transparent);
    transform: rotate(-18deg) scaleX(0); animation: trait .55s var(--courbe) forwards;
}
@keyframes trait { 60% { transform: rotate(-18deg) scaleX(1); opacity: 1; } 100% { transform: rotate(-18deg) scaleX(1); opacity: 0; } }

/* ── 4. Barre du haut ── */
.barre {
    position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem clamp(1rem, 3vw, 2.5rem); transition: background .5s, backdrop-filter .5s, padding .5s;
}
.barre.posee { background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: blur(10px); padding-block: .7rem; border-bottom: 1px solid var(--trait); }
.barre-nom { font-size: .95rem; letter-spacing: .34em; text-transform: uppercase; text-decoration: none; }
.barre-liens { display: none; gap: 2.4rem; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; }
.barre-liens a { text-decoration: none; color: var(--encre-douce); transition: color .3s; }
.barre-liens a:hover, .barre-liens a.actif { color: var(--encre); }
@media (min-width: 900px) { .barre-liens { display: flex; } }
.hero-en-vue .barre:not(.posee) { color: #ece7da; }
.hero-en-vue .barre:not(.posee) .barre-liens a { color: rgba(236, 231, 218, .7); }
.barre-commandes { display: flex; align-items: center; gap: .6rem; }
.commande, .yinyang {
    display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; min-width: 44px; justify-content: center;
    background: none; border: 0; color: inherit; cursor: pointer; padding: 0 .4rem;
}
.commande svg { width: 20px; height: 20px; fill: currentColor; opacity: .75; }
.commande .son-off { display: none; }
.commande[aria-pressed="false"] .son-on { display: none; }
.commande[aria-pressed="false"] .son-off { display: inline; }
.yinyang svg { width: 30px; height: 30px; transition: transform 1.1s var(--courbe); }
.yy-bord { fill: none; stroke: currentColor; stroke-width: 2; }
.yy-yin { fill: #0b0c10; } .yy-yang { fill: #fcfaf2; }
:root:not(.dark) .yinyang svg { transform: rotate(180deg); }
.yinyang-mot { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; min-width: 3.2em; text-align: left; }
/* la petite fleur du tracé (/js/trace.js), habillée comme le mot YIN : mêmes capitales espacées, couleur de la barre */
.barre-commandes #dv-fleur { font-family: var(--font-titre); font-size: .72rem; font-weight: 400; line-height: 1; letter-spacing: .3em; text-transform: uppercase; color: inherit; min-height: 44px; padding: 0 .4rem; }
.barre-commandes #dv-fleur .mot { font: inherit; letter-spacing: inherit; }

/* ── 5. Hero ── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #0b0c10; color: #ece7da; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; transform: scale(1.04); animation: respire 24s ease-in-out infinite alternate; }
@keyframes respire { to { transform: scale(1.1); } }
@media (max-width: 700px) { .hero-video { object-position: 27% 60%; } }
.hero-voile {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 52% 56% at 50% 44%, rgba(11, 12, 16, .9), rgba(11, 12, 16, .5) 62%, rgba(11, 12, 16, .12)),
        linear-gradient(to bottom, rgba(11, 12, 16, .55), transparent 28%, transparent 70%, rgba(11, 12, 16, .9));
}
.hero-contenu { text-align: center; padding: 7rem 1rem 6rem; display: flex; flex-direction: column; align-items: center; }
.kanji-trace { width: clamp(15rem, 34vw, 27rem); height: auto; overflow: visible; margin-bottom: 1.6rem; }
.kanji-trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; filter: url(#encre); }
.hero .kanji-trace path { stroke: #c5a059; stroke-width: 5.2; }
.hero-titre { white-space: nowrap; font-size: clamp(2.1rem, 9.2vw, 7.6rem); font-weight: 500; line-height: .95; letter-spacing: .06em; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.hero-sous { margin-top: 1.2rem; font-size: clamp(.9rem, 1.9vw, 1.3rem); letter-spacing: .42em; text-transform: uppercase; color: #c5a059; }
.hero-phrase { text-shadow: 0 1px 12px #0b0c10, 0 0 3px #0b0c10; margin-top: 2.2rem; max-width: 30rem; font-size: 1.02rem; font-weight: 300; line-height: 1.7; color: rgba(236, 231, 218, .86); text-wrap: balance; }
.hero-contenu > *:not(svg) { opacity: 0; transform: translateY(12px); transition: opacity 1.4s var(--courbe), transform 1.4s var(--courbe); }
.hero.revele .hero-contenu > * { opacity: 1; transform: none; }
.hero.revele .hero-titre { transition-delay: .2s; } .hero.revele .hero-sous { transition-delay: .5s; }
.hero.revele .hero-phrase { transition-delay: .8s; } .hero.revele .bouton-explorer { transition-delay: 1.1s; }
.bouton-explorer {
    margin-top: 3rem; display: inline-flex; align-items: center; gap: .9rem; min-height: 52px; padding: 0 1.8rem;
    font: 500 .75rem/1 "Cinzel", serif; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
    border: 1px solid rgba(236, 231, 218, .35); transition: background .4s, border-color .4s;
}
.bouton-explorer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: tombe 2.4s ease-in-out infinite; }
.bouton-explorer:hover { background: #b91c1c; border-color: #b91c1c; }
@keyframes tombe { 50% { transform: translateY(4px); } }
.hero-legende { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(236, 231, 218, .55); }

/* ── 6. Sections ── */
.section { padding-block: var(--ma); }
.sur-titre { font-family: var(--font-kanji); font-size: .82rem; letter-spacing: .3em; color: var(--or); }
.titre-section { margin-top: 1rem; font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 500; line-height: 1.05; letter-spacing: .03em; }
.intro { margin-top: 1.8rem; max-width: 42rem; font-size: 1.08rem; line-height: 1.8; color: var(--encre-douce); }
.vie-grille { margin-top: 4.5rem; display: grid; gap: 4rem; }
@media (min-width: 1000px) { .vie-grille { grid-template-columns: minmax(0, 1fr) 19rem; gap: 7rem; } }
.vie-texte p { font-size: 1.04rem; line-height: 1.85; color: var(--encre-douce); max-width: 40rem; }
.vie-texte p + p { margin-top: 1.4rem; }
.vie-texte .chapeau { font-size: 1.32rem; line-height: 1.65; color: var(--encre); font-weight: 300; margin-bottom: 2.4rem; }
.frise { border-left: 1px solid var(--trait); align-self: start; position: sticky; top: 7rem; }
.frise li { display: grid; gap: .3rem; padding: 0 0 1.7rem 1.6rem; position: relative; }
.frise li::before { content: ""; position: absolute; left: -4px; top: .45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--fond); border: 1px solid var(--or); }
.frise li:nth-child(4)::before { background: var(--rouge); border-color: var(--rouge); }
.frise b { font-family: var(--font-titre); font-weight: 500; font-size: 1.05rem; letter-spacing: .12em; color: var(--or); }
.frise span { font-size: .9rem; line-height: 1.55; color: var(--encre-douce); }
.note { margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--trait); max-width: 40rem; font-size: .86rem; line-height: 1.7; color: var(--encre-douce); }

/* La grotte : un film presque immobile */
.grotte { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; background: #0b0c10; color: #ece7da; isolation: isolate; }
.grotte-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.grotte-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 12, 16, .88), rgba(11, 12, 16, .45) 45%, transparent 70%), linear-gradient(to top, rgba(11, 12, 16, .8), transparent 50%); }
.grotte-texte { padding: 0 clamp(1rem, 6vw, 6rem) clamp(4rem, 12vh, 8rem); max-width: 40rem; }
.grotte-kanji { writing-mode: vertical-rl; font-size: 1.1rem; letter-spacing: .5em; color: #c5a059; margin-bottom: 1.8rem; }
.grotte-lieu { font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: .1em; }
.grotte-citation { margin-top: 1.6rem; font-size: 1.08rem; line-height: 1.85; font-weight: 300; color: rgba(236, 231, 218, .88); }
.grotte-source { margin-top: 1.1rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #9d988b; }

/* ── 7. Les cinq roues ── */
.cartes { margin-top: 4.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 700px) { .cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cartes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; } }
.carte { text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 1.1rem; }
.carte:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 700px) { .carte:last-child:nth-child(odd) { grid-column: auto; } }
.carte-image { position: relative; aspect-ratio: 1; overflow: hidden; background: #0b0c10; border: 1px solid var(--trait); transition: border-color .5s, transform .6s var(--courbe); }
.carte:last-child:nth-child(odd) .carte-image { aspect-ratio: 2 / 1; }
@media (min-width: 700px) { .carte:last-child:nth-child(odd) .carte-image { aspect-ratio: 1; } }
.carte-image video, .carte-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--courbe), opacity .6s; }
:root:not(.dark) .carte-image { background: #fcfaf2; }
:root:not(.dark) .carte-image video, :root:not(.dark) .carte-image img { filter: invert(1) hue-rotate(180deg) contrast(1.05); mix-blend-mode: multiply; }
:root:not(.dark) .carte[data-id="feu"] video, :root:not(.dark) .carte[data-id="feu"] img { filter: invert(1) hue-rotate(180deg) saturate(2.4) contrast(1.35) brightness(.92); }
.carte-kanji { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-kanji); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.8rem); color: #ece7da; text-shadow: 0 0 24px rgba(0, 0, 0, .8); transition: color .5s, transform .8s var(--courbe); }
:root:not(.dark) .carte-kanji { color: #1a1a1a; text-shadow: 0 0 20px rgba(252, 250, 242, .9); }
.carte:hover .carte-image, .carte:focus-visible .carte-image { border-color: var(--or); }
.carte:hover video, .carte:hover img { transform: scale(1.06); }
.carte:hover .carte-kanji { transform: scale(1.06); }
.carte[aria-selected="true"] .carte-image { border-color: var(--rouge); }
.carte[aria-selected="true"] .carte-kanji { color: var(--rouge); }
.carte-nom { font-family: var(--font-titre); font-size: 1.08rem; letter-spacing: .1em; }
.carte-livre { display: block; margin-top: .25rem; font-family: var(--font-sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--encre-douce); }
.carte-resume { font-size: .9rem; line-height: 1.55; color: var(--encre-douce); }

/* Panneau du livre ouvert */
.panneau { margin-top: 3rem; border-top: 1px solid var(--rouge); overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--courbe); }
.panneau.ouvert { grid-template-rows: 1fr; }
.panneau > .panneau-dedans { min-height: 0; }
.panneau-corps { padding: 3.5rem 0 1rem; display: grid; gap: 3rem; opacity: 0; transform: translateY(-12px); transition: opacity .7s .2s, transform .8s .15s var(--courbe); }
.panneau.ouvert .panneau-corps { opacity: 1; transform: none; }
@media (min-width: 1000px) { .panneau-corps { grid-template-columns: 12rem minmax(0, 1fr) 20rem; gap: 4rem; } }
.panneau-kanji { font-family: var(--font-kanji); font-weight: 900; font-size: clamp(5rem, 11vw, 9rem); line-height: 1; color: var(--rouge); }
.panneau-japonais { margin-top: 1rem; font-family: var(--font-kanji); font-size: .9rem; letter-spacing: .2em; color: var(--encre-douce); }
.panneau h3 { font-family: var(--font-titre); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: .04em; }
.panneau-texte p { margin-top: 1.3rem; font-size: 1.02rem; line-height: 1.85; color: var(--encre-douce); max-width: 42rem; }
.panneau-texte p:first-of-type { color: var(--encre); font-size: 1.12rem; }
.notions { display: grid; gap: 1.5rem; align-content: start; }
.notions h4 { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--or); }
.notion { padding-bottom: 1.2rem; border-bottom: 1px solid var(--trait); }
.notion b { display: block; font-family: var(--font-titre); font-weight: 500; font-size: .98rem; letter-spacing: .04em; }
.notion i { display: block; margin-top: .15rem; font-style: normal; font-family: var(--font-kanji); font-size: .8rem; color: var(--encre-douce); }
.notion span { display: block; margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: var(--encre-douce); }
.panneau-citation { grid-column: 1 / -1; padding: 2.2rem 0 1rem; border-top: 1px solid var(--trait); font-family: var(--font-kanji); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; text-align: center; text-wrap: balance; }
.panneau-citation small { display: block; margin-top: .8rem; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--encre-douce); }
.panneau-fermer { margin-top: 1rem; min-height: 44px; padding: 0 1.2rem; background: none; border: 1px solid var(--trait); color: var(--encre-douce); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; }
.panneau-fermer:hover { color: var(--encre); border-color: var(--encre-douce); }

/* ── 8. Dokkōdō ── */
.section-dokkodo { background: var(--fond-2); }
.preceptes { margin-top: 4.5rem; display: grid; gap: 0 3.5rem; counter-reset: p; }
@media (min-width: 760px) { .preceptes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .preceptes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.precepte { position: relative; padding: 1.6rem 0 1.7rem 3.2rem; border-top: 1px solid var(--trait); cursor: default; outline: none; transition: opacity .5s; }
.preceptes:hover .precepte:not(:hover) { opacity: .45; }
.preceptes:focus-within .precepte:not(:focus) { opacity: .45; }
.precepte-num { position: absolute; left: 0; top: 1.7rem; font-family: var(--font-titre); font-size: .82rem; letter-spacing: .1em; color: var(--or); }
.precepte-jp { font-family: var(--font-kanji); font-size: .82rem; letter-spacing: .08em; color: var(--encre-douce); }
.precepte-fr { margin-top: .5rem; font-family: var(--font-kanji); font-weight: 400; font-size: 1.12rem; line-height: 1.55; }
.precepte-sens { margin-top: .9rem; font-size: .9rem; line-height: 1.65; color: var(--encre-douce); opacity: 0; max-height: 0; transform: translateY(-4px); transition: opacity .6s var(--courbe), transform .6s var(--courbe), max-height .6s var(--courbe); overflow: hidden; }
.precepte:hover .precepte-sens, .precepte:focus .precepte-sens, .precepte.lu .precepte-sens { opacity: 1; max-height: 12rem; transform: none; }
.precepte:hover .precepte-num, .precepte:focus .precepte-num { color: var(--rouge); }
@media (hover: none) { .precepte-sens { opacity: .85; max-height: none; transform: none; } .preceptes:hover .precepte:not(:hover) { opacity: 1; } }

/* ── Ensō : la touche finale ── */
.enso-grille { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .enso-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: 6rem; } }
.enso-papier { position: relative; aspect-ratio: 1; width: 100%; max-width: 32rem; justify-self: center; background: #fcfaf2; border: 1px solid var(--trait);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); touch-action: none; cursor: crosshair; }
.enso-papier canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.enso-invite { position: absolute; inset: auto 0 1.2rem; text-align: center; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: #9a958a; pointer-events: none; transition: opacity .6s; }
.enso-papier.trace .enso-invite { opacity: 0; }
.enso-sceau { position: absolute; right: 1.4rem; bottom: 1.4rem; writing-mode: vertical-rl; padding: .35rem .25rem; font-size: .95rem; font-weight: 600; line-height: 1;
    color: #fcfaf2; background: #a3191b; border-radius: 3px; pointer-events: none; opacity: 0; transform: scale(1.6) rotate(-8deg); transition: opacity .25s, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.enso-sceau.pose { opacity: .92; transform: scale(1) rotate(-3deg); }
.enso-verdict { margin-top: 2rem; min-height: 3.4em; font-family: var(--font-kanji); font-size: 1.15rem; line-height: 1.6; max-width: 30rem; }
.enso-verdict small { display: block; margin-top: .4rem; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); }

/* ── 9. Pied ── */
.pied { padding: var(--ma) 0 3rem; border-top: 1px solid var(--trait); }
.pied-grille { display: grid; gap: 3rem; }
@media (min-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; align-items: end; } }
.pied-kanji { font-size: 4.5rem; font-weight: 900; line-height: 1; color: var(--rouge); }
.pied-phrase { margin-top: 1.4rem; font-family: var(--font-kanji); font-size: 1.2rem; line-height: 1.5; max-width: 26rem; }
.pied-notes { font-size: .82rem; line-height: 1.7; color: var(--encre-douce); }
.pied-notes a { text-underline-offset: 3px; }
.pied-signature { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.pied-nom { font-family: var(--font-sans); font-size: .95rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--encre); text-transform: lowercase; }
.avec-claude { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; text-decoration: none; color: var(--encre-douce); transition: color .3s; }
.avec-claude svg { width: 16px; height: 16px; fill: #d97757; }
.avec-claude:hover { color: var(--encre); }

/* ── 10. Mouvement réduit : tout reste lisible, rien ne bouge ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-video { animation: none; }
}
