body, html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}
/* Typo */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* HEADER DE BASE */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0,75rem 2rem; /* Hauteur initiale élevée */
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20rem; /* espace entre logo et menu */
  background-color: #ffffff80; /* blanc + 50 % d’opacité (80 en hexadécimal = 128/255) */
  transition: all 0.4s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* ombre douce vers le bas */
}


/* LOGO ET LIENS */
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: dimgrey;
  transition: color 0.4s ease;
}

.menu {
  display: flex;
  gap: 2rem;
}

.logo img {
  height: auto;
  width: clamp(100px, 15vw, 204px);
  transition: width 0.3s ease;
}

.menu a {
  text-decoration: none;
  color: grey;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.06rem; /* interlettrage ajouté */
  transition: color 0.3s ease;
}




/* Styles de base pour la barre de navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 80Ù;
  padding: 1rem 2rem;
  background-color: #ffffff80; /* blanc + 50 % d’opacité (80 en hexadécimal = 128/255) */
  color: white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}
const navbar = document.querySelector('.navbar');

window.addEventListener('scroll', () => {
  if (window.scrollY > 50) {
    navbar.classList.add('scrolled');
  } else {
    navbar.classList.remove('scrolled');
  }
});

/* État normal */
.main-header .navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
padding-left: 2rem;
padding-right: 2rem;
  align-items: center;
  background-color: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  transition: width 0.1s ease-out;
}



/* Styles appliqués lorsque la page est scrollée */
.navbar.scrolled {
  background-color: #ffffff80; /* blanc + 50 % d’opacité (80 en hexadécimal = 128/255) */
  color: black;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour les liens de navigation */
.navbar nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* Changement de couleur des liens au survol */
.navbar nav a:hover {
  color: #555;
}


.hero-slider {
  width: 100%;
  position: relative;
  height: 700px;
  overflow: hidden;
margin-top: 55px;
}

.hero-slider .slide {
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 100px); /* toute la hauteur visible MOINS la hauteur de la navbar */
  position: absolute;
  opacity: 0;
  transition: opacity 1s;
}

.hero-slider .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-slider .slide.active {
  display: block;
  position: relative;
  opacity: 1;
  z-index: 2;
}

.slide {
  position: absolute;
  width: 100%;
  height: 700px;
  opacity: 0;
  transition: opacity 1s;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

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

.slide video,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider .slide {
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 100px);
  position: absolute;
  opacity: 0;
  transition: opacity 1s;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 1s ease;
}

.hero-slider .slide.active {
  left: 0;
  opacity: 1;
  z-index: 2;
}

.hero-slider .slide.previous {
  left: -100%; /* ancienne slide part à gauche */
  opacity: 0;
  z-index: 1;
}

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

.navigation {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.nav-dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
}

.nav-dot.active {
  opacity: 1;
}

.intro, footer {
  padding: 4rem 2rem;
  text-align: center;
}

.about-section,
.about-section {
  padding-top: 2rem;
  padding-bottom: 0rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.works-section,
.news-section,
.site-footer {
  padding: 4rem 2rem;
  text-align: center;
}

.works-grid {
  display: grid;
   grid-template-columns: repeat(2, minmax(300px, 1fr)); /* ou une valeur fixe selon ton design */
  gap: 20px; /* diminue cette valeur pour rapprocher les éléments */
}
  justify-items: center;
}

.work-item {
  text-align: center;
}

.work-item img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.work-item video {
 width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.work-item img:hover {
  transform: scale(1.02);
}
.work-item video:hover {
  transform: scale(1.02);
}

/* Styles généraux pour centrer les éléments */
h1, h2, h3 {
    text-align: center;
    margin: 0 auto;
}

/* Style pour h1 */
h1 {
    font-family: 'Montserrat';
    font-weight: 900;
    font-size: 4rem;
    color: #343333;
    letter-spacing: 4px;
    line-height: 1.1;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
}



/* Style pour h2 */
h2 {
    font-family: 'Montserrat';
    font-weight: 900;
    font-size: 2rem;
    color: #343333;
    letter-spacing: -0px;
    line-height: 1;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

/* Style pour le texte en gras dans h2 (comme "Bulle de Citron") */
h2 strong {
    font-weight: 700;
}

/* Style pour h3 */
h3 {
    font-family: 'merriweather';
    font-weight: 400;
    font-style: italic;
    font-size: 2rem;
    color: #343333;
    line-height: 1.4;
    max-width: 600px;
    margin: 2rem auto;
}
/* Style pour h4 */
h4 {
    font-family: 'Montserrat';
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color: #343333;
    line-height: 1.4;
    max-width: 600px;
    margin: 0.25rem auto;
}

/* Style pour h5 */
h5 {
    font-family: 'Montserrat';
    font-weight: 900;
    font-size: 2rem;
    color: #343333;
    letter-spacing: 2px;
    line-height: 1;
    position: relative;
    padding-bottom: 0rem;
	padding-top: 0rem;
    text-transform: uppercase;
}
/* Style pour h6 */
h6 {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 1.5rem;
    color: #343333;
    letter-spacing: 0px;
    line-height: 0;
    position: relative;
    padding-bottom: 0rem;
    text-transform: uppercase;
}


.more-works-container {
  text-align: center;
  padding: 2rem 0;
}

.more-works-button {
  background-color: #343333;
  color: #fff;
  padding: 1rem 3rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Montserrat';
    font-weight: 900;
    font-size: 2rem;
  text-decoration: none; /* empêche le soulignement */
  transition: background-color 0.3s ease;
}

.more-works-button:hover {
  background-color: #222;
}



/* Services bulle de citron */
.services-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes fixes sur grands écrans */
  gap: 3rem;
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f9f9f9; /* fond clair */
}

.service-item {
  background-color: white;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* ombre au survol */
}

.service-item img {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
}

.service-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}

