/* Accueil : le plan de travail */
/* Parti pris : pas de scroll, un plan de travail qu'on parcourt comme dans Figma. Les projets sont des frames, le profil des post-it */
html, body { height: 100%; }
body { overflow: hidden; background: var(--c-bg-2); }
.canvas { position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.world { position: absolute; top: 0; left: 0; width: 6000px; height: 4400px; transform-origin: 0 0; }
/* Trame de points débordante : on peut centrer un élément même au bord du plan */
.world::before { content: ""; position: absolute; z-index: -1; inset: -100vmax; background-image: radial-gradient(var(--c-border-cell) 1px, transparent 1px); background-size: 24px 24px; }
.world.is-moving { transition: transform .9s var(--ease); }
.at { position: absolute; left: var(--x); top: var(--y); width: var(--w); }

/* Le nom : fixe, devant les éléments posés autour, avec une marge qui tient les lignes à distance */
.hello { --w: 760px; z-index: 1; padding: var(--s-3xl); text-align: center; pointer-events: none; }
.hello h1 { font: 700 76px/1.02 var(--f-head); white-space: nowrap; }
.hello p { margin-top: var(--s-lg); font: var(--t-xl); color: var(--c-muted); }
/* Post-it de repère autour du nom : à gauche le profil, à droite les projets ; ils passent derrière le nom */
.hint-note { padding: var(--s-md) var(--s-lg); background: var(--c-note); color: var(--c-text); font: var(--h-3xs); white-space: nowrap;
  rotate: var(--r); box-shadow: var(--shadow-sm); cursor: default; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.links path { fill: none; stroke: var(--c-line); stroke-width: 1.5; stroke-dasharray: 6 6; }
/* Boutons : secondary reprend la forme de Button type=outline du Figma, en noir ; primary est sa version pleine */
.secondary, .primary { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm); padding: var(--s-sm) var(--s-md); border: 1px solid var(--c-text); border-radius: var(--r-btn); font: var(--t-md); cursor: pointer; transition: background-color .2s, border-color .2s; }
.secondary { background: var(--c-bg); color: var(--c-text); }
.secondary:hover, .secondary:focus-visible { background: var(--c-bg-brand); }
.secondary:active { background: var(--c-fill-press); }
.primary { background: var(--c-text); color: var(--c-inverse); font-weight: 700; }
.primary:hover, .primary:focus-visible { background: var(--c-brand-2); border-color: var(--c-brand-2); }
/* Variante de taille : sm */
.secondary--sm { gap: var(--s-xs); padding: var(--s-xs) var(--s-sm); font: var(--t-sm); }
.secondary--sm .icon { width: 16px; height: 16px; }
/* Chevron posé au milieu de chaque ligne, orienté vers l'élément qu'il rejoint */
.hop { position: absolute; z-index: 1000; width: 40px; height: 44px; padding: var(--s-sm); translate: -50% -50%; }
.hop .icon { rotate: var(--a, 0deg); }
/* Ligne trop courte : pas de chevron (display du bouton prend sinon le pas sur hidden) */
.hop[hidden] { display: none; }
/* Infobulle : nature du projet */
.hop::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 4px; padding: var(--s-xs) var(--s-md); background: var(--c-text); color: var(--c-inverse); font: var(--h-3xs); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease); }
.hop:hover::after, .hop:focus-visible::after { opacity: 1; translate: -50% 0; }
/* Survol : animation du composant Figma icons/chevron-right (732:861), lue en boucle */
@property --chevron-rotate { syntax: '<angle>'; initial-value: 0rad; inherits: false; }
.chevron__stroke { transform-box: fill-box; transform-origin: center; transform: rotate(var(--chevron-rotate)); }
.chevron__speed { opacity: 0; transform-box: fill-box; }
.secondary:hover .chevron__stroke, .secondary:focus-visible .chevron__stroke { animation: chevron-rotate 4s linear infinite, chevron-move 4s linear infinite; }
.secondary:hover .chevron__speed, .secondary:focus-visible .chevron__speed { animation: chevron-speed 1s linear var(--delay) infinite; }
@keyframes chevron-rotate {
  0% { animation-timing-function: cubic-bezier(.32, .5, .22, 1); --chevron-rotate: 0rad; }
  24.994% { animation-timing-function: cubic-bezier(.32, 0, .22, 1); --chevron-rotate: -.194rad; }
  49.987% { animation-timing-function: cubic-bezier(.32, 0, .22, 1); --chevron-rotate: .15rad; }
  74.981% { animation-timing-function: cubic-bezier(.32, 0, .22, 1); --chevron-rotate: .087rad; }
  99.974%, 100% { --chevron-rotate: 0rad; }
}
@keyframes chevron-move {
  0% { translate: 0px 0px; } 2.5% { translate: .049px -.221px; } 5% { translate: .186px -.486px; } 7.5% { translate: .395px -.779px; } 10% { translate: .659px -1.084px; }
  12.5% { translate: .962px -1.386px; } 15% { translate: 1.289px -1.668px; } 17.5% { translate: 1.623px -1.915px; } 20% { translate: 1.948px -2.112px; } 22.5% { translate: 2.248px -2.241px; }
  25% { translate: 2.506px -2.287px; } 27.5% { translate: 2.698px -2.218px; } 30% { translate: 2.91px -2.029px; } 32.5% { translate: 3.132px -1.746px; } 35% { translate: 3.354px -1.397px; }
  37.5% { translate: 3.568px -1.009px; } 40% { translate: 3.764px -.609px; } 42.5% { translate: 3.932px -.223px; } 45% { translate: 4.064px .122px; } 47.5% { translate: 4.15px .398px; }
  50% { translate: 4.18px .58px; } 52.5% { translate: 4.102px .856px; } 55% { translate: 3.887px 1.122px; } 57.5% { translate: 3.565px 1.374px; } 60% { translate: 3.163px 1.608px; }
  62.5% { translate: 2.712px 1.819px; } 65% { translate: 2.238px 2.002px; } 67.5% { translate: 1.772px 2.152px; } 70% { translate: 1.341px 2.265px; } 72.5% { translate: .974px 2.336px; }
  75% { translate: .701px 2.361px; } 77.5% { translate: .603px 2.318px; } 80% { translate: .505px 2.201px; } 82.5% { translate: .408px 2.021px; } 85% { translate: .315px 1.789px; }
  87.5% { translate: .23px 1.518px; } 90% { translate: .154px 1.221px; } 92.5% { translate: .09px .908px; } 95% { translate: .042px .591px; } 97.5% { translate: .011px .284px; } 100% { translate: 0px 0px; }
}
/* Traits de vitesse : même cycle d'une seconde pour les trois, décalés et de longueurs différentes */
@keyframes chevron-speed {
  0% { animation-timing-function: ease-out; opacity: 0; width: 1px; translate: 5px 0px; }
  13% { animation-timing-function: ease-in; opacity: .45; width: var(--len); }
  48%, 100% { opacity: 0; width: 1px; translate: -8px 0px; }
}
@media (prefers-reduced-motion: reduce) { .secondary:hover .icon *, .secondary:focus-visible .icon * { animation: none; } }
/* Éléments déplaçables, comme sur un tableau */
[data-move] { translate: var(--dx, 0px) var(--dy, 0px); cursor: grab; }
.is-dragging, .is-dragging * { cursor: grabbing !important; }
.is-held .frame__body, .note.is-held { box-shadow: var(--shadow-lift); }

