:root {
  --navy-950: #071521;
  --navy-900: #0b2133;
  --navy-800: #12344d;
  --blue-600: #0878a8;
  --blue-500: #0b8fc7;
  --blue-100: #dff3fb;
  --amber-500: #f2a900;
  --ink: #17212b;
  --muted: #5b6976;
  --line: #dce4ea;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --success: #137a48;
  --danger: #b4232f;
  --shadow-sm: 0 8px 24px rgba(7, 21, 33, .08);
  --shadow-lg: 0 24px 64px rgba(7, 21, 33, .16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 76px;
}

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

html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body.nav-open, body.modal-open { overflow: hidden; }

html.page-scroll-locked,
html.page-scroll-locked body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(11, 143, 199, .42);
  outline-offset: 3px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  z-index: 5000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-600);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.top-banner {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  color: #fff;
  background: linear-gradient(105deg, rgba(7,21,33,.985), rgba(11,33,51,.97));
  border-bottom: 2px solid rgba(242,169,0,.76);
  box-shadow: 0 8px 30px rgba(7,21,33,.2);
  transition: box-shadow .25s ease;
}
.top-banner.is-scrolled { box-shadow: 0 10px 34px rgba(7,21,33,.3); }

.banner-left { flex: 0 0 auto; margin-right: auto; }
.banner-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand-mark { flex: 0 0 54px; width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(242,169,0,.72), 0 8px 18px rgba(0,0,0,.18); transition: transform .25s ease; }
.banner-logo:hover .brand-mark { transform: scale(1.04); }
.banner-logo:hover { color: #fff; }
.brand-label--short { display: none; }

.banner-right { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; }
.dropdown { position: relative; }
.dropbtn, .simple-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(255,255,255,.86);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.dropdown > a { text-decoration: none; }
.dropdown > .dropbtn::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 8px; border-right: 2px solid var(--amber-500); border-bottom: 2px solid var(--amber-500); transform: rotate(45deg); transition: transform .2s ease; }
.dropdown:hover > .dropbtn::after, .dropdown:focus-within > .dropbtn::after, .dropdown.is-open > .dropbtn::after { margin-top: 3px; transform: rotate(225deg); }
.dropbtn:hover, .simple-link:hover, .dropbtn:focus-visible, .simple-link:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.banner-right > a[aria-current="page"], .banner-right > .dropdown > a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(242,169,0,.38); }
.simple-link:last-child {
  margin-left: 10px;
  padding-inline: 18px;
  color: var(--navy-950);
  background: var(--amber-500);
  border-color: var(--amber-500);
  box-shadow: 0 8px 20px rgba(242,169,0,.18);
}
.simple-link:last-child:hover { color: var(--navy-950); background: #ffc13d; border-color: #ffc13d; transform: translateY(-1px); }

.dropdown-content, .submenu-content {
  position: absolute;
  z-index: 20;
  min-width: 270px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transform-origin: top;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown-content::before { content: ""; position: absolute; inset: 0 18px auto; height: 3px; background: linear-gradient(90deg, var(--amber-500), var(--blue-500)); border-radius: 0 0 5px 5px; }
.dropdown-content { top: calc(100% + 10px); left: 0; }
.dropdown-content--expertise { width: 310px; }
.dropdown-content--formations { width: 330px; }
.dropdown:nth-of-type(2) > .dropdown-content { left: auto; right: 0; }
.dropdown-content a, .submenu > a, .submenu-content a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
}
.menu-heading { margin: -2px -2px 8px; padding: 12px 14px 13px; border-bottom: 1px solid var(--line); }
.menu-heading span { display: block; color: var(--navy-900); font-size: .78rem; font-weight: 850; letter-spacing: .065em; text-transform: uppercase; }
.menu-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.menu-heading--secondary { padding-right: 38px; }
.dropdown-content .menu-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dropdown-content .menu-link::after { content: "→"; flex: 0 0 auto; color: var(--blue-500); opacity: 0; transform: translateX(-5px); transition: opacity .18s ease, transform .18s ease; }
.dropdown-content a:hover, .dropdown-content a:focus-visible { color: var(--blue-600); background: var(--blue-100); }
.dropdown-content .menu-link:hover::after, .dropdown-content .menu-link:focus-visible::after { opacity: 1; transform: translateX(0); }
.dropdown:hover > .dropdown-content, .dropdown:focus-within > .dropdown-content,
.dropdown.is-open > .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown::after { content: ""; position: absolute; display: none; top: 100%; left: 0; width: 100%; height: 12px; }
.dropdown:hover::after, .dropdown:focus-within::after { display: block; }
.submenu { position: relative; }
.submenu > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.submenu > a::after { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-top: 2px solid #75909f; border-right: 2px solid #75909f; transform: rotate(225deg); transition: transform .2s ease; }
.submenu::after { content: ""; position: absolute; top: 0; right: 100%; width: 14px; height: 100%; }
.submenu-content { top: -10px; right: calc(100% + 14px); left: auto; width: 390px; }
.submenu-content::after { content: ""; position: absolute; top: 22px; right: -7px; width: 14px; height: 14px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.submenu:hover > .submenu-content, .submenu:focus-within > .submenu-content { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.hero-header, .header-banner {
  position: relative;
  min-height: clamp(330px, 48vw, 520px);
  display: grid;
  place-items: center;
  padding: 72px 24px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-image: linear-gradient(105deg, rgba(7,21,33,.92), rgba(11,54,79,.67)), url('../assets/header-bg.jpg');
  background-position: center;
  background-size: cover;
}
.hero-header::after, .header-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--amber-500), var(--blue-500));
}
.hero-overlay, .header-overlay { position: relative; z-index: 1; max-width: 900px; }
.hero-header h1, .header-title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.hero-header h2, .header-subtitle {
  margin: 0 0 14px;
  color: #bde9fb;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 620;
  letter-spacing: .01em;
}
.hero-header p { max-width: 710px; margin: 0 auto; color: rgba(255,255,255,.78); font-size: 1.05rem; }

.presentation-section {
  max-width: 840px;
  margin: 0 auto;
  padding: 76px 24px 34px;
  text-align: center;
}
.presentation-section h2 {
  margin: 0 0 16px;
  color: var(--navy-900);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.presentation-section h2::before {
  content: "EXPERTISE & PRÉVENTION";
  display: block;
  margin-bottom: 12px;
  color: var(--blue-600);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .16em;
}
.presentation-section p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.footer {
  position: static;
  width: 100%;
  margin-top: auto;
  padding: 24px max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  color: rgba(255,255,255,.7);
  background: linear-gradient(110deg, var(--navy-950), var(--navy-900));
  border-top: 2px solid rgba(242,169,0,.7);
  font-size: 13px;
}
.footer-content { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-left { justify-self: start; text-align: left; }
.footer-center { text-align: center; }
.footer-right { justify-self: end; text-align: right; }
.footer a { padding: 4px 6px; color: rgba(255,255,255,.8); border-radius: 6px; text-decoration: none; transition: color .2s ease, background .2s ease; }
.footer a:hover { color: #fff; background: rgba(255,255,255,.08); }
.socials { display: inline-flex; gap: 8px; }
.socials a { display: inline-flex; align-items: center; font-weight: 700; }
.socials img { display: none; }

@media (max-width: 1120px) {
  :root { --header-height: 68px; }
  .top-banner { padding-inline: 12px; }
  .dropbtn, .simple-link { font-size: 12px; padding-inline: 8px; }
  .simple-link:nth-last-child(2), .simple-link:nth-last-child(3) { display: none; }
}

@media (max-width: 1000px) {
  .banner-logo { max-width: 310px; }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .banner-right {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: block;
    padding: 20px max(18px, env(safe-area-inset-right)) max(42px, calc(env(safe-area-inset-bottom) + 22px)) max(18px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(160deg, var(--navy-950), var(--navy-900));
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .banner-right.is-open { transform: translateX(0); visibility: visible; }
  .dropdown, .dropdown > a, .dropbtn, .simple-link { width: 100%; }
  .dropbtn, .simple-link { justify-content: space-between; min-height: 52px; padding: 13px 14px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 9px; }
  .simple-link:nth-last-child(2), .simple-link:nth-last-child(3) { display: flex; }
  .simple-link:last-child { margin: 12px 0 0; justify-content: center; }
  .dropdown-content, .submenu-content {
    position: static;
    display: none;
    width: 100%;
    max-height: none !important;
    margin: 4px 0 10px;
    padding: 7px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown-content::before, .submenu-content::after, .dropdown::after, .submenu::after { display: none !important; }
  .menu-heading { padding: 10px 11px 11px; }
  .menu-heading small { font-size: .75rem; }
  .dropdown:hover > .dropdown-content, .dropdown:focus-within > .dropdown-content { display: none; }
  .dropdown.is-open > .dropdown-content { display: block; }
  .submenu > a { min-height: 48px; padding: 11px 12px; }
  .submenu > a::after { transform: rotate(45deg); }
  .submenu.is-open > a { color: var(--blue-600); background: var(--blue-100); }
  .submenu.is-open > a::after { transform: rotate(135deg); }
  .submenu.is-open > .submenu-content { display: block; margin: 5px 0 9px 10px; width: calc(100% - 10px); background: #f7fafb; border-left: 2px solid var(--amber-500); }
  .submenu-content .menu-heading { margin-bottom: 5px; }
  .dropdown-content a, .submenu > a, .submenu-content a { min-height: 46px; display: flex; align-items: center; }
  .footer-content { grid-template-columns: 1fr; gap: 9px; text-align: center; }
  .footer-left, .footer-center, .footer-right { justify-self: center; text-align: center; }
  .footer a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; }
}

@media (max-width: 520px) {
  .top-banner { gap: 10px; padding-inline: 10px; }
  .banner-left { flex: 1 1 auto; min-width: 0; margin-right: 0; }
  .banner-logo { width: 100%; max-width: 100%; min-width: 0; gap: 9px; font-size: 11.5px; }
  .brand-label { min-width: 0; overflow-wrap: anywhere; }
  .brand-label--full { display: none; }
  .brand-label--short { display: inline; }
  .brand-mark { flex-basis: 42px; width: 42px; height: 42px; }
  .hero-header, .header-banner { min-height: 360px; padding-inline: 20px; }
  .presentation-section { padding: 56px 20px 24px; }
  .footer { padding-block: 22px; }
  .footer-content span { white-space: normal; }
}

@media (max-width: 360px) {
  .banner-logo { font-size: 10.5px; }
  .brand-mark { flex-basis: 40px; width: 40px; height: 40px; }
  .nav-toggle { width: 46px; height: 46px; }
}

@media (hover: none) {
  .banner-logo:hover .brand-mark,
  .simple-link:last-child:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
