/* =========================================================================
   YMUNIT — Thème WordPress sur mesure
   Feuille de style principale. Les composants publics sont préfixés ym- et
   encapsulés sous #ymunit-site afin de limiter les conflits avec WordPress.
   ========================================================================= */

/* --- Fonts (chargées via <link> dans le HTML, ici en secours) ----------- */

/* --- Design tokens ------------------------------------------------------ */
#ymunit-site {
  --ym-navy:      #0a1a2f;
  --ym-navy-2:    #0f2740;
  --ym-navy-3:    #16324f;
  --ym-ink:       #10202f;
  --ym-body:      #33475a;
  --ym-muted:     #52667a;
  --ym-bg:        #fbfcfd;
  --ym-surface:   #ffffff;
  --ym-gray-50:   #f4f7f9;
  --ym-gray-100:  #eef2f5;
  --ym-border:    #e2e9ee;
  --ym-border-2:  #d6e0e7;
  --ym-teal:      #4b56e6;
  --ym-teal-600:  #3a44c9;
  --ym-teal-050:  #edeefc;
  --ym-teal-tint: rgba(75,86,230,.14);

  --ym-radius:    14px;
  --ym-radius-sm: 10px;
  --ym-radius-lg: 22px;
  --ym-shadow:    0 1px 2px rgba(16,32,47,.03), 0 8px 22px rgba(16,32,47,.038);
  --ym-shadow-lg: 0 2px 4px rgba(16,32,47,.04), 0 18px 42px rgba(16,32,47,.07);

  --ym-maxw:      1180px;
  --ym-gutter:    clamp(20px, 5vw, 48px);

  --ym-font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ym-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  box-sizing: border-box;
  font-family: var(--ym-font-body);
  color: var(--ym-body);
  background: var(--ym-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#ymunit-site *,
#ymunit-site *::before,
#ymunit-site *::after { box-sizing: border-box; }

/* --- Layout helpers ----------------------------------------------------- */
#ymunit-site .ym-container {
  width: 100%;
  max-width: var(--ym-maxw);
  margin-inline: auto;
  padding-inline: var(--ym-gutter);
}
#ymunit-site .ym-section {
  padding-block: clamp(64px, 8vw, 116px);
  position: relative;
}
#ymunit-site .ym-section--tight { padding-block: clamp(48px, 5vw, 72px); }

#ymunit-site .ym-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ym-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ym-teal-600);
  margin: 0 0 18px;
}
#ymunit-site .ym-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--ym-teal);
  display: inline-block;
}
#ymunit-site .ym-section-head { max-width: 720px; margin-bottom: clamp(38px, 4vw, 56px); }

#ymunit-site .ym-title {
  font-family: var(--ym-font-display);
  color: var(--ym-ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
#ymunit-site h2.ym-title { font-size: clamp(28px, 3.6vw, 42px); }
#ymunit-site h3.ym-title { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.01em; }
#ymunit-site .ym-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ym-muted);
  margin: 0;
  max-width: 60ch;
}

/* --- Buttons ------------------------------------------------------------ */
#ymunit-site .ym-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--ym-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
#ymunit-site .ym-button:focus-visible {
  outline: 3px solid var(--ym-teal-tint);
  outline-offset: 2px;
}
#ymunit-site .ym-button--primary {
  background: var(--ym-teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(75,86,230,.26);
}
#ymunit-site .ym-button--primary:hover {
  background: var(--ym-teal-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(75,86,230,.32);
}
#ymunit-site .ym-button--ghost {
  background: transparent;
  color: var(--ym-ink);
  border-color: var(--ym-border-2);
}
#ymunit-site .ym-button--ghost:hover {
  border-color: var(--ym-navy);
  background: var(--ym-surface);
  transform: translateY(-1px);
}
#ymunit-site .ym-button--on-dark {
  background: var(--ym-teal);
  color: #fff;
}
#ymunit-site .ym-button--ghost-on-dark {
  background: transparent;
  color: #eaf1f7;
  border-color: rgba(255,255,255,.22);
}
#ymunit-site .ym-button--ghost-on-dark:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
}
#ymunit-site .ym-button svg { width: 16px; height: 16px; }

/* --- Skip link ---------------------------------------------------------- */
#ymunit-site .ym-skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ym-navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top .2s ease;
}
#ymunit-site .ym-skip:focus { top: 12px; }

/* --- Header ------------------------------------------------------------- */
#ymunit-site .ym-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Fallback opaque si backdrop-filter non supporté */
  background: #ffffff;
  border-bottom: 1px solid var(--ym-border-2, #eef1f4);
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #ymunit-site .ym-header {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: transparent;
  }
  #ymunit-site .ym-header.is-stuck {
    background: rgba(255,255,255,.93);
    backdrop-filter: saturate(170%) blur(16px);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
  }
}
#ymunit-site .ym-header.is-stuck {
  border-bottom-color: var(--ym-border);
  box-shadow: 0 4px 18px rgba(16,32,47,.055);
}
#ymunit-site .ym-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  height: 82px;
  padding-inline: clamp(28px, 4vw, 48px);
}
#ymunit-site .ym-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ym-ink);
  font-family: var(--ym-font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  flex: none;
}
#ymunit-site .ym-logo__mark {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--ym-navy);
  display: grid;
  place-items: center;
}
#ymunit-site .ym-logo__mark svg { width: 17px; height: 17px; }
#ymunit-site .ym-logo b { color: var(--ym-teal-600); font-weight: 800; }

#ymunit-site .ym-nav { display: flex; align-items: center; gap: clamp(26px, 2.4vw, 34px); }
#ymunit-site .ym-nav__link {
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ym-body);
  text-decoration: none;
  padding: 6px 0;
  transition: color .18s ease;
}
#ymunit-site .ym-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--ym-teal-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
#ymunit-site .ym-nav__link:hover { color: var(--ym-ink); }
#ymunit-site .ym-nav__link:hover::after { transform: scaleX(1); }
#ymunit-site .ym-nav__link:focus-visible {
  outline: 2px solid var(--ym-teal-600);
  outline-offset: 4px;
  border-radius: 3px;
}
#ymunit-site .ym-nav__link[aria-current="page"],
#ymunit-site .ym-nav__link.is-active { color: var(--ym-ink); font-weight: 600; }
#ymunit-site .ym-nav__link[aria-current="page"]::after,
#ymunit-site .ym-nav__link.is-active::after { transform: scaleX(1); }

#ymunit-site .ym-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* --- Sélecteur de langue ---------------------------------------------- */
#ymunit-site .ym-lang { display: inline-flex; align-items: center; gap: 7px; }
#ymunit-site .ym-lang__link {
  font-size: 14px; font-weight: 600; letter-spacing: .03em; line-height: 1;
  color: var(--ym-muted); text-decoration: none; padding: 6px 6px; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
#ymunit-site .ym-lang__link:hover { color: var(--ym-navy); }
#ymunit-site .ym-lang__link.is-active { color: var(--ym-navy); }
#ymunit-site .ym-lang__link:focus-visible { outline: 2px solid var(--ym-teal); outline-offset: 2px; }
#ymunit-site .ym-lang__sep { color: var(--ym-border-2); font-size: 13px; }
#ymunit-site .ym-lang--mobile { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ym-border); }
#ymunit-site .ym-lang--mobile .ym-lang__link {
  flex: 1; text-align: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ym-border); font-size: 15px;
}
#ymunit-site .ym-lang--mobile .ym-lang__link.is-active { border-color: var(--ym-teal); color: var(--ym-navy); background: var(--ym-gray-50); }
#ymunit-site .ym-header__actions .ym-button--primary {
  height: 48px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(75,86,230,.18);
}
#ymunit-site .ym-header__actions .ym-button--primary:hover {
  box-shadow: 0 6px 16px rgba(75,86,230,.24);
}

/* --- Burger + mobile nav ------------------------------------------------ */
#ymunit-site .ym-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ym-border-2);
  border-radius: 10px;
  background: var(--ym-surface);
  cursor: pointer;
  padding: 0;
  position: relative;
}
#ymunit-site .ym-burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ym-ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
#ymunit-site .ym-burger span:nth-child(1) { top: 15px; }
#ymunit-site .ym-burger span:nth-child(2) { top: 21px; }
#ymunit-site .ym-burger span:nth-child(3) { top: 27px; }
#ymunit-site .ym-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
#ymunit-site .ym-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#ymunit-site .ym-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

#ymunit-site .ym-mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  z-index: 99;
  background: var(--ym-bg);
  padding: 24px var(--ym-gutter) 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
#ymunit-site .ym-mobile-nav.is-open { display: flex; }
#ymunit-site .ym-mobile-nav a.ym-mobile-link {
  font-family: var(--ym-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ym-ink);
  text-decoration: none;
  padding: 16px 4px;
  border-bottom: 1px solid var(--ym-border);
}
#ymunit-site .ym-mobile-nav .ym-button { margin-top: 22px; width: 100%; }

