/* =========================================================================
   RH-France — Organisme de formation Qualiopi
   Design system 2026 · "Grotesque moderne"
   Space Grotesk + Onest · slate sombre / indigo / jaune signature
   ========================================================================= */

/* ----------------------------- Tokens ---------------------------------- */
:root {
  /* Encres — bleu royal clair et moderne */
  --ink: #2A4E8A;
  --ink-2: #365EA0;
  --ink-3: #4270B5;
  --slate: #6178A0;
  --slate-2: #A0B2D2;

  /* Papier */
  --paper: #FFFFFF;
  --paper-2: #F6F8FC;
  --paper-3: #ECF1F8;
  --white: #FFFFFF;
  --line: #E4EAF3;
  --line-2: #D5DEEC;
  --line-strong: #C1CCDF;

  /* Accent — bleu clair moderne (actions) */
  --blue: #4270B5;
  --blue-600: #365EA0;
  --blue-700: #2A4E8A;
  --blue-ink: #1E3E70;
  --blue-soft: #E7EEF9;
  --blue-glow: rgba(66, 112, 181, .22);
  --sky: #ABBEE0;

  /* Signature — or élégant (touches subtiles) */
  --yellow: #C9A24C;
  --yellow-2: #E2BD68;
  --yellow-soft: #F5EBC9;
  --yellow-ink: #5C4416;

  /* Secondaires */
  --cyan: #4A6E8A;
  --green: #16A06B;
  --green-soft: #E1F5EC;
  --gold: #C9A24C;

  /* Texte */
  --t-1: #1E3E70;
  --t-2: #3D4861;
  --t-3: #6B7690;
  --t-inv: #EEF1F8;
  --t-inv-2: rgba(238, 241, 248, .66);

  /* Rayons — modernes, arrondis doux */
  --r-xs: 8px;
  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Ombres */
  --sh-sm: 0 1px 2px rgba(15,23,43,.05), 0 1px 3px rgba(15,23,43,.04);
  --sh-md: 0 20px 44px -24px rgba(15,23,43,.24);
  --sh-lg: 0 44px 96px -42px rgba(15,23,43,.36);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 140px;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .5s;

  --z-header: 50;
  --z-menu: 60;
  --z-top: 70;
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--t-1);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-top);
  background: var(--ink); color: var(--t-inv); padding: 12px 18px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ----------------------------- Typography ------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; color: var(--t-1); }
h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.3vw, 3.05rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.68rem); }
h4 { font-size: 1.18rem; letter-spacing: -.02em; }
h5 { font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--t-1); }
p { color: var(--t-2); }
strong { color: var(--t-1); font-weight: 600; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--t-2); line-height: 1.6; max-width: 60ch; }

/* Signature — soulignement or élégant */
.accent { color: inherit; position: relative; background: none; padding: 0 .04em; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.hero .accent { text-decoration-color: var(--yellow-2); text-decoration-thickness: 1.5px; }
.muted { color: var(--t-3); }

/* ----------------------------- Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1320px; }
.container--narrow { max-width: 800px; }

.section { padding-block: clamp(64px, 9vw, 122px); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }
.section--ink { background: var(--ink); color: var(--t-inv); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink p, .section--ink .lead { color: var(--t-inv-2); }
.section--paper2 { background: var(--paper-2); }

.section-head { max-width: 750px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 18px; } .mt-8 { margin-top: 34px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 22px; height: 7px; border-radius: 3px; background: var(--yellow); }
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow.on-dark { color: var(--yellow); }
.eyebrow.on-dark::before { background: var(--yellow); }

/* ----------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .97rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px -14px var(--blue-glow); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 18px 38px -14px var(--blue-glow); transform: translateY(-2px); }
.btn--accent { background: var(--yellow); color: var(--ink); }
.btn--accent:hover { background: var(--yellow-2); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--t-inv); }
.btn--dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--t-1); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.28); color: var(--t-inv); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn--lg { padding: 17px 28px; font-size: 1.03rem; }
.btn--block { display: flex; width: 100%; }

/* ----------------------------- Scroll progress ------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-top) + 5); background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--yellow)); box-shadow: 0 0 12px var(--blue-glow); transition: width .1s linear; }

/* ----------------------------- Header ---------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  background: linear-gradient(180deg, #E8F0FA 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
  will-change: transform;
  transform: translateZ(0);
}
#main { padding-top: calc(var(--header-h) + 41px); }
@media (max-width: 760px) { #main { padding-top: var(--header-h); } }
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(15,23,43,.22); }
/* Auto-hide desactive pour eviter tout flicker au scroll */
.site-header.hide { transform: none; }

/* Topbar — collapse smooth au scroll */
.topbar { background: var(--ink); color: var(--t-inv-2); overflow: hidden; max-height: 100px; transition: max-height .4s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.site-header.scrolled .topbar { max-height: 0; opacity: 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 40px; padding-block: 6px; }
.topbar-msg { display: flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 500; color: var(--t-inv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.topbar-msg svg { flex-shrink: 0; }
@media (max-width: 1100px) { .topbar-right a:last-of-type, .topbar-right .topbar-sep { display: none; } }
@media (max-width: 720px) { .topbar .container { flex-direction: column; gap: 4px; align-items: flex-start; padding-block: 8px; } .topbar-msg { white-space: normal; } .topbar-right a:last-of-type, .topbar-right .topbar-sep { display: inline-flex; } }
.topbar-msg svg { width: 15px; height: 15px; color: var(--yellow); flex-shrink: 0; animation: spinSlow 9s linear infinite; }
.topbar-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.topbar-right a { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; color: var(--t-inv-2); transition: color .18s var(--ease); }
.topbar-right a:hover { color: var(--yellow); }
.topbar-right svg { width: 14px; height: 14px; color: var(--yellow); }
.topbar-sep { width: 1px; height: 16px; background: rgba(255,255,255,.16); }
/* Topbar reste visible en scrolled — pas de collapse */

.nav { display: flex; align-items: center; gap: 18px; height: var(--header-h); transition: height .4s cubic-bezier(.22,1,.36,1); }
.site-header.scrolled .nav { height: 84px; }
.brand-mark { transition: transform .35s var(--ease); }
.site-header.scrolled .brand-mark { transform: scale(.94); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
/* Logo lui-meme retreci un peu en scrolled */
.brand-logo { transition: height .35s cubic-bezier(.22,1,.36,1); }
.site-header.scrolled .brand-logo { height: 60px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; letter-spacing: -.03em; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink); color: var(--yellow);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.04em;
}
.brand { position: relative; }
.brand-logo { height: 96px; width: auto; display: block; flex-shrink: 0; max-width: 360px; object-fit: contain; }
/* Groupe RH France — sur fond doré léger sous le logo */
.brand-sub { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow-ink); background: var(--yellow-soft); padding: 2px 8px; border-radius: 4px; margin-top: 2px; }
@media (max-width: 780px) { .brand-logo { height: 60px; max-width: 240px; } .brand-sub { font-size: .55rem; letter-spacing: .18em; padding: 2px 8px; } }
@media (max-width: 480px) { .brand-sub { display: none; } }

/* Footer — logo officiel + tagline reconstituée */
.footer-logo { height: 56px; width: auto; display: block; max-width: 300px; object-fit: contain; }
.footer-tagline-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 13px; border-radius: var(--r-full); background: var(--yellow); color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .01em; }

/* Chips compacts d'adaptabilité sur les cartes */
.chip--sm { padding: 6px 11px; font-size: .76rem; gap: 6px; }
.chip--sm svg { width: 13px; height: 13px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.nav-links { display: flex; align-items: center; gap: 0; margin-left: 6px; }
.nav-links > li > a, .nav-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 9px 10px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; color: var(--ink);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-links > li > a::after, .nav-trigger::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; background: var(--yellow); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links > li > a:hover::after, .nav-item:hover .nav-trigger::after, .nav-links > li > a[aria-current]::after { transform: scaleX(1); }
.nav-links > li > a:hover, .nav-trigger:hover, .nav-item:hover .nav-trigger { color: var(--t-1); background: var(--paper-2); }
.nav-trigger svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.nav-item:hover .nav-trigger svg { transform: rotate(180deg); }
.nav-spacer { flex: 1; }
.nav-cta { flex-shrink: 0; padding: 12px 18px; font-size: .9rem; }

/* Mega dropdown */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(560px, 86vw); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 14px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 16px; }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mega-link { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 14px 14px; border-radius: var(--r-sm); transition: background-color .16s var(--ease); text-decoration: none; }
.mega-link:hover { background: var(--paper-2); }
.mega-ic { width: 36px; height: 36px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex-shrink: 0; }
.mega-ic svg { width: 19px; height: 19px; }
.mega-link b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--t-1); letter-spacing: -.02em; }
.mega-link span:not(.mega-ic) { font-size: .8rem; color: var(--t-3); line-height: 1.4; }
.mega-foot { margin-top: 8px; padding: 13px 15px; border-radius: var(--r-sm); background: var(--ink); color: var(--t-inv); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mega-foot span { font-size: .85rem; color: var(--t-inv-2); }
.mega-foot a { color: var(--yellow); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.mega-foot a svg { width: 16px; height: 16px; }

@media (max-width: 1440px) { .nav-cta.btn--ghost { display: none; } }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); place-items: center; color: var(--t-1); border: 1px solid var(--line-strong); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-open { display: none; }
.menu-toggle.is-open .icon-close { display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: var(--z-menu);
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  background: var(--paper); padding: 22px var(--gutter) 40px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%); transition: transform .4s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu > ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a.m-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.m-group { border-bottom: 1px solid var(--line); }
.m-group summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary svg { width: 20px; height: 20px; transition: transform .25s var(--ease); color: var(--blue); }
.m-group[open] summary svg { transform: rotate(45deg); }
.m-sub { display: flex; flex-direction: column; padding: 2px 0 14px; }
.m-sub a { padding: 9px 14px; color: var(--t-2); font-size: .98rem; border-radius: var(--r-xs); }
.m-sub a:hover { background: var(--paper-2); color: var(--t-1); }
.mobile-menu .btn { margin-top: 22px; }
.m-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--t-3); font-size: .9rem; }
.m-contact a { color: var(--t-1); font-weight: 600; }

