:root{
  --bg-deep:#050b18;
  --bg-panel:#0d1b33;
  --border:#1c2e4a;
  --accent:#995c9e;
  --accent-dim:#c94317;
  --success:#34d399;
  --text:#f4f6fa;
  --text-muted:#7c8aa5;
  --text-date:#a8c5e3;
  --error:#ff6b6b;
}

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

html,body{ height:100%; }

body{
  background:var(--bg-deep);
  color:var(--text);
  font-family:'Inter', sans-serif;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  position:relative;
}

/* En-tête, persistant sur les deux états (verrouillé / déverrouillé) */
.site-header{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 32px;
  border-bottom:1px solid var(--border);
  background:var(--bg-deep);
  flex-shrink:0;
}

.site-header .brand-logo{
  height:30px;
  width:auto;
  display:block;
}

.site-header .brand-name{
  font-family:'Space Grotesk', sans-serif;
  font-size:13px;
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--text);
  border-left:1px solid var(--border);
  padding-left:14px;
}

/* Zone centrale : occupe l'espace restant, centre le contenu */
.page-body{
  position:relative;
  z-index:1;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}

.update-time{
  text-align: right; 
  padding: 10px
}

.parent-confidential-info{
  text-align: center;
  margin: 0px 10px 20px;
}

.confidential-info{
  border: 1px solid white; 
  padding: 10px; 
  color: darkred;
  font-weight: bold;
  display: inline-block; /* Ajuste la bordure à la taille exacte du texte */
  /* border-radius: 8px; /* Arrondit les coins (optionnel) */
}

/* Pied de page, persistant */
.site-footer{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:18px;
  padding:24px 32px;
  border-top:1px solid var(--border);
  background:var(--bg-deep);
  flex-shrink:0;
  flex-wrap:wrap;
}

.site-footer .footer-logo{
  height:70px;
  width:auto;
  display:block;
  opacity:0.9;
}

.site-footer .footer-text{
  font-size:11px;
  line-height:1.6;
  color:var(--text-muted);
}

.site-footer .footer-text strong{
  color:var(--text);
  font-weight:500;
}

@media (max-width: 640px){
  .site-header{ padding:16px 20px; }
  .site-header .brand-name{ font-size:11px; }
  .site-footer{ padding:20px; gap:12px; }
}

/* Illustrations de fusées en arrière-plan, décoratives */
.rocket-bg{
  position:fixed;
  bottom:-4%;
  z-index:0;
  pointer-events:none;
  opacity:0.22;
}

.rocket-bg .rocket-outline{
  stroke:var(--text-muted);
  stroke-width:1.5;
  fill:none;
}

.rocket-bg .rocket-accent{
  stroke:var(--accent);
  stroke-width:1.5;
  fill:none;
}

.rocket-left{
  left:10px;
  height:72vh;
  width:auto;
}

.rocket-right{
  right:10px;
  height:60vh;
  width:auto;
}

@media (max-width: 900px){
  .rocket-bg{ opacity:0.12; }
  .rocket-left{ height:50vh; left:10px; }
  .rocket-right{ height:42vh; right:10px; }
}

@media (max-width: 560px){
  .rocket-bg{ display:none; }
}

/* Champ d'étoiles en fond, discret */
#stars{
  position:fixed;
  inset:0;
  z-index:0;
}

/* Ligne de trajectoire ascendante, signature visuelle du "décollage" */
.trajectory{
  position:fixed;
  bottom:-10%;
  left:50%;
  width:1px;
  height:120%;
  background:linear-gradient(to top, var(--accent) 0%, rgba(255,90,31,0.15) 35%, transparent 70%);
  transform:translateX(-50%) rotate(3deg);
  transform-origin:bottom center;
  z-index:0;
  opacity:0.5;
}

.gate{
  position:relative;
  z-index:1;
  width:100%;
  max-width:420px;
  margin:24px auto;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:2px;
  padding:48px 40px 40px;
  box-shadow:0 40px 80px -20px rgba(0,0,0,0.6);
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Space Grotesk', sans-serif;
  font-size:11px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:20px;
}

.eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  background:var(--accent);
  border-radius:50%;
  box-shadow:0 0 12px 2px rgba(255,90,31,0.7);
  flex-shrink:0;
}

h1{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:28px;
  letter-spacing:0.01em;
  text-transform:uppercase;
  line-height:1.2;
  margin-bottom:12px;
}