/* --- Hero --------------------------------------------------------------- */
#ymunit-site .ym-hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px);
  overflow: hidden;
}
#ymunit-site .ym-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 82% 20%, rgba(20,180,163,.09), transparent 60%),
    radial-gradient(50% 60% at 8% 90%, rgba(15,39,64,.05), transparent 60%);
  pointer-events: none;
}
#ymunit-site .ym-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
#ymunit-site .ym-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--ym-surface);
  border: 1px solid var(--ym-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ym-body);
  box-shadow: var(--ym-shadow);
  margin-bottom: 26px;
}
#ymunit-site .ym-hero__pill i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ym-teal);
  box-shadow: 0 0 0 4px var(--ym-teal-tint);
  display: inline-block;
}
#ymunit-site .ym-hero__title {
  font-family: var(--ym-font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ym-ink);
  margin: 0 0 24px;
}
#ymunit-site .ym-hero__title .ym-accent { color: var(--ym-teal-600); }
#ymunit-site .ym-hero__sub {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ym-muted);
  max-width: 56ch;
  margin: 0 0 34px;
}
#ymunit-site .ym-hero__cta { display: flex; flex-wrap: wrap; gap: 13px; }
#ymunit-site .ym-hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none;
}
#ymunit-site .ym-hero__trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ym-font-body); font-size: 13.5px; font-weight: 500; color: var(--ym-muted);
}
#ymunit-site .ym-hero__trust svg { width: 17px; height: 17px; flex: none; color: var(--ym-teal-600); }
#ymunit-site .ym-hero__figure {
  position: relative;
  width: 100%;
}

/* --- Isometric illustration (SVG + CSS animation) ----------------------- */
#ymunit-site .ym-iso { width: 100%; height: 100%; display: block; overflow: visible; }
#ymunit-site .ym-iso__float { transform-box: fill-box; transform-origin: center; }
#ymunit-site .ym-iso__float--a { animation: ym-float 9s ease-in-out infinite; }
#ymunit-site .ym-iso__float--b { animation: ym-float 11s ease-in-out infinite; animation-delay: -3s; }
#ymunit-site .ym-iso__float--c { animation: ym-float 13s ease-in-out infinite; animation-delay: -6s; }
#ymunit-site .ym-iso__pulse { transform-box: fill-box; transform-origin: center; animation: ym-pulse 3.6s ease-in-out infinite; }
#ymunit-site .ym-iso__pulse--2 { animation-delay: -1.2s; }
#ymunit-site .ym-iso__pulse--3 { animation-delay: -2.4s; }
#ymunit-site .ym-iso__dash { stroke-dasharray: 5 9; animation: ym-flow 5.5s linear infinite; }
#ymunit-site .ym-iso__dash--2 { animation-duration: 7s; }
#ymunit-site .ym-iso__dash--3 { animation-duration: 6.2s; animation-direction: reverse; }

@keyframes ym-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ym-pulse {
  0%,100% { opacity: .35; transform: scale(.82); }
  50%     { opacity: 1;   transform: scale(1.12); }
}
@keyframes ym-flow { to { stroke-dashoffset: -140; } }

/* --- Positioning band --------------------------------------------------- */
#ymunit-site .ym-band {
  border-block: 1px solid var(--ym-border);
  background: var(--ym-surface);
}
#ymunit-site .ym-band__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 22px;
}
#ymunit-site .ym-band__row + .ym-band__row { border-top: 1px dashed var(--ym-border); }
#ymunit-site .ym-band__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ym-muted);
  margin-right: 6px;
}
#ymunit-site .ym-chip {
  font-size: 14px;
  font-weight: 600;
  color: var(--ym-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
#ymunit-site .ym-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ym-teal);
  flex: none;
}
#ymunit-site .ym-chip--muted { color: var(--ym-body); font-weight: 500; }
#ymunit-site .ym-chip--muted::before { background: var(--ym-border-2); }

/* --- Chipset : nuage de prestations en pastilles ------------------------ */
#ymunit-site .ym-chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
#ymunit-site .ym-chipset .ym-chip {
  background: var(--ym-surface);
  border: 1px solid var(--ym-border);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ym-body);
}
#ymunit-site .ym-chipset .ym-chip::before { background: var(--ym-teal); width: 5px; height: 5px; }
#ymunit-site .ym-chipset--lg .ym-chip { font-size: 14px; padding: 9px 15px; font-weight: 600; color: var(--ym-ink); }

/* --- GEO statement ------------------------------------------------------ */
#ymunit-site .ym-geo {
  font-family: var(--ym-font-display);
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ym-ink);
  letter-spacing: -0.01em;
  max-width: 22ch;
}
#ymunit-site .ym-geo strong { color: var(--ym-teal-600); font-weight: 700; }
#ymunit-site .ym-geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
#ymunit-site .ym-geo-grid p { font-size: 16px; color: var(--ym-muted); margin: 0; }

/* --- Expertises --------------------------------------------------------- */
#ymunit-site .ym-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
#ymunit-site .ym-expertise-card {
  background: var(--ym-surface);
  border: 1px solid var(--ym-border);
  border-radius: var(--ym-radius-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--ym-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
#ymunit-site .ym-expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ym-shadow-lg);
  border-color: var(--ym-border-2);
}
#ymunit-site .ym-expertise-card--wide { grid-column: 1 / -1; }
@media (max-width: 860px) { #ymunit-site .ym-expertise-card--wide { grid-column: auto; } }
#ymunit-site .ym-expertise-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
#ymunit-site .ym-expertise-icon {
  width: 60px; height: 60px;
  flex: none;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--ym-navy), var(--ym-navy-3));
  display: grid;
  place-items: center;
}
#ymunit-site .ym-expertise-icon svg { width: 30px; height: 30px; }
#ymunit-site .ym-expertise-card__index {
  margin-left: auto;
  font-family: var(--ym-font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ym-border-2);
  letter-spacing: .05em;
}
#ymunit-site .ym-expertise-card p.ym-expertise-desc {
  font-size: 15.5px;
  color: var(--ym-body);
  margin: 0 0 22px;
}
#ymunit-site .ym-tag-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--ym-border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
#ymunit-site .ym-tag-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ym-body);
  font-weight: 500;
}
#ymunit-site .ym-tag-list li svg {
  width: 17px; height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--ym-teal-600);
}

/* --- Approach ----------------------------------------------------------- */
#ymunit-site .ym-approach { background: var(--ym-navy); color: #dbe6ef; }
#ymunit-site .ym-approach .ym-title,
#ymunit-site .ym-approach .ym-eyebrow { color: #fff; }
#ymunit-site .ym-approach .ym-eyebrow { color: var(--ym-teal); }
#ymunit-site .ym-approach .ym-lead { color: #9fb4c6; }
#ymunit-site .ym-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 8px;
}
#ymunit-site .ym-steps__line {
  position: absolute;
  top: 27px;
  left: 8%; right: 8%;
  height: 2px;
  background: rgba(255,255,255,.14);
  z-index: 0;
}
#ymunit-site .ym-steps__line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ym-teal);
  box-shadow: 0 0 14px rgba(20,180,163,.6);
  transition: width 1.4s cubic-bezier(.4,0,.1,1);
}
#ymunit-site .ym-step { position: relative; z-index: 1; text-align: center; }
#ymunit-site .ym-step__dot {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ym-navy-2);
  border: 2px solid rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  font-family: var(--ym-font-display);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  transition: border-color .5s ease, background-color .5s ease, transform .5s ease;
}
#ymunit-site .ym-step.is-active .ym-step__dot {
  background: var(--ym-teal);
  border-color: var(--ym-teal);
  color: #fff;
  transform: scale(1.06);
}
#ymunit-site .ym-step h3 {
  font-family: var(--ym-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
#ymunit-site .ym-step p { font-size: 13.5px; color: #9fb4c6; margin: 0; padding-inline: 4px; }

/* --- Sectors ------------------------------------------------------------ */
#ymunit-site .ym-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
#ymunit-site .ym-sector {
  background: var(--ym-surface);
  border: 1px solid var(--ym-border);
  border-radius: var(--ym-radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 140px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#ymunit-site .ym-sector:hover {
  transform: translateY(-3px);
  border-color: var(--ym-teal);
  box-shadow: var(--ym-shadow);
}
#ymunit-site .ym-sector svg { width: 26px; height: 26px; color: var(--ym-teal-600); }
#ymunit-site .ym-sector span {
  font-family: var(--ym-font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ym-ink);
  margin-top: auto;
  line-height: 1.3;
}

/* --- KPI ---------------------------------------------------------------- */
#ymunit-site .ym-kpi-wrap {
  background: linear-gradient(155deg, var(--ym-navy), var(--ym-navy-2));
  border-radius: var(--ym-radius-lg);
  padding: clamp(34px, 4vw, 60px);
  box-shadow: var(--ym-shadow-lg);
  position: relative;
  overflow: hidden;
}
#ymunit-site .ym-kpi-wrap::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(20,180,163,.16), transparent 70%);
  pointer-events: none;
}
#ymunit-site .ym-kpi-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
#ymunit-site .ym-kpi { position: relative; }
#ymunit-site .ym-kpi + .ym-kpi::before {
  content: "";
  position: absolute;
  left: clamp(-22px, -1.5vw, -12px);
  top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,.12);
}
#ymunit-site .ym-kpi__num {
  font-family: var(--ym-font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
#ymunit-site .ym-kpi__num .ym-plus { color: var(--ym-teal); }
#ymunit-site .ym-kpi__label { font-size: 14.5px; color: #9fb4c6; margin: 0; }

/* --- Why YMUNIT --------------------------------------------------------- */
#ymunit-site .ym-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
#ymunit-site .ym-why {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: var(--ym-radius);
  border: 1px solid var(--ym-border);
  background: var(--ym-surface);
}
#ymunit-site .ym-why__num {
  font-family: var(--ym-font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ym-teal-600);
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ym-teal-050);
  display: grid;
  place-items: center;
}
#ymunit-site .ym-why h3 { font-family: var(--ym-font-display); font-size: 17px; font-weight: 700; color: var(--ym-ink); margin: 4px 0 8px; }
#ymunit-site .ym-why p { font-size: 14.5px; color: var(--ym-muted); margin: 0; }

