/* Icônes animées des blocs (cartes, étapes, offres). Posées par icones.js.
   Le tracé se dessine à l'arrivée (.vu), la petite animation de chaque pictogramme tourne tant qu'il est visible (.actif). */
.ico { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; color: var(--peche); pointer-events: none;
  background: color-mix(in srgb, currentColor 10%, transparent); border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background .35s, border-color .35s; }
.ico svg { width: 24px; height: 24px; overflow: visible; display: block; }
.ico .m { transform-box: fill-box; transform-origin: center; }
li:hover > .ico, .offre:hover > .ico { transform: translateY(-3px) rotate(-4deg) scale(1.07); background: color-mix(in srgb, currentColor 18%, transparent); border-color: color-mix(in srgb, currentColor 50%, transparent); }

/* placement */
.etude-liste > li { grid-template-columns: minmax(0, 1fr); }
.etude-liste > li > .ico { margin-bottom: 16px; }
.etude-liste > li > .num { position: absolute; top: 22px; right: 24px; z-index: 1; }
.etapes > li > .ico { margin-bottom: 18px; }
.etapes li:has(> .ico) .num { margin-bottom: 14px; }
.offre > .ico { position: absolute; left: clamp(20px, 3vw, 44px); top: calc(clamp(24px, 3vw, 40px) + 44px); }
@media (max-width: 899px) { .offre > .ico { width: 36px; height: 36px; border-radius: 11px; top: calc(clamp(24px, 3vw, 40px) + 40px); } .offre > .ico svg { width: 20px; height: 20px; } }

