/* Centre Servette FC : la scène du stade (assets/stade.js) et l'accueil qui l'entoure. Chargée par l'accueil et par l'écran d'accès. */

.stade { position: absolute; inset: 0; overflow: hidden; background:
  radial-gradient(120% 70% at 60% 62%, rgba(122, 48, 63, .55), transparent 62%),
  radial-gradient(60% 40% at 20% 8%, rgba(191, 159, 111, .10), transparent 70%),
  linear-gradient(180deg, #0b0407 0%, #1c0810 46%, #2a0d17 100%); }
.stade__toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s cubic-bezier(.2, .7, .2, 1); }
.stade.is-pret .stade__toile { opacity: 1; }
.stade--plat .stade__toile { display: none; }
/* Sans WebGL2 : la pelouse dessinée en CSS, bandes de tonte et rond central. */
.stade--plat::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -34%; height: 96%; transform: perspective(900px) rotateX(58deg);
  background: repeating-linear-gradient(90deg, rgba(122, 48, 63, .55) 0 9%, rgba(96, 36, 49, .55) 9% 18%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
.stade--plat::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: 34%; aspect-ratio: 1; transform: translateX(-50%) perspective(900px) rotateX(58deg); border: 2px solid rgba(255, 240, 210, .5); border-radius: 50%; }
.stade__voile { position: absolute; inset: 0; pointer-events: none; }

/* ------------------------------------------------------------ accueil */
.app--accueil .page { max-width: none; padding: 0; animation: none; }
.app--accueil .coins-banner { position: relative; z-index: 3; margin: 18px clamp(18px, 4vw, 56px) 0; }
.accueil { position: relative; min-height: 100vh; isolation: isolate; }
.accueil__scene { position: absolute; inset: 0 0 auto 0; height: clamp(470px, 68vh, 760px); z-index: -1; }
.accueil__scene .stade__voile { background:
  linear-gradient(90deg, rgba(18, 7, 11, .88) 0%, rgba(18, 7, 11, .55) 26%, rgba(18, 7, 11, 0) 58%),
  linear-gradient(180deg, rgba(18, 7, 11, .30) 0%, rgba(18, 7, 11, 0) 22%, rgba(18, 7, 11, 0) 56%, var(--bg) 100%); }
.accueil__tete { position: relative; padding: clamp(46px, 9vh, 104px) clamp(22px, 4.4vw, 68px) 0; max-width: 760px; }
.accueil__tete .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.accueil__tete .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.accueil__tete h1 { margin-top: 18px; font-size: clamp(40px, 5.2vw, 76px); font-weight: 720; letter-spacing: -.045em; line-height: .98; animation: net 1.3s cubic-bezier(.2, .7, .2, 1) both; }
.accueil__tete h1 span { background: linear-gradient(100deg, #f1e3c6 0%, var(--gold) 45%, #f6ead2 62%, var(--gold-lo) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 7s ease-in-out 1.2s infinite; }
.accueil__sous { margin-top: 18px; max-width: 460px; color: var(--text-2); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; animation: net 1.3s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes net { from { opacity: 0; filter: blur(14px); transform: translateY(8px); } }
@keyframes reflet { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Le fil du direct : ce que la scène montre, en trois mots (décor, il ne porte aucune donnée). */
.accueil__direct { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(18, 7, 11, .42); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); color: var(--text-2); font-size: 12.5px; letter-spacing: .02em; animation: net 1.3s cubic-bezier(.2, .7, .2, 1) .3s both; }
.accueil__direct i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(191, 159, 111, .6); animation: pouls 2.2s ease-out infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(191, 159, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(191, 159, 111, 0); } }

.accueil__mods { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; padding: clamp(70px, 21vh, 250px) clamp(18px, 4.4vw, 68px) 64px; perspective: 1400px; }
.tuile { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%; position: relative; grid-column: span 2; display: flex; flex-direction: column; min-height: 248px; padding: 24px 24px 20px; border-radius: 22px; overflow: hidden; color: var(--text);
  background: linear-gradient(160deg, rgba(64, 22, 34, .62), rgba(24, 9, 14, .72)); border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 30px 60px -34px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
  animation: tuile .8s cubic-bezier(.2, .7, .2, 1) both; }
.tuile:nth-child(1) { animation-delay: .25s; } .tuile:nth-child(2) { animation-delay: .33s; } .tuile:nth-child(3) { animation-delay: .41s; }
.tuile:nth-child(4) { animation-delay: .49s; } .tuile:nth-child(5) { animation-delay: .57s; }
.tuile:nth-child(n+4) { grid-column: span 3; }
@keyframes tuile { from { opacity: 0; transform: translateY(26px) rotateX(8deg); } }
/* reflet qui suit le pointeur, et filet d'or qui se trace en haut de la tuile */
.tuile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(234, 214, 178, .16), transparent 60%); }
.tuile::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; pointer-events: none; transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2, .7, .2, 1);
  background: linear-gradient(90deg, var(--gold), rgba(191, 159, 111, 0)); }