/* --- FAQ ---------------------------------------------------------------- */
#ymunit-site .ym-faq { max-width: 860px; margin-inline: auto; }
#ymunit-site .ym-faq__item {
  border: 1px solid var(--ym-border);
  border-radius: var(--ym-radius);
  background: var(--ym-surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#ymunit-site .ym-faq__item[open] { border-color: var(--ym-border-2); box-shadow: var(--ym-shadow); }
#ymunit-site .ym-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--ym-font-display);
  font-weight: 700;
  font-size: clamp(15.5px, 1.4vw, 17px);
  color: var(--ym-ink);
}
#ymunit-site .ym-faq__q::-webkit-details-marker { display: none; }
#ymunit-site .ym-faq__q:focus-visible { outline: 3px solid var(--ym-teal-tint); outline-offset: -3px; border-radius: var(--ym-radius); }
#ymunit-site .ym-faq__icon {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}
#ymunit-site .ym-faq__icon::before,
#ymunit-site .ym-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ym-teal-600);
  border-radius: 2px;
  transition: transform .25s ease;
}
#ymunit-site .ym-faq__icon::before { left: 12px; top: 4px; width: 2px; height: 18px; }
#ymunit-site .ym-faq__icon::after  { top: 12px; left: 4px; height: 2px; width: 18px; }
#ymunit-site .ym-faq__item[open] .ym-faq__icon::before { transform: rotate(90deg); }
#ymunit-site .ym-faq__a { padding: 0 24px 22px; }
#ymunit-site .ym-faq__a p { margin: 0; font-size: 15px; color: var(--ym-body); max-width: 68ch; }

/* --- Contact ------------------------------------------------------------ */
#ymunit-site .ym-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}
#ymunit-site .ym-contact-aside .ym-lead { margin-bottom: 28px; }
#ymunit-site .ym-contact-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
#ymunit-site .ym-contact-points li { display: flex; gap: 12px; font-size: 15px; color: var(--ym-body); align-items: flex-start; }
#ymunit-site .ym-contact-points svg { width: 20px; height: 20px; color: var(--ym-teal-600); flex: none; margin-top: 1px; }
#ymunit-site .ym-contact-points a { color: var(--ym-teal-600); text-decoration: none; font-weight: 600; }
#ymunit-site .ym-contact-points a:hover { text-decoration: underline; }

#ymunit-site .ym-form-card {
  background: var(--ym-surface);
  border: 1px solid var(--ym-border);
  border-radius: var(--ym-radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--ym-shadow);
}
#ymunit-site .ym-field { display: flex; flex-direction: column; gap: 7px; }

/* --- Footer ------------------------------------------------------------- */
#ymunit-site .ym-footer {
  background: var(--ym-navy);
  color: #9fb4c6;
  padding-block: clamp(48px, 5vw, 68px) 32px;
}
#ymunit-site .ym-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
#ymunit-site .ym-footer .ym-logo { color: #fff; margin-bottom: 16px; }
#ymunit-site .ym-footer .ym-logo b { color: var(--ym-teal); }
#ymunit-site .ym-footer .ym-logo__mark { background: rgba(255,255,255,.08); }
#ymunit-site .ym-footer__pos { max-width: 42ch; font-size: 15px; color: #9fb4c6; margin: 0; }
#ymunit-site .ym-footer__links { display: flex; flex-direction: column; gap: 12px; }
#ymunit-site .ym-footer__links a {
  color: #cdd9e4;
  text-decoration: none;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}
#ymunit-site .ym-footer__links a:hover { color: #fff; }
#ymunit-site .ym-footer__links svg { width: 16px; height: 16px; color: var(--ym-teal); }
#ymunit-site .ym-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
}
#ymunit-site .ym-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
#ymunit-site .ym-footer__legal a { color: #9fb4c6; text-decoration: none; font-size: 13.5px; }
#ymunit-site .ym-footer__legal a:hover { color: #fff; text-decoration: underline; }
#ymunit-site .ym-footer__copy { font-size: 13.5px; color: #7c93a7; }

/* --- Reveal animation (opacity masquée uniquement si JS actif) --------- */
#ymunit-site.ym-js .ym-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
#ymunit-site .ym-reveal.is-visible { opacity: 1; transform: none; }
#ymunit-site .ym-reveal[data-delay="1"] { transition-delay: .08s; }
#ymunit-site .ym-reveal[data-delay="2"] { transition-delay: .16s; }
#ymunit-site .ym-reveal[data-delay="3"] { transition-delay: .24s; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  #ymunit-site .ym-hero__grid { grid-template-columns: 1fr; }
  #ymunit-site .ym-hero__figure { max-width: 560px; margin-top: 8px; }
  #ymunit-site .ym-sector-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  #ymunit-site .ym-nav { display: none; }
  #ymunit-site .ym-burger { display: block; }
}
@media (max-width: 560px) {
  #ymunit-site .ym-header__actions .ym-button { display: none; }
}
@media (max-width: 860px) {
  #ymunit-site .ym-expertise-grid,
  #ymunit-site .ym-why-grid,
  #ymunit-site .ym-geo-grid,
  #ymunit-site .ym-contact-grid { grid-template-columns: 1fr; }
  #ymunit-site .ym-steps { grid-template-columns: 1fr; gap: 4px; text-align: left; }
  #ymunit-site .ym-steps__line { display: none; }
  #ymunit-site .ym-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; text-align: left; align-items: start; padding: 10px 0; }
  #ymunit-site .ym-step__dot { margin: 0; }
  #ymunit-site .ym-step p { padding-inline: 0; }
  #ymunit-site .ym-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  #ymunit-site .ym-kpi + .ym-kpi::before { display: none; }
}
@media (max-width: 620px) {
  #ymunit-site .ym-sector-grid { grid-template-columns: repeat(2, 1fr); }
  #ymunit-site .ym-footer__top,
  #ymunit-site .ym-footer__bottom { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  #ymunit-site .ym-hero__cta .ym-button { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  #ymunit-site .ym-kpi-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Composants ajoutés (v2) : logo réel, modes d'intervention, Build-Operate-
   Transfer, formation, réassurance, formulaire natif.
   ========================================================================= */

/* --- Logo image (dimensions réservées, pas de CLS) --------------------- */
#ymunit-site .ym-logo__img { height: 40px; width: auto; display: block; }
#ymunit-site .ym-header .ym-logo__img { height: 40px; }
#ymunit-site .ym-footer .ym-logo__img { height: 34px; }
@media (max-width: 992px) { #ymunit-site .ym-header .ym-logo__img { height: 36px; } }
@media (max-width: 480px) { #ymunit-site .ym-header .ym-logo__img { height: 32px; } }

/* --- Section surtitle sur fond clair ----------------------------------- */
#ymunit-site .ym-hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ym-font-body);
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ym-teal-600); margin: 0 0 20px;
}
#ymunit-site .ym-hero__kicker::before { content:""; width: 26px; height: 2px; background: var(--ym-teal); }

/* --- Modes d'intervention (3 pavés avec disclosure accessible) --------- */
#ymunit-site .ym-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
#ymunit-site .ym-mode {
  display: flex; flex-direction: column;
  background: var(--ym-surface);
  border: 1px solid var(--ym-border);
  border-radius: var(--ym-radius-lg);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--ym-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
#ymunit-site .ym-mode:hover { transform: translateY(-4px); box-shadow: var(--ym-shadow-lg); border-color: var(--ym-border-2); }
#ymunit-site .ym-mode__num {
  font-family: var(--ym-font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .1em; color: var(--ym-teal-600); margin-bottom: 18px;
}
#ymunit-site .ym-mode h3 { font-family: var(--ym-font-display); font-size: clamp(19px,1.7vw,23px); font-weight: 800; color: var(--ym-ink); letter-spacing: -0.01em; margin: 0 0 12px; }
#ymunit-site .ym-mode__desc { font-size: 15px; color: var(--ym-body); margin: 0 0 18px; }
#ymunit-site .ym-mode__more { border-top: 1px solid var(--ym-border); }
#ymunit-site .ym-mode__more > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 0 4px; font-size: 13.5px; font-weight: 700; color: var(--ym-teal-600);
}
#ymunit-site .ym-mode__more > summary::-webkit-details-marker { display: none; }
#ymunit-site .ym-mode__more > summary:focus-visible { outline: 3px solid var(--ym-teal-tint); outline-offset: 3px; border-radius: 6px; }
#ymunit-site .ym-mode__more > summary .ym-chevron { transition: transform .25s ease; flex: none; }
#ymunit-site .ym-mode__more[open] > summary .ym-chevron { transform: rotate(180deg); }
#ymunit-site .ym-mode__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
#ymunit-site .ym-mode__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ym-body); }
#ymunit-site .ym-mode__list li::before { content:""; width: 5px; height: 5px; border-radius: 50%; background: var(--ym-teal); margin-top: 8px; flex: none; }
#ymunit-site .ym-mode__cta {
  margin-top: 20px; font-size: 14.5px; font-weight: 700; color: var(--ym-ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
#ymunit-site .ym-mode__cta:hover { color: var(--ym-teal-600); }
#ymunit-site .ym-mode__cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
#ymunit-site .ym-mode__cta:hover svg { transform: translateX(3px); }

/* --- Aperçu Direction externalisée (Build-Operate-Transfer) ------------ */
#ymunit-site .ym-bot { background: linear-gradient(160deg, var(--ym-navy), var(--ym-navy-2)); color: #cdd9e4; border-radius: var(--ym-radius-lg); overflow: hidden; }
#ymunit-site .ym-bot__inner { padding: clamp(34px, 4vw, 62px); }
#ymunit-site .ym-bot__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: end; margin-bottom: 40px; }
#ymunit-site .ym-bot__head .ym-title { color: #fff; margin: 0; }
#ymunit-site .ym-bot__head .ym-eyebrow { color: var(--ym-teal); }
#ymunit-site .ym-bot__head p { color: #9fb4c6; font-size: 16px; margin: 0; }
#ymunit-site .ym-bot__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
#ymunit-site .ym-bot__step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--ym-radius); padding: 24px;
}
#ymunit-site .ym-bot__step b { display: flex; align-items: center; gap: 10px; font-family: var(--ym-font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ym-teal); margin-bottom: 14px; }
#ymunit-site .ym-bot__step b i { width: 26px; height: 26px; border-radius: 8px; background: rgba(75,86,230,.22); display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }
#ymunit-site .ym-bot__step h3 { font-family: var(--ym-font-display); font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 8px; }
#ymunit-site .ym-bot__step p { font-size: 13.5px; color: #9fb4c6; margin: 0; }
#ymunit-site .ym-bot__foot { margin-top: 34px; }