/* ----------------------------- Hero ------------------------------------ */
.above-fold { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 41px); height: calc(100svh - var(--header-h) - 41px); }
@media (max-width: 1080px) { .above-fold { height: auto; } }
.hero { position: relative; padding-top: clamp(16px, 2vw, 28px); padding-bottom: clamp(16px, 2.5vw, 32px); overflow: hidden; background: linear-gradient(160deg, #5687C7 0%, var(--ink) 42%, #14294D 100%); color: var(--t-inv); flex: 1; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 90% 0%, rgba(217, 178, 128, .18), transparent 60%), radial-gradient(70% 100% at 0% 100%, rgba(66, 112, 181, .32), transparent 65%); pointer-events: none; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(80% 90% at 100% 0%, rgba(79,70,229,.34), transparent 58%);
}
.hero .container { position: relative; z-index: 2; }

/* Image de fond du hero — duotone + dégradé de lisibilité */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; filter: grayscale(1) brightness(.78) contrast(1.05); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, var(--ink) 6%, rgba(42,78,138,.84) 40%, rgba(66,112,181,.5) 100%), radial-gradient(70% 90% at 100% 0%, rgba(66,112,181,.3), transparent 60%); }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 3vw, 48px); align-items: end; }
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,.92); margin-top: 14px; font-weight: 400; }
.hero-audiences { margin-top: 6px; color: rgba(255,255,255,.85); font-weight: 500; font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: .01em; }
.hero-format { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-weight: 500; font-size: .94rem; padding: 8px 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; backdrop-filter: blur(6px); }
.hero-format svg { color: var(--yellow); }
.hero .lead strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13); }
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--t-inv-2); }
.hero-trust svg { width: 18px; height: 18px; color: var(--yellow); flex-shrink: 0; }
.hero-trust strong { color: var(--white); }

/* Panneau hero */
.hero-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: 18px 22px;
}
.hero-card h3 { color: var(--white); font-size: 1.2rem; }
.hero-card .hc-sub { color: var(--t-inv-2); font-size: .88rem; margin-top: 4px; }
.hc-row { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.hc-field { border-top: 1px solid rgba(255,255,255,.12); padding: 10px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.hc-field span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--t-inv-2); }
.hc-field b { color: var(--white); font-weight: 600; font-size: .98rem; text-align: right; }
.hero-card .btn { margin-top: 16px; }
.hc-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--yellow); margin-top: 10px; }
.hc-badge svg { width: 16px; height: 16px; }

