/* ==========================================================================
   Accueil : « Quel produit souhaitez-vous réparer ? » (#issues-product), tâche #2412
   Six cartes animées sur les photos détourées (médiathèque) + bandeaux
   Prédiagnostic Express et micro-soudure.
   Maquette validée par Jérémy, reprise à l'identique (sans le badge « Réparé »).

   Portée : TOUTES les règles commencent par #issues-product ; les animations
   portent le préfixe cjpr- (aucune collision avec le reste du site).
   Chargée sur l'accueil seulement (includes/produits-accueil.php).
   ========================================================================== */

/* Remise à zéro locale (la maquette la faisait sur toute la page). */
#issues-product,#issues-product *,#issues-product *::before,#issues-product *::after{box-sizing:border-box}
#issues-product h2,#issues-product h3,#issues-product h4,#issues-product p{margin:0;padding:0}
#issues-product{font-family:Poppins,Arial,sans-serif;color:#140d22;background:#fff}
#issues-product h2,#issues-product h3,#issues-product h4{font-family:inherit;color:inherit;text-transform:none}
#issues-product .c,#issues-product .c:hover,#issues-product .c:focus,#issues-product .c:visited{color:#140d22;text-decoration:none}
#issues-product .bn,#issues-product .bn:hover,#issues-product .bn:focus,#issues-product .bn:visited{color:#140d22;text-decoration:none}
#issues-product .pd,#issues-product .pd:hover,#issues-product .pd:focus,#issues-product .pd:visited{color:#fff}
#issues-product .c:focus-visible,#issues-product .bn:focus-visible{outline:2px solid #8f15ff;outline-offset:3px}
#issues-product img:hover{box-shadow:none!important}