/* --- Formation ---------------------------------------------------------- */
#ymunit-site .ym-formation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
#ymunit-site .ym-formation {
  background: var(--ym-surface); border: 1px solid var(--ym-border); border-radius: var(--ym-radius);
  padding: 26px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
#ymunit-site .ym-formation:hover { border-color: var(--ym-border-2); box-shadow: var(--ym-shadow); transform: translateY(-3px); }
#ymunit-site .ym-formation__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--ym-teal-050); display: grid; place-items: center; margin-bottom: 16px; }
#ymunit-site .ym-formation__ico svg { width: 24px; height: 24px; color: var(--ym-teal-600); }
#ymunit-site .ym-formation h3 { font-family: var(--ym-font-display); font-size: 17px; font-weight: 700; color: var(--ym-ink); margin: 0 0 12px; }
#ymunit-site .ym-formation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#ymunit-site .ym-formation li { font-size: 13.5px; color: var(--ym-muted); display: flex; gap: 8px; }
#ymunit-site .ym-formation li::before { content:""; width: 5px; height: 5px; border-radius: 50%; background: var(--ym-border-2); margin-top: 7px; flex: none; }

/* --- Bandeau de réassurance --------------------------------------------- */
#ymunit-site .ym-reassure { background: var(--ym-navy); border-radius: var(--ym-radius-lg); padding: clamp(30px,3.5vw,52px); color: #cdd9e4; }
#ymunit-site .ym-reassure h3 { font-family: var(--ym-font-display); font-size: clamp(20px,2vw,26px); font-weight: 800; color: #fff; margin: 0 0 12px; letter-spacing: -0.01em; }
#ymunit-site .ym-reassure > p { color: #9fb4c6; font-size: 16px; max-width: 70ch; margin: 0 0 28px; }
#ymunit-site .ym-reassure__tags { display: flex; flex-wrap: wrap; gap: 12px; }
#ymunit-site .ym-reassure__tags span {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; color: #eaf1f7;
}
#ymunit-site .ym-reassure__tags span svg { width: 15px; height: 15px; color: var(--ym-teal); }

/* --- Formulaire natif (champs réels) ----------------------------------- */
#ymunit-site .ym-form { display: block; }
#ymunit-site .ym-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; width: 100%; }
#ymunit-site .ym-form__grid > * { min-width: 0; }
#ymunit-site .ym-form__grid .ym-field--full { grid-column: 1 / -1; }
#ymunit-site .ym-form label {
  font-size: 13px; font-weight: 600; color: var(--ym-ink); margin-bottom: 7px; display: block;
}
#ymunit-site .ym-form label .ym-opt { color: var(--ym-muted); font-weight: 400; }
#ymunit-site .ym-form label .ym-req { color: var(--ym-teal-600); }
#ymunit-site .ym-form input,
#ymunit-site .ym-form select,
#ymunit-site .ym-form textarea {
  width: 100%;
  font-family: var(--ym-font-body); font-size: 14.5px; color: var(--ym-ink);
  border: 1px solid var(--ym-border-2); border-radius: var(--ym-radius-sm);
  background: var(--ym-gray-50); padding: 12px 14px; min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
#ymunit-site .ym-form textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
#ymunit-site .ym-form input:focus,
#ymunit-site .ym-form select:focus,
#ymunit-site .ym-form textarea:focus {
  outline: none; border-color: var(--ym-teal); background: #fff;
  box-shadow: 0 0 0 3px var(--ym-teal-tint);
}
#ymunit-site .ym-form input[aria-invalid="true"],
#ymunit-site .ym-form select[aria-invalid="true"],
#ymunit-site .ym-form textarea[aria-invalid="true"] { border-color: #d5493f; background: #fdf3f2; }
#ymunit-site .ym-field__error { display: none; font-size: 12.5px; color: #c23b31; margin-top: 6px; }
#ymunit-site .ym-field__error.is-shown { display: block; }
#ymunit-site .ym-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#ymunit-site .ym-form__submit { width: 100%; margin-top: 18px; }
#ymunit-site .ym-form__submit .ym-button { width: 100%; }
#ymunit-site .ym-form__note { width: 100%; font-size: 12px; color: var(--ym-muted); margin: 18px 0 0; }
#ymunit-site .ym-turnstile-slot { width: 100%; min-height: 66px; margin-top: 18px; overflow: hidden; }
#ymunit-site .ym-form__status { width: 100%; border-radius: var(--ym-radius-sm); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 500; display: none; }
#ymunit-site .ym-form__status.is-success { display: block; background: var(--ym-teal-050); color: #26308f; border: 1px solid #cdd2f6; }
#ymunit-site .ym-form__status.is-error { display: block; background: #fdf3f2; color: #a5372e; border: 1px solid #f2ccc8; }

/* --- Fil d'Ariane ------------------------------------------------------- */
#ymunit-site .ym-breadcrumb { font-size: 13px; color: var(--ym-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
#ymunit-site .ym-breadcrumb a { color: var(--ym-teal-600); text-decoration: none; }
#ymunit-site .ym-breadcrumb a:hover { text-decoration: underline; }
#ymunit-site .ym-breadcrumb span { color: var(--ym-border-2); }

/* --- Blocs de la page dédiée ------------------------------------------- */
#ymunit-site .ym-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
#ymunit-site .ym-checklist li { display: flex; gap: 11px; font-size: 15px; color: var(--ym-body); align-items: flex-start; }
#ymunit-site .ym-checklist li svg { width: 19px; height: 19px; color: var(--ym-teal-600); flex: none; margin-top: 2px; }
#ymunit-site .ym-roles { display: flex; flex-wrap: wrap; gap: 10px; }
#ymunit-site .ym-roles span {
  border: 1px solid var(--ym-border); background: var(--ym-surface); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--ym-ink);
}
#ymunit-site .ym-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }

/* --- Responsive (v2) ---------------------------------------------------- */
@media (max-width: 1024px) {
  #ymunit-site .ym-modes,
  #ymunit-site .ym-formation-grid { grid-template-columns: 1fr 1fr; }
  #ymunit-site .ym-bot__steps { grid-template-columns: 1fr 1fr; }
  #ymunit-site .ym-bot__head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  #ymunit-site .ym-modes,
  #ymunit-site .ym-formation-grid { grid-template-columns: 1fr; }
  #ymunit-site .ym-bot__steps { grid-template-columns: 1fr; }
  #ymunit-site .ym-form__grid,
  #ymunit-site .ym-twocol,
  #ymunit-site .ym-checklist { grid-template-columns: 1fr; }
  #ymunit-site .ym-form__grid .ym-field,
  #ymunit-site .ym-form__grid .ym-field--full { grid-column: 1; }
}

/* =========================================================================
   Direction artistique premium (v3) : bande de références, scènes
   isométriques architecturales, labels éditoriaux, animations séquencées.
   ========================================================================= */

