/* GBM PROD — page de connexion (maquette maquette-login-gbm.png) */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --lg-red: #e30613;
  --lg-red-dark: #c4050f;
  --lg-ink: #111418;
  --lg-text: #1d2228;
  --lg-muted: #5d6670;
  --lg-line: #d9dde2;
  --lg-sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --lg-display: "Montserrat", "Inter", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body.lg {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--lg-sans);
  color: var(--lg-text);
  background: #eef0f2;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Décor ---------- */
.lg-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f7f8f9 0%, #eceef0 55%, #e3e6e9 78%, #eef0f2 100%);
}

/* Évocation de l'atelier : rampes lumineuses et piliers, très atténués */
.lg-lights {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0 70%, rgba(205,210,215,.35) 70.2%, rgba(255,255,255,0) 90%),
    repeating-linear-gradient(90deg, transparent 0 11%, rgba(170,178,186,.10) 11% 11.6%, transparent 11.6% 24%),
    repeating-linear-gradient(180deg, transparent 0 16%, rgba(255,255,255,.55) 16% 17%, transparent 17% 30%);
  filter: blur(2px);
  opacity: .9;
}

.lg-band {
  position: absolute;
  left: 0;
  background: linear-gradient(160deg, #f0232b 0%, var(--lg-red) 45%, #c8101a 100%);
}
.lg-band-top {
  top: 0;
  width: 12.4vw;
  height: 40.4vh;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.lg-band-bottom {
  bottom: 0;
  width: 14.9vw;
  height: 56vh;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.lg-watermark {
  position: absolute;
  left: 3.5vw;
  top: 13vh;
  width: 24vw;
  max-width: 420px;
  height: auto;
  fill: #9aa2a9;
  opacity: .09;
}

/* ---------- Textes latéraux ---------- */
.lg-services,
.lg-values {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.65;
  text-transform: uppercase;
  color: #3a4148;
}
.lg-services { top: 46px; right: 5%; }
.lg-services::after,
.lg-values::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 14px;
  background: var(--lg-red);
}
.lg-values {
  top: 47%;
  right: 1.2%;
  font-size: 13px;
  color: #6b737b;
  transform: perspective(700px) rotateY(-24deg) rotate(-5deg);
  transform-origin: right center;
  opacity: .75;
}
.lg-values::after { width: 44px; height: 2px; }

.lg-version {
  position: absolute;
  right: 26px;
  bottom: 22px;
  z-index: 1;
  font-size: 14px;
  color: #6b737b;
}

/* ---------- Colonne centrale ---------- */
.lg-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 16px 24px;
}

/* Logo */
.lg-logo {
  display: flex;
  align-items: center;
  gap: 32px;
}
.lg-mark {
  width: 104px;
  height: auto;
  flex: none;
}
.lg-mark .mk-black { fill: var(--lg-ink); }
.lg-mark .mk-red { fill: var(--lg-red); }

.lg-wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--lg-display);
  line-height: 1;
  color: var(--lg-ink);
}
.lg-groupe {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-right: -.32em;
}
.lg-biasi {
  margin-top: 4px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--lg-red);
  font-size: 76px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-right: -.1em;
  padding-right: .1em;
  text-transform: uppercase;
}
.lg-prod {
  margin-top: 6px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .035em;
  text-align: right;
  white-space: nowrap;
}
.lg-prod em { font-style: normal; color: var(--lg-red); }

.lg-tagline {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  color: #4b535b;
}
.lg-tagline span { margin: 0 .5em; }

/* Carte de connexion */
.lg-card {
  width: 100%;
  max-width: 540px;
  margin-top: 42px;
  padding: 42px 41px 40px;
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(30,38,46,.12), 0 2px 6px rgba(30,38,46,.06);
}
.lg-card h1 {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  color: var(--lg-ink);
}
.lg-sub {
  margin: 12px 0 32px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--lg-muted);
}

