/* === RÉINITIALISATION === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f1b2b;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 190px;
  height: 100vh;
  background-color: #344a74;
  padding: 2rem 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: visible;
  transition: left 0.3s ease-in-out;
}

.sidebar .logo {
  width: 160px;
  height: auto;
  margin-bottom: 30px;
}

.sidebar .logo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  background-color: #fff;
  padding: 6px;
}


/* Scrollbar style */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #0077ff;
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-track {
  background-color: #121c2f;
}

.sidebar.active {
  left: 0;
}

/* === MENU HAMBURGER === */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  background: white;
  height: 4px;
  width: 100%;
  border-radius: 2px;
}

/* === MAIN CONTENT === */
.main-content {
  padding: 2rem;
}

/* === CONTENU RESPONSIVE (DESKTOP) === */
@media (min-width: 768px) {
  .main-content {
    margin-left: 250px;
  }

}

/* === CONTENU RESPONSIVE (MOBILE) === */
@media (max-width: 767px) {
  .sidebar {
    left: -100%;
  }

  .sidebar.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .close-sidebar {
    display: block;
  }
}

/* === FOOTER CORRIGÉ === */
footer {
  background-color: #0f1b2b;
  color: #ccc;
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem 1rem;
  line-height: 1.6;
  border-top: 1px solid #1c2e4a;
  width: 100%;
  position: relative;
  left: 0;
}
/* === SOUS-MENUS AU SURVOL === */
.has-submenu {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Empêche l'affichage normal du sous-menu dans la sidebar */
.has-submenu .submenu {
  display: none;
}

/* Désactive l'affichage normal pour éviter les bugs de scroll dans sidebar */
.has-submenu:hover .submenu {
  display: none !important;
}

/* ===== CLONE FLOTTANT (affiché par JS) ===== */
.submenu-float {
  display: block !important;
  position: absolute;
  background-color: #2c3e50;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 220px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: normal;
  overflow-wrap: break-word;
  color: white;
  z-index: 3000;
}

.submenu-float li {
  margin: 0.2rem 0;
}

.submenu-float li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: white;
  line-height: 1.4;
}

.submenu-float li a:hover {
  background-color: #3b4f72;
  border-radius: 3px;
}

/* === BOUTON DE FERMETURE (MOBILE) === */
.close-sidebar {
  display: none;
  align-self: flex-end;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  margin-bottom: 1rem;
}
 /* Animation fade/slide */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Appliquée au sous-menu flottant */
.submenu-float {
  animation: fadeSlide 0.25s ease-out;
}

/* Barre de chargement en haut */
.loader-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: #00bfff;
  z-index: 99999;
  transition: width 0.3s ease;
}


/*A propos*/
.page-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}



 .biography-text {
      background-color: #111b2e;
      padding: 40px;
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      width: 100%;
      max-width: 950px;
      margin-bottom: 50px;
      transition: all 0.3s ease;
    }

    .biography-text:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    }

    .biography-text p {
      font-size: 1.05rem;
      margin-bottom: 20px;
      color: #e0e6ef;
    }

    .biography-text strong {
      color: #00aaff;
    }

    .biography-text ul {
      list-style-type: disc;
      padding-left: 30px;
      margin-top: 20px;
    }

    .biography-text li {
      margin-bottom: 10px;
      font-size: 1.05rem;
    }

    /* === IMAGE === */
    .image-section1 {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      max-width: 950px;
    }

    .image-section1 img {
      width: 100%;
      max-width: 400px;
      border-radius: 15px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
      transition: transform 0.3s ease;
    }

    .image-section1 img:hover {
      transform: scale(1.03);
    }

/* Carrousel équipe */
.team-carousel {
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.carousel-container {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 1rem;
  /* Cacher la scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.team-member {
  min-width: 250px;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px) scale(1.05); /* Légère montée + zoom */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Ombre douce */
}

.team-member img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.1); /* Zoom plus léger sur la photo */
}


.team-member img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.team-member h3 {
  margin: 0.5rem 0 0.2rem;
  color: #fff;
}

.team-member p {
  font-size: 0.95rem;
  color: #cdd6f4;
}

.openbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.openbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.openbox-content {
  background: #0f1b2b;
  color: white;
  max-width: 800px;
  width: 90%;
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
}

.openbox-content img {
  width: 250px;
  height: auto;
  border-radius: 6px;
}

.openbox-bio {
  flex: 1;
}

.close-openbox {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}


.apartment-showcase {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  margin: 4rem 0;
  align-items: center;
  justify-content: center;
}

.apartment-showcase.reverse {
  flex-wrap: row-reverse;
}

.apartment-image img {
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.apartment-description {
  max-width: 600px;
  color: #cdd6f4;
}

.apartment-description h2 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.apartment-description p {
  line-height: 1.6;
  text-align: justify;
}

/* Animation au scroll */
.fade-in-slide {
  opacity: 0;
  transform: translateY(30px);
  animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
  .apartment-showcase {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .apartment-showcase.reverse {
    flex-direction: column;
  }

  .apartment-image img {
    width: 100%;
  }

  .apartment-description {
    padding: 0 1rem;
  }
}

/* Lightbox immeubles */
/* Lightbox mise à jour */
/* === Lightbox principale === */
/* === LIGHTBOX PRINCIPALE === */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
  background: #0f1b2b;
  max-width: 1000px;
  width: 95%;
  height: 85vh;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: white;
}

.lightbox-left,
#lightbox-image-list {
  flex: 2;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
  animation: scrollImages 20s linear infinite;
}