.subtitle{
  color:var(--text-muted);
  font-size:14px;
  line-height:1.6;
  margin-bottom:32px;
}

form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

label{
  font-family:'Space Grotesk', sans-serif;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--text-muted);
}

input[type="password"]{
  width:100%;
  background:var(--bg-deep);
  border:1px solid var(--border);
  border-radius:2px;
  padding:14px 16px;
  color:var(--text);
  font-family:'Space Grotesk', sans-serif;
  font-size:16px;
  letter-spacing:0.08em;
  transition:border-color 0.2s ease;
}

input[type="password"]:focus{
  outline:none;
  border-color:var(--accent);
}

input[type="password"]:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

button{
  margin-top:8px;
  background:var(--accent);
  color:#0a0a0a;
  border:none;
  border-radius:2px;
  padding:14px 16px;
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:13px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.1s ease;
}

button:hover{ background:var(--accent-dim); }
button:active{ transform:scale(0.98); }
button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

.error-msg{
  display:none;
  color:var(--error);
  font-size:13px;
  margin-top:-4px;
}

.gate.shake{ animation:shake 0.4s ease; }

@keyframes shake{
  10%,90%{ transform:translateX(-2px); }
  20%,80%{ transform:translateX(4px); }
  30%,50%,70%{ transform:translateX(-8px); }
  40%,60%{ transform:translateX(8px); }
}

.footnote{
  margin-top:28px;
  font-size:11px;
  color:var(--text-muted);
  text-align:center;
  letter-spacing:0.04em;
}

/* Contenu protégé, affiché seulement après succès */
#content{
  display:none;
  position:relative;
  z-index:1;
  width:100%;
  max-width:940px;
  margin:24px auto;
  padding:48px 8px;
}

#content h2{
  font-family:'Space Grotesk', sans-serif;
  text-transform:uppercase;
  font-size:24px;
  letter-spacing:0.01em;
  margin-bottom:8px;
}

#content .lede{
  color:var(--text-muted);
  line-height:1.7;
  margin-bottom:36px;
  max-width:760px;
}

/* Tableau épuré : pas de bordures verticales, séparation horizontale fine */
.launch-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

.launch-table thead th{
  text-align:left;
  font-family:'Space Grotesk', sans-serif;
  font-weight:500;
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--accent);
  padding:0 16px 14px 0;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}

.launch-table tbody td{
  padding:18px 16px 18px 0;
  border-bottom:1px solid var(--border);
  vertical-align:center;
  color:var(--text);
  line-height:1.5;
}

.launch-table tbody tr:last-child td{
  border-bottom:none;
}

/* Lignes des missions futures : légèrement estompées pour les distinguer visuellement */
.launch-table tbody tr.is-upcoming td{
  color:var(--text-muted);
}

.launch-table td.date{
  font-family:'Space Grotesk', sans-serif;
  font-size:13px;
  color:var(--text-date);
  white-space:normal;
}

.launch-table td.mission{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  letter-spacing:0.02em;
  white-space:nowrap;
}

.launch-table tbody tr.is-upcoming td.mission{
  color:var(--text);
}

.launch-table td.launcher{
  color:var(--text-muted);
  white-space:nowrap;
}

.launch-table td.operator{
  color:var(--text);
  white-space:nowrap;
}

.launch-table td.client{
  color:var(--text);
}

.launch-table td.info-col{
    width: auto; /* TODO : to optimize */
}

.launch-table td.status{
  white-space:normal;
}

.status-badge{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:12px;
  letter-spacing:0.08em;
}

.status-success{ color:var(--success); }
.status-failure{ color:var(--accent); }
.status-pending{ color:var(--text-muted); }

.table-note{
  margin-top:20px;
  font-size:12px;
  color:var(--text-muted);
  line-height:1.6;
}

@media (max-width: 640px){
  .launch-table{ font-size:13px; }
  .launch-table thead{ display:none; }
  .launch-table tbody tr{
    display:block;
    padding:16px 0;
    border-bottom:1px solid var(--border);
  }
  .launch-table tbody tr:last-child{ border-bottom:none; }
  .launch-table tbody td{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:4px 0;
    border-bottom:none;
    white-space:normal;
    text-align:right;
  }
  .launch-table tbody td::before{
    content:attr(data-label);
    font-family:'Space Grotesk', sans-serif;
    font-size:10px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--accent);
    text-align:left;
    flex-shrink:0;
  }
}

@media (prefers-reduced-motion: reduce){
  .trajectory{ display:none; }
}
