/* Cosmetiques de l'annuaire : themes de carte (classement, A la une, fiche, stand de vitrine) et etiquettes
   (plaque derriere le nom). Catalogue : core/Cosmetics.php. Charge par les pages de l'annuaire et par le
   tableau de bord (apercus de l'editeur). Effets : transform et opacity seulement, arretes si l'utilisateur
   demande moins d'animations. L'etiquette n'est jamais un bloc positionne : le lien qui couvre toute la
   carte (a::after) doit continuer de s'etendre a la ligne entiere. */

@property --cosm-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes cosm-tombe { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--pas, 140px), 0); } }
@keyframes cosm-monte { 0% { transform: translate3d(0, 0, 0); opacity: var(--o1, .5); } 50% { opacity: var(--o2, .85); } 100% { transform: translate3d(0, calc(var(--pas, 140px) * -1), 0); opacity: var(--o1, .5); } }
@keyframes cosm-derive { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--pas, 160px), var(--pas, 160px), 0); } }
@keyframes cosm-balaye { 0%, 12% { transform: translateX(0); } 62%, 100% { transform: translateX(420%); } }
@keyframes cosm-aurore { from { transform: translate3d(-8%, 2%, 0) skewX(-8deg); } to { transform: translate3d(8%, -3%, 0) skewX(8deg); } }
@keyframes cosm-scintille { from { opacity: .35; } to { opacity: .9; } }
@keyframes cosm-pouls { from { opacity: .55; } to { opacity: 1; } }
@keyframes cosm-tourne { to { --cosm-angle: 360deg; } }
@keyframes cosm-anneau { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 100% 50%; } }
@keyframes cosm-e-glisse { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------------------------------------------------------------- socle */
.cosm-carte { position: relative; isolation: isolate; }
.cosm-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.cosm-fx::before, .cosm-fx::after { content: ''; position: absolute; pointer-events: none; }
/* Texte clair sur les themes sombres (jetons du site redefinis dans la carte) */
.cosm-sombre { --t1: #F8FAFC; --t2: rgba(248, 250, 252, .84); --t3: rgba(248, 250, 252, .64); --t4: rgba(248, 250, 252, .5); --s1: rgba(255, 255, 255, .07); --s2: rgba(255, 255, 255, .1); --s3: rgba(255, 255, 255, .12); --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .16); --line-3: rgba(255, 255, 255, .3); color: var(--t1); }
.cosm-sombre .an2-fond ~ .an2-actions .an2-vote { color: #18181B; }
/* Bouton principal : blanc sur les themes sombres (l'encre du site s'y perdrait) */
.cosm-sombre .an2-actions .an-jouer, .cosm-sombre .an2-entete-boutons .btn-p { background: #FFFFFF; border-color: #FFFFFF; color: #18181B; }
.cosm-sombre .an2-actions .an-jouer:hover, .cosm-sombre .an2-entete-boutons .btn-p:hover { background: #E4E4E7; border-color: #E4E4E7; }

/* Classement */
.an2-liste .an-ligne.cosm-carte { background: var(--cosm-fond); border: 1px solid var(--cosm-bord); animation: none; box-shadow: 0 12px 30px -22px var(--cosm-ombre, rgba(9, 9, 11, .4)); }
.an2-liste .an-ligne.cosm-carte:hover { border-color: var(--cosm-bord); box-shadow: 0 16px 36px -20px var(--cosm-ombre, rgba(9, 9, 11, .45)); }
.an2-liste .an-ligne.cosm-carte.an2-premium { border: 2px solid transparent; background: var(--cosm-fond) padding-box, var(--an-maille) border-box; background-size: 100% 100%, 300% 100%; animation: cosm-anneau 7s ease-in-out infinite alternate; }
/* A la une : les effets passent sur l'image, sous le nom */
.an2 .an-une-carte.cosm-carte { border: 2px solid var(--cosm-bord); }
.an2 .an-une-carte.cosm-carte .cosm-fx { z-index: 1; }
.an2 .an-une-carte.cosm-carte .an-une-bande { z-index: 2; }
.an2 .an-une-carte.cosm-carte::after { background: linear-gradient(to top, var(--cosm-voile, rgba(16, 13, 30, .94)) 0%, rgba(16, 13, 30, .55) 36%, rgba(16, 13, 30, 0) 68%); }
/* Fiche : l'en-tete sous la banniere */
.an2-fiche-haut.cosm-carte { background: var(--cosm-fond); border-color: var(--cosm-bord); }
.an2-fiche-haut.cosm-sombre .an2-logo { box-shadow: 0 0 0 5px var(--cosm-base, #18181B), 0 8px 24px -10px rgba(0, 0, 0, .6); }
/* Apercu miniature (editeur, boutique) */
.cosm-mini { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; height: 72px; padding: 0 12px; border-radius: 12px; overflow: hidden; background: var(--cosm-fond, #FFFFFF); border: 1px solid var(--cosm-bord, #E4E4E7); color: #18181B; }
.cosm-mini.cosm-sombre { color: #F8FAFC; }
.cosm-mini-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; background: currentColor; opacity: .16; }
.cosm-mini-lignes { display: grid; gap: 6px; flex: 1; min-width: 0; }
.cosm-mini-lignes i { display: block; height: 7px; border-radius: 4px; background: currentColor; opacity: .55; width: 70%; }
.cosm-mini-lignes i + i { opacity: .25; width: 46%; }

/* ---------------------------------------------------------------- themes */
/* Prisme (Pro) : liseré conique qui tourne */
.cosm-c-prisme { --cosm-fond: linear-gradient(#FFFFFF, #FFFFFF); --cosm-bord: #D9D4F0; --cosm-ombre: rgba(104, 135, 178, .45); }
.an2-liste .an-ligne.cosm-c-prisme, .an2-liste .an-ligne.cosm-c-prisme.an2-premium, .cosm-mini.cosm-c-prisme, .an2-fiche-haut.cosm-c-prisme, .an2 .an-une-carte.cosm-c-prisme { border: 2px solid transparent; background: linear-gradient(var(--cosm-dedans, #FFFFFF), var(--cosm-dedans, #FFFFFF)) padding-box, conic-gradient(from var(--cosm-angle), #6887B2, #B56F9D, #E3A9CF, #9CC3E6, #8A6FC7, #6887B2) border-box; background-size: auto; animation: cosm-tourne 6s linear infinite; }
.an2 .an-une-carte.cosm-c-prisme { --cosm-dedans: #18181B; }
.cosm-c-prisme .cosm-fx::after { top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(100deg, transparent, rgba(227, 169, 207, .16) 40%, rgba(156, 195, 230, .2) 60%, transparent); animation: cosm-balaye 8s ease-in-out infinite; }

/* Aurore boreale (Reseau) */
.cosm-c-aurore { --cosm-fond: linear-gradient(180deg, #0B1020 0%, #131B36 100%); --cosm-bord: #26345C; --cosm-base: #0F1528; --cosm-ombre: rgba(38, 52, 92, .8); --cosm-voile: rgba(9, 13, 28, .94); }
.cosm-c-aurore .cosm-fx::before { inset: -40% -25% 25% -25%; background: radial-gradient(60% 50% at 28% 62%, rgba(63, 167, 160, .55), transparent 70%), radial-gradient(50% 45% at 62% 48%, rgba(138, 111, 199, .5), transparent 70%), radial-gradient(42% 40% at 86% 66%, rgba(104, 135, 178, .45), transparent 70%); filter: blur(16px); animation: cosm-aurore 14s ease-in-out infinite alternate; }
.cosm-c-aurore .cosm-fx::after { inset: 0; background-image: radial-gradient(circle at 12px 18px, rgba(255, 255, 255, .9) .8px, transparent 1.3px), radial-gradient(circle at 70px 44px, rgba(255, 255, 255, .7) .6px, transparent 1.1px), radial-gradient(circle at 118px 12px, rgba(255, 255, 255, .8) .7px, transparent 1.2px), radial-gradient(circle at 40px 70px, rgba(255, 255, 255, .6) .6px, transparent 1px); background-size: 140px 84px; animation: cosm-scintille 3.6s ease-in-out infinite alternate; }

/* Givre */
.cosm-c-givre { --cosm-fond: linear-gradient(135deg, #F5FAFF 0%, #E2EEF9 55%, #F1F7FD 100%); --cosm-bord: #BBD3EC; --cosm-ombre: rgba(62, 110, 158, .4); --cosm-voile: rgba(14, 30, 52, .9); }
.cosm-c-givre .cosm-fx::before { inset: -140px 0 0 0; --pas: 140px; background-image: radial-gradient(circle at 18px 24px, #FFFFFF 1.6px, transparent 2.3px), radial-gradient(circle at 74px 62px, rgba(255, 255, 255, .85) 1.2px, transparent 1.9px), radial-gradient(circle at 112px 110px, #FFFFFF 2px, transparent 2.7px), radial-gradient(circle at 46px 98px, rgba(255, 255, 255, .75) 1px, transparent 1.6px); background-size: 140px 140px; filter: drop-shadow(0 0 1px rgba(62, 110, 158, .35)); animation: cosm-tombe 11s linear infinite; }
.cosm-c-givre .cosm-fx::after { inset: -220px 0 0 0; --pas: 220px; background-image: radial-gradient(circle at 60px 40px, rgba(255, 255, 255, .9) 2.6px, transparent 3.4px), radial-gradient(circle at 170px 150px, rgba(255, 255, 255, .8) 2.2px, transparent 3px); background-size: 220px 220px; filter: blur(.6px) drop-shadow(0 0 1px rgba(62, 110, 158, .3)); animation: cosm-tombe 17s linear infinite; }

/* Cerisier */
.cosm-c-cerisier { --cosm-fond: linear-gradient(125deg, #FFF8FB 0%, #FBE7F1 52%, #F5EEFA 100%); --cosm-bord: #EDC5D9; --cosm-ombre: rgba(181, 111, 157, .4); --cosm-voile: rgba(48, 16, 34, .9); }
.cosm-c-cerisier .cosm-fx::before { inset: -160px 0 0 -160px; --pas: 160px; background-image: radial-gradient(ellipse 5px 3px at 24px 30px, #F2A7C9 60%, transparent 72%), radial-gradient(ellipse 4px 2.6px at 96px 70px, #E89BBE 60%, transparent 72%), radial-gradient(ellipse 5.5px 3.2px at 140px 128px, #F7C3DA 60%, transparent 72%), radial-gradient(ellipse 3.6px 2.2px at 58px 120px, #EFA3C6 60%, transparent 72%); background-size: 160px 160px; animation: cosm-derive 16s linear infinite; }
.cosm-c-cerisier .cosm-fx::after { inset: -240px 0 0 -240px; --pas: 240px; background-image: radial-gradient(ellipse 6px 3.6px at 70px 50px, rgba(232, 155, 190, .85) 60%, transparent 72%), radial-gradient(ellipse 5px 3px at 190px 170px, rgba(242, 167, 201, .8) 60%, transparent 72%); background-size: 240px 240px; filter: blur(.5px); animation: cosm-derive 23s linear infinite; }

/* Forge */
.cosm-c-forge { --cosm-fond: radial-gradient(130% 170% at 0% 115%, #5B230D 0%, #2A1610 42%, #141012 78%); --cosm-bord: #4A2414; --cosm-base: #1C1210; --cosm-ombre: rgba(194, 65, 12, .45); --cosm-voile: rgba(28, 12, 6, .94); }
.cosm-c-forge .cosm-fx::before { inset: 0 0 -140px 0; --pas: 140px; --o1: .55; --o2: 1; background-image: radial-gradient(circle at 20px 120px, #FDBA74 1.4px, transparent 2.4px), radial-gradient(circle at 64px 80px, #FB923C 1.1px, transparent 2px), radial-gradient(circle at 104px 128px, #FED7AA 1px, transparent 1.8px), radial-gradient(circle at 130px 40px, #F97316 1.3px, transparent 2.2px), radial-gradient(circle at 44px 20px, #FDBA74 .9px, transparent 1.6px); background-size: 140px 140px; filter: drop-shadow(0 0 3px rgba(249, 115, 22, .9)); animation: cosm-monte 6s linear infinite; }
.cosm-c-forge .cosm-fx::after { inset: 0; background: radial-gradient(70% 90% at 0% 100%, rgba(234, 88, 12, .32), transparent 70%); animation: cosm-pouls 3.2s ease-in-out infinite alternate; }

/* Obsidienne */
.cosm-c-obsidienne { --cosm-fond: linear-gradient(135deg, #1A1424 0%, #251A38 46%, #120F19 100%); --cosm-bord: #3D2D5A; --cosm-base: #17121F; --cosm-ombre: rgba(91, 62, 153, .6); --cosm-voile: rgba(14, 10, 22, .94); }
.cosm-c-obsidienne .cosm-fx::before { inset: 0; background-image: radial-gradient(circle at 30px 20px, rgba(196, 170, 255, .7) .8px, transparent 1.3px), radial-gradient(circle at 96px 58px, rgba(159, 122, 234, .6) .7px, transparent 1.2px), radial-gradient(circle at 150px 30px, rgba(196, 170, 255, .55) .6px, transparent 1.1px); background-size: 180px 80px; animation: cosm-scintille 4.4s ease-in-out infinite alternate; }
.cosm-c-obsidienne .cosm-fx::after { top: 0; bottom: 0; left: -50%; width: 50%; background: linear-gradient(105deg, transparent 0%, rgba(159, 122, 234, .14) 38%, rgba(255, 255, 255, .2) 50%, rgba(159, 122, 234, .12) 62%, transparent 100%); animation: cosm-balaye 7s ease-in-out infinite; }

/* Enchantement */
.cosm-c-enchantement { --cosm-fond: radial-gradient(120% 150% at 15% 0%, #2D2766 0%, #17153A 52%, #0F0E22 100%); --cosm-bord: #3E3690; --cosm-base: #15132B; --cosm-ombre: rgba(75, 63, 160, .65); --cosm-voile: rgba(12, 10, 30, .94); }
.cosm-c-enchantement .cosm-fx::before { inset: 0 0 -180px 0; --pas: 180px; --o1: .35; --o2: .8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%23C4B5FD' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 18v14M16 22h12' opacity='.9'/%3E%3Cpath d='M70 40l8 12M78 40l-8 12' opacity='.55'/%3E%3Cpath d='M128 22c7 0 7 7 0 7s-7 7 0 7' opacity='.8'/%3E%3Cpath d='M40 84h10v10h-10zM45 80v4' opacity='.5'/%3E%3Cpath d='M104 92l6-10 6 10M106 88h8' opacity='.85'/%3E%3Cpath d='M150 70v12l-6 4' opacity='.6'/%3E%3Cpath d='M18 136l6 6 6-6M24 142v6' opacity='.7'/%3E%3Cpath d='M80 140a6 6 0 1 0 12 0M86 134v-4' opacity='.6'/%3E%3Cpath d='M140 128h10M145 124v14l-5 4' opacity='.8'/%3E%3C/svg%3E"); background-size: 180px 180px; filter: drop-shadow(0 0 3px rgba(196, 181, 253, .8)); animation: cosm-monte 16s linear infinite; }
.cosm-c-enchantement .cosm-fx::after { inset: 0; background: radial-gradient(60% 120% at 100% 50%, rgba(139, 92, 246, .22), transparent 70%); animation: cosm-pouls 4s ease-in-out infinite alternate; }

/* ---------------------------------------------------------------- etiquettes */
.cosm-etiq { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 12px 2px; margin: -3px 0; border-radius: 9px; background: var(--e-fond); background-size: var(--e-taille, 100% 100%); box-shadow: inset 0 0 0 1px var(--e-bord, rgba(0, 0, 0, .08)), 0 3px 10px -5px rgba(0, 0, 0, .35); animation: var(--e-anim, none); }
/* Plus fort que les couleurs du bandeau « A la une » (texte blanc) et des titres du classement */
.cosm-etiq .cosm-etiq-nom, .cosm-etiq .cosm-etiq-nom a, .an2 .an-une-bande .cosm-etiq .cosm-etiq-nom a { color: var(--e-texte); text-shadow: var(--e-ombre, none); }
.cosm-etiq-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1 .cosm-etiq, .an2-entete-texte h1 .cosm-etiq { padding: 4px 18px; margin: 0; border-radius: 16px; }
.cosm-e-argent { --e-fond: linear-gradient(110deg, #E4E7EB 0%, #FAFAFB 22%, #D3D8DF 40%, #F5F6F8 60%, #C9CED6 100%); --e-taille: 240% 100%; --e-anim: cosm-e-glisse 5s ease-in-out infinite alternate; --e-texte: #27272A; --e-bord: rgba(113, 113, 122, .35); }
.cosm-e-reseau { --e-fond: linear-gradient(115deg, #496FA1, #82517A, #B56F9D, #C98AB4, #6887B2, #496FA1); --e-taille: 300% 100%; --e-anim: cosm-e-glisse 6s ease-in-out infinite alternate; --e-texte: #FFFFFF; --e-bord: rgba(255, 255, 255, .3); --e-ombre: 0 1px 2px rgba(0, 0, 0, .35); }
.cosm-e-or { --e-fond: linear-gradient(110deg, #B08A36 0%, #E9C76B 18%, #FFF1BF 27%, #D6AE57 40%, #B08A36 62%, #EBCB76 82%, #B89035 100%); --e-taille: 260% 100%; --e-anim: cosm-e-glisse 4.5s ease-in-out infinite alternate; --e-texte: #2A1D03; --e-bord: rgba(122, 90, 20, .45); }
.cosm-e-braise { --e-fond: radial-gradient(circle at 10px 22px, #FDBA74 1px, transparent 1.7px), radial-gradient(circle at 28px 10px, #FB923C 1.2px, transparent 1.9px), radial-gradient(circle at 42px 26px, #FED7AA .8px, transparent 1.4px), linear-gradient(180deg, #24150F 0%, #4A1E0C 100%); --e-taille: 48px 30px, 48px 30px, 48px 30px, 100% 100%; --e-anim: cosm-e-braise 2.6s linear infinite; --e-texte: #FFE9D6; --e-bord: rgba(234, 88, 12, .45); --e-ombre: 0 0 6px rgba(249, 115, 22, .6); }
@keyframes cosm-e-braise { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 -30px, 0 -30px, 0 -30px, 0 0; } }
.cosm-e-givre { --e-fond: radial-gradient(circle at 8px 8px, #FFFFFF 1px, transparent 1.6px), radial-gradient(circle at 30px 20px, rgba(255, 255, 255, .9) .8px, transparent 1.4px), linear-gradient(135deg, #F3F9FF 0%, #D2E6F7 55%, #EEF6FD 100%); --e-taille: 40px 28px, 40px 28px, 100% 100%; --e-anim: cosm-e-givre 6s linear infinite; --e-texte: #0F2A44; --e-bord: rgba(62, 110, 158, .35); }
@keyframes cosm-e-givre { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 28px, 0 28px, 0 0; } }
.cosm-e-petales { --e-fond: radial-gradient(ellipse 4px 2.5px at 10px 8px, #F2A7C9 60%, transparent 72%), radial-gradient(ellipse 3.4px 2.2px at 34px 22px, #E89BBE 60%, transparent 72%), linear-gradient(120deg, #FFF3F8 0%, #F9DDEA 100%); --e-taille: 46px 30px, 46px 30px, 100% 100%; --e-anim: cosm-e-petales 5s linear infinite; --e-texte: #6B1F45; --e-bord: rgba(181, 111, 157, .35); }
@keyframes cosm-e-petales { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 46px 30px, 46px 30px, 0 0; } }
.cosm-e-pixel { --e-fond: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='3' height='3' fill='%235B9440'/%3E%3Crect x='3' y='0' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='6' y='0' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='9' y='0' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='12' y='0' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='15' y='0' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='18' y='0' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='21' y='0' width='3' height='3' fill='%235B9440'/%3E%3Crect x='24' y='0' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='27' y='0' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='30' y='0' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='33' y='0' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='36' y='0' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='39' y='0' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='42' y='0' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='45' y='0' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='0' y='3' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='3' y='3' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='6' y='3' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='9' y='3' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='12' y='3' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='15' y='3' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='18' y='3' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='21' y='3' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='24' y='3' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='27' y='3' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='30' y='3' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='33' y='3' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='36' y='3' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='39' y='3' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='42' y='3' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='45' y='3' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='0' y='6' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='3' y='6' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='6' y='6' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='9' y='6' width='3' height='3' fill='%235B9440'/%3E%3Crect x='12' y='6' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='15' y='6' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='18' y='6' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='21' y='6' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='24' y='6' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='27' y='6' width='3' height='3' fill='%235B9440'/%3E%3Crect x='30' y='6' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='33' y='6' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='36' y='6' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='39' y='6' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='42' y='6' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='45' y='6' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='0' y='9' width='3' height='3' fill='%235B9440'/%3E%3Crect x='3' y='9' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='6' y='9' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='9' y='9' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='12' y='9' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='15' y='9' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='18' y='9' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='21' y='9' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='24' y='9' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='27' y='9' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='30' y='9' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='33' y='9' width='3' height='3' fill='%235B9440'/%3E%3Crect x='36' y='9' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='39' y='9' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='42' y='9' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='45' y='9' width='3' height='3' fill='%235B9440'/%3E%3Crect x='0' y='12' width='3' height='3' fill='%235B9440'/%3E%3Crect x='3' y='12' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='6' y='12' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='9' y='12' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='12' y='12' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='15' y='12' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='18' y='12' width='3' height='3' fill='%235B9440'/%3E%3Crect x='21' y='12' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='24' y='12' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='27' y='12' width='3' height='3' fill='%235B9440'/%3E%3Crect x='30' y='12' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='33' y='12' width='3' height='3' fill='%235B9440'/%3E%3Crect x='36' y='12' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='39' y='12' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='42' y='12' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='45' y='12' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='0' y='15' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='3' y='15' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='6' y='15' width='3' height='3' fill='%235B9440'/%3E%3Crect x='9' y='15' width='3' height='3' fill='%234C7F33'/%3E%3Crect x='12' y='15' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='15' y='15' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='18' y='15' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='21' y='15' width='3' height='3' fill='%233F6B2A'/%3E%3Crect x='24' y='15' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='27' y='15' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='30' y='15' width='3' height='3' fill='%235B9440'/%3E%3Crect x='33' y='15' width='3' height='3' fill='%235B9440'/%3E%3Crect x='36' y='15' width='3' height='3' fill='%235B9440'/%3E%3Crect x='39' y='15' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='42' y='15' width='3' height='3' fill='%236AA84F'/%3E%3Crect x='45' y='15' width='3' height='3' fill='%2378B65A'/%3E%3Crect x='0' y='18' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='3' y='18' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='6' y='18' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='9' y='18' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='12' y='18' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='15' y='18' width='3' height='3' fill='%236E4423'/%3E%3Crect x='18' y='18' width='3' height='3' fill='%236E4423'/%3E%3Crect x='21' y='18' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='24' y='18' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='27' y='18' width='3' height='3' fill='%236E4423'/%3E%3Crect x='30' y='18' width='3' height='3' fill='%236E4423'/%3E%3Crect x='33' y='18' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='36' y='18' width='3' height='3' fill='%236E4423'/%3E%3Crect x='39' y='18' width='3' height='3' fill='%236E4423'/%3E%3Crect x='42' y='18' width='3' height='3' fill='%236E4423'/%3E%3Crect x='45' y='18' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='0' y='21' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='3' y='21' width='3' height='3' fill='%236E4423'/%3E%3Crect x='6' y='21' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='9' y='21' width='3' height='3' fill='%236E4423'/%3E%3Crect x='12' y='21' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='15' y='21' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='18' y='21' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='21' y='21' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='24' y='21' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='27' y='21' width='3' height='3' fill='%236E4423'/%3E%3Crect x='30' y='21' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='33' y='21' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='36' y='21' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='39' y='21' width='3' height='3' fill='%237A4E2A'/%3E%3Crect x='42' y='21' width='3' height='3' fill='%238B5A2B'/%3E%3Crect x='45' y='21' width='3' height='3' fill='%237A4E2A'/%3E%3C/svg%3E"); --e-taille: 300% 100%, 48px 24px; --e-anim: cosm-e-pixel 4s ease-in-out infinite; --e-texte: #FFFFFF; --e-bord: rgba(30, 50, 20, .5); --e-ombre: 0 1px 0 rgba(0, 0, 0, .7), 0 0 4px rgba(0, 0, 0, .45); image-rendering: pixelated; }
@keyframes cosm-e-pixel { 0%, 20% { background-position: 120% 0, 0 0; } 70%, 100% { background-position: -40% 0, 0 0; } }
.cosm-e-encre { --e-fond: radial-gradient(40% 90% at 20% 50%, rgba(155, 120, 230, .55), transparent 70%), radial-gradient(36% 80% at 80% 40%, rgba(91, 62, 153, .6), transparent 70%), linear-gradient(135deg, #14111C, #221A33); --e-taille: 200% 100%, 200% 100%, 100% 100%; --e-anim: cosm-e-encre 7s ease-in-out infinite alternate; --e-texte: #F3EEFF; --e-bord: rgba(155, 120, 230, .35); }
/* Pack End : degrade du vide (sombre -> violet) + illustration vectorielle a droite, fondue vers la gauche */
.cosm-e-end { --e-fond: url("/public/site/cosmetiques/end/plaque-end.svg?v=20261117") right center no-repeat, radial-gradient(70% 140% at 100% 50%, rgba(194, 40, 180, .35), transparent 70%), linear-gradient(90deg, #0F0819 0%, #1E0F33 45%, #3B1766 100%); --e-taille: auto 100%, 100% 100%, 100% 100%; --e-texte: #F6EEFF; --e-bord: rgba(179, 108, 240, .5); --e-ombre: 0 1px 2px rgba(0, 0, 0, .6), 0 0 10px rgba(179, 108, 240, .45); padding-right: 2.6em; box-shadow: inset 0 0 0 1px var(--e-bord), inset 0 1px 0 rgba(255, 230, 255, .18), 0 6px 18px -8px rgba(91, 35, 160, .7); }
h1 .cosm-etiq.cosm-e-end, .an2-entete-texte h1 .cosm-etiq.cosm-e-end { padding-right: 2.3em; margin: 0; }
.cosm-etiq.cosm-e-end { margin: 1px 0 4px; }
.an2-liste .cosm-etiq.cosm-e-end { padding-right: 2.6em; }
@keyframes cosm-e-encre { from { background-position: 0% 50%, 100% 50%, 0 0; } to { background-position: 100% 50%, 0% 50%, 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .cosm-carte, .cosm-mini, .cosm-fx::before, .cosm-fx::after, .cosm-etiq, .an2-liste .an-ligne.cosm-carte { animation: none !important; }
}

/* ---------------------------------------------------------------- couronnes (cadres illustres, pack End...)
   Dessins de 260 px de haut, bord de la carte a 200 : a la hauteur --cc, le bord tombe a 200/260 de --cc. */
.an2-fiche-pose:has(.cosm-couronne) { margin-top: clamp(80px, 9vw, 130px); }
.cosm-couronne { --cc: clamp(110px, 13vw, 168px); position: absolute; left: -10px; right: -10px; top: calc(var(--cc) * -200 / 260); height: var(--cc); z-index: 5; pointer-events: none; display: flex; align-items: flex-start; }
/* Une seule lueur continue sous toute la couronne (une lueur par piece se couperait net a chaque raccord) */
.cosm-couronne::before { content: ''; position: absolute; left: 4%; right: 4%; bottom: 8%; height: 46%; z-index: -1; background: radial-gradient(50% 60% at 50% 70%, rgba(177, 76, 232, .32), rgba(177, 76, 232, 0) 70%); pointer-events: none; }
.cosm-couronne .cc-coin { height: 100%; width: auto; flex: none; }
.cosm-couronne .cc-d { transform: scaleX(-1); }
.cosm-couronne .cc-bande { flex: 1; height: 100%; background-repeat: repeat-x; background-size: auto 100%; background-position: center top; }
.cosm-couronne .cc-centre { position: absolute; left: 50%; top: 0; height: 100%; width: auto; transform: translateX(-50%); }
@media (max-width: 640px) { .cosm-couronne { --cc: 104px; } }

/* ---------------------------------------------------------------- ambiance de page (fiche au theme End)
   Les variables du site sont redefinies sur body : en-tete, sections et pied de page basculent ensemble. */
body.site:has(.cosm-page-end) {
  --bg: #0D0817; --s1: rgba(30, 18, 48, .78); --s2: rgba(46, 29, 72, .72); --s3: rgba(62, 40, 96, .62);
  --t1: #F4EEFF; --t2: rgba(244, 238, 255, .8); --t3: rgba(244, 238, 255, .6); --t4: rgba(244, 238, 255, .45);
  --line: rgba(179, 108, 240, .2); --line-2: rgba(179, 108, 240, .28); --line-3: rgba(179, 108, 240, .42);
  --ink: #F4EEFF; --ink-fg: #170E26; --ink-hover: #E2D3FF;
  background-color: #0D0817;
  background-image:
    radial-gradient(circle at 20px 30px, rgba(255, 255, 255, .7) .8px, transparent 1.4px),
    radial-gradient(circle at 140px 90px, rgba(232, 190, 255, .6) .7px, transparent 1.3px),
    radial-gradient(circle at 90px 170px, rgba(255, 255, 255, .5) .6px, transparent 1.2px),
    radial-gradient(90% 55% at 50% -5%, rgba(124, 52, 196, .42), rgba(124, 52, 196, 0) 70%),
    radial-gradient(60% 40% at 85% 100%, rgba(194, 40, 180, .16), rgba(194, 40, 180, 0) 70%);
  background-size: 210px 210px, 210px 210px, 210px 210px, 100% 100%, 100% 100%;
  background-attachment: fixed;
}
.cosm-page-end .an2-carte { background: var(--s1); border-color: var(--line); backdrop-filter: blur(8px); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .8); }
.cosm-page-end .an-interne { background: rgba(30, 18, 48, .6); }
/* logo du menu (noir) et pastilles claires : reglees pour le fond du Vide */
body.site:has(.cosm-page-end) .marque img { filter: invert(1); }
.cosm-page-end .an2-puce, .cosm-page-end .an-themes a.an2-puce, .cosm-c-end .an2-puce { background: rgba(244, 238, 255, .08); border: 1px solid rgba(179, 108, 240, .34); color: #F4EEFF; }
.cosm-page-end .an-themes a.an2-puce:hover { background: rgba(179, 108, 240, .22); }

/* ---------------------------------------------------------------- compagnons (creature perchee sur la carte)
   L'image est carree ; --pieds = hauteur des pattes (0..1). La creature se pose sur le bord haut de
   l'en-tete et deborde au-dessus, comme une decoration d'avatar. Jamais cliquable. */
.an2-fiche-pose { position: relative; }
/* De la place au-dessus de l'en-tete pour la creature (sinon elle passe sous la barre de navigation) */
/* Le compagnon vole dans un calque fixe plein ecran, au-dessus de la page, jamais cliquable */
.cosm-compagnon-ecran { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; display: block; }
/* Compagnon 3D : le canvas couvre la carte et la place au-dessus ; l'affiche fixe sert de repli */
.cosm-compagnon-canvas { position: absolute; left: 0; width: 100%; z-index: 6; pointer-events: none; display: block; }
.cosm-compagnon-repli { transition: opacity .3s ease; }
.cosm-compagnon { position: absolute; z-index: 6; top: 0; right: 5%; width: clamp(140px, 17vw, 230px); height: auto; pointer-events: none; transform: translateY(calc(var(--pieds, .75) * -100% + 8px)); filter: drop-shadow(0 10px 14px rgba(16, 13, 30, .28)); }
@media (max-width: 640px) { .cosm-compagnon { width: 118px; right: 10px; } }
.cs-compagnon { display: grid; place-items: center; height: 96px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 100%, #2A2140, #15111F); overflow: hidden; }
.cs-compagnon img { width: 92px; height: 92px; image-rendering: auto; }

/* Theme End : le ciel du vide (violet tres sombre, etoiles fines, nebuleuse sous la couronne) */
.cosm-c-end { --cosm-fond: radial-gradient(120% 90% at 50% -10%, #3A1A5C 0%, #1A0E2C 45%, #0C0715 100%); --cosm-bord: #4A2A6E; --cosm-base: #120A1E; --cosm-ombre: rgba(91, 35, 160, .55); --cosm-voile: rgba(10, 6, 18, .94); }
.cosm-c-end .cosm-fx::before { inset: 0; background-image: radial-gradient(circle at 18px 22px, rgba(255, 255, 255, .85) .8px, transparent 1.3px), radial-gradient(circle at 92px 64px, rgba(230, 190, 255, .8) .7px, transparent 1.2px), radial-gradient(circle at 150px 18px, rgba(255, 255, 255, .7) .6px, transparent 1.1px), radial-gradient(circle at 60px 110px, rgba(240, 170, 255, .6) .7px, transparent 1.2px); background-size: 180px 130px; animation: cosm-scintille 4s ease-in-out infinite alternate; }
.an2-fiche-haut.cosm-c-end { border-color: #4A2A6E; box-shadow: 0 0 0 1px rgba(179, 108, 240, .25), 0 24px 60px -30px rgba(91, 35, 160, .7); }

/* ================================================================ Pack Create
   L'atelier de Create : laiton, boitiers d'andesite, engrenages de bois. Ambiance chaude et sombre, grille de plan.
   Couronne : tapis roulant qui defile (la bande entiere glisse d'une largeur de motif : aucune couture). */
.cosm-couronne-create::before { background: radial-gradient(50% 60% at 50% 70%, rgba(242, 184, 75, .26), rgba(242, 184, 75, 0) 70%); }
.cosm-couronne-create .cc-bande { animation: cc-tapis 7s linear infinite; }
@keyframes cc-tapis { from { background-position: 0 top; } to { background-position: var(--cc) top; } }
@keyframes cosm-roue { to { transform: rotate(360deg); } }

body.site:has(.cosm-page-create) {
  --bg: #15110C; --s1: rgba(36, 29, 21, .88); --s2: rgba(50, 40, 29, .82); --s3: rgba(68, 54, 38, .72);
  --t1: #F7EEDC; --t2: rgba(247, 238, 220, .8); --t3: rgba(247, 238, 220, .6); --t4: rgba(247, 238, 220, .45);
  --line: rgba(232, 181, 74, .18); --line-2: rgba(232, 181, 74, .26); --line-3: rgba(232, 181, 74, .4);
  --ink: #E8B54A; --ink-fg: #1E1508; --ink-hover: #FBD97A;
  background-color: #15110C;
  background-image:
    radial-gradient(90% 55% at 50% -5%, rgba(197, 138, 43, .28), rgba(197, 138, 43, 0) 70%),
    linear-gradient(rgba(232, 181, 74, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 181, 74, .035) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-attachment: fixed;
}
/* deux grands engrenages en filigrane, fixes, qui tournent lentement */
.cosm-page-create::before, .cosm-page-create::after { content: ''; position: fixed; z-index: -1; pointer-events: none; background: url("/public/site/cosmetiques/create/fond-roue.svg?v=20261117") center / contain no-repeat; opacity: .08; animation: cosm-roue 70s linear infinite; }
.cosm-page-create::before { width: 600px; height: 600px; left: -230px; top: 90px; }
.cosm-page-create::after { width: 400px; height: 400px; right: -160px; bottom: -120px; animation-duration: 46s; animation-direction: reverse; }
/* sections : plaques d'atelier, rivets de laiton aux coins */
.cosm-page-create .an2-carte {
  background:
    radial-gradient(circle at 11px 11px, #E8B54A 1.7px, #7A4F16 2.3px, transparent 2.9px),
    radial-gradient(circle at calc(100% - 11px) 11px, #E8B54A 1.7px, #7A4F16 2.3px, transparent 2.9px),
    radial-gradient(circle at 11px calc(100% - 11px), #E8B54A 1.7px, #7A4F16 2.3px, transparent 2.9px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #E8B54A 1.7px, #7A4F16 2.3px, transparent 2.9px),
    var(--s1);
  border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06), 0 18px 40px -30px rgba(0, 0, 0, .8);
}
.cosm-page-create .an-interne { background: rgba(36, 29, 21, .6); }
body.site:has(.cosm-page-create) .marque img { filter: invert(1); }
.cosm-page-create .an2-puce, .cosm-page-create .an-themes a.an2-puce, .cosm-c-create .an2-puce { background: rgba(232, 181, 74, .1); border: 1px solid rgba(232, 181, 74, .36); color: #F7EEDC; }
.cosm-page-create .an-themes a.an2-puce:hover { background: rgba(232, 181, 74, .22); }

/* Theme de carte Create (classement, A la une, en-tete de fiche) */
.cosm-c-create { --cosm-fond: radial-gradient(120% 90% at 50% -10%, #3A2C17 0%, #221A11 50%, #15100B 100%); --cosm-bord: #8A6420; --cosm-base: #18130D; --cosm-ombre: rgba(197, 138, 43, .45); --cosm-voile: rgba(21, 16, 11, .94); }
.cosm-c-create .cosm-fx::before { width: 240px; height: 240px; left: -90px; bottom: -120px; background: url("/public/site/cosmetiques/create/fond-roue.svg?v=20261117") center / contain no-repeat; opacity: .22; animation: cosm-roue 36s linear infinite; }
.cosm-c-create .cosm-fx::after { inset: 0; background-image: linear-gradient(rgba(232, 181, 74, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 181, 74, .05) 1px, transparent 1px); background-size: 24px 24px; }
.an2-fiche-haut.cosm-c-create { border-color: #8A6420; box-shadow: 0 0 0 1px rgba(232, 181, 74, .22), 0 24px 60px -30px rgba(197, 138, 43, .6); }

/* Plaque de nom Create : laiton sombre -> laiton, engrenages et bras a droite */
.cosm-e-create { --e-fond: url("/public/site/cosmetiques/create/plaque-create.svg?v=20261117") right center no-repeat, radial-gradient(70% 140% at 100% 50%, rgba(232, 181, 74, .3), transparent 70%), linear-gradient(90deg, #17120C 0%, #2A1F12 45%, #5A3E16 100%); --e-taille: auto 100%, 100% 100%, 100% 100%; --e-texte: #FFF4DC; --e-bord: rgba(232, 181, 74, .55); --e-ombre: 0 1px 2px rgba(0, 0, 0, .6), 0 0 10px rgba(232, 181, 74, .3); padding-right: 2.6em; box-shadow: inset 0 0 0 1px var(--e-bord), inset 0 1px 0 rgba(255, 240, 200, .2), 0 6px 18px -8px rgba(138, 100, 32, .7); }
.cosm-etiq.cosm-e-create { margin: 1px 0 4px; }
h1 .cosm-etiq.cosm-e-create, .an2-entete-texte h1 .cosm-etiq.cosm-e-create { padding-right: 2.3em; margin: 0; }
.an2-liste .cosm-etiq.cosm-e-create { padding-right: 2.6em; }

@media (prefers-reduced-motion: reduce) {
  .cosm-couronne-create .cc-bande, .cosm-page-create::before, .cosm-page-create::after, .cosm-c-create .cosm-fx::before { animation: none; }
}
/* couronne Create plus haute que les autres (machines lisibles) ; place reservee au-dessus de l'en-tete */
.cosm-couronne-create { --cc: clamp(124px, 15vw, 200px); }
.an2-fiche-pose:has(.cosm-couronne-create) { margin-top: clamp(92px, 11vw, 158px); }
@media (max-width: 640px) { .cosm-couronne-create { --cc: 112px; } }

/* ================================================================ Pack Cobblemon « Badges de dresseur » (rouge, noir, blanc)
   Dessin original : ecrin de badges d'arene, noigrumes, sangle de cuir surpiquee. Aucune creature ni Poke Ball de la licence.
   Page sombre, lueur rouge, sections liserees de rouge. */
.cosm-couronne-cobblemon::before { background: radial-gradient(50% 60% at 50% 70%, rgba(227, 38, 46, .3), rgba(227, 38, 46, 0) 70%); }
.cosm-couronne-cobblemon .cc-bande { background-position: left top; }

body.site:has(.cosm-page-cobblemon) {
  --bg: #121214; --s1: rgba(28, 28, 32, .92); --s2: rgba(38, 38, 44, .88); --s3: rgba(52, 52, 60, .8);
  --t1: #FFFFFF; --t2: rgba(255, 255, 255, .8); --t3: rgba(255, 255, 255, .6); --t4: rgba(255, 255, 255, .45);
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .16); --line-3: rgba(255, 255, 255, .28);
  --ink: #E3262E; --ink-fg: #FFFFFF; --ink-hover: #F0444B;
  background-color: #121214;
  background-image:
    radial-gradient(80% 50% at 50% -12%, rgba(227, 38, 46, .42), rgba(227, 38, 46, 0) 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(227, 38, 46, .12), rgba(227, 38, 46, 0) 70%);
  background-attachment: fixed;
}
body.site:has(.cosm-page-cobblemon) .marque img { filter: invert(1); }
.cosm-page-cobblemon .an2-carte { background: var(--s1); border-color: var(--line-2); box-shadow: inset 0 3px 0 #E3262E, 0 18px 40px -30px rgba(0, 0, 0, .8); }
.cosm-page-cobblemon .an-interne { background: rgba(28, 28, 32, .7); }
.cosm-page-cobblemon .an2-puce, .cosm-page-cobblemon .an-themes a.an2-puce, .cosm-c-cobblemon .an2-puce { background: #FFFFFF; border: 1px solid #FFFFFF; color: #141416; }
.cosm-page-cobblemon .an-themes a.an2-puce:first-child, .cosm-c-cobblemon .an2-puce:first-child { background: #E3262E; border-color: #E3262E; color: #FFFFFF; }

/* Theme de carte : noir laque, lueur rouge en diagonale, surpiqure blanche comme l'ecrin */
.cosm-c-cobblemon { --cosm-fond: linear-gradient(160deg, #222226 0%, #161618 60%, #111113 100%); --cosm-bord: #E3262E; --cosm-base: #161618; --cosm-ombre: rgba(227, 38, 46, .4); --cosm-voile: rgba(22, 22, 24, .94); }
.cosm-c-cobblemon .cosm-fx::before { top: -20%; bottom: -20%; left: -60px; width: 130px; background: linear-gradient(90deg, rgba(227, 38, 46, 0), rgba(227, 38, 46, .38) 45%, rgba(227, 38, 46, .38) 55%, rgba(227, 38, 46, 0)); transform: skewX(-18deg); filter: blur(6px); }
.cosm-c-cobblemon .cosm-fx::after { inset: 6px; border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: inherit; }
.an2-fiche-haut.cosm-c-cobblemon { border-color: #E3262E; box-shadow: 0 0 0 1px rgba(227, 38, 46, .3), 0 24px 60px -30px rgba(227, 38, 46, .55); }

/* Plaque de nom Cobblemon : noir -> rouge, texte blanc, trois badges a droite */
.cosm-e-cobblemon { --e-fond: url("/public/site/cosmetiques/cobblemon/plaque-cobblemon.svg?v=20261117") right center no-repeat, linear-gradient(90deg, #141416 0%, #2A0C0E 45%, #C21D25 100%); --e-taille: auto 100%, 100% 100%; --e-texte: #FFFFFF; --e-bord: rgba(255, 255, 255, .28); --e-ombre: 0 1px 2px rgba(0, 0, 0, .6); padding-right: 2.6em; box-shadow: inset 0 0 0 1px var(--e-bord), inset 0 -2px 0 #E3262E, 0 6px 18px -8px rgba(227, 38, 46, .55); }
.cosm-etiq.cosm-e-cobblemon { margin: 1px 0 4px; }
h1 .cosm-etiq.cosm-e-cobblemon, .an2-entete-texte h1 .cosm-etiq.cosm-e-cobblemon { padding-right: 2.3em; margin: 0; }
.an2-liste .cosm-etiq.cosm-e-cobblemon { padding-right: 2.6em; }

/* couronne Cobblemon plus haute : les blocs restent lisibles */
.cosm-couronne-cobblemon { --cc: clamp(130px, 16vw, 214px); }
.an2-fiche-pose:has(.cosm-couronne-cobblemon) { margin-top: clamp(96px, 12vw, 168px); }
@media (max-width: 640px) { .cosm-couronne-cobblemon { --cc: 116px; } }

/* ================================================================ Pack Nether
   Portail qui tourbillonne, feux des ames, champignons geants carmin et biscornu, netherrack fendu de lave.
   Page : rouge tres sombre, lueur de lave en bas, braises qui montent. */
.cosm-couronne-nether { --cc: clamp(124px, 15vw, 200px); }
.an2-fiche-pose:has(.cosm-couronne-nether) { margin-top: clamp(92px, 11vw, 158px); }
@media (max-width: 640px) { .cosm-couronne-nether { --cc: 112px; } }
.cosm-couronne-nether::before { background: radial-gradient(50% 60% at 50% 75%, rgba(255, 110, 30, .32), rgba(255, 110, 30, 0) 70%); }
.cosm-couronne-nether .cc-bande { background-position: left top; }
@keyframes cosm-braises { from { background-position: 0 0; } to { background-position: 0 -260px; } }

body.site:has(.cosm-page-nether) {
  --bg: #120607; --s1: rgba(30, 12, 12, .9); --s2: rgba(44, 18, 17, .86); --s3: rgba(62, 26, 24, .78);
  --t1: #FFF1E8; --t2: rgba(255, 241, 232, .8); --t3: rgba(255, 241, 232, .6); --t4: rgba(255, 241, 232, .45);
  --line: rgba(255, 140, 60, .16); --line-2: rgba(255, 140, 60, .24); --line-3: rgba(255, 140, 60, .38);
  --ink: #FF7A1F; --ink-fg: #1E0805; --ink-hover: #FF9A4A;
  background-color: #120607;
  background-image:
    radial-gradient(70% 45% at 50% 108%, rgba(255, 96, 20, .38), rgba(255, 96, 20, 0) 70%),
    radial-gradient(60% 40% at 50% -10%, rgba(140, 20, 20, .45), rgba(140, 20, 20, 0) 70%);
  background-attachment: fixed;
}
/* braises qui montent sur toute la page (calque fixe, derriere le contenu) */
.cosm-page-nether::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("/public/site/cosmetiques/nether/braises.svg?v=20261117") 0 0 / 200px 260px repeat; opacity: .7; animation: cosm-braises 14s linear infinite; }
body.site:has(.cosm-page-nether) .marque img { filter: invert(1); }
.cosm-page-nether .an2-carte { background: var(--s1); border-color: var(--line-2); box-shadow: inset 0 2px 0 rgba(255, 122, 31, .7), 0 18px 40px -30px rgba(0, 0, 0, .85); }
.cosm-page-nether .an-interne { background: rgba(30, 12, 12, .7); }
.cosm-page-nether .an2-puce, .cosm-page-nether .an-themes a.an2-puce, .cosm-c-nether .an2-puce { background: rgba(255, 122, 31, .12); border: 1px solid rgba(255, 122, 31, .38); color: #FFF1E8; }

/* Theme de carte : pierre sombre, lave qui rougeoie en bas, braises */
.cosm-c-nether { --cosm-fond: radial-gradient(120% 80% at 50% 120%, #5A160E 0%, #2A0B0B 45%, #150606 100%); --cosm-bord: #8A2A1A; --cosm-base: #170707; --cosm-ombre: rgba(255, 96, 20, .4); --cosm-voile: rgba(21, 7, 7, .94); }
.cosm-c-nether .cosm-fx::before { inset: 0; background: url("/public/site/cosmetiques/nether/braises.svg?v=20261117") 0 0 / 200px 260px repeat; opacity: .8; animation: cosm-braises 12s linear infinite; }
.cosm-c-nether .cosm-fx::after { left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, #FF9A1F 30%, #FFD15C 50%, #FF9A1F 70%, transparent); opacity: .8; animation: cosm-pouls 2.4s ease-in-out infinite alternate; }
.an2-fiche-haut.cosm-c-nether { border-color: #8A2A1A; box-shadow: 0 0 0 1px rgba(255, 122, 31, .22), 0 24px 60px -30px rgba(255, 96, 20, .55); }

/* Plaque de nom Nether : pierre noire -> carmin, champignon et champilampes a droite */
.cosm-e-nether { --e-fond: url("/public/site/cosmetiques/nether/plaque-nether.svg?v=20261117") right center no-repeat, radial-gradient(70% 140% at 100% 60%, rgba(255, 122, 31, .3), transparent 70%), linear-gradient(90deg, #120607 0%, #2A0A0B 45%, #8A1A16 100%); --e-taille: auto 100%, 100% 100%, 100% 100%; --e-texte: #FFF1E8; --e-bord: rgba(255, 122, 31, .5); --e-ombre: 0 1px 2px rgba(0, 0, 0, .6), 0 0 10px rgba(255, 122, 31, .35); padding-right: 2.6em; box-shadow: inset 0 0 0 1px var(--e-bord), inset 0 -2px 0 rgba(255, 154, 31, .6), 0 6px 18px -8px rgba(255, 96, 20, .55); }
.cosm-etiq.cosm-e-nether { margin: 1px 0 4px; }
h1 .cosm-etiq.cosm-e-nether, .an2-entete-texte h1 .cosm-etiq.cosm-e-nether { padding-right: 2.3em; margin: 0; }
.an2-liste .cosm-etiq.cosm-e-nether { padding-right: 2.6em; }

@media (prefers-reduced-motion: reduce) {
  .cosm-page-nether::before, .cosm-c-nether .cosm-fx::before, .cosm-c-nether .cosm-fx::after { animation: none; }
}

/* ================================================================ Carte de profil du createur (fiche de l'annuaire)
   S'ouvre sous « Cree par ». Avec un theme de profil (cosmetique « profil »), la banniere prend le fond et
   l'illustration du pack ; sinon, une banniere a la couleur du serveur. */
.an2-createur-zone { position: relative; display: inline-block; margin: 12px 0 0; }
.an2-createur-zone .an2-createur { margin: 0; padding: 4px 8px 4px 4px; border: 1px solid transparent; border-radius: 10px; background: none; font: inherit; font-size: 13.5px; color: var(--t3); cursor: pointer; transition: background .15s, border-color .15s; }
.an2-createur-zone .an2-createur:hover, .an2-createur-zone .an2-createur[aria-expanded="true"] { background: var(--s1); border-color: var(--line); }
.an2-createur-zone .an2-createur:focus-visible { outline: 2px solid var(--an-accent, #7C3AED); outline-offset: 2px; }
.an2-profil { position: fixed; z-index: 45; top: 0; left: 0; width: 300px; border-radius: 14px; overflow: hidden; background: var(--bg, #fff); border: 1px solid var(--line-2, rgba(0, 0, 0, .12)); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); color: var(--t1); }
.an2-profil[hidden] { display: none; }
.prof-banniere { position: relative; height: 96px; background: linear-gradient(135deg, var(--an-accent, #7C3AED), color-mix(in srgb, var(--an-accent, #7C3AED) 40%, #000)); overflow: hidden; }
.prof-theme .prof-banniere { background: var(--cosm-fond); }
.prof-banniere img { position: absolute; left: 50%; bottom: -26px; height: 128px; width: auto; transform: translateX(-50%); }
.prof-corps { position: relative; padding: 0 16px 16px; }
.prof-tete { display: block; width: 72px; height: 72px; margin-top: -38px; border-radius: 16px; border: 4px solid var(--bg, #fff); background: var(--s2, #eee); image-rendering: pixelated; }
.prof-theme .prof-tete { border-color: var(--cosm-bord, var(--bg)); }
.prof-nom { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 17px; font-weight: 700; }
.prof-nom .an2-certif { display: inline-flex; width: 18px; height: 18px; color: #22C55E; }
.prof-nom .an2-certif svg { width: 100%; height: 100%; }
.prof-depuis { margin: 2px 0 0; font-size: 12.5px; color: var(--t3); }
.prof-titre { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.prof-serveurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prof-serveurs a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.prof-serveurs a:hover { background: var(--s1); }
.prof-serveurs img, .prof-logo-vide { width: 28px; height: 28px; border-radius: 7px; flex: none; background: var(--s2, #eee); object-fit: cover; }
.prof-serveurs span { display: grid; min-width: 0; }
.prof-serveurs b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-serveurs small { font-size: 12px; color: var(--t3); }
.prof-vide { margin: 0; font-size: 13px; color: var(--t3); }
@media (max-width: 480px) { .an2-profil { width: min(300px, calc(100vw - 32px)); } }

/* ================================================================ Pack Abimes (Deep Dark)
   Arche de la cite antique, sculk aux veines cyan, lanternes des ames. Page nuit, spores bioluminescentes. */
.cosm-couronne-abimes { --cc: clamp(124px, 15vw, 200px); }
.an2-fiche-pose:has(.cosm-couronne-abimes) { margin-top: clamp(92px, 11vw, 158px); }
@media (max-width: 640px) { .cosm-couronne-abimes { --cc: 112px; } }
.cosm-couronne-abimes::before { background: radial-gradient(50% 60% at 50% 70%, rgba(63, 224, 240, .22), rgba(63, 224, 240, 0) 70%); }
.cosm-couronne-abimes .cc-bande { background-position: left top; }
@keyframes cosm-spores { from { background-position: 0 0; } to { background-position: 0 -260px; } }

body.site:has(.cosm-page-abimes) {
  --bg: #05090C; --s1: rgba(12, 22, 28, .9); --s2: rgba(18, 32, 40, .86); --s3: rgba(26, 44, 54, .78);
  --t1: #E8FBFF; --t2: rgba(232, 251, 255, .8); --t3: rgba(232, 251, 255, .6); --t4: rgba(232, 251, 255, .45);
  --line: rgba(63, 224, 240, .14); --line-2: rgba(63, 224, 240, .22); --line-3: rgba(63, 224, 240, .36);
  --ink: #3FE0F0; --ink-fg: #03181D; --ink-hover: #8FF6FF;
  background-color: #05090C;
  background-image:
    radial-gradient(70% 45% at 50% 110%, rgba(22, 168, 194, .22), rgba(22, 168, 194, 0) 70%),
    radial-gradient(60% 40% at 50% -10%, rgba(14, 94, 112, .35), rgba(14, 94, 112, 0) 70%);
  background-attachment: fixed;
}
.cosm-page-abimes::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("/public/site/cosmetiques/abimes/spores.svg?v=20261117") 0 0 / 220px 260px repeat; opacity: .55; animation: cosm-spores 30s linear infinite; }
body.site:has(.cosm-page-abimes) .marque img { filter: invert(1); }
.cosm-page-abimes .an2-carte { background: var(--s1); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(143, 246, 255, .12), 0 18px 40px -30px rgba(0, 0, 0, .9); }
.cosm-page-abimes .an-interne { background: rgba(12, 22, 28, .7); }
.cosm-page-abimes .an2-puce, .cosm-page-abimes .an-themes a.an2-puce, .cosm-c-abimes .an2-puce { background: rgba(63, 224, 240, .1); border: 1px solid rgba(63, 224, 240, .32); color: #E8FBFF; }

/* Theme de carte : noir profond, sculk et spores en bas */
.cosm-c-abimes { --cosm-fond: radial-gradient(120% 80% at 50% 120%, #0E3A44 0%, #08161C 50%, #04080B 100%); --cosm-bord: #16A8C2; --cosm-base: #06100F; --cosm-ombre: rgba(63, 224, 240, .3); --cosm-voile: rgba(5, 9, 12, .94); }
.cosm-c-abimes .cosm-fx::before { inset: 0; background: url("/public/site/cosmetiques/abimes/spores.svg?v=20261117") 0 0 / 220px 260px repeat; opacity: .8; animation: cosm-spores 22s linear infinite; }
.cosm-c-abimes .cosm-fx::after { left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #3FE0F0 35%, #8FF6FF 50%, #3FE0F0 65%, transparent); opacity: .7; animation: cosm-pouls 2.6s ease-in-out infinite alternate; }
.an2-fiche-haut.cosm-c-abimes { border-color: #16A8C2; box-shadow: 0 0 0 1px rgba(63, 224, 240, .18), 0 24px 60px -30px rgba(22, 168, 194, .5); }

/* Plaque de nom Abimes */
.cosm-e-abimes { --e-fond: url("/public/site/cosmetiques/abimes/plaque-abimes.svg?v=20261117") right center no-repeat, radial-gradient(70% 140% at 100% 60%, rgba(63, 224, 240, .25), transparent 70%), linear-gradient(90deg, #05090C 0%, #0A1C24 45%, #0E3A44 100%); --e-taille: auto 100%, 100% 100%, 100% 100%; --e-texte: #E8FBFF; --e-bord: rgba(63, 224, 240, .45); --e-ombre: 0 1px 2px rgba(0, 0, 0, .7), 0 0 10px rgba(63, 224, 240, .35); padding-right: 2.6em; box-shadow: inset 0 0 0 1px var(--e-bord), 0 6px 18px -8px rgba(22, 168, 194, .5); }
.cosm-etiq.cosm-e-abimes { margin: 1px 0 4px; }
h1 .cosm-etiq.cosm-e-abimes, .an2-entete-texte h1 .cosm-etiq.cosm-e-abimes { padding-right: 2.3em; margin: 0; }
.an2-liste .cosm-etiq.cosm-e-abimes { padding-right: 2.6em; }

@media (prefers-reduced-motion: reduce) {
  .cosm-page-abimes::before, .cosm-c-abimes .cosm-fx::before, .cosm-c-abimes .cosm-fx::after { animation: none; }
}

/* ================================================================ Pack Cerisier (theme CLAIR, suffixe « sakura » :
   « cerisier » est pris par l'ancien theme CSS retire). Cerisiers en fleurs, arche, lanternes, petales qui tombent. */
.cosm-couronne-sakura { --cc: clamp(124px, 15vw, 200px); }
.an2-fiche-pose:has(.cosm-couronne-sakura) { margin-top: clamp(92px, 11vw, 158px); }
@media (max-width: 640px) { .cosm-couronne-sakura { --cc: 112px; } }
.cosm-couronne-sakura::before { background: radial-gradient(50% 60% at 50% 70%, rgba(247, 154, 194, .28), rgba(247, 154, 194, 0) 70%); }
.cosm-couronne-sakura .cc-bande { background-position: left top; }
@keyframes cosm-petales { from { background-position: 0 0; } to { background-position: 120px 280px; } }

body.site:has(.cosm-page-sakura) {
  --bg: #FFF7FA; --line: rgba(217, 106, 156, .16); --line-2: rgba(217, 106, 156, .24); --line-3: rgba(217, 106, 156, .38);
  --ink: #BB4C82; --ink-fg: #FFFFFF; --ink-hover: #9A3F70;
  background: linear-gradient(180deg, #FFE3EF 0%, #FFF3F8 30%, #FFF9FB 70%, #FDEFF5 100%) fixed;
}
.cosm-page-sakura::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("/public/site/cosmetiques/sakura/petales.svg?v=20261117") 0 0 / 240px 280px repeat; opacity: .55; animation: cosm-petales 26s linear infinite; }
.cosm-page-sakura .an2-carte { background: rgba(255, 255, 255, .9); border-color: var(--line-2); box-shadow: 0 18px 40px -30px rgba(168, 70, 122, .45); }
.cosm-page-sakura .an-interne { background: rgba(255, 255, 255, .7); }
/* Encres rose (Cerisier, 4,7:1) et rouge Poke Ball (Cobblemon, 4,6:1) avec le blanc : pas d'attenuation par opacite (badges, encart CraftLauncher) */
body:is(:has(.cosm-page-sakura), :has(.cosm-page-cobblemon)) :is(.an2-badges, .an2-cta-label, .an2-cta p) { opacity: 1; }

/* Theme de carte : rose poudre, petales qui tombent */
.cosm-c-sakura { --cosm-fond: linear-gradient(180deg, #FFF3F8 0%, #FFE3EF 100%); --cosm-bord: #F79AC2; --cosm-base: #FFF3F8; --cosm-ombre: rgba(217, 106, 156, .35); --cosm-voile: rgba(255, 243, 248, .94); }
.cosm-c-sakura .cosm-fx::before { inset: 0; background: url("/public/site/cosmetiques/sakura/petales.svg?v=20261117") 0 0 / 240px 280px repeat; opacity: .7; animation: cosm-petales 20s linear infinite; }
.an2-fiche-haut.cosm-c-sakura { border-color: #F79AC2; box-shadow: 0 0 0 1px rgba(247, 154, 194, .25), 0 24px 60px -30px rgba(217, 106, 156, .45); }

/* Plaque de nom Cerisier : blanc rose -> rose, cerisier a droite, texte prune */
.cosm-e-sakura { --e-fond: url("/public/site/cosmetiques/sakura/plaque-sakura.svg?v=20261117") right center no-repeat, linear-gradient(90deg, #FFFFFF 0%, #FFEAF3 45%, #F9B7D3 100%); --e-taille: auto 100%, 100% 100%; --e-texte: #5A1E3C; --e-bord: rgba(217, 106, 156, .45); --e-ombre: 0 1px 0 rgba(255, 255, 255, .8); padding-right: 2.6em; box-shadow: inset 0 0 0 1px var(--e-bord), 0 6px 16px -8px rgba(217, 106, 156, .45); }
.cosm-etiq.cosm-e-sakura { margin: 1px 0 4px; }
h1 .cosm-etiq.cosm-e-sakura, .an2-entete-texte h1 .cosm-etiq.cosm-e-sakura { padding-right: 2.3em; margin: 0; }
.an2-liste .cosm-etiq.cosm-e-sakura { padding-right: 2.6em; }

@media (prefers-reduced-motion: reduce) {
  .cosm-page-sakura::before, .cosm-c-sakura .cosm-fx::before { animation: none; }
}

/* ================================================================ Cartes « A la une » aux couleurs d'un pack
   Frise du sol du pack en bas de la carte (au-dessus du degrade, sous le texte). */
.an2 .an-une-carte .cosm-une-sol { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 1; pointer-events: none; background-repeat: repeat-x; background-size: auto 230px; background-position: left -150px; }
.an2 .an-une-carte:has(.cosm-une-sol) .an-une-bande { padding-bottom: 24px; }

/* Selecteur de langue de l'en-tete : fond sombre sur les pages aux packs sombres (sinon pastille gris clair) */
body.site:is(:has(.cosm-page-end), :has(.cosm-page-create), :has(.cosm-page-cobblemon), :has(.cosm-page-nether), :has(.cosm-page-abimes)) { --lang-fond: rgba(255, 255, 255, .06); }
/* Carte de profil : liens des serveurs visibles au clavier */
.prof-serveurs a:focus-visible { outline: 2px solid var(--an-accent, #7C3AED); outline-offset: 1px; background: var(--s1); }

/* Cartes « A la une » : une etiquette ne coupe plus le nom (« The C... ») ; il passe a la ligne dans la plaque,
   le decor de droite reste visible (marge reduite, police un peu plus petite) */
.an2 .an-une-bande > div { flex: 1 1 auto; }
.an2 .an-une-bande h3:has(.cosm-etiq) { overflow: visible; white-space: nowrap; text-overflow: clip; display: flex; min-width: 0; }
.an2 .an-une-bande h3 .cosm-etiq { max-width: 100%; min-width: 0; font-size: 15px; flex: 0 1 auto; }
.an2 .an-une-bande h3 .cosm-etiq-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.an2 .an-une-bande h3 .cosm-etiq[class*="cosm-e-"] { padding-right: 2.1em; }