.lightbox-left:hover,
#lightbox-image-list:hover {
  animation-play-state: paused;
}

.lightbox-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.lightbox-description {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  border-left: 1px solid #334a6c;
  background-color: #1a2e4a;
}

.close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  pointer-events: auto;
  background: none;
  border: none;
}

/* === ANIMATIONS === */
@keyframes scrollImages {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === FLEXBOX LAYOUT DES PROJETS === */
.building-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 1rem 2rem;
}

.building-card {
  background-color: #1a2e4a;
  color: white;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.building-card:hover {
  transform: translateY(-5px);
}

.building-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.building-info {
  padding: 1rem;
  color: #fff;
}

.building-info h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.building-info p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === OVERLAY TITRES DE SECTIONS === */
.overlay-text h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.overlay-text p {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* === PADDING GLOBAL PAR SECTION === */
.project-section {
  padding-bottom: 4rem;
}

/* === RESPONSIVE ADAPTATIF === */
@media screen and (max-width: 768px) {
  .lightbox-content {
    flex-direction: column;
    align-items: stretch;
    height: 95vh;
    overflow-y: auto;
  }

  .lightbox-left,
  #lightbox-image-list {
    max-height: 300px;
    overflow-y: scroll;
  }

  .lightbox-description {
    padding: 1rem;
    border-left: none;
    border-top: 1px solid #334a6c;
  }

  .building-gallery {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .building-card {
    width: 100%;
  }

  .building-info h2 {
    font-size: 1.1rem;
  }

  .building-info p {
    font-size: 0.9rem;
  }

  .overlay-text h1 {
    font-size: 1.4rem;
  }

  .overlay-text p {
    font-size: 0.95rem;
  }
}



.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 4rem;
}

.contact-info, .contact-form {
  flex: 1 1 300px;
  background-color: #1e2a40;
  padding: 2rem;
  border-radius: 10px;
}

.contact-info h2, .contact-form h2 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-info p {
  margin-bottom: 0.8rem;
  color: #cdd6f4;
}

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

.contact-form input, .contact-form textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  background-color: #344a74;
  color: white;
}

.contact-form button {
  padding: 0.8rem 1.5rem;
  background-color: #0077ff;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005ed9;
}
.building-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.building-card {
  background-color: #1e2a40;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.building-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.building-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.building-info {
  padding: 1.5rem;
  color: #cdd6f4;
}

.building-info h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.building-info p {
  line-height: 1.5;
  text-align: justify;
}

/* Animation */
.fade-in-slide {
  opacity: 0;
  transform: translateY(30px);
  animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* MOBILE: styles spécifiques */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .sidebar {
    left: -300px;
  }

  .sidebar.active {
    left: 0;
  }

  .close-sidebar {
    display: block;
  }

  .arrow-toggle {
    display: none;
  }
}

/* Sidebar contenu */
.logo {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.sidebar h2 {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.sidebar nav ul {
  list-style: none;
  width: 100%;
}

.sidebar nav ul li {
  margin: 1rem 0;
}

.sidebar nav ul li a {
  color: #cdd6f4;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 5px;
  transition: background 0.3s;
}

.sidebar nav ul li a:hover {
  background-color: #1e2a40;
}

/* Sous-menus */
.submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
}

.has-submenu.active .submenu {
  display: block;
}

.submenu li a {
  font-size: 0.95rem;
  color: #a8c0f0;
  padding-left: 1rem;
  display: block;
}

.submenu li a:hover {
  background-color: #26354e;
  border-radius: 4px;
}

/* Contenu principal */
.content {
  margin-left: 0;
  padding: 4rem 2rem 2rem 2rem;
  transition: margin-left 0.3s ease;
}

/* Apparition / Disparition */
.main-content.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

.main-content.fade-out {
  opacity: 1;
  animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Texte */
.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #cdd6f4;
}

.btn {
  padding: 0.8rem 1.5rem;
  background-color: #0077ff;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #005ed9;
}

.image-section img {
  margin-top: 3rem;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}
footer {
  background-color: rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 15px;
  position: relative;
  bottom: 0;
  width: 100%;
  color: #aaa;
  margin-top: 60px;
}

@media (max-width: 480px) {

  footer p {
    font-size: 0.8rem;
  }
}

/* === Galerie vidéo === */
.building-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.building-card {
  background-color: #0c1425;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  width: 320px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.building-card:hover {
  transform: scale(1.03);
}

.building-card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* === Galerie vidéo === */
.building-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.building-card {
  background-color: #0c1425;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  width: 320px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.building-card:hover {
  transform: scale(1.03);
}

.building-card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.building-info {
  padding: 15px;
  color: #fff;
  text-align: center;
}

/* === Galerie vidéo === */
.building-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.building-card {
  background-color: #0c1425;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  width: 320px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.building-card:hover {
  transform: scale(1.03);
}

.building-card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.building-info {
  padding: 15px;
  color: #fff;
  text-align: center;
}

/* === Lightbox vidéo === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  position: relative;
  background: #111b2e;
  padding: 20px;
  border-radius: 15px;
  max-width: 900px;
  width: 90%;
}

#lightbox-video {
  width: 100%;
  max-height: 500px;
  border-radius: 10px;
}

.close-lightbox {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.close-lightbox:hover {
  color: #00aaff;
}











  