/* Base = styles du <helmet> d’origine + équivalents style-hover */

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: #ffffff;
  color: #213263;
  -webkit-font-smoothing: antialiased;
}
a { color: #213263; text-decoration: none; }
a:hover { color: #2f8fb5; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }

/* ─── Header ─── */
.snitem-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e4ecf3;
}
.snitem-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.snitem-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 2;
}
.snitem-logo img,
.snitem-logo .custom-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
}
.snitem-logo .custom-logo-link { display: flex; align-items: center; }

.snitem-nav-toggle {
  display: none;
  margin-left: auto;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.snitem-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #213263;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.snitem-header.is-nav-open .snitem-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.snitem-header.is-nav-open .snitem-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.snitem-header.is-nav-open .snitem-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.snitem-header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.snitem-nav-link {
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.snitem-nav-link--sub {
  display: flex;
  align-items: center;
  gap: 7px;
}
.snitem-nav-defis-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.snitem-nav-link--sub .snitem-square {
  width: 0.28em;
  height: 0.28em;
  margin: 0 0.22em;
  vertical-align: 0.08em;
  transform: none;
}
.snitem-footer-brand .snitem-square,
.hov-footer .snitem-square {
  margin: 0 0.22em;
  transform: none;
}
.snitem-btn-defis .snitem-square {
  width: 0.32em;
  height: 0.32em;
  margin: 0 0.28em;
  vertical-align: middle;
  transform: none;
}
.snitem-nav-chevron {
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  flex: 0 0 auto;
}
.snitem-nav-divider {
  display: block;
  width: 1px;
  height: 22px;
  background: #dce8f1;
  margin: 0 6px;
  flex: 0 0 auto;
}
.snitem-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  margin-left: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff !important;
  background: #213263;
  white-space: nowrap;
  flex: 0 0 auto;
}
.snitem-nav-cta__icon {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -5px;
  flex: 0 0 auto;
}
.snitem-nav-item--has-sub { position: relative; flex: 0 0 auto; }

.snitem-submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 300px;
  background: #ffffff;
  border: 1px solid #e4ecf3;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(33, 50, 99, 0.14);
  padding: 8px;
  margin-top: 6px;
  z-index: 60;
}
.snitem-submenu.is-open { display: block; }
.snitem-submenu > a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}
.snitem-submenu__item {
  display: flex !important;
  gap: 10px;
  font-weight: 400 !important;
}
.snitem-submenu__num {
  font-weight: 800;
  color: #5FC4E1;
  flex: 0 0 auto;
}

/* Header mobile / tablette */
@media (max-width: 1199px) {
  .snitem-header-inner {
    padding: 12px 16px;
    flex-wrap: nowrap;
  }
  .snitem-logo img,
  .snitem-logo .custom-logo { height: 40px; }
  .snitem-nav-toggle { display: flex; }

  .snitem-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 12px 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e4ecf3;
    box-shadow: 0 16px 32px rgba(33, 50, 99, 0.1);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .snitem-header.is-nav-open .snitem-header-nav { display: flex; }

  .snitem-nav-link {
    width: 100%;
    padding: 12px 14px;
    white-space: normal;
  }
  .snitem-nav-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }
  .snitem-nav-cta {
    width: 100%;
    margin: 8px 0 0;
    justify-content: center;
    padding: 14px 16px;
  }
  .snitem-nav-item--has-sub { width: 100%; }

  .snitem-submenu {
    position: static;
    min-width: 0;
    margin: 0 0 4px;
    border: none;
    border-radius: 8px;
    box-shadow: none;
    background: #f5fafd;
    padding: 4px;
  }
  .snitem-submenu > a { font-weight: 500; }

  body.snitem-nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .snitem-header-inner { padding: 10px 14px; }
  .snitem-logo img,
  .snitem-logo .custom-logo { height: 36px; }
}

/* Stats accueil */
.snitem-stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}
@media (max-width: 900px) {
  .snitem-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .snitem-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snitem-stats-row [data-count] { white-space: normal !important; font-size: clamp(24px, 7vw, 32px) !important; }
}
@media (max-width: 380px) {
  .snitem-stats-row { grid-template-columns: 1fr; }
}

/* Contenu : grilles / hero trop rigides en mobile */
.snitem-hero-grid { width: 100%; }
@media (max-width: 800px) {
  .snitem-hero-grid {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  .snitem-hero-title { width: auto !important; }
  main section > div[style*="grid-template-columns:minmax(0,1.35fr)"] {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  main [style*="minmax(300px"],
  main [style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
  main section > div[style*="display:flex"][style*="align-items:flex-start"] {
    flex-direction: column !important;
  }
}

.snitem-square {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin: 0 0.05em;
  background: #5FC4E1;
  vertical-align: 0.12em;
  flex: 0 0 auto;
}
.snitem-num {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin: 0;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: #5FC4E1;
}
.snitem-num .snitem-square {
  width: 0.22em;
  height: 0.22em;
  margin: 0 0 0.16em 0.06em;
  transform: rotate(12deg);
}
.hov-card:nth-child(2) .snitem-num .snitem-square,
.snitem-num--2 .snitem-square {
  transform: rotate(-8deg);
}
.hov-card:nth-child(3) .snitem-num .snitem-square,
.snitem-num--3 .snitem-square {
  transform: rotate(15deg);
}
.snitem-footer-brand { flex: 0 1 auto; }
.snitem-footer-logo {
  display: inline-flex;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
}
.snitem-footer-logo img {
  display: block;
  height: 52px;
  width: auto;
}
.snitem-footer-aside {
  display: flex;
  gap: clamp(36px, 5vw, 80px);
  align-items: flex-start;
}
.snitem-oneline { white-space: nowrap; }
@media (max-width: 900px) {
  .snitem-oneline { white-space: normal; }
}
.snitem-exergue {
  margin: 24px 0 0;
  padding-left: 20px;
  border-left: 2px solid #5FC4E1;
  font-size: 15px;
  line-height: 1.7;
  color: #bdd2e8;
  text-wrap: pretty;
}
.snitem-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.snitem-linkedin svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.snitem-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(36px, 5vw, 80px);
}
.snitem-map {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.snitem-map img,
.snitem-map svg { display: block; width: 100%; height: auto; }
@media (max-width: 800px) {
  .snitem-footer-inner,
  .snitem-footer-aside {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .snitem-map { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  main [style*="padding:clamp"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  main [style*="minmax(220px"],
  main [style*="minmax(200px"],
  main [style*="minmax(180px"],
  main [style*="minmax(160px"] {
    grid-template-columns: 1fr 1fr !important;
  }
  footer > div {
    grid-template-columns: 1fr !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  main [style*="minmax(220px"],
  main [style*="minmax(200px"],
  main [style*="minmax(180px"],
  main [style*="minmax(160px"] {
    grid-template-columns: 1fr !important;
  }
}

/* style-hover → classes */
.hov-nav:hover { background: #f0f7fb !important; }
.hov-btn-dark:hover { background: #2f8fb5 !important; color: #ffffff !important; }
.hov-card:hover { border-color: #5FC4E1 !important; color: #213263 !important; }
.hov-link:hover { color: #2f8fb5 !important; }
.hov-footer:hover { color: #5FC4E1 !important; }

@media (prefers-reduced-motion: reduce) {
  .snitem-page-fade { opacity: 0 !important; visibility: hidden !important; }
  .snitem-nav-toggle__bar { transition: none; }
}

/* Admin bar */
.admin-bar .snitem-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .snitem-header { top: 46px; }
}