/* --- Bande de références (marquee sobre) ------------------------------- */
#ymunit-site .ym-refs { padding-block: clamp(30px, 4vw, 48px); background: var(--ym-surface); border-block: 1px solid var(--ym-border); }
#ymunit-site .ym-refs__title {
  text-align: center; font-family: var(--ym-font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ym-muted); margin: 0 0 12px;
}
#ymunit-site .ym-refs__intro {
  text-align: center; max-width: 620px; margin: 0 auto 26px;
  font-size: 14.5px; line-height: 1.6; color: var(--ym-muted);
}
#ymunit-site .ym-refs__viewport {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
#ymunit-site .ym-refs__track {
  display: flex; align-items: center; gap: 0; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: ym-marquee 46s linear infinite;
}
#ymunit-site .ym-refs__viewport:hover .ym-refs__track,
#ymunit-site .ym-refs__viewport:focus-within .ym-refs__track { animation-play-state: paused; }
#ymunit-site .ym-refs__viewport:focus-visible { outline: 2px solid var(--ym-teal); outline-offset: 4px; border-radius: 8px; }
#ymunit-site .ym-refs__track li {
  display: inline-flex; align-items: center; gap: 26px; padding-inline: 26px; white-space: nowrap;
  font-family: var(--ym-font-display); font-size: clamp(14px, 1.3vw, 16px); font-weight: 600;
  color: #56708a; opacity: .72; transition: opacity .25s ease, color .25s ease;
}
#ymunit-site .ym-refs__track li:hover { opacity: 1; color: var(--ym-navy); }
/* Variante logos réels */
#ymunit-site .ym-refs__track--logos li { gap: 0; padding-inline: clamp(26px, 3.4vw, 54px); }
#ymunit-site .ym-refs__track--logos li::after { display: none; }
#ymunit-site .ym-refs__track--logos img {
  height: clamp(30px, 3vw, 42px); width: auto; max-width: 168px; object-fit: contain; display: block;
  filter: grayscale(1); opacity: .62; transition: filter .25s ease, opacity .25s ease;
}
#ymunit-site .ym-refs__track--logos li:hover img { filter: grayscale(0); opacity: 1; }
@keyframes ym-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Scène isométrique (conteneur + labels éditoriaux) ----------------- */
#ymunit-site .ym-scene { position: relative; width: 100%; }
#ymunit-site .ym-scene__svg { width: 100%; height: auto; display: block; overflow: visible; }
#ymunit-site .ym-scene__tag {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.92); border: 1px solid var(--ym-border);
  box-shadow: 0 6px 20px rgba(16,32,47,.09);
  border-radius: 11px; padding: 8px 13px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
#ymunit-site .ym-scene__tag b {
  font-family: var(--ym-font-display); font-size: 13px; font-weight: 700; color: var(--ym-ink); letter-spacing: -0.01em; line-height: 1.15;
}
#ymunit-site .ym-scene__tag small { display: block; font-size: 11px; font-weight: 500; color: var(--ym-muted); letter-spacing: .02em; }
#ymunit-site .ym-scene__tag i {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--ym-teal); box-shadow: 0 0 0 4px var(--ym-teal-tint);
}
#ymunit-site .ym-scene__tag--core {
  background: var(--ym-navy); border-color: transparent;
  box-shadow: 0 12px 26px rgba(10,26,47,.24);
}
#ymunit-site .ym-scene__tag--core b { color: #fff; }
#ymunit-site .ym-scene__tag--core small { color: #9fb4c6; }
#ymunit-site .ym-scene__tag--core i { background: var(--ym-teal); }

/* Positions — Hero (labels dégagés au-dessus des cubes, sans superposition) */
#ymunit-site .ym-scene--hero { padding-top: 26px; }
#ymunit-site .ym-scene--hero .ym-scene__tag { max-width: 234px; }
#ymunit-site .ym-scene--hero .ym-tag-cyber { left: 0; top: 12%; }
#ymunit-site .ym-scene--hero .ym-tag-sante { right: 0; top: 12%; }
#ymunit-site .ym-scene--hero .ym-tag-ia    { left: 50%; top: -3%; transform: translateX(-50%); }
#ymunit-site .ym-scene--hero .ym-tag-core  { left: 50%; bottom: 2%; transform: translateX(-50%); }

/* Positions — BOT (Direction externalisée) */
#ymunit-site .ym-scene--bot { padding-top: 46px; padding-bottom: 30px; }
#ymunit-site .ym-scene--bot .ym-scene__tag { max-width: 220px; }
#ymunit-site .ym-scene--bot .ym-tag-gov    { left: 50%; top: -2px; transform: translateX(-50%); }
#ymunit-site .ym-scene--bot .ym-tag-build  { left: 0;  bottom: 22%; }
#ymunit-site .ym-scene--bot .ym-tag-operate{ left: 50%; bottom: 2%; transform: translateX(-50%); }
#ymunit-site .ym-scene--bot .ym-tag-transfer{ right: 0; bottom: 22%; }

/* --- Éléments SVG animés ----------------------------------------------- */
#ymunit-site .ym-face-top   { fill: url(#ymTopFace); }
#ymunit-site .ym-face-left  { fill: url(#ymLeftFace); }
#ymunit-site .ym-face-right { fill: url(#ymRightFace); }
#ymunit-site .ym-edge { stroke: rgba(120,150,180,.28); stroke-width: 1; fill: none; }
#ymunit-site .ym-glass { fill: rgba(120,170,255,.10); stroke: rgba(150,190,255,.35); stroke-width: 1; }
#ymunit-site .ym-lightline { stroke: var(--ym-teal); stroke-width: 2; fill: none; opacity: .9; }

#ymunit-site .ym-conn { stroke: rgba(120,150,190,.45); stroke-width: 1.4; fill: none; stroke-dasharray: 3 6; }
#ymunit-site .ym-spark { fill: var(--ym-teal); }
#ymunit-site .ym-spark--l { animation: ym-spark-l 4.2s ease-in-out infinite; }
#ymunit-site .ym-spark--r { animation: ym-spark-r 4.2s ease-in-out infinite .5s; }
#ymunit-site .ym-spark--b { animation: ym-spark-b 4.2s ease-in-out infinite 1s; }
@keyframes ym-spark-l { 0%{transform:translate(0,0);opacity:0} 12%{opacity:1} 78%{opacity:1} 100%{transform:translate(160px,27px);opacity:0} }
@keyframes ym-spark-r { 0%{transform:translate(0,0);opacity:0} 12%{opacity:1} 78%{opacity:1} 100%{transform:translate(-160px,27px);opacity:0} }
@keyframes ym-spark-b { 0%{transform:translate(0,0);opacity:0} 12%{opacity:1} 78%{opacity:1} 100%{transform:translate(0,110px);opacity:0} }

/* spark for BOT (left→center, center→right progression) */
#ymunit-site .ym-spark--bot1 { animation: ym-spark-bot1 5s ease-in-out infinite; }
#ymunit-site .ym-spark--bot2 { animation: ym-spark-bot2 5s ease-in-out infinite 1.4s; }
@keyframes ym-spark-bot1 { 0%{transform:translate(0,0);opacity:0} 15%{opacity:1} 80%{opacity:1} 100%{transform:translate(180px,0);opacity:0} }
@keyframes ym-spark-bot2 { 0%{transform:translate(0,0);opacity:0} 15%{opacity:1} 80%{opacity:1} 100%{transform:translate(180px,0);opacity:0} }

/* Emblème central (mark YMUNIT) : halo + pulsation de contrôle */
#ymunit-site .ym-core-halo { transform-box: fill-box; transform-origin: center; animation: ym-core-pulse 4.5s ease-in-out infinite; }
@keyframes ym-core-pulse { 0%,100%{opacity:.35; transform:scale(.9)} 50%{opacity:.85; transform:scale(1.06)} }

/* Sceau de preuve flottant */
#ymunit-site .ym-seal { animation: ym-float 7s ease-in-out infinite; transform-box: view-box; }

/* --- Révélation séquencée de la scène (gate JS) ------------------------ */
#ymunit-site.ym-js .ym-scene .ym-stg { opacity: 0; transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
#ymunit-site.ym-js .ym-scene .ym-stg--rise { transform: translateY(14px); }
#ymunit-site .ym-scene.is-live .ym-stg { opacity: 1; transform: none; }
/* Conserver le centrage horizontal des labels centrés malgré transform:none. */
#ymunit-site .ym-scene.is-live .ym-tag-gov,
#ymunit-site .ym-scene.is-live .ym-tag-operate,
#ymunit-site .ym-scene.is-live .ym-tag-ia,
#ymunit-site .ym-scene.is-live .ym-tag-core { transform: translateX(-50%); }
#ymunit-site .ym-scene .ym-d1 { transition-delay: .05s; }
#ymunit-site .ym-scene .ym-d2 { transition-delay: .22s; }
#ymunit-site .ym-scene .ym-d3 { transition-delay: .40s; }
#ymunit-site .ym-scene .ym-d4 { transition-delay: .62s; }
#ymunit-site .ym-scene .ym-d5 { transition-delay: .85s; }
#ymunit-site .ym-scene .ym-d6 { transition-delay: 1.1s; }

/* --- Responsive illustrations ------------------------------------------ */
@media (max-width: 1024px) {
  #ymunit-site .ym-scene--hero .ym-tag-cyber,
  #ymunit-site .ym-scene--hero .ym-tag-sante { top: 9%; }
}
@media (max-width: 620px) {
  #ymunit-site .ym-scene__tag small { display: none; }
  #ymunit-site .ym-scene__tag { padding: 6px 10px; border-radius: 9px; }
  #ymunit-site .ym-scene__tag b { font-size: 11.5px; }
  #ymunit-site .ym-scene--hero .ym-tag-cyber { left: -2%; }
  #ymunit-site .ym-scene--hero .ym-tag-sante { right: -2%; }
}

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #ymunit-site *,
  #ymunit-site *::before,
  #ymunit-site *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  #ymunit-site .ym-reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   V3 — Classes utilitaires + composants Direction / Management de transition
   ========================================================================= */
