:root {
  --primary: #1678eb;
  --primary-dark: #0d4ea2;
  --gold: #f4c400;
  --gold-dark: #d5a900;
  --text: #182433;
  --muted: #66758a;
  --white: #ffffff;
  --bg: #f4f7fb;
  --soft: #edf2f7;
  --dark: #0f1724;
  --dark-2: #172131;
  --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.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, 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 {
  font: inherit;
}

.container {
  width: min(1400px, calc(100% - 12px));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  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: 6px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.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: 40px;
}

.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;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: 18px;
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  transition: color .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 .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;
}

.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 .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.small {
  padding: 12px 18px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #11315b;
}

/* HERO */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #07111f;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #07111f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-repeat: no-repeat;
  background-position: center 26%;
  background-size: cover;
  transition: opacity 1s ease;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-slide::before {
  background-size: cover;
  background-position: center 26%;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: .22;
}

.hero-slide::after {
  background-size: cover;
  background-position: center 26%;
  opacity: .94;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 17, 31, .78) 0%,
    rgba(7, 17, 31, .68) 32%,
    rgba(7, 17, 31, .46) 58%,
    rgba(7, 17, 31, .22) 82%,
    rgba(7, 17, 31, .12) 100%
  );
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(244,196,0,.10), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(22,120,235,.10), transparent 26%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 54px 0 54px;
}

.hero-badge {
  width: 100%;
  max-width: 340px;
  margin-bottom: 18px;
}

.hero-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  font-size: 14px;
}

.hero-badge-chip span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(244,196,0,.15);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(28px, 4.8vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-text {
  max-width: 760px;
  font-size: clamp(16px, 1.9vw, 22px);
  color: rgba(255,255,255,.92);
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}

.stat-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 20px 18px;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card span {
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.dot {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.15);
}

/* SECTIONS */
.section {
  padding: 90px 0;
}

.section-light {
  background: var(--bg);
}

.section-soft {
  background: linear-gradient(180deg, #eef3f8, #e9eff6);
}

.section-darkish {
  background:
    radial-gradient(circle at top right, rgba(22,120,235,.15), transparent 25%),
    linear-gradient(135deg, var(--dark), var(--dark-2));
}

.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

.section-tag-light {
  color: var(--gold);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.1;
}

.light-text h2,
.light-text p {
  color: #fff;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
}

.about-card,
.contact-panel,
.map-panel,
.contact-form-card,
.portal-card,
.report-card,
.team-card {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.about-card-inner,
.contact-panel,
.map-panel,
.contact-form-card,
.portal-card,
.report-card {
  padding: 24px;
}

.about-logo-box {
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f5f9ff);
  border: 1px solid rgba(22,120,235,.08);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.about-logo {
  max-width: 85%;
  max-height: 360px;
  object-fit: contain;
}

.about-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  font-weight: 900;
  color: var(--primary);
}

.team-grid,
.portal-grid,
.reports-grid {
  display: grid;
  gap: 24px;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.reports-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-top {
  height: 110px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.team-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -56px;
}

.team-avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
}

.team-body {
  padding: 22px 18px 24px;
  text-align: center;
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  height: 100%;
}

.portal-card h3,
.portal-card p {
  width: 100%;
  text-align: center;
}

.portal-card h3 {
  color: var(--gold);
  margin-bottom: 14px;
}

.portal-card .btn {
  margin-top: auto;
  align-self: center;
}

.portal-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 38px;
}

.portal-icon svg,
.contact-symbol svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.report-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}

.report-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244,196,0,.16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info {
  display: grid;
  gap: 24px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-symbol {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  flex-shrink: 0;
}

.contact-symbol svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.map-box {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  outline: none;
}

.form-feedback {
  margin: 0;
  font-weight: 600;
}

/* FOOTER */
.footer {
  background: #f3f5f8;
  color: var(--text);
  border-top: 1px solid rgba(14, 25, 40, 0.08);
  margin-top: 24px;
}

.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;
}

