/* 16 Lenses — Expériences variées dans le regard (experiences.js) */
.x-fond { filter: brightness(.7); }
.x-fond.x-flou { filter: blur(18px) brightness(.35); transform: scale(1.1); }
.x-zone { position: absolute; inset: 0; z-index: 2; overflow-y: auto; padding: 80px clamp(20px, 6vw, 96px) 50px; max-width: 1100px; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; cursor: default; }
.x-zone.x-bas { justify-content: flex-end; }
.x-choix { display: grid; gap: 8px; max-width: 640px; margin-top: 4px; }
.x-choix button, .x-phrases button { font: inherit; text-align: left; cursor: pointer; color: #f1eae2; background: #0b0a0fd9; border: 1px solid #ffffff30; border-radius: 14px; padding: 12px 16px; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.4; transition: border-color .2s, background .2s; }
.x-choix button:hover:not(:disabled), .x-phrases button:hover:not(:disabled) { border-color: var(--c); }
button.juste { border-color: #7fd1a1 !important; background: #12301fdd !important; }
button.faux { border-color: #e59a9a !important; background: #3a1515dd !important; }
.x-choix button:disabled:not(.juste):not(.faux), .x-phrases button:disabled:not(.juste):not(.faux) { opacity: .55; }
.x-revele, .x-explique { margin-top: 14px; max-width: 640px; padding: 14px 16px; border-radius: 14px; background: #0b0a0fe6; border-left: 3px solid var(--c); animation: ri-apparait .5s ease; }
.x-revele strong, .x-explique strong { color: var(--c); font-size: 17px; }
.x-revele p, .x-explique p { margin: 6px 0 0; line-height: 1.5; }
.x-petit { font-size: 14px; color: #cfc4d3; }
.x-consigne { margin: 0 0 16px; max-width: 60ch; color: #d9d1dc; line-height: 1.5; }
.x-manche { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #a99fad; }
.x-phrases { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 700px; }
.x-phrases button { width: 100%; }
.x-explique .btn { margin-top: 10px; }
.x-resultat { max-width: 640px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #0b0a0f); animation: ri-apparait .6s ease; }
.x-resultat strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 44px; font-weight: 500; color: var(--c); margin-right: 12px; }
.x-resultat span { color: #cfc4d3; }
.x-resultat p { margin: 8px 0 0; line-height: 1.55; font-size: clamp(15px, 1.4vw, 18px); }
@media (max-width: 760px) { .x-zone { padding-top: 72px; } .x-zone.x-bas { justify-content: flex-start; } }
.x-choix button:disabled, .x-phrases button:disabled { color: #f1eae2; cursor: default; }
/* 29/11 — Entrée : faire le geste de la fonction pour la débloquer */
.y-zone { max-width: 980px; }
.y-jeu { position: relative; margin: 6px 0 10px; }
.y-secoue { animation: y-secoue .4s; }
@keyframes y-secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.y-champ { position: relative; height: min(46vh, 380px); border-radius: 18px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 10%, #0b0a0f), #08070bcc 70%); border: 1px solid #ffffff14; overflow: hidden; }
.y-champ > button, .y-centre, .y-coeur { position: absolute; transform: translate(-50%, -50%); }
.y-traits { position: absolute; inset: 0; width: 100%; height: 100%; }
.y-traits line { stroke: var(--c); stroke-width: .35; opacity: .7; vector-effect: non-scaling-stroke; animation: y-trait .5s ease both; }
@keyframes y-trait { from { opacity: 0; } }
.y-noeud { font: inherit; font-size: 14px; color: #f1eae2; background: #0b0a0fee; border: 1px solid var(--c); border-radius: 99px; padding: 8px 14px; cursor: pointer; white-space: nowrap; animation: y-pop .45s cubic-bezier(.2, .8, .3, 1.3) both; box-shadow: 0 0 18px -6px var(--c); }
.y-noeud.y-racine { font-size: 16px; padding: 12px 20px; background: var(--c); color: #0b0a0d; font-weight: 600; animation: y-pouls 1.6s ease-in-out infinite; }
.y-noeud[data-ouvert] { animation: none; opacity: .85; }
.y-noeud.y-petit { font-size: 12px; padding: 5px 10px; opacity: .85; }
@keyframes y-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } }
@keyframes y-pouls { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 25%, transparent); } }
.y-point { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; transition: left .8s cubic-bezier(.5, 0, .2, 1), top .8s cubic-bezier(.5, 0, .2, 1), opacity .4s .7s; animation: y-pouls 1.8s infinite; }
.y-point.pris { opacity: 0; animation: none; }
.y-centre { width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .3; transition: all .8s; }
.y-centre.on { width: 46px; height: 46px; opacity: 1; box-shadow: 0 0 40px 10px color-mix(in srgb, var(--c) 50%, transparent); }
.y-detail { width: 18px; height: 18px; border-radius: 50%; border: 0; background: #ffffff22; cursor: pointer; transition: background .15s, box-shadow .15s; }
.y-detail.vif { background: var(--c); box-shadow: 0 0 20px 6px color-mix(in srgb, var(--c) 60%, transparent); }
.y-detail.touche { background: #7fd1a1; }
.y-compteur { position: absolute; right: 14px; bottom: 6px; margin: 0; font-size: 14px; color: #cfc4d3; }
.y-si { display: flex; gap: clamp(16px, 4vw, 48px); align-items: center; flex-wrap: wrap; }
.y-si span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #a99fad; margin-bottom: 6px; }
.y-grille { display: grid; grid-template-columns: repeat(4, 22px); gap: 4px; }
.y-grille i { width: 22px; height: 22px; border-radius: 3px; background: #ffffff12; border: 1px dashed #ffffff30; }
.y-grille i.p { background: var(--c); border-style: solid; border-color: var(--c); }
.y-si-cands { display: flex; gap: 14px; flex-wrap: wrap; }
.y-cand { padding: 10px; border-radius: 12px; background: #0b0a0fcc; border: 1px solid #ffffff26; cursor: pointer; }
.y-cand.juste { border-color: #7fd1a1; box-shadow: 0 0 0 2px #7fd1a1; }
.y-cand.faux { animation: y-secoue .4s; border-color: #e59a9a; }
.y-cand.ecart { opacity: .45; }
.y-ti { display: flex; gap: clamp(16px, 4vw, 48px); align-items: center; flex-wrap: wrap; }
.y-cadre { display: grid; grid-template-columns: 64px 64px; gap: 0; border: 2px dashed #ffffff40; padding: 4px; border-radius: 6px; transition: all .5s; }
.y-cadre i { width: 64px; height: 64px; display: grid; place-items: center; font-style: normal; font-size: 58px; line-height: 1; color: var(--c); }
.y-cadre.tient { border-style: solid; border-color: var(--c); box-shadow: 0 0 30px -6px var(--c); }
.y-pieces { display: flex; gap: 10px; flex-wrap: wrap; }
.y-piece { width: 58px; height: 58px; font-size: 40px; line-height: 1; color: var(--c); background: #0b0a0fcc; border: 1px solid #ffffff30; border-radius: 10px; cursor: pointer; }
.y-piece.pose { opacity: .15; }
.y-piece.rejete { opacity: .35; border-color: #e59a9a; text-decoration: line-through; animation: y-secoue .4s; }
.y-te { display: grid; gap: 12px; }
.y-te-rang { list-style: none; counter-reset: te; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; min-height: 46px; align-items: center; border-bottom: 1px dashed #ffffff30; padding-bottom: 10px; }
.y-te-rang li { counter-increment: te; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 18%, #0b0a0f); border: 1px solid var(--c); font-size: 14px; animation: y-pop2 .3s ease; }
.y-te-rang li::before { content: counter(te) '. '; color: var(--c); font-weight: 700; }
@keyframes y-pop2 { from { opacity: 0; transform: translateY(8px); } }
.y-te-cartes { display: flex; gap: 8px; flex-wrap: wrap; }
.y-carte { font: inherit; font-size: 14px; color: #f1eae2; padding: 10px 14px; border-radius: 10px; background: #0b0a0fcc; border: 1px solid #ffffff30; cursor: pointer; }
.y-carte.pose { visibility: hidden; }
.y-carte.faux { animation: y-secoue .4s; border-color: #e59a9a; }
.y-drapeau { font-size: 14px; color: #a99fad; transition: all .5s; }
.y-drapeau.on { color: var(--c); font-size: 18px; font-weight: 600; }
.y-coeur { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #fff 0 10%, var(--c) 40%, transparent 72%); }
.y-coeur.bat { animation: y-bat 1.4s ease-in-out infinite; }
@keyframes y-bat { 50% { transform: translate(-50%, -50%) scale(1.3); } }
.y-valeur { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: #f1eae2; background: #0b0a0fcc; border: 1px solid #ffffff30; border-radius: 14px; padding: 10px 14px; cursor: pointer; transition: opacity .6s, border-color .4s; }
.y-valeur b { font-size: 26px; }
.y-valeur.accord { border-color: var(--c); animation: y-bat2 1.4s ease-in-out infinite; box-shadow: 0 0 24px -4px var(--c); }
.y-valeur.eteint:not(.accord) { opacity: .25; }
@keyframes y-bat2 { 50% { transform: translate(-50%, -50%) scale(1.1); } }
.y-rythme { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; opacity: .85; animation: y-respire 2s ease-in-out infinite; }
.y-rythme.accorde { box-shadow: 0 0 0 3px #ffffff55; }
@keyframes y-respire { 50% { transform: translate(-50%, -50%) scale(1.35); } }
.y-lien { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.y-lien path { stroke: var(--c); stroke-width: .6; vector-effect: non-scaling-stroke; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.2s ease; }
.y-lien.on path { stroke-dashoffset: 0; }
.y-fin { margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, #0b0a0f); border: 1px solid var(--c); animation: ri-apparait .6s ease; }
.y-fin p { margin: 0 0 12px; line-height: 1.5; font-size: clamp(15px, 1.35vw, 17px); }
.y-passer { align-self: flex-start; margin-top: 8px; background: none; border: 0; color: #8f8693; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.y-ok .y-passer { display: none; }
@media (max-width: 760px) { .y-noeud { font-size: 12px; padding: 6px 10px; } .y-noeud.y-racine { font-size: 14px; } .y-champ { height: 52vh; } }
@media (prefers-reduced-motion: reduce) { .y-jeu *, .y-noeud, .y-point, .y-rythme { animation: none !important; transition: none !important; } }
