/* @creme-tokens */
/* Poulpy jeune adulte (30 nov. 2026). Les sept personnages (assets/poulpy/adulte) sont des détourages carrés, plus des
   scènes 3:2 avec décor : ils ne sont donc jamais rognés (contain, jamais cover) et toujours posés sur un fond calme.
   Deux fonds seulement, pris dans les jetons du thème :
   - avatar : un rond profond (--t-deep2 vers --t-deep), comme l’icône de l’app (Poulpy sur fond bleu) ;
   - illustration : un blanc qui tourne au bleu très pâle (--t-card vers --k-blue), pour les tuiles et les états vides.
   Dans un rond, le personnage est réduit d’environ 18 % (marge intérieure) : casquette, tentacules et planche restent
   dans le cercle. Les SVG (avatar du chat, conseil de la fiche, profil) le sont déjà par leur géométrie (poulpy.js, FIT). */

/* Repli d’une photo de spot (spotIllustration) et toute image de Poulpy sans règle plus précise : entier, centré, fond profond.
   La marge en % se calcule sur la largeur du conteneur : min(…, 8px) la garde petite pour une vignette dans une large rangée. */
html body img[src*="assets/poulpy/adulte/"]{object-fit:contain!important;object-position:50% 50%!important;box-sizing:border-box;padding:min(5%,8px);
  background:radial-gradient(circle at 50% 38%,var(--t-deep2),var(--t-deep))}

/* Avatars ronds (images). */
html body :is(.tab-poulpy,.mobile-poulpy,.sidebar-poulpy,.chrome-user,.sidebar-user,.profile-poulpy-art,.trip-tip,.exl-empty,.cty-empty,.community-service-state,.sess-empty,.voyage-kicker) img[src*="assets/poulpy/adulte/"],
html body img.trip-dialog-poulpy[src*="assets/poulpy/adulte/"],
html body .chip img.poulpy-mini[src*="assets/poulpy/adulte/"]{border-radius:50%;object-fit:contain!important;
  background:radial-gradient(circle at 50% 38%,var(--t-deep2),var(--t-deep))}
html body .tab-poulpy img[src*="assets/poulpy/adulte/"]{padding:5px}
html body :is(.chrome-user,.sidebar-user,.mobile-poulpy) img[src*="assets/poulpy/adulte/"]{padding:4px}
html body .sidebar-poulpy img[src*="assets/poulpy/adulte/"]{padding:6px}
html body .profile-poulpy-art img[src*="assets/poulpy/adulte/"]{padding:9%}
html body .trip-tip img[src*="assets/poulpy/adulte/"]{padding:7px}
html body img.trip-dialog-poulpy[src*="assets/poulpy/adulte/"]{padding:6px}
html body :is(.exl-empty,.cty-empty) img[src*="assets/poulpy/adulte/"]{padding:10px}
html body .community-service-state img[src*="assets/poulpy/adulte/"]{padding:7px}
html body .sess-empty img[src*="assets/poulpy/adulte/"]{padding:7px}
html body .chip img.poulpy-mini[src*="assets/poulpy/adulte/"]{padding:3px;box-shadow:none}
html body .voyage-kicker img[src*="assets/poulpy/adulte/"]{padding:3px}

/* Avatars ronds (SVG) : l’image est déjà réduite et centrée dans le viewBox ; le fond profond fait le rond. */
html body svg.poulpy-svg:not(#octoHi),html body #spotlightOcto{border-radius:50%;background:radial-gradient(circle at 50% 38%,var(--t-deep2),var(--t-deep));
  box-shadow:0 0 0 1.5px color-mix(in srgb,var(--t-card) 45%,transparent)}
html body .poulpy-spotlight-art:has(#spotlightOcto){background:none}

/* La carte de mise à jour : Poulpy en fête flotte au-dessus de la carte, sans fond (son ombre portée le détache). */
html body .app-update-card img[src*="assets/poulpy/adulte/"]{padding:0;background:none;border-radius:0}

/* Choix de Poulpy : huit tuiles (Selon ton activité, puis les sept profils), deux colonnes sur téléphone, quatre au-delà. */
html body .poulpy-wardrobe{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:20px}
html body .poulpy-choice-art{display:block;position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;
  background:radial-gradient(circle at 50% 42%,var(--t-card) 0 30%,var(--k-blue) 100%)}
html body .poulpy-choice-art img[src*="assets/poulpy/adulte/"]{display:block;width:100%;height:100%;padding:8%;background:none;border-radius:0}
/* « Selon ton activité » : trois Poulpy en groupe (surf devant à gauche, plongée derrière, kitesurf devant à droite). */
html body .poulpy-auto-art img[src*="assets/poulpy/adulte/"]{position:absolute;width:52%;height:52%;padding:0;bottom:9%}
html body .poulpy-auto-art img:nth-child(1){left:-1%;z-index:1}
html body .poulpy-auto-art img:nth-child(2){left:24%;bottom:21%;z-index:0}
html body .poulpy-auto-art img:nth-child(3){right:-1%;z-index:2}
html body .poulpy-choice b{font-size:22px}
html body [data-poulpy-choice][aria-pressed=true] .poulpy-choice-art{background:radial-gradient(circle at 50% 42%,var(--t-card) 0 30%,var(--k-navy) 100%)}
@media (max-width:640px){
  html body .poulpy-wardrobe{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .poulpy-choice b{font-size:21px}
}

/* Bandeaux illustrés (Explorer, Défis) : Poulpy entier sur le même fond clair que les tuiles. */
html body :is(.poulpy-world-note,.poulpy-eco-banner) img[src*="assets/poulpy/adulte/"]{padding:4%;border-radius:0;
  background:radial-gradient(circle at 50% 42%,var(--t-card) 0 30%,var(--k-blue) 100%)}

/* Fiche d’un spot sans photo : Poulpy en haut à gauche du grand visuel, juste au-dessus du nom. Le bloc du bas (nom,
   lieu, niveau, chiffres) mesure environ 240 px quelle que soit la hauteur du visuel : la marge du bas est donc en px.
   À gauche, il ne croise ni le bouton « Chercher des photos » (en haut à droite) ni un nom long. Sur un très petit
   écran (visuel de 300 px), il n’y a pas la place : le fond profond reste seul, propre. */
html body #detailHero.illustrated-hero .hero-photo[src*="assets/poulpy/adulte/"]{object-position:0 100%!important;padding:60px 24px 248px}
/* Sur ordinateur, le visuel est large et le texte tient dans sa moitié gauche : Poulpy prend la moitié droite.
   (Les marges en % se calculent sur la largeur : celles du téléphone videraient ce cadre large.) */
@media (min-width:760px){
  html body #detailHero.illustrated-hero .hero-photo[src*="assets/poulpy/adulte/"]{object-position:50% 50%!important;padding:88px 5% 36px 56%}
}

/* Voyage dont la couverture est un spot sans photo : le bandeau devient un aplat profond (le nom et les dates restent
   lisibles) ; à partir de 760 px, la place permet d’y poser Poulpy entier, à droite, sans toucher au texte. */
html body .trip-banner[style*="assets/poulpy/adulte/"]{background:radial-gradient(circle at 85% 40%,var(--t-deep2),var(--t-deep))}
@media (min-width:760px){
  html body .trip-banner[style*="assets/poulpy/adulte/"]{background:var(--trip-cover) right 5% center/auto 86% no-repeat,radial-gradient(circle at 85% 50%,var(--t-deep2),var(--t-deep))}
}
