/* ===========================================================
   Hugo AI — page vitrine
   Grille fixe, hiérarchie typographique stricte, filets d'un pixel.
   Les couleurs produit ne servent que de repères, jamais de décor.
   =========================================================== */

:root {
  /* neutres, très légèrement chauds — pas de bleu-noir */
  --n-0:  #0A0A0B;
  --n-1:  #0F0F11;
  --n-2:  #141416;
  --n-3:  #1B1B1E;
  --n-4:  #26262A;
  --n-5:  #3A3A40;
  --t-1:  #F2F2F0;
  --t-2:  #A3A3A8;
  --t-3:  #6E6E75;

  --creneau: #C9863F;
  --relance: #D45B31;
  --echu:    #BE8A3C;
  --dossier: #4A7C97;
  --aiguillage: #2E7D5B;
  --refonte: #8267BE;
  --accent:  #C9863F;

  --f: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --d: "Schibsted Grotesk", "Inter", -apple-system, sans-serif;
  --m: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --marge: clamp(20px, 5vw, 64px);
  --large: 1320px;

  /* deux valeurs qui dépendent du thème et qu'on ne peut pas déduire */
  --voile: rgba(10, 10, 11, .86);
  --ombre-appli: 0 14px 36px -12px rgba(0, 0, 0, .8);

  /* Les teintes douces du schéma de la barre. Sur fond noir, un voile
     clair ; sur fond crème, un voile coloré — l'inverse ne marche pas. */
  --accent-doux: rgba(201, 134, 63, .13);
  --accent-bord: rgba(201, 134, 63, .42);
  --aig-doux: rgba(46, 125, 91, .14);
  /* Opaques, et non translucides : l'étiquette du cadre intérieur est à
     cheval sur sa bordure, et il lui faut exactement la couleur du fond
     qu'elle recouvre — sinon elle y creuse une encoche. */
  --panneau: #121214;
  --panneau-2: #191A1D;
}

/* ---------- le même site, en clair ----------
   Seuls les neutres changent : les couleurs produit restent des repères. */
:root[data-theme="clair"] {
  --n-0:  #F4F2EE;
  --n-1:  #FBFAF7;
  --n-2:  #EDEAE4;
  --n-3:  #DFDBD3;
  --n-4:  #CBC6BC;
  --n-5:  #A9A398;
  --t-1:  #16150F;
  --t-2:  #56544B;
  --t-3:  #857F74;

  --creneau: #A9682E;
  --relance: #B33F1C;
  --echu:    #8C5514;
  --dossier: #2F6382;
  --aiguillage: #1F6446;
  --refonte: #6B4E9E;
  --accent:  #A9682E;

  --voile: rgba(244, 242, 238, .88);
  --ombre-appli: 0 14px 36px -14px rgba(20, 20, 15, .28);

  --accent-doux: rgba(169, 104, 46, .11);
  --accent-bord: rgba(169, 104, 46, .5);
  --aig-doux: rgba(31, 100, 70, .11);
  --panneau: #EFEDE8;
  --panneau-2: #FBFAF7;
  color-scheme: light;
}
:root { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--n-0);
  color: var(--t-1);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--d); font-weight: 600; text-wrap: balance; }

.enveloppe-page { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }

/* ---------- le bandeau fixe ---------- */

.mast {
  position: sticky; top: 0; z-index: 60;
  background: var(--voile);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--n-3);
}
.mast .dedans {
  max-width: var(--large); margin: 0 auto; padding: 0 var(--marge);
  height: 62px; display: flex; align-items: center; gap: 30px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 15.5px; }
.logo .m {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(145deg, var(--creneau), var(--refonte));
}
.mast nav { display: flex; gap: 26px; margin-left: 12px; }
.mast nav a {
  font-size: 14px; color: var(--t-2); letter-spacing: -.005em;
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s ease;
}
.mast nav a:hover { color: var(--t-1); }
.mast .fin { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.mast .ecrire {
  font-family: var(--m); font-size: 12.5px; color: var(--t-1);
  border: 1px solid var(--n-4); border-radius: 7px; padding: 8px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.mast .ecrire:hover { border-color: var(--n-5); background: var(--n-2); }

/* ---------- l'ouverture ---------- */

.hero { padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 82px); }
.hero .grille {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 76px); align-items: start;
}

.oeil {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--m); font-size: 11.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 22px;
}
.oeil .pt { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.042em;
  font-weight: 600;
}
h1 .att { color: var(--t-3); }

