/* acces.css : page d'accès (connexion) de G-CORE Mining Operations, 2.12.8 (demande du PDG du 17/10/2026 : « une
   image animée plus design »). Diaporama plein écran de cinq images d'illustration (fondu enchaîné et lent zoom, 30 s
   par tour, sans script), voile bleu nuit, récit à gauche, panneau de connexion en verre dépoli à droite.
   Images : public/images/acces/ (sources dans docs/SOURCES_IMAGES_ACCES.txt). Mouvement réduit : image fixe. */
.porte.porte-acces {
  /* Couleurs de la marque : jetons --marque-* de ouverture.css (feuille liée avant celle-ci). */
  --ac-encre-2: #A9B8C8;
  position: relative; isolation: isolate; overflow: hidden auto;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 410px); align-items: center; gap: 6vw;
  padding: 6vh 7vw; background: var(--marque-nuit); color: var(--marque-encre);
}

/* ---------- Diaporama ---------- */
.acces-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.acces-image {
  position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0;
  animation: acces-diapo 30s linear infinite both; will-change: opacity, transform;
}
.ai1 { background-image: url("/images/acces/acces-1.webp"); --dx: -2%; --dy: 1%; animation-delay: 0s; }
.ai2 { background-image: url("/images/acces/acces-2.webp"); --dx: 2%; --dy: -1%; animation-delay: 6s; }
.ai3 { background-image: url("/images/acces/acces-3.webp"); --dx: -1%; --dy: -2%; animation-delay: 12s; }
.ai4 { background-image: url("/images/acces/acces-4.webp"); --dx: 2%; --dy: 2%; animation-delay: 18s; }
.ai5 { background-image: url("/images/acces/acces-5.webp"); --dx: -2%; --dy: -1%; animation-delay: 24s; }
.acces-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(5 14 24 / .92) 0%, rgb(5 14 24 / .62) 42%, rgb(5 14 24 / .22) 100%),
    linear-gradient(0deg, rgb(5 14 24 / .85) 0%, transparent 38%),
    radial-gradient(ellipse 60% 50% at 78% 50%, rgb(212 175 55 / .12), transparent 70%);
}
.acces-etincelles i {
  position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%; background: var(--marque-or-clair);
  box-shadow: 0 0 10px 2px rgb(243 215 124 / .6); opacity: 0; animation: acces-etincelle 9s linear infinite;
}
.acces-etincelles i:nth-child(1) { left: 8%; animation-delay: 0s; } .acces-etincelles i:nth-child(2) { left: 19%; animation-delay: 3.4s; animation-duration: 11s; }
.acces-etincelles i:nth-child(3) { left: 31%; animation-delay: 6.1s; } .acces-etincelles i:nth-child(4) { left: 44%; animation-delay: 1.8s; animation-duration: 12s; }
.acces-etincelles i:nth-child(5) { left: 57%; animation-delay: 4.7s; } .acces-etincelles i:nth-child(6) { left: 66%; animation-delay: 7.9s; animation-duration: 10s; }
.acces-etincelles i:nth-child(7) { left: 75%; animation-delay: 2.6s; } .acces-etincelles i:nth-child(8) { left: 86%; animation-delay: 5.5s; animation-duration: 13s; }
.acces-etincelles i:nth-child(9) { left: 93%; animation-delay: 8.4s; } .acces-etincelles i:nth-child(10) { left: 51%; animation-delay: 10.2s; animation-duration: 14s; }

/* ---------- Récit ---------- */
.acces-recit { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.acces-recit > * { animation: acces-monte .8s cubic-bezier(.2, .8, .2, 1) both; }
.acces-sur { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--marque-or-clair); animation-delay: .1s; }
.acces-sur::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--marque-or), var(--marque-orange)); }
.acces-titre { margin: 0; font-size: clamp(32px, 4.4vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; animation-delay: .22s; }
.acces-titre em {
  font-style: normal; color: transparent;
  background: linear-gradient(100deg, var(--marque-or-clair) 0%, var(--marque-or) 35%, #FFF3C4 50%, var(--marque-or) 65%, var(--marque-orange) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; animation: acces-eclat 6s ease-in-out 1s infinite;
}
.acces-texte { margin: 0; max-width: 520px; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.55; color: var(--ac-encre-2); animation-delay: .34s; }
.acces-domaines { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; animation-delay: .46s; }
.acces-domaines li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.acces-domaines li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--marque-or); box-shadow: 0 0 8px 2px rgb(212 175 55 / .55); }
.acces-domaines li:nth-child(2)::before { background: var(--marque-orange); box-shadow: 0 0 8px 2px rgb(242 138 46 / .55); }
.acces-domaines li:nth-child(3)::before { background: var(--marque-or-clair); }
.acces-diapos { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; animation-delay: .58s; }
.acces-legendes { position: relative; height: 20px; }
.acces-legendes span { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 13px; letter-spacing: .06em; color: var(--ac-encre-2); opacity: 0; animation: acces-legende 30s linear infinite both; }
.acces-legendes span:nth-child(2) { animation-delay: 6s; } .acces-legendes span:nth-child(3) { animation-delay: 12s; }
.acces-legendes span:nth-child(4) { animation-delay: 18s; } .acces-legendes span:nth-child(5) { animation-delay: 24s; }
.acces-points { display: flex; gap: 6px; }
.acces-points i { position: relative; width: 34px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .18); overflow: hidden; }
.acces-points i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--marque-or), var(--marque-orange)); transform-origin: 0 50%; transform: scaleX(0); animation: acces-point 30s linear infinite both; }
.acces-points i:nth-child(2)::after { animation-delay: 6s; } .acces-points i:nth-child(3)::after { animation-delay: 12s; }
.acces-points i:nth-child(4)::after { animation-delay: 18s; } .acces-points i:nth-child(5)::after { animation-delay: 24s; }

