/*
 * AHDLC mobile-first UI layer.
 * Loaded after styles.css, making this the public navigation source of truth.
 */

:root {
  --ui-navy-950: #061b31;
  --ui-navy-900: #082844;
  --ui-navy-800: #0b3a5e;
  --ui-blue-600: #087fa8;
  --ui-cyan-400: #35d6e6;
  --ui-cyan-300: #79e4ee;
  --ui-white: #fff;
  --ui-surface: #f5f9fc;
  --ui-ink: #102a3d;
  --ui-muted: #597083;
  --ui-border: rgba(16, 42, 61, 0.12);
  --ui-shadow: 0 20px 50px rgba(0, 24, 48, 0.2);
  --ui-shadow-soft: 0 12px 34px rgba(8, 40, 68, 0.1);
  --ui-radius-sm: 10px;
  --ui-radius-md: 16px;
  --ui-radius-lg: 24px;
  --ui-content: 1200px;
  --ui-header-height: 72px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ui-header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ui-ink);
  background: var(--ui-white);
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ui-cyan-400);
  outline-offset: 3px;
}

section {
  scroll-margin-top: calc(var(--ui-header-height) + 16px);
}

.section-title {
  font-size: clamp(1.65rem, 7vw, 2.5rem);
  line-height: 1.12;
}