.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);
}

.footer-column h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #6d6480;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-column p {
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.45;
  font-size: 13px;
}

.footer-column a {
  color: var(--text);
}

.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;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .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,.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide::before,
  .hero-slide::after {
    background-position: center 18%;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(7,17,31,.70) 0%,
      rgba(7,17,31,.52) 34%,
      rgba(7,17,31,.30) 62%,
      rgba(7,17,31,.18) 100%
    );
  }

  .hero-content {
    padding: 36px 0 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 380px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-top: 18px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, calc(100% - 10px));
  }

  .nav {
    min-height: 86px;
    padding: 4px 0;
    gap: 8px;
  }

  .site-logo {
    width: 110px;
    height: 78px;
  }

  .brand-text {
    margin-left: 6px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
    max-width: 155px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-content {
    padding: 26px 0 22px;
  }

  .hero-badge {
    max-width: 100%;
    margin-bottom: 12px;
  }

  .hero-badge-chip {
    font-size: 12px;
    padding: 8px 12px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
  }

  .hero-dots {
    margin-top: 14px;
  }

  .hero-slide,
  .hero-slide::before,
  .hero-slide::after {
    background-position: center 12%;
  }

  .team-grid,
  .portal-grid,
  .reports-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .team-avatar {
    width: 140px;
    height: 140px;
  }

  .about-card-inner,
  .contact-panel,
  .map-panel,
  .contact-form-card,
  .portal-card,
  .report-card {
    padding: 20px 18px;
  }

  .map-box {
    height: 280px;
  }

  .footer-logo {
    width: 100px;
  }

  .footer-brand-title {
    margin-left: 12px;
    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;
  }
}

@media (max-width: 420px) {
  .site-logo {
    width: 96px;
    height: 70px;
  }

  .brand-text {
    margin-left: 4px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-slide,
  .hero-slide::before,
  .hero-slide::after {
    background-position: center 10%;
  }
}


/* =========================================================
   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 - EFFETS PREMIUM : ORGANISATION + PORTAIL + RAPPORTS
   Effet esthétique au survol en gardant les couleurs du site.
========================================================= */
.team-card,
.portal-card,
.report-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(22, 120, 235, 0.08);
  transform: translateY(0) scale(1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  will-change: transform;
}

.team-card::before,
.portal-card::before,
.report-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.20), transparent 34%),
    radial-gradient(circle at bottom right, rgba(22, 120, 235, 0.18), transparent 36%);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.team-card > *,
.portal-card > *,
.report-card > * {
  position: relative;
  z-index: 2;
}

.team-card:hover,
.portal-card:hover,
.report-card:hover {
  transform: translateY(-14px) scale(1.035);
  box-shadow: 0 30px 76px rgba(10, 25, 50, 0.23);
  border-color: rgba(22, 120, 235, 0.26);
}

.team-card:hover::before,
.portal-card:hover::before,
.report-card:hover::before {
  opacity: 1;
}

.team-card:active,
.portal-card:active,
.report-card:active {
  transform: translateY(-6px) scale(1.015);
}

.portal-icon,
.team-top,
.team-avatar,
.report-badge,
.portal-card .btn,
.report-card .btn {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    filter 0.35s ease;
}

.portal-card:hover .portal-icon {
  transform: translateY(-7px) scale(1.10) rotate(-3deg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 20px 42px rgba(22, 120, 235, 0.34);
}

.portal-card h3,
.team-body h3,
.team-body h4,
.report-card h3 {
  transition: color 0.3s ease, transform 0.3s ease;
}

.portal-card:hover h3,
.team-card:hover .team-body h3 {
  color: var(--primary);
  transform: translateY(-2px);
}

.team-card:hover .team-top {
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.36), transparent 36%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.team-card:hover .team-avatar {
  transform: scale(1.08);
  border-color: var(--gold);
  box-shadow: 0 20px 44px rgba(10, 25, 50, 0.24);
}

.team-card:hover .team-body h4 {
  color: var(--gold-dark);
}

.report-card {
  border-color: rgba(255, 255, 255, 0.12);
}

.report-card:hover {
  transform: translateY(-16px) scale(1.055);
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.11);
  border-color: rgba(244, 196, 0, 0.42);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(244, 196, 0, 0.18);
}

