/* ==========================================================================
   Cadran — icons.css — icônes animées.
   Tracés et chorégraphies adaptés de lucide-animated (MIT, © 2024-2026 pqoqubbw,
   https://lucide-animated.com) et de Lucide (ISC), réécrits en CSS pur : aucune
   dépendance. L'animation joue quand .ico reçoit .is-play (assets/js/icons.js :
   entrée à l'écran, survol ou focus de la carte).
   ========================================================================== */
.ico{
  display:inline-flex; flex:none; width:28px; height:28px;
  color:var(--color-silver); transition:color var(--dur-fast);
}
.ico svg{
  width:100%; height:100%; overflow:visible; fill:none; stroke:currentColor;
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
}
.ico svg *{ transform-box:fill-box; transform-origin:center; }
.ico .i-fill{ fill:currentColor; }
.card:hover .ico, .card:focus-within .ico{ color:var(--color-ice); }
/* Placement */
.ico--corner{ position:absolute; top:var(--space-5); right:var(--space-5); z-index:2; }
@media (min-width:600px){ .ico--corner{ top:var(--space-6); right:var(--space-6); } }
.svc-eyebrow .ico{ margin-left:auto; }
/* Tracés qui se dessinent : pathLength="1" dans le SVG */
.ico .i-draw{ stroke-dasharray:1; stroke-dashoffset:0; }

.ico.is-play svg{ animation:var(--ico-svg,none); }
.ico--search.is-play svg{ animation:ico-search 1s var(--ease-out); }
.ico--trending.is-play svg{ animation:ico-nudge-ne .5s ease-in-out; }
.ico--trending.is-play .i-a{ animation:ico-draw .4s ease-out both; }
.ico--trending.is-play .i-b{ animation:ico-draw .3s ease-out .3s both; }
.ico--file.is-play svg{ animation:ico-pop .6s ease-out; }
.ico--file.is-play .i-a{ animation:ico-line .7s ease-in-out .3s; }
.ico--file.is-play .i-b{ animation:ico-line .7s ease-in-out .5s; }
.ico--file.is-play .i-c{ animation:ico-line .7s ease-in-out .7s; }
.ico--check.is-play .i-a{ animation:ico-draw .4s ease-in-out .1s both; }
.ico--cart.is-play svg{ animation:ico-cart .9s ease-in-out; }
.ico--refresh.is-play svg{ animation:ico-turn .9s var(--ease-needle); }
.ico--rotate.is-play svg{ animation:ico-turn-ccw .9s var(--ease-needle); }
.ico--pin svg{ transform-origin:50% 100%; }
.ico--pin.is-play svg{ animation:ico-pin .8s var(--ease-needle); }
.ico--wrench svg{ transform-origin:90% 10%; }
.ico--wrench.is-play svg{ animation:ico-wrench 1.05s ease-in-out; }
.ico--receipt.is-play .i-a{ animation:ico-draw .6s ease-out both; }
.ico--receipt.is-play .i-b{ animation:ico-draw .4s ease-out .5s both; }
.ico--key svg{ transform-origin:30% 70%; }
.ico--key.is-play svg{ animation:ico-key 1.2s ease-in-out; }
.ico--lock.is-play svg{ animation:ico-lock 1s cubic-bezier(.4,0,.2,1); }
.ico--lock .i-a{ stroke-dasharray:.8 1; }
.ico--lock.is-play .i-a{ animation:ico-shackle 1s cubic-bezier(.4,0,.2,1); }
.ico--gauge .i-a{ transform-origin:0% 100%; }
.ico--gauge.is-play .i-a{ animation:ico-needle 1.4s var(--ease-needle); }
.ico--folder.is-play .i-a{ animation:ico-out .5s ease-in-out 2; }
.ico--telescope .i-a{ transform-box:view-box; transform-origin:12px 13px; }
.ico--telescope.is-play .i-a{ animation:ico-scope 1.6s ease-in-out; }
.ico--palette .i-a{ stroke-dasharray:1; }
.ico--palette.is-play .i-a{ animation:ico-draw .45s cubic-bezier(.65,0,.35,1) both; }
.ico--palette.is-play .i-d{ animation:ico-dot .45s var(--ease-needle) both; }
.ico--palette.is-play .i-d:nth-of-type(1){ animation-delay:.45s; }
.ico--palette.is-play .i-d:nth-of-type(2){ animation-delay:.53s; }
.ico--palette.is-play .i-d:nth-of-type(3){ animation-delay:.61s; }
.ico--palette.is-play .i-d:nth-of-type(4){ animation-delay:.69s; }
.ico--cpu.is-play .i-y{ animation:ico-pin-y .5s ease-in-out 2; }
.ico--cpu.is-play .i-x{ animation:ico-pin-x .5s ease-in-out 2; }
.ico--rocket.is-play svg{ animation:ico-rocket 1.6s ease-in-out; }
.ico--rocket .i-a{ transform-origin:100% 0%; }
.ico--rocket.is-play .i-a{ animation:ico-flame .4s ease-in-out 4; }