/* ----------------------------- Partenaires ----------------------------- */
.trust-bar { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 18px; }
.trust-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 38px; }
.trust-lead { font-size: .76rem; text-transform: uppercase; letter-spacing: .15em; color: var(--t-3); font-weight: 600; }
.trust-bar .marquee, .trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; width: auto; animation: none; }
.trust-bar span:not(.trust-lead) { display: inline-flex; align-items: center; gap: 9px; color: var(--t-2); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.trust-bar span svg { width: 16px; height: 16px; color: var(--blue); }
.trust-bar .trust-ia { background: var(--yellow); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .02em; }
.trust-bar .trust-ia svg { color: var(--ink); }
.trust-bar .trust-logo { padding: 0; }
.trust-bar .trust-logo img { height: 34px; width: auto; display: block; object-fit: contain; }

/* ----------------------------- Stats ----------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: left; padding: 4px 28px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.7rem); letter-spacing: -.04em; color: var(--t-1); line-height: 1; }
.section--ink .stat-num { color: var(--white); }
.section--ink .stat-num em { color: var(--yellow); }
.stat-num em { font-style: normal; color: var(--blue); }
.stat-lbl { margin-top: 14px; color: var(--t-3); font-size: .92rem; max-width: 24ch; }
.section--ink .stat-lbl { color: var(--t-inv-2); }

/* ----------------------------- Cards / Grid ---------------------------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px;
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.card-ic { width: 50px; height: 50px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 20px; }
.card-ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .98rem; }
.card-list { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.card-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--t-2); }
.card-list svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.card-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); font-size: .93rem; }
.card-link::after { content: "→"; display: inline-block; transition: transform .25s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }
.card-link svg { display: none; }
.card-link.stretched::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--feature { border-color: var(--blue); overflow: hidden; }
.card--feature::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--yellow); z-index: 1; }
.card-tag { position: absolute; top: 26px; right: 28px; font-family: var(--font-body); font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: var(--yellow); padding: 4px 9px; border-radius: var(--r-full); }

/* ----------------------------- Visuels --------------------------------- */
.ph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(150deg, var(--ph-a, #365EA0), var(--ph-b, #2A4E8A));
}
.ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(110% 90% at 82% 8%, rgba(255,255,255,.12), transparent 60%); }
.ph svg { position: absolute; right: 18px; bottom: 16px; width: 60px; height: 60px; color: rgba(255,255,255,.22); }
.ph-label { position: absolute; left: 20px; bottom: 18px; z-index: 1; color: rgba(255,255,255,.96); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.22; letter-spacing: -.02em; max-width: 74%; }
.ph--blue { --ph-a: #4270B5; --ph-b: #2A4E8A; }
.ph--cyan { --ph-a: #1FA9CC; --ph-b: #0B4D60; }
.ph--green { --ph-a: #16A06B; --ph-b: #0B5640; }
.ph--ink { --ph-a: #365EA0; --ph-b: #2A4E8A; }
.ph--gold { --ph-a: #E6BD00; --ph-b: #7A6300; }
.split-media .media-img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------- Bento ----------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.bento-item { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--white); }
.bento-item.span-2 { grid-column: span 2; }
.bento-item.row-2 { grid-row: span 2; }
.bento-item.dark { background: var(--ink); color: var(--t-inv); border-color: var(--ink); }
.bento-item.dark h3, .bento-item.dark h4 { color: var(--white); }
.bento-item.dark p { color: var(--t-inv-2); }
.bento-item.accent { background: var(--blue); color: #fff; border-color: var(--blue); }
.bento-item.accent h3, .bento-item.accent p { color: #fff; }
/* Icône dans le flux normal — jamais de chevauchement avec le texte, à toute taille d'écran */
.bento-ic { flex-shrink: 0; margin-bottom: 16px; width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.bento-item.dark .bento-ic { background: rgba(255,255,255,.07); color: var(--yellow); }
.bento-item.accent .bento-ic { background: rgba(255,255,255,.18); color: #fff; }
.bento-ic svg { width: 21px; height: 21px; }
.bento-item h3 { font-size: 1.32rem; } .bento-item p { font-size: .92rem; margin-top: 7px; }
.bento-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem,4vw,3.2rem); letter-spacing: -.04em; line-height: 1; color: var(--yellow); }
.bento-item.accent .bento-big { color: var(--yellow); }

/* Carte bento avec photo de fond + voile de lisibilité */
.bento-photo { background: var(--ink); }
.bento-photo .bento-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bento-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(195deg, rgba(15,23,43,.35) 0%, rgba(15,23,43,.86) 70%, rgba(15,23,43,.96) 100%); }
.bento-photo .bento-ic, .bento-photo h3, .bento-photo h4, .bento-photo p { position: relative; z-index: 2; }

/* ----------------------------- Process — numéros grotesk --------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px,2.6vw,30px); counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.section--ink .step { border-top-color: rgba(255,255,255,.18); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.04em; color: var(--blue);
  display: block; margin-bottom: 14px; line-height: 1;
}
.section--ink .step { border-top-color: var(--yellow); }
.section--ink .step::before { color: var(--yellow); }
.step h4 { margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* ----------------------------- Split / feature ------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 76px); align-items: center; }
.split--media-first .split-media { order: -1; }
.split-media { position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.feature-list { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.feature-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.section--ink .feature-list li { border-top-color: rgba(255,255,255,.14); }
.section--ink .feature-list li:last-child { border-bottom-color: rgba(255,255,255,.14); }
.feature-ic { width: 42px; height: 42px; border-radius: var(--r-sm); flex-shrink: 0; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.section--ink .feature-ic { background: rgba(255,255,255,.07); color: var(--yellow); }
.feature-ic svg { width: 21px; height: 21px; }
.feature-list h4 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-list p { font-size: .94rem; }

/* ----------------------------- Testimonials ---------------------------- */
.testimonial { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.testimonial::before { content: ""; position: absolute; top: 0; left: 28px; width: 38px; height: 4px; background: var(--yellow); border-radius: 0 0 3px 3px; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 17px; height: 17px; color: var(--gold); }
.testimonial blockquote { font-family: var(--font-body); font-weight: 500; font-size: 1.12rem; line-height: 1.5; color: var(--t-1); flex: 1; letter-spacing: -.01em; }
.testimonial-author { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.t-name { display: block; font-weight: 600; color: var(--t-1); font-size: .96rem; }
.t-role { display: block; color: var(--t-3); font-size: .85rem; }

/* ----------------------------- FAQ ------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: -.02em; cursor: pointer; list-style: none; color: var(--t-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq-body { padding: 0 4px 26px; color: var(--t-2); font-size: 1rem; max-width: 64ch; }
.faq-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------- CTA band -------------------------------- */
/* --- Catalogue — filtres --- */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.catalog-filter { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; color: var(--t-2); font-family: var(--font-body); font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); white-space: nowrap; }
.catalog-filter:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.catalog-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: 0 2px 8px rgba(42,78,138,.18); }
.catalog-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 700; border-radius: 999px; }
.catalog-filter.is-active .catalog-count { background: var(--yellow); color: var(--ink); }
@media (max-width: 780px) { .catalog-filters { gap: 8px; } .catalog-filter { font-size: .82rem; padding: 8px 14px; } }

/* --- Catalogue — grille de fiches --- */
.formation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 32px; }
.formation-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.formation-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue); }
.formation-card:hover .formation-cover img { transform: scale(1.06); }
.formation-card:hover .formation-cta { color: var(--blue); gap: 10px; }

.formation-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--blue) 0%, var(--ink) 100%); }
.formation-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.formation-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,27,51,.15) 0%, rgba(10,27,51,.65) 100%); }
.formation-cover.no-img::after { background: linear-gradient(180deg, transparent 0%, rgba(10,27,51,.35) 100%); }

