/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background-color: #111;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay & CTA */
.hero .overlay {
  position: absolute;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0);
  padding: 40px;
  width: 100%;
}

.overlay-heading {
  position: absolute;
  top: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
}

.overlay-heading h1 {
  margin: 0;
  padding: 0.5em 1em;
  border: 2px solid white;
  width: 600px;
  background-color: rgb(0, 0, 0);
}

.overlay-bottom {
  text-align: center;
  color: #ffffff;
}

.overlay-bottom p {
  margin-bottom: 2.8em;
  padding: 0.5em 1em;
  border: 2px solid white;
  width: 600px;
  text-align: justify;
  background-color: rgb(0, 0, 0);
}

.overlay-bottom a {
  margin-bottom: 3em;
  padding: 0.5em 1em;
  border: 2px solid rgba(9, 0, 0, 0);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* glow */
  width: 150px;
  text-align: center;
}

.overlay-bottom {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

header.hero .overlay h1 {
  font-family: monospace;
  font-weight: 900;
  font-size: 3.5rem;
  color: black;
  letter-spacing: 2px;
  border: 4px solid rgba(76, 84, 76, 0.796);
  padding: 0.1em 0.5em;
  border-radius: 8px;
  display: inline-block;
  -webkit-text-stroke: 1px rgb(84, 95, 84);
}

header.hero .overlay p {
  font-family: monospace;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  letter-spacing: 2px;
}


h1 {
  font-size: 2rem;
  margin-bottom: 8em;
  word-spacing: 1rem;
  text-align: center;
}

h1 span {
  display: block;
  text-align: justify;
}

h2 {
  font-size: 3rem;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 10px;
  margin-bottom: 1em;
}

.project-thumb {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  background-color: #ff5e00;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  box-shadow: 0 0 8px #ff5e00aa;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #e44d00;
  box-shadow: 0 0 15px #ff5e00dd;
  outline: none;
}

/* Video Toggle Button */
#video-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid #575d5980; /* couleur orange */
  color: #475048;
  font-size: 28px;
  line-height: 0;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  user-select: none;
  margin-bottom: 2.2em;
}

#video-toggle:hover {
  background-color: #454d48b5;
  color: #111;
  box-shadow: 0 0 10px #d7dbd7;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  background-color: #3539352e;
  border-radius: 30px;
  border: 0 solid transparent;
}

.project-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease;
}

.project-thumb:hover {
  transform: scale(1.05);
}

/* Forms */
input,
textarea,
button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
  display: inline-block;
}

button[type="submit"] {
  background-color: #ff5e00;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #e44d00;
}

/* Footer */
footer {
  text-align: center;
  padding: 60px;
  background-color: #000;
  font-size: 0.9em;
  background: url('img/footersc1.jpg') no-repeat center top/cover;
}

/* Player audio bas de page */
#volume-bar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222229e8;
  padding: 5px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: rgba(152, 143, 143, 0.826);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.20); /* glow */
  flex-wrap: nowrap;
  height: 60px;
  overflow: hidden;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#volume-bar-container.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#volume-bar-container.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Player Controls */
#play-pause-btn {
  flex-shrink: 0;
  flex-grow: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  background: none;
  background-image: url('img/'); /* chemin vers l'image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgb(197, 181, 181);
  border-radius: 50%;
  color: rgb(158, 170, 158);
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  padding: 0;
  box-sizing: border-box;
}

#track-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #b1bab1c8;
}

#track-title {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-left: 10px;
  max-width: 180px;
}



/* Barre de progression */
#progress-bar {
  flex-shrink: 1;
  flex-grow: 0;
  width: 100%;
  max-width: 40vw;
  min-width: 150px;
  height: 10px;
  margin-top: -5px;
  margin-left: 0;     /* enlever le décalage */
  border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(to right, rgb(212, 211, 211) 0%, #00000096 0%);
  appearance: none;
  transition: background 0.2s;
  z-index: 2;
  padding: 0;         /* enlever le padding */
}


#progress-bar::-webkit-slider-runnable-track {
  height: 10px;
  background: linear-gradient(to right, rgb(63, 71, 63) 0%, #f8f8f800 0%);
  border-radius: 5px;
}

#progress-bar::-moz-range-track {
  height: 10px;
  background: linear-gradient(to right, rgb(63, 71, 63) 0%, #f8f8f800 0%);
  border-radius: 5px;
}

#progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #282b2800;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -4px;
  border: none;
  position: relative;
  z-index: 2;
}

#progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ae0808;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Volume Slider */
#volume-slider {
  width: 150px;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
}

#volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: rgb(114, 114, 110);
  border-radius: 2px;
}

#volume-slider::-moz-range-track {
  height: 4px;
  background: white;
  border-radius: 2px;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  background: rgb(155, 161, 155);
  border-radius: 50%;
  margin-top: -5px;
  border: none;
}

#volume-slider::-moz-range-thumb {
  height: 14px;
  width: 14px;
  background: rgb(208, 0, 0);
  border-radius: 50%;
  border: none;
}

/* Volume Icon */
#volume-icon {
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

/* Time Info */
#time-info {
  font-size: 0.9rem;
  margin-left: 10px;
  color: #868d86;
  display: inline-block;
}

.about-images {
  display: flex;
  justify-content: center;
  gap: 20px; /* espace entre les images */
  margin-top: 20px;
  flex-wrap: wrap; /* pour que ça passe à la ligne si trop petit */
}

.about-images img {
  width: 200px; /* taille fixe, tu peux ajuster */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  object-fit: cover;
}

#about {
  background-color: #4d524c; /* ou une autre couleur : #f5f5f5, #222, etc. */
  color: white; /* utile si fond sombre */
  padding: 60px 20px;
  max-width: none;
  height: 100vh;
}

#contact {
  background-color: #1b1c21; /* ou autre couleur de fond */
  color: white;
  padding: 60px 20px;
  max-width: none;
}

#contact .inner {
  max-width: 600px; /* largeur raisonnable pour ton formulaire */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

#services {
  background-color: #1b1c21; /* ou autre couleur de fond */
  color: white;
  padding: 60px 20px;
  max-width: none;
  height: 100vh;
}

#realisations {
  background-color: #38473b; /* ou autre couleur de fond */
  color: white;
  padding: 60px 20px;
  max-width: none;
}

/* Pour éviter que les éléments bougent */
.overlay-heading,
.overlay-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#slider-captcha {
  width: 300px;
  margin: 20px auto;
  text-align: center;
}
#slider-bar {
  background-color: #333;
  height: 40px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
#slider-thumb {
  width: 40px;
  height: 40px;
  background-color: #ff5e00;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
}
#slider-thumb.grabbing {
  cursor: grabbing;
}
#captcha-status {
  margin-top: 8px;
  font-size: 0.9em;
}
#submitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .overlay-heading h1,
  .overlay-bottom p {
    width: 90%;
    font-size: 1.2rem;
  }

  .overlay-heading h1 {
    font-size: 2rem;
    padding: 0.5em;
  }

  .overlay-bottom a {
    width: auto;
    padding: 10px 20px;
    font-size: 1rem;
  }

  #video-toggle {
    width: 40px;
    height: 40px;
    font-size: 22px;
    bottom: 15px;
    right: 15px;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 0.9rem;
  }

  .project-thumb {
    height: 180px;
  }

  #volume-slider {
    width: 80px;
  }

  #progress-bar {
    max-width: 60vw;
  }

  .about-images img {
    width: 100%;
    max-width: 300px;
  }

  #slider-captcha {
    width: 90%;
  }

  #about,
  #services {
    height: auto;
  }
}
