/* base body*/
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #000;
  color: #fff;
  scroll-behavior: smooth;
}

/* En-tête: logo + menu + navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: black;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 100px;
  display: flex;
  align-items: center;
}

.logo img.logo-hero {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Menu Hamburger - caché par défaut, visible sur petits écrans */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle:focus {
  outline: none;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: 1px;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* Navigation principale */
nav.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: black;
  background-color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  border-radius: 2px;
  padding: 0.5rem 1rem;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
  color: black;
  background-color: white;
}

/* Section Accueil - image + overlay texte */
.hero-img {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 50vh;
}

.hero-overlay {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  color: white;
  user-select: none;
  padding: 0 2rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
}

.hero-text {
  font-weight: 400;
  font-size: 3rem;
  margin-bottom: 1rem;
  user-select: none;
  padding-left: 0.5rem;
  max-width: 700px;
}

.hero-button {
  align-self: center;
  font-weight: 400;
  font-size: 14px;
  color: white;
  background-color: black;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  margin-top: 10px;
}

.hero-button:hover {
  background-color: #222;
  transform: scale(1.05);
}

/* Section Presentation */
.presentation {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
}

.presentation .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 0;
}

.presentation-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 2rem 1rem;
  text-align: justify;
}

/* Section Réalisations + Avis */
.section-title {
  font-weight: 700;
  font-size: 2rem;
  margin: 3rem 0 2rem;
  text-align: center;
  user-select: none;
}

/* Carousel commun */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 4rem;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0; 
  user-select: none;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain; 
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

/* Boutons carousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.7);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 3px;
  z-index: 10;
  user-select: none;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background-color: rgba(255,255,255,0.8);
  color: black;
}

/* Section Avis */
.avis-card {
  background-color: #111;
  padding: 20px;
  border-radius: 8px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
  color: #ddd;
  user-select: none;
  transition: background-color 0.3s ease;
}

.avis-card:hover {
  background-color: #222;
}

.avis-card .stars {
  font-size: 1.3rem;
  color: #f5a623;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.avis-card p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #ccc;
  flex-grow: 1;
}

.avis-card .author {
  font-weight: 700;
  font-size: 0.9rem;
  color: #aaa;
  text-align: right;
  margin-top: auto;
}

/* Responsive Avis */
@media (max-width: 600px) {
  .avis-card {
    min-height: auto;
    padding: 15px;
  }

  .avis-card .author {
    text-align: left;
    margin-top: 10px;
  }
}

/* Section Contact */
.contact {
  max-width: 600px;
  margin: 0 auto 5rem;
  padding: 2rem;
  color: white;
}

.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  user-select: none;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.contact input:focus,
.contact textarea:focus {
  outline: 2px solid white;
  background-color: #333;
  color: white;
}

.contact textarea {
  resize: vertical;
  min-height: 100px;
}

.contact button {
  background-color: white;
  color: black;
  padding: 1rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: #eee;
}

/* Animation fade-section */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
#lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
}

#lightbox-overlay.hidden {
  display: none;
  opacity: 0;
}

#lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 15px white;
}

#lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  color: white;
  font-size: 3rem;
  border: none;
  cursor: pointer;
  user-select: none;
  z-index: 2100;
  font-weight: 700;
  line-height: 1;
}

/* Responsive carousel */
@media (max-width: 980px) {
  .carousel-slide {
    min-width: 250px;
  }
}

@media (max-width: 650px) {
  .carousel-slide {
    min-width: 200px;
  }
  .hero-text {
    font-size: 2rem;
  }
  .hero-button {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Menu hamburger mobile */
@media (max-width: 900px) {
  nav.main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    background-color: white;
    color: black;
    width: 70vw;
    max-width: 300px;
    flex-direction: column;
    padding-top: 5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    z-index: 1500;
  }
  nav.main-nav.open {
    transform: translateX(0);
  }
  nav.main-nav a {
    color: black;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Footer */
.site-footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  user-select: none;
  border-top: 1px solid #222;
}

.carousel-slide,
.carousel-slide img,
.avis-card {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden !important;
  background-clip: padding-box;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

.carousel-slide {
  background-color: transparent !important;
}

.avis-card {
  background-color: #111; 
}

.hide-header {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

footer .mentions-link {
  display: block;
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
}

footer .mentions-link:hover {
  color: white;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

main p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  main {
    padding: 1.5rem;
  }

  main h1 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 0.95rem;
  }
}

/* === AJOUTS SPÉCIFIQUES CARROUSEL PHOTOS & VIDÉOS === */
#carousel-photos {
  margin-bottom: 3rem;
}

#carousel-videos .carousel-slide {
  background-color: transparent;
}

#carousel-videos video {
  background-color: transparent;
}
#carousel-videos .carousel-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#carousel-videos .carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
}

.subsection-title {
  text-align: center;
  margin-bottom: 15px;
}