.formation-cover[data-hue="commercial"] { background: linear-gradient(135deg, #4270B5 0%, #2A4E8A 100%); }
.formation-cover[data-hue="creation"] { background: linear-gradient(135deg, #365EA0 0%, #234A85 100%); }
.formation-cover[data-hue="bilan"] { background: linear-gradient(135deg, #C9A24C 0%, #8C6E2C 100%); }
.formation-cover[data-hue="bilan"]::after { background: linear-gradient(180deg, rgba(92,68,22,.05) 0%, rgba(30,62,112,.55) 100%); }
.formation-cover[data-hue="langues"] { background: linear-gradient(135deg, #4270B5 0%, #5687C7 100%); }
.formation-cover[data-hue="art"] { background: linear-gradient(135deg, #2A4E8A 0%, #4270B5 100%); }
.formation-cover[data-hue="bienetre"] { background: linear-gradient(135deg, #C9A24C 0%, #E2BD68 100%); }

.formation-cat { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 11px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; }
.rs-badge { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 10px; background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .05em; border-radius: 999px; }
.rs-badge--alt { background: var(--white); color: var(--ink); border: 1px solid var(--yellow); }
.rs-badge--gold { background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow-2) 100%); box-shadow: 0 4px 12px rgba(201,162,76,.4); }
.formation-ic { position: absolute; bottom: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; color: #fff; }
.formation-ic svg { width: 22px; height: 22px; }

.formation-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.formation-body h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }
.formation-body p { margin: 0; color: var(--t-2); font-size: .94rem; line-height: 1.5; flex: 1; }

.formation-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.formation-meta li { display: inline-flex; align-items: center; gap: 6px; color: var(--t-3); font-size: .82rem; font-weight: 500; }
.formation-meta li svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }

.formation-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.formation-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--t-2); font-weight: 700; font-size: .92rem; transition: color .2s var(--ease), gap .2s var(--ease); }
.formation-cta svg { width: 15px; height: 15px; }

.formation-card.is-hidden { display: none; }

/* --- Version switcher (bulle flottante) --- */
.version-switcher { position: fixed; bottom: 92px; right: 20px; z-index: 90; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid rgba(0,0,0,.08); border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.2); font-family: var(--font-body); font-size: .82rem; }
.version-switcher span { color: var(--t-3); font-weight: 600; padding-left: 6px; }
.version-switcher a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-weight: 700; text-decoration: none; transition: background .18s, transform .18s; }
.version-switcher a:hover { transform: scale(1.08); }
.version-switcher a.is-active { background: var(--ink); color: var(--white); }
@media (max-width: 640px) { .version-switcher { bottom: 76px; right: 10px; padding: 6px 8px; } .version-switcher span { display: none; } }

/* --- Formations phares (2 cards format vitrine + CTA catalogue) --- */
.grid--2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .grid--2 { grid-template-columns: 1fr; } }

.feature-formation { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.feature-formation:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue); }
.feature-formation-cover { position: relative; padding: 30px 26px 26px; color: var(--white); }
.feature-formation-cover svg { color: rgba(255,255,255,.85); margin-bottom: 12px; }
.feature-formation-cover h3 { margin: 0; color: var(--white); font-size: 1.28rem; line-height: 1.25; letter-spacing: -.02em; }
.feature-formation-tag { position: absolute; top: 20px; right: 20px; padding: 4px 12px; background: var(--yellow); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .08em; border-radius: 999px; }
.feature-formation-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.feature-formation-body .card-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feature-formation-body .card-list li { display: inline-flex; align-items: center; gap: 8px; color: var(--t-2); font-size: .96rem; }
.feature-formation-body .card-list li svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

.catalog-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 32px; padding: 26px 32px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.catalog-cta h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.catalog-cta p { margin: 0; color: var(--t-2); font-size: .96rem; line-height: 1.5; max-width: 64ch; }
@media (max-width: 720px) { .catalog-cta { grid-template-columns: 1fr; text-align: left; padding: 22px; } .catalog-cta .btn { justify-content: center; } }

/* --- Vitrine Qualiopi (grande, lisible) --- */
.qualiopi-hero { padding: clamp(40px, 5vw, 64px) 0; background: linear-gradient(160deg, var(--paper-2) 0%, var(--white) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qualiopi-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); }
.qualiopi-hero-logo { position: relative; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); display: flex; align-items: center; justify-content: center; min-height: 180px; }
.qualiopi-hero-logo::before { display: none; }
.qualiopi-hero-logo img { display: block; width: 100%; max-width: 240px; height: auto; }
.qualiopi-hero-content h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 16px; letter-spacing: -.02em; }
.qualiopi-hero-content .lead { margin: 0 0 24px; }
.qualiopi-hero-content ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.qualiopi-hero-content li { display: flex; align-items: flex-start; gap: 12px; color: var(--t-2); font-size: .98rem; line-height: 1.5; }
.qualiopi-hero-content li svg { flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; color: var(--yellow); }
.qualiopi-hero-content strong { color: var(--ink); }
.qualiopi-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 780px) { .qualiopi-hero-inner { grid-template-columns: 1fr; gap: 32px; } .qualiopi-hero-logo { min-height: 220px; padding: 20px; } .qualiopi-hero-logo img { max-width: 340px; } }

/* --- Portage Qualiopi (bloc phare — DA claire : blanc + bleu clair) --- */
.portage-hero { display: grid; grid-template-columns: minmax(300px, 1fr) 1.35fr; gap: 40px; align-items: stretch; padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 60px; overflow: hidden; position: relative; box-shadow: 0 40px 80px -32px rgba(15,23,43,.24); }
.portage-hero::before { content: ""; position: absolute; bottom: -200px; left: -180px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(66,112,181,.08) 0%, transparent 65%); pointer-events: none; }
.portage-hero > * { position: relative; z-index: 1; }
.portage-hero-visual { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.portage-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--blue-soft); color: var(--blue-700); font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .04em; border-radius: 999px; align-self: flex-start; }
.portage-badge svg { width: 15px; height: 15px; color: var(--blue-700); }
.portage-image { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; box-shadow: 0 16px 32px -12px rgba(15,23,43,.22); display: block; }
.portage-hero-stats { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
.portage-hero-stats > div { display: flex; flex-direction: column; padding: 12px 16px; background: var(--paper-2); border-left: 3px solid var(--blue); border-radius: 6px; }
.portage-hero-stats b { color: var(--ink); font-size: 1rem; letter-spacing: -.01em; margin-bottom: 2px; }
.portage-hero-stats span { color: var(--t-3); font-size: .82rem; }
.portage-hero .portage-hero-content h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); margin-bottom: 12px; letter-spacing: -.02em; }
.portage-hero p.portage-hero-lead, .section--ink .portage-hero p.portage-hero-lead { color: var(--ink); font-weight: 500; font-size: 1.06rem; line-height: 1.55; margin-bottom: 24px; }
.section--ink .portage-hero p, .section--ink .portage-hero .lead { color: var(--t-2); }
.portage-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.portage-benefits li { display: flex; align-items: flex-start; gap: 12px; color: var(--t-2); font-size: .96rem; line-height: 1.5; }
.portage-benefits li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--blue); margin-top: 3px; padding: 3px; background: var(--blue-soft); border-radius: 50%; box-sizing: content-box; }
.portage-benefits b { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
  .portage-hero { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .portage-hero-visual { align-items: center; text-align: center; }
  .portage-hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .portage-hero { padding: 20px; }
  .portage-image { height: 160px; }
  .portage-hero-stats { grid-template-columns: 1fr; }
}

.ext-services-head { text-align: center; margin-bottom: 32px; }
.ext-services-head h4 { color: var(--white); font-size: 1.4rem; margin-bottom: 6px; letter-spacing: -.01em; }
.ext-services-head p { color: rgba(255,255,255,.7); font-size: .98rem; margin: 0; }

/* --- Externalisation (sur fond ink) --- */
.ext-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 30px 26px; transition: border-color .3s var(--ease), background .3s var(--ease); }
.ext-card:hover { border-color: var(--yellow); background: rgba(201,162,76,.06); }
.ext-card .ext-ic { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: rgba(201,162,76,.15); color: var(--yellow); border-radius: var(--r-sm); margin-bottom: 16px; }
.ext-card .ext-ic svg { width: 22px; height: 22px; }
.ext-card h4 { margin: 0 0 8px; color: var(--white); font-size: 1.08rem; }
.ext-card p { margin: 0; color: var(--t-inv-2); font-size: .93rem; line-height: 1.6; }

