:root {
  --bleu: #1a1a30;
  --cyan: #00bcd4;
  --vert: #8ebe23;
}

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.5;
  color: white;
  background-color: #232346;
}

header {
  background: var(--bleu);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.WOS {
  color: white;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
}

.WOS h1 {
  margin: 0;
  font-size: 1.8rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-wos {
  margin-left: auto;
  height: 50px;
  width: auto;
}

.logo-wos img {
  height: 100%;
  width: auto;
}

.logo a:hover img,
.logo-wos:hover img {
  transform: scale(1.1);
  transition: transform 0.2s;
}

.site {
  color: var(--cyan);
  font-weight: bold;
  font-size: 20px;
}

.entete {
  background: #252545;
  color: white;
  text-align: center;
  padding: 50px 20px;
  border-bottom: 5px solid var(--vert);
  margin-top: 20px;
}

.entete h1 {
  margin: 0;
  font-size: 2.5rem;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.section {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  scroll-margin-top: 160px;
}

.vert {
  color: var(--vert);
}
.cyan {
  color: var(--cyan);
}

.flex {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

.inverser {
  flex-direction: row-reverse;
}

.texte {
  flex: 1;
  text-align: justify;
}

.media,
.media-large {
  background: #eee;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
}

.media {
  flex: 1;
  min-height: 200px;
}
.media-large {
  width: 100%;
  height: 350px;
  margin-top: 20px;
}

.etape {
  text-align: justify;
}

.footer {
  background: var(--bleu);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  background-color: #36366d;
  margin-bottom: 0;
  gap: 15px;
}

nav a {
  margin: 0;
  text-decoration: none;
  color: white;
  font-weight: bold;
  background-color: var(--cyan);
  padding: 8px 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-size: 0.95rem;
}

nav a:hover {
  background-color: var(--vert);
}

.media img {
  max-width: 100%;
  border: 1px solid #ccc;
  cursor: pointer;
}

.media-large p {
  text-align: center;
  font-style: italic;
}

/* Lightbox (Popup Image) */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid white;
}
/* Media Queries pour Mobile */
@media (max-width: 768px) {
  /* Header : Optimisation pour tenir sur une ligne */
  header {
    padding: 10px 5px;
    gap: 5px;
    justify-content: space-between;
  }

  .logo {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
  }

  .logo img {
    height: 25px; /* Logos plus petits */
  }

  .logo-wos,
  .logo-wos img {
    height: 25px; /* Logo WoS plus petit */
    flex-shrink: 0;
  }

  .site {
    font-size: 0.7rem; /* Texte réduit pour éviter le débordement */
    white-space: nowrap;
  }

  .WOS {
    position: static;
    transform: none;
    flex-grow: 1;
    width: auto;
  }

  /* Ajustement du titre principal */
  .entete h1 {
    font-size: 1.5rem;
  }

  .entete {
    padding: 30px 15px;
  }

  /* Contenu principal en colonne */
  .flex,
  .inverser {
    flex-direction: column;
    gap: 20px;
  }

  /* Navigation : Boutons plus ergonomiques */
  nav a {
    margin: 0;
    flex-grow: 1; /* Les boutons remplissent l'espace */
    text-align: center;
  }
}

@media (min-width: 769px) {
  .sticky-container {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}

/* Styles pour la nouvelle section Résultats et Vidéo */
.video-container {
  margin: 30px 0;
  text-align: center;
}

.video-container video {
  max-width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.bibtex-block {
  background-color: var(--bleu);
  color: #ddd;
  padding: 20px;
  border: 1px solid var(--cyan);
  border-radius: 5px;
  font-family: "Courier New", Courier, monospace;
  white-space: pre;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-top: 20px;
}
