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

/* Structure globale */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* En-tête */
header {
  background: radial-gradient(circle, #55b1ee 0%, #3399ff 60%, #1e3a8a 100%);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2rem;
}

/* Contenu principal */
main {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Titres */
h2 {
  font-size: 1.5rem;
  color: #3399ff; /* bleu clair */
  margin-bottom: 15px;
}

/* Formulaire */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

input[type="text"], button {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button {
  background-color: #3399ff; /* bleu clair */
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #238be6; /* un peu plus foncé au survol */
}

/* Dropdown */
ul.dropdown {
  list-style: none;
  border: 1px solid #ccc;
  max-height: 600px;
  overflow-y: auto;
  background: white;
  position: absolute;
  width: 100%;
  z-index: 10;
  border-radius: 6px;
}

ul.dropdown li {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

ul.dropdown li:hover {
  background-color: #f0f0f0;
}

/* Résultats */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: #e9f4ff; /* fond bleu très clair */
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 4px solid #3399ff; /* bleu clair */
}


table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
}
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}

.page-btn {
  background-color: #3b82f6;  /* bleu */
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.page-btn:hover {
  background-color: #2563eb;  /* bleu plus foncé */
}

.page-info {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

/* ==== Bloc « Exporter en » ==== */
/* 1) Formulaire aligné strictement sur une ligne */
.export-form {
  display: flex;
  align-items: center;  /* tous les éléments alignés verticalement */
  gap: 1rem;
  flex-wrap: nowrap;    /* empêche le bouton de passer en dessous */
}

/* 2) Label plus grand */
.export-label {
  font-size: 1.2rem;    /* augmente la taille du texte */
  font-weight: 700;
  color: #1e3a8a;
  white-space: nowrap;  /* empêche le label de sauter à la ligne */
}

/* 3) Select légèrement plus grand (hauteur) */
.export-select {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #3399ff;
  border-radius: 6px;
  background: white;
  min-width: 8rem;      /* largeur minimale */
  white-space: nowrap;
}

/* 4) Bouton à côté du select */
.export-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #3399ff;
  color: white;
  border-radius: 6px;
}

/* Adapter le conteneur pour ne pas trop de padding en bas */
.export-card {
  margin-top: 2rem;
  padding: 1rem;
  background: #f0f8ff;
  border: 1px solid #cce4f6;
  border-radius: 8px;
}

/* Formulaire plein largeur */
#search-form {
  width: 100%;
}

/* 3) Tous les champs et le bouton prennent 100% */
#search-form input,
#search-form select,
#search-form button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
}
.autocomplete-wrapper {
position: relative;
width: 100%;
margin-bottom: 1rem;
}

.autocomplete-wrapper .dropdown {
position: absolute;
top: 100%;
left: 0;
width: 100%;     
background: #fff;
border: 1px solid #ccc;
border-top: none;
border-radius: 0 0 6px 6px;
max-height: 300px;
overflow-y: auto;
z-index: 1000;
}

.autocomplete-wrapper .dropdown li {
padding: 0.5rem 1rem;
cursor: pointer;
}

.autocomplete-wrapper .dropdown li:hover {
background: #f0f8ff;
}

.source-identification {
  margin-bottom: 1.5rem;
}
.source-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.source-cards .card {
  background: #eef6ff;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  text-align: center;
}

.source-cards .card strong {
  font-size: 1.1rem;
  color: #444;
  font-weight: 600;
}

.source-cards .card span {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: #111;
  word-break: break-word; /* évite le débordement si Source ID est long */
}

/* -------------------------------------------------------------------
   Style pour la  vignette sso_source details 
   ------------------------------------------------------------------- */
.source-full-card {
  background: #f5faff;
  border: 1px solid #d0e7ff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.source-full-card h3 {
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.plot-container {
  text-align: center;
  margin: 2rem auto;
  max-width: 1000px;
}

.plot-container img {
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.figure-container img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.figures-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.figure-container {
  flex: 1;
  text-align: center;
  position: relative;
  display: inline-block;
  max-width: 600px;
}

.figure-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}
.no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; 
  height: 325px;         /* même hauteur que les figures */
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  color: #666;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
}

.logo-gaia {
  border: none;
  outline: none;
  background: transparent;
  position: absolute;
  bottom: 30px; 
  right: 10px;
  width: 10%;
  max-width: 70px;
  opacity: 0.85;
}

/* Navigation horizontale */
.top-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;              /* liens en ligne */
  justify-content: flex-end;   /* alignement à droite */
  gap: 30px;                  /* espace entre liens */
}

.top-nav li {
  display: inline;
}

.top-nav a {
  color: rgb(90, 114, 148);
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.3s,border-color 0.3s;
}

.top-nav a:hover {
  
  color: #0a1f50;
}