/* =========================
   RESET
========================= */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:Arial, sans-serif;
}

/* =========================
   NAV
========================= */
#top-nav{
  position:fixed;
  top:0; left:0; right:0;
  background:#fff;
  border-bottom:1px solid #ddd;
  z-index:999;
}

.nav-row{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:10px 15px;
}

.nav-row a,
.nav-row button{
  background:none;
  border:none;
  cursor:pointer;
  text-decoration:none;
  color:#111;
  font-size:15px;
}

.nav-logo img{
  height:42px;
}

/* =========================
   DROPDOWN DESKTOP
========================= */
.dropdown{
  position:relative;
}

.dropdown-menu{
  position:absolute;
  top:120%;
  left:50%;
  transform:translateX(-50%);
  background:#08122d;
  min-width:220px;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,.6);
  animation:fadeIn .25s ease;
}

.dropdown-menu a{
  display:block;
  padding:12px 15px;
  color:white;
  text-decoration:none;
  font-size:14px;
}

.dropdown-menu a:hover{
  background:rgba(0,255,213,.15);
}

/* =========================
   BURGER
========================= */
#burgerBtn{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  cursor:pointer;
  color:#111;
}

/* =========================
   MOBILE MENU (DEFAULT)
========================= */
#mobileMenu{
  display:none;
}

/* IMPORTANT */
#mobileMenu[hidden]{
  display:none !important;
}

/* =========================
   HERO
========================= */
#hero{
  text-align:center;
  padding:80px 20px 40px;
  color:#fff;
}

#hero h1{
  font-size:42px;
  margin-bottom:10px;
}

#hero h3{
  margin-bottom:15px;
  color:#ddd;
}

#hero p{
  max-width:900px;
  margin:auto;
  line-height:1.6;
}

/* =========================
   MODEL VIEWER
========================= */

#biz3d{
  display:block;
  margin:30px auto 0;
  filter:
    drop-shadow(0 0 10px rgba(0, 220, 255, .70))
    drop-shadow(0 0 28px rgba(0, 140, 255, .45))
    drop-shadow(0 0 70px rgba(120, 60, 255, .25));
}

/* =========================
   BLOCS IMAGE TEXTE
========================= */
.section-media{
  position:relative;
  max-width:1200px;
  margin:60px auto;
  border-radius:12px;
  overflow:hidden;
}

.section-media img{
  width:100%;
  display:block;
}

.section-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}

.overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#fff;
  padding:30px;
}

.overlay h2{
  font-size:28px;
  margin-bottom:15px;
}

.overlay p{
  max-width:900px;
  line-height:1.6;
}

/* =========================
   FOOTER
========================= */
footer,
#footer{
  text-align:center;
  padding:40px 20px;
  background:#f5f5f5;
  color:#111;
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width:900px){

  .nav-row{
    justify-content:space-between;
  }

  /* cache menu desktop */
  .nav-row a:not(.nav-logo),
  #productsDropdown{
    display:none;
  }

  #burgerBtn{
    display:block;
  }

  /* panneau mobile */
  #mobileMenu{
  position:fixed;
  inset:0;
  background:#0a1228;
  z-index:99999;
  display:none; /* fermé par défaut */
  flex-direction:column;
  padding:20px;
  overflow:auto;
  animation: slideIn .3s ease;
}

/* seulement quand ouvert */
#mobileMenu:not([hidden]){
  display:flex;
}


  /* bouton fermer */
  #closeMobileBtn{
    font-size:22px;
    text-align:right;
    color:#00ffd5;
    border:none;
    background:none;
    margin-bottom:10px;
  }

  /* liens */
  #mobileMenu a,
  #mobileMenu button{
    color:white;
    font-size:17px;
    padding:12px;
    text-align:left;
    border:none;
    background:none;
    cursor:pointer;
  }

  #mobileMenu a{
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  /* bouton produits */
  #mobileProductsBtn{
    font-weight:bold;
    color:#00ffd5;
  }

  /* sous menu produits : FORCER LISTE VERTICALE */
#mobileSub{
  display:none; /* fermé par défaut */
  flex-direction:column;
  gap:6px;
}

/* quand JS enlève "hidden" */
#mobileSub:not([hidden]){
  display:flex;
}

#mobileSub[hidden]{
  display:none !important;
}

#mobileSub a{
  display:block;
  width:100%;
}


  #mobileSub a::before{
    content:"▸ ";
    color:#00ffd5;
  }

  /* ajustements mobile */
  .section-media{
    margin:35px 14px;
  }

  .overlay h2{
    font-size:22px;
  }

  .overlay p{
    font-size:14px;
  }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideIn{
  from{ transform:translateX(100%); }
  to{ transform:translateX(0); }
}

@keyframes fadeIn{
  from{ opacity:0; transform:translateY(-10px); }
  to{ opacity:1; transform:none; }
}


/* =========================
   MODEL 3D - MOBILE SIZE
========================= */
@media (max-width:900px){
  #biz3d{
    width:240px !important;
    height:240px !important;
    margin-top:18px !important;
  }
}
