.gate { width: 100%; max-width: 100%; min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 42%) minmax(0, 1fr); background: #fff; overflow-x: clip; }
.gate-brand {
  background: linear-gradient(165deg, #0A2540 0%, #12385c 55%, #0A2540 100%);
  color: #fff;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.gate-brand a { color: #fff; text-decoration: none; }
.gate-logo { display: flex; align-items: center; gap: 12px; }
.gate-logo img { width: 42px; height: 42px; }
.gate-logo strong { display: block; font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.05rem; }
.gate-logo span { display: block; color: rgba(255,255,255,.65); font-size: .78rem; }
.gate-brand h2 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 2rem; line-height: 1.2; margin: 18px 0 12px; }
.gate-brand p { color: rgba(255,255,255,.78); max-width: 34rem; }
.gate-points { list-style: none; display: grid; gap: 12px; margin-top: 28px; padding: 0; }
.gate-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.88); font-size: .95rem; }
.gate-points i { width: 22px; height: 22px; border-radius: 50%; background: #00A86B; display: inline-flex; align-items: center; justify-content: center; font-style: normal; flex: none; font-size: .75rem; }
.gate-panel { display: flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; padding: 32px 20px; background: #F7F9FC; }
.gate-card { width: min(480px, 100%); max-width: 100%; min-width: 0; background: #fff; border: 1px solid #E2E8F0; border-radius: 20px; box-shadow: 0 16px 40px rgba(10,37,64,.08); padding: 28px 26px; }
.gate-card h1 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.7rem; margin: 0 0 6px; color: #0A2540; }
.gate-card .lead { color: #4A5568; margin: 0 0 18px; line-height: 1.55; }
.gate-brand .gate-kicker {
  display: inline-flex; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 168, 107, .16); color: #b7f0d6;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.gate-card:has(#inscription-fermee:not([hidden])) { width: min(560px, 100%); }
.attente-kicker {
  display: inline-flex; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  background: #E8F9F1; color: #08784d;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.attente-etapes { list-style: none; margin: 4px 0 22px; padding: 0; }
.attente-etapes li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start;
  padding: 14px 0; border-top: 1px solid #E2E8F0;
}
.attente-etapes li:first-child { border-top: 0; padding-top: 4px; }
.attente-etapes li > span {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #F7F9FC; color: #4A5568; border: 1px solid #E2E8F0;
  font-size: .78rem; font-weight: 700;
}
.attente-etapes .fait > span { background: #0A2540; color: #fff; border-color: #0A2540; }
.attente-etapes .cours > span { background: #E8F9F1; color: #08784d; border-color: #C6F0DE; }
.attente-etapes strong { display: block; color: #0A2540; font-size: .95rem; }
.attente-etapes p { margin: 3px 0 0; color: #4A5568; font-size: .88rem; line-height: 1.45; }
.attente-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.attente-actions .btn { text-decoration: none; }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gate-grid .wide { grid-column: 1 / -1; }
.secret { position: relative; }
.secret input { padding-right: 46px; }
.secret button {
  position: absolute; right: 8px; top: 34px; border: 0; background: transparent; color: #4A5568;
  font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.rules { display: grid; gap: 4px; margin: -6px 0 12px; font-size: .78rem; color: #4A5568; }
.rules span.ok { color: #08784d; }
.form-ok { display: none; background: #E8F8F1; color: #08784d; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: 9.5rem; border: 1px solid var(--border); border-radius: 12px; padding: 0 8px; font: inherit; background: #fff; color: var(--text); }
.phone-row input { flex: 1; }
.captcha { width: 100%; max-width: 100%; margin: 4px 0 12px; min-height: 0; container-type: inline-size; overflow: hidden; }
.captcha > div { width: 300px; zoom: min(1, calc(100cqi / 300px)); }
.souvenir { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: .9rem; color: #0A2540; font-weight: 600; }
.souvenir input { width: 16px; height: 16px; accent-color: #00A86B; }
.acceptation { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; font-size: .9rem; line-height: 1.45; color: #0A2540; }
.acceptation[hidden],
.lead[hidden] { display: none !important; }
.acceptation input { width: 16px; height: 16px; margin-top: 3px; accent-color: #00A86B; flex: none; }
.acceptation a { color: #08784d; font-weight: 700; }
@media (min-width: 861px) {
  .gate-scroll { height: 100vh; overflow: hidden; }
  .gate-scroll .gate-brand { height: 100vh; overflow-y: auto; }
  .gate-scroll .gate-panel { height: 100vh; overflow-y: auto; align-items: flex-start; }
  .gate-scroll .gate-card { margin: 28px 0 48px; }
}
.gate-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .88rem; }
.gate-links a { color: #08784d; font-weight: 700; text-decoration: none; }
button[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 860px) {
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate-brand { padding: 22px 20px; }
  .gate-brand h2, .gate-points, #pitch-ferme { display: none; }
  .gate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .gate-panel { padding: 20px 12px; }
  .gate-card { padding: 22px 14px; }
}

/* Onglets Entreprise / Client */
.onglets-acces { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: #EEF2F6; border-radius: 12px; padding: 4px; margin: 0 0 22px; }
.onglets-acces button { height: 40px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: .95rem; font-weight: 600; color: #6B778C; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.onglets-acces button:hover { color: #0A2540; }
.onglets-acces button[aria-selected="true"] { background: #fff; color: #0A2540; box-shadow: 0 1px 3px rgba(10,37,64,.14); }
.onglets-acces button:focus-visible { outline: 2px solid #00A86B; outline-offset: 2px; }
[data-panneau][hidden] { display: none !important; }
.gate-sans-compte { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: 14px; background: #F0FBF6; border: 1px solid #C8F0DE; font-size: .88rem; color: #0A2540; line-height: 1.45; }
.gate-sans-compte strong { display: block; margin-bottom: 2px; }
.gate-sans-compte a { color: #08784d; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gate-sans-compte svg { flex: none; margin-top: 2px; }

.field .consigne { font-size: .75rem; color: #6B778C; line-height: 1.4; }
.field[hidden] { display: none !important; }

/* Session déjà ouverte : accès direct à l’espace */
.session-ouverte { display: flex; flex-direction: column; gap: 14px; }
.session-ouverte h1 { margin: 0; }
.session-ouverte .lead { margin: 0 0 6px; }
.session-ouverte .btn-block { width: 100%; justify-content: center; }
