/* =========================================================================
   portail.css : écran d'entrée.
   Une planche de manga en filigrane au second plan, dessinée au trait, sans
   aplat de couleur. Le premier plan reste une simple carte de papier.
   ========================================================================= */

body.app.portail-ouvert { background: #12141a; overflow: hidden; }

.portail {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #12141a;
  padding: 1.25rem;
}

/* ---------- La planche en filigrane -------------------------------------- */
.planche {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  opacity: 0.085;
  pointer-events: none;
}
.planche .cases path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}
.planche .art path,
.planche .art circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.planche .vitesse path { stroke-width: 1; opacity: 0.85; }
.planche .horizon path { stroke-width: 1.6; }
.planche .arcs path { stroke-width: 1.2; }
.planche .pluie path { stroke-width: 1; opacity: 0.7; }
.planche .onde path { stroke-width: 1.2; }
.planche .fin { stroke-width: 0.8; opacity: 0.6; }
.planche .pointille { fill: currentColor; opacity: 0.85; }

/* Un halo sombre au centre pour que la carte se détache sans effort. */
.portail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(18, 20, 26, 0.92) 0%, rgba(18, 20, 26, 0.55) 45%, rgba(18, 20, 26, 0.2) 100%);
  pointer-events: none;
}

/* ---------- La carte ------------------------------------------------------ */
.entree {
  position: relative;
  z-index: 1;
  width: min(23rem, 100%);
  background: #faf7f0;
  color: #17181d;
  border: 1px solid #17181d;
  border-top: 5px solid #17181d;
  border-radius: 4px;
  padding: 2rem 1.9rem 1.8rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.entree-sur {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6f6a60;
}
.entree-titre {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.entree-sous {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  color: #55524b;
}

.entree label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6f6a60;
  margin-bottom: 0.4rem;
}
.entree input {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 0.65rem 0.85rem;
  border: 1px solid #b9b2a5;
  border-radius: 3px;
  background: #fffdf8;
  color: #17181d;
}
.entree input:focus {
  outline: none;
  border-color: #17181d;
  box-shadow: 0 0 0 3px rgba(23, 24, 29, 0.12);
}

.portail-erreur {
  display: none;
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #96222f;
}
.portail-erreur.visible { display: block; }

.entree-bouton {
  width: 100%;
  margin-top: 1.4rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: #faf7f0;
  background: #17181d;
  border: 1px solid #17181d;
  border-radius: 3px;
  padding: 0.7rem 1rem;
}
.entree-bouton:hover { background: #2a2c34; }
.entree-bouton:focus-visible { outline: 3px solid #96222f; outline-offset: 2px; }
.entree-bouton:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 26rem) {
  .entree { padding: 1.6rem 1.4rem 1.5rem; }
  .entree-titre { font-size: 1.5rem; }
}