.lede {
  margin: 26px 0 0; max-width: 54ch;
  font-size: clamp(16px, 1.7vw, 18.5px); line-height: 1.62; color: var(--t-2);
}
.lede b { color: var(--t-1); font-weight: 550; }

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 550; letter-spacing: -.01em;
  background: var(--t-1); color: var(--n-0);
  border: 1px solid var(--t-1); border-radius: 8px; padding: 12px 20px;
  transition: transform .14s ease, opacity .14s ease;
}
.bouton:hover { transform: translateY(-1px); opacity: .92; }
.bouton.creux { background: transparent; color: var(--t-1); border-color: var(--n-4); }
.bouton.creux:hover { border-color: var(--n-5); background: var(--n-2); }
.bouton .fl { font-size: 13px; opacity: .6; }

.meta-hero {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--n-3);
  display: flex; gap: 30px; flex-wrap: wrap;
}
.meta-hero div { font-size: 13px; color: var(--t-3); }
.meta-hero b { display: block; font-family: var(--m); font-size: 19px; color: var(--t-1); font-weight: 500; letter-spacing: -.02em; }

/* la fiche technique, à droite */
.fiche {
  border: 1px solid var(--n-3); border-radius: 12px; background: var(--n-1);
  overflow: hidden;
}
.fiche .tt {
  font-family: var(--m); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--t-3); padding: 15px 20px; border-bottom: 1px solid var(--n-3);
  display: flex; justify-content: space-between;
}
.fiche .l {
  /* ce sont des boutons : sans cette remise à zéro, le navigateur impose
     son propre fond gris et casse la grille */
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; border-bottom: 1px solid var(--n-2);
  font: inherit; color: inherit; width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 4px 14px;
  align-items: baseline; padding: 14px 20px 15px;
  transition: background .14s ease;
}
.fiche .l:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fiche .l:last-child { border-bottom: 0; }
.fiche .l:hover { background: var(--n-2); }
.fiche .l .pastille { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.fiche .l .nm { font-size: 15px; font-weight: 550; letter-spacing: -.015em; }
.fiche .l .ds { grid-column: 2 / 4; font-size: 12.5px; color: var(--t-3); line-height: 1.45; }
.fiche .l .px {
  font-family: var(--m); font-size: 13px; color: var(--t-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fiche .l[data-p="creneau"] .pastille { background: var(--creneau); }
.fiche .l[data-p="relance"] .pastille { background: var(--relance); }
.fiche .l[data-p="echu"]    .pastille { background: var(--echu); }
.fiche .l[data-p="dossier"] .pastille { background: var(--dossier); }
.fiche .l[data-p="aiguillage"] .pastille { background: var(--aiguillage); }
.fiche .l[data-p="refonte"] .pastille { background: var(--refonte); }

/* ---------- structure des sections ---------- */

section.bande { padding: clamp(52px, 7vw, 92px) 0; border-top: 1px solid var(--n-3); }

.tete-section { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 24px; margin-bottom: 42px; }
.tete-section .num {
  font-family: var(--m); font-size: 12px; color: var(--t-3);
  letter-spacing: .08em; padding-top: 9px;
}
.tete-section h2 { font-size: clamp(25px, 3.2vw, 36px); letter-spacing: -.032em; line-height: 1.1; }
.tete-section p { margin: 14px 0 0; max-width: 60ch; font-size: 15.5px; line-height: 1.6; color: var(--t-2); }
.tete-section p b { color: var(--t-1); font-weight: 550; }

/* ---------- les logiciels ---------- */

.grille-produits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--n-3); border: 1px solid var(--n-3); border-radius: 12px; overflow: hidden;
}
@media (max-width: 1080px) { .grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grille-produits { grid-template-columns: minmax(0, 1fr); } }
.produit {
  background: var(--n-1); border: 0; padding: 0; text-align: left; cursor: pointer;
  font-family: inherit; color: inherit;
  display: flex; flex-direction: column;
  transition: background .16s ease;
}
.produit:hover, .produit:focus-visible { background: var(--n-2); outline: none; }
.produit:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

.produit .haut { padding: 20px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.produit .idx { font-family: var(--m); font-size: 11px; color: var(--t-3); letter-spacing: .1em; }
.produit .trait { width: 26px; height: 2px; border-radius: 2px; }
.produit[data-p="creneau"] .trait { background: var(--creneau); }
.produit[data-p="relance"] .trait { background: var(--relance); }
.produit[data-p="echu"]    .trait { background: var(--echu); }
.produit[data-p="dossier"] .trait { background: var(--dossier); }
.produit[data-p="aiguillage"] .trait { background: var(--aiguillage); }
.produit[data-p="refonte"] .trait { background: var(--refonte); }

.produit h3 { padding: 16px 22px 0; font-size: 21px; letter-spacing: -.028em; }
.produit .role { padding: 6px 22px 0; font-size: 13.5px; color: var(--t-2); line-height: 1.5; min-height: 62px; }
.produit .etapes { list-style: none; margin: 16px 0 0; padding: 0 22px; display: flex; flex-direction: column; gap: 0; }
.produit .etapes li {
  font-size: 12.5px; line-height: 1.45; color: var(--t-3);
  padding: 9px 0 9px 20px; border-top: 1px solid var(--n-2); position: relative;
}
.produit .etapes li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 7px; height: 1px; background: var(--n-5);
}
.produit .etapes li b { color: var(--t-2); font-weight: 550; }
.produit .bas {
  margin-top: auto; padding: 18px 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--n-2);
}
.produit .prix { font-family: var(--m); font-size: 13px; color: var(--t-2); font-variant-numeric: tabular-nums; }
.produit .cta {
  font-size: 13px; font-weight: 550; color: var(--t-1);
  display: inline-flex; align-items: center; gap: 7px;
}
.produit .cta .fl { color: var(--t-3); transition: transform .16s ease; }
.produit:hover .cta .fl { transform: translateX(3px); color: var(--accent); }
/* Refonte ferme la grille en bandeau : quatre logiciels, puis le sur-mesure. */
.produit[data-p="refonte"] {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  align-items: start; column-gap: 40px; padding: 22px;
}
.produit[data-p="refonte"] .haut  { grid-column: 1; grid-row: 1; padding: 0; }
.produit[data-p="refonte"] h3     { grid-column: 1; grid-row: 2; padding: 13px 0 0; }
.produit[data-p="refonte"] .role  { grid-column: 1; grid-row: 3; padding: 6px 0 0; min-height: 0; }
.produit[data-p="refonte"] .etapes {
  grid-column: 2; grid-row: 1 / -1; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px; align-content: start;
}
.produit[data-p="refonte"] .etapes li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.produit[data-p="refonte"] .etapes li:nth-child(-n+2)::before { top: 6px; }
.produit[data-p="refonte"] .bas {
  grid-column: 3; grid-row: 1 / -1; align-self: center;
  flex-direction: column; align-items: flex-end; gap: 10px;
  margin: 0; padding: 0 0 0 8px; border-top: 0;
}
@media (max-width: 900px) {
  .produit[data-p="refonte"] { display: flex; flex-direction: column; padding: 0; }
  .produit[data-p="refonte"] .haut { padding: 20px 22px 0; }
  .produit[data-p="refonte"] h3 { padding: 16px 22px 0; }
  .produit[data-p="refonte"] .role { padding: 6px 22px 0; }
  .produit[data-p="refonte"] .etapes { display: flex; flex-direction: column; padding: 0 22px; margin-top: 16px; }
  .produit[data-p="refonte"] .etapes li:nth-child(-n+2) { border-top: 1px solid var(--n-2); padding-top: 9px; }
  .produit[data-p="refonte"] .bas {
    /* align-self doit repasser a stretch : herite de la version bandeau, il
       recentrerait la ligne prix/bouton au lieu de l'etaler. */
    align-self: stretch; flex-direction: row; align-items: center;
    justify-content: space-between;
    margin-top: auto; padding: 18px 22px 20px; border-top: 1px solid var(--n-2);
  }
}