/* --- Bandeau Qualiopi (téléchargement certificat) --- */
.qualiopi-strip { background: var(--yellow); padding: 28px 0; }
.qualiopi-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.qualiopi-strip h3 { margin: 0 0 4px; color: var(--ink); font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.qualiopi-strip p { margin: 0; color: rgba(15,23,43,.72); font-size: .96rem; max-width: 620px; }
.qualiopi-strip .btn { flex-shrink: 0; }

/* --- Qualité & conformité --- */
.qual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.qual-item { display: flex; align-items: flex-start; gap: 18px; padding: 24px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.qual-item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.qual-check { flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: var(--yellow); border-radius: var(--r-sm); }
.qual-check svg { width: 22px; height: 22px; }
.qual-item h4 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; font-weight: 700; }
.qual-item p { margin: 0; color: var(--t-2); font-size: .9rem; line-height: 1.55; }
.qual-item p a { color: var(--blue); font-weight: 600; }
.doc-strip { margin-top: 28px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.doc-strip a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: .92rem; text-decoration: none; transition: color .18s; }
.doc-strip a:hover { color: var(--yellow-ink); }
.doc-strip a svg { width: 16px; height: 16px; color: var(--yellow); }

/* --- Équipe --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; margin-bottom: 32px; }
.team-card { text-align: center; padding: 32px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.team-avatar { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; border-radius: 50%; }
.team-avatar svg { color: var(--yellow); }
.team-card h4 { margin: 0 0 6px; color: var(--ink); font-size: 1.08rem; }
.team-card p { margin: 0; color: var(--t-3); font-size: .9rem; line-height: 1.5; }
.team-card p a { color: var(--blue); font-weight: 600; }
.team-roles { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 2px; }
.team-roles li { color: var(--t-3); font-size: .82rem; line-height: 1.4; }

/* --- Partenaires --- */
.partners-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 20px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.partners-strip > span:first-child { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-3); font-size: .72rem; margin-right: 4px; }
.partner-pill { padding: 6px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .86rem; }

/* --- Indicateurs Qualiopi (bloc dédié, V1 par défaut) --- */
.qualiopi-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-top: 44px; }
.qualiopi-kpi > div { padding: 32px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.qualiopi-kpi > div:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.qualiopi-kpi .stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 700; color: var(--blue); letter-spacing: -.02em; }
.qualiopi-kpi .stat-lbl { font-size: .9rem; color: var(--t-2); line-height: 1.5; margin-top: 6px; }

/* --- Modale fiche formation --- */
body.is-modal-open { overflow: hidden; }
.formation-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 40px); opacity: 0; transition: opacity .28s var(--ease); }
.formation-modal.is-open { opacity: 1; }
.formation-modal[hidden] { display: none; }
.formation-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 27, 51, .55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); cursor: pointer; }
.formation-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 960px; max-height: 92vh; background: var(--white); border-radius: var(--r-xl); box-shadow: 0 60px 120px -30px rgba(10,27,51,.5); overflow-y: auto; overflow-x: hidden; transform: translateY(20px) scale(.98); transition: transform .32s var(--ease); }
.formation-modal.is-open .formation-modal-dialog { transform: translateY(0) scale(1); }
.formation-modal-close { position: sticky; top: 16px; margin-left: auto; margin-right: 16px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); color: var(--ink); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; float: right; transition: background .18s var(--ease), border-color .18s var(--ease); }
.formation-modal-close:hover { background: var(--white); border-color: var(--blue); }
.formation-modal-close svg { width: 20px; height: 20px; }
.formation-modal-body { display: block; }

