/* Structure commune : inclure cette feuille sur chaque page et placer le
   contenu dans main, suivi du footer, directement dans body. */
html{min-height:100%}
body{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
body>header,body>footer{flex-shrink:0}
body>main,body>main.w{
  flex:1 0 auto;
  /* Le bloc sponsors commence après une pleine hauteur de contenu. */
  min-height:100vh;
  min-height:100dvh;
  min-width:0;
  width:100%;
  margin-bottom:30px;
}
body>footer{
  margin:0;
  margin-top:auto;
}

/* Présentation existante du bloc sponsors, commune à toutes les pages. */
.foot{
  color:#6b6b6b;
  font-size:12px;
  text-align:center;
  padding:40px 18px 30px;
  background:var(--tu-soft,#f7f7f5);
  border-top:1px solid var(--tu-line,#e6e6e6);
}
.foot-linafp{
  height:68px;
  width:auto;
  max-width:100%;
  border-radius:6px;
  margin-bottom:6px;
}
.league-partner{display:flex;flex-direction:column;align-items:center;gap:6px;margin:12px auto;font-size:12px;line-height:1.5}
.league-partner-title{font-weight:700}
.league-partner-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;max-width:100%;border-radius:6px;color:inherit;text-decoration:none}
.league-partner-logo{display:block;width:clamp(40px,7vh,60px);height:auto;max-width:100%;object-fit:contain;border-radius:6px}
.foot .league-partner-logo{width:52px}
.league-partner-link:hover{opacity:.9}
.league-partner-link:focus-visible{outline:3px solid currentColor;outline-offset:4px}
#welcome-screen .league-partner{color:#ffd94d}
.foot .league-partner{color:#6b5600;margin:16px auto}
@media(max-width:760px){
  .foot{font-size:11px;padding:28px 14px}
}

body.welcome-open{touch-action:pan-y}
#welcome-screen.entry-screen{
  display:block;
  overflow:auto;
  padding:clamp(16px,6svh,72px) clamp(12px,4vw,32px) 24px;
  padding-top:max(clamp(16px,6svh,72px),calc(env(safe-area-inset-top,0px) + 10px));
  padding-bottom:max(24px,env(safe-area-inset-bottom,0px));
  background:radial-gradient(ellipse at 50% 24%,#20392d 0%,#101d19 52%,#0b1411 100%);
  color:#f9f5eb;
}
#welcome-screen.entry-screen::before,#welcome-screen.entry-screen::after{content:none}
.entry-panel{
  width:min(100%,650px);
  margin-inline:auto;
  display:grid;
  justify-items:center;
  gap:clamp(14px,3svh,28px);
  padding:clamp(16px,4svh,36px) clamp(12px,4vw,36px);
  background:#102019;
  border:1px solid #ad966441;
  border-top-color:#ad9664b3;
  border-radius:18px;
  box-shadow:0 24px 70px #060e0b55;
}
.entry-branding{display:grid;justify-items:center;gap:8px}
.entry-branding p{
  margin:0;
  color:#f0d58f;
  font:700 11px/1.3 ui-monospace,monospace;
  letter-spacing:.18em;
}
.entry-branding img{display:block;width:min(100%,184px);height:auto}
.entry-stage{
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  width:100%;
  min-height:clamp(110px,35svh,310px);
  padding:clamp(12px,3vw,34px);
  border-radius:10px;
  background:radial-gradient(ellipse at 50% 52%,#213b2b,#14261e 72%);
}
.entry-stage::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:9px;
  border:1px solid #e8d4a429;
  border-radius:5px;
  background:linear-gradient(#e8d4a429,#e8d4a429) top center/1px 14% no-repeat,
             linear-gradient(#e8d4a429,#e8d4a429) bottom center/1px 14% no-repeat;
}
.entry-stage img{
  display:block;
  width:min(100%,440px,85svh);
  height:auto;
  mix-blend-mode:screen;
}
.entry-continue{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  width:min(100%,360px);
  min-height:52px;
  padding:8px 12px;
  border:1px solid var(--tu-yellow);
  border-radius:8px;
  background:var(--tu-yellow);
  color:#142019;
  font-size:clamp(12px,3.5vw,14px);
  font-weight:750;
  line-height:1.25;
}
.entry-continue::before{content:""}
.entry-continue svg{justify-self:end}
.entry-continue:focus-visible{outline:2px solid #fff2ce;outline-offset:4px}
.entry-continue:active{background:#e8b400}

@media(prefers-reduced-motion:no-preference){
  .entry-panel{
    --entry-ease:cubic-bezier(.2,.75,.25,1);
    animation:entry-panel-arrive .44s var(--entry-ease);
  }
  .entry-branding{animation:entry-details-arrive .52s .07s var(--entry-ease) backwards}
  .entry-stage{overflow:hidden}
  .entry-stage::before{animation:entry-pitch-arrive .68s .12s ease-out backwards}
  .entry-stage::after{
    content:"";
    position:absolute;
    z-index:-2;
    inset:0;
    pointer-events:none;
    background:radial-gradient(ellipse at center,#e8d48f30,transparent 68%);
    opacity:0;
    animation:entry-pitch-light .9s .12s ease-out;
  }
  .entry-stage img{animation:entry-crest-arrive .64s .16s var(--entry-ease) backwards}
  .entry-continue{transition:transform .18s ease,background-color .18s ease}
  .entry-continue svg{transition:transform .22s var(--entry-ease)}
  .entry-continue:focus-visible svg{transform:translateX(3px)}
  .entry-continue:active{transform:scale(.98)}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
  .entry-continue:hover:not(:active){transform:translateY(-2px);background:#ffd54a}
  .entry-continue:hover svg{transform:translateX(3px)}
}
@keyframes entry-panel-arrive{from{opacity:.8;transform:translateY(8px)}}
@keyframes entry-details-arrive{from{opacity:.55;transform:translateY(6px)}}
@keyframes entry-pitch-arrive{from{opacity:.25;transform:scale(.97)}}
@keyframes entry-pitch-light{
  0%{opacity:0;transform:scale(.8)}
  42%{opacity:1}
  100%{opacity:0;transform:scale(1.18)}
}
@keyframes entry-crest-arrive{from{opacity:.48;transform:translateY(8px) scale(.96)}}

@media(max-height:460px){
  .entry-panel{gap:10px;padding-block:12px}
  .entry-branding img{width:min(100%,150px)}
  .entry-stage{padding:10px}
  .entry-stage img{width:min(100%,66svh)}
}