.produit .sceau {
  font-family: var(--m); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--refonte); border: 1px solid rgba(130,103,190,.4); border-radius: 4px; padding: 2px 7px;
}

/* ---------- le procédé ---------- */

.procede { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 24px; }
.etape-p {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 12px 40px; padding: 26px 0; border-top: 1px solid var(--n-3);
}
.etape-p:first-child { border-top: 0; padding-top: 0; }
.etape-p .g { display: flex; align-items: baseline; gap: 14px; }
.etape-p .n { font-family: var(--m); font-size: 12px; color: var(--accent); }
.etape-p h3 { font-size: 19px; letter-spacing: -.026em; line-height: 1.25; }
.etape-p p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--t-2); max-width: 62ch; }
.etape-p p b { color: var(--t-1); font-weight: 550; }

.distinguo {
  margin-top: 34px; border: 1px solid var(--n-3); border-radius: 12px; overflow: hidden;
}
.distinguo .r {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px;
  padding: 15px 22px; border-top: 1px solid var(--n-3); align-items: baseline;
}
.distinguo .r:first-child { border-top: 0; }
.distinguo .r .q { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.distinguo .r .a { font-size: 14px; color: var(--t-2); line-height: 1.55; }
.distinguo .r .a b { color: var(--t-1); font-weight: 550; }
.distinguo .r[data-p="dossier"] { background: rgba(74,124,151,.07); }
.distinguo .r[data-p="dossier"] .q { color: var(--dossier); }
.distinguo .r[data-p="refonte"] { background: rgba(130,103,190,.07); }
.distinguo .r[data-p="refonte"] .q { color: var(--refonte); }

/* ---------- les modes ---------- */

.modes-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px;
  background: var(--n-3); border: 1px solid var(--n-3); border-radius: 12px; overflow: hidden; }
