/* ============================================================
   DA Sinergy, reprise stricte de www.sinergy.ch (theme bmg-starter, theme.css v3.2.69)
   Valeurs relevées le 3 octobre 2026. Référence complète : da.html
   Ce fichier se charge APRÈS la feuille propre à chaque page : il
   redéfinit les jetons (--bg, --ink, --accent, ...) et aligne les composants.
   ============================================================ */
@import url("sinergy-fonts.css");

:root{
  /* Couleurs du site, telles quelles */
  --sg-corail:#FF8078;        /* primaire : logo, titres h1/h2/h3, boutons, pictos filaires */
  --sg-corail-clair:#FFACA8;  /* nuance présente dans theme.css */
  --sg-corail-2:#FF9A95;      /* nuance présente dans theme.css */
  --sg-vert:#148D6B;          /* secondaire : liens, navigation, pied de page, boutons "En savoir plus" */
  --sg-vert-fonce:#0E6049;    /* survol des liens (rgb(14,96,73) dans theme.css) */
  --sg-creme:#F3F3E6;         /* fond de page (body, #page) */
  --sg-sable:#D6D6C4;         /* bordure des boutons au survol */
  --sg-sable-clair:#DDDDD3;   /* formes grises derrière les pictos */
  --sg-gris:#4D4D4D;          /* texte courant, panneaux sombres, en-tête collant */
  --sg-gris-2:#616161;
  --sg-gris-moyen:#787878;    /* texte secondaire */
  --sg-gris-clair:#A6A6A6;
  --sg-noir:#333333;
  --sg-blanc:#FFFFFF;
  --sg-erreur:#C8430B;        /* .error dans theme.css */
  /* Teintes dérivées (mélange avec la crème), absentes du site mais nécessaires aux fonds doux */
  --sg-corail-pale:#FFE1DD;
  --sg-vert-pale:#D4E8DF;
  --sg-creme-fonce:#E9E9DC;
  /* Typographie */
  --sg-font:"Sharp Grotesk","Archivo","Atkinson Hyperlegible",Arial,sans-serif;
  --sg-radius-pill:1.4153846154rem; /* .button-link */
  --sg-radius:4px;                   /* .2461538462rem, seul arrondi non nul des blocs */
}

/* ---------- Jetons des pages du projet (point, business, vpc, index, da) ---------- */
:root,
:root[data-theme="dark"],
:root:not([data-theme="light"]){
  color-scheme:light; /* le site Sinergy n'a pas de mode sombre */
  --bg:var(--sg-creme);
  --surface:var(--sg-blanc);
  --sunk:var(--sg-creme-fonce);
  --ink:var(--sg-gris);
  --muted:var(--sg-gris-moyen);
  --line:var(--sg-sable);
  --accent:var(--sg-vert);
  --on-accent:var(--sg-blanc);
  --accent-soft:var(--sg-vert-pale);
  --good:var(--sg-vert);
  --good-soft:var(--sg-vert-pale);
  --n:var(--sg-corail);
  --n-soft:var(--sg-corail-pale);
  --warm:var(--sg-corail);
  --warm-soft:var(--sg-corail-pale);
  --mark:var(--sg-corail);
  --mark-soft:var(--sg-corail-pale);
  --warn:var(--sg-corail);
  --bad:var(--sg-erreur);
  --bad-soft:var(--sg-corail-pale);
  /* séries de graphiques */
  --c1:#148D6B;--c2:#4DA98F;--c3:#8CC7B4;--c4:#C6E2D8;--c5:#0B5C45;
  --v1:#FF8078;--v2:#FF9A95;--v3:#FFACA8;--v4:#FFD3D0;--v5:#C8430B;
  --d1:#C8430B;--d2:#FF8078;--d3:#A6A6A6;--d4:#8CC7B4;--d5:#148D6B;
  --display:var(--sg-font);
  --body:var(--sg-font);
  --r:var(--sg-radius);
}