/* ---------- Panneau de connexion (verre dépoli) ---------- */
.porte-acces .porte-panneau {
  width: 100%; border-radius: 20px; overflow: hidden; color: var(--marque-encre);
  background: linear-gradient(160deg, rgb(16 32 50 / .74), rgb(7 16 27 / .78));
  border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 30px 90px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .1);
  -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25);
  animation: acces-panneau .9s cubic-bezier(.2, .8, .2, 1) .25s both;
}
.porte-acces .porte-tete { height: 52px; padding: 0 12px 0 18px; background: transparent; color: var(--marque-encre); border-bottom: 1px solid rgb(255 255 255 / .1); }
.porte-acces .porte-tete .etiquette { background: rgb(212 175 55 / .14); color: var(--marque-or-clair); border: 1px solid rgb(212 175 55 / .35); }
.porte-acces .porte-corps { padding: 26px 26px 22px; gap: 14px; }
.porte-acces h1 { font-size: 24px; font-weight: 750; letter-spacing: -.01em; color: var(--marque-encre); }
.porte-acces .aide { color: var(--ac-encre-2); }
.porte-acces .champ-bloc { color: #C9D3DD; font-size: 13px; gap: 6px; }
.porte-acces .champ-bloc .champ {
  height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; color: var(--marque-encre);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .18); transition: border-color .2s, box-shadow .2s, background .2s;
}
.porte-acces .champ-bloc .champ::placeholder { color: rgb(245 242 236 / .38); }
.porte-acces .champ-bloc .champ:focus { outline: none; border-color: var(--marque-or); background: rgb(255 255 255 / .09); box-shadow: 0 0 0 3px rgb(212 175 55 / .22); }
.porte-acces .mdp .b-mini { color: var(--ac-encre-2); }
.porte-acces .btn.envoi {
  height: 46px; margin-top: 4px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; color: #0B1B2B;
  background: linear-gradient(95deg, var(--marque-or-clair), var(--marque-or) 45%, var(--marque-orange)); background-size: 180% 100%;
  box-shadow: 0 10px 30px rgb(212 175 55 / .28); transition: background-position .4s, transform .15s, box-shadow .2s;
}
.porte-acces .btn.envoi:hover { background-position: 100% 0; box-shadow: 0 14px 36px rgb(242 138 46 / .32); }
.porte-acces .btn.envoi:active { transform: translateY(1px); }
.porte-acces .btn.envoi:focus-visible { outline: 2px solid var(--marque-encre); outline-offset: 2px; }
.porte-acces .aide-connexion summary { color: var(--ac-encre-2); }
.porte-acces .aide-connexion p { color: var(--ac-encre-2); }
.porte-acces .porte-pied { background: rgb(0 0 0 / .18); border-top: 1px solid rgb(255 255 255 / .08); color: var(--ac-encre-2); padding: 12px 26px; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 900px) {
  .porte.porte-acces { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 26px; padding: 28px 18px; }
  .acces-recit { gap: 12px; }
  .acces-titre { font-size: clamp(28px, 8vw, 40px); }
  .acces-texte, .acces-diapos { display: none; }
  .acces-voile { background: linear-gradient(180deg, rgb(5 14 24 / .55) 0%, rgb(5 14 24 / .82) 45%, rgb(5 14 24 / .95) 100%); }
  .porte-acces .porte-panneau { max-width: 440px; justify-self: center; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .acces-image, .acces-legendes span, .acces-points i::after, .acces-etincelles i, .acces-titre em, .acces-recit > *, .porte-acces .porte-panneau { animation: none; }
  .ai1, .acces-legendes span:first-child { opacity: 1; }
}

@keyframes acces-diapo {
  0% { opacity: 0; transform: scale(1.14) translate3d(var(--dx), var(--dy), 0); }
  4%, 20% { opacity: 1; }
  26% { opacity: 0; transform: scale(1.02) translate3d(0, 0, 0); }
  100% { opacity: 0; transform: scale(1.02); }
}
@keyframes acces-legende { 0% { opacity: 0; transform: translateY(6px); } 3%, 19% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes acces-point { 0% { transform: scaleX(0); } 20% { transform: scaleX(1); } 24% { transform: scaleX(1); opacity: 1; } 25%, 100% { transform: scaleX(0); } }
@keyframes acces-etincelle { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: .8; } 80% { opacity: .5; } 100% { opacity: 0; transform: translateY(-100vh); } }
@keyframes acces-monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes acces-panneau { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes acces-eclat { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Bascule de langue FR / EN de la page d'accès (règle commune .langues dans app.css) */
.porte-acces .langues { border-color: rgb(255 255 255 / .18); }
.porte-acces .langues button[aria-pressed="true"] { background: linear-gradient(95deg, var(--marque-or-clair), var(--marque-or)); color: #0B1B2B; }