.mode-b { background: var(--n-1); padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.mode-b .q { font-family: var(--m); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-3); }
.mode-b h3 { font-size: 20px; letter-spacing: -.028em; }
.mode-b p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--t-2); }
.mode-b p b { color: var(--t-1); font-weight: 550; }
.mode-b.reco { background: var(--n-2); }
.mode-b.reco .q { color: var(--accent); }

/* ---------- sécurité ---------- */

.gar-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.gar-b { display: flex; flex-direction: column; gap: 10px; }
.gar-b .ic { width: 26px; height: 26px; color: var(--dossier); }
.gar-b h3 { font-size: 16.5px; letter-spacing: -.022em; }
.gar-b p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--t-2); }
.gar-b p b { color: var(--t-1); font-weight: 550; }

.heberge {
  margin-top: 34px; border: 1px solid var(--n-3); border-radius: 12px; overflow: hidden;
}
.heberge .en {
  padding: 20px 24px; border-bottom: 1px solid var(--n-3);
}
.heberge .en h3 { font-size: 18px; letter-spacing: -.024em; }
.heberge .en p { margin: 6px 0 0; font-size: 14px; color: var(--t-2); }
.heberge .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--n-3); }
.heberge .op { background: var(--n-1); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.heberge .op.ferme { background: rgba(74,124,151,.06); }
.heberge .op .q { font-family: var(--m); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-3); }
.heberge .op.ferme .q { color: var(--dossier); }
.heberge .op h4 { font-size: 20px; letter-spacing: -.028em; }
.heberge .op p { margin: 0; font-size: 14px; line-height: 1.58; color: var(--t-2); }
.heberge .op p b { color: var(--t-1); font-weight: 550; }
.heberge .op ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.heberge .op li { font-size: 13.5px; color: var(--t-2); padding-left: 20px; position: relative; line-height: 1.45; }
.heberge .op li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 1px; background: var(--n-5);
}
.heberge .op.ferme li::before { background: var(--dossier); }
.heberge .pied { padding: 16px 24px; border-top: 1px solid var(--n-3); font-size: 13.5px; color: var(--t-3); }
.heberge .pied b { color: var(--t-2); }

/* ---------- contact ---------- */

.contact-b {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  border: 1px solid var(--n-3); border-radius: 12px; padding: 32px 34px;
  background: linear-gradient(120deg, rgba(201,134,63,.07), transparent 62%);
}
.contact-b h2 { font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.03em; }
.contact-b p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--t-2); max-width: 56ch; }
.contact-b p b { color: var(--t-1); font-weight: 550; }
.contact-b .adr {
  font-family: var(--m); font-size: 15px; font-weight: 500; color: var(--n-0);
  background: var(--accent); border-radius: 9px; padding: 15px 22px; white-space: nowrap;
}
.contact-b .adr:hover { filter: brightness(1.07); }

/* ---------- pied ---------- */