.fm-cover { position: relative; aspect-ratio: 24/10; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--ink)); }
.fm-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,27,51,.2), rgba(10,27,51,.55)); }
.fm-cover[data-hue="commercial"] { background: linear-gradient(135deg, #4270B5, #2A4E8A); }
.fm-cover[data-hue="creation"]   { background: linear-gradient(135deg, #365EA0, #234A85); }
.fm-cover[data-hue="bilan"]      { background: linear-gradient(135deg, #C9A24C, #8C6E2C); }
.fm-cover[data-hue="langues"]    { background: linear-gradient(135deg, #4270B5, #5687C7); }
.fm-cover[data-hue="art"]        { background: linear-gradient(135deg, #2A4E8A, #4270B5); }
.fm-cover[data-hue="bienetre"]   { background: linear-gradient(135deg, #C9A24C, #E2BD68); }
.fm-cat { position: absolute; top: 20px; left: 24px; z-index: 2; padding: 6px 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; }
.fm-badge { position: absolute; top: 20px; right: 24px; z-index: 2; padding: 6px 12px; background: var(--yellow); color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .05em; border-radius: 999px; }

.fm-content { padding: 32px clamp(20px, 4vw, 44px) 40px; }
.fm-title { margin: 0 0 24px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }

.fm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 20px; margin-bottom: 32px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.fm-stat { display: flex; flex-direction: column; gap: 4px; }
.fm-stat span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t-3); }
.fm-stat b { font-size: .96rem; color: var(--ink); font-weight: 700; }

.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; margin-bottom: 32px; }
.fm-grid section { min-width: 0; }
.fm-grid section.fm-full { grid-column: 1 / -1; }
.fm-grid h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.fm-grid p { margin: 0; color: var(--t-2); font-size: .96rem; line-height: 1.55; }

.fm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fm-list li { position: relative; padding-left: 22px; color: var(--t-2); font-size: .95rem; line-height: 1.5; }
.fm-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 3px; border-radius: 2px; background: var(--yellow); }
.fm-list--check li::before { top: 6px; left: 0; width: 14px; height: 14px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317325E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / contain no-repeat; border-radius: 0; }
.fm-list--num { counter-reset: fmnum; }
.fm-list--num li { padding-left: 34px; }
.fm-list--num li::before { counter-increment: fmnum; content: counter(fmnum); left: 0; top: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); font-size: .74rem; font-weight: 700; border-radius: 50%; }

.fm-handicap { padding: 16px 20px; background: var(--yellow-soft); border-radius: var(--r-md); border-left: 3px solid var(--yellow); }
.fm-handicap h3 { color: var(--yellow-ink); }
.fm-handicap p { color: var(--yellow-ink); }
.fm-handicap a { color: var(--ink); font-weight: 700; text-decoration: underline; }

.fm-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: linear-gradient(180deg, transparent 0%, var(--white) 40%); margin: 0 clamp(-20px, -4vw, -44px) -40px; padding: 20px clamp(20px, 4vw, 44px) 32px; }
.fm-actions .btn { flex: 1 1 260px; min-width: 0; }

@media (max-width: 720px) {
  .fm-grid { grid-template-columns: 1fr; gap: 20px; }
  .fm-cover { aspect-ratio: 16/9; }
  .fm-cat, .fm-badge { top: 14px; }
  .fm-cat { left: 14px; }
  .fm-badge { right: 14px; }
  .formation-modal-dialog { max-height: 96vh; border-radius: var(--r-lg); }
}
.catalog-empty { text-align: center; padding: 40px 20px; color: var(--t-3); font-size: 1rem; }
.catalog-empty a { color: var(--blue); font-weight: 600; }

/* --- Catalogue catégorisé (obsolète, gardé pour compat) --- */
.catalog-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 36px; }
.catalog-cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px 20px; position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.catalog-cat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow-2) 100%); opacity: 0; transition: opacity .3s var(--ease); }
.catalog-cat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--blue); }
.catalog-cat:hover::before { opacity: 1; }
.catalog-cat header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.catalog-cat header h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.catalog-cat-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.catalog-cat-ic svg { width: 20px; height: 20px; }
.catalog-cat ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.catalog-cat li a { display: block; padding: 9px 12px; margin-inline: -12px; color: var(--t-2); font-size: .96rem; line-height: 1.4; border-radius: 8px; text-decoration: none; transition: background .18s var(--ease), color .18s var(--ease); }
.catalog-cat li a:hover { background: var(--paper-2); color: var(--ink); }
.catalog-cat .rs-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; font-size: .72rem; font-weight: 600; letter-spacing: .05em; background: var(--yellow-soft); color: var(--yellow-ink); border-radius: 999px; vertical-align: 1px; }

.catalog-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 36px clamp(24px, 4vw, 44px); background: linear-gradient(120deg, var(--paper-2) 0%, var(--white) 100%); border: 1px solid var(--line); border-radius: var(--r-xl); position: relative; overflow: hidden; }
.catalog-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-2) 100%); }
.catalog-band .catalog-title { margin: 8px 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.catalog-band .lead { margin-top: 6px; max-width: 62ch; }
.catalog-band .btn { flex-shrink: 0; }
@media (max-width: 780px) { .catalog-band { grid-template-columns: 1fr; padding: 28px 22px; } }

.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--t-inv); border-radius: var(--r-xl); padding: clamp(44px, 6vw, 80px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 130% at 50% -30%, rgba(201,162,76,.18), transparent 62%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: var(--t-inv-2); margin-inline: auto; margin-top: 18px; }
.cta-band .hero-actions { justify-content: center; }

/* ----------------------------- Page hero ------------------------------- */
.page-hero { position: relative; background: var(--ink); color: var(--t-inv); overflow: hidden; padding-top: clamp(40px,5vw,60px); padding-bottom: clamp(50px,6vw,82px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, var(--blue-glow), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--t-inv-2); margin-bottom: 26px; }
.crumb a { color: var(--t-inv-2); transition: color .15s; }
.crumb a:hover { color: var(--yellow); }
.crumb svg { width: 14px; height: 14px; opacity: .55; }
.crumb [aria-current] { color: var(--white); }
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero .lead { color: var(--t-inv-2); margin-top: 22px; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero .detail-meta { margin-top: 28px; }

/* ----------------------------- Prose ----------------------------------- */
.prose { max-width: 740px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; font-size: clamp(1.6rem,2.6vw,2.1rem); }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--t-2); font-size: 1.04rem; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 12px; height: 4px; border-radius: 2px; background: var(--yellow); }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--t-1); }

/* Callout */
.callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow); }
.callout svg { width: 23px; height: 23px; color: var(--blue); flex-shrink: 0; }
.callout p { color: var(--t-2); font-size: .98rem; }
.callout strong { color: var(--t-1); }
.callout--green { border-left-color: var(--green); }
.callout--green svg { color: var(--green); }

/* ----------------------------- Programme ------------------------------- */
.program { display: flex; flex-direction: column; counter-reset: mod; }
.program-item { display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.program-item:last-child { border-bottom: 1px solid var(--line); }
.program-num { counter-increment: mod; }
.program-num::before { content: counter(mod, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; letter-spacing: -.05em; color: var(--blue); line-height: .9; }
.program-item h4 { margin-bottom: 6px; font-size: 1.24rem; }
.program-item p { font-size: .98rem; }
.program-dur { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--t-3); }
.program-dur svg { width: 14px; height: 14px; color: var(--cyan); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2.2vw,22px); align-items: start; }
.price-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px; display: flex; flex-direction: column; transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.price-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.price-card.featured { border-color: var(--blue); overflow: hidden; }
.price-card.featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--yellow); z-index: 1; }
.price-card .badge-pop { display: inline-block; align-self: flex-start; font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 5px 10px; border-radius: var(--r-full); margin-bottom: 12px; }
/* Sur les cards sans badge, on reserve la meme hauteur pour aligner les titres */
.price-card:not(:has(.badge-pop))::before { content: ""; display: block; height: calc(.66rem + 22px); margin-bottom: 12px; }
.price-name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -.03em; }
.price-val { margin-top: 14px; min-height: 4.4rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.price-num { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; letter-spacing: -.04em; line-height: 1; display: inline-block; }
.price-num small { font-size: .9rem; font-weight: 500; color: var(--t-3); letter-spacing: 0; font-family: var(--font-body); }
.price-prefix { display: block; font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--t-3); letter-spacing: .04em; text-transform: none; margin-bottom: 6px; line-height: 1.2; }
.price-sub { min-height: 2.6rem; }
.price-sub { color: var(--t-3); font-size: .9rem; margin-top: 8px; }
.price-card .card-list { margin-top: 24px; flex: 1; }
.price-card .btn { margin-top: 26px; }

