/* =========================================================================
   BMS EXPERT — Refonte 2026
   Palette issue du logo : indigo #2A3785, orange #F29126.
   Couleurs de pôles : normes (indigo), ERP (sarcelle), formation (orange),
   technologies (bleu), data (violet), cybersécurité (rose).
   ========================================================================= */

:root {
  --ink: #161B3D;
  --text: #2A2748;
  --muted: #625F80;
  --line: #E4E3F1;
  --bg: #F7F7FC;
  --surface: #FFFFFF;

  --indigo: #2A3785;
  --indigo-2: #2E4D9D;
  --indigo-soft: #E8ECF8;
  --orange: #F29126;
  --orange-2: #C8700F;
  --orange-soft: #FFF1DC;
  --teal: #0E9F8E;
  --teal-2: #0A7C6F;
  --teal-soft: #DDF4F1;
  --sky: #2F7FE0;
  --sky-soft: #E3EEFC;
  --violet: #7A4DD8;
  --violet-soft: #EFE8FC;
  --rose: #D9467A;
  --rose-soft: #FBE4EC;
  --green: #2E9E5B;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(23, 20, 63, .06), 0 8px 24px rgba(23, 20, 63, .07);
  --shadow-l: 0 2px 6px rgba(23, 20, 63, .08), 0 24px 48px rgba(23, 20, 63, .14);

  --font-head: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Bootstrap aligné sur la charte (applications comprises) */
  --bs-primary: #2A3785;
  --bs-primary-rgb: 42, 55, 133;
  --bs-link-color: #2A3785;
  --bs-link-color-rgb: 42, 55, 133;
  --bs-link-hover-color: #2E4D9D;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: #2A2748;
  --bs-heading-color: #161B3D;
  --bs-border-radius: 10px;
  --bs-warning: #F29126;
  --bs-warning-rgb: 242, 145, 38;
}

html[dir="rtl"] { --font-head: "Cairo", "Archivo", Arial, sans-serif; --font-body: "Cairo", "Source Sans 3", Arial, sans-serif; }

body.site-v2 {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.01em;
}
:where(body.site-v2) a { color: var(--indigo); }
:where(body.site-v2) a:hover { color: var(--indigo-2); }
body.site-v2 :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
body.site-v2 .site-content { min-height: 50vh; }
.visually-hidden-focusable:focus { position: fixed !important; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Boutons ---------- */
.btn-v2 {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.2; cursor: pointer;
}
.btn-v2:hover { transform: translateY(-1px); text-decoration: none; }
.btn-v2.primary { background: var(--orange); color: #1E1500; }
.btn-v2.primary:hover { background: #F7A548; color: #1E1500; }
.btn-v2.dark { background: var(--indigo); color: #fff; }
.btn-v2.dark:hover { background: var(--indigo-2); color: #fff; }
.btn-v2.outline { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-v2.outline:hover { background: var(--indigo); color: #fff; }
.btn-v2.ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-v2.ghost:hover { background: #fff; color: var(--ink); }
.btn-v2.sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-v2 .fas, .btn-v2 .fab { font-size: .9em; }
html[dir="rtl"] .btn-v2 .fa-arrow-right { transform: scaleX(-1); }

/* ---------- En-tête ---------- */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.78); font-size: .88rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar .tb-left i { color: var(--orange); margin-inline-end: .35rem; }
.topbar .tb-right { display: flex; align-items: center; gap: .6rem; }
.topbar .tb-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff;
  border-radius: 999px; padding: .2rem .8rem; font-size: .84rem; display: inline-flex; align-items: center; gap: .4rem;
}
.topbar .tb-btn:hover { background: rgba(255,255,255,.1); }
.topbar .dropdown-menu { font-size: .92rem; }
.flag-icon { width: 20px; height: auto; border-radius: 3px; vertical-align: -2px; }

.mainnav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.mainnav .navbar { padding: .55rem 0; }
.mainnav .navbar-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin: 0; }
.mainnav .navbar-brand img { height: 46px; width: 46px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--indigo); line-height: 1; letter-spacing: .01em; }
.brand-name span { color: var(--orange); }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.mainnav .nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--ink) !important;
  padding: .55rem .8rem !important; border-radius: 8px;
}
.mainnav .nav-link:hover, .mainnav .nav-link.active { color: var(--indigo) !important; background: var(--indigo-soft); }
.mainnav .dropdown-toggle::after { vertical-align: .15em; }
.mainnav .navbar-toggler { border: 1px solid var(--line); padding: .45rem .6rem; }
.mainnav .navbar-toggler:focus { box-shadow: none; }
.menu-burger { background: transparent; border: 0; color: var(--indigo); font-size: 1.15rem; padding: .35rem .5rem; border-radius: 8px; }
.menu-burger:hover { background: var(--indigo-soft); }

.mega { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 1.1rem; margin-top: .5rem !important; }
@media (min-width: 992px) {
  .mega { width: 760px; }
  .mega-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; }
}
.mega-feature { display: grid; gap: .5rem; }
.mega-item {
  display: flex; gap: .85rem; align-items: flex-start; padding: .7rem .75rem; border-radius: 10px;
  text-decoration: none; color: var(--text);
}
.mega-item:hover { background: var(--bg); color: var(--text); }
.mega-item .ic {
  flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem;
}
.mega-item strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .98rem; }
.mega-item small { color: var(--muted); line-height: 1.35; display: block; }
.mega-list { border-inline-start: 1px solid var(--line); padding-inline-start: 1rem; }
.mega-list h6 { font-size: .82rem; color: var(--muted); margin: .4rem 0 .5rem; font-weight: 700; }
.mega-list a { display: block; padding: .38rem .5rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.mega-list a:hover { background: var(--bg); color: var(--indigo); }
.mega-list a i { width: 20px; color: var(--indigo); opacity: .75; }
@media (max-width: 991.98px) { .mega-list { border: 0; padding: 0; margin-top: .5rem; } }

.ic-indigo { background: var(--indigo-soft); color: var(--indigo); }
.ic-teal { background: var(--teal-soft); color: var(--teal-2); }
.ic-orange { background: var(--orange-soft); color: var(--orange-2); }
.ic-sky { background: var(--sky-soft); color: var(--sky); }
.ic-violet { background: var(--violet-soft); color: var(--violet); }
.ic-rose { background: var(--rose-soft); color: var(--rose); }

/* Menu latéral du groupe */
.vertical-menu { position: fixed; top: 0; inset-inline-start: -330px; width: 320px; height: 100%; background: var(--ink); z-index: 1060; transition: inset-inline-start .3s; overflow-y: auto; padding: 1.25rem; }
.vertical-menu.open { inset-inline-start: 0; }
.vertical-menu-overlay { position: fixed; inset: 0; background: rgba(10,8,40,.45); z-index: 1055; display: none; }
.vertical-menu-overlay.show { display: block; }
.vertical-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.vertical-menu-header h5 { color: #fff; margin: 0; }
.vertical-menu .menu-block { margin-bottom: 1.3rem; }
.vertical-menu .menu-block-title { color: var(--orange); font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.vertical-menu .menu-item { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.85); text-decoration: none; padding: .45rem .5rem; border-radius: 8px; }
.vertical-menu .menu-item:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Sections ---------- */
.sec { padding: 88px 0; }
.sec.tight { padding: 64px 0; }
.sec.white { background: var(--surface); }
.sec.ink { background: var(--ink); color: rgba(255,255,255,.82); }
.sec.ink h2, .sec.ink h3, .sec.ink h4 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 2.75rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--orange-2); margin-bottom: .75rem; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
.sec.ink .kicker { color: var(--orange); }
.sec-head h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); font-weight: 800; line-height: 1.12; margin-bottom: .9rem; }
.sec-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.sec.ink .sec-head p { color: rgba(255,255,255,.72); }
.lead-v2 { font-size: 1.15rem; color: var(--muted); }