footer.page {
  border-top: 1px solid var(--n-3); padding: 34px 0 46px;
  font-size: 13px; color: var(--t-3); line-height: 1.7;
}
footer.page .dedans { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
footer.page b { color: var(--t-2); font-weight: 500; }
footer.page a { color: var(--t-2); border-bottom: 1px solid var(--n-4); }

/* ===================== l'application ouverte ===================== */

#appli { display: none; min-height: 100%; flex-direction: column; }
#appli.ouvert { display: flex; }
body.dans-appli #accueil, body.dans-appli .mast, body.dans-appli footer.page { display: none; }

.bandeau-haut {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px 10px; background: var(--n-0); border-bottom: 1px solid var(--n-3);
}
.bandeau-haut .retour {
  margin-top: 7px;
  font-family: inherit; font-size: 13.5px; font-weight: 550; color: var(--t-1);
  background: var(--n-2); border: 1px solid var(--n-4); border-radius: 8px;
  padding: 8px 13px; cursor: pointer;
}
.bandeau-haut .retour:hover { background: var(--n-3); }
/* La barre est un schéma : un grand cadre tient Aiguillage et les trois
   qu'il remplit ; Refonte est dehors, avec ce qu'il est. */
.onglets {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 9px; margin-left: 4px;
}

/* Le grand cadre : un panneau à peine teinté, pas seulement un trait.
   C'est lui qui fait lire le groupe d'un coup d'œil, dans les deux
   thèmes — un simple filet se perd sur fond crème. */
.ens {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--panneau);
  border: 1px solid var(--accent-bord); border-radius: 14px;
  padding: 14px 13px 12px;
}
.ens-l {
  position: absolute; top: 0; left: 14px; transform: translateY(-50%);
  background: var(--n-0); padding: 1px 10px; white-space: nowrap;
  font-family: var(--m); font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}

.chef { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chef-l, .ref-l {
  font-family: var(--f); font-size: 13px; color: var(--t-2);
  letter-spacing: 0; line-height: 1.5;
}
.chef-l b { color: var(--aiguillage); font-weight: 600; }
.ref-l b { color: var(--refonte); font-weight: 600; }

/* la flèche qui descend d'Aiguillage dans le cadre des trois */
.verse-r { display: flex; align-items: center; gap: 8px; padding: 7px 0 5px 14px; }
.verse { width: 15px; height: 21px; flex: none; color: var(--aiguillage); }
.verse-l {
  font-family: var(--m); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--aiguillage);
  background: var(--aig-doux); border-radius: 20px; padding: 4px 11px;
}

/* Le cadre intérieur est plus clair que son parent : c'est ce
   contraste-là qui dit qu'il est dedans. */
.trio {
  position: relative;
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
  background: var(--panneau-2);
  border: 1px solid var(--n-4); border-radius: 11px; padding: 12px 9px 8px;
}
.trio-l {
  position: absolute; top: 0; left: 13px; transform: translateY(-50%);
  background: var(--panneau); padding: 1px 9px; white-space: nowrap;
  font-family: var(--m); font-size: 9.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--t-2);
}

.a-part { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-left: 3px; }

/* « cliquez » écrit noir sur blanc, à côté des deux onglets qui sont
   hors du cadre et qu'on ne prend pas pour des boutons. */
.tb-clic {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  color: var(--accent); pointer-events: none;
}
.tb-clic .tb-f { width: 24px; height: 14px; flex: none; }
.tb-clic .tb-f.b { width: 16px; height: 21px; }
.tb-clic .tb-x {
  font-family: var(--m); font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-doux); border: 1px dashed var(--accent-bord);
  border-radius: 20px; padding: 4px 11px; white-space: nowrap;
}
.tb-clic .tb-f { animation: pousse-g 2.6s ease-in-out infinite; }
@keyframes pousse-g { 0%, 68%, 100% { transform: translateX(0); } 84% { transform: translateX(-4px); } }

/* « Masquer les repères » replie tout le schéma : les cadres, leurs
   étiquettes et les invitations à cliquer disparaissent, et les cinq noms
   se rangent sur une seule ligne. C'est le geste de celui qui a compris et
   qui veut récupérer son écran — la barre repasse de 207 px à 50. */