/* dessin à l'arrivée */
.ico .t { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.ico.vu .t { animation: ico-trace 1.1s cubic-bezier(.3, .7, .2, 1) var(--d, 0s) both; }
@keyframes ico-trace { to { stroke-dashoffset: 0; } }

/* boucles, seulement quand l'icône est visible */
.ico.actif .m { animation-duration: 3s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-delay: var(--d, 0s); }
.ico.actif .pupille { animation-name: i-pupille; animation-duration: 3.4s; }
.ico.actif .aiguille { transform-box: view-box; transform-origin: 12px 17px; animation-name: i-aiguille; animation-duration: 2.6s; }
.ico.actif .loupe { animation-name: i-loupe; animation-duration: 2.4s; }
.ico.actif .coche { animation-name: i-pouls; animation-duration: 1.6s; }
.ico.actif .cible { animation-name: i-cible; animation-duration: 1.8s; }
.ico.actif .lignes { transform-origin: 0 50%; animation-name: i-lignes; animation-duration: 2.2s; }
.ico.actif .drapeau { transform-origin: 0 50%; animation-name: i-drapeau; animation-duration: 1.4s; }
.ico.actif .bulle { animation-name: i-bulle; animation-duration: 1.8s; }
.ico.actif .boussole { animation-name: i-boussole; animation-duration: 3s; }
.ico.actif .ampoule { fill: currentColor; fill-opacity: 0; animation-name: i-ampoule; animation-duration: 1.8s; }
.ico.actif .crayon { transform-origin: 0 100%; animation-name: i-crayon; animation-duration: 1.6s; }
.ico.actif .p1, .ico.actif .p2, .ico.actif .p3 { animation-name: i-point; animation-duration: 1.2s; }
.ico.actif .p2 { animation-delay: .25s; } .ico.actif .p3 { animation-delay: .5s; }
.ico.actif .couche2 { animation-name: i-c2; animation-duration: 2s; }
.ico.actif .couche3 { animation-name: i-c3; animation-duration: 2s; }
.ico.actif .couronne { animation-name: i-couronne; animation-duration: 2s; }
.ico.actif .lune { animation-name: i-lune; animation-duration: 3s; }
.ico.actif .e1, .ico.actif .e2 { animation-name: i-etoile; animation-duration: 1.1s; }
.ico.actif .e2 { animation-delay: .4s; }
.ico.actif .barre { animation-name: i-barre; animation-duration: 1.6s; }
.ico.actif .lecture { animation-name: i-lecture; animation-duration: 1.2s; }
.ico.actif .epingle { animation-name: i-saut; animation-duration: .9s; animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
.ico.actif .ombre { animation-name: i-ombre; animation-duration: .9s; }
.ico.actif .rabat { transform-origin: 50% 0; animation-name: i-rabat; animation-duration: 1.8s; }
.ico.actif .fusee { animation-name: i-fusee; animation-duration: .7s; animation-timing-function: linear; }
.ico.actif .flamme { transform-origin: 50% 0; animation-name: i-flamme; animation-duration: .25s; }
.ico.actif .mobile { animation-name: i-glisse; animation-duration: 2.2s; }
.ico.actif .panier { animation-name: i-glisse; animation-duration: 1.4s; }
.ico.actif .jour { animation-name: i-jour; animation-duration: 2.4s; }
.ico.actif .boucle { animation-name: i-tour; animation-duration: 5s; animation-timing-function: linear; animation-direction: normal; }
.ico.actif .pile1 { animation-name: i-pile; animation-duration: 1.4s; }
.ico.actif .b1, .ico.actif .b2, .ico.actif .b3 { transform-origin: 50% 100%; animation-name: i-barre-h; animation-duration: 1.5s; }
.ico.actif .b2 { animation-delay: .2s; } .ico.actif .b3 { animation-delay: .4s; }
.ico.actif .curseur { animation-name: i-curseur; animation-duration: 2.6s; }
.ico.actif .g1, .ico.actif .g2, .ico.actif .g3, .ico.actif .g4 { animation-name: i-case; animation-duration: 1.3s; }
.ico.actif .g2 { animation-delay: .25s; } .ico.actif .g3 { animation-delay: .5s; } .ico.actif .g4 { animation-delay: .75s; }
.ico.actif .tete { animation-name: i-pouls; animation-duration: 1.6s; }
.ico.actif .eclair { animation-name: i-eclair; animation-duration: .5s; animation-timing-function: steps(2, jump-none); }
.ico.actif .etoile { animation-name: i-tour; animation-duration: 6s; animation-timing-function: linear; animation-direction: normal; }

@keyframes i-pupille { from { transform: translateX(-2.4px); } to { transform: translateX(2.4px); } }
@keyframes i-aiguille { from { transform: rotate(-42deg); } to { transform: rotate(38deg); } }
@keyframes i-loupe { from { transform: translate(-1.4px, -1.4px); } to { transform: translate(1.6px, 1.6px); } }
@keyframes i-pouls { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes i-cible { from { transform: scale(.7); } to { transform: scale(2.1); } }
@keyframes i-lignes { from { transform: scaleX(1); } to { transform: scaleX(.55); } }
@keyframes i-drapeau { from { transform: skewY(-7deg); } to { transform: skewY(7deg); } }
@keyframes i-bulle { from { transform: translateY(1px) scale(.97); } to { transform: translateY(-1.4px) scale(1.05); } }
@keyframes i-boussole { from { transform: rotate(-28deg); } to { transform: rotate(40deg); } }
@keyframes i-ampoule { from { fill-opacity: 0; } to { fill-opacity: .35; } }
@keyframes i-crayon { from { transform: rotate(-9deg); } to { transform: rotate(7deg) translateX(1px); } }
@keyframes i-point { from { transform: scale(1); } to { transform: scale(1.9); } }
@keyframes i-c2 { from { transform: translateY(-.8px); } to { transform: translateY(1.2px); } }
@keyframes i-c3 { from { transform: translateY(-1.6px); } to { transform: translateY(2.4px); } }
@keyframes i-couronne { from { transform: translateY(1px) rotate(-3deg); } to { transform: translateY(-1.6px) rotate(3deg); } }
@keyframes i-lune { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes i-etoile { from { opacity: .15; transform: scale(.6); } to { opacity: 1; transform: scale(1.6); } }
@keyframes i-barre { from { transform: translateX(-1.6px) rotate(-6deg); } to { transform: translateX(1.6px) rotate(6deg); } }
@keyframes i-lecture { from { transform: scale(.85); } to { transform: scale(1.3); } }
@keyframes i-saut { from { transform: translateY(0); } to { transform: translateY(-2.6px); } }
@keyframes i-ombre { from { transform: scaleX(1); opacity: .7; } to { transform: scaleX(.55); opacity: .25; } }
@keyframes i-rabat { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes i-fusee { from { transform: translate(-.5px, .4px); } to { transform: translate(.5px, -.9px); } }
@keyframes i-flamme { from { transform: scaleY(.7); opacity: .6; } to { transform: scaleY(1.5); opacity: 1; } }
@keyframes i-glisse { from { transform: translateX(-1.4px); } to { transform: translateX(1.6px); } }
@keyframes i-jour { from { transform: translateX(0); } to { transform: translateX(6px); } }
@keyframes i-tour { to { transform: rotate(360deg); } }
@keyframes i-pile { from { transform: translateY(0); } to { transform: translateY(-2.2px); } }
@keyframes i-barre-h { from { transform: scaleY(.45); } to { transform: scaleY(1.12); } }
@keyframes i-curseur { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
@keyframes i-case { from { transform: scale(1); } to { transform: scale(.72); } }
@keyframes i-eclair { from { opacity: 1; transform: scale(1); } to { opacity: .45; transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .ico .t { stroke-dashoffset: 0; animation: none !important; }
  .ico .m { animation: none !important; }
  .ico { transition: none; }
}