/* Frame : nom au-dessus comme dans Figma, sélection orange et poignées au survol */
.frame { --w: 520px; --img: 320px; display: block; color: var(--c-text); text-decoration: none; }
.frame__name { display: block; margin-bottom: var(--s-sm); font: var(--t-xs); color: var(--c-muted); transition: color .2s; }
.frame__body { position: relative; display: block; background: var(--c-bg); box-shadow: var(--shadow); transition: box-shadow .3s var(--ease), outline-color .2s; outline: 2px solid transparent; }
.frame__body img { width: 100%; height: var(--img); object-fit: cover; }
.frame__txt { display: block; padding: var(--s-xl); }
.frame__txt strong { display: block; font: var(--h-sm); margin-bottom: var(--s-sm); }
.frame__txt em { display: inline-flex; align-items: center; gap: var(--s-sm); margin-top: var(--s-md); font-style: normal; font-weight: 700; color: var(--c-brand-2); }
/* Projet protégé par mot de passe : étiquette sombre sur l'image, et rappel sous « Ouvrir le projet » */
.frame__badge { position: absolute; z-index: 1; top: var(--s-md); left: var(--s-md); display: inline-flex; align-items: center; gap: var(--s-xs); padding: var(--s-xs) var(--s-sm);
  background: var(--c-text); border-radius: var(--r-btn); color: var(--c-inverse); font: var(--h-3xs); box-shadow: var(--shadow-sm); }