.lg-alert {
  margin: -12px 0 18px;
  padding: 11px 14px;
  border: 1px solid #f3b8bb;
  border-radius: 8px;
  background: #fdeced;
  color: #a3050e;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.lg-field {
  position: relative;
  display: block;
  margin-bottom: 16px;
}
.lg-field input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 54px 0 58px;
  border: 1.5px solid var(--lg-line);
  border-radius: 9px;
  background: #fff;
  font: 500 17px/1 var(--lg-sans);
  color: var(--lg-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lg-field input::placeholder { color: #6b737b; font-weight: 400; }
.lg-field input:focus {
  border-color: var(--lg-red);
  box-shadow: 0 0 0 3px rgba(227,6,19,.14);
}
.lg-ico {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  fill: none;
  stroke: #1f2429;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.lg-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}
.lg-eye:focus-visible { outline: 2px solid var(--lg-red); outline-offset: 1px; }
.lg-eye svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #1f2429;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lg-eye .eye-closed { display: none; }
.lg-eye[aria-pressed="true"] .eye-open { display: none; }
.lg-eye[aria-pressed="true"] .eye-closed { display: block; }

.lg-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 56px;
  margin-top: 0;
  border: 0;
  border-radius: 7px;
  background: var(--lg-red);
  color: #fff;
  font: 600 18px/1 var(--lg-sans);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(227,6,19,.22);
  transition: background .15s, transform .05s;
}
.lg-submit:hover { background: var(--lg-red-dark); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(227,6,19,.35); outline-offset: 2px; }
.lg-submit svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Atouts */
.lg-features {
  display: flex;
  justify-content: center;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}
.lg-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  padding: 0 10px;
  text-align: center;
}
.lg-features li + li { border-left: 1.5px solid #b9bfc5; }
.lg-features svg {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--lg-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lg-features strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--lg-ink);
}
.lg-features span {
  margin-top: 5px;
  font-size: 15px;
  color: #2c3238;
}

/* Pied de page */
.lg-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 56px;
  font-size: 17px;
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1.6;
}
.lg-footer-top {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  color: #2c3238;
}
.lg-footer-top::before,
.lg-footer-top::after {
  content: "";
  width: 66px;
  height: 1.5px;
  background: #4b535b;
}
.lg-footer-bottom {
  font-weight: 700;
  color: var(--lg-red);
}

/* ---------- Adaptation écrans ---------- */
@media (max-height: 900px) and (min-width: 761px) {
  .lg-main { padding-top: 28px; }
  .lg-mark { width: 82px; }
  .lg-groupe { font-size: 32px; }
  .lg-biasi { font-size: 62px; }
  .lg-prod { font-size: 34px; }
  .lg-tagline { margin-top: 16px; }
  .lg-card { margin-top: 30px; padding: 34px 40px 34px; }
  .lg-sub { margin-bottom: 26px; }
  .lg-features { margin-top: 28px; }
  .lg-footer { padding-top: 32px; }
}

@media (max-height: 800px) and (min-width: 761px) {
  .lg-main { padding-top: 18px; padding-bottom: 18px; }
  .lg-mark { width: 72px; }
  .lg-logo { gap: 24px; }
  .lg-groupe { font-size: 28px; }
  .lg-biasi { font-size: 54px; border-bottom-width: 2px; }
  .lg-prod { font-size: 30px; margin-top: 4px; }
  .lg-tagline { margin-top: 10px; font-size: 13px; }
  .lg-card { margin-top: 22px; padding: 28px 38px 30px; }
  .lg-card h1 { font-size: 28px; }
  .lg-sub { margin: 8px 0 20px; font-size: 15px; }
  .lg-field { margin-bottom: 12px; }
  .lg-field input, .lg-submit { height: 50px; }
  .lg-features { margin-top: 20px; }
  .lg-features svg { width: 36px; height: 36px; margin-bottom: 8px; }
  .lg-footer { padding-top: 18px; font-size: 15px; }
}

@media (max-width: 1100px) {
  .lg-values { display: none; }
  .lg-services { right: 24px; font-size: 12px; }
}

@media (max-width: 760px) {
  .lg-services, .lg-version { display: none; }
  .lg-band-top { width: 18vw; height: 9vh; }
  .lg-band-bottom { width: 16vw; height: 16vh; }
  .lg-watermark { width: 60vw; left: -8vw; top: 8vh; }
  .lg-main { padding: 32px 16px 28px; }
  .lg-logo { gap: 16px; }
  .lg-mark { width: 60px; }
  .lg-groupe { font-size: 22px; }
  .lg-biasi { font-size: 44px; padding-bottom: 5px; border-bottom-width: 2px; }
  .lg-prod { font-size: 24px; margin-top: 6px; }
  .lg-tagline { font-size: 11px; letter-spacing: .2em; }
  .lg-card { margin-top: 28px; padding: 30px 20px 26px; border-radius: 16px; }
  .lg-card h1 { font-size: 28px; }
  .lg-sub { font-size: 14px; margin-bottom: 24px; }
  .lg-features li { width: auto; flex: 1; padding: 0 8px; }
  .lg-features svg { width: 34px; height: 34px; margin-bottom: 10px; }
  .lg-features strong, .lg-features span { font-size: 13px; }
  .lg-footer { padding-top: 36px; font-size: 14px; }
  .lg-footer-top::before, .lg-footer-top::after { width: 40px; }
}

@media (max-width: 380px) {
  .lg-groupe { font-size: 18px; }
  .lg-biasi { font-size: 36px; }
  .lg-prod { font-size: 20px; }
  .lg-mark { width: 50px; }
}
