/* Centre Shabab Al Ahli : 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(207, 41, 43, .55), transparent 62%),
  radial-gradient(60% 40% at 20% 8%, rgba(201, 165, 63, .10), transparent 70%),
  linear-gradient(180deg, #070404 0%, #170707 46%, #260a0b 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(207, 41, 43, .55) 0 9%, rgba(168, 24, 36, .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(10, 6, 6, .88) 0%, rgba(10, 6, 6, .55) 26%, rgba(10, 6, 6, 0) 58%),
  linear-gradient(180deg, rgba(10, 6, 6, .30) 0%, rgba(10, 6, 6, 0) 22%, rgba(10, 6, 6, 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, #f8e6b0 0%, var(--gold) 45%, #fbeec4 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(10, 6, 6, .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(--vert-hi); box-shadow: 0 0 0 0 rgba(53, 184, 98, .6); animation: pouls 2.2s ease-out infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(53, 184, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 184, 98, 0); } }

/* Les widgets : un par module, tous de la même taille. Nom du module en haut, un chiffre, ce qu'il compte, deux lignes au plus. */
.accueil__mods { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: clamp(28px, 5vh, 70px) clamp(18px, 4.4vw, 68px) 64px; perspective: 1400px; }
.tuile { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; min-height: 214px; padding: 18px 20px 18px; border-radius: 20px; overflow: hidden; color: var(--text);
  background: linear-gradient(160deg, rgba(66, 16, 18, .62), rgba(20, 8, 8, .74)); 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 .7s cubic-bezier(.2, .7, .2, 1) both; }
.tuile:nth-child(1) { animation-delay: .20s; } .tuile:nth-child(2) { animation-delay: .25s; } .tuile:nth-child(3) { animation-delay: .30s; } .tuile:nth-child(4) { animation-delay: .35s; }
.tuile:nth-child(5) { animation-delay: .40s; } .tuile:nth-child(6) { animation-delay: .45s; } .tuile:nth-child(7) { animation-delay: .50s; } .tuile:nth-child(n+8) { animation-delay: .55s; }
@keyframes tuile { from { opacity: 0; transform: translateY(22px) 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(380px circle at var(--mx) var(--my), rgba(246, 220, 148, .16), transparent 60%); }
.tuile::after { content: ""; position: absolute; left: 20px; right: 20px; 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(201, 165, 63, 0)); }
a.tuile:hover { border-color: rgba(201, 165, 63, .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(207, 41, 43, .9); }
a.tuile:hover::before { opacity: 1; }
a.tuile:hover::after { transform: scaleX(1); }
a.tuile:focus-visible, a.idees:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tuile__haut { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tuile__ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff4e2; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(145deg, #e4393b 0%, #cf292b 46%, #8a161a 100%); box-shadow: 0 10px 22px -12px rgba(207, 41, 43, 1), 0 1px 0 rgba(255, 255, 255, .22) inset; }
.tuile__ico .ico { width: 17px; height: 17px; }
.tuile__nom { min-width: 0; font-size: 13.5px; font-weight: 620; letter-spacing: -.01em; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tuile__go { margin-left: auto; flex: none; display: grid; place-items: center; color: rgba(246, 220, 148, .45); transition: transform .25s cubic-bezier(.2, .7, .2, 1), color .25s; }
.tuile__go .ico { width: 17px; height: 17px; }
a.tuile:hover .tuile__go { transform: translateX(4px); color: var(--gold-hi); }
a.tuile:hover .tuile__nom { color: var(--text); }
.tuile__chiffre { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; line-height: 1; white-space: nowrap; }
.tuile__chiffre b { font-size: clamp(34px, 2.9vw, 46px); font-weight: 720; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fbeec4 0%, var(--gold) 70%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tuile__chiffre small { font-size: 15px; font-weight: 600; color: rgba(246, 220, 148, .6); letter-spacing: 0; }
.tuile__libelle { margin-top: 7px; font-size: 13.5px; color: var(--text-2); }
.tuile__lignes { display: grid; gap: 7px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tuile__chiffre + .tuile__libelle { margin-bottom: 16px; }
.tuile__ligne { display: flex; align-items: baseline; gap: 9px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.tuile__ligne i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.tuile__ligne--ok i { background: var(--ok); }
.tuile__ligne--warn { color: #f0d9a8; } .tuile__ligne--warn i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.tuile__ligne--danger { color: #f6b8b1; } .tuile__ligne--danger i { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.tuile.is-soon { opacity: .6; }

/* « Mes idées pour Shabab Al Ahli » : toute la largeur, sous les widgets. */
.idees { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; color: var(--text); overflow: hidden;
  background: linear-gradient(100deg, rgba(201, 165, 63, .20), rgba(66, 16, 18, .55) 46%, rgba(20, 8, 8, .74)); border: 1px solid rgba(201, 165, 63, .38);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 30px 60px -34px rgba(0, 0, 0, .9); transition: border-color .3s, box-shadow .3s; animation: tuile .7s cubic-bezier(.2, .7, .2, 1) .6s both; }
.idees:hover { border-color: rgba(240, 204, 120, .7); box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 40px 80px -36px rgba(0, 0, 0, .95), 0 20px 60px -34px rgba(201, 165, 63, .55); }
.idees__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #2a1208; background: linear-gradient(145deg, #f8e6b0, var(--gold) 60%, var(--gold-lo)); box-shadow: 0 12px 26px -12px rgba(201, 165, 63, .9); }
.idees__ico .ico { width: 22px; height: 22px; }
.idees__texte { display: grid; gap: 3px; min-width: 0; }
.idees__texte b { font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.idees__texte span { font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.idees__suivi { margin-left: auto; display: flex; gap: 18px; flex: none; }
.idees__etape { display: grid; gap: 2px; justify-items: center; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.idees__etape b { font-size: 19px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.idees__etape--fait b { color: var(--ok); } .idees__etape--prevu b { color: var(--gold-hi); }
.idees__btn { flex: none; margin-left: auto; pointer-events: none; }
.idees__suivi + .idees__btn { margin-left: 6px; }

@media (max-width: 1320px) {
  .accueil__mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .accueil__scene { height: clamp(380px, 56vh, 560px); }
  .accueil__scene .stade__voile { background:
    linear-gradient(180deg, rgba(10, 6, 6, .72) 0%, rgba(10, 6, 6, .30) 40%, rgba(10, 6, 6, 0) 62%, var(--bg) 100%); }
  .idees { flex-wrap: wrap; }
  .idees__texte { flex: 1 1 60%; }
  .idees__suivi { margin-left: 0; flex: 1 1 100%; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .idees__btn, .idees__suivi + .idees__btn { margin-left: 0; flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .accueil__tete { padding-top: 34px; }
  .accueil__mods { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: clamp(60px, 12vh, 120px); padding-bottom: 40px; }
  .tuile { min-height: 0; }
  .tuile__chiffre { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tuile { transform: none; }
}

/* ------------------------------------------------------------ écran d'accès : la scène derrière l'écusson */
.auth__brand { background: #070404; border-right-color: rgba(201, 165, 63, .16); }
.auth__brand > :not(.stade) { position: relative; z-index: 1; }
.stade--auth .stade__voile { background:
  linear-gradient(180deg, rgba(7, 4, 4, .55) 0%, rgba(7, 4, 4, .05) 22%, rgba(7, 4, 4, .12) 52%, rgba(7, 4, 4, .58) 84%, rgba(7, 4, 4, .88) 100%),
  linear-gradient(90deg, rgba(7, 4, 4, .50) 0%, rgba(7, 4, 4, 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(10, 6, 6, .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; }
}