.report-card:hover .report-badge {
  transform: translateY(-3px) scale(1.07);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #11315b;
  box-shadow: 0 14px 30px rgba(244, 196, 0, 0.30);
}

.report-card:hover h3 {
  color: var(--gold);
  transform: translateY(-2px);
}

.portal-card:hover .btn,
.report-card:hover .btn {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(22, 120, 235, 0.24);
  filter: brightness(1.04);
}

.report-card:hover .btn {
  box-shadow: 0 16px 36px rgba(244, 196, 0, 0.26);
}

@media (max-width: 760px) {
  .team-card:hover,
  .portal-card:hover {
    transform: translateY(-8px) scale(1.015);
  }

  .report-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .portal-card,
  .report-card,
  .portal-icon,
  .team-top,
  .team-avatar,
  .report-badge,
  .btn,
  .nav-links a {
    transition: none !important;
  }

  .team-card:hover,
  .portal-card:hover,
  .report-card:hover,
  .portal-card:hover .portal-icon,
  .team-card:hover .team-avatar,
  .nav-links a:hover {
    transform: none !important;
  }
}

/* =========================================================
   CORRECTION NAV : fond visible sans casser le menu
   Ce bloc garde les boutons sur une seule ligne en desktop.
========================================================= */
@media (min-width: 921px) {
  .nav-links {
    gap: clamp(10px, 1.15vw, 22px) !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .nav-links a {
    white-space: nowrap !important;
    line-height: 1.2 !important;
    min-height: 42px !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    transform: translateY(-1px) !important;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .nav-links {
    gap: 8px !important;
  }

  .nav-links a {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }
}

/* Site-wide mobile fixes */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 24px, 100%) !important;
  }

  .header {
    position: sticky;
  }

  .nav {
    min-height: auto !important;
    padding: 10px 0 !important;
    align-items: center !important;
  }

  .brand {
    max-width: calc(100% - 58px);
    gap: 10px;
  }

  .site-logo {
    width: min(150px, 42vw) !important;
    height: auto !important;
  }

  .brand-text,
  .brand-title-full {
    min-width: 0;
  }

  .brand-title-full span {
    display: block;
  }

  .nav-links {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero {
    min-height: auto !important;
  }

  .hero-content {
    padding: 110px 0 72px !important;
  }

  .hero-text {
    max-width: 100% !important;
    font-size: 1.2rem !important;
    line-height: 1.55 !important;
  }

  .section {
    padding: 52px 0 !important;
  }

  .section-head h2 {
    font-size: clamp(1.75rem, 8vw, 2.4rem) !important;
  }

  .about-layout,
  .contact-layout,
  .footer-main {
    grid-template-columns: 1fr !important;
  }

  .team-grid,
  .portal-grid,
  .reports-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-card,
  .team-card,
  .report-card,
  .contact-panel,
  .map-panel,
  .contact-form-card,
  .about-card {
    width: 100%;
    max-width: 100%;
  }

  .map-box iframe {
    min-height: 260px;
  }

  .footer-main {
    gap: 28px !important;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 18px, 100%) !important;
  }

  .site-logo {
    width: min(118px, 36vw) !important;
  }

  .brand-text {
    font-size: 13px;
  }

  .hero-content {
    padding: 90px 0 58px !important;
  }

  .hero-badge-chip,
  .btn,
  button {
    max-width: 100%;
  }

  .portal-card,
  .report-card,
  .contact-panel,
  .map-panel,
  .contact-form-card {
    padding: 22px !important;
  }

  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
}