.service-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

.clients-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.clients-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.clients-description {
  font-size: 1rem;
  color: #333;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}
.portfolio-titre-description {
  font-size: 16px;
  color: #333;
  max-width: 1200px;
  margin: 1rem auto;
  line-height: 1.6;
  text-align: center;
}

.portfolio-description {
  font-size: 13px;
  color: #333;
  max-width: 1200px;
  margin: 0rem auto;
  line-height: 1.6;
  text-align: justify;
}

.clients-logos img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.contact-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f9f9f9; /* fond clair */
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-intro {
  font-size: 1rem;
  margin-bottom: 3rem;
  color: #333;
}

.about-intro {
  font-size: 15px;
  color: #333;
  max-width: 1200px;
  margin: 2rem auto;
	
  line-height: 1.6;
  text-align: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item img {
  width: 40px;
  height: auto;
  margin-bottom: 1rem;
}

.contact-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.contact-item a {
  font-size: 0.95rem;
  color: #000;
  text-decoration: underline;
}



/* Responsive : passe à 2 colonnes sur tablette, 1 sur mobile */
@media (max-width: 1024px) {
  .services-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .more-works-button {
    width: 90%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    display: inline-block;
  }
}



/* Responsive pour écrans plus petits */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        letter-spacing: -1px
}}
.footer {
  background-color: #fff;
  padding: 2rem 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #000;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
padding-left: 2rem;
padding-right: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  margin-right: 2rem;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.footer-socials a {
  display: inline-block;
  margin-left: 1rem;
}

.footer-socials img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-separator {
  border-top: 1px solid #eee;
  margin: 2rem auto 1rem auto;
  max-width: 1000px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
}

/* Masquer le bouton burger en desktop */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}




/* Responsive : activer le menu mobile */
@media (max-width: 1024px) {
  .burger {
    display: block;
    z-index: 1001;
  }

  .navbar-inner {
    justify-content: center;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .menu.open {
    display: flex;
  }

  .logo img {
  height: auto;
  width: clamp(100px, 15vw, 204px);
  transition: width 0.3s ease;
}

.menu a {
    padding: 0.5rem 0;
    font-size: 1rem;
  }
	
  h1 {
    font-size: 3rem;
    letter-spacing: 1px;
  }
}}

/* Desktop : garder menu visible et bien positionné */
@media (min-width: 1024px) {
  .logo {
    margin-right: auto;
  }
  .menu {
    margin-left: auto;
  }
  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  

  .navbar-inner {
    justify-content: center;
    position: relative;
  }
}


@media (max-width: 768px) {
  .hero-slider video {
    width: 100% !important;
    height: auto !important;
    max-height: 100vh;
    object-fit: contain !important;
    object-position: center center;
  }
}
@media (max-width: 768px) {
  .hero-slider .slide {
    height: auto !important;
    min-height: auto !important;
  }
}

@media screen and (max-width: 768px) {

  /* HERO SLIDER VIDEOS */
  .hero-slider {
    height: auto !important;
  }

 
  .hero-slider video {
    width: 100% !important;
    height: auto !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
  }

  /* SELECTED WORKS */
  .works-grid {
    display: block !important;
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .work-item {
    width: 100% !important;
    margin-bottom: 2rem;
  }

  .work-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }
}


@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
    justify-items: center;
  }
  .work-item img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 1200px) {
  .navbar-inner {
    padding: 0.5rem 1rem;
  }

  .logo img {
    width: clamp(200px, 12vw, 150px);
  }

  .menu a {
    font-size: 0.75rem;
  }
}


.hero-slider .slide {
  opacity: 0;
  position: absolute;
  transition: opacity 1s ease;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slider .slide.previous {
  opacity: 0;
  z-index: 1;
}