.frame__lock { display: flex; align-items: center; gap: var(--s-xs); margin-top: var(--s-sm); font: var(--t-sm); color: var(--c-muted); }
.frame__badge .icon, .frame__lock .icon { width: 16px; height: 16px; }
.frame:hover .frame__name, .frame:focus-visible .frame__name { color: var(--c-brand); }
.frame:hover .frame__body, .frame:focus-visible .frame__body { outline-color: var(--c-brand); box-shadow: var(--shadow-lift); }
.handle { position: absolute; width: 9px; height: 9px; background: var(--c-bg); border: 1.5px solid var(--c-brand); opacity: 0; transition: opacity .2s; }
.handle:nth-of-type(1) { top: -5px; left: -5px; } .handle:nth-of-type(2) { top: -5px; right: -5px; }
.handle:nth-of-type(3) { bottom: -5px; left: -5px; } .handle:nth-of-type(4) { bottom: -5px; right: -5px; }
.frame:hover .handle, .frame:focus-visible .handle { opacity: 1; }

/* À propos : la zone du bas, en post-it */
.zone { --w: 1000px; padding: var(--s-3xl); border: 1px dashed var(--c-border); border-radius: var(--r-card); }
/* Le titre passe devant la photo ; sa copie blanche, découpée en JS sur la photo, passe encore devant */
.zone h2 { position: relative; z-index: 1; font: var(--h-lg); margin-bottom: var(--s-3xl); }
.zone .zone__title-light { position: absolute; z-index: 2; margin: 0; color: var(--c-bg); pointer-events: none; clip-path: inset(0 0 100% 0); }
.corner { position: absolute; width: 0; height: 0; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); align-items: start; }
/* --dx et --dy s'héritent : sans cette remise à zéro, les post-it se décalent en double quand la zone bouge */
.note { --dx: 0px; --dy: 0px; position: relative; padding: var(--s-xl); min-height: 230px; background: var(--c-fill); box-shadow: var(--shadow-sm); rotate: var(--r, 0deg); transition: rotate .3s var(--ease), box-shadow .3s var(--ease); }
.note:hover { rotate: 0deg; box-shadow: var(--shadow-lift); }
.note h3 { font: var(--h-xxs); margin-bottom: var(--s-md); }
.notes .note p { font: var(--t-sm); }
/* Polaroid : arrive de hors champ et se dépose, rotation, position et ombre portée animées ensemble.
   Courbe : ease out 0 %, ease in 75 % (influences façon After Effects) ; ease in 100 % pour la position ; sur 2,5 s */
.polaroid { --ease: cubic-bezier(0, 0, .25, 1); --dur: 2.5s;
  position: relative; padding: 6px 6px 19px; background: var(--c-bg); pointer-events: none;
  rotate: -49deg; translate: 140px -900px; filter: drop-shadow(16px 26px 18px rgb(0 0 0 / .14));
  transition: rotate var(--dur) var(--ease), translate var(--dur) cubic-bezier(0, 0, 0, 1), filter var(--dur) var(--ease); }
