/* =========================================================================
   PA.CSS -- Portail Paris Aeroport (G6.1 ecran 3.1 login + futurs 3.2-3.5)
   Standalone (D213=alpha) -- pattern tech.css : silo isole, charte PA blue.
   Variables :root dupliquees depuis admin.css :root pour autonomie module.
   ========================================================================= */

:root {
  /* Couleurs officielles Paris Aeroport */
  --pa-blue:           #1F2D5A;
  --pa-blue-light:     #E5E8F0;
  --pa-blue-dark:      #14204A;
  --pa-red:            #E94E1B;

  /* Couleurs SORA (accent secondaire orange) */
  --sora-orange:       #E85D2C;
  --sora-orange-light: #FEEBE0;

  /* Niveaux de gris */
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

/* Reset minimal */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--pa-blue);
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* =========================================================================
   Login 3.1 -- split 2 cols (D213=alpha layout)
   ========================================================================= */

.pa-login-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--pa-blue) 0%, var(--pa-blue-dark) 100%);
}

/* Cote gauche : visuel d'accueil */
.pa-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.pa-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(232, 93, 44, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.pa-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 480px;
}

.pa-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pa-logo-sep {
  font-size: 24px;
  color: var(--sora-orange);
  font-weight: 300;
}

.pa-tagline {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.pa-tagline-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Cote droite : formulaire ou message succes */
.pa-form-side {
  flex: 0 0 480px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 48px 32px;
}

.pa-form-header {
  margin-bottom: 32px;
}

.pa-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.pa-form-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.pa-flash {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.pa-flash-error {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 3px solid #DC2626;
}

.pa-flash-success {
  background: #D1FAE5;
  color: #065F46;
  border-left: 3px solid #10B981;
}

.pa-form-group {
  margin-bottom: 20px;
}

.pa-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.pa-label .pa-required {
  color: var(--pa-red);
  margin-left: 2px;
}

.pa-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: white;
  color: var(--gray-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pa-input:focus {
  outline: none;
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 3px rgba(31, 45, 90, 0.15);
}

.pa-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

.pa-btn-primary {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: var(--pa-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.pa-btn-primary:hover {
  background: var(--pa-blue-dark);
}

.pa-info-block {
  margin-top: 24px;
  padding: 14px;
  background: var(--pa-blue-light);
  border-radius: 6px;
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.5;
}

.pa-info-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pa-blue);
}

/* State post-submit inline : "Email envoye" */
.pa-confirmation {
  text-align: center;
  padding: 24px 0;
}

.pa-confirmation-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.pa-confirmation-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.pa-confirmation-text {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.6;
}

.pa-confirmation-text strong {
  color: var(--pa-blue);
}

.pa-confirmation-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--pa-blue);
  text-decoration: none;
}
.pa-confirmation-back:hover { text-decoration: underline; }

/* Footer */
.pa-footer {
  font-size: 11px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.6;
  margin-top: 24px;
}

.pa-footer a {
  color: var(--gray-500);
  text-decoration: none;
}
.pa-footer a:hover { text-decoration: underline; color: var(--pa-blue); }

/* =========================================================================
   Mobile -- stack vertical (D213 media-query 768px)
   ========================================================================= */

@media (max-width: 768px) {
  .pa-login-container {
    flex-direction: column;
  }

  .pa-visual {
    flex: 0 0 auto;
    padding: 40px 24px;
  }

  .pa-logo {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .pa-tagline {
    font-size: 22px;
  }

  .pa-form-side {
    flex: 1 1 auto;
    padding: 32px 24px;
  }
}

/* ========================================================================
 * D222 jalon 1f -- Badges statut intervention cote PA (ecran 3.4)
 * ------------------------------------------------------------------------
 * Libelles PA-friendly D222-1f-3 (vocabulaire client, pas jargon SORA interne).
 * Couleurs accessibles WCAG AA (contraste >=4.5:1 fond/texte).
 * Design system PA distinct (pas reutilisation classes admin-* ou tech-*).
 * ======================================================================== */
.pa-statut {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  vertical-align: middle;
  white-space: nowrap;
}
.pa-statut-planifie   { background: #DBEAFE; color: #1E40AF; }
.pa-statut-en_cours   { background: #FED7AA; color: #9A3412; }
.pa-statut-termine    { background: #BBF7D0; color: #14532D; }
.pa-statut-reporte    { background: #E5E7EB; color: #374151; }
.pa-statut-impossible { background: #FECACA; color: #991B1B; }
.pa-statut-annule     { background: #E5E7EB; color: #6B7280; }
/* pa-statut-supprime non utilise : Repository filtre intervention.statut='supprime' -> rapport masque */