.services,
.actualites,
.domaines-intervention,
.about-services-section,
.about-values,
.cta-premium-section,
.partners-section {
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.qualities,
.news-container,
.domaines-intervention .grid-container {
  width: min(100%, var(--ui-content));
  margin-inline: auto;
}

.qualities,
.news-container {
  gap: 1rem;
}

.quality,
.news-item,
.grid-item {
  min-width: 0;
}

/* Home domain cards reuse the color identity of their destination heroes. */
.domaines-intervention > .section-title,
.domaines-intervention > p {
  width: min(100%, var(--ui-content));
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.domaines-intervention .grid-item {
  color: var(--ui-white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(8, 40, 68, 0.16);
}

.domaines-intervention .grid-item:nth-child(1) {
  background: linear-gradient(135deg, #003366 0%, #0055aa 60%, #0077cc 100%);
}

.domaines-intervention .grid-item:nth-child(2) {
  background: linear-gradient(135deg, #006633 0%, #009944 60%, #00c853 100%);
}

.domaines-intervention .grid-item:nth-child(3) {
  background: linear-gradient(135deg, #005577 0%, #007799 60%, #00aacc 100%);
}

.domaines-intervention .grid-item:nth-child(4) {
  background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 60%, #ce93d8 100%);
}

.domaines-intervention .grid-item:nth-child(5) {
  background: linear-gradient(135deg, #e65100 0%, #f57c00 60%, #ffb74d 100%);
}

.domaines-intervention .grid-item:nth-child(6) {
  background: linear-gradient(135deg, #00695c 0%, #00897b 60%, #4db6ac 100%);
}

.domaines-intervention .grid-item:hover {
  filter: saturate(1.08) brightness(1.04);
}

/* Inline mark avoids Font Awesome version differences for the X brand. */
.social-x-icon {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

/* Fixed dimensions keep the back-to-top surface perfectly circular. */
.back-to-top {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  line-height: 48px;
  text-align: center;
  aspect-ratio: 1;
}

/* The global footer is centered; navigation/contact columns are not. */
.site-footer .footer-col {
  text-align: left;
}

.site-footer .footer-col h4 {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.site-footer .footer-top {
  width: 100%;
  max-width: 1440px;
  padding-left: clamp(1rem, 2vw, 1.75rem);
  padding-right: clamp(1rem, 2vw, 1.75rem);
  column-gap: clamp(2rem, 4vw, 4.5rem);
}

.site-footer .footer-developer {
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.site-footer .footer-developer a {
  margin-left: 0.25rem;
  color: var(--ui-cyan-300);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-footer .footer-developer a:hover {
  color: var(--ui-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  min-height: var(--ui-header-height);
  padding: 0;
  color: var(--ui-white);
  background:
    radial-gradient(circle at 5% 0%, rgba(53, 214, 230, 0.18), transparent 35%),
    linear-gradient(120deg, var(--ui-navy-950), var(--ui-navy-800));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(2, 20, 38, 0.18);
  backdrop-filter: none;
}

.site-header .header-flex {
  width: min(100%, calc(var(--ui-content) + 2rem));
  min-height: var(--ui-header-height);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-header .navbar-logo a {
  min-height: 48px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ui-white);
  text-decoration: none;
  transform: none;
}

.site-header .navbar-logo a:hover {
  transform: none;
}

.site-header .navbar-logo img {
  width: 44px;
  height: 44px;
  margin: 0;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.18));
}

.site-header .navbar-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* 48px target, explicit label, animated menu icon. */
.site-header .menu-toggle {
  position: static;
  inset: auto;
  z-index: 3010;
  width: auto;
  min-width: 86px;
  min-height: 48px;
  height: auto;
  padding: 0.65rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--ui-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: none;
  line-height: 1;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header .menu-toggle:hover,
.site-header .menu-toggle[aria-expanded="true"] {
  color: var(--ui-white);
  background: rgba(53, 214, 230, 0.18);
  border-color: rgba(121, 228, 238, 0.65);
}

.menu-toggle-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.menu-toggle-lines {
  width: 21px;
  height: 16px;
  display: grid;
  align-content: space-between;
}

.menu-toggle-lines span {
  width: 100%;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  transition: transform 220ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu block: a scrollable sheet rather than a full cyan page. */
.site-header #nav-menu {
  position: fixed;
  top: var(--ui-header-height);
  right: 0;
  bottom: 0;
  z-index: 3005;
  width: min(90vw, 390px);
  height: calc(100vh - var(--ui-header-height));
  height: calc(100dvh - var(--ui-header-height));
  min-height: 0;
  padding: 1.1rem 1rem max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--ui-ink);
  background: var(--ui-white);
  border-left: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), visibility 250ms;
}

.site-header #nav-menu.active {
  display: flex !important;
  transform: translateX(0);
  visibility: visible;
}

.nav-menu-heading {
  padding: 0.35rem 0.55rem 1rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--ui-border);
}

.nav-menu-heading span {
  color: var(--ui-navy-900);
  font-size: 1.2rem;
  font-weight: 800;
}

.nav-menu-heading small {
  margin-top: 0.15rem;
  color: var(--ui-muted);
  font-size: 0.8rem;
}

.site-header #nav-menu > ul {
  width: 100%;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  list-style: none;
}

.site-header #nav-menu > ul > li,
.site-header #nav-menu .dropdown {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  text-align: left;
}

.site-header #nav-menu > ul > li > a,
.site-header .dropdown-trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ui-ink) !important;
  background: transparent !important;
  border: 0;
  border-radius: var(--ui-radius-sm);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-header #nav-menu > ul > li > a::after,
.site-header .dropdown-trigger::after {
  display: none !important;
}

.site-header #nav-menu > ul > li > a:hover,
.site-header #nav-menu > ul > li > a:focus-visible,
.site-header .dropdown-trigger:hover,
.site-header .dropdown-trigger:focus-visible,
.site-header #nav-menu > ul > li > a.active,
.site-header #nav-menu > ul > li.dropdown.active > .dropdown-trigger {
  color: var(--ui-navy-900) !important;
  background: #eaf7fa !important;
}

.site-header #nav-menu > ul > li > a.active::before,
.site-header #nav-menu > ul > li.dropdown.active > .dropdown-trigger::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 24px;
  background: var(--ui-blue-600);
  border-radius: 0 999px 999px 0;
}

.site-header .dropdown-trigger i {
  color: var(--ui-blue-600);
  font-size: 0.75rem;
  transition: transform 180ms ease;
}

.site-header .dropdown.open > .dropdown-trigger i {
  transform: rotate(180deg);
}

.site-header .dropdown-menu {
  position: static;
  min-width: 0;
  width: 100%;
  max-height: 0;
  margin: 0;
  padding: 0 0 0 0.75rem;
  display: block !important;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: none;
  color: var(--ui-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: max-height 240ms ease, opacity 180ms ease, visibility 240ms;
}

.site-header .dropdown.open > .dropdown-menu {
  max-height: 460px;
  padding-bottom: 0.4rem;
  visibility: visible;
  opacity: 1;
}

.site-header .dropdown-menu li {
  width: 100%;
  margin: 0 !important;
}

.site-header .dropdown-menu li a {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem !important;
  display: flex !important;
  align-items: center;
  color: var(--ui-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid var(--ui-border) !important;
  border-radius: 0 var(--ui-radius-sm) var(--ui-radius-sm) 0;
  font-size: 0.9rem !important;
  font-weight: 550 !important;
  line-height: 1.35;
  text-align: left;
}

.site-header .dropdown-menu li a:hover,
.site-header .dropdown-menu li a:focus-visible,
.site-header .dropdown-menu li a.active {
  padding-left: 1rem !important;
  color: var(--ui-navy-900) !important;
  background: var(--ui-surface) !important;
  border-left-color: var(--ui-cyan-400) !important;
}

.nav-contact-cta {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ui-white);
  background: linear-gradient(135deg, var(--ui-navy-800), var(--ui-blue-600));
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(8, 127, 168, 0.2);
}

.nav-contact-cta:hover {
  color: var(--ui-white);
  background: linear-gradient(135deg, var(--ui-navy-900), #0795bd);
}

.nav-scrim {
  position: fixed;
  inset: var(--ui-header-height) 0 0;
  z-index: 2990;
  width: 100%;
  height: auto;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  cursor: pointer;
  background: rgba(2, 15, 28, 0.58);
  border: 0;
  backdrop-filter: blur(3px);
  transition: opacity 220ms ease, visibility 220ms;
}

body.menu-open .nav-scrim {
  visibility: visible;
  opacity: 1;
}

/* Narrow screens are composed deliberately instead of shrinking desktop. */
@media (max-width: 599px) {
  .banner {
    min-height: 440px;
    height: min(72svh, 560px);
  }

  .banner-text {
    width: calc(100% - 2rem);
    padding-inline: 0;
  }

  .banner-text h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
    line-height: 1.08;
  }

  .banner-text p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .banner-cta-btns,
  .cta-actions {
    width: 100%;
  }

  .banner-cta-btns a,
  .cta-actions a {
    width: min(100%, 340px);
    min-height: 48px;
    justify-content: center;
  }

  .a-propos {
    margin-inline: 1rem;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .site-footer a,
  .pagination a,
  .pagination button {
    min-height: 44px;
  }
}

/* Tablet and desktop enhancement. */
@media (min-width: 901px) {
  :root {
    --ui-header-height: 82px;
  }

  body.menu-open {
    overflow: auto;
  }

  .site-header .header-flex {
    padding-inline: 1.5rem;
  }

  .site-header .navbar-logo img {
    width: 50px;
    height: 50px;
  }

  .site-header .navbar-logo span {
    font-size: 1.2rem;
  }

  .site-header .menu-toggle,
  .nav-menu-heading,
  .nav-contact-cta,
  .nav-scrim {
    display: none !important;
  }

  .site-header #nav-menu,
  .site-header #nav-menu.active {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 0;
    margin-left: auto;
    padding: 0;
    display: flex !important;
    overflow: visible;
    color: var(--ui-white);
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  .site-header #nav-menu > ul {
    width: auto;
    margin: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-header #nav-menu > ul > li,
  .site-header #nav-menu .dropdown {
    width: auto;
    position: relative;
  }

  .site-header #nav-menu > ul > li > a,
  .site-header .dropdown-trigger {
    width: auto;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    color: rgba(255, 255, 255, 0.84) !important;
    border-radius: 10px;
    font-size: clamp(0.84rem, 1.25vw, 0.96rem);
    white-space: nowrap;
  }

  .site-header #nav-menu > ul > li > a:hover,
  .site-header #nav-menu > ul > li > a:focus-visible,
  .site-header .dropdown-trigger:hover,
  .site-header .dropdown-trigger:focus-visible,
  .site-header #nav-menu > ul > li > a.active,
  .site-header #nav-menu > ul > li.dropdown.active > .dropdown-trigger,
  .site-header .dropdown.open > .dropdown-trigger {
    color: var(--ui-white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .site-header #nav-menu > ul > li > a.active::before,
  .site-header #nav-menu > ul > li.dropdown.active > .dropdown-trigger::before {
    inset: auto 0 1px;
    width: auto;
    height: 2px;
    background: var(--ui-cyan-300);
    border-radius: 999px;
  }

  .site-header .dropdown-trigger i {
    margin-left: 0.1rem;
    color: var(--ui-cyan-300);
  }

  .site-header .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: max-content;
    min-width: 250px;
    max-width: 320px;
    max-height: none;
    padding: 0.6rem;
    overflow: visible;
    visibility: hidden;
    opacity: 0;
    color: var(--ui-ink);
    background: var(--ui-white);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    box-shadow: var(--ui-shadow);
    transform: translate(-50%, 8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-header .dropdown.open > .dropdown-menu,
  .site-header .dropdown:hover > .dropdown-menu,
  .site-header .dropdown:focus-within > .dropdown-menu {
    max-height: none;
    padding: 0.6rem;
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .site-header .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--ui-white);
    border-top: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
    transform: translateX(-50%) rotate(45deg);
  }

  .site-header .dropdown-menu li a {
    min-height: 42px;
    padding: 0.65rem 0.75rem !important;
    border: 0 !important;
    border-radius: 9px;
    color: var(--ui-muted) !important;
  }

  .site-header .dropdown-menu li a:hover,
  .site-header .dropdown-menu li a:focus-visible,
  .site-header .dropdown-menu li a.active {
    padding-left: 0.9rem !important;
    color: var(--ui-navy-900) !important;
    background: #eaf7fa !important;
  }
}

@media (min-width: 1100px) {
  .site-header #nav-menu > ul {
    gap: 0.35rem;
  }

  .site-header #nav-menu > ul > li > a,
  .site-header .dropdown-trigger {
    padding-inline: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* About page: fluid layout and resilient dynamic content. */
.about-page-hero-content h1,
.presentation-text h2,
.vision-inner h2,
.item-text {
  overflow-wrap: anywhere;
}

.about-page-hero .about-hero-stats {
  width: min(100%, 680px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 3vw, 2rem);
}

.about-page-hero .stat-item {
  min-width: 0;
}

.presentation-img img {
  max-width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.vision-inner h2 {
  margin: 0.75rem 0;
  color: var(--ui-navy-900);
  font-size: clamp(1.65rem, 4vw, 2rem);
}

.about-domains-grid {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-domains-grid .item,
.roadmap .step {
  min-width: 0;
}

/* Mission cards: override legacy fixed widths and oversized margins. */
.mission {
  width: 100%;
  max-width: none;
  margin: 0;
}

.mission .roadmap {
  width: min(100%, 1200px);
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.mission .roadmap .step {
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.mission .roadmap .arrow {
  display: none;
}

/* FAQ accordion: grid rows avoid clipped answers and fixed-height guesses. */
.faq-section .faq-answer {
  max-height: none;
  padding: 0 1.25rem;
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  background: #fafcff;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 280ms ease,
    opacity 200ms ease,
    visibility 280ms,
    padding 280ms ease,
    border-color 280ms ease;
}

.faq-section .faq-question {
  list-style: none;
}

.faq-section .faq-question::-webkit-details-marker {
  display: none;
}

.faq-section .faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  color: #334e61;
  font-size: 0.96rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.faq-section .faq-item[open] .faq-answer {
  max-height: none;
  padding: 1rem 1.25rem 1.2rem;
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  border-top-color: var(--ui-border);
}

.faq-section .faq-item:not([open]) .faq-answer {
  display: none;
}

.faq-section .faq-item[open] .faq-question {
  background: linear-gradient(135deg, #eaf4ff, #f0f8ff);
}

.faq-section .faq-item[open] .faq-toggle-icon {
  transform: rotate(180deg);
}

.domain-articles {
  margin-top: 2rem;
}

.domain-articles-heading {
  margin-bottom: 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.domain-articles-heading > div > span {
  color: var(--ui-blue-600);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.domain-articles-heading h3 {
  margin: 0.25rem 0 0;
  color: var(--ui-navy-900);
}

.domain-articles-heading > a {
  color: var(--ui-blue-600);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.domain-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.domain-article-card {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  background: var(--ui-white);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-soft);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.domain-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(8, 40, 68, 0.14);
}

.domain-article-card > img {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  background: var(--ui-surface);
}

.domain-article-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.domain-article-card-body small {
  color: var(--ui-muted);
  font-size: 0.72rem;
}

.domain-article-card-body strong {
  color: var(--ui-navy-900);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.domain-article-card-body > span {
  color: var(--ui-blue-600);
  font-size: 0.78rem;
  font-weight: 750;
}

.not-found-page {
  min-height: 60vh;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  display: grid;
  place-items: center;
  background: var(--ui-surface);
}

.not-found-card {
  width: min(100%, 560px);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background: var(--ui-white);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-soft);
}

.not-found-card > i {
  color: var(--ui-blue-600);
  font-size: 3rem;
}

.not-found-code {
  margin: 0.75rem 0 0;
  color: var(--ui-blue-600);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.not-found-card h1 {
  margin: 0.35rem 0 0.75rem;
  color: var(--ui-navy-900);
}

.not-found-card .voir-plus {
  margin-top: 1.25rem;
  display: inline-flex;
}

@media (max-width: 900px) {
  .about-page-hero,
  .presentation,
  .historique,
  .mission,
  .vision,
  .dual-column-section {
    padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem);
  }

  .presentation-row {
    width: 100%;
    flex-direction: column;
    gap: 2rem;
  }

  .presentation-img {
    width: min(100%, 620px);
    flex: none;
  }

  .presentation-text {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .about-page-hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .historique-grid,
  .about-domains-grid {
    grid-template-columns: 1fr;
  }

  .mission .roadmap {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mission .roadmap .step {
    width: 100%;
  }

  .domain-articles-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .domain-articles-grid {
    grid-template-columns: 1fr;
  }

  .roadmap .arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header #nav-menu {
    width: 100vw;
    border-left: 0;
  }

  .menu-toggle-label {
    display: none;
  }

  .site-header .menu-toggle {
    min-width: 48px;
    padding-inline: 0.75rem;
  }

  .about-page-hero .about-hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-page-hero .stat-item {
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
  }

  .about-domains-grid .item {
    padding: 1rem;
  }

  .about-domains-grid .item-icon-wrap {
    width: 46px;
    height: 46px;
  }
}

/* Article detail: editorial reading experience. */
.news-article-page {
  background: var(--ui-surface);
}

.news-article-hero {
  position: relative;
  min-height: 390px;
  padding: clamp(2.25rem, 6vw, 4.75rem) 1rem clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  color: var(--ui-white);
  background:
    radial-gradient(circle at 82% 10%, rgba(53, 214, 230, 0.22), transparent 30%),
    linear-gradient(125deg, var(--ui-navy-950), var(--ui-navy-800) 68%, #075f7d);
}

.news-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.news-article-hero-glow {
  position: absolute;
  top: -130px;
  right: max(-120px, calc((100vw - var(--ui-content)) / 2));
  width: 360px;
  height: 360px;
  border: 1px solid rgba(121, 228, 238, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(121, 228, 238, 0.045),
    0 0 0 100px rgba(121, 228, 238, 0.025);
}

.news-article-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--ui-content));
  margin: 0 auto;
}

.news-article-breadcrumb {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  margin-bottom: clamp(1.75rem, 5vw, 3rem);
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  visibility: visible;
  opacity: 1;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  box-shadow: none;
  transform: none;
  font-size: 0.82rem;
  z-index: auto;
}

.news-article-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.news-article-breadcrumb a:hover {
  color: var(--ui-cyan-300);
}

.news-article-breadcrumb i {
  color: rgba(121, 228, 238, 0.7);
  font-size: 0.6rem;
}

.news-article-breadcrumb span {
  max-width: 38ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-article-category {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ui-navy-950);
  background: var(--ui-cyan-300);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.news-article-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ui-white);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.news-article-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.news-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.news-article-meta i {
  color: var(--ui-cyan-300);
}

.news-article-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--ui-content));
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.news-article-main,
.news-article-aside-card {
  background: var(--ui-white);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-soft);
}

.news-article-main {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--ui-radius-lg);
}

.news-article-cover {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, #f9fcfe, #e7f0f6);
  border-bottom: 1px solid var(--ui-border);
}

.news-article-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 27, 49, 0.1), transparent);
}

.news-article-cover img {
  width: 100%;
  height: clamp(270px, 52vw, 510px);
  display: block;
  object-fit: cover;
  object-position: center;
}

.news-article-lead {
  margin: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 6vw, 4rem) 0;
  padding: clamp(1.25rem, 4vw, 1.8rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  color: var(--ui-navy-900);
  background: #eef8fa;
  border: 1px solid rgba(8, 127, 168, 0.13);
  border-left: 4px solid var(--ui-blue-600);
  border-radius: 0 var(--ui-radius-md) var(--ui-radius-md) 0;
}

.news-article-lead > i {
  margin-top: 0.15rem;
  color: var(--ui-blue-600);
  font-size: 1.2rem;
}

.news-article-lead p {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.22rem);
  font-weight: 650;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.news-article-content {
  min-width: 0;
  padding: clamp(1.8rem, 5vw, 3.25rem) clamp(1.25rem, 6vw, 4rem);
  color: #294356;
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.news-article-content p {
  margin: 0 0 1.4em;
}

.news-article-content p:last-child {
  margin-bottom: 0;
}

.news-article-content a {
  color: var(--ui-blue-600);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-article-footer {
  margin: 0 clamp(1.25rem, 6vw, 4rem);
  padding: 1.4rem 0 clamp(1.5rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ui-ink);
  background: transparent;
  border-top: 1px solid var(--ui-border);
  text-align: left;
}

.news-article-footer > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.news-article-footer-label {
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-article-footer strong {
  color: var(--ui-navy-900);
}

.news-article-back {
  min-height: 46px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ui-white);
  background: var(--ui-navy-800);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.news-article-back:hover {
  color: var(--ui-white);
  background: var(--ui-blue-600);
}

.news-article-aside {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.news-article-aside-card {
  padding: 1.35rem;
  border-radius: var(--ui-radius-md);
}

.news-article-aside-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ui-blue-600);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-article-aside-card h2 {
  margin: 0;
  color: var(--ui-navy-900);
  font-size: 1.08rem;
  line-height: 1.3;
}

.news-article-summary dl {
  margin: 1.2rem 0 0;
}

.news-article-summary dl > div {
  padding: 0.7rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ui-border);
}

.news-article-summary dt {
  color: var(--ui-muted);
  font-size: 0.8rem;
}

.news-article-summary dd {
  margin: 0;
  color: var(--ui-navy-900);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: right;
}

.news-article-aside-heading {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-article-aside-heading > a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  color: var(--ui-blue-600);
  background: #eaf7fa;
  border-radius: 50%;
  text-decoration: none;
}

.news-article-related-list {
  display: grid;
}

.news-article-related {
  padding: 0.85rem 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  color: inherit;
  border-top: 1px solid var(--ui-border);
  text-decoration: none;
}

.news-article-related img {
  width: 72px;
  height: 62px;
  object-fit: cover;
  background: var(--ui-surface);
  border-radius: 10px;
}

.news-article-related span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.news-article-related strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ui-navy-900);
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-article-related small {
  color: var(--ui-muted);
  font-size: 0.73rem;
}

.news-article-related:hover strong {
  color: var(--ui-blue-600);
}

.news-article-help {
  color: var(--ui-white);
  background:
    radial-gradient(circle at 100% 0%, rgba(121, 228, 238, 0.2), transparent 40%),
    linear-gradient(145deg, var(--ui-navy-900), var(--ui-navy-800));
  border: 0;
}

.news-article-help > i {
  margin-bottom: 1rem;
  color: var(--ui-cyan-300);
  font-size: 1.55rem;
}

.news-article-help h2 {
  color: var(--ui-white);
}

.news-article-help p {
  margin: 0.65rem 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.6;
}

.news-article-help a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ui-cyan-300);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.news-article-cta {
  width: min(calc(100% - 2rem), var(--ui-content));
  margin: clamp(3rem, 7vw, 5rem) auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--ui-white);
  background:
    radial-gradient(circle at 80% 0%, rgba(53, 214, 230, 0.2), transparent 30%),
    linear-gradient(125deg, var(--ui-navy-950), var(--ui-navy-800));
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
}

.news-article-cta > div {
  max-width: 720px;
}

.news-article-cta > div > span {
  color: var(--ui-cyan-300);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.news-article-cta h2 {
  margin: 0.55rem 0;
  color: var(--ui-white);
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.news-article-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.news-article-cta > a {
  flex: 0 0 auto;
  text-decoration: none;
}

@media (min-width: 960px) {
  .news-article-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
  }

  .news-article-aside {
    position: sticky;
    top: calc(var(--ui-header-height) + 1.25rem);
  }
}

@media (max-width: 700px) {
  .news-article-hero {
    min-height: 350px;
    padding-bottom: 3.5rem;
  }

  .news-article-breadcrumb span,
  .news-article-breadcrumb i:last-of-type {
    display: none;
  }

  .news-article-shell {
    width: calc(100% - 1.25rem);
    margin-top: 0;
    padding-top: 0.75rem;
  }

  .news-article-cover img {
    height: min(72vw, 360px);
  }

  .news-article-footer,
  .news-article-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .news-article-back,
  .news-article-cta > a {
    width: 100%;
    justify-content: center;
  }

  .news-article-lead {
    margin-inline: 1rem;
  }

  .news-article-content {
    padding-inline: 1.25rem;
  }

  .news-article-footer {
    margin-inline: 1.25rem;
  }
}