.polaroid.is-dropped { rotate: 7deg; translate: 0 0; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .2));
  transition-delay: .3s; }
/* Celui de « À propos » : sous la fin du titre ; il se dépose quand on est devant la zone et repart quand on s'en va */
.zone .polaroid { position: absolute; top: 22px; left: 453px; width: 94px; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .polaroid { transition: none; } }
.zone__foot { display: flex; gap: var(--s-xl); margin-top: var(--s-3xl); }
.zone__foot .btn { background: transparent; }

/* Boutons fixes en bas : Ranger (principal) et Revenir au centre (secondaire), visibles après un déplacement */
.tray { position: fixed; z-index: 20; left: 0; right: 0; bottom: var(--s-xl); display: flex; justify-content: center; gap: var(--s-md); pointer-events: none; }
.tray__btn { opacity: 0; visibility: hidden; transform: translateY(12px); box-shadow: var(--shadow-sm); transition: opacity .3s, visibility .3s, transform .3s var(--ease), background-color .2s, border-color .2s; }
.tray__btn.is-shown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

/* Suivant : posé sur le plan, sous le coin droit de chaque projet */
.next { position: absolute; z-index: 1000; translate: -100% 0; opacity: 0; visibility: hidden; transition: background-color .2s, opacity .25s, visibility .25s; }
.next--start { translate: 0 0; }
/* L'accueil est à gauche des projets : chevron en tête, tourné vers lui */
.next--start .icon { scale: -1 1; }
/* Entre projets : le chevron suit la direction du projet suivant */
.next:not(.next--start) .icon { rotate: var(--a, 0deg); }
.next.is-shown { opacity: 1; visibility: visible; transition-delay: 0s, .55s, .55s; }