#ymunit-site .ym-section--muted { background: var(--ym-gray-50); }
#ymunit-site .ym-section--navy { background: var(--ym-navy); }
#ymunit-site .ym-text--center { text-align: center; }
#ymunit-site .ym-title--flush { margin: 0; }
#ymunit-site .ym-head--top { border-top: 1px solid var(--ym-border); }
#ymunit-site .ym-mx-auto { margin-inline: auto; }

/* Libellé discret sous une carte mode */
#ymunit-site .ym-mode__label {
  font-family: var(--ym-font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: var(--ym-muted); margin: 4px 0 16px;
}

/* Trois modèles d'intervention */
#ymunit-site .ym-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); margin-top: 34px; }
#ymunit-site .ym-model {
  display: flex; flex-direction: column; border-radius: var(--ym-radius);
  border: 1px solid var(--ym-border); background: var(--ym-surface);
  padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--ym-shadow);
}
#ymunit-site .ym-model__tag {
  align-self: flex-start; font-family: var(--ym-font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ym-teal-600);
  background: var(--ym-teal-050); border-radius: 999px; padding: 6px 12px; margin-bottom: 16px;
}
#ymunit-site .ym-model h3 { font-family: var(--ym-font-display); font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; color: var(--ym-ink); margin: 0 0 10px; }
#ymunit-site .ym-model > p { font-size: 14.5px; color: var(--ym-body); margin: 0 0 18px; }
#ymunit-site .ym-model__list { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--ym-border); display: grid; gap: 9px; }
#ymunit-site .ym-model__list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--ym-body); }
#ymunit-site .ym-model__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--ym-teal); }

/* Variante sombre (dans le panneau ym-bot de la page d'accueil) */
#ymunit-site .ym-bot .ym-models { margin-top: 30px; }
#ymunit-site .ym-bot .ym-model { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none; }
#ymunit-site .ym-bot .ym-model__tag { background: rgba(75,86,230,.22); color: #cfd3ff; }
#ymunit-site .ym-bot .ym-model h3 { color: #fff; }
#ymunit-site .ym-bot .ym-model > p { color: #9fb4c6; }
#ymunit-site .ym-bot .ym-model__list { border-top-color: rgba(255,255,255,.12); }
#ymunit-site .ym-bot .ym-model__list li { color: #c6d3de; }

/* Parcours de transition (5 étapes, fond clair) */
#ymunit-site .ym-transition { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 20px); margin-top: 8px; }
#ymunit-site .ym-tstep {
  border-radius: var(--ym-radius); border: 1px solid var(--ym-border); background: var(--ym-surface);
  padding: clamp(20px, 2vw, 26px); box-shadow: var(--ym-shadow); display: flex; flex-direction: column;
}
#ymunit-site .ym-tstep__num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--ym-font-display); font-weight: 800; font-size: 16px; color: #fff;
  background: var(--ym-navy); margin-bottom: 16px;
}
#ymunit-site .ym-tstep h3 { font-family: var(--ym-font-display); font-size: 16px; font-weight: 700; color: var(--ym-ink); margin: 0 0 8px; }
#ymunit-site .ym-tstep p { font-size: 13.5px; color: var(--ym-body); margin: 0; }

/* Différenciation : intro + points */
#ymunit-site .ym-diff-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#ymunit-site .ym-diff-points li {
  display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--ym-ink);
  background: var(--ym-surface); border: 1px solid var(--ym-border); border-radius: var(--ym-radius-sm); padding: 14px 16px;
}
#ymunit-site .ym-diff-points li svg { width: 19px; height: 19px; color: var(--ym-teal-600); flex: none; margin-top: 1px; }

/* Liste livrables 3 colonnes */
#ymunit-site .ym-checklist--tri { grid-template-columns: repeat(3, 1fr); }

/* Cartes modèle avec groupes labellisés (page dédiée) */
#ymunit-site .ym-model__group + .ym-model__group { margin-top: 16px; }
#ymunit-site .ym-model__group .ym-model__list { margin: 8px 0 0; padding: 0; border-top: 0; }
#ymunit-site .ym-model__glabel {
  font-family: var(--ym-font-display); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ym-muted); margin: 0;
}
#ymunit-site .ym-model--flush > p { margin-bottom: 20px; }
#ymunit-site .ym-model--flush .ym-model__group:first-of-type { border-top: 1px solid var(--ym-border); padding-top: 18px; }

/* Grille 4 domaines (aperçu Direction externalisée sur l'accueil) */
#ymunit-site .ym-models--four { grid-template-columns: repeat(4, 1fr); }
#ymunit-site .ym-models--four .ym-model > p { margin-bottom: 0; }
@media (max-width: 1080px) { #ymunit-site .ym-models--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { #ymunit-site .ym-models--four { grid-template-columns: 1fr; } }
/* Grille 2 colonnes (fonctions couvertes, page dédiée) */
#ymunit-site .ym-models--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { #ymunit-site .ym-models--two { grid-template-columns: 1fr; } }
/* Étiquettes de domaine colorées */
#ymunit-site .ym-model__tag--it    { background: rgba(75,86,230,.12);  color: #3a44c9; }
#ymunit-site .ym-model__tag--audit { background: rgba(39,79,120,.14);  color: #274f78; }
#ymunit-site .ym-model__tag--pv    { background: rgba(18,180,143,.14); color: #0c8f70; }
#ymunit-site .ym-model__tag--bot   { background: rgba(109,90,230,.13); color: #5646c4; }
/* Note éditoriale discrète (QPPV, audit indépendant) */
#ymunit-site .ym-note {
  margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--ym-border);
  background: var(--ym-gray-50); border-radius: 0 12px 12px 0;
  font-size: 13.5px; line-height: 1.55; color: var(--ym-muted);
}

/* Utilitaires additionnels V3 */
#ymunit-site .ym-mb-16 { margin: 0 0 16px; }
#ymunit-site .ym-mt-16 { margin-top: 16px; }
#ymunit-site .ym-checklist--single { grid-template-columns: 1fr; }
#ymunit-site .ym-cta-row { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; }
#ymunit-site .ym-scene__legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--ym-muted); }
#ymunit-site .ym-scene__legend span { display: inline-flex; align-items: center; gap: 7px; }
#ymunit-site .ym-scene__legend-dot { width: 7px; height: 7px; border-radius: 50%; }
#ymunit-site .ym-scene__legend-dot--teal { background: var(--ym-teal); }
#ymunit-site .ym-scene__legend-dot--border { background: var(--ym-border-2); }
#ymunit-site .ym-cookie-settings-trigger { background: none; border: none; color: #9fb4c6; font: inherit; font-size: 13.5px; cursor: pointer; padding: 0; text-decoration: none; }
#ymunit-site .ym-cookie-settings-trigger:hover { color: #fff; }

@media (max-width: 900px) {
  #ymunit-site .ym-models { grid-template-columns: 1fr; }
  #ymunit-site .ym-transition { grid-template-columns: repeat(2, 1fr); }
  #ymunit-site .ym-diff-points { grid-template-columns: 1fr 1fr; }
  #ymunit-site .ym-checklist--tri { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  #ymunit-site .ym-transition,
  #ymunit-site .ym-diff-points,
  #ymunit-site .ym-checklist--tri { grid-template-columns: 1fr; }
}

