/* =======================
   VARIABLES
======================= */
:root {
  --bleu-fonce: #00515e;
  --bleu-moyen: #00515a;
  --orange: #d35400;
  --blanc: #ffffff;
}

/* =======================
   BASE
======================= */
body {
  color: var(--blanc);
  background-color: var(--bleu-fonce);
  font-family: sans-serif;
  line-height: 1.5;
  text-align: justify;
  margin: 0;
  padding: 0;
}

h1, h2 {
  margin-top: 0;
}

/* =======================
   STRUCTURE
======================= */
header {
  background-color: var(--bleu-moyen);
  padding: 1em;
}

main {
  max-width: 800px;
  margin: auto;
  padding: 1em;
}

section {
  margin-bottom: 2em;
}

/* =======================
   NAVIGATION
======================= */
nav {
  display: flex;
  justify-content: center;
  background-color: var(--orange);
  padding: 1em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
}

nav a {
  color: var(--bleu-fonce);
  font-weight: bold;
  font-style: italic;
  font-size: 16px;
  text-decoration: none;
}

/* =======================
   LISTES
======================= */
dl {
  margin: 0;
  padding: 0;
}

dt {
  font-weight: bold;
  color: var(--orange);
}

/* =======================
   AUDIO
======================= */
audio {
  display: block;
  margin: auto;
  width: 80%;
  height: 30px;
  background-color: var(--bleu-moyen);
  border: none;
  border-radius: 5px;
  padding: 10px;
}

/* Contrôles audio (Webkit) */
audio::-webkit-media-controls-panel {
  background-color: var(--orange);
  border-radius: 5px;
}

audio::-webkit-media-controls-start-playback-button,
audio::-webkit-media-controls-pause-button {
  background-color: var(--orange);
  border-radius: 50%;
  height: 40px;
  width: 40px;
}

audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  height: 4px;
  background-color: var(--orange);
  border-radius: 2px;
}

audio::-webkit-media-controls-volume-slider {
  background-color: var(--orange);
  border-radius: 10px;
}

audio::-webkit-media-controls-volume-slider::-webkit-slider-thumb {
  background-color: red;
  height: 20px;
  width: 20px;
  border-radius: 50%;
}

/* =======================
   BOUTON RETOUR HAUT
======================= */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  font-size: 28px;
  color: var(--blanc);
  background-color: var(--orange);
  padding: 10px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  z-index: 9999;
}

#back-to-top:hover {
  background-color: var(--bleu-moyen);
}

/* =======================
   RESPONSIVE MOBILE
======================= */
@media (max-width: 768px) {

  body {
    font-size: 16px;
    text-align: left;
  }

  h1 {
    font-size: 1.6em;
    text-align: center;
  }

  h2 {
    font-size: 1.3em;
  }

  main {
    padding: 0.8em;
  }

  section {
    margin-bottom: 1.5em;
  }

  /* Navigation mobile */
  nav {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    font-size: 18px;
    padding: 10px;
    display: block;
  }

  /* Audio mobile */
  audio {
    width: 100%;
    height: auto;
    padding: 8px;
  }

  /* Bouton retour haut */
  #back-to-top {
    bottom: 15px;
    right: 15px;
    font-size: 24px;
    padding: 8px;
  }
}

/* =======================
   VIDEO YOUTUBE CENTRÉE
======================= */
.youtube-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 2em auto;
  padding-bottom: 56.25%;
  height: 0;
}

.youtube-container img,
.youtube-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =======================
   TITRES DE VIDÉOS
======================= */
.video-block {
  text-align: center;
  margin: 2.5em 0;
}

.video-title {
  font-size: 1.2em;
  margin-bottom: 0.8em;
  color: var(--orange);
}
@media (max-width: 768px) {
  .video-title {
    font-size: 1.1em;
  }
}
