.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(15, 17, 21, 0.85); /* Fond noir semi-transparent */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: all 0.3s ease;
}

.logoRMDevDesign {
  height: 40px;
  width: auto;
  /* Logo original (couleur) : pas de filtre */
}

.site-nav {
  display: flex;
  align-items: center;
}

.header-menu-default {
  display: flex;
  gap: 28px;
  align-items: center;
}

/* Burger Menu (Mobile) */
.burger-menu {
  display: none; /* Caché sur desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation Burger */
.burger-menu.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
  opacity: 0;
}
.burger-menu.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Menu Mobile (Dropdown Compact) */
.mobile-nav {
  position: fixed;
  top: 0; /* Commence tout en haut */
  left: 0;
  width: 100%;
  /* Même fond que le header pour la continuité */
  background: rgba(15, 17, 21, 0.95); 
  backdrop-filter: blur(12px);
  z-index: 999; /* Derrière le header (1000) */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px; /* Espace pour ne pas être caché par le header */
  padding-bottom: 30px;
  gap: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  
  /* Animation Slide Down */
  transform: translateY(-100%); /* Caché complètement en haut */
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
}

.mobile-nav.active {
  transform: translateY(0); /* Visible */
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-family-main);
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav-link:active {
  background: rgba(255,255,255,0.1);
}

.label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.label:hover {
  color: var(--text-main);
}

.label::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--brand-gradient); /* Dégradé violet/bleu */
  transition: width 0.3s ease;
}

.label:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.45);
}

.mobile-nav-cta {
  background: var(--brand-gradient);
  font-weight: 700;
}


.site-header, .site-header *, .mobile-nav, .mobile-nav *, .nojs-nav { box-sizing: border-box; }
.site-header a, .mobile-nav a, .nojs-nav a { text-decoration: none; }
.site-header .logo { display: block; min-width: 0; flex-shrink: 0; }
.site-header .logoRMDevDesign { display: block; max-width: 100%; }
.site-header .header-menu-default { white-space: nowrap; }
.site-header button:focus-visible, .site-header a:focus-visible, .mobile-nav a:focus-visible, .nojs-nav a:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 4px; }
.mobile-nav { top: 80px; max-height: calc(100svh - 80px); overflow-y: auto; padding: 24px 20px; gap: 8px; }
.mobile-nav-cta { color: #0f1115; }
.nojs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 100px 20px 20px; }
.nojs-nav a { color: var(--brand-accent); text-decoration: underline; }
@media (max-width: 1200px) {
  .site-header .header-menu-default { display: none; }
  .site-header .burger-menu { display: flex; }
  .site-header { padding: 0 20px; }
}
@media (max-width: 560px) {
  .site-header .logoRMDevDesign { width: min(190px, 52vw); height: auto; }
}

.site-header, .mobile-nav { font-family: var(--font-family-main); line-height: 1.6; }

/* Native details keep all expertise pages accessible without JavaScript. */
.expertise-menu { position: relative; }
.expertise-menu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.expertise-menu summary::-webkit-details-marker { display: none; }
.expertise-menu summary::after { content: '⌄'; position: static; width: auto; height: auto; background: none; font-size: 16px; }
.expertise-menu[open] summary::after { transform: rotate(180deg); }
.expertise-menu summary:focus-visible, .expertise-submenu a:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 4px; }
.expertise-submenu { position: absolute; top: calc(100% + 20px); left: -16px; width: 290px; padding: 10px; background: #181a1e; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 2px; }
.expertise-submenu a { display: block; padding: 10px 12px; color: var(--text-secondary); font-size: 14px; white-space: normal; border-radius: 8px; }
.expertise-submenu a:hover, .expertise-submenu a:focus-visible { background: rgba(34,211,238,.08); color: var(--text-main); }
.expertise-menu-mobile { width: min(360px, 100%); }
.expertise-menu-mobile summary { justify-content: center; }
.expertise-menu-mobile .expertise-submenu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
.nojs-nav .expertise-submenu { z-index: 1001; }
