/**
 * SAI ERP · Vue d'ensemble (page-templates/vue-ensemble.php)
 * Chargé uniquement sur ce template. Tout est scopé sous .ve.
 * --V : couleur du produit choisi · --VT : teinte claire de la bande.
 */

body.page-template-page-templates-vue-ensemble-php { background-color: #fff; }

.ve {
  --ink: #111111; --nav: #444444; --muted: #6b7280;
  --soon: #F07830;
  --ui: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
.ve-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 520px) { .ve-wrap { padding-inline: 16px; } }
.ve :focus-visible { outline: 2px solid var(--V); outline-offset: 3px; border-radius: 6px; }
.ve-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Hero */
.ve-hero { padding-block: 76px 30px; text-align: center; }
.ve-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #F07830; margin-bottom: 18px; }
.ve-hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 900; letter-spacing: -.045em; line-height: 1.03; margin: 0 auto; max-width: 14ch; text-wrap: balance; color: var(--ink); }
.ve-mark { position: relative; display: inline-block; white-space: nowrap; }
.ve-mark svg { position: absolute; left: -4%; bottom: -.14em; width: 108%; height: .34em; overflow: visible; }
.ve-mark path { fill: none; stroke: var(--V); stroke-width: 7; stroke-linecap: round; transition: stroke .5s; stroke-dasharray: 420; animation: ve-draw 1.1s .3s cubic-bezier(.6,0,.2,1) both; }
@keyframes ve-draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.ve-lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 44ch; margin: 24px auto 0; text-wrap: balance; }
.ve-lede p { font-size: inherit; line-height: 1.6; }
.ve-lede strong, .ve-lede b { color: var(--ink); font-weight: 700; }

/* Bande des pastilles */
.ve-catalog { margin-top: 18px; padding-block: 40px 70px; background: linear-gradient(180deg, #fff 0, var(--VT) 110px, var(--VT) calc(100% - 110px), #fff 100%); transition: background .6s; }
.ve-search { position: relative; max-width: 440px; margin: 0 auto 18px; }
.ve-search[hidden] { display: none; }
.ve-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.ve-search input { width: 100%; font: 500 16px/1.2 var(--ui); color: var(--ink); background: #fff; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; padding: 13px 18px 13px 44px; box-shadow: 0 6px 20px -14px rgba(0,0,0,.35); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.ve-search input::placeholder { color: #9ca3af; }
.ve-search input:focus { outline: none; border-color: var(--V); box-shadow: 0 0 0 3px rgba(240,120,48,.18); }
.ve-search input::-webkit-search-cancel-button { cursor: pointer; }
.ve-picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ve-picker[hidden] { display: none; }
.ve-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--ui); color: var(--nav); background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.ve-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ve-chip:hover { color: var(--ink); border-color: rgba(0,0,0,.3); }
.ve-chip[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.ve-caption { text-align: center; margin: 28px auto 34px; max-width: 62ch; min-height: 3.4em; }
.ve-caption h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -1px; line-height: 1.2; margin: 0; text-wrap: balance; color: var(--ink); }
.ve-caption p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 26px 12px; }
@media (max-width: 400px) { .ve-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 22px 8px; } }
/* Recherche : les colonnes vides se replient, les résultats restent centrés. */
.ve-grid.is-search { grid-template-columns: repeat(auto-fit, minmax(118px, 130px)); justify-content: center; }
@media (max-width: 400px) { .ve-grid.is-search { grid-template-columns: repeat(auto-fit, minmax(100px, 109px)); } }
.ve-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 4px; border-radius: 12px; min-width: 0; transition: opacity .35s, filter .35s, background .2s; }
.ve-tile:hover { background: rgba(255,255,255,.7); }
.ve-tile[hidden] { display: none; }
.ve-ic { position: relative; width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, var(--t2), var(--t1)); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 18px -10px rgba(0,0,0,.45); transition: transform .2s; }
.ve-tile:hover .ve-ic { transform: translateY(-3px); }
.ve-ic svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ve-plus { position: absolute; right: -6px; top: -6px; font: 800 11px/1 var(--ui); font-style: normal; background: #fff; color: var(--ink); width: 20px; height: 20px; display: none; place-items: center; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ve-tile.is-add .ve-plus { display: grid; }
.ve-due { position: absolute; right: -3px; top: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--soon); box-shadow: 0 0 0 3px #fff; }
.ve-tile.is-add .ve-due { display: none; }
.ve-label { font-size: 13px; font-weight: 600; line-height: 1.3; color: #262626; max-width: 15ch; overflow-wrap: anywhere; }
.ve-tile.is-add { opacity: .45; }
.ve-tile.is-add:hover, .ve-tile.is-add:focus-visible { opacity: .8; }
.ve-legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 40px; font-size: 13px; color: var(--muted); text-align: center; }
.ve-legend[hidden] { display: none; }
.ve-legend p { font-size: 13px; line-height: 1.6; margin: 0; }
.ve-legend strong, .ve-legend b { color: var(--ink); font-weight: 700; }
.ve-d { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--soon); margin-right: 6px; vertical-align: -1px; }

/* Ce qui différencie sai */
.ve-diff { padding-block: 40px 80px; text-align: center; }
.ve-diff p { max-width: 58ch; margin: 0 auto; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.6; color: #374151; text-wrap: balance; }
.ve-diff strong, .ve-diff b { color: var(--ink); font-weight: 800; }


@media (prefers-reduced-motion: reduce) {
  .ve *, .ve *::before, .ve *::after { transition: none !important; animation: none !important; }
}