@keyframes ico-search{ 0%{transform:translate(0,0)} 33%{transform:translate(0,-4px)} 66%{transform:translate(-3px,0)} 100%{transform:translate(0,0)} }
@keyframes ico-nudge-ne{ 50%{transform:translate(2px,-2px)} }
@keyframes ico-draw{ from{stroke-dashoffset:1;opacity:0} 15%{opacity:1} to{stroke-dashoffset:0;opacity:1} }
@keyframes ico-pop{ 50%{transform:scale(1.06)} }
@keyframes ico-line{ 0%,100%{transform:scaleX(1)} 50%{transform:scaleX(0)} }
@keyframes ico-cart{ 0%{transform:scale(1) translateY(0)} 20%{transform:scale(1.1) translateY(-5px)} 45%{transform:scale(1.1) translateY(0)} 65%{transform:scale(1.1) translateY(-5px)} 100%{transform:scale(1) translateY(0)} }
@keyframes ico-turn{ 45%,60%{transform:rotate(50deg)} }
@keyframes ico-turn-ccw{ 45%,60%{transform:rotate(-50deg)} }
@keyframes ico-wrench{ 0%{transform:rotate(0)} 42%{transform:rotate(12deg)} 68%{transform:rotate(-14deg)} 88%{transform:rotate(4deg)} 100%{transform:rotate(0)} }
@keyframes ico-key{ 0%{transform:rotate(-3deg)} 30%{transform:rotate(-33deg)} 40%{transform:rotate(-25deg)} 50%,70%{transform:rotate(-28deg)} 100%{transform:rotate(0)} }
@keyframes ico-lock{ 0%{transform:rotate(2deg) scale(1.05)} 33%{transform:rotate(4deg) scale(.95)} 66%{transform:rotate(-2deg) scale(1.02)} 100%{transform:rotate(0) scale(1)} }
@keyframes ico-shackle{ 30%,70%{stroke-dasharray:1 1} }
@keyframes ico-needle{ 35%,60%{transform:translate(.5px,3px) rotate(72deg)} }
@keyframes ico-out{ 40%{transform:translateX(-2px)} }
@keyframes ico-scope{ 45%,60%{transform:rotate(-15deg)} }
@keyframes ico-dot{ from{transform:scale(0)} 60%{transform:scale(1.5)} to{transform:scale(1)} }
@keyframes ico-pin-y{ 50%{transform:scaleY(1.5);opacity:.8} }
@keyframes ico-pin-x{ 50%{transform:scaleX(1.5);opacity:.8} }
@keyframes ico-rocket{ 0%{transform:translate(0,0)} 15%{transform:translate(0,-3px)} 30%{transform:translate(-3px,0)} 45%{transform:translate(2px,-2px)} 60%{transform:translate(-2px,-3px)} 75%{transform:translate(1px,-1px)} 90%{transform:translate(-1px,-2px)} 100%{transform:translate(0,0)} }
@keyframes ico-flame{ 50%{transform:scale(1.35)} }
@keyframes ico-pin{ 30%{transform:translateY(-3px)} 55%{transform:translateY(0) scaleY(.92)} 100%{transform:none} }

/* Animations réduites : aucune chorégraphie, l'icône reste lisible. */
@media (prefers-reduced-motion: reduce){
  html:not([data-motion="full"]) .ico.is-play svg, html:not([data-motion="full"]) .ico.is-play svg *{ animation:none !important; }
}
html.motion-reduced .ico.is-play svg, html.motion-reduced .ico.is-play svg *,
html[data-motion="reduce"] .ico.is-play svg, html[data-motion="reduce"] .ico.is-play svg *{ animation:none !important; }
@media print{ .ico{ display:none; } }