/* ---------- Base ---------- */
html{-webkit-font-smoothing:antialiased}
body{background:var(--sg-creme);color:var(--sg-gris);font-family:var(--sg-font);font-weight:400}
a{color:var(--sg-vert);text-decoration:none;transition:.1s}
a:hover,a:focus{color:var(--sg-vert-fonce)}
:focus-visible{outline:2px solid var(--sg-corail);outline-offset:2px}
b,strong{font-weight:700}

/* Titres : Sharp Grotesk Bold 25, corail, capitales sur les grands titres (h1 du site : 56 px, 4rem ; interlignage 1.05) */
h1,h2,h3,h4,.sec-t,.side-h h2,.box h3,.kpi .v,.fact b,.el,.tab,details.grp summary{font-family:var(--sg-font);font-stretch:100%}
h1{color:var(--sg-corail);font-weight:700;text-transform:uppercase;line-height:1.05;letter-spacing:0}
h2,.sec-t,.side-h h2{color:var(--sg-corail);font-weight:700;text-transform:uppercase;line-height:1.05;letter-spacing:0}
h3,.box h3{color:var(--sg-vert);font-weight:700;letter-spacing:0}
h2 .n,.sec-n{color:var(--sg-vert)}
.eyebrow{color:var(--sg-vert);font-weight:500;letter-spacing:.04em}
.lead,.intro,.sub{color:var(--sg-gris-moyen);font-weight:300}

/* Boutons : pilule, capitales, Medium 25, blanc sur corail ou vert ; survol crème + bordure sable (.button-link) */
.btn,.lang button,.chip,button.reset,.status,.toc a,.slider-link,.sg-btn{
  font-family:var(--sg-font);font-weight:500;border-radius:999px;letter-spacing:0}
.btn,.sg-btn{
  text-transform:uppercase;font-size:.92em;padding:.55em 1.5em;border:.1846rem solid transparent;
  background:var(--sg-corail);color:var(--sg-blanc);transition:.25s;cursor:pointer}
.btn:hover,.sg-btn:hover{background:var(--sg-creme);color:var(--sg-corail);border-color:var(--sg-sable)}
.btn-soft,.sg-btn.vert{background:var(--sg-vert);color:var(--sg-blanc)}
.btn-soft:hover,.sg-btn.vert:hover{background:var(--sg-creme);color:var(--sg-vert);border-color:var(--sg-vert)}
.sg-btn.blanc{background:var(--sg-blanc);color:var(--sg-corail)}
.sg-btn.blanc:hover{background:var(--sg-corail);color:var(--sg-blanc)}
.lang button[aria-pressed="true"]{background:var(--sg-gris);color:var(--sg-creme)}
.chip[aria-pressed="true"]{background:var(--sg-vert);border-color:var(--sg-vert);color:var(--sg-blanc)}
.preset[aria-pressed="true"],.seg[aria-pressed="true"]{border-color:var(--sg-vert);background:var(--sg-vert-pale)}
.tab{font-weight:500;text-transform:uppercase;letter-spacing:.02em;font-size:13px;min-width:0;padding-inline:2px}
.tab[aria-selected="true"]{color:var(--sg-corail);border-bottom-color:var(--sg-corail)}

/* Blocs : angles vifs ou 4 px (le site n'arrondit que les boutons et les cercles) */
.box,.kpi,.key,.warn,.panel,.preset,.seg,details.grp,.facts,.cell,.side,.side.map,.side.profile,.info,.notice,.editing,
.param input[type=number],.param select,.tor .t,.stack .bar{border-radius:var(--sg-radius)}
@media (min-width:861px){.side.profile{border-radius:var(--sg-radius)}}
.box,.kpi,.panel,details.grp,.facts,.fact{border-color:var(--sg-sable)}
.key{background:var(--sg-vert-pale)}
.warn{background:var(--sg-corail-pale)}
table{border-color:var(--sg-sable)}
th{color:var(--sg-gris-moyen);font-weight:500;letter-spacing:.06em}
th,td{border-bottom-color:var(--sg-sable)}
.kpi .l{color:var(--sg-gris-moyen);font-weight:500}
.kpi .v,.fact b{font-weight:700;color:var(--sg-gris)}
.tag,.pill,.badge{font-weight:500}
.t-ok,.p-ok{background:var(--sg-vert-pale);color:var(--sg-vert)}
.t-est{background:var(--sg-creme-fonce);color:var(--sg-gris-2)}
.t-q,.p-q{background:var(--sg-corail-pale);color:var(--sg-erreur)}
.opt.reco{border-left-color:var(--sg-vert)}
.pos{color:var(--sg-vert)}.neg{color:var(--sg-erreur)}
.req{color:var(--sg-corail)}
.err{color:var(--sg-erreur)}
.src{color:var(--sg-gris-moyen)}
.src a{color:var(--sg-vert)}

