/* styles.css */

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

/* 2. Base */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 3. Contact Bar */
.contact-bar {
  background-color: #f4f4f4;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}
.contact-bar a {
  color: #333;
  text-decoration: none;
  margin-left: 10px;
}

/* HEADER + NAV + HAMBURGER */
header {
  position: relative;
}
/* Icône hamburger (mobile) */
.cv-hamburger-icon {
  display: none; /* caché sur desktop; visible en mobile */
  position: absolute;
  right: 20px;
  top: 15px;
  z-index: 9999;
  cursor: pointer;
}
.cv-hamburger-icon img {
  width: 30px; height: 30px;
}

nav {
  background-color: #333;
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  align-items: center;
  margin: 0;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  display: block;
  font-weight: 700;
}
nav ul li a:hover {
  background-color: #575757;
}

/* 5. Partenaires - Carousel */
.partenaires {
  padding: 30px 20px;
  background-color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.partenaires h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ff6600;
}
.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  width: calc(200%);
  animation: scroll 20s linear infinite;
}
.carousel-item {
  flex: 0 0 auto;
  margin-right: 15px;
}
.carousel-item img {
  max-height: 50px;
  width: auto;
  display: block;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 6. Header principal */
.header-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.full-width-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 2s forwards;
  padding: 0 10%;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
.header-title {
  color: #fff;
  font-size: 3em;
  max-width: 80%;
  line-height: 1.2;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.header-subtitle {
  color: #fff;
  font-size: 1.2em;
  margin-top: 10px;
  max-width: 80%;
  text-align: center;
}
.header-cta-button {
  background-color: #ff6600 !important;
  color: #fff !important;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700 !important;
  font-size: 1em;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

/* 8. Types de Voix-Off */
.types-voix {
  padding: 50px 20px;
  text-align: center;
  background-color: #f5f4f4;
}
.types-voix h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ff6600;
}
.voix-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.voix-category {
  flex: 1 1 300px;
  margin: 15px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voix-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.voix-category h3 {
  margin-bottom: 10px;
  color: #ff6600;
  font-size: 1.5em;
}
.voix-category p {
  font-size: 1em;
}

/* Bandes Antenne Publicitaires */
.cv-service-details {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 15px;
}
.cv-service-image-container {
  flex-shrink: 0;
}
.cv-service-image {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.cv-service-text {
  flex-grow: 1;
  text-align: left;
}
.cv-service-text p {
  text-align: left;
}

/* 9. Réalisations */
.realisations {
	margin-top: -30px;
  padding: 0px 20px;
  background-color: #f4f4f4;
  text-align: center;
}
.realisations h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ff6600;
}

/* 10. Musique à l’Image */
.musique-image {
  padding: 50px 20px;
  text-align: center;
}
.musique-image h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ff6600;
}
.music-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.music-item {
  margin: 15px;
  width: 300px;
  text-align: center;
}
.music-item audio {
  width: 100%;
  margin-bottom: 10px;
}
.music-item p {
  font-size: 1em;
}

/* 11. Témoignages */
.testimonials {
  padding: 50px 20px;
  background-color: #eaeded;
  text-align: center;
}
.testimonials h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ff6600;
}
.testimonials .testimonial {
  max-width: 600px;
  margin: 20px auto;
  font-style: italic;
  position: relative;
  padding: 20px;
}
.testimonials .testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

/* 12. Contact */
.contact {
  padding: 50px 20px;
  text-align: center;
}
.contact h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ff6600;
}
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.contact label {
  margin: 10px 0 5px;
  text-align: left;
  font-weight: bold;
  color: #444;
}
.contact input,
.contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.contact textarea {
  resize: vertical;
  height: 150px;
}
.contact button {
  margin-top: 20px;
  padding: 15px;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}
.contact button:hover {
  background-color: #e65c00;
}
.success {
  color: green;
  margin-top: 15px;
  font-weight: bold;
}

/* 13. Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-content p {
  margin: 5px 0;
  font-size: 1em;
}
.footer-content a {
  color: #fff;
  text-decoration: none;
}
.social-media {
  margin-top: 10px;
}
.social-media a {
  margin: 0 10px;
}
.social-media img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}
.social-media a:hover img {
  transform: scale(1.1);
}
.footer-bottom {
  margin-top: 10px;
  font-size: 14px;
}

/* 14. Responsive + Menu Hamburger */
@media (max-width: 768px) {
  /* Icône hamburger visible en mobile */
  .cv-hamburger-icon {
    display: block;
  }
  /* Cache la nav par défaut ; le JS passera à display:block */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Sous la contact-bar */
    left: 0;
    width: 100%;
    background-color: #333;
    z-index: 9999;
  }
  nav ul li {
    margin: 0;
    border-top: 1px solid #444;
    text-align: center;
  }
  nav ul li a {
    padding: 15px 0;
  }

  .header-subtitle {
    font-size: 1em;
    max-width: 90%;
  }
  .header-title {
    font-size: 2em;
    max-width: 80%;
  }
  .header-overlay {
    padding: 20px;
  }

  /* Rubrique Bandes Antenne => image en dessous du titre sur mobile */
  .cv-service-details {
    flex-direction: column;
    align-items: center;
  }
  .cv-service-image-container {
    margin-bottom: 15px;
  }

  /* Pop-up Devis : réduire les marges */
  .cv-modal-devis-content {
    margin: 20% auto;
    width: 94%;
    max-width: 600px;
  }
  .cv-modal-devis-iframe {
    height: 600px;
  }
}

/* ---------- Modal pour le Devis (Iframe) ---------- */
.cv-modal-devis {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.cv-modal-devis-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  width: 100%;
  max-width: 900px;
  border-radius: 4px;
  position: relative;
}
.cv-close-devis {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}
.cv-close-devis:hover,
.cv-close-devis:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.cv-modal-devis-iframe {
  width: 100%;
  height: 800px;
  border: none;
}

/* ---------- Keyframes ---------- */
@keyframes fadeIn {
  to { opacity: 1; }
}
.contact-bar {
  background-color: #f4f4f4;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

/* Ajout d’un espace entre chaque <span> consécutif dans la contact-bar */
.contact-bar span + span {
  margin-left: 15px;
}

/* Forcer Bandes Antenne Publicitaires en pleine largeur */
.voix-categories .cv-bandes-antenne {
  flex: 1 1 100% !important; /* Toujours 100% de la largeur */
  max-width: 100% !important;
}
/* Forcer Bandes Antenne à occuper toute la largeur */
.cv-bandes-antenne {
  flex: 1 1 100% !important;
  max-width: 100% !important;
}

/* Desktop : row */
.cv-bandes-antenne .cv-service-details {
  display: flex;
  flex-direction: row;
}

/* Mobile (< 768px) : column */
@media (max-width: 768px) {
  .cv-bandes-antenne .cv-service-details {
    flex-direction: column;
  }
}

/* Ajustements pour le tooltip portfolio */
.cv-portfolio .cv-tooltip {
  overflow: hidden;
  text-overflow: ellipsis; /* single line */
  font-size: 9px;
  margin: auto;
}
.bandes-antenne-button {
  display: inline-block;
  background-color: #ff6600;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.bandes-antenne-button:hover {
  background-color: #e65c00;
}