/* Sign : invite à glisser (composant Figma sign, 740:349), à 2/3 de l'écran après 5 s d'inactivité */
.drag-hint { position: fixed; z-index: 15; left: 0; right: 0; top: 66.667svh; display: flex; justify-content: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
.drag-hint.is-on { opacity: 1; }
.sign { width: 40px; height: 40px; margin-left: -75px; border: 1px solid var(--c-bg); border-radius: var(--r-pill);
  background: linear-gradient(rgb(255 255 255 / .4), rgb(255 255 255 / .4)), radial-gradient(35px 96px at 85% 37.5%, rgb(242 242 242 / .2), rgb(102 102 102 / .2)), radial-gradient(86px 238px at 25% 46%, #f2f2f2, #666); animation: sign-fade 4.03s linear infinite, sign-move 4.03s linear infinite, sign-press 4.03s linear infinite; }
@keyframes sign-fade {
  0% { animation-timing-function: cubic-bezier(.5, 0, .5, 1); opacity: 0; }
  25.177% { opacity: 1; }
  85.787% { animation-timing-function: cubic-bezier(.5, 0, .5, 1); opacity: 1; }
  99.975%, 100% { opacity: 0; }
}
@keyframes sign-move {
  0% { translate: 0px 0px; }
  42.561% { animation-timing-function: cubic-bezier(.319, 0, .31, .991); translate: 0px 0px; }
  53.374% { animation-timing-function: cubic-bezier(.336, 0, .192, 1); translate: -4.56px 0px; }
  99.975%, 100% { translate: 75.44px 0px; }
}
@keyframes sign-press {
  0% { animation-timing-function: cubic-bezier(.5, 0, .466, 1); scale: 1.1 1.1; }
  25.177% { scale: 1 1; }
  27.477% { animation-timing-function: cubic-bezier(.293, 0, .241, 1); scale: 1 1; }
  46.269% { scale: .872 .872; }
  85.787% { animation-timing-function: cubic-bezier(.5, 0, .5, 1); scale: .872 .872; }
  99.975%, 100% { scale: 1 1; }
}
@media (prefers-reduced-motion: reduce) { .sign { animation: none; } }

/* Éléments posés autour du nom, fixes (curseur flèche) : l'illustration, les petits post-it et les icônes animées */
.mascot, .sticky, .doodle { cursor: default; }
.mascot img { width: 100%; height: auto; rotate: var(--r, 0deg); }
.sticky.note { position: absolute; display: flex; align-items: center; min-height: 0; aspect-ratio: 1; padding: calc(var(--w) * .12); font: 600 calc(var(--w) * .13)/1.15 var(--f-head); }
#sticky-2 { font-size: calc(var(--w) * .11); }
.nowrap { white-space: nowrap; }
/* Icônes animées (section « animated icons » du Figma) : jouées 3 fois à l'arrivée, puis au survol.
   Toutes les animations sont image par image, d'où le step-end */
.doodle svg { display: block; width: 100%; height: auto; rotate: var(--r, 0deg); overflow: visible; }
.doodle svg * { animation-timing-function: step-end; animation-iteration-count: 3; transform-box: fill-box; transform-origin: center; }
.list-l1 { animation-name: list-l1; } .list-l2 { animation-name: list-l2; } .list-l4 { animation-name: list-l4; } .list-dot { animation-name: list-dot; }
.d-list svg * { animation-duration: 3s; }
.click-shake { animation: click-shake 2s step-end 3; }
.scribble-loop { animation: scribble-loop 4s step-end 3; } .scribble-top { animation: scribble-top 4s step-end 3; }
.orbit-v { animation: orbit-v 4s step-end 3; } .orbit-o { animation: orbit-o 4s step-end 3; } .orbit-t { animation: orbit-t 4s step-end 3; } .orbit-exit { animation: orbit-exit 4s step-end 3; }
.load-fill, .load-front, .load-cursor { animation-duration: 2.748s; animation-direction: alternate; }
.load-fill { animation-name: load-fill; transform-box: view-box; } .load-front { animation-name: load-front; } .load-cursor { animation-name: load-cursor; }
.check-draw { animation: check-draw 3s step-end 3; } .check-pop { animation: check-pop 3s step-end 3; }
@keyframes list-l1 { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 8.333% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 12.5% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 95.833% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } }
@keyframes list-l2 { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 20.833% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 25% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 95.833% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } }
@keyframes list-l4 { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 45.833% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 50% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 95.833% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } }
@keyframes list-dot { 0% { opacity: 0; } 4.167% { opacity: 1; } 95.833% { opacity: 0; } }
@keyframes click-shake { 0% { transform: translate(0px, 0px) rotate(0rad); } 6.25% { transform: translate(-0.35px, -0.4px) rotate(0.012rad); } 12.5% { transform: translate(0.7px, 0.15px) rotate(-0.009rad); } 18.75% { transform: translate(-0.5px, 0.55px) rotate(0.004rad); } 25% { transform: translate(0.25px, -0.6px) rotate(-0.01rad); } 31.25% { transform: translate(0px, 0px) rotate(0rad); } 37.5% { transform: translate(0.65px, -0.45px) rotate(-0.011rad); } 43.75% { transform: translate(-0.6px, 0.25px) rotate(0.01rad); } 50% { transform: translate(0.35px, 0.65px) rotate(-0.006rad); } 56.25% { transform: translate(-0.35px, -0.4px) rotate(0.012rad); } 62.5% { transform: translate(0.7px, 0.15px) rotate(-0.009rad); } 68.75% { transform: translate(-0.5px, 0.55px) rotate(0.004rad); } 75% { transform: translate(0.25px, -0.6px) rotate(-0.01rad); } 81.25% { transform: translate(0px, 0px) rotate(0rad); } 87.5% { transform: translate(0.65px, -0.45px) rotate(-0.011rad); } 93.75% { transform: translate(-0.6px, 0.25px) rotate(0.01rad); } }
@keyframes scribble-loop { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 6.25% { stroke-dasharray: 0.1 1; stroke-dashoffset: 0; visibility: visible; } 9.375% { stroke-dasharray: 0.2 1; stroke-dashoffset: 0; visibility: visible; } 12.5% { stroke-dasharray: 0.3 1; stroke-dashoffset: 0; visibility: visible; } 15.625% { stroke-dasharray: 0.4 1; stroke-dashoffset: 0; visibility: visible; } 18.75% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 21.875% { stroke-dasharray: 0.6 1; stroke-dashoffset: 0; visibility: visible; } 25% { stroke-dasharray: 0.7 1; stroke-dashoffset: 0; visibility: visible; } 28.125% { stroke-dasharray: 0.8 1; stroke-dashoffset: 0; visibility: visible; } 31.25% { stroke-dasharray: 0.9 1; stroke-dashoffset: 0; visibility: visible; } 34.375% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 62.5% { stroke-dasharray: 0.875 1; stroke-dashoffset: -0.125; visibility: visible; } 65.625% { stroke-dasharray: 0.75 1; stroke-dashoffset: -0.25; visibility: visible; } 68.75% { stroke-dasharray: 0.625 1; stroke-dashoffset: -0.375; visibility: visible; } 71.875% { stroke-dasharray: 0.5 1; stroke-dashoffset: -0.5; visibility: visible; } 75% { stroke-dasharray: 0.375 1; stroke-dashoffset: -0.625; visibility: visible; } 78.125% { stroke-dasharray: 0.25 1; stroke-dashoffset: -0.75; visibility: visible; } 81.25% { stroke-dasharray: 0.125 1; stroke-dashoffset: -0.875; visibility: visible; } 84.375% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; } }
@keyframes scribble-top { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 40.625% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 43.75% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 81.25% { stroke-dasharray: 0.5 1; stroke-dashoffset: -0.5; visibility: visible; } 84.375% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; } }
@keyframes orbit-v { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 6.25% { stroke-dasharray: 0.25 1; stroke-dashoffset: 0; visibility: visible; } 9.375% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 12.5% { stroke-dasharray: 0.75 1; stroke-dashoffset: 0; visibility: visible; } 15.625% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 62.5% { stroke-dasharray: 0.6667 1; stroke-dashoffset: -0.3333; visibility: visible; } 65.625% { stroke-dasharray: 0.3333 1; stroke-dashoffset: -0.6667; visibility: visible; } 68.75% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; } }
@keyframes orbit-o { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 18.75% { stroke-dasharray: 0.25 1; stroke-dashoffset: 0; visibility: visible; } 21.875% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 25% { stroke-dasharray: 0.75 1; stroke-dashoffset: 0; visibility: visible; } 28.125% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 71.875% { stroke-dasharray: 0.6667 1; stroke-dashoffset: -0.3333; visibility: visible; } 75% { stroke-dasharray: 0.3333 1; stroke-dashoffset: -0.6667; visibility: visible; } 78.125% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; } }
@keyframes orbit-t { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 31.25% { stroke-dasharray: 0.25 1; stroke-dashoffset: 0; visibility: visible; } 34.375% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 37.5% { stroke-dasharray: 0.75 1; stroke-dashoffset: 0; visibility: visible; } 40.625% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 81.25% { stroke-dasharray: 0.6667 1; stroke-dashoffset: -0.3333; visibility: visible; } 84.375% { stroke-dasharray: 0.3333 1; stroke-dashoffset: -0.6667; visibility: visible; } 87.5% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; } }
@keyframes orbit-exit { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 43.75% { stroke-dasharray: 0.5 1; stroke-dashoffset: 0; visibility: visible; } 46.875% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 90.625% { stroke-dasharray: 0.5 1; stroke-dashoffset: -0.5; visibility: visible; } 93.75% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; } }
@keyframes load-fill { 0% { width: .05px; } 9.098% { width: 3.39px; } 13.646% { width: 6.78px; } 18.195% { width: 11.526px; } 22.744% { width: 15.594px; } 27.293% { width: 20.34px; } 40.939% { width: 29.832px; } 45.488% { width: 34.578px; } 50.036% { width: 38.646px; } 54.585% { width: 43.392px; } 59.134% { width: 48.816px; } 72.78% { width: 56.274px; } 77.329% { width: 61.698px; } 81.878% { width: 67.8px; } 100% { width: .05px; } }
@keyframes load-front { 0% { opacity: 0; translate: 0px 0px; } 9.098% { opacity: 1; translate: 3.39px 0px; } 13.646% { opacity: 1; translate: 6.78px 0px; } 18.195% { opacity: 1; translate: 11.526px 0px; } 22.744% { opacity: 1; translate: 15.594px 0px; } 27.293% { opacity: 1; translate: 20.34px 0px; } 40.939% { opacity: 1; translate: 29.832px 0px; } 45.488% { opacity: 1; translate: 34.578px 0px; } 50.036% { opacity: 1; translate: 38.646px 0px; } 54.585% { opacity: 1; translate: 43.392px 0px; } 59.134% { opacity: 1; translate: 48.816px 0px; } 72.78% { opacity: 1; translate: 56.274px 0px; } 77.329% { opacity: 1; translate: 61.698px 0px; } 81.878% { opacity: 1; translate: 67.8px 0px; } 100% { opacity: 0; translate: 0px 0px; } }
@keyframes load-cursor { 0% { translate: -33.4px 0px; scale: 1; } 4.549% { translate: -33.4px 2px; scale: 0.94; } 9.098% { translate: -30.01px 2px; scale: 1; } 13.646% { translate: -26.62px 0px; scale: 1; } 18.195% { translate: -21.874px 0px; scale: 1; } 22.744% { translate: -17.806px 0px; scale: 1; } 27.293% { translate: -13.06px 0px; scale: 1; } 40.939% { translate: -3.568px 0px; scale: 1; } 45.488% { translate: 1.178px 0px; scale: 1; } 50.036% { translate: 5.246px 0px; scale: 1; } 54.585% { translate: 9.992px 0px; scale: 1; } 59.134% { translate: 15.416px 0px; scale: 1; } 72.78% { translate: 22.874px 0px; scale: 1; } 77.329% { translate: 28.298px 0px; scale: 1; } 81.878% { translate: 34.4px -2px; scale: 1.08; } 86.426% { translate: 34.4px 0px; scale: 1; } 100% { translate: -33.4px 0px; scale: 1; } }
@keyframes check-draw { 0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } 8.333% { stroke-dasharray: 0.09 1; stroke-dashoffset: 0; visibility: visible; } 12.5% { stroke-dasharray: 0.2 1; stroke-dashoffset: 0; visibility: visible; } 16.667% { stroke-dasharray: 0.39 1; stroke-dashoffset: 0; visibility: visible; } 20.833% { stroke-dasharray: 0.64 1; stroke-dashoffset: 0; visibility: visible; } 25% { stroke-dasharray: 0.87 1; stroke-dashoffset: 0; visibility: visible; } 29.167% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; } 95.833% { stroke-dasharray: 0 1; stroke-dashoffset: 0; visibility: hidden; } }
@keyframes check-pop { 0% { scale: 1; } 33.333% { scale: 1.07; } 37.5% { scale: .98; } 41.667% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .doodle svg * { animation: none !important; } }

/* Petit écran : même plan de travail, réduit par le script ; les éléments sont un peu plus étroits */
@media (max-width: 860px) {
  .hello { --w: 360px; padding: 0 20px; }
  .hello h1 { font-size: 56px; }
  .frame { --w: 440px; --img: 270px; }
  .zone { --w: 470px; padding: var(--s-xl); }
  .zone h2 { margin-bottom: var(--s-xl); }
  .notes { grid-template-columns: 1fr; }
  .note { min-height: 0; }
  /* Le plan est réduit sur petit écran : le texte des post-it grossit pour rester lisible */
  .notes .note p { font: var(--t-md); }
  .zone .polaroid { left: auto; right: 8px; top: 12px; }
}