a.tuile:hover { border-color: rgba(191, 159, 111, .42); box-shadow: 0 1px 0 rgba(255, 255, 255, .09) inset, 0 40px 80px -36px rgba(0, 0, 0, .95), 0 24px 60px -30px rgba(122, 48, 63, .9); }
a.tuile:hover::before { opacity: 1; }
a.tuile:hover::after { transform: scaleX(1); }
a.tuile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tuile__haut { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.tuile__ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff4e2; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(145deg, #9b4155 0%, #7a303f 46%, #4d1826 100%); box-shadow: 0 14px 30px -14px rgba(122, 48, 63, 1), 0 1px 0 rgba(255, 255, 255, .22) inset; transform: translateZ(26px); }
.tuile__ico .ico { width: 24px; height: 24px; }
.tuile__num { font: 600 12px/1 var(--mono); letter-spacing: .12em; color: rgba(234, 214, 178, .55); padding-top: 6px; }
.tuile__nom { margin-top: 26px; font-size: clamp(22px, 1.75vw, 27px); font-weight: 690; letter-spacing: -.035em; transform: translateZ(18px); }
.tuile__desc { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 46ch; }
.tuile__pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13px; color: var(--text-2); }
.tuile__pied em { font-style: normal; color: var(--warn); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.tuile__go { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; transition: gap .25s cubic-bezier(.2, .7, .2, 1), color .25s; white-space: nowrap; }
.tuile__go .ico { width: 16px; height: 16px; }
a.tuile:hover .tuile__go { gap: 9px; color: var(--gold-hi); }
.tuile.is-soon { opacity: .6; }

@media (max-width: 1180px) {
  .accueil__mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile, .tuile:nth-child(n+4) { grid-column: span 1; }
  .tuile:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 980px) {
  .accueil__scene { height: clamp(380px, 56vh, 560px); }
  .accueil__scene .stade__voile { background:
    linear-gradient(180deg, rgba(18, 7, 11, .72) 0%, rgba(18, 7, 11, .30) 40%, rgba(18, 7, 11, 0) 62%, var(--bg) 100%); }
}
@media (max-width: 640px) {
  .accueil__tete { padding-top: 34px; }
  .accueil__mods { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: clamp(150px, 30vh, 240px); padding-bottom: 40px; }
  .tuile, .tuile:nth-child(n+4), .tuile:nth-child(5) { grid-column: span 1; min-height: 0; }
  .tuile__nom { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tuile { transform: none; }
}

/* ------------------------------------------------------------ écran d'accès : la scène derrière l'écusson */
.auth__brand { background: #0b0407; border-right-color: rgba(191, 159, 111, .16); }
.auth__brand > :not(.stade) { position: relative; z-index: 1; }
.stade--auth .stade__voile { background:
  linear-gradient(180deg, rgba(11, 4, 7, .55) 0%, rgba(11, 4, 7, .05) 22%, rgba(11, 4, 7, .12) 52%, rgba(11, 4, 7, .58) 84%, rgba(11, 4, 7, .88) 100%),
  linear-gradient(90deg, rgba(11, 4, 7, .50) 0%, rgba(11, 4, 7, 0) 70%); }
.auth__logo { width: 132px; height: 132px; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .65)); animation: net 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.auth__pitch h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .75); }
.auth__pitch .trust strong, .auth__pitch .trust span { text-shadow: 0 1px 14px rgba(0, 0, 0, .85); }
.auth__pitch .trust span { color: rgba(237, 235, 230, .78); }
.auth__pitch .trust .ico { background: rgba(18, 7, 11, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.auth__legal { color: rgba(237, 235, 230, .5); }
@media (max-width: 860px) {
  .auth__mobilelogo { width: 96px; height: 96px; margin: 0 auto 6px; }
}