/* ---------- Héros d'accueil ---------- */
.hero-v2 {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242,145,38,.28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(14,159,142,.25), transparent 60%),
    linear-gradient(160deg, #1B2358 0%, #2A3785 55%, #232E73 100%);
  padding: 72px 0 96px;
}
.hero-v2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-v2 .container { position: relative; z-index: 1; }
.hero-v2 h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hero-v2 h1 .hl { color: var(--orange); }
.hero-v2 .hero-lead { font-size: 1.22rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-norms { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero-norms span { font-size: .85rem; font-weight: 700; font-family: var(--font-head); padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.hero-visual { position: relative; margin-top: 3rem; }
@media (min-width: 992px) { .hero-visual { margin-top: 0; } }
.hero-photo { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 4 / 3.3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-dash {
  position: absolute; inset-inline-start: -8%; bottom: -12%; width: 64%; min-width: 280px;
  background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 1rem 1.1rem;
}
.hero-dash .dh { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.hero-dash .dh b { font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
.hero-dash .dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-inline-start: 4px; }
.hero-dash .dots i:first-child { background: var(--rose); } .hero-dash .dots i:nth-child(2) { background: var(--orange); } .hero-dash .dots i:nth-child(3) { background: var(--green); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .7rem; }
.kpis div { background: var(--bg); border-radius: 8px; padding: .45rem .55rem; }
.kpis small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.kpis strong { font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.kpis em { display: block; font-style: normal; font-size: .7rem; color: var(--green); font-weight: 700; }
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.minibars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--indigo-soft); }
.minibars span.on { background: linear-gradient(180deg, var(--indigo-2), var(--indigo)); }
.minibars span.acc { background: linear-gradient(180deg, #FFB547, var(--orange)); }
.hero-dash .legend { display: flex; gap: 1rem; font-size: .72rem; color: var(--muted); margin-top: .45rem; }
.hero-badge {
  position: absolute; inset-inline-end: -4%; top: 8%; background: #fff; color: var(--ink); border-radius: 12px;
  box-shadow: var(--shadow-l); padding: .7rem .9rem; display: flex; gap: .7rem; align-items: center; max-width: 250px;
}
.hero-badge .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 38px; }
.hero-badge b { font-family: var(--font-head); display: block; font-size: .92rem; line-height: 1.2; }
.hero-badge small { color: var(--muted); font-size: .78rem; line-height: 1.25; display: block; }
@media (max-width: 575.98px) { .hero-dash { position: relative; inset: auto; width: 100%; margin-top: -40px; } .hero-badge { display: none; } }

/* Apparition unique du héros */
@media (prefers-reduced-motion: no-preference) {
  .hero-v2 .rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-v2 .rise.d1 { animation-delay: .1s; } .hero-v2 .rise.d2 { animation-delay: .22s; } .hero-v2 .rise.d3 { animation-delay: .34s; } .hero-v2 .rise.d4 { animation-delay: .5s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Bandeau de chiffres ---------- */
.stats-band { margin-top: -48px; position: relative; z-index: 3; }
.stats-grid {
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.stats-grid .st { padding: 1.6rem 1.25rem; border-inline-start: 1px solid var(--line); }
.stats-grid .st:first-child { border-inline-start: 0; }
.st .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); color: var(--indigo); line-height: 1; font-variant-numeric: tabular-nums; }
.st .num sup { font-size: .55em; color: var(--orange); top: -.7em; margin-inline-start: 2px; }
.st p { margin: .45rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.35; }
@media (max-width: 991.98px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stats-grid .st { border-inline-start: 0; border-top: 1px solid var(--line); } .stats-grid .st:nth-child(-n+2) { border-top: 0; } }

/* ---------- Piliers ---------- */
.pillar {
  position: relative; height: 100%; background: #fff; border-radius: var(--radius-l); padding: 2rem 1.8rem 1.8rem;
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
}
.pillar::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--c, var(--indigo)); }
.pillar .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1.2rem; }
.pillar h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .6rem; }
.pillar p { color: var(--muted); }
.pillar ul { list-style: none; padding: 0; margin: .5rem 0 1.4rem; }
.pillar li { padding: .38rem 0; border-top: 1px dashed var(--line); display: flex; gap: .6rem; font-size: .97rem; }
.pillar li i { color: var(--c, var(--indigo)); margin-top: .3rem; font-size: .8rem; }
.pillar .more { margin-top: auto; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--c, var(--indigo)); display: inline-flex; gap: .45rem; align-items: center; }
.pillar .more:hover { gap: .7rem; }

/* ---------- Normes ---------- */
.norm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.norm {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.2rem; height: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.norm:hover { border-color: var(--indigo); box-shadow: var(--shadow); }
.norm .tag { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--indigo); margin-bottom: .2rem; }
.norm .zone { display: block; font-size: .82rem; color: var(--orange-2); font-weight: 700; margin-bottom: .55rem; }
.norm p { font-size: .95rem; color: var(--muted); margin: 0; }
.sec.ink .norm { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.sec.ink .norm .tag { color: #fff; }
.sec.ink .norm p { color: rgba(255,255,255,.7); }
.sec.ink .norm .zone { color: var(--orange); }

/* Schéma "une écriture, plusieurs référentiels" */
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg text { font-family: var(--font-body); }
.flow-card { background: #fff; border-radius: var(--radius-l); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.sec.ink .flow-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none; }

/* ---------- Modules ERP ---------- */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.module {
  display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; text-decoration: none; color: var(--text); height: 100%; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.module:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.module .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-2); }
.module strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; line-height: 1.25; margin-bottom: .2rem; }
.module small { color: var(--muted); font-size: .88rem; line-height: 1.4; display: block; }

/* Maquette écran ERP */
.screen {
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; border: 1px solid var(--line);
}
.screen-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: var(--bg); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--line); }
.screen-bar i:nth-child(1) { background: #FF6159; } .screen-bar i:nth-child(2) { background: #FFBD2E; } .screen-bar i:nth-child(3) { background: #28C941; }
.screen-bar span { margin-inline-start: .6rem; }
.screen-body { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.screen-side { background: var(--ink); color: rgba(255,255,255,.75); padding: .9rem .7rem; font-size: .8rem; }
.screen-side b { display: block; color: #fff; font-family: var(--font-head); margin-bottom: .8rem; font-size: .9rem; }
.screen-side div { padding: .38rem .5rem; border-radius: 6px; display: flex; gap: .5rem; align-items: center; }
.screen-side div.on { background: rgba(255,255,255,.12); color: #fff; }
.screen-side i { width: 14px; color: var(--orange); }
.screen-main { padding: 1rem; }
.screen-main .row-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: .9rem; }
.screen-main .row-k div { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; }
.screen-main .row-k small { display: block; font-size: .7rem; color: var(--muted); }
.screen-main .row-k b { font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.screen-table { width: 100%; font-size: .78rem; border-collapse: collapse; }
.screen-table th { text-align: start; color: var(--muted); font-weight: 600; padding: .35rem .4rem; border-bottom: 1px solid var(--line); }
.screen-table td { padding: .38rem .4rem; border-bottom: 1px solid var(--bg); }
.pill { display: inline-block; white-space: nowrap; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.pill.ok { background: #E1F5EA; color: var(--green); } .pill.wait { background: var(--orange-soft); color: var(--orange-2); } .pill.info { background: var(--sky-soft); color: var(--sky); }
@media (max-width: 575.98px) { .screen-body { grid-template-columns: 1fr; } .screen-side { display: none; } .screen-main .row-k { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Atouts ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .ic { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.feature h4 { font-size: 1.1rem; margin-bottom: .3rem; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.sec.ink .feature p { color: rgba(255,255,255,.7); }

/* ---------- Graphiques ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem; height: 100%; box-shadow: var(--shadow); }
.chart-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .2rem; }
.chart-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.chart-box { position: relative; height: 290px; }
.chart-box.tall { height: 340px; }
.chart-note { font-size: .82rem; color: var(--muted); margin-top: .75rem; }

/* ---------- Étapes / méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: st; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 1.4rem 1.1rem 1.2rem; border: 1px solid var(--line); counter-increment: st; }
.step::before {
  content: counter(st); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: .9rem;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; inset-inline-end: -1rem; width: 1rem; height: 2px; background: var(--orange);
}
.step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }
.step .dur { display: inline-block; margin-top: .7rem; font-size: .8rem; font-weight: 700; color: var(--teal-2); background: var(--teal-soft); border-radius: 999px; padding: .15rem .6rem; }
@media (max-width: 991.98px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Secteurs ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.sector {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.15rem; height: 100%;
}
.sector i { font-size: 1.35rem; color: var(--indigo); margin-bottom: .7rem; display: block; }
.sector h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: .3rem; }
.sector p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Carte Afrique ---------- */
.africa-map { width: 100%; height: auto; max-height: 560px; display: block; }
.africa-map .dn { fill: rgba(255,255,255,.14); }
.africa-map .dp { fill: #7F9BE0; }
.africa-map .do { fill: var(--orange); }
.africa-map .office .core { fill: #fff; stroke: var(--orange); stroke-width: 4; }
.africa-map .office .pulse { fill: rgba(242,145,38,.35); }
@media (prefers-reduced-motion: no-preference) {
  .africa-map .office .pulse { animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
}
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: 1.5rem; }
.country { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; font-weight: 600; font-size: .95rem; }
.country img { width: 24px; border-radius: 3px; }
.country.office { background: rgba(242,145,38,.16); }
.country small { display: block; font-weight: 400; color: rgba(255,255,255,.65); font-size: .78rem; }
.map-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.75); margin-top: 1rem; }
.map-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: .45rem; background: var(--c); }

/* ---------- Citation dirigeant ---------- */
.ceo { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; }
.ceo img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow-l); }
.ceo blockquote { font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + .9vw, 1.65rem); line-height: 1.45; color: var(--ink); font-weight: 600; margin: 0 0 1rem; position: relative; }
.ceo blockquote::before { content: "\201C"; position: absolute; inset-inline-start: -.2em; top: -.55em; font-size: 4.5rem; color: var(--orange); opacity: .5; line-height: 1; }
.ceo cite { font-style: normal; font-weight: 700; color: var(--indigo); }
.ceo cite small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 767.98px) { .ceo { grid-template-columns: 1fr; text-align: center; } .ceo img { margin: 0 auto; width: 170px; height: 170px; } }

/* ---------- Projets et témoignages ---------- */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; display: flex; flex-direction: column;
}
.case .sector-tag { align-self: flex-start; font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); margin-bottom: .8rem; }
.case h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.case p { color: var(--muted); font-size: .95rem; margin: 0; }
.testi { background: var(--indigo); color: #fff; border-radius: var(--radius-l); padding: 1.8rem; height: 100%; }
.testi p { font-size: 1.08rem; line-height: 1.55; }
.testi strong { color: var(--orange); display: block; }
.testi small { color: rgba(255,255,255,.7); }

/* ---------- Actualités ---------- */
.news { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.news .cover { aspect-ratio: 16 / 9; background: var(--indigo-soft); position: relative; overflow: hidden; }
.news .cover img { width: 100%; height: 100%; object-fit: cover; }
.news .body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.news .meta { font-size: .82rem; color: var(--muted); margin-bottom: .45rem; display: flex; gap: .6rem; align-items: center; }
.news .meta .cat { font-weight: 700; color: var(--orange-2); }
.news h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.news p { color: var(--muted); font-size: .95rem; }
.news a.read { margin-top: auto; font-weight: 700; text-decoration: none; }

/* ---------- Bandeau d'appel ---------- */
.cta-v2 {
  border-radius: var(--radius-l); padding: 2.6rem; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(242,145,38,.45), transparent 60%), linear-gradient(135deg, #2A3785, #1B2358);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
.cta-v2 h2 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin-bottom: .5rem; }
.cta-v2 p { color: rgba(255,255,255,.8); margin: 0; font-size: 1.08rem; }
.cta-v2 .acts { display: flex; gap: .7rem; flex-wrap: wrap; }
.cta-v2.orange { background: radial-gradient(500px 260px at 0% 100%, rgba(255,255,255,.25), transparent 60%), linear-gradient(135deg, #F29126, #D9761A); color: #1E1500; }
.cta-v2.orange h2 { color: #1E1500; } .cta-v2.orange p { color: rgba(30,21,0,.78); }
@media (max-width: 767.98px) { .cta-v2 { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }

/* ---------- En-tête des pages internes ---------- */
.page-hero {
  position: relative; color: #fff; padding: 64px 0 72px; overflow: hidden;
  background: linear-gradient(160deg, #1B2358 0%, var(--hero-c, #2A3785) 100%);
}
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center / cover no-repeat; opacity: .22; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(242,145,38,.25), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.page-hero .crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-hero .crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero .crumbs span { margin: 0 .45rem; opacity: .6; }
.page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.08; margin-bottom: .9rem; max-width: 900px; }
.page-hero p.lead-h { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 760px; margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 1.8rem; }
.page-hero .facts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.2rem; }
.page-hero .facts div b { display: block; font-family: var(--font-head); font-size: 1.8rem; color: #fff; line-height: 1; }
.page-hero .facts div small { color: rgba(255,255,255,.72); }

/* ---------- Tableaux ---------- */
.table-v2 { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.table-v2 th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; padding: .85rem 1rem; text-align: start; vertical-align: bottom; }
.table-v2 td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-v2 tr:nth-child(even) td { background: #FBFBFE; }
.table-v2 td:first-child { font-weight: 700; color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.yes { color: var(--green); font-weight: 700; } .part { color: var(--orange-2); font-weight: 700; } .no { color: var(--rose); font-weight: 700; }

/* ---------- Chronologie ---------- */
.timeline { position: relative; padding-inline-start: 2rem; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 1.4rem; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -2rem; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--c, var(--indigo)); }
.tl-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.tl-item .when { font-size: .85rem; font-weight: 700; color: var(--c, var(--indigo)); }
.tl-item p { color: var(--muted); font-size: .95rem; margin: .2rem 0 0; }

/* ---------- Formations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button {
  border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: .45rem 1rem;
  font-weight: 600; font-size: .92rem;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.course {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; height: 100%;
  display: flex; flex-direction: column; border-top: 4px solid var(--c, var(--orange));
}
.course .cat { font-size: .8rem; font-weight: 700; color: var(--c, var(--orange-2)); margin-bottom: .35rem; }
.course h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: .45rem; }
.course p { color: var(--muted); font-size: .93rem; }
.course .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem; }
.course .meta span { font-size: .8rem; background: var(--bg); border-radius: 999px; padding: .2rem .6rem; color: var(--text); }
.course .meta i { color: var(--muted); margin-inline-end: .25rem; }
.course[hidden] { display: none; }
.format { background: #fff; border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--line); height: 100%; }
.format i { font-size: 1.4rem; color: var(--orange); margin-bottom: .7rem; }
.format h4 { font-size: 1.08rem; font-weight: 700; }
.format p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* ---------- Expertises (liste des pôles) ---------- */
.pole { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--line); }
.pole:first-of-type { border-top: 0; }
.pole .img { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.pole .img img { width: 100%; height: 100%; object-fit: cover; }
.pole.rev .img { order: 2; }
.pole h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: .8rem; }
.pole ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pole li a { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pole li a:hover { color: var(--indigo); }
.pole li a i { color: var(--orange); font-size: .8rem; }
html[dir="rtl"] .pole li a i { transform: scaleX(-1); }
@media (max-width: 991.98px) { .pole { grid-template-columns: 1fr; gap: 1.5rem; } .pole.rev .img { order: 0; } }

/* ---------- Pages de détail ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.6rem; position: sticky; top: 100px; box-shadow: var(--shadow); }
.side-card h4 { font-weight: 800; font-size: 1.2rem; }
.side-card p { color: var(--muted); }
.detail-body h2 { font-size: 1.55rem; font-weight: 800; margin: 2rem 0 1rem; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { font-size: 1.05rem; }
.approach { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; counter-reset: ap; }
.approach > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; counter-increment: ap; }
.approach > div::before { content: counter(ap, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--orange); display: block; margin-bottom: .4rem; }
.approach h5 { font-size: 1.02rem; font-weight: 700; }
.approach p { color: var(--muted); font-size: .94rem; margin: 0; }
.benefits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; }
.benefits li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; display: flex; gap: .7rem; }
.benefits li i { color: var(--green); margin-top: .3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a, .chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; text-decoration: none; color: var(--text); font-size: .92rem; }
.chips a:hover { border-color: var(--indigo); color: var(--indigo); }

/* ---------- Offres d'emploi ---------- */
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; }
.job .tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; }
.job .tags span { font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); }
.job .tags span.loc { background: var(--orange-soft); color: var(--orange-2); }
.job h3 { font-size: 1.25rem; font-weight: 800; }
.job p { color: var(--muted); }
.job ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.job li { display: flex; gap: .6rem; padding: .25rem 0; font-size: .95rem; }
.job li i { color: var(--green); margin-top: .35rem; font-size: .8rem; }
.job .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.job .foot small { color: var(--muted); }

/* ---------- Formulaires ---------- */
.form-v2 .form-label { font-weight: 600; color: var(--ink); }
.form-v2 .form-control, .form-v2 .form-select { border-radius: 10px; border-color: var(--line); padding: .7rem .9rem; background: #FBFBFE; }
.form-v2 .form-control:focus, .form-v2 .form-select:focus { border-color: var(--indigo); box-shadow: 0 0 0 .2rem rgba(42, 55, 133, .15); background: #fff; }
.contact-card { background: #fff; border-radius: var(--radius-l); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.office-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.2rem; display: flex; gap: .9rem; margin-bottom: .8rem; }
.office-card img { width: 34px; height: 24px; object-fit: cover; border-radius: 4px; margin-top: .2rem; }
.office-card h5 { font-size: 1.02rem; font-weight: 700; margin-bottom: .2rem; }
.office-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Pied de page ---------- */
.site-footer-v2 { background: var(--ink); color: rgba(255,255,255,.7); padding-top: 72px; margin-top: 0; }
.site-footer-v2 h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer-v2 a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer-v2 a:hover { color: #fff; }
.site-footer-v2 .f-links { list-style: none; padding: 0; margin: 0; }
.site-footer-v2 .f-links li { margin-bottom: .5rem; }
.site-footer-v2 .brand-name { color: #fff; }
.site-footer-v2 .social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.site-footer-v2 .social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.site-footer-v2 .social a:hover { background: var(--orange); color: var(--ink); }
.site-footer-v2 .office-f { display: flex; gap: .7rem; margin-bottom: .9rem; font-size: .93rem; }
.site-footer-v2 .office-f img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; margin-top: .3rem; }
.site-footer-v2 .office-f b { color: #fff; display: block; font-weight: 600; }
.newsletter-v2 { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-l); padding: 1.8rem; margin-top: 3rem; }
.newsletter-v2 h5 { font-size: 1.25rem; }
.newsletter-v2 .form-control, .newsletter-v2 .btn-light { border-radius: 10px; }
.newsletter-v2 .form-check-label { color: rgba(255,255,255,.7); }
.newsletter-v2 .interests { max-height: 0; overflow: hidden; transition: max-height .3s; }
.newsletter-v2 .interests.open { max-height: 800px; }
.newsletter-v2 .toggle-int { background: none; border: 0; color: var(--orange); font-weight: 600; padding: 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.3rem 0; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* ---------- Divers ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
.img-round { border-radius: var(--radius-l); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
.note-indicative { font-size: .82rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .7rem; padding: .45rem 0; }
.check-list li i { color: var(--orange); margin-top: .35rem; }
.sec.ink .check-list li { color: rgba(255,255,255,.85); }

/* =========================================================================
   Habillage des applications (CRM, tickets, portail) — body.app-mode
   ========================================================================= */
body.app-mode { background: #F4F4FA; font-family: var(--font-body); }
body.app-mode .app-navbar { background: linear-gradient(90deg, #1B2358, #2A3785) !important; box-shadow: 0 2px 12px rgba(23,20,63,.2); padding: .45rem 0; }
body.app-mode .app-navbar .navbar-brand { display: flex; align-items: center; gap: .6rem; }
body.app-mode .app-navbar .navbar-brand img { height: 38px; width: 38px; }
body.app-mode .app-navbar .brand-name { color: #fff; font-size: 1.1rem; }
body.app-mode .app-navbar .brand-sub { color: rgba(255,255,255,.65); }
body.app-mode .app-navbar .nav-link { color: rgba(255,255,255,.85) !important; font-weight: 600; border-radius: 8px; padding: .45rem .8rem !important; }
body.app-mode .app-navbar .nav-link:hover { background: rgba(255,255,255,.12); color: #fff !important; }
body.app-mode .app-navbar #verticalMenuToggle { color: #fff; }
body.app-mode .card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(23,20,63,.05); }
body.app-mode .card-header { background: #fff; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; }
body.app-mode .btn-primary { background: var(--indigo); border-color: var(--indigo); }
body.app-mode .btn-primary:hover { background: var(--indigo-2); border-color: var(--indigo-2); }
body.app-mode .btn-warning { background: var(--orange); border-color: var(--orange); color: #1E1500; }
body.app-mode .table thead th { background: var(--ink); color: #fff; border: 0; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
body.app-mode .table { --bs-table-hover-bg: var(--indigo-soft); }
body.app-mode h1, body.app-mode h2, body.app-mode h3, body.app-mode h4, body.app-mode h5 { font-family: var(--font-head); color: var(--ink); }
body.app-mode .badge.bg-primary { background: var(--indigo) !important; }
body.app-mode .site-footer-v2 { padding-top: 0; }
body.app-mode .app-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 1.1rem 0; font-size: .88rem; margin-top: 3rem; }
body.app-mode .app-footer a { color: rgba(255,255,255,.85); text-decoration: none; }

/* Bootstrap global (toutes pages) */
.btn-primary { --bs-btn-bg: #2A3785; --bs-btn-border-color: #2A3785; --bs-btn-hover-bg: #2E4D9D; --bs-btn-hover-border-color: #2E4D9D; --bs-btn-active-bg: #212B6B; --bs-btn-active-border-color: #212B6B; --bs-btn-disabled-bg: #2A3785; --bs-btn-disabled-border-color: #2A3785; }
.btn-outline-primary { --bs-btn-color: #2A3785; --bs-btn-border-color: #2A3785; --bs-btn-hover-bg: #2A3785; --bs-btn-hover-border-color: #2A3785; --bs-btn-active-bg: #2A3785; }
.bg-primary { background-color: #2A3785 !important; }
.text-primary { color: #2A3785 !important; }
.nav-tabs .nav-link.active { color: var(--indigo); border-top: 3px solid var(--orange); }
.modal-content { border: 0; border-radius: var(--radius-l); }
.modal-header { border-bottom-color: var(--line); }
.modal-title { font-family: var(--font-head); font-weight: 800; color: var(--ink); }

@media print { .topbar, .mainnav, .site-footer-v2 { display: none !important; } }

/* ---------- Architecture ERP ---------- */
.archi { display: grid; grid-template-columns: 1fr auto 1.5fr auto 1fr; gap: 1rem; align-items: center; }
.archi-col h5 { color: var(--orange); font-size: .92rem; font-weight: 700; margin-bottom: .7rem; }
.archi-box { display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .6rem; color: #fff; font-weight: 600; font-size: .95rem; }
.archi-box i { color: #7F9BE0; width: 18px; text-align: center; }
.archi-box.out i { color: #4FD1C1; }
.archi-arrow { color: var(--orange); font-size: 1.8rem; }
html[dir="rtl"] .archi-arrow i { transform: scaleX(-1); }
.archi-core { background: #fff; color: var(--text); border-radius: var(--radius-l); padding: 1.6rem; text-align: center; box-shadow: 0 0 0 8px rgba(242,145,38,.18); }
.archi-core h4 { font-weight: 800; margin: .6rem 0 .3rem; }
.archi-core p { color: var(--muted); font-size: .95rem; }
.archi-mods { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .8rem 0; }
.archi-mods span { font-size: .8rem; font-weight: 600; background: var(--teal-soft); color: var(--teal-2); border-radius: 999px; padding: .25rem .65rem; }
.archi-layer { font-size: .85rem; font-weight: 700; color: var(--indigo); background: var(--indigo-soft); border-radius: 10px; padding: .5rem; }
.archi-layer i { margin-inline-end: .4rem; }
@media (max-width: 991.98px) { .archi { grid-template-columns: 1fr; } .archi-arrow { transform: rotate(90deg); justify-self: center; } }

/* Fenêtre de connexion aux couleurs de la charte */
#loginModal .modal-title { color: var(--ink) !important; border-bottom-color: var(--orange) !important; font-family: var(--font-head); }
#loginModal .btn-primary { background-color: var(--indigo) !important; border-color: var(--indigo) !important; border-radius: 999px !important; }
#loginModal .btn-primary:hover { background-color: var(--indigo-2) !important; }
#loginModal a { color: var(--orange-2) !important; }

/* Titres des applications modernisés */
body.app-mode h1 { text-transform: none; letter-spacing: -0.01em; text-shadow: none; }
.sec.ink .archi-core h4 { color: var(--ink); }
.feature.flex-column .ic { width: 48px; }
.flow-svg { direction: ltr; }

/* =========================================================================
   Mise à jour — logo officiel, pleine largeur, héros défilant
   ========================================================================= */
:root { --blue: #2E4D9D; --logo-gray: #323639; --gutter: clamp(20px, 4vw, 72px); }

/* Pleine largeur sur toutes les pages publiques */
body.public-mode .container { max-width: none; padding-inline: var(--gutter); }
body.public-mode .sec-head { max-width: 860px; }

/* Logo */
.bms-logo { display: inline-flex; align-items: center; gap: .75rem; line-height: 1; }
.bms-logo img { height: 50px; width: auto; flex: 0 0 auto; }
.bms-logo .bl-text { display: inline-grid; }
.bms-logo .bl-name { font-family: "Archivo", "Arial Black", Arial, sans-serif; font-weight: 900; font-size: 1.62rem; letter-spacing: -.015em; color: var(--blue); white-space: nowrap; }
.bms-logo .bl-tag {
  display: flex; align-items: center; gap: .45rem; margin-top: .3rem;
  font-family: Georgia, "Times New Roman", serif; font-size: .78rem; color: var(--logo-gray); white-space: nowrap; letter-spacing: .01em;
}
.bms-logo .bl-tag::before, .bms-logo .bl-tag::after { content: ""; flex: 1 1 10px; min-width: 8px; height: 2px; background: var(--orange); }
.bms-logo.light .bl-name { color: #fff; }
.bms-logo.light .bl-tag { color: rgba(255,255,255,.78); }
.bms-logo.light img { background: #fff; border-radius: 10px; padding: 4px; height: 50px; }
.bms-logo.sm img { height: 40px; }
.bms-logo.sm .bl-name { font-size: 1.28rem; }
.bms-logo.sm .bl-tag { font-size: .66rem; }
@media (max-width: 400px) { .bms-logo .bl-name { font-size: 1.3rem; } .bms-logo .bl-tag { font-size: .66rem; } .bms-logo img { height: 42px; } }
.app-badge { font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: #1E1500; background: var(--orange); border-radius: 999px; padding: .15rem .6rem; margin-inline-start: .6rem; }
body.app-mode .app-navbar .navbar-brand { gap: 0; }

/* Menu latéral */
.vertical-menu { width: 340px; inset-inline-start: -360px; display: flex; flex-direction: column; }
.vertical-menu-header { padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-intro { color: rgba(255,255,255,.7); font-size: .92rem; margin: 1rem 0 1.2rem; }
.side-office { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem .5rem; border-radius: 8px; color: rgba(255,255,255,.85) !important; text-decoration: none; font-size: .9rem; }
.side-office:hover { background: rgba(255,255,255,.08); }
.side-office img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; margin-top: .2rem; }
.side-office i { width: 22px; color: var(--orange); margin-top: .2rem; text-align: center; }
.side-office b { display: block; color: #fff; font-weight: 600; }
.side-social { display: flex; gap: .5rem; }
.side-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.side-social a:hover { background: var(--orange); color: var(--ink); }
.side-legal { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: auto; padding-top: 1rem; }
.vertical-menu .menu-item i { width: 20px; text-align: center; color: var(--orange); }

/* Héros défilant plein écran */
.hero-rotator { position: relative; height: calc(100vh - 118px); min-height: 560px; max-height: 1000px; background: var(--ink); overflow: hidden; }
.hero-rotator .swiper-slide { position: relative; overflow: hidden; }
.hero-rotator .hs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
@media (prefers-reduced-motion: no-preference) {
  .hero-rotator .swiper-slide-active .hs-bg { animation: kenburns 9s ease-out forwards; }
  @keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
  .hero-rotator .swiper-slide-active .hs-anim { animation: hsIn .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-rotator .swiper-slide-active .hs-anim.d2 { animation-delay: .15s; }
  .hero-rotator .swiper-slide-active .hs-anim.d3 { animation-delay: .3s; }
  @keyframes hsIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
.hero-rotator .hs-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,27,61,.94) 0%, rgba(22,27,61,.82) 38%, rgba(22,27,61,.25) 75%, rgba(22,27,61,.15) 100%), linear-gradient(0deg, rgba(22,27,61,.75) 0%, transparent 35%); }
html[dir="rtl"] .hero-rotator .hs-shade { background: linear-gradient(270deg, rgba(22,27,61,.94) 0%, rgba(22,27,61,.82) 38%, rgba(22,27,61,.25) 75%, rgba(22,27,61,.15) 100%), linear-gradient(0deg, rgba(22,27,61,.75) 0%, transparent 35%); }
.hero-rotator .hs-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 110px; }
.hero-rotator .hs-inner { max-width: 760px; }
.hero-rotator .hs-kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.hero-rotator .hs-kicker::before { content: ""; width: 34px; height: 3px; background: var(--orange); border-radius: 2px; }
.hero-rotator h1, .hero-rotator h2.hs-title { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.hero-rotator .hs-lead { color: rgba(255,255,255,.85); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); max-width: 640px; margin-bottom: 2rem; }
.hero-rotator .hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hs-tabs { position: absolute; z-index: 5; inset-inline: 0; bottom: 0; }
.hs-tabs .container { display: grid; grid-template-columns: repeat(5, 1fr) auto; border-top: 1px solid rgba(255,255,255,.18); }
.hs-tab { background: none; border: 0; color: rgba(255,255,255,.6); text-align: start; padding: 1.1rem .9rem 1.3rem 0; font-family: var(--font-head); font-weight: 600; font-size: .95rem; position: relative; cursor: pointer; }
.hs-tab small { display: block; font-family: var(--font-body); font-weight: 700; color: rgba(255,255,255,.45); font-size: .78rem; margin-bottom: .2rem; }
.hs-tab .bar { position: absolute; top: -1px; inset-inline-start: 0; height: 3px; width: 0; background: var(--orange); }
.hs-tab.on { color: #fff; }
.hs-tab.on small { color: var(--orange); }
.hs-tab:hover { color: #fff; }
.hs-ctrl { display: flex; align-items: center; gap: .4rem; padding-inline-start: 1rem; }
.hs-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.hs-ctrl button:hover { background: #fff; color: var(--ink); }
html[dir="rtl"] .hs-ctrl .fa-chevron-left, html[dir="rtl"] .hs-ctrl .fa-chevron-right { transform: scaleX(-1); }
@media (max-width: 991.98px) {
  .hs-tabs .container { grid-template-columns: repeat(5, 1fr) auto; }
  .hs-tab span.lbl { display: none; }
  .hs-tab { padding: 1rem .4rem 1.1rem 0; }
  .hero-rotator { height: auto; min-height: calc(100svh - 110px); }
}
@media (max-width: 575.98px) { .hero-rotator .hs-content { padding-bottom: 96px; padding-top: 48px; } .hero-rotator .hero-actions .btn-v2 { width: 100%; justify-content: center; } }

/* Bandeau des engagements (sans chiffres) */
.promise-band { background: #fff; border-bottom: 1px solid var(--line); }
.promise-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise { display: flex; gap: .9rem; align-items: center; padding: 1.4rem 1.2rem; border-inline-start: 1px solid var(--line); }
.promise:first-child { border-inline-start: 0; padding-inline-start: 0; }
.promise i { font-size: 1.3rem; color: var(--orange-2); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); flex: 0 0 44px; }
.promise b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; line-height: 1.25; }
.promise span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
@media (max-width: 991.98px) { .promise-band .container { grid-template-columns: 1fr 1fr; } .promise { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; } .promise:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 575.98px) { .promise-band .container { grid-template-columns: 1fr; } .promise:nth-child(2) { border-top: 1px solid var(--line); } }
@media (max-width: 767.98px) {
  .hero-rotator .hs-shade, html[dir="rtl"] .hero-rotator .hs-shade { background: linear-gradient(180deg, rgba(22,27,61,.72) 0%, rgba(22,27,61,.86) 60%, rgba(22,27,61,.95) 100%); }
}
@media (max-width: 1199.98px) { .mainnav .menu-burger { display: none; } }
.open-side { background: none; border: 0; }