:root[data-reperes="off"] .tb-clic, :root[data-barre="repliee"] .tb-clic,
:root[data-reperes="off"] .ens-l, :root[data-barre="repliee"] .ens-l,
:root[data-reperes="off"] .trio-l, :root[data-barre="repliee"] .trio-l,
:root[data-reperes="off"] .chef-l, :root[data-barre="repliee"] .chef-l,
:root[data-reperes="off"] .ref-l, :root[data-barre="repliee"] .ref-l,
:root[data-reperes="off"] .verse-r, :root[data-barre="repliee"] .verse-r { display: none; }
:root[data-reperes="off"] .onglets, :root[data-barre="repliee"] .onglets {
  flex-direction: row; align-items: center; gap: 10px;
}
:root[data-reperes="off"] .ens, :root[data-barre="repliee"] .ens {
  /* « flex-direction » doit revenir à « row » : le cadre ouvert est une
     colonne, et sans ce retour les cinq noms restaient empilés. */
  display: flex; flex-direction: row; align-items: center; gap: 4px;
  background: transparent; border: 0; padding: 0;
}
:root[data-reperes="off"] .trio, :root[data-barre="repliee"] .trio {
  background: transparent; border: 0; padding: 0; gap: 3px;
}
/* Le repli au défilement s'anime : sinon la page saute sous le doigt. */
.bandeau-haut .onglets, .bandeau-haut .ens, .bandeau-haut .trio { transition: gap .18s ease, padding .18s ease; }
.onglet {
  font-family: inherit; font-size: 14px; font-weight: 550; color: var(--t-1);
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 8px 13px; cursor: pointer; display: flex; align-items: center; gap: 7px;
}
.onglet:hover { color: var(--t-1); background: var(--n-2); }
.onglet .puce { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.onglet[data-p="creneau"] .puce { background: var(--creneau); }
.onglet[data-p="relance"] .puce { background: var(--relance); }
.onglet[data-p="echu"]    .puce { background: var(--echu); }
.onglet[data-p="dossier"] .puce { background: var(--dossier); }
.onglet[data-p="aiguillage"] .puce { background: var(--aiguillage); }
.onglet[data-p="refonte"] .puce { background: var(--refonte); }
.onglet[aria-current="true"] { color: var(--n-0); }
.onglet[aria-current="true"][data-p="creneau"] { background: var(--creneau); }
.onglet[aria-current="true"][data-p="relance"] { background: var(--relance); color: #fff; }
.onglet[aria-current="true"][data-p="echu"]    { background: var(--echu); }
.onglet[aria-current="true"][data-p="dossier"] { background: var(--dossier); color: #fff; }
.onglet[aria-current="true"][data-p="aiguillage"] { background: var(--aiguillage); color: #fff; }
.onglet[aria-current="true"][data-p="refonte"] { background: var(--refonte); color: #fff; }
.onglet[aria-current="true"] .puce { background: rgba(0,0,0,.35); }

.bandeau-haut .droite { margin-left: auto; margin-top: 7px; display: flex; gap: 8px; align-items: center; }
.bandeau-haut .lien {
  font-family: var(--m); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--t-2); background: transparent; border: 1px solid var(--n-4);
  border-radius: 7px; padding: 8px 11px; cursor: pointer;
}
.bandeau-haut .lien:hover { color: var(--t-1); border-color: var(--n-5); }

#scene { flex: 1; }

#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  background: var(--t-1); color: var(--n-0); font-size: 13.5px; font-weight: 500;
  padding: 11px 19px; border-radius: 9px; z-index: 120;
  box-shadow: var(--ombre-appli);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

#voile { display: none; }

/* ---------- adaptation ---------- */

@media (max-width: 980px) {
  .hero .grille { grid-template-columns: minmax(0, 1fr); }
  .tete-section, .procede { grid-template-columns: minmax(0, 1fr); }
  .tete-section .num { padding-top: 0; margin-bottom: 6px; }
  .etape-p { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .heberge .duo { grid-template-columns: 1fr; }
  .contact-b { grid-template-columns: minmax(0, 1fr); }
  .mast nav { display: none; }
}
@media (max-width: 720px) {
  /* Cinq onglets à taille normale exigent 480 px de large. Comme rien ne
     les fait rétrécir, le téléphone élargissait la fenêtre de mise en page
     à 502 px et dézoomait le site entier. On leur donne leur propre ligne,
     on les resserre, et la barre défile toute seule si l'écran est plus
     étroit encore. */
  .bandeau-haut { gap: 8px; padding: 9px 12px; }
  .bandeau-haut .retour { font-size: 13px; padding: 7px 10px; }
  .onglets { flex: 1 1 100%; order: 3; margin: 9px 0 0; gap: 8px; width: 100%; }
  .ens { width: 100%; padding: 9px 9px 10px; }
  /* À cheval sur la bordure, une étiquette qui passe à la ligne remonte
     sur ce qu'il y a au-dessus. Sur téléphone on les remet dans le flux,
     en première ligne du cadre. */
  .ens-l, .trio-l {
    position: static; transform: none; background: transparent;
    display: block; width: 100%; max-width: none; padding: 0 2px 8px;
    white-space: normal; line-height: 1.45; letter-spacing: .04em;
  }
  .ens-l { font-size: 9.5px; }
  /* Pas de « overflow » ici : il rognerait les étiquettes des cadres, qui
     dépassent par le haut. Les onglets passent à la ligne s'il le faut. */
  .trio { padding: 8px 6px 7px; gap: 2px; min-width: 0; }
  .trio-l { font-size: 9px; }
  .onglet { flex: none; font-size: 12.5px; padding: 6px 8px; gap: 5px; }
  .onglet .puce { width: 6px; height: 6px; }
  /* Une flèche sans son étiquette pointe vers rien : on la retirait à
     moitié, il restait un trait dans le vide à côté d'« Aiguillage » et de
     « Refonte ». Les deux invitations disparaissent en entier ; celle du
     groupe des trois suffit à dire que ce sont des boutons. */
  .chef .tb-clic, .a-part .tb-clic { display: none; }
  .chef-l, .ref-l { font-size: 12px; flex-basis: 100%; line-height: 1.5; }
  .verse-r { padding-left: 8px; }
  .tb-clic .tb-x { font-size: 9.5px; padding: 3px 9px; }
}
/* Le bouton qui déplie le schéma, sur téléphone seulement. */
.schema-btn { font-family: var(--m); font-size: 11px; letter-spacing: .02em; }
@media (min-width: 721px) { .schema-btn { display: none; } }

@media (max-width: 720px) {
  /* Replié, la barre n'est plus qu'une ligne de noms qui glisse du doigt.
     C'est ce qu'on montre d'abord : 110 px au lieu de 433. */
  :root[data-barre="repliee"] .onglets {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    flex-wrap: nowrap; gap: 7px; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  :root[data-barre="repliee"] .onglets::-webkit-scrollbar { display: none; }
  :root[data-barre="repliee"] .ens,
  :root[data-barre="repliee"] .trio,
  :root[data-barre="repliee"] .chef,
  :root[data-barre="repliee"] .a-part { display: contents; }
  :root[data-barre="repliee"] .onglet { flex: none; white-space: nowrap; }
  .bandeau-haut .droite { margin-top: 0; }
}

@media (max-width: 620px) {
  .distinguo .r { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .meta-hero { gap: 20px; }
}
/* Le suffixe du logo — « pour les PME », « pour les cabinets ». */
.logo .pour {
  margin-left: 9px; padding-left: 10px; border-left: 1px solid var(--n-4);
  font-family: var(--m); font-size: 11px; font-weight: 400;
  letter-spacing: .04em; color: var(--t-3); text-transform: none;
}
@media (max-width: 520px) { .logo .pour { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- dossier.nown.fr : une page qui ne parle que de Dossier ---- */
.seul-dossier { display: none !important; }
/* chaque type d'élément retrouve SON mode d'affichage : une ligne de
   catalogue est une grille, une carte produit est une colonne flex. */
body.hote-dossier .fiche .l.seul-dossier { display: grid !important; }
body.hote-dossier .produit.seul-dossier { display: flex !important; }
body.hote-dossier .produit:not(.seul-dossier),
body.hote-dossier .fiche .l:not(.seul-dossier) { display: none !important; }
body.hote-dossier [data-general] { display: none !important; }
body.hote-dossier [data-dossier] { display: block !important; }
body.hote-dossier .meta-hero > div:first-child { display: none; }

/* ---------- l'interrupteur clair / sombre ---------- */
.bascule-theme {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--m); font-size: 12px; color: var(--t-2);
  background: transparent; border: 1px solid var(--n-4); border-radius: 7px;
  padding: 7px 11px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.bascule-theme:hover { border-color: var(--n-5); background: var(--n-2); color: var(--t-1); }
.bascule-theme svg { width: 15px; height: 15px; display: block; }
.bascule-theme .lbl { letter-spacing: .02em; }
:root[data-theme="clair"] .bascule-theme .nuit,
:root:not([data-theme="clair"]) .bascule-theme .jour { display: none; }

@media (max-width: 620px) { .bascule-theme .lbl { display: none; } }
