:root {
  --primary: #1678eb;
  --primary-dark: #0d4ea2;
  --gold: #f4c400;
  --gold-dark: #d5a900;
  --text: #182433;
  --muted: #66758a;
  --white: #ffffff;
  --bg: #f4f7fb;
  --dark: #09111d;
  --dark-2: #0d1b30;
  --dark-3: #132744;
  --border: rgba(14, 25, 40, 0.08);
  --shadow: 0 14px 36px rgba(10, 25, 50, 0.10);
  --shadow-lg: 0 24px 70px rgba(10, 25, 50, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1400px, calc(100% - 20px));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}

.site-logo {
  width: 220px;
  height: 120px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
  flex-shrink: 0;
}

.brand-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  margin-left: 24px;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 14px 24px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(10px);
}

/* MAINTENANCE HERO */
.maintenance-hero {
  position: relative;
  min-height: calc(100vh - 122px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(22, 120, 235, 0.16), transparent 24%),
    linear-gradient(135deg, var(--dark), var(--dark-2) 55%, var(--dark-3));
}

.maintenance-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.18));
}

.maintenance-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
}

.maintenance-glow-1 {
  width: 260px;
  height: 260px;
  background: rgba(22, 120, 235, 0.65);
  top: 12%;
  right: 10%;
}

.maintenance-glow-2 {
  width: 240px;
  height: 240px;
  background: rgba(244, 196, 0, 0.45);
  bottom: 12%;
  left: 8%;
}

.maintenance-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 80px 0;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  margin-bottom: 22px;
  font-size: 14px;
}

.maintenance-badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(244,196,0,0.15);
}

.maintenance-copy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  max-width: 760px;
}

.maintenance-text {
  margin: 0;
  max-width: 700px;
  color: rgba(255,255,255,0.86);
  font-size: 19px;
  line-height: 1.8;
}

.maintenance-points {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.maintenance-point {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.maintenance-point strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
}

.maintenance-point span {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.5;
}

.maintenance-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* VISUAL WOW */
.maintenance-visual {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-core {
  position: relative;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 16px rgba(255,255,255,0.02),
    0 0 60px rgba(22,120,235,0.25),
    0 0 90px rgba(244,196,0,0.10);
}

.maintenance-core-inner {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(22,120,235,0.18), rgba(244,196,0,0.16));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
}

.maintenance-icon {
  font-size: 54px;
  line-height: 1;
  animation: pulseIcon 2.2s ease-in-out infinite;
}

.maintenance-core-inner p {
  margin: 10px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.maintenance-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.18);
  animation: spin 18s linear infinite;
}

.orbit-1 {
  width: 340px;
  height: 340px;
}

.orbit-2 {
  width: 430px;
  height: 430px;
  animation-direction: reverse;
  animation-duration: 24s;
}

.orbit-3 {
  width: 520px;
  height: 520px;
  animation-duration: 32s;
  opacity: 0.55;
}

.floating-chip {
  position: absolute;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
  animation: floatY 4.2s ease-in-out infinite;
}

.chip-1 {
  top: 70px;
  right: 80px;
}

.chip-2 {
  left: 30px;
  bottom: 140px;
  animation-delay: .6s;
}

.chip-3 {
  right: 40px;
  bottom: 70px;
  animation-delay: 1.2s;
}

/* FOOTER */
.footer {
  background: #f3f5f8;
  color: var(--text);
  border-top: 1px solid rgba(14, 25, 40, 0.08);
  margin-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 24px 0 12px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-logo {
  width: 125px;
  height: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

.footer-brand-title {
  margin: 0;
  margin-left: 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.footer-column h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #6d6480;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-column p {
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.45;
  font-size: 13px;
}

.footer-column a {
  color: var(--text);
  transition: color 0.25s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(14, 25, 40, 0.08);
  padding: 12px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* ANIMATIONS */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .maintenance-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .maintenance-layout {
    gap: 24px;
  }

  .maintenance-points {
    grid-template-columns: 1fr;
  }

  .maintenance-visual {
    min-height: 460px;
  }
}

@media (max-width: 920px) {
  .nav {
    min-height: 96px;
    padding: 8px 0;
  }

  .site-logo {
    width: 150px;
    height: 82px;
  }

  .brand-text {
    margin-left: 10px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 13px;
    max-width: 240px;
    white-space: normal;
    line-height: 1.25;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(22, 120, 235, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .maintenance-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .maintenance-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, calc(100% - 14px));
  }

  .nav {
    min-height: 84px;
    padding: 6px 0;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .site-logo {
    width: 118px;
    height: 64px;
  }

  .brand-fallback {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    margin-left: 6px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
    max-width: 140px;
    white-space: normal;
    line-height: 1.25;
  }

  .maintenance-layout {
    padding: 60px 0;
  }

  .maintenance-copy h1 {
    font-size: clamp(30px, 10vw, 46px);
  }

  .maintenance-text {
    font-size: 16px;
  }

  .maintenance-visual {
    min-height: 340px;
  }

  .maintenance-core {
    width: 180px;
    height: 180px;
  }

  .maintenance-core-inner {
    width: 120px;
    height: 120px;
  }

  .maintenance-icon {
    font-size: 38px;
  }

  .maintenance-core-inner p {
    font-size: 14px;
  }

  .orbit-1 {
    width: 220px;
    height: 220px;
  }

  .orbit-2 {
    width: 280px;
    height: 280px;
  }

  .orbit-3 {
    width: 340px;
    height: 340px;
  }

  .floating-chip {
    font-size: 12px;
    padding: 10px 14px;
  }

  .chip-1 {
    top: 20px;
    right: 10px;
  }

  .chip-2 {
    left: 0;
    bottom: 80px;
  }

  .chip-3 {
    right: 0;
    bottom: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0 12px;
  }

  .footer-logo {
    width: 100px;
  }

  .footer-brand-title {
    margin-left: 14px;
    font-size: 17px;
  }

  .footer-column p,
  .footer-bottom p {
    font-size: 12px;
  }

  .footer-column h4 {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}


/* =========================================================
   FNRSIT - NAVIGATION PREMIUM : SURVOL + CLIC ACTIF
   Ajouté pour donner un vrai fond visuel aux boutons du menu.
========================================================= */
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-links a::after {
  display: none !important;
}

.nav-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 120, 235, 0.26);
}

.nav-links a:active {
  transform: translateY(0) scale(0.97);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #11315b;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 28px rgba(244, 196, 0, 0.28);
}

.nav-links a:focus-visible {
  outline: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 4px rgba(22, 120, 235, 0.18);
}

@media (max-width: 920px) {
  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 15px;
    border-radius: 14px;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    transform: translateX(4px);
  }
}


/* =========================================================
   FNRSIT - MAINTENANCE : EFFETS VISUELS COHÉRENTS
========================================================= */
.maintenance-point,
.maintenance-core,
.floating-chip,
.btn {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    filter 0.35s ease;
}

.maintenance-point:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.maintenance-core:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.03),
    0 0 76px rgba(22, 120, 235, 0.34),
    0 0 110px rgba(244, 196, 0, 0.18);
}

.floating-chip:hover {
  transform: translateY(-8px) scale(1.04);
  background: linear-gradient(135deg, rgba(244, 196, 0, 0.26), rgba(22, 120, 235, 0.18));
}

