/* RAID ATLAS FR — V9 corrections de lisibilité (25/10/2026)
   Respecte les données, l'ordre des sections et le panneau commun V7.
 */
:root { --raid-v9-red:#e12b25;--raid-v9-dark:#111113; }
/* En-tête : nom du jeu sans accent, logotype PokeMMO illustré */
.site-wrap a.identity,body.raid-template-ready a.identity,
body.raid-template-ready a.atlas-guide-brand{
 display:inline-flex!important;
 align-items:center!important;gap:11px!important;
 min-width:0!important;
}
/* Symbole Poké Ball monochrome, sans carré blanc ni lettrage dans l'icône. */
.site-wrap .raid-v9-brand-icon,
body.raid-template-ready .raid-v9-brand-icon{
 display:flex!important;
 flex:0 0 49px!important;
 width:49px!important;height:49px!important;
 max-width:49px!important;max-height:49px!important;
 justify-content:center!important;align-items:center!important;
 margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 overflow:visible!important;
}
.site-wrap .raid-v9-pokeball,
body.raid-template-ready .raid-v9-pokeball{
 display:block!important;
 width:47px!important;height:47px!important;
 max-width:47px!important;max-height:47px!important;
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
 filter:drop-shadow(0 4px 8px #0009)!important;
 shape-rendering:geometricPrecision!important;
}
.site-wrap .identity-text,
body.raid-template-ready .identity-text,
body.raid-template-ready .atlas-guide-brand-copy{
 display:flex!important;flex-direction:column!important;
 justify-content:center!important;
 min-width:0!important;
}
.raid-v9-brand-name{
 color:#fff!important;
 font:900 clamp(24px,2vw,31px)/.95 "Barlow Condensed",Impact,sans-serif!important;
 letter-spacing:.012em!important;
 text-transform:none!important;
 white-space:nowrap!important;
 text-shadow:0 2px 11px #000a!important
}
.raid-v9-brand-name strong{
 color:#ee342c!important;
 font:inherit!important;
 text-shadow:0 0 17px #e62d2d35!important
}
.site-wrap .identity-text small,
body.raid-template-ready .identity-text small,
body.raid-template-ready .atlas-guide-brand-copy small{
 color:#bcb9ba!important;
 font:700 9px/1.1 "IBM Plex Mono",monospace!important;
 letter-spacing:.08em!important;
 text-transform:uppercase!important;
 white-space:nowrap
}
/* Sans barre de statistiques, le bas du grand visuel est continu. */
.site-wrap .hero:not(:has(.hero-bottom)){
 overflow:hidden!important;
}
.site-wrap .hero:not(:has(.hero-bottom)) .hero-right{
 padding-bottom:0!important
}
/* En-têtes : 01/ décoratif retiré. */
.site-wrap .section-head .section-no:empty{display:none!important}
/* Page Raids permanents — capture source, un seul antre PokeMMO recadré. */
.site-wrap .atlas-list-art.raid-v9-den-art{
 position:relative!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 overflow:hidden!important;
 padding:22px!important;
 min-width:0!important
}
.site-wrap .raid-v9-den-photo{
 position:relative!important;
 display:block!important;
 width:min(100%,390px)!important;
 aspect-ratio:1.27!important;
 min-height:210px!important;
 border-radius:18px!important;
 overflow:hidden!important;
 border:1px solid #98403a!important;
 background-image:
 linear-gradient(0deg,#130f11a3,transparent 35%),
 url("https://i.ibb.co/ChbKM78/Routes-32-46-final.png")!important;
 background-size:100% 100%,200% 300%!important;
 background-position:center,0 0!important;
 background-repeat:no-repeat!important;
 image-rendering:pixelated!important;
 box-shadow:0 21px 46px #000b,0 0 0 5px #a52e2614!important;
 transform:none!important
}
.site-wrap .raid-v9-den-caption{
 display:flex!important;align-items:center!important;
 justify-content:center!important;
 gap:10px!important;
 margin-top:13px!important;
 padding:7px 11px!important;
 background:#201819e6!important;
 border:1px solid #80403b!important;
 border-radius:6px!important;
 font:800 10px/1.3 "IBM Plex Mono",monospace!important;
 color:#fff!important;letter-spacing:.07em!important
}
.site-wrap .raid-v9-den-caption:before{
 content:"";width:7px;height:7px;border-radius:50%;
 background:#ff443a;box-shadow:0 0 9px #ec3838a0
}
.site-wrap .raid-v9-den-source{
 display:inline-block!important;
 margin-top:9px!important;
 font:500 10px/1.3 "DM Sans",system-ui!important;
 text-decoration:underline!important;
 text-decoration-color:#974642!important;
 color:#c9babc!important;
}
.site-wrap .raid-v9-den-source:hover{color:#fff!important}
/* Combat : un seul état sélectionné en rouge, jamais le cerclage jaune hérité. */
body.raid-template-ready .raid-template-content .battle-grid .card.selected,
body.raid-template-ready .raid-template-content .raid-template-card.selected,
body.raid-template-ready .raid-template-content :is(.cres-action,.h25-card,.h25-player-card).selected{
 outline:0!important;
 outline-offset:0!important;
 border:1px solid #f04a3e!important;
 border-left:3px solid #f04a3e!important;
 box-shadow:0 0 0 1px #b72b273d inset,0 10px 30px #0008!important;
 background:linear-gradient(115deg,#352122,#1a1718)!important;
}
body.raid-template-ready .raid-template-content .battle-grid .card.selected::after,
body.raid-template-ready .raid-template-content .raid-template-card.selected::after{
 outline:0!important;
 border-color:transparent!important;
}
body.raid-template-ready .raid-template-content .battle-grid .card.selected:focus,
body.raid-template-ready .raid-template-content .battle-grid .card.selected:focus-within{
 outline:0!important;box-shadow:0 0 0 1px #b72b273d inset,0 10px 30px #0008!important;
}
body.raid-template-ready .raid-template-content .battle-grid .card.selected small{
 color:#ffb3ab!important
}
/* Repositionnement des VRAIS boutons au-dessus du tour (fait en JS).
   Cette rangée doit être lisible sans atteindre le bas de 4 longues cartes. */
body.raid-template-ready .raid-template-content .phase-nav.raid-v9-placed,
body.raid-template-ready .raid-template-content .h25-actions.raid-v9-placed{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:8px!important;
 box-sizing:border-box!important;
 width:100%!important;
 padding:8px!important;
 margin:9px 0 12px!important;
 border:1px solid #713833!important;
 border-radius:11px!important;
 background:linear-gradient(110deg,#241c1d,#121214)!important;
 box-shadow:0 9px 24px #0006!important;
}
body.raid-template-ready .raid-template-content .phase-nav.raid-v9-placed button,
body.raid-template-ready .raid-template-content .h25-actions.raid-v9-placed button{
 height:39px!important;
 min-height:39px!important;
 max-height:39px!important;
 margin:0!important;
 padding:6px 12px!important;
 border:1px solid #8c403a!important;
 border-radius:8px!important;
 background:#382322!important;
 color:#fff!important;
 font:800 12px/1.2 "DM Sans",system-ui!important;
 box-shadow:none!important
}
body.raid-template-ready .raid-template-content :is(.phase-nav,.h25-actions).raid-v9-placed button:not(:disabled):hover{
 background:#ba2a25!important;border-color:#f56459!important
}
body.raid-template-ready .raid-template-content :is(.phase-nav,.h25-actions).raid-v9-placed button:disabled{
 opacity:.42!important;cursor:not-allowed!important
}
@media(max-width:700px){
 .site-wrap .raid-v9-den-photo{width:min(100%,320px)!important;min-height:165px!important;}
 .site-wrap .raid-v9-den-caption{font-size:9px!important}
 .site-wrap .raid-v9-brand-icon,body.raid-template-ready .raid-v9-brand-icon{width:43px!important;max-width:43px!important;height:43px!important;max-height:43px!important;flex-basis:43px!important}
 .site-wrap .raid-v9-pokeball,body.raid-template-ready .raid-v9-pokeball{width:42px!important;max-width:42px!important;height:42px!important;max-height:42px!important}
 .raid-v9-brand-name{font-size:25px!important}
 .site-wrap .identity-text small,body.raid-template-ready .identity-text small,body.raid-template-ready .atlas-guide-brand-copy small{font-size:8px!important}
 body.raid-template-ready .raid-template-content .phase-nav.raid-v9-placed button{font-size:11px!important}
}

/* V9b — navigation : état actif explicite, visible immédiatement.
   Rouge franc, marqueur latéral et trait inférieur, sans modifier la grille.
*/
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button{
 position:relative!important;
 isolation:isolate!important;
 overflow:hidden!important;
 padding-left:12px!important;
 border:1px solid #514247!important;
 background:#232124!important;
 color:#d9d1d3!important;
 box-shadow:inset 0 0 0 1px #ffffff05!important;
}
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button.raid-v9-tab-current,
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button.raid-dock-active,
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button.active,
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button[aria-current="page"]{
 background:linear-gradient(108deg,#cd2a25,#791d1d)!important;
 border:1px solid #ff6b60!important;
 color:#fff!important;
 box-shadow:inset 0 -3px 0 #ffb7ac,0 0 17px #df31282b!important;
 font-weight:850!important;
}
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button.raid-v9-tab-current:before,
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button.raid-dock-active:before{
 content:""!important;
 position:absolute!important;
 left:8px!important;
 top:50%!important;
 transform:translateY(-50%)!important;
 width:5px!important;height:5px!important;
 border-radius:50%!important;
 background:#fff!important;
 box-shadow:0 0 8px #fff9!important;
}
body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button:not(.raid-v9-tab-current):not(.raid-dock-active):not(.active):not([aria-current="page"]):hover{
 background:#392526!important;
 border-color:#b64640!important;
 color:#fff!important;
}
body.raid-template-ready .raid-command-center .raid-dock-marker{
 border-color:#e24b42!important;
 background:#4b1c1b!important;
 color:#fff!important;
 box-shadow:inset 3px 0 0 #ff4a3f!important;
}
@media(max-width:640px){
 body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button{
   font-size:10px!important;
   padding-left:9px!important;
 }
 body.raid-template-ready .raid-command-center .raid-guide-dock .raid-dock-tabs button.raid-v9-tab-current:before{
   width:4px!important;height:4px!important;left:4px!important;
 }
}

/* V9c — bannière « Préparez votre équipe » :
   Octillery (et les autres artworks de bannière) restent parfaitement centrés
   dans la partie droite, sans empiéter sur les textes ou sortir du panneau. */
body.raid-template-ready .raid-template-content .pokemon-feature-banner{
 position:relative!important;
 isolation:isolate!important;
 align-items:center!important;
 min-width:0!important;
 padding-right:clamp(158px,28%,240px)!important;
}
body.raid-template-ready .raid-template-content .pokemon-feature-banner:before{
 content:""!important;
 position:absolute!important;
 z-index:0!important;
 right:1.8%!important;
 top:50%!important;
 transform:translateY(-50%)!important;
 width:clamp(145px,27%,215px)!important;
 aspect-ratio:1!important;
 border:1px solid #a738342f!important;
 border-radius:50%!important;
 background:radial-gradient(circle,#9426233d 0%,#401e1d1c 58%,transparent 72%)!important;
 pointer-events:none!important;
}
body.raid-template-ready .raid-template-content .pokemon-feature-banner>div{
 position:relative!important;
 z-index:2!important;
 flex:1 1 auto!important;
 width:100%!important;
 min-width:0!important;
 max-width:100%!important;
}
body.raid-template-ready .raid-template-content .pokemon-feature-banner>img.feature-octillery,
body.raid-template-ready .raid-template-content .pokemon-feature-banner>img.raid-artwork-hd{
 position:absolute!important;
 z-index:1!important;
 top:50%!important;
 right:clamp(8px,3%,26px)!important;
 left:auto!important;
 bottom:auto!important;
 transform:translateY(-50%)!important;
 align-self:center!important;
 display:block!important;
 box-sizing:border-box!important;
 width:clamp(128px,23%,190px)!important;
 height:clamp(125px,16vw,171px)!important;
 max-width:190px!important;
 max-height:171px!important;
 padding:0!important;
 margin:0!important;
 object-fit:contain!important;
 object-position:center center!important;
 opacity:1!important;
 filter:drop-shadow(0 16px 14px #000b)!important;
 pointer-events:none!important;
}
@media(max-width:700px){
 body.raid-template-ready .raid-template-content .pokemon-feature-banner{
   padding:17px 14px!important;
   padding-right:clamp(103px,30%,160px)!important;
   min-height:165px!important;
 }
 body.raid-template-ready .raid-template-content .pokemon-feature-banner>div{max-width:100%!important;}
 body.raid-template-ready .raid-template-content .pokemon-feature-banner h2{
   font-size:clamp(24px,7vw,34px)!important;
   overflow-wrap:normal!important;
 }
 body.raid-template-ready .raid-template-content .pokemon-feature-banner p{
   font-size:11px!important;line-height:1.5!important;
 }
 body.raid-template-ready .raid-template-content .pokemon-feature-banner>img.feature-octillery,
 body.raid-template-ready .raid-template-content .pokemon-feature-banner>img.raid-artwork-hd{
   right:6px!important;
   width:clamp(93px,29%,139px)!important;
   height:clamp(102px,30vw,140px)!important;
 }
 body.raid-template-ready .raid-template-content .pokemon-feature-banner:before{
   right:1px!important;width:clamp(110px,32%,150px)!important;
 }
}
@media(max-width:380px){
 body.raid-template-ready .raid-template-content .pokemon-feature-banner{
   padding-right:105px!important;min-height:180px!important;
 }
 body.raid-template-ready .raid-template-content .pokemon-feature-banner>img.feature-octillery,
 body.raid-template-ready .raid-template-content .pokemon-feature-banner>img.raid-artwork-hd{
   width:98px!important;height:112px!important;
 }
}