/* ----------------------------- Contact form ---------------------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px,3vw,42px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--t-1); margin-bottom: 8px; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--paper-2); font: inherit; font-size: .98rem; color: var(--t-1); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--t-3); margin-bottom: 18px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.form-note { font-size: .82rem; color: var(--t-3); margin-top: 14px; text-align: center; }

.contact-aside { display: flex; flex-direction: column; gap: 0; }
.contact-item { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 1px solid var(--line); }
.contact-item .feature-ic { background: var(--ink); color: var(--yellow); }
.contact-item h4 { font-size: 1.04rem; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: var(--t-2); font-size: .95rem; }
.contact-item a { color: var(--blue); font-weight: 600; }

/* ----------------------------- Financeurs ------------------------------ */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.logo-cell { aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); color: var(--t-2); text-align: center; padding: 20px; transition: color .2s, border-color .2s; }
.logo-cell:hover { color: var(--blue); border-color: var(--line-strong); }
.logo-cell-img { width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-cell-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.logo-cell-name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: -.01em; line-height: 1.3; }
@media (max-width: 760px) {
  .logo-cell-img { height: 80px; }
}

/* Chips */
.detail-meta { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-full); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: var(--t-inv); font-weight: 500; }
.chip svg { width: 15px; height: 15px; color: var(--yellow); }
.chip--light { background: var(--white); border-color: var(--line); color: var(--t-2); }
.chip--light svg { color: var(--blue); }

/* Qualiopi */
.qualiopi { display: inline-flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); margin-top: 24px; }
.qualiopi-mark { width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0; display: grid; place-items: center; background: var(--blue); color: #fff; }
.qualiopi-mark svg { width: 23px; height: 23px; }
.qualiopi b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; color: var(--t-1); }
.qualiopi span { font-size: .82rem; color: var(--t-3); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: var(--r-full); background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--t-2); transition: all .18s var(--ease); }
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill svg { width: 15px; height: 15px; color: var(--blue); }

/* ----------------------------- Footer ---------------------------------- */
.site-footer { background: var(--ink); color: var(--t-inv); padding-top: clamp(60px,7vw,88px); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 28px clamp(28px,3vw,44px); }
.footer-grid > :first-child { grid-row: 1 / -1; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; color: var(--white); }
.footer-tag { color: var(--t-inv-2); font-size: .88rem; margin-top: 10px; max-width: 38ch; line-height: 1.4; }
.footer-contact { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 8px; color: var(--t-inv-2); font-size: .85rem; line-height: 1.3; }
.footer-contact a:hover { color: var(--yellow); }
.footer-contact svg { width: 15px; height: 15px; color: var(--yellow); flex-shrink: 0; }
.footer-col h5 { color: var(--white); margin-bottom: 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col li { margin-bottom: 0; }
.footer-col a { color: var(--t-inv-2); font-size: .86rem; line-height: 1.35; transition: color .15s; }
.footer-col a:hover { color: var(--yellow); }
/* Bandeau doré tout en bas — Groupe RH France */
.footer-gold-band { background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow-2) 100%); padding: 18px 0 14px; margin-top: clamp(44px,5vw,64px); }
.footer-gold-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-gold-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(15,23,43,.15); }
.footer-gold-bottom, .footer-gold-bottom a { color: rgba(15,23,43,.6); font-size: .8rem; }
.footer-gold-bottom a:hover { color: var(--ink); }
.footer-nda { margin: 6px 0 0; color: rgba(15,23,43,.5); font-size: .72rem; line-height: 1.4; font-style: italic; }
.footer-gold-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.footer-gold-tag { color: rgba(15,23,43,.72); font-size: .84rem; font-weight: 500; }
@media (max-width: 640px) { .footer-gold-top, .footer-gold-bottom { flex-direction: column; text-align: center; gap: 4px; } .footer-gold-tag { font-size: .78rem; } }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); color: var(--t-inv-2); transition: all .2s var(--ease); }
.footer-social a:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.footer-social svg { width: 18px; height: 18px; }

/* ----------------------------- Back to top ----------------------------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: var(--z-top); width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--ink); color: var(--yellow); box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--ink-3); }
.to-top svg { width: 22px; height: 22px; }

/* Barre d'appel mobile */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.call-bar .btn { flex: 1; }

/* ----------------------------- Reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(2px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal--left { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--scale { transform: scale(.92); }
.reveal--up-lg { transform: translateY(48px); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
/* Stagger automatique dans les grilles */
.grid > *:nth-child(2), .price-grid > *:nth-child(2), .steps > *:nth-child(2) { transition-delay: .07s; }
.grid > *:nth-child(3), .price-grid > *:nth-child(3), .steps > *:nth-child(3) { transition-delay: .14s; }
.grid > *:nth-child(4), .steps > *:nth-child(4) { transition-delay: .21s; }

/* ----------------------------- Keyframes ------------------------------- */
@keyframes enterUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes enterScale { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes aurora { 0% { transform: translate(0,0) scale(1); opacity: .9; } 50% { transform: translate(-4%, 3%) scale(1.12); opacity: 1; } 100% { transform: translate(3%, -2%) scale(1.05); opacity: .85; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes shine { 0% { transform: translateX(-130%) skewX(-18deg); } 60%,100% { transform: translateX(330%) skewX(-18deg); } }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@keyframes bob { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ---- Hero : entrée échelonnée + aurore animée ---- */
.hero::before { animation: aurora 16s ease-in-out infinite alternate; }
.hero .eyebrow { animation: enterUp .7s var(--ease) both; }
.hero h1 { animation: enterUp .85s .1s var(--ease) both; }
.hero .lead { animation: enterUp .85s .22s var(--ease) both; }
.hero-actions { animation: enterUp .85s .34s var(--ease) both; }
.hero-trust { animation: enterUp .85s .46s var(--ease) both; }
.hero-card { animation: enterScale 1s .4s var(--ease) both, floaty 7s 1.6s ease-in-out infinite; }
.hero .accent { display: inline-block; animation: enterScale .8s .5s var(--ease) both; }

/* ---- Boutons : reflet animé ---- */
.btn--primary, .btn--accent { position: relative; overflow: hidden; }
.btn--primary::after, .btn--accent::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); transform: translateX(-130%) skewX(-18deg); }
.btn--primary:hover::after, .btn--accent:hover::after { animation: shine .9s var(--ease); }

/* ---- Hover micro-interactions ---- */
.card-ic, .feature-ic, .bento-ic, .mega-ic { transition: transform .3s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.card:hover .card-ic { transform: translateY(-3px) rotate(-5deg) scale(1.08); }
.feature-list li:hover .feature-ic { transform: rotate(-6deg) scale(1.08); }
.mega-link:hover .mega-ic { transform: scale(1.1) rotate(-4deg); }
.bento-item { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease); }
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.bento-item.dark:hover, .bento-item.accent:hover { border-color: transparent; }
.bento-item:hover .bento-ic { transform: scale(1.12) rotate(-5deg); }
.testimonial { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.logo-cell, .chip--light, .qualiopi { transition: transform .25s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease); }
.logo-cell:hover, .qualiopi:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.contact-item .feature-ic, .footer-social a { transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.footer-social a:hover { transform: translateY(-3px) rotate(-4deg); }
.pill { transition: transform .2s var(--ease), border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease); }
.pill:hover { transform: translateY(-2px); }
.faq summary:hover { color: var(--blue); }

/* ---- Blob flottant CTA ---- */
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(252,213,3,.18), transparent 70%); animation: floaty 9s ease-in-out infinite; pointer-events: none; }

