:root {
  --accent: #2970ab;
  --muted: #6b7280;
  --bg: #f7f7fb;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  color: #111;
  background: var(--bg);
  line-height: 1.5;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}
.site-header {
  background: #2970ab;
  border-bottom: 2px solid #000000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.3rem;
}
.main-nav a {
  margin-left: 18px;
  color: #ffffff;
  text-decoration: none;
}
.main-nav a.active {
  font-weight: 600;
  color: var(--accent);
}
.hero {
  padding: 48px 0;
  padding-bottom: 0px !important;
  background: linear-gradient(90deg, rgba(11,110,253,0.06), rgba(11,110,253,0.02));
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem;
  margin: 0;
}

.cta {
  margin-top: 16px;
}
.button {
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 8px;
}

.button_aircraft {
  display: inline-block;
  padding: 10px 16px;
  background: grey;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 8px;
  transition: background-color 0.3s, transform 0.2s;
}
.button_aircraft:hover {
  background: #444;
  transform: translateY(-4px);
}

.button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(11,110,253,0.15);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.features article {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
}
.latest .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.card {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.aircraft-card {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}
.aircraft-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  }
  .aircraft-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  }

  .aircraft-hero img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 2%;
  }

  .aircraft-hero::before {
  content: "";
  display: block;
  position: absolute;
  left: calc(50% + 20px);
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  z-index: 1;
  transform: translateX(-1px);
  }

  .aircraft-hero .hero-text {
  flex: 1;
  }

  @media (max-width: 800px) {
  .aircraft-hero::before {
    display: none;
  }
  .aircraft-hero img {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 180px;
  }
  }

.cabin-plan img {
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 18px;
}
.team {
  margin-top: 18px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
}

