
[data-expertise="creation"], .n-mega[data-rubrique="creation"] { --rubrique: #aabfff; }
[data-expertise="personnalisation"], .n-mega[data-rubrique="personnalisation"] { --rubrique: #d8b4f3; }
[data-expertise="maintenance"], .n-mega[data-rubrique="maintenance"] { --rubrique: #a8cdb2; }
[data-expertise="referencement"], .n-mega[data-rubrique="referencement"] { --rubrique: #e7be82; }

.n-expertise-trigger.n-category-active { border-color: var(--rubrique); }
.n-expertise-trigger.n-category-active span { color: var(--rubrique); }
.n-mega {
  display: block;
  top: 100%;
  max-height: max(220px, calc(100dvh - 230px));
  overflow: auto;
  width: min(94vw, 1660px);
  background: #090b10;
  border: 1px solid var(--rubrique);
  border-radius: 12px;
  box-shadow: 0 20px 50px #0009;
}
.n-mega-content { min-height: 0; padding: clamp(24px, 3vw, 46px); }
.n-mega-intro h2 { font-size: clamp(29px, 2.5vw, 42px); margin: 0 0 20px; }
.n-mega-links { gap: 14px 20px; margin: 0; }
.n-mega .n-mega-link { gap: 14px; padding: 18px 20px; background: #ffffff06; border-color: #ffffff13; }
.n-mega .n-mega-link:is(:hover, :focus-visible) { border-color: var(--rubrique); background: #ffffff0d; }
.n-mega-link strong { font-size: clamp(23px, 1.7vw, 30px); margin-bottom: 6px; }
.n-mega-link small { font-size: clamp(18px, 1.2vw, 22px); color: #bdc8dc; }
.n-mega[data-rubrique="referencement"] .n-mega-links { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .n-mega { width: 100%; top: 0; max-height: none; }
  .n-mega .n-mega-link { padding: 14px; }
  .n-mega-content { padding: 20px 12px 12px; }
  .n-mega-intro h2 { font-size: 25px; }
}


.home-contact-button {
  margin-left: auto;
  padding: 13px 18px;
  border: 1px solid #aabfff80;
  border-radius: 6px;
  background: #aabfff12;
  color: #eff4ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.home-contact-button:hover { background: #aabfff26; }
.n-header .home-contact-dialog + .n-client { margin-left: 0; }
.home-contact-dialog {
  position: fixed;
  width: min(480px, calc(100% - 32px));
  margin: auto;
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid #aabfff;
  border-radius: 14px;
  background: #101521;
  color: #eff4ff;
  box-shadow: 0 24px 80px #000a;
}
.home-contact-dialog::backdrop { background: #03060bbd; }
.home-contact-dialog h2 { margin: 0 38px 22px 0; font-size: clamp(24px, 5vw, 32px); }
.home-contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid #aabfff50;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}
.home-contact-links { display: grid; gap: 10px; }
.home-contact-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid #aabfff38;
  border-radius: 8px;
  color: #eff4ff;
  font-size: clamp(16px, 4.5vw, 24px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.home-contact-links a:hover { border-color: #aabfff; background: #aabfff12; }
.home-contact-links span { display: block; color: #aabfff; font-size: 14px; margin-bottom: 3px; }
@media (max-width: 760px) {
  .home-contact-button { order: 1; margin-left: 0; padding: 10px 14px; }
}
