/* Accueil client vivant (index.html) : photos de marque en diaporama, apparitions douces des sections,
   catégories animées, bandes « À la une » et « Avis récents » (vraies données seulement, home-lively.js).
   Aucun mouvement automatique quand le téléphone demande moins d'animations (prefers-reduced-motion). */
.yz-phero{position:relative;overflow:hidden;margin:0 0 16px;border-radius:24px;background:#1b1418;color:#fff;height:min(420px,108vw);box-shadow:0 14px 34px rgba(13,13,13,.22);isolation:isolate}
.yz-phero-slides{position:absolute;inset:0}
.yz-slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .9s ease;background:#2a2024 center/cover no-repeat}
.yz-slide.is-active{opacity:1;z-index:1}
/* Aperçu aux couleurs de chaque photo (dégradé CSS : aucun téléchargement, compatible avec la politique de sécurité
   img-src) affiché pendant le chargement de la photo. */
.yz-ph-femme{background-image:linear-gradient(90deg,rgba(106,107,88,.55),rgba(145,124,98,.55)),linear-gradient(180deg,#b6a385,#786d54,#4b4a3e)}
.yz-ph-longues{background-image:linear-gradient(90deg,rgba(128,109,84,.55),rgba(123,103,83,.55)),linear-gradient(180deg,#ac8d67,#7e6752,#4f4b42)}
.yz-ph-homme{background-image:linear-gradient(90deg,rgba(120,96,72,.55),rgba(137,111,84,.55)),linear-gradient(180deg,#b7966a,#7a5b42,#51453e)}
.yz-slide picture{display:block;width:100%;height:100%}
.yz-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%;transform:scale(1.02);transition:transform 7s ease-out}
.yz-slide.is-active img{transform:scale(1.08)}
.yz-slide img:not([src]):not([srcset]){visibility:hidden}
/* Voile dégradé : texte blanc lisible (contraste AA) sur les deux photos, sans cacher les visages. */
.yz-phero::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.16) 0,rgba(0,0,0,0) 24%,rgba(12,8,10,.3) 40%,rgba(12,8,10,.8) 58%,rgba(12,8,10,.94) 100%)}
.yz-phero-text{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:18px 18px 44px}
.yz-phero-eyebrow{margin:0 0 6px;font:800 11.5px system-ui,sans-serif;letter-spacing:1.3px;text-transform:uppercase;color:#ffc2d6}
.yz-phero h2{margin:0;color:#fff;font:700 27px/1.12 'Playfair Display',Georgia,serif;text-shadow:0 2px 12px rgba(0,0,0,.35);max-width:20ch}
.yz-phero-sub{margin:8px 0 14px;font:500 14.5px/1.4 'DM Sans',system-ui,sans-serif;color:#f4eef1;max-width:38ch}
.yz-phero-cta{display:flex;flex-wrap:wrap;gap:8px}
.yz-phero-cta a{flex:1 1 130px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 18px;border-radius:999px;font:800 15px system-ui,sans-serif;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}
.yz-phero-go{background:#ff4f8b;color:#fff;box-shadow:0 8px 20px rgba(255,79,139,.4)}
.yz-phero-pro{background:rgba(255,255,255,.14);color:#fff;border:1.5px solid rgba(255,255,255,.7);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.yz-phero-cta a:active{transform:scale(.97)}
.yz-phero-cta a:focus-visible,.yz-phero-ui button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.yz-phero-stats{margin:12px 0 0;font:700 13px system-ui,sans-serif;color:#e9fbe9;display:flex;flex-wrap:wrap;gap:6px 14px}
.yz-phero-stats span{display:inline-flex;gap:5px;align-items:center}.yz-phero-stats b{font-size:15px;color:#fff}
.yz-phero-ui{position:absolute;left:18px;right:14px;bottom:12px;z-index:4;display:flex;align-items:center;gap:10px}
.yz-phero-dots{display:flex;gap:4px}
.yz-phero-dots button{width:28px;height:24px;min-height:0;padding:0;border:0;background:none;cursor:pointer;position:relative}
.yz-phero-dots button::before{content:"";position:absolute;left:4px;right:4px;top:10px;height:4px;border-radius:4px;background:rgba(255,255,255,.45);transition:background-color .3s}
.yz-phero-dots button.is-active::before{background:#fff}
.yz-phero-pause{width:30px;height:30px;min-height:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font:700 10px system-ui,sans-serif;cursor:pointer}
.yz-phero-note{margin-left:auto;font:500 10.5px system-ui,sans-serif;color:rgba(255,255,255,.78)}
@media (hover:hover){.yz-phero-go:hover{box-shadow:0 10px 26px rgba(255,79,139,.55);transform:translateY(-1px)}.yz-phero-pro:hover{background:rgba(255,255,255,.24)}}
@media (min-width:700px){
  .yz-phero{height:440px}
  .yz-phero::after{background:linear-gradient(180deg,rgba(0,0,0,.12) 0,rgba(0,0,0,0) 30%,rgba(12,8,10,.35) 55%,rgba(12,8,10,.9) 100%),linear-gradient(90deg,rgba(12,8,10,.5) 0,rgba(12,8,10,0) 60%)}
  .yz-phero-text{padding:24px 26px 50px;right:auto;max-width:56%}
  .yz-phero h2{font-size:32px;max-width:16ch}
  .yz-phero-cta a{flex:0 1 auto}
  .yz-phero-ui{left:26px;right:20px}
}

/* Client connecté : diaporama plus compact sous sa carte personnelle. */
.yz-phero.yz-phero-compact{height:min(330px,86vw)}
.yz-phero-compact .yz-phero-sub,.yz-phero-compact .yz-phero-pro{display:none}
.yz-phero-compact .yz-phero-cta a{flex:0 1 auto}
.yz-phero-compact h2{margin-bottom:12px}
@media (min-width:700px){.yz-phero.yz-phero-compact{height:340px}}

/* Apparition douce des sections (ajoutée par le script : sans script, tout reste visible). */
.yz-reveal{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1)}
.yz-reveal.yz-in{opacity:1;transform:none}
@keyframes yzPop{0%{opacity:0;transform:translateY(10px) scale(.9)}100%{opacity:1;transform:none}}
.yz-in .categories .category{animation:yzPop .45s cubic-bezier(.2,.8,.3,1.2) both;animation-delay:calc(var(--yz-i,0) * 45ms)}

/* Micro-interactions : catégories, cartes, raccourcis. */
#homeScreen .category{transition:color .15s ease}
#homeScreen .category .category-icon{transition:transform .2s cubic-bezier(.2,.8,.3,1.4),box-shadow .2s ease}
#homeScreen .category:active .category-icon{transform:scale(.9)}
#homeScreen .category.selected .category-icon{transform:translateY(-2px)}
#homeScreen .join-pro,#homeScreen .ai-style-entry,#homeScreen .professional-card,.yz-strip-card,.yz-review{transition:transform .18s ease,box-shadow .18s ease}
#homeScreen .join-pro:active,#homeScreen .ai-style-entry:active,#homeScreen .professional-card:active,.yz-strip-card:active{transform:scale(.985)}
@media (hover:hover){
  #homeScreen .category:hover .category-icon{transform:translateY(-4px) rotate(-5deg);box-shadow:0 8px 18px rgba(255,79,139,.22)}
  #homeScreen .join-pro:hover,#homeScreen .ai-style-entry:hover,#homeScreen .professional-card:hover,.yz-strip-card:hover,.yz-review:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(27,23,20,.1)}
}

/* Bandes de vraies données. */
.yz-strip{margin:22px 0 6px}
.yz-strip-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 10px}
.yz-strip-head h2{margin:0;font-size:19px}
.yz-strip-head a{font:700 13px system-ui,sans-serif;color:#111;text-decoration:none;white-space:nowrap}
.yz-strip-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px;margin:0 -2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.yz-strip-row::-webkit-scrollbar{display:none}
.yz-strip-card{flex:0 0 min(62%,220px);scroll-snap-align:start;border:1px solid #eee5ea;border-radius:18px;background:#fff;overflow:hidden;cursor:pointer;text-align:left;padding:0;font:inherit;color:#111}
.yz-strip-img{display:grid;place-items:center;height:118px;background:linear-gradient(135deg,#ffe4ee,#e3f5e8);font-size:34px}
.yz-strip-img img{width:100%;height:100%;object-fit:cover;display:block}
.yz-strip-body{padding:10px 12px 12px}
.yz-strip-body small{display:block;font:800 10.5px system-ui,sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#a3194f}
.yz-strip-body b{display:block;margin:3px 0 2px;font:800 15px/1.25 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yz-strip-body span{display:block;font:500 12.5px system-ui,sans-serif;color:#5d5561}
.yz-review{flex:0 0 min(80%,290px);scroll-snap-align:start;margin:0;padding:14px;border:1px solid #f3dbe5;border-radius:18px;background:#fff7fa;color:#2a2430}
.yz-review-stars{color:#b5470b;letter-spacing:1px;font-size:14px}
.yz-review blockquote{margin:6px 0 8px;font:400 14px/1.45 'DM Sans',system-ui,sans-serif;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.yz-review figcaption{font:600 12px system-ui,sans-serif;color:#5d5561}
@media (min-width:700px){.yz-strip-card{flex-basis:210px}.yz-review{flex-basis:300px}}

.yz-strip-body span span{display:inline}
.yz-strip-head h2{position:relative;padding-left:12px}
.yz-strip-head h2::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:4px;background:linear-gradient(#ff4f8b,#34c26b)}

@media (prefers-reduced-motion:reduce){
  .yz-slide,.yz-slide img,.yz-reveal,#homeScreen .category .category-icon,.yz-phero-cta a{transition:none!important}
  .yz-slide img,.yz-slide.is-active img{transform:none!important}
  .yz-reveal{opacity:1!important;transform:none!important}
  .yz-in .categories .category{animation:none!important}
}