/* ---- Stat : barre animée ---- */
.stat { position: relative; }
.stat-num { transition: transform .3s var(--ease); }
.stat:hover .stat-num { transform: translateY(-2px); }

@media (max-width: 1040px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-card, .cta-band::after, .topbar-msg svg { animation: none !important; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-trust, .hero-card, .hero .accent { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; align-items: stretch; }
  .hero-card { max-width: 460px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item.span-2 { grid-column: span 2; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat { padding: 4px 22px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 38px; }
  .split--media-first .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-row: auto; grid-column: 1 / -1; }
  .call-bar { display: flex; }
  body { padding-bottom: 72px; }
  .to-top { bottom: 84px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .field-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-item { min-height: 168px; }
  .bento-item.span-2, .bento-item.row-2 { grid-column: auto; grid-row: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .program-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-gold-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
}

/* ================================================================
   Correctifs responsive (mobile-first patches)
   ================================================================ */

/* Logo header — hauteur adaptative + retrait sous-titre sur petits écrans */
@media (max-width: 640px) {
  .brand-logo { height: 32px !important; }
  .brand-sub { display: none; }
  .brand { gap: 8px; padding: 4px 0; }
  :root { --header-h: 72px; }
}

/* Header : masquer les CTAs textuels du header sur mobile, garder seulement l'appel */
@media (max-width: 960px) {
  .nav-cta:not([href^="tel:"]) { display: none; }
  .nav-cta[href^="tel:"] { padding: 8px 14px; font-size: .84rem; }
}

/* Topbar : version courte sur mobile */
@media (max-width: 720px) {
  .topbar { font-size: .74rem; }
  .topbar .container { flex-direction: column; gap: 6px; padding-block: 6px; }
  .topbar-right { gap: 12px; }
  .topbar-msg { font-size: .74rem; text-align: center; }
}

/* Hero : layout 1 col dès 900px + hero-card compact */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .hero-card { padding: 24px !important; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 180px; justify-content: center; }
}

/* Publics : chiffre watermark caché sur mobile pour éviter l'overflow */
@media (max-width: 640px) {
  #publics .card::before { display: none; }
  .theme-editorial #publics .card::before { display: none; }
  #publics .card { text-align: left; padding: 32px 24px; }
}

/* Grilles génériques : passer à 1 col plus tôt */
@media (max-width: 720px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-editorial .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-editorial .stat { border-right: 0; padding: 20px 16px; }
  .theme-editorial .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .theme-editorial .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Bento : 1 seule colonne dès 720px */
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr !important; }
  .bento-item.span-2, .bento-item.row-2 { grid-column: auto !important; grid-row: auto !important; }
}

/* Cards Externalisation : 2 col dès 900px puis 1 col dès 560px */
@media (max-width: 900px) { #externalisation .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #externalisation .grid--3 { grid-template-columns: 1fr; } }

/* Qualité : 1 col dès 720px */
@media (max-width: 720px) { .qual-grid { grid-template-columns: 1fr !important; } }

/* KPI Qualiopi : 2 col dès 720px puis 1 col dès 480 */
@media (max-width: 720px) {
  .qualiopi-kpi { grid-template-columns: repeat(2, 1fr) !important; }
  .theme-editorial .qualiopi-kpi > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .theme-editorial .qualiopi-kpi > div:nth-child(even) { border-right: 0; }
  .theme-editorial .qualiopi-kpi > div { border-bottom: 1px solid var(--line); }
  .theme-editorial .qualiopi-kpi > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) { .qualiopi-kpi { grid-template-columns: 1fr !important; } }

/* Vitrine Qualiopi : logo pas trop grand sur petits écrans */
@media (max-width: 640px) {
  .qualiopi-hero { padding-block: 60px; }
  .qualiopi-hero-logo { min-height: 180px !important; padding: 16px !important; }
  .qualiopi-hero-logo img { max-width: 280px !important; }
  .qualiopi-hero-content h2 { font-size: 1.6rem; }
  .qualiopi-hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Bandeau Qualiopi strip : stack vertical sur mobile */
@media (max-width: 720px) {
  .qualiopi-strip-inner { flex-direction: column; text-align: center; gap: 20px; }
  .qualiopi-strip .btn { width: 100%; justify-content: center; }
}

/* Formation grid : cards min 240px pour éviter overflow */
@media (max-width: 480px) {
  .formation-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .formation-card .formation-body { padding: 18px 20px 20px; }
}

/* Modal fiche : marges plus petites sur mobile + police adaptée */
@media (max-width: 640px) {
  .formation-modal { padding: 8px !important; }
  .formation-modal-dialog { max-height: 96vh !important; border-radius: 14px !important; }
  .fm-content { padding: 24px 18px 30px !important; }
  .fm-title { font-size: 1.4rem !important; margin-bottom: 18px !important; }
  .fm-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; padding: 16px !important; }
  .fm-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .fm-actions { padding: 16px !important; margin-inline: -18px -18px !important; }
  .fm-actions .btn { flex: 1 1 100% !important; font-size: .8rem !important; }
}

/* Formation catalog filters : scroll horizontal sur mobile */
@media (max-width: 640px) {
  .catalog-filters { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; max-width: 100%; justify-content: flex-start; scrollbar-width: none; }
  .catalog-filters::-webkit-scrollbar { display: none; }
  .catalog-filter { flex: 0 0 auto; }
}

/* Nav catalog / mobile menu : scroll interne si trop long */
@media (max-width: 960px) {
  .mobile-menu { overflow-y: auto; padding-bottom: 40px; }
}

/* Buttons full-width sur très petits écrans (< 480px) */
@media (max-width: 480px) {
  .hero-actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
}

/* Contact form : 1 col dès 640px */
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr !important; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* Team + Partners : mieux stack */
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .partners-strip { flex-direction: column; align-items: flex-start; padding: 20px; }
  .partners-strip > span:first-child { margin-bottom: 6px; }
}

/* Doc-strip : stack sur mobile */
@media (max-width: 720px) {
  .doc-strip { flex-direction: column; align-items: flex-start; gap: 12px !important; }
}

/* Footer : brand block gap propre */
@media (max-width: 640px) {
  .footer-logo { height: 28px !important; }
  .site-footer { padding-top: 56px !important; }
  .footer-tagline-pill { margin-top: 12px; }
}

/* Version switcher pas centré-bottom mais un peu plus haut sur très petit iPhone (avec safe-area) */
@media (max-width: 640px) {
  .version-switcher { bottom: calc(76px + env(safe-area-inset-bottom, 0)); }
}