/* --- Maquette ----------------------------------------------------------- */
/* « html body … .pp » : l'ancienne feuille de l'accueil fixait le bas de la section (body.cjx-home #issues-product). */
html body #issues-product.pp{padding:56px 16px 64px}
#issues-product .in{max-width:1320px;margin:0 auto}
#issues-product .head{text-align:center}
#issues-product .eye{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:#f6f1ff;color:#6a0fd1;font-weight:700;font-size:12.5px;letter-spacing:.04em}
#issues-product .eye i{width:7px;height:7px;border-radius:50%;background:#8f15ff;box-shadow:0 0 0 4px rgba(143,21,255,.15)}
#issues-product h2{margin-top:14px;font-weight:800;letter-spacing:-.025em;line-height:1.06;font-size:clamp(28px,3.6vw,48px)}
#issues-product h2 em{font-style:normal;color:#8f15ff}
#issues-product .sub{margin-top:10px;color:#5b5370;font-size:clamp(14px,1.2vw,17px)}
#issues-product .grid{margin-top:34px;display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
#issues-product .c{position:relative;display:flex;flex-direction:column;border-radius:24px;background:#fff;border:1px solid #ece5f8;overflow:hidden;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s;isolation:isolate}
#issues-product .c .ph{position:relative;height:170px;display:grid;place-items:center;background:radial-gradient(70% 70% at 50% 55%,#f6efff 0%,#fbf9ff 55%,#fff 100%);overflow:hidden}
#issues-product .c .ph::after{content:"";position:absolute;left:22%;right:22%;bottom:14px;height:14px;border-radius:50%;background:radial-gradient(closest-side,rgba(70,20,150,.22),transparent);transition:transform .35s,opacity .35s}
#issues-product .c .ph img{position:relative;z-index:1;max-width:72%;max-height:128px;object-fit:contain;transition:transform .5s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 10px 14px rgba(40,10,90,.14))}
#issues-product .c .tx{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
#issues-product .c h3{font-weight:700;font-size:15.5px;line-height:1.25;letter-spacing:-.01em}
#issues-product .c p{margin-top:4px;color:#6b6480;font-size:12.5px;line-height:1.4}
#issues-product .c .go{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:13px;color:#8f15ff}
#issues-product .c .go b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f3ecff;color:#8f15ff;transition:background .3s,color .3s,transform .3s}
#issues-product .c:hover{transform:translateY(-6px);border-color:#d9c2ff;box-shadow:0 26px 50px -28px rgba(90,20,190,.55)}
#issues-product .c:hover .ph img{transform:translateY(-6px) scale(1.06) rotate(-2deg)}
#issues-product .c:hover .ph::after{transform:scale(.8);opacity:.7}
#issues-product .c:hover .go b{background:#8f15ff;color:#fff;transform:translateX(3px)}
#issues-product .c{opacity:0;transform:translateY(18px)}
#issues-product .on .c{opacity:1;transform:none;transition:opacity .6s,transform .6s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s}
#issues-product .on .c:nth-child(2){transition-delay:.06s}#issues-product .on .c:nth-child(3){transition-delay:.12s}#issues-product .on .c:nth-child(4){transition-delay:.18s}#issues-product .on .c:nth-child(5){transition-delay:.24s}#issues-product .on .c:nth-child(6){transition-delay:.3s}
#issues-product .on .c:hover{transform:translateY(-6px);transition-delay:0s}
@media (max-width:1200px){#issues-product .grid{grid-template-columns:repeat(3,1fr)}#issues-product .c{flex-direction:row}#issues-product .c .ph{width:42%;height:auto;min-height:150px;flex:0 0 42%}#issues-product .c .ph img{max-height:110px}#issues-product .c .tx{padding:16px}}
@media (max-width:991px){html body #issues-product.pp{padding:40px 14px 44px}#issues-product .grid{margin-top:24px;gap:10px}#issues-product .c .ph{min-height:128px}#issues-product .c h3{font-size:15px}}
@media (max-width:700px){
 #issues-product .grid{grid-template-columns:1fr 1fr;gap:10px}
 #issues-product .c{flex-direction:column;border-radius:20px}
 #issues-product .c .ph{width:auto;flex:none;height:96px;min-height:0}
 #issues-product .c .ph img{max-height:76px;max-width:70%}
 #issues-product .c .ph::after{bottom:6px;height:10px}
 #issues-product .c .ph{height:88px}
 #issues-product .c .tx{padding:8px 8px 10px 12px;flex-direction:row;align-items:center;gap:6px}
 #issues-product .c h3{font-size:13px;flex:1}
 #issues-product .c p{display:none}
 #issues-product .c .go{margin:0;padding:0;font-size:0;flex:0 0 auto}
 #issues-product .c .go b{width:26px;height:26px;font-size:12px}
 html body #issues-product.pp{padding:30px 12px 34px}
 #issues-product .sub{font-size:13.5px}
 #issues-product .grid{margin-top:18px}
 #issues-product .eye{font-size:11px}
}

/* --- Appareils : flottement, scan violet de diagnostic, halo ------------- */
#issues-product .dv{position:relative;width:86%;z-index:1;transition:transform .5s cubic-bezier(.2,.8,.2,1);animation:cjpr-fl 6s ease-in-out infinite}
#issues-product .dv>img{display:block;width:100%;height:auto;max-width:none!important;max-height:none!important;filter:drop-shadow(0 12px 16px rgba(40,10,90,.18))}
@keyframes cjpr-fl{0%,100%{translate:0 0}50%{translate:0 -4px}}
#issues-product .c .ph{height:190px;place-items:end center;padding-bottom:22px}
#issues-product .c:hover .dv{transform:translateY(-5px) scale(1.05)}
#issues-product .scan{position:absolute;inset:0;z-index:2;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;background:linear-gradient(180deg,rgba(143,21,255,0) 0%,rgba(143,21,255,0) 40%,rgba(190,120,255,.85) 49%,rgba(255,255,255,.95) 50%,rgba(190,120,255,.85) 51%,rgba(143,21,255,0) 60%,rgba(143,21,255,0) 100%);background-size:100% 300%;background-position:0 100%;mix-blend-mode:screen;opacity:0;animation:cjpr-scan 7.2s cubic-bezier(.45,0,.55,1) infinite}
@keyframes cjpr-scan{0%,4%{background-position:0 100%;opacity:0}6%{opacity:1}30%{background-position:0 0;opacity:1}33%,100%{background-position:0 0;opacity:0}}
#issues-product .glow{position:absolute;inset:0;z-index:2;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;background:rgba(143,21,255,.0);animation:cjpr-gw 7.2s infinite}
@keyframes cjpr-gw{0%,30%{background:rgba(143,21,255,0)}34%{background:rgba(190,120,255,.16)}44%,100%{background:rgba(190,120,255,0)}}
#issues-product .c:nth-child(2) .scan,#issues-product .c:nth-child(2) .glow{animation-delay:1.2s}
#issues-product .c:nth-child(3) .scan,#issues-product .c:nth-child(3) .glow{animation-delay:2.4s}
#issues-product .c:nth-child(4) .scan,#issues-product .c:nth-child(4) .glow{animation-delay:3.6s}
#issues-product .c:nth-child(5) .scan,#issues-product .c:nth-child(5) .glow{animation-delay:4.8s}
#issues-product .c:nth-child(6) .scan,#issues-product .c:nth-child(6) .glow{animation-delay:6s}
#issues-product .c:nth-child(2) .dv{animation-delay:-1s}#issues-product .c:nth-child(3) .dv{animation-delay:-2s}#issues-product .c:nth-child(4) .dv{animation-delay:-3s}#issues-product .c:nth-child(5) .dv{animation-delay:-4s}#issues-product .c:nth-child(6) .dv{animation-delay:-5s}
#issues-product .dv.n{width:58%}#issues-product .dv.i{width:80%}#issues-product .dv.w{width:66%}#issues-product .dv.p{width:44%}#issues-product .dv.t{width:76%}

/* --- Bandeaux Prédiagnostic Express et micro-soudure --------------------- */
#issues-product .bn{margin-top:16px;position:relative;display:flex;align-items:center;gap:16px;padding:16px 18px;border-radius:22px;overflow:hidden}
#issues-product .bn .ic{flex:0 0 auto;width:58px;height:58px;border-radius:16px;display:grid;place-items:center}
#issues-product .bn .t{flex:1;min-width:0}
#issues-product .bn h4{font-size:clamp(15px,1.35vw,19px);font-weight:800;letter-spacing:-.01em}
#issues-product .bn h4 em{font-style:normal;color:#8f15ff}
#issues-product .bn .t p{margin-top:2px;font-size:13.5px;line-height:1.4}
#issues-product .bn .bt{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:#fff;color:#4a0fa0;font-weight:700;font-size:14px;box-shadow:0 10px 24px -12px rgba(40,0,90,.6);transition:transform .3s}
#issues-product .bn:hover .bt{transform:translateX(4px)}
#issues-product .pd{background:linear-gradient(100deg,#2c0b5e 0%,#5b13b8 45%,#8f15ff 100%);color:#fff}
#issues-product .pd h4{color:#fff}
#issues-product .pd .t p{color:#e3d2ff}
#issues-product .pd .ic{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
#issues-product .pd .ic svg{width:26px;animation:cjpr-lp 3.2s ease-in-out infinite}
@keyframes cjpr-lp{0%,100%{transform:translate(0,0)}25%{transform:translate(3px,-2px)}50%{transform:translate(-2px,2px)}75%{transform:translate(2px,2px)}}
#issues-product .pd::after{content:"";position:absolute;top:0;left:-40%;width:30%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.18),transparent);transform:skewX(-20deg);animation:cjpr-sh 9s ease-in-out infinite;pointer-events:none}
@keyframes cjpr-sh{0%,70%{left:-40%}100%{left:140%}}
#issues-product .ms{background:linear-gradient(100deg,#fbf8ff,#f3ebff);border:1.5px solid #c9a6ff}
#issues-product .ms .t p{color:#5b5370}
#issues-product .ms .ic{width:84px;background:none}
#issues-product .ms .ic svg{width:84px}
#issues-product .ms .tr2{stroke:#b07cff;stroke-width:1.4;fill:none}
#issues-product .ms .pu{fill:#8f15ff;filter:drop-shadow(0 0 3px #b77bff);offset-rotate:0deg}
#issues-product .ms .chip{animation:cjpr-cg 2.4s ease-in-out infinite}
@keyframes cjpr-cg{0%,100%{filter:drop-shadow(0 0 0 rgba(143,21,255,0))}50%{filter:drop-shadow(0 0 6px rgba(143,21,255,.8))}}
@media (max-width:1200px) and (min-width:701px){#issues-product .c{flex-direction:column}#issues-product .c .ph{width:auto;flex:none;height:180px;min-height:0;padding-bottom:16px}}
@media (max-width:700px){#issues-product .c .ph{height:104px;padding-bottom:12px}#issues-product .dv{width:84%}#issues-product .dv.n{width:56%}#issues-product .dv.w{width:60%}#issues-product .dv.p{width:40%}#issues-product .dv.t{width:74%}
 #issues-product .bn{flex-wrap:wrap;gap:10px 12px;padding:14px;border-radius:18px}#issues-product .bn .ic{width:44px;height:44px;border-radius:12px}#issues-product .ms .ic,#issues-product .ms .ic svg{width:60px}#issues-product .bn .t{flex:1 1 calc(100% - 80px)}#issues-product .bn .t p{font-size:12.5px}#issues-product .bn .bt{flex:1 1 100%;justify-content:center;padding:11px}}

/* Animations coupées si le visiteur les réduit (limité à cette section). */
@media (prefers-reduced-motion:reduce){
 #issues-product *,#issues-product *::before,#issues-product *::after{animation:none!important}
 #issues-product .ms .pu{display:none}
}
