@font-face {
  font-family: Regatto;
  src: url("assets/brand/Regatto.ttf");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  background: #061b35;
  color: #fff;
  font-family: Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(10, 93, 165, .32), transparent 46%),
    radial-gradient(circle at 86% 10%, rgba(156, 212, 60, .2), transparent 30%),
    linear-gradient(180deg, #061b35 0%, #0a2742 54%, #071d34 100%);
}

.portal {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
}

.hero {
  display: grid;
  grid-template-columns: minmax(270px, .62fr) minmax(0, 1.38fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 14px;
}

.brand-panel,
.portal-login,
.access-section,
.support {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 20px 65px rgba(0, 0, 0, .24);
}

.brand-panel {
  min-height: 250px;
  display: grid;
  gap: 14px;
  place-items: center;
  align-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #ffffff, #eef5f9);
  color: #061b35;
  text-align: center;
}

.brand-panel img {
  width: min(340px, 78vw);
  max-height: 150px;
  object-fit: contain;
}

.brand-panel span {
  color: #0a5da5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.hero-copy {
  min-height: 250px;
  display: grid;
  align-content: end;
  padding: 10px 0 16px;
}

.hero-copy p,
.section-title span,
.support span {
  margin: 0;
  color: #9cd43c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: .94;
}

.hero-copy > span {
  display: block;
  max-width: 620px;
  margin-top: 14px;
  color: #c8d7e3;
  font-size: 16px;
  line-height: 1.45;
}

.hero-copy small {
  width: fit-content;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(156, 212, 60, .14);
  color: #d9efaa;
  font-weight: 800;
}

.portal-login,
.access-section {
  padding: 18px;
  margin-top: 12px;
}

.portal-login {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 18px;
  align-items: center;
}

.portal-login span {
  margin: 0;
  color: #9cd43c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-login h2 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.portal-login p {
  max-width: 560px;
  margin: 0;
  color: #c8d7e3;
  line-height: 1.45;
}

.portal-login form {
  display: grid;
  gap: 10px;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .1);
}

.portal-login label {
  display: grid;
  gap: 6px;
  color: #dce8f0;
  font-size: 12px;
  font-weight: 900;
}

.portal-login input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: #fff;
  color: #061b35;
  font: inherit;
  padding: 0 13px;
}

.portal-login button,
#portalLogout {
  min-height: 43px;
  border: 0;
  border-radius: 999px;
  background: #9cd43c;
  color: #061b35;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.portal-login output {
  min-height: 20px;
  color: #dce8f0;
  font-size: 12px;
  font-weight: 800;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

#portalLogout {
  padding: 0 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.access-card {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: #fff;
  color: #10243a;
  text-decoration: none;
  overflow: hidden;
}

.access-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #9cd43c;
}

.pilotage {
  background: linear-gradient(160deg, #061b35, #102d45);
  color: #fff;
}

.pilotage::before {
  background: #9cd43c;
}

.pilotage::after {
  background: #9cd43c;
  color: #061b35;
}

.pilotage small,
.pilotage span {
  color: #d8e8c8;
}

.administrative::before {
  background: #d1a342;
}

.administrative::after {
  background: #d1a342;
  color: #061b35;
}

.access-card::after {
  content: "Ouvrir";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #061b35;
  color: #9cd43c;
  font-size: 12px;
  font-weight: 900;
}

.access-card small {
  max-width: calc(100% - 76px);
  color: #526879;
  font-weight: 900;
  text-transform: uppercase;
}

.access-card strong {
  max-width: calc(100% - 76px);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
}

.access-card span {
  color: #0a5da5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.provider::before {
  background: #0a8fd8;
}

.station::before {
  background: #ffd23f;
}

.exploitation::before {
  background: #c8d7e3;
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
}

.support strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.support p {
  max-width: 560px;
  margin: 7px 0 0;
  color: #c8d7e3;
  line-height: 1.4;
}

.support nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.support a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: #9cd43c;
  color: #061b35;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 920px) {
  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal {
    padding: max(16px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  }

  .hero,
  .portal-login,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .hero-copy {
    min-height: auto;
  }

  .hero-copy {
    padding: 4px 0 0;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .access-card {
    min-height: 170px;
  }

  .support {
    display: grid;
  }
}