/* --- Familles éditoriales (situations & livrables) --------------------- */
#ymunit-site .ym-fams { display: grid; gap: clamp(16px, 2vw, 22px); margin-top: 34px; }
#ymunit-site .ym-fams--3 { grid-template-columns: repeat(3, 1fr); }
#ymunit-site .ym-fams--2 { grid-template-columns: repeat(2, 1fr); }
#ymunit-site .ym-fam {
  display: flex; flex-direction: column;
  background: var(--ym-surface); border: 1px solid var(--ym-border);
  border-top: 3px solid var(--ym-border-2); border-radius: var(--ym-radius);
  padding: clamp(22px, 2.3vw, 28px); box-shadow: 0 1px 2px rgba(16,32,47,.04);
}
#ymunit-site .ym-fam__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
#ymunit-site .ym-fam__ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; }
#ymunit-site .ym-fam__ico svg { width: 21px; height: 21px; }
#ymunit-site .ym-fam h3 { font-family: var(--ym-font-display); font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; color: var(--ym-ink); margin: 0; line-height: 1.25; }
#ymunit-site .ym-fam__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#ymunit-site .ym-fam__list li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: var(--ym-body); }
#ymunit-site .ym-fam__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 2px; background: var(--ym-border-2); }
/* Accents par famille */
#ymunit-site .ym-fam--it    { border-top-color: #4b56e6; }
#ymunit-site .ym-fam--it .ym-fam__ico { background: rgba(75,86,230,.12); color: #3a44c9; }
#ymunit-site .ym-fam--it .ym-fam__list li::before { background: #4b56e6; }
#ymunit-site .ym-fam--audit { border-top-color: #274f78; }
#ymunit-site .ym-fam--audit .ym-fam__ico { background: rgba(39,79,120,.13); color: #274f78; }
#ymunit-site .ym-fam--audit .ym-fam__list li::before { background: #274f78; }
#ymunit-site .ym-fam--pv    { border-top-color: #12b48f; }
#ymunit-site .ym-fam--pv .ym-fam__ico { background: rgba(18,180,143,.13); color: #0c8f70; }
#ymunit-site .ym-fam--pv .ym-fam__list li::before { background: #12b48f; }
#ymunit-site .ym-fam--gov   { border-top-color: #6d5ae6; }
#ymunit-site .ym-fam--gov .ym-fam__ico { background: rgba(109,90,230,.12); color: #5646c4; }
#ymunit-site .ym-fam--gov .ym-fam__list li::before { background: #6d5ae6; }
#ymunit-site .ym-fam--bot   { border-top-color: #5646c4; }
#ymunit-site .ym-fam--bot .ym-fam__ico { background: rgba(109,90,230,.13); color: #5646c4; }
#ymunit-site .ym-fam--bot .ym-fam__list li::before { background: #5646c4; }
#ymunit-site .ym-fam .ym-note { margin-top: auto; }
#ymunit-site .ym-fam__list { margin-bottom: 2px; }
@media (max-width: 980px) { #ymunit-site .ym-fams--3 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { #ymunit-site .ym-fams--2 { grid-template-columns: 1fr; } }
#ymunit-site .ym-fams + .ym-reassure { margin-top: clamp(22px, 3vw, 34px); }

/* --- Vue d'ensemble des vigilances : icône + CTA sur .ym-model ---------- */
#ymunit-site .ym-vig-overview { margin-bottom: clamp(46px, 6vw, 74px); }
#ymunit-site .ym-model__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--ym-teal-050); color: var(--ym-teal-600); }
#ymunit-site .ym-model__ico svg { width: 24px; height: 24px; }
#ymunit-site .ym-model__ico--pv    { background: rgba(18,180,143,.13); color: #0c8f70; }
#ymunit-site .ym-model__ico--it    { background: rgba(75,86,230,.12);  color: #3a44c9; }
#ymunit-site .ym-model__ico--audit { background: rgba(39,79,120,.13);  color: #274f78; }
#ymunit-site .ym-model__cta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ym-border);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--ym-font-display); font-size: 13.5px; font-weight: 700; color: var(--ym-teal-600);
}
#ymunit-site .ym-model__cta svg { width: 17px; height: 17px; transition: transform .2s ease; }
#ymunit-site .ym-model__cta:hover svg { transform: translateX(4px); }
#ymunit-site .ym-model__cta:focus-visible { outline: 2px solid var(--ym-teal-600); outline-offset: 3px; border-radius: 4px; }

/* --- Domaine de vigilance (en-tête + grille de capacités) --------------- */
#ymunit-site .ym-vig + .ym-vig { margin-top: clamp(40px, 5vw, 66px); }
#ymunit-site .ym-vig__title { font-family: var(--ym-font-display); font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -0.01em; color: var(--ym-ink); margin: 12px 0 10px; }
#ymunit-site .ym-vig__lead { font-size: clamp(15px, 1.2vw, 16px); color: var(--ym-body); margin: 0; max-width: 78ch; }
#ymunit-site .ym-vig__intro .ym-model__tag { margin-bottom: 0; }
#ymunit-site .ym-vig .ym-note { margin-top: 22px; }

/* --- Composant : carte de capacité (prestations) ------------------------ */
#ymunit-site .ym-capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: clamp(14px, 1.6vw, 20px); margin-top: 26px; }
#ymunit-site .ym-capability-card {
  display: flex; flex-direction: column;
  background: var(--ym-surface); border: 1px solid var(--ym-border);
  border-top: 3px solid var(--ym-border-2);
  border-radius: var(--ym-radius); padding: clamp(20px, 2vw, 26px);
  box-shadow: var(--ym-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
#ymunit-site .ym-capability-card:hover { transform: translateY(-3px); box-shadow: var(--ym-shadow-lg); }
#ymunit-site .ym-capability-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#ymunit-site .ym-capability-card__icon { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--ym-teal-050); color: var(--ym-teal-600); }
#ymunit-site .ym-capability-card__icon svg { width: 21px; height: 21px; }
#ymunit-site .ym-capability-card h4 { font-family: var(--ym-font-display); font-size: 16.5px; font-weight: 700; line-height: 1.25; color: var(--ym-ink); margin: 0; }
#ymunit-site .ym-capability-card__summary { font-size: 14px; line-height: 1.55; color: var(--ym-body); margin: 0 0 15px; }
#ymunit-site .ym-capability-card__highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
#ymunit-site .ym-capability-card__highlights li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.45; color: var(--ym-ink); font-weight: 500; }
#ymunit-site .ym-capability-card__highlights li::before {
  content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 7px;
  border-left: 2px solid var(--ym-teal); border-bottom: 2px solid var(--ym-teal);
  transform: rotate(-45deg);
}
#ymunit-site .ym-capability-card__details { margin-top: 16px; border-top: 1px solid var(--ym-border); }
#ymunit-site .ym-capability-card__details summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 14px; font-family: var(--ym-font-display); font-size: 13px; font-weight: 700;
  color: var(--ym-teal-600);
}
#ymunit-site .ym-capability-card__details summary::-webkit-details-marker { display: none; }
#ymunit-site .ym-capability-card__details summary:focus-visible { outline: 2px solid var(--ym-teal-tint); outline-offset: 3px; border-radius: 4px; }
#ymunit-site .ym-accordion-icon { position: relative; width: 20px; height: 20px; flex: none; }
#ymunit-site .ym-accordion-icon::before,
#ymunit-site .ym-accordion-icon::after { content: ""; position: absolute; background: var(--ym-teal-600); border-radius: 2px; transition: transform .25s ease; }
#ymunit-site .ym-accordion-icon::before { left: 9px; top: 3px; width: 2px; height: 14px; }
#ymunit-site .ym-accordion-icon::after  { top: 9px; left: 3px; height: 2px; width: 14px; }
#ymunit-site .ym-capability-card__details[open] .ym-accordion-icon::before { transform: rotate(90deg); }
#ymunit-site .ym-capability-card__details-content { padding-top: 12px; }
#ymunit-site .ym-capability-card__details-content ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#ymunit-site .ym-capability-card__details-content li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--ym-body); }
#ymunit-site .ym-capability-card__details-content li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 2px; background: var(--ym-border-2); }
/* Accents par domaine */
#ymunit-site .ym-capability-grid--pv .ym-capability-card { border-top-color: #12b48f; }
#ymunit-site .ym-capability-grid--pv .ym-capability-card__icon { background: rgba(18,180,143,.13); color: #0c8f70; }
#ymunit-site .ym-capability-grid--pv .ym-capability-card__highlights li::before { border-color: #12b48f; }
#ymunit-site .ym-capability-grid--it .ym-capability-card { border-top-color: #4b56e6; }
#ymunit-site .ym-capability-grid--it .ym-capability-card__icon { background: rgba(75,86,230,.12); color: #3a44c9; }
#ymunit-site .ym-capability-grid--audit .ym-capability-card { border-top-color: #274f78; }
#ymunit-site .ym-capability-grid--audit .ym-capability-card__icon { background: rgba(39,79,120,.13); color: #274f78; }
#ymunit-site .ym-capability-grid--audit .ym-capability-card__highlights li::before { border-color: #274f78; }


/* --- Pages légales / contenu long (.ym-prose) -------------------------- */
#ymunit-site .ym-legal { padding-block: clamp(48px, 7vw, 104px); }
#ymunit-site .ym-prose { max-width: 760px; margin-inline: auto; color: var(--ym-body); }
#ymunit-site .ym-prose > .ym-eyebrow { margin-bottom: 10px; }
#ymunit-site .ym-prose h1 { font-family: var(--ym-font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; color: var(--ym-ink); margin: 0 0 10px; letter-spacing: -.01em; }
#ymunit-site .ym-prose .ym-prose__updated { font-size: 13.5px; color: var(--ym-muted); margin: 0 0 36px; }
#ymunit-site .ym-prose h2 { font-family: var(--ym-font-display); font-weight: 700; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; color: var(--ym-ink); margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--ym-border); }
#ymunit-site .ym-prose h2:first-of-type { border-top: 0; padding-top: 0; }
#ymunit-site .ym-prose h3 { font-family: var(--ym-font-display); font-weight: 600; font-size: 17px; color: var(--ym-ink); margin: 28px 0 10px; }
#ymunit-site .ym-prose p, #ymunit-site .ym-prose li { font-size: 15.5px; line-height: 1.72; }
#ymunit-site .ym-prose p { margin: 0 0 16px; }
#ymunit-site .ym-prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
#ymunit-site .ym-prose ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
#ymunit-site .ym-prose ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 2px; background: var(--ym-teal); }
#ymunit-site .ym-prose strong { color: var(--ym-ink); font-weight: 600; }
#ymunit-site .ym-prose a { color: var(--ym-teal-600); text-decoration: underline; text-underline-offset: 2px; }
#ymunit-site .ym-prose a:hover { color: var(--ym-navy); }
#ymunit-site .ym-prose .ym-note { margin: 0 0 28px; }
#ymunit-site .ym-prose__table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--ym-border); border-radius: 12px; }
#ymunit-site .ym-prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13.5px; }
#ymunit-site .ym-prose th, #ymunit-site .ym-prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--ym-border); vertical-align: top; line-height: 1.5; }
#ymunit-site .ym-prose thead th { background: var(--ym-gray-50); color: var(--ym-ink); font-weight: 600; }
#ymunit-site .ym-prose tbody tr:last-child td { border-bottom: 0; }
#ymunit-site .ym-prose pre { background: var(--ym-navy); color: #eaf1f8; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 13px; margin: 0 0 20px; }
#ymunit-site .ym-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* --- Trois offres (accueil) --------------------------------------------- */
#ymunit-site .ym-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
#ymunit-site .ym-offer { min-width: 0; display: flex; flex-direction: column; background: var(--ym-surface); border: 1px solid var(--ym-border); border-radius: var(--ym-radius-lg); padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--ym-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
#ymunit-site .ym-offer:hover { transform: translateY(-4px); box-shadow: var(--ym-shadow-lg); border-color: var(--ym-border-2); }
#ymunit-site .ym-offer__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ym-teal-050); display: grid; place-items: center; margin-bottom: 18px; }
#ymunit-site .ym-offer__ico svg { width: 28px; height: 28px; color: var(--ym-teal-600); }
#ymunit-site .ym-offer__k { font-family: var(--ym-font-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ym-teal-600); margin: 0 0 8px; }
#ymunit-site .ym-offer h3 { font-family: var(--ym-font-display); font-size: clamp(19px, 1.7vw, 22px); font-weight: 800; color: var(--ym-ink); letter-spacing: -.01em; margin: 0 0 12px; line-height: 1.2; }
#ymunit-site .ym-offer > p { font-size: 14.5px; color: var(--ym-body); margin: 0 0 18px; }
#ymunit-site .ym-offer__list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
#ymunit-site .ym-offer__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--ym-body); }
#ymunit-site .ym-offer__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ym-teal); margin-top: 7px; flex: none; }
#ymunit-site .ym-offer__cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { #ymunit-site .ym-offers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  #ymunit-site .ym-offer__cta { width: 100%; max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
}