.legals {
  margin-top: 18px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
}
.routes-table, .flights-table {
  width: 100%;
  border-collapse: collapse;
  background: #c5d9e6;
  border-radius: 20px;
  overflow: hidden;
}
.routes-table thead tr, .flights-table thead tr {
  background: #2b3f68;
  color: white;
}
.routes-table th, .routes-table td, .flights-table th, .flights-table td {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

/* Fond pour la colonne "Statut" (7ème colonne) - exclut l'en-tête */
.flights-table tbody td:nth-child(7), .flight-table tbody td:nth-child(7) {
  /* Par défaut, pas de fond rouge — la classe .cancelled gèrera l'état annulé */
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

/* Animation clignotante pour statut annulé : de rouge à la couleur d'accent (sans transition) */
@keyframes fids-blink {
  0% { background: #e60000; }
  50% { background: #001a5a; }
  100% { background: #e60000; }
}

.flights-table tbody td:nth-child(7).cancelled,
.flight-table tbody td:nth-child(7).cancelled {
  background: #e60000;
  /* Utiliser steps(1) pour un basculement instantané (pas de fondu) */
  animation: fids-blink 2s steps(1, start) infinite;
}
.pilot-profile {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  border: 1px dashed #1a1a1a;
}
.pilot-photo {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
}
.stat-grid {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.bank-grid {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.stat {
  background: #c5d9e6;
  padding: 12px;
  border-radius: 8px;
  flex: 1;
  text-align: center;
}

.stat:not(.double-stat) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bank {
  background: #d7f0d3;
  padding: 12px;
  border-radius: 0px;
  flex: 1;
  text-align: center;
}

.site-footer {
  margin-top: 28px;
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid #e6e9ef;
}
.footer-nav a {
  margin-left: 12px;
  color: var(--muted);
  text-decoration: none;
}
@media (max-width: 800px) {
  .aircraft-hero {
    flex-direction: column;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .main-nav a {
    margin-left: 8px;
  }
}

.card-grid a, .aircraft-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

nav a {
  color: white;
  margin: 0 1px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  color: var(--accent);
}

nav a.active {
  background-color: #ffffff;
  transform: translateY(0);
  color: black !important;
}

.double-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.double-stat .substat {
  text-align: center;
}

.double-stat .separator {
  width: 2px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.table-pagination {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.table-pagination button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.table-pagination button:hover:not(:disabled) {
  background-color: #1e5e94;
}

.table-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.flights-table th:nth-child(4),
.flights-table td:nth-child(4) {
  text-align: center;
}

.pilot-profile {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.pilot-photo {
  width: 150px;
  border-radius: 8px;
}

.pilot-info {
  flex: 1;
}

.pilot-card {
  width: 15rem;
  align-self: center;
}

@media (max-width: 768px) {
  .pilot-profile {
  flex-direction: column;
  align-items: center;
  }

  .pilot-card {
  margin-top: 1rem;
  align-self: center;
  }
}

.lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.lightbox.show img {
  transform: scale(1);
}

.aircraft-hero .hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero-text .characteristics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.hero-text .characteristics div {
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  background-color: #f0f0f0;
}

.aircraft {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  align-items: center;
  justify-content: center;
}

.aircraft-cabin-container {
  max-width: 500px;
  height: 50vh;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 12px;
}

.aircraft-cabin {
  display: block;
  width: 100%;
  height: auto;
}

.aircraft-overview {
  position: relative;
  width: 150px;
  height: 50vh;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.aircraft-overview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.reservation-block.compact {
  background: #f0f8ff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  font-family: sans-serif;
  max-width: 750px;
  margin: 30px auto;
}

.trip-type {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.trip-type label {
  font-size: 14px;
  cursor: pointer;
}

.horizontal-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.field-group {
  flex: 1;
  min-width: 120px;
  position: relative;
}

.field-group input,
.field-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.button-wrapper {
  flex: 0 0 auto;
  margin-left: auto;
  background: #cce0ff;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.btn-reservation {
  padding: 10px 18px;
  min-width: 120px;
  background: #0077cc;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-reservation:hover {
  background: #005fa3;
}

.extra-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.extra-fields.show {
  max-height: 200px;
  opacity: 1;
}

.return-date-group {
  flex: 1;
  display: none;
}

.return-date-group.show {
  display: block;
}

@media (max-width: 750px) {
  .horizontal-row, .extra-fields {
  flex-direction: column;
  align-items: stretch;
  }
  .button-wrapper {
  margin-left: 0;
  width: 100%;
  }
}

.last-landing {
  background: linear-gradient(90deg, rgba(11,110,253,0.05), rgba(11,110,253,0.02));
  text-align: center;
}

.last-landing h2 {
  font-size: 2rem;
}

.landing-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 20px 30px;
}

.info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: #0b234a;
}

.info .label {
  font-weight: 600;
  color: #6c757d;
}

.info i {
  font-size: 1.2rem;
  color: #0b6efd;
}

.status-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.status-pill.on-time {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgb(40, 167, 70);
}

.status-pill.delayed {
  background: rgba(255, 193, 7, 0.15);
  color: #856404;
  border: 1px solid rgba(255,193,7,0.4);
}

.landing-video {
  width: 100%;
  max-width: 700px;
}

.landing-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 768px) {
  .landing-summary {
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  }
}

.value.weather {
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(26, 67, 114, 0.884);
  color: white;
  border: 1px solid grey;
  overflow: hidden;
}

.value.weather span {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

.value.weather span + span {
  border-left: 1px dashed grey;
}

.value.airport {
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(107, 107, 107, 0.171);
  color: black;
  border: 1px solid grey;
  overflow: hidden;
  height: 30px;
  line-height: 30px;
}

.value.airport span {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

.value.airport span + span {
  border-left: 1px dashed grey;
}

.video-legend-compact {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8rem;
}

.video-legend-compact .legend-item {
  display: inline-flex;
  align-items: center;
  color: #000000;
}

.video-legend-compact .legend-item i {
  margin-right: 2px;
}

.video-legend-compact .condition {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  margin-right: 2px;
  border: 1px solid #999;
}

.video-legend-compact .condition.good { background-color: lime; }
.video-legend-compact .condition.medium { background-color: orange; }
.video-legend-compact .condition.bad { background-color: red; }

.livrees {
  text-align: center;
}

.livrees .logo-revert {
  width: 80%;
  margin-top: 50px;
  max-width: 500px;
}

.legal-chapter {
  margin-top: 40px;
  padding: 16px;
  border-left: 4px solid #0073e6;
  background: #f9f9f9;
  border-radius: 8px;
}

.legal-chapter h2 {
  margin-top: 0;
  color: #0073e6;
}

.legal-chapter p {
  line-height: 1.6;
  margin-bottom: 12px;
}

.legals {
  margin-top: 50px;
  background: #dadada;
  padding: 16px;
  border-radius: 10px;
  position: relative;
}

.legals h1 {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: -20px;
}

.legals .legal-stamp {
  position: absolute;
  top: -3%;
  right: -5%;
  width: 30%;
  pointer-events: none;
  z-index: 1;
}

.disclaimer-with-fursona {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50%;
  margin: 2em auto 0 auto;
  font-size: 1.1em;
  line-height: 1.4em;
}

.disclaimer-with-fursona img {
  height: 10em;
  margin-right: 1em;
}

.airport-panel {
    background: #001a5a;
    color: white;
    font-family: Arial, sans-serif;
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Header */
.panel-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 28px;
    font-weight: bold;
    background: #001a5a;
    color: #f1c40f;
    overflow: hidden;
}

.icon {
    width: 32px;
    margin-right: 15px;
}

/* Tableau */
.flight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

.flight-table thead {
    background: #f1c40f;
    color: #00154a;
}

.flight-table th,
.flight-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f1c40f;
    text-align: left;
}

.airline-logo {
    height: 30px;
    vertical-align: middle;
    margin-left: 10px;
    margin-right: -90px;
}

/* VOL EN GRAS */
.flight-table td:nth-child(1) {
    font-weight: bold;
}

.flight-table td:nth-child(6) {
    text-align: center;
}

/* STATUT EN ARIAL BLACK FULL MAJ */
.flight-table td:nth-child(7) {
    font-family: "Arial Black", Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Effet split-flap */
.splitflap {
    display: inline-block;
    position: relative;
    perspective: 300px;
}

.splitflap.flip {
    animation: flip 0.7s ease-in-out;
}

@keyframes flip {
    0%   { transform: rotateX(0deg); }
    40%  { transform: rotateX(-90deg); opacity: 0; }
    60%  { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

/* Porte : fond jaune, texte centré, un peu plus gros et gras */
.gate-cell {
    background-color: #ffffff; /* jaune */
    color: #000000;             /* texte sombre */
    font-weight: bold;
    text-align: center;
    font-size: 30px;
    line-height: 1;
}

.flight-table th.center, 
.flight-table td.center {
    text-align: center;
}


.flight-table th.gate-header {
    text-align: center;
}
