/* Démonstration produit : aucune bibliothèque, aucun suivi, mouvements finis. */
.beta-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 0; list-style: none; margin: 32px 0; counter-reset: beta; }
.beta-steps li { counter-increment: beta; padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
.beta-steps li::before { content: "0" counter(beta); display: block; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.beta-steps strong { display: block; }
@media(max-width:700px) { .beta-steps { grid-template-columns: 1fr; gap: 10px; } }
.tour { padding: clamp(20px,4vw,48px); border: 1px solid var(--line); border-radius: 32px; background: var(--soft); box-shadow: var(--ombre-2); }
.tour-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.tour-buttons button { font: inherit; font-size: 15px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); border-radius: 30px; padding: 12px 18px; cursor: pointer; }
.tour-buttons button[aria-pressed="true"] { background: var(--nuit); color: #fbf7f1; border-color: var(--nuit); }
.tour-counter { margin: -20px 0 28px; color: var(--muted); font-size: 13px; }
.research-teasers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 38px 0 22px; }
.research-teasers article { display: flex; flex-direction: column; padding: clamp(20px,3vw,30px); border: 1px solid var(--line); border-radius: 24px; background: var(--soft); box-shadow: var(--ombre-1); }
.research-teasers h3 { font-size: clamp(22px,2.2vw,30px); line-height: 1.08; letter-spacing: -.025em; margin: 8px 0 12px; }
.research-teasers article > p:not(.eyebrow) { color: var(--muted); }
.research-teasers article > a { margin-top: auto; padding-top: 16px; }
.mini-chart { height: 120px; margin-bottom: 24px; border-radius: 18px; overflow: hidden; background: color-mix(in srgb,var(--primary) 5%,var(--bg)); }
.mini-coeff { display: flex; align-items: end; justify-content: center; gap: 18px; padding: 18px 34px; }
.mini-coeff span { width: 28px; border-radius: 8px 8px 3px 3px; background: var(--primary); }
.mini-coeff span:nth-child(1) { height: 36%; opacity: .45; }
.mini-coeff span:nth-child(2) { height: 62%; opacity: .72; }
.mini-coeff span:nth-child(3) { height: 92%; }
.mini-memory { display: grid; place-items: center; padding: 10px; }
.mini-memory svg { width: 100%; height: 100%; fill: none; }
.mini-memory path { vector-effect: non-scaling-stroke; }
.mini-grid { stroke: var(--line); stroke-width: 1; }
.mini-forget { stroke: var(--rouge); stroke-width: 3; opacity: .72; }
.mini-recall { stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; }
.mini-week { display: flex; align-items: stretch; padding: 0; border: 10px solid color-mix(in srgb,var(--nuit) 6%,var(--bg)); }
.mini-week span { min-width: 0; }
.mini-sleep { flex: 56; background: #85a0ff; }
.mini-classes { flex: 32; background: #35c6a9; }
.mini-life { flex: 42; background: #d4b176; }
.mini-free { flex: 38; background: var(--soft-2); }
.tour-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.75fr); gap: clamp(24px,5vw,64px); align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-panel h3 { font-size: clamp(28px,3.2vw,44px); line-height: 1.1; letter-spacing: -.035em; max-width: 15ch; }
.tour-panel .cadre { max-width: 275px; margin: 0 auto; transform: none; }
.tour-panel figure { margin: 0; }
.tour-panel figcaption { text-align: center; font-size: 12px; margin-top: 16px; color: var(--muted); }
.tour-panel figure a { display: block; border-radius: 30px; }
.card-demo { perspective: 1200px; }
.card-flip { display: grid; width: 100%; border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; perspective: 1200px; }
.card-flip-inner { grid-area: 1 / 1; position: relative; display: block; transform-style: preserve-3d; transition: transform .72s cubic-bezier(.2,.72,.2,1); }
.card-face { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-face .cadre { transition: box-shadow .3s ease; }
.card-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.card-flip.is-flipped .card-flip-inner { transform: rotateY(180deg); }
.card-flip:hover .card-face .cadre,.card-flip:focus-visible .card-face .cadre { box-shadow: 0 24px 70px rgba(18,31,54,.22); }
.card-flip:focus-visible { outline: 3px solid var(--primary); outline-offset: 8px; border-radius: 32px; }
.flip-hint { grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 3; margin-bottom: 22px; padding: 8px 13px; border-radius: 999px; color: #fff; background: rgba(13,28,52,.82); font-size: 12px; font-weight: 700; box-shadow: 0 6px 24px rgba(0,0,0,.16); pointer-events: none; }
.tour-flow { list-style: none; padding: 0; margin: 28px 0; counter-reset: steps; }
.tour-flow li { counter-increment: steps; position: relative; padding: 0 0 24px 46px; }
.tour-flow li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: 6px; width: 2px; background: var(--line); }
.tour-flow li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--primary) 12%,var(--soft)); color: var(--primary); font-size: 14px; font-weight: 700; }
.tour-flow strong { display: block; color: var(--ink); }
.tour-flow span { display: block; font-size: 15px; color: var(--muted); }
.tour-note { font-size: 13px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; }
.tour-panel.entering .tour-flow li { animation: tour-step .6s both; }
.tour-panel.entering .tour-flow li:nth-child(2) { animation-delay: .12s; }
.tour-panel.entering .tour-flow li:nth-child(3) { animation-delay: .24s; }
.tour-panel.entering figure { animation: tour-step .7s both; }
@keyframes tour-step { from { opacity: .15; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.week-lab { padding: clamp(20px,4vw,40px); background: var(--nuit); color: #fbf7f1; border-radius: 28px; margin: 32px 0; }
.week-lab h3 { color: #fbf7f1; margin-top: 0; }
.week-lab p { color: #c9d3e5; }
.week-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 28px 0; }
.week-controls label { display: grid; gap: 10px; }
.week-controls input { width: 100%; accent-color: #82dec8; min-height: 32px; }
.week-total { font-size: clamp(38px,6vw,66px); font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
.week-total small { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.week-budget { display: flex; height: 36px; overflow: hidden; border-radius: 12px; margin: 24px 0; background: #243751; }
.week-budget > span { flex-basis: 0; transition: flex-grow .55s ease; min-width: 0; }
.budget-sleep { background: #85a0ff; }
.budget-class { background: #35c6a9; }
.budget-life { background: #d4b176; }
.budget-work { background: #fbf7f1; }
.week-key { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; font-size: 14px; }
.week-key li::before { content: ''; width: 10px; height: 10px; display: inline-block; border-radius: 3px; margin-right: 7px; }
.week-key li:nth-child(1)::before { background: #85a0ff; }
.week-key li:nth-child(2)::before { background: #35c6a9; }
.week-key li:nth-child(3)::before { background: #d4b176; }
.week-key li:nth-child(4)::before { background: #fbf7f1; }
.no-js-note { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
@media(max-width:850px) { .research-teasers { grid-template-columns: 1fr; } .mini-chart { height: 105px; } }
@media(max-width:700px) { .tour-panel { grid-template-columns: 1fr; } .week-controls { grid-template-columns: 1fr; gap: 12px; } .tour-buttons button { flex: 1; padding-inline: 10px; font-size: 14px; } }
@media(prefers-reduced-motion:reduce) {
  .tour-panel.entering .tour-flow li,.tour-panel.entering figure { animation: none; }
  .week-budget > span,.card-flip-inner { transition: none; }
  .card-flip-inner { transform: none !important; }
  .card-front { opacity: 1; }
  .card-back { transform: none; opacity: 0; }
  .card-flip.is-flipped .card-front { opacity: 0; }
  .card-flip.is-flipped .card-back { opacity: 1; }
}