/* --- Situations (accueil) ----------------------------------------------- */
#ymunit-site .ym-sits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
#ymunit-site .ym-sit { background: var(--ym-surface); border: 1px solid var(--ym-border); border-radius: var(--ym-radius); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s ease, transform .2s ease; }
#ymunit-site .ym-sit:hover { border-color: var(--ym-teal); transform: translateY(-2px); }
#ymunit-site .ym-sit__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--ym-teal-050); display: grid; place-items: center; margin-bottom: 4px; }
#ymunit-site .ym-sit__ico svg { width: 20px; height: 20px; color: var(--ym-teal-600); }
#ymunit-site .ym-sit h3 { font-family: var(--ym-font-display); font-size: 16px; font-weight: 700; color: var(--ym-ink); margin: 0; line-height: 1.25; }
#ymunit-site .ym-sit p { font-size: 13.5px; color: var(--ym-muted); margin: 0; line-height: 1.5; }
@media (max-width: 860px) { #ymunit-site .ym-sits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #ymunit-site .ym-sits { grid-template-columns: 1fr; } }

/* --- Missions représentatives ------------------------------------------- */
#ymunit-site .ym-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
#ymunit-site .ym-case { background: var(--ym-surface); border: 1px solid var(--ym-border); border-radius: var(--ym-radius-lg); padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--ym-shadow); display: flex; flex-direction: column; gap: 16px; }
#ymunit-site .ym-case > h3 { font-family: var(--ym-font-display); font-size: 18px; font-weight: 800; color: var(--ym-ink); margin: 0; letter-spacing: -.01em; }
#ymunit-site .ym-case__row { display: flex; flex-direction: column; gap: 4px; }
#ymunit-site .ym-case__k { font-family: var(--ym-font-body); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ym-teal-600); }
#ymunit-site .ym-case__row p { font-size: 14px; color: var(--ym-body); margin: 0; line-height: 1.55; }
#ymunit-site .ym-case__row--res { padding-top: 12px; border-top: 1px solid var(--ym-border); margin-top: 2px; }
#ymunit-site .ym-case__row--res p { color: var(--ym-ink); font-weight: 500; }
@media (max-width: 900px) { #ymunit-site .ym-cases { grid-template-columns: 1fr; } }

/* --- Ligne parcours approche (compacte) --------------------------------- */
#ymunit-site .ym-flowline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 4px 0 0; padding: 18px 20px; background: var(--ym-navy); border-radius: var(--ym-radius); }
#ymunit-site .ym-flowline span { font-family: var(--ym-font-display); font-size: clamp(14px, 1.5vw, 17px); font-weight: 700; color: #fff; letter-spacing: -.01em; }
#ymunit-site .ym-flowline svg { width: 18px; height: 18px; color: var(--ym-teal); flex: none; }
#ymunit-site .ym-transfer-note { text-align: center; font-size: 14px; color: var(--ym-muted); max-width: 720px; margin: 18px auto 0; }

/* --- Secteurs compacts (fusion chiffres) -------------------------------- */
#ymunit-site .ym-sectors-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
#ymunit-site .ym-sectors-inline span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; background: var(--ym-surface); border: 1px solid var(--ym-border); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ym-body); }
#ymunit-site .ym-sectors-inline svg { width: 16px; height: 16px; color: var(--ym-teal-600); }

/* --- Build–Operate–Transfer : version mobile verticale ------------------ */
#ymunit-site .ym-bot-steps-m { display: none; }
@media (max-width: 640px) {
  #ymunit-site .ym-scene--bot { display: none; }
  #ymunit-site .ym-bot-steps-m { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 4px 0 0; padding: 0; }
  #ymunit-site .ym-bot-step-m { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 0 0 22px; }
  #ymunit-site .ym-bot-step-m:last-child { padding-bottom: 0; }
  #ymunit-site .ym-bot-step-m:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--ym-border-2); }
  #ymunit-site .ym-bot-step-m__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ym-navy); color: #fff; display: grid; place-items: center; font-family: var(--ym-font-display); font-weight: 800; font-size: 15px; position: relative; z-index: 1; }
  #ymunit-site .ym-bot-step-m--1 .ym-bot-step-m__n { background: #4b56e6; }
  #ymunit-site .ym-bot-step-m--2 .ym-bot-step-m__n { background: #3a44c9; }
  #ymunit-site .ym-bot-step-m--3 .ym-bot-step-m__n { background: #0c8f70; }
  #ymunit-site .ym-bot-step-m--4 .ym-bot-step-m__n { background: #12b48f; }
  #ymunit-site .ym-bot-step-m__t b { display: block; font-family: var(--ym-font-display); font-size: 15px; font-weight: 700; color: var(--ym-ink); }
  #ymunit-site .ym-bot-step-m__t small { display: block; font-size: 13px; color: var(--ym-muted); margin-top: 3px; line-height: 1.45; }
}

/* --- Intégration WordPress --------------------------------------------- */
html { scroll-behavior: smooth; }
body.ymunit-theme { margin: 0; background: #fbfcfd; }
body.ymunit-theme #ymunit-site { min-height: 100vh; }
body.admin-bar #ymunit-site .ym-header { top: 32px; }
body.admin-bar #ymunit-site .ym-mobile-nav { inset-block-start: 104px; }
#ymunit-site .ym-admin-configuration-note {
  padding: 14px 16px;
  border: 1px solid #d99b1a;
  border-radius: 10px;
  background: #fff8e6;
  color: #5f4300;
}
#ymunit-site .ym-admin-configuration-note a { color: inherit; font-weight: 700; }
#ymunit-site .ym-form button[aria-busy="true"] { cursor: wait; opacity: .78; }
#ymunit-site .ym-turnstile-slot { margin: 2px 0 18px; min-height: 65px; }
#ymunit-site .ym-turnstile-slot .cf-turnstile { width: 100%; }
#ymunit-site .ym-turnstile-slot iframe { max-width: 100%; }
#ymunit-site .ym-generic-content { min-height: 55vh; }
#ymunit-site .ym-generic-content .entry-content > * { max-width: 760px; margin-inline: auto; }
#ymunit-site .ym-generic-content .entry-content > .alignwide { max-width: 1180px; }
#ymunit-site .ym-generic-content .entry-content > .alignfull { max-width: none; }
#ymunit-site img { height: auto; }
#ymunit-site .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 782px) {
  body.admin-bar #ymunit-site .ym-header { top: 46px; }
  body.admin-bar #ymunit-site .ym-mobile-nav { inset-block-start: 118px; }
}
@media (max-width: 360px) {
  #ymunit-site .cf-turnstile { transform-origin: left top; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
#ymunit-site .ym-prose .ym-cookie-settings-trigger {
  display: inline;
  color: var(--ym-teal-600);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
}
#ymunit-site .ym-prose .ym-cookie-settings-trigger:hover { color: var(--ym-navy); }


/* Native FR/EN language switcher */
.ym-language-switcher{display:flex;align-items:center;gap:7px;font:600 13px/1 Manrope,Arial,sans-serif;letter-spacing:.08em;color:var(--ym-slate-500)}
.ym-language-switcher a{color:inherit;text-decoration:none;padding:8px 3px}.ym-language-switcher a[aria-current="true"]{color:var(--ym-indigo);font-weight:800}.ym-language-switcher span{opacity:.45}
.ym-language-switcher--mobile{justify-content:center;padding:8px 0 4px;font-size:15px}
@media(max-width:1050px){.ym-header__actions>.ym-language-switcher{display:none}}
/* Empêche les boutons des cartes de déborder */
#ymunit-site .ym-offer-card a,
#ymunit-site .ym-service-card a,
#ymunit-site .ym-card__cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.25;
  min-height: 52px;
  padding: 13px 18px;
}