* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}


header {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel img.active {
  opacity: 1;
}

.header-text {
  text-align: center;
  z-index: 1;
}

.header-text h1 {
  font-size: clamp(1.5rem, 6vw, 4rem);
}

.header-text p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
}


nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  color: #fff;
  padding: 15px 30px;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease-in-out;
}

nav .logo {
  font-size: 1.3em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav .menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ffe;
}

nav.scrolled {
  background: #f4a261;
  color: #fff;
}

nav.scrolled a {
  color: #fff;
}

nav.scrolled a:hover {
  border-color: #333;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
}

@media (max-width: 768px) {
  nav .menu {
    position: absolute;
    top: 60px;
    right: 0;
    width: 60%;
    background: #f4a261;
    flex-direction: column;
    gap: 15px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 20px;
  }

  nav .menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-icon {
    display: block;
  }

  nav .logo {
    font-size: 1em;
  }

  nav a {
    font-size: 1em;
  }
}


.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f4a261;
  color: #fff;
  display: none; 
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.scroll-to-top i {
  font-size: 1.3em;
}

.scroll-to-top:hover {
  background-color: #e67e22;
}


section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-in-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}


.qui-sommes-nous-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.qui-sommes-nous-container {
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  background: white;
  overflow: hidden;
}

.qui-sommes-nous-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
}

.qui-sommes-nous-text h2 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 20px;
}

.qui-sommes-nous-text p {
  font-size: 1.2em;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.why-choose-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-top: 20px;
}

.why-choose-text {
  font-size: 1em;
  color: #555;
  line-height: 1.8;
}

.qui-sommes-nous-stats {
  display: flex;
  justify-content: space-evenly;
  margin-top: 40px;
  background: #f9f9f9;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.stats-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  min-width: 120px; 
}

.stats-number {
  font-size: 2em;
  color: #f4a261;
  margin-bottom: 10px;
}

.qui-sommes-nous-button {
  text-align: left;
  margin-top: 60px;  padding-left: 0px;
}

.btn-real {
  text-decoration: none;
  background: #f4a261;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease-in-out;
}

.btn-real:hover {
  background: #e67e22;
}

@media (max-width: 768px) {
  .qui-sommes-nous-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .qui-sommes-nous-stats {
    flex-direction: column;
    align-items: center;
  }

  .stats-item {
    width: 100%;
    margin: 10px 0;
  }

  .qui-sommes-nous-button {
    text-align: center;
    margin-top: 20px;
  }
}


.services, .contact {
  background: #f4f4f4;
}

.services h2, .contact h2 {
  text-align: center;
}

.services {
  background: #fff;
  padding: 60px 20px;
}

.services h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.6em;
}

.card-content p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-content a {
  display: inline-block;
  text-decoration: none;
  background: #f4a261;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.card-content a:hover {
  background: #e67e22;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}


.instagram-section {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.instagram-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

.instagram-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embedsocial-hashtag {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.embedsocial-hashtag img {
  max-width: 100%;
  height: auto;
}


.contact-section {
  background-color: #fff;
  padding: 60px 20px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #333;
}

.contact-container h2 {
  font-size: 2.2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-subtitle {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
}

.contact-item i {
  font-size: 2em;
  color: #f4a261;
  margin-bottom: 10px;
}

.contact-item span {
  font-size: 1.1em;
  color: #333;
  line-height: 1.4;
}

.map-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 800px;
}

.map-container iframe {
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.realisations-section .gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.realisations-section .gallery-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.realisations-section .gallery-item {
  flex: 1;
  min-width: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.realisations-section .gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.realisations-section .gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.realisations-section .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}


footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
}


@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