/* En-tête du formulaire d'enquête : Sharp Grotesk est large, on laisse passer à la ligne */
.brand{flex-wrap:wrap}
.brand h1{font-size:23px}
.brand .side{margin-left:auto;max-width:100%}
.status{white-space:normal;text-align:left}

/* Filet vert du pied de page du site (1 px #148D6B au-dessus des colonnes) */
.sg-footer{margin-top:48px;border-top:1px solid var(--sg-vert);padding:18px 0 0;color:var(--sg-vert);font-weight:500;font-size:.8rem;line-height:1.15}
.sg-footer a{color:var(--sg-vert)}

/* En-tête de projet : mention du challenge, pas de logo Sinergy en émetteur (voir da.html) */
.sg-mention{display:inline-flex;align-items:center;gap:10px;color:var(--sg-vert);font-weight:500;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.sg-mention::before{content:"";width:28px;height:28px;background:url("img/sinergy-blob.svg") no-repeat center/contain}

/* Formes organiques et pictos filaires du site, réutilisables en décor */
.sg-blob{fill:var(--sg-corail)}
.sg-blob.creme{fill:var(--sg-creme-fonce)}
.sg-ico{stroke:var(--sg-corail);fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sg-ico.vert{stroke:var(--sg-vert)}
.sg-circle-img{border-radius:100%;object-fit:cover;aspect-ratio:1}

/* ============================================================
   Habillage commun des vues (ajouté lors de la refonte native) :
   en-tête collant, héros avec tache corail, pied de page au filet vert.
   ============================================================ */
body{overflow-x:hidden}
.sg-head{position:sticky;top:0;z-index:30;background:var(--sg-creme);transition:background .25s}
.sg-head .in{max-width:1180px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:14px 24px;flex-wrap:wrap}
.sg-brand{display:flex;align-items:center;gap:10px;color:var(--sg-corail);font-weight:700;text-transform:uppercase;font-size:17px;line-height:1;text-decoration:none}
.sg-brand:hover{color:var(--sg-corail)}
.sg-brand svg{width:34px;height:34px;flex:none}
.sg-brand small{display:block;color:var(--sg-vert);font-weight:500;font-size:11px;letter-spacing:.04em;margin-top:4px}
.sg-nav{margin-left:auto;display:flex;gap:4px 22px;flex-wrap:wrap;font-size:15px}
.sg-nav a{color:var(--sg-vert);padding:6px 0;white-space:nowrap;font-weight:400}
.sg-nav a[aria-current="page"]{color:var(--sg-corail);font-weight:500}
.sg-head.stuck{background:var(--sg-gris)}
.sg-head.stuck .sg-nav a,.sg-head.stuck .sg-brand small{color:var(--sg-creme)}
.sg-head.stuck .sg-nav a[aria-current="page"]{color:var(--sg-corail-clair)}
.sg-burger{display:none;margin-left:auto;width:44px;height:44px;border:0;background:transparent;cursor:pointer;padding:10px;flex-direction:column;justify-content:center;gap:5px;border-radius:999px}
.sg-burger span{display:block;height:2px;background:var(--sg-vert);border-radius:2px;transition:transform .2s,opacity .2s}
.sg-head.stuck .sg-burger span{background:var(--sg-creme)}
.sg-head.open .sg-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.sg-head.open .sg-burger span:nth-child(2){opacity:0}
.sg-head.open .sg-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (max-width:860px){
  .sg-head .in{padding:10px 16px;gap:10px}
  .sg-burger{display:flex}
  .sg-nav{display:none;width:100%;flex-direction:column;gap:0;margin:6px 0 4px;border-top:1px solid var(--sg-sable);padding-top:6px;font-size:17px}
  .sg-head.open .sg-nav{display:flex}
  .sg-nav a{padding:11px 4px;border-bottom:1px solid var(--sg-creme-fonce)}
  .sg-nav a:last-child{border-bottom:0}
  .sg-head.stuck .sg-nav{border-top-color:rgba(243,243,230,.3)}
  .sg-head.stuck .sg-nav a{border-bottom-color:rgba(243,243,230,.15)}
  .sg-head.open{background:var(--sg-creme)}
  .sg-head.open.stuck{background:var(--sg-gris)}
}

/* héros : les taches du site derrière le titre, sur un élément dédié placé sous l'en-tête */
.sg-deco{position:absolute;left:0;right:0;top:0;height:720px;z-index:0;pointer-events:none;overflow:hidden}
.sg-deco::before{content:"";position:absolute;right:-150px;top:30px;width:340px;height:340px;background:url("img/sinergy-blob.svg") no-repeat center/contain}
.sg-deco::after{content:"";position:absolute;left:-150px;top:230px;width:260px;height:260px;background:url("img/sinergy-blob-creme.svg") no-repeat center/contain}
@media (max-width:760px){.sg-deco::before{width:200px;height:200px;right:-100px;top:40px}.sg-deco::after{display:none}}
body{position:relative;z-index:0}
.wrap,main,header.top{position:relative;z-index:1}
/* Enquête : la barre d'enregistrement reste fixe et les onglets collants (correctif du 4.10, audit) */
.tabs{position:sticky;top:var(--sg-head-h,58px);z-index:5}
.savebar{position:fixed;z-index:6}
h1{font-size:clamp(34px,5.5vw,60px);margin:8px 0 14px;max-width:17ch}
.brand h1{font-size:23px;margin:0;max-width:none}
.top{align-items:flex-start}

/* pied de page */
.sg-foot{margin-top:56px;border-top:1px solid var(--sg-vert);background:var(--sg-creme)}
.sg-foot .in{max-width:1180px;margin:0 auto;padding:22px 16px 34px;display:grid;gap:18px 28px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));color:var(--sg-vert);font-weight:500;font-size:13px;line-height:1.2}
.sg-foot b{display:block;font-weight:700;margin-bottom:6px;color:var(--sg-vert)}
.sg-foot a{color:var(--sg-vert)}
.sg-foot .sg-by{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.sg-foot .sg-by img{width:120px;height:auto}

/* ============================================================
   Lisibilité, alignée sur la pratique réelle du site (relevé du 3 octobre 2026, 20h30) :
   un seul corps de lecture (17 px Book 20, interlignage 1,5, gris #4D4D4D), la Bold 25
   réservée aux titres de 19 px et plus, l'emphase dans le texte en Medium 20 (même chasse
   que la Book 20), rien sous 14 px, le texte secondaire en #616161 plutôt que #787878,
   aucun pavé de texte clair sur fond sombre.
   ============================================================ */
:root{--sg-muted:#616161}
body{font-size:17px;line-height:1.5}
p,li{line-height:1.5}
b,strong,.lbl,.kpi .l,th,.fact span b,.param label,.stack .lab,.stack .tot,.tag,.pill,.badge,.chip,.status,.eyebrow,.sec-n,h2 .n,.preset,.seg,.toc a,.lang button,.tab,.btn,.sg-btn,.sg-mention,.sg-nav a[aria-current="page"],.sg-foot,.sg-brand small{
  font-family:"Sharp Grotesk Medium 20","Sharp Grotesk",Arial,sans-serif;font-weight:500}
.preset b,.seg b,.kpi .v,.fact b,h1,h2,h3,.sec-t,.side-h h2,.box h3,.sg-brand,.card h4,.hero .t{font-family:var(--sg-font);font-weight:700}
.lead,.intro,.sub{font-weight:400;color:var(--sg-muted);font-size:18px;line-height:1.45}
.sub{font-size:15px}
.muted,.src,.kpi .s,.fact span,.param .h,.param .u,.hint,.legend,.tor,.tor .nm small,.preset small,.seg small,.cell h3,.side-h span,.post-resume,.sg-foot .in,#count,.n{font-size:14px}
.src,.kpi .s,.fact span,.param .h,.param .u,.hint,.legend,.preset small,.seg small,.side-h span,.muted,.kpi .l,th,.cell h3{color:var(--sg-muted)}
.kpi .l,th,.eyebrow,.cell h3{font-size:13px;letter-spacing:.06em}
.tag,.pill,.badge{font-size:12.5px}
table,td{font-size:15px}
h2,.sec-t,.side-h h2{font-size:clamp(26px,2.6vw,32px);line-height:1.1;margin-top:44px}
h3,.box h3,details.grp summary{font-size:19px;line-height:1.25}
.cell li,.box li,.box ul{font-size:15.5px}
.kpi .v{font-size:30px}
.key,.warn,.notice,.editing,.info{font-size:16.5px;line-height:1.5}
.lang button,.toc a,.chip{font-size:14px}
.tab{font-size:14px}
.chip{font-size:16px}
.lbl{font-size:17px}
@media (max-width:760px){body{font-size:16.5px}h2,.sec-t,.side-h h2{font-size:24px}}
.hint,.preset small,.seg small,.kpi .s,.fact span,.lbl .hint{font-family:var(--sg-font);font-weight:400}

/* ============================================================
   Navigation fluide entre les livrables (version PHP, un seul layout) :
   fondu entre les pages par View Transitions, en-tête et pied de page persistants.
   ============================================================ */
@view-transition{navigation:auto}
.sg-head{view-transition-name:sg-head}
.sg-foot{view-transition-name:sg-foot}
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}


/* ============================================================
   Cohérence entre les pages : une seule largeur de contenu (--sg-container, 1100 px pour
   l'information), et une barre de page commune sous le menu qui porte le sélecteur FR / EN
   et les outils propres à la page, toujours au même endroit.
   ============================================================ */
.wrap,.sg-pagebar .in,.sg-head .in,.sg-foot .in{max-width:var(--sg-container,1100px)}
.sg-head .in,.sg-foot .in{max-width:max(var(--sg-container,1100px),1180px)}
.sg-pagebar{position:relative;z-index:2}
.sg-pagebar .in{margin:0 auto;padding:14px 16px 0;display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap}
.sg-pagebar .sg-tools{display:flex;gap:8px;flex-wrap:wrap;margin-right:auto}
.sg-pagebar .lang{position:static;display:inline-flex;border:1.5px solid var(--sg-sable);border-radius:999px;overflow:hidden;background:var(--sg-blanc);padding:0;margin:0}
.sg-pagebar .lang button{appearance:none;border:0;background:transparent;padding:7px 15px;font:inherit;font-size:14px;cursor:pointer;color:var(--sg-gris-moyen);font-family:"Sharp Grotesk Medium 20","Sharp Grotesk",sans-serif;font-weight:500;letter-spacing:.02em}
.sg-pagebar .lang button[aria-pressed="true"]{background:var(--sg-gris);color:var(--sg-creme)}
.sg-pagebar .sg-tools a,.sg-pagebar .sg-tools button{appearance:none;display:inline-flex;align-items:center;border:1.5px solid var(--sg-vert);background:transparent;color:var(--sg-vert);border-radius:999px;padding:7px 16px;font-size:14px;font-family:"Sharp Grotesk Medium 20","Sharp Grotesk",sans-serif;font-weight:500;text-transform:uppercase;letter-spacing:.02em;cursor:pointer;text-decoration:none}
.sg-pagebar .sg-tools a:hover,.sg-pagebar .sg-tools button:hover{background:var(--sg-vert-pale)}
/* les pages n'ont plus leur propre sélecteur ni leur propre barre ; la première ligne de contenu colle à la barre de page */
.wrap{padding-top:10px}
body.sg-page-mode-jury .wrap{padding-top:16px}
