/* ==========================================================================
   Meriane Back · système visuel de référence (direction finale, « la maison »)
   --------------------------------------------------------------------------
   Une seule feuille pour tout ce qui se répète d'une page à l'autre.
   Ce qui est propre à une page vit dans pages.css, rangé sous la classe
   du <body> (page-aujourdhui, page-taches…).
   Règles : pas de style dans les balises ; une couleur = une variable ;
   les pôles et les états se choisissent par une classe (pole-produits,
   etat-en-cours…) qui règle les variables --accent.
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  /* Couleurs de la maison */
  --foret: #2F3829;          /* menu, encadrés sombres */
  --foret-2: #3A4533;        /* survols sur fond forêt */
  --sauge: #5E6A4C;          /* couleur d'en-tête de toutes les pages, boutons */
  --sauge-fonce: #4C573C;    /* texte sauge sur fond clair */
  --sauge-pale: #E2E5D5;
  --miel: #C9A15A;           /* « en cours », cible de prix, accents */
  --miel-fonce: #7D5F25;     /* texte miel sur fond clair */
  --miel-pale: #F3E6C9;
  --terre: #B8714F;          /* échéances, relances, pôle Marque */
  --terre-fonce: #97543A;
  --terre-pale: #F3DED1;
  --noyer: #6E5444;          /* pôle Société */
  --noyer-pale: #E8DDD2;

  /* Papiers et traits */
  --ecru: #F5F0E6;           /* fond de page */
  --papier: #FBF8F2;         /* cartes */
  --papier-fonce: #EFE8DB;   /* creux, colonnes */
  --lin: #E7DECF;            /* fonds neutres, pistes de jauge */
  --trait: #E1D6C4;          /* bordures */
  --trait-fort: #CDBFA9;     /* pointillés « à renseigner » */

  /* Textes (contrastes vérifiés sur --ecru) */
  --encre: #4A3A2E;          /* texte courant · 11,0:1 */
  --encre-douce: #6B5B4E;    /* texte secondaire · 5,7:1 */
  --encre-pale: #8C7B6C;     /* indications, jamais pour une phrase · 3,6:1 */
  --sur-foret: #EDE7D9;      /* texte sur forêt · 11:1 */
  --sur-foret-doux: #C3C8B3; /* texte secondaire sur forêt · 7,4:1 */
  --sur-sauge: #F5F0E6;      /* texte sur sauge · 5,1:1 */
  --accent-or: #D9BE86;      /* surtitres sur fond sombre */

  /* Accent courant (réglé par .pole-* ; sauge par défaut) */
  --accent: var(--sauge);
  --accent-pale: var(--sauge-pale);
  --accent-texte: var(--sauge-fonce);

  /* Typographie */
  --police-titre: 'Alegreya', Georgia, serif;
  --police-texte: 'Source Sans 3', system-ui, sans-serif;
  --taille-texte: 15.5px;
  --taille-petit: 13.5px;
  --taille-mini: 12.5px;
  --taille-surtitre: 11.5px;

  /* Espacements (multiples de 4) */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 20px;
  --e-6: 24px; --e-7: 32px; --e-8: 40px; --e-9: 56px;

  /* Rayons et ombres */
  --r-petit: 8px;
  --r: 14px;
  --r-grand: 18px;
  --r-rond: 999px;
  --ombre: 0 1px 0 rgba(74, 58, 46, .05), 0 10px 26px -18px rgba(74, 58, 46, .38);
  --ombre-forte: 0 1px 0 rgba(74, 58, 46, .05), 0 22px 44px -26px rgba(74, 58, 46, .5);

  /* Gabarit */
  --largeur-menu: 248px;
  --largeur-contenu: 1440px;
}

/* Les quatre pôles : une classe règle l'accent de tout ce qu'elle contient */
.pole-produits { --accent: var(--sauge); --accent-pale: var(--sauge-pale); --accent-texte: var(--sauge-fonce); --accent-vif: #AEB896; }
.pole-site     { --accent: var(--miel);  --accent-pale: var(--miel-pale);  --accent-texte: var(--miel-fonce); --accent-vif: var(--miel); }
.pole-marque   { --accent: var(--terre); --accent-pale: var(--terre-pale); --accent-texte: var(--terre-fonce); --accent-vif: var(--terre); }
.pole-societe  { --accent: var(--noyer); --accent-pale: var(--noyer-pale); --accent-texte: var(--noyer); --accent-vif: #B09582; }

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { font-variant-numeric: lining-nums; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ecru);
  /* trame de lin, à peine visible : l'écru est un papier, pas un vide */
  background-image:
    repeating-linear-gradient(0deg, rgba(74, 58, 46, .02) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(74, 58, 46, .016) 0 1px, transparent 1px 4px);
  color: var(--encre);
  font: 400 var(--taille-texte)/1.5 var(--police-texte);
}
h1, h2, h3 { margin: 0; font-family: var(--police-titre); font-weight: 500; letter-spacing: -.005em; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.cache-ecran { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Pictogrammes (sprite pictogrammes.svg : grille 24, trait 1,6) -------- */
.picto { width: 22px; height: 22px; flex: none; color: inherit; overflow: visible; }
.picto--petit { width: 16px; height: 16px; }
.picto--moyen { width: 26px; height: 26px; }
.picto--grand { width: 32px; height: 32px; }

/* 4. Gabarit : menu + contenu -------------------------------------------- */
.cadre { display: grid; grid-template-columns: var(--largeur-menu) minmax(0, 1fr); min-height: 100vh; }
.principal { width: 100%; max-width: var(--largeur-contenu); margin: 0 auto; padding: var(--e-7) var(--e-8) var(--e-8); min-width: 0; }
.pied { margin-top: var(--e-8); font-size: var(--taille-mini); color: var(--encre-douce); text-align: center; }

/* 5. Menu (vert forêt) --------------------------------------------------- */
.menu { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--foret); color: var(--sur-foret); display: flex; flex-direction: column; }
.menu__haut { display: flex; flex-direction: column; flex: 1; padding: var(--e-6) var(--e-4) var(--e-5); }
.menu__logo { display: flex; align-items: center; gap: var(--e-3); padding: 0 var(--e-2) var(--e-6); text-decoration: none; color: var(--ecru); }
.menu__logo svg { width: 38px; height: 38px; }
.menu__nom { display: block; font: 500 24px/1 var(--police-titre); }
.menu__sous-nom { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-or); }
.menu__case, .menu__bouton { display: none; }
.menu__corps { display: flex; flex-direction: column; flex: 1; }
.menu__liste { display: flex; flex-direction: column; gap: 2px; }
.menu__titre { margin: var(--e-5) var(--e-3) var(--e-2); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sur-foret-doux); }
.menu__lien { position: relative; display: flex; align-items: center; gap: var(--e-3); padding: 9px var(--e-3); border-radius: 10px; text-decoration: none; color: var(--sur-foret); font-size: 15px; line-height: 1.25; }
.menu__lien .picto { color: var(--accent-or); }
.menu__lien:hover { background: rgba(245, 240, 230, .06); }
.menu__lien--actif { background: rgba(245, 240, 230, .11); color: #fff; font-weight: 600; }
.menu__lien--actif::before { content: ""; position: absolute; left: calc(-1 * var(--e-4)); top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--miel); }
.menu__compte { margin-left: auto; padding: 1px 8px; border-radius: var(--r-rond); background: rgba(245, 240, 230, .09); color: var(--sur-foret-doux); font-size: 12.5px; font-weight: 600; }
.menu__pastille { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -2px; border-radius: 50%; background: var(--accent); flex: none; }
.menu__pastille .picto { width: 16px; height: 16px; color: #fff; }
.menu__lien--outil { padding-left: 50px; font-size: 14.5px; color: var(--sur-foret-doux); }
.menu__lien--outil.menu__lien--actif { color: #fff; }
.menu__bientot { margin-left: auto; padding: 0 7px; border: 1px solid rgba(245, 240, 230, .3); border-radius: var(--r-rond); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sur-foret-doux); }
.menu__bas { margin-top: auto; padding-top: var(--e-4); border-top: 1px solid rgba(245, 240, 230, .12); }
.menu__bas .menu__titre { margin-top: var(--e-1); }
.menu__personne { display: flex; align-items: baseline; gap: var(--e-2); padding: 3px var(--e-3); font: 500 17px/1.3 var(--police-titre); color: var(--ecru); }
.menu__personne small { font: 12.5px var(--police-texte); color: var(--sur-foret-doux); }
.menu__point { width: 8px; height: 8px; border-radius: 50%; background: #8E9580; align-self: center; flex: none; }
.menu__point--en-ligne { background: #A9C48A; box-shadow: 0 0 0 3px rgba(169, 196, 138, .22); }
.menu__sortie { display: inline-block; margin: var(--e-3) var(--e-3) 0; font-size: var(--taille-petit); color: var(--sur-foret-doux); }

/* 6. Bandeau de page (toujours sauge ; le pôle n'est qu'un accent) -------- */
.bandeau { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--e-6); padding: var(--e-7) var(--e-7) var(--e-6); border-radius: var(--r-grand); background: var(--sauge); color: var(--sur-sauge); }
/* plis du rideau, discrets, sur la moitié droite */
.bandeau::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .045) 0, rgba(255, 255, 255, .03) 26px, rgba(0, 0, 0, .045) 52px); -webkit-mask: linear-gradient(90deg, transparent 40%, #000 85%); mask: linear-gradient(90deg, transparent 40%, #000 85%); }
/* la tringle : un filet clair en haut, terminé par deux embouts */
.bandeau::after { content: ""; position: absolute; left: var(--e-7); right: var(--e-7); top: 14px; height: 1.5px; background: rgba(245, 240, 230, .22); }
.bandeau__embouts { position: absolute; inset: 0; pointer-events: none; }
.bandeau__embouts::before, .bandeau__embouts::after { content: ""; position: absolute; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: rgba(245, 240, 230, .32); }
.bandeau__embouts::before { left: calc(var(--e-7) - 6px); }
.bandeau__embouts::after { right: calc(var(--e-7) - 6px); }
.bandeau__tete { display: flex; align-items: center; gap: var(--e-5); min-width: 0; }
.bandeau__medaillon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--ecru); color: var(--accent-texte); box-shadow: 0 0 0 4px rgba(245, 240, 230, .16); }
.bandeau__medaillon .picto { width: 28px; height: 28px; }
.bandeau__surtitre { display: flex; align-items: center; gap: var(--e-2); font-size: var(--taille-surtitre); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 240, 230, .86); }
/* sur une page de pôle, la couleur du pôle n'est qu'un filet en bas du bandeau et une pastille */
.bandeau--pole { box-shadow: inset 0 -5px 0 var(--accent-vif); }
.bandeau--pole .bandeau__surtitre::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-vif); box-shadow: 0 0 0 2px rgba(245, 240, 230, .7); }
.bandeau__titre { margin-top: 2px; font-size: 40px; line-height: 1.05; }
.bandeau__phrase { margin-top: 6px; max-width: 640px; font: italic 400 17.5px/1.4 var(--police-titre); color: rgba(245, 240, 230, .92); }
.bandeau__cote { display: flex; gap: var(--e-2); }
/* petites cases chiffrées à droite du bandeau */
.bandeau__chiffre { display: flex; flex-direction: column; justify-content: center; min-width: 104px; padding: 10px var(--e-4); border: 1px solid rgba(245, 240, 230, .18); border-radius: var(--r); background: rgba(47, 56, 41, .3); font-size: var(--taille-mini); line-height: 1.25; color: rgba(245, 240, 230, .9); text-decoration: none; }
.bandeau__chiffre strong { font: 500 30px/1.05 var(--police-titre); color: var(--ecru); }
a.bandeau__chiffre:hover { background: rgba(47, 56, 41, .45); }
/* le bandeau d'accueil est un peu plus haut et porte la phrase du jour */
.bandeau--accueil { padding-top: var(--e-8); padding-bottom: var(--e-7); }
.bandeau--accueil .bandeau__titre { font-size: 48px; }
.bandeau--accueil .bandeau__phrase { font: 400 17px/1.5 var(--police-texte); font-style: normal; max-width: 620px; }
.bandeau--accueil .bandeau__phrase strong { color: #fff; }

/* 7. Intertitre de section : petites capitales + filet à embout ---------- */
.filet { display: flex; align-items: center; gap: var(--e-3); margin: var(--e-8) 0 var(--e-4); }
.filet__titre { font: 700 12px/1.2 var(--police-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--encre); white-space: nowrap; }
.filet__ligne { flex: 1; height: 1.5px; background: var(--trait); }
.filet__ligne::after { content: ""; float: right; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--trait-fort); }
.filet__lien { margin-left: var(--e-2); }

/* 8. Cartes --------------------------------------------------------------- */
.carte { min-width: 0; padding: var(--e-5) var(--e-6) var(--e-6); border: 1px solid var(--trait); border-radius: var(--r-grand); background: var(--papier); box-shadow: var(--ombre); }
.carte__tete { display: flex; align-items: center; gap: var(--e-3); margin-bottom: var(--e-4); }
.carte__titre { font-size: 21px; line-height: 1.2; }
.carte__lien { margin-left: auto; }
.carte__intro { margin: calc(-1 * var(--e-2)) 0 var(--e-4); font-size: var(--taille-petit); color: var(--encre-douce); }
.carte--sombre { border-color: var(--foret); background: var(--foret); color: var(--sur-foret); }
.carte--accent { border-top: 4px solid var(--accent); }
.grille { display: grid; gap: var(--e-4); }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pile { display: flex; flex-direction: column; gap: var(--e-4); }

/* Encadré « à renseigner » : pointillés, en retrait, jamais rouge */
.a-renseigner { border: 1.5px dashed var(--trait-fort); border-radius: var(--r); background: transparent; color: var(--encre-douce); box-shadow: none; }
.a-renseigner__mention { display: inline-flex; align-items: center; gap: 5px; font-size: var(--taille-petit); font-weight: 600; color: var(--encre-douce); }
/* Encadré « pas encore relié » : hachures fines, valeurs en tirets */
.pas-relie { border: 1.5px dashed var(--trait-fort); border-radius: var(--r-grand); background: repeating-linear-gradient(135deg, rgba(74, 58, 46, .028) 0 8px, transparent 8px 16px), var(--papier-fonce); box-shadow: none; }
.pas-relie__valeur { font: 500 22px var(--police-titre); color: #B3A590; }

/* 9. Médaillon, pastilles, étiquettes ------------------------------------ */
.medaillon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent-pale); color: var(--accent-texte); }
.medaillon .picto { width: 22px; height: 22px; }
.medaillon--plein { background: var(--accent); color: #fff; }
.medaillon--grand { width: 52px; height: 52px; }
.medaillon--grand .picto { width: 28px; height: 28px; }
.medaillon--neutre { background: var(--lin); color: var(--encre-douce); }

.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-rond); background: var(--lin); color: var(--encre-douce); font-size: var(--taille-mini); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pastille .picto { width: 14px; height: 14px; }
.pastille--pole { background: var(--accent-pale); color: var(--accent-texte); }
.pastille--pole::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pastille--vide { border: 1px dashed var(--trait-fort); background: transparent; }
.pastille--sombre { background: rgba(245, 240, 230, .12); color: var(--sur-foret); }
.pastille--exemple { border: 1px solid var(--miel); background: var(--miel-pale); color: var(--miel-fonce); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; font-weight: 700; }

/* États de compte : Étudié, Prévu, En test, Actif, Arrêté */
.pastille--etudie { background: var(--lin); color: var(--encre-douce); }
.pastille--prevu { background: var(--miel-pale); color: var(--miel-fonce); }
.pastille--en-test { background: var(--terre-pale); color: var(--terre-fonce); }
.pastille--actif { background: var(--sauge-pale); color: var(--sauge-fonce); }
.pastille--arrete { background: transparent; border: 1px solid var(--trait-fort); color: var(--encre-pale); text-decoration: line-through; }

/* États de tâche : rond vide, demi-rond doré, rond plein coché ; « automatique » discret */
.etat { display: inline-flex; align-items: center; gap: 5px; font-size: var(--taille-mini); font-weight: 600; white-space: nowrap; }
.etat .picto { width: 15px; height: 15px; }
.etat--a-faire { color: var(--encre-douce); }
.etat--en-cours { color: var(--miel-fonce); }
.etat--en-cours .picto { color: var(--miel); }
.etat--fait { color: var(--sauge-fonce); }
.etat--automatique { color: var(--encre-douce); font-weight: 400; font-style: italic; }

/* Automatisations : en place, prête à installer, prévue */
.auto-etat { display: inline-flex; align-items: center; gap: 6px; font-size: var(--taille-mini); font-weight: 700; white-space: nowrap; }
.auto-etat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.auto-etat--en-place { color: var(--sauge-fonce); }
.auto-etat--en-place::before { background: var(--sauge); box-shadow: 0 0 0 3px rgba(94, 106, 76, .2); }
.auto-etat--prete { color: var(--miel-fonce); }
.auto-etat--prete::before { background: var(--miel); }
.auto-etat--prevue { color: var(--encre-douce); }
.auto-etat--prevue::before { border: 1.5px dashed var(--encre-pale); }

/* 10. Prénoms : toujours écrits, en Alegreya ----------------------------- */
.prenom { font-family: var(--police-titre); font-weight: 500; }
.prenom--grand { font-size: 30px; line-height: 1.05; }

/* 11. Grands chiffres et tuiles de chiffre ------------------------------- */
.chiffre { font: 500 52px/.95 var(--police-titre); letter-spacing: -.015em; color: var(--accent-texte); }
.chiffre--moyen { font-size: 34px; }
.chiffre--vide { color: #B3A590; }
.tuile-chiffre { display: flex; flex-direction: column; gap: var(--e-3); min-width: 0; padding: var(--e-4) var(--e-5); border: 1px solid var(--trait); border-radius: var(--r-grand); background: var(--papier); box-shadow: var(--ombre); text-decoration: none; }
.tuile-chiffre__tete { display: flex; align-items: center; gap: var(--e-3); font: 500 18px/1.2 var(--police-titre); }
.tuile-chiffre__tete .picto--suite { width: 18px; height: 18px; margin-left: auto; color: var(--encre-pale); }
.tuile-chiffre__corps { display: flex; align-items: flex-end; gap: var(--e-3); }
.tuile-chiffre__legende { padding-bottom: 3px; font-size: var(--taille-petit); line-height: 1.3; }
.tuile-chiffre__pied { display: flex; justify-content: space-between; gap: var(--e-2); padding-top: var(--e-3); border-top: 1px solid var(--lin); font-size: var(--taille-mini); color: var(--encre-douce); }
a.tuile-chiffre { transition: border-color .15s, transform .15s; }
a.tuile-chiffre:hover { border-color: var(--accent); transform: translateY(-1px); }
.tuile-chiffre--pole { border-top: 4px solid var(--accent); }

/* 12. Boutons, champs, liens -------------------------------------------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); padding: 9px 16px; border: 1px solid var(--trait-fort); border-radius: 11px; background: var(--papier); color: var(--encre); font: 600 14.5px/1.2 var(--police-texte); text-decoration: none; cursor: pointer; white-space: nowrap; }
.bouton .picto { width: 17px; height: 17px; }
.bouton:hover { border-color: var(--encre-douce); }
.bouton--principal { border-color: var(--sauge); background: var(--sauge); color: #fff; }
.bouton--principal:hover { border-color: var(--sauge-fonce); background: var(--sauge-fonce); }
.bouton--clair { border-color: var(--ecru); background: var(--ecru); color: var(--foret); }
.bouton--discret { border-color: transparent; background: transparent; padding-inline: var(--e-2); color: var(--sauge-fonce); }
.bouton--petit { padding: 5px 11px; border-radius: 9px; font-size: 13px; }
.lien { display: inline-flex; align-items: center; gap: 4px; color: var(--sauge-fonce); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lien .picto { width: 15px; height: 15px; }
.lien:hover { text-decoration: underline; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ__libelle { font-size: var(--taille-petit); font-weight: 700; }
.champ__saisie { width: 100%; padding: 10px 13px; border: 1.5px solid var(--trait-fort); border-radius: 11px; background: var(--papier); color: var(--encre); font: 15px/1.4 var(--police-texte); }
.champ__saisie::placeholder { color: var(--encre-pale); }
.champ__saisie:focus { outline: none; border-color: var(--sauge); box-shadow: 0 0 0 3px rgba(94, 106, 76, .18); }
.champ__aide { font-size: var(--taille-mini); color: var(--encre-douce); }
.recherche { display: flex; align-items: center; gap: var(--e-2); padding: 0 13px; border: 1.5px solid var(--trait-fort); border-radius: 11px; background: var(--papier); color: var(--encre-pale); }
.recherche .champ__saisie { border: 0; padding-inline: 0; background: transparent; box-shadow: none; }

/* 13. Onglets et bascule ------------------------------------------------- */
.onglets { display: flex; flex-wrap: wrap; gap: 2px var(--e-5); border-bottom: 1.5px solid var(--trait); }
.onglet { display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1.5px; padding: var(--e-2) 0 10px; border-bottom: 2.5px solid transparent; color: var(--encre-douce); font-size: 15px; text-decoration: none; white-space: nowrap; }
.onglet small { font-size: 12.5px; color: var(--encre-pale); }
.onglet--actif { border-color: var(--sauge); color: var(--encre); font-weight: 700; }
.onglet--actif small { color: var(--sauge-fonce); }
.onglets__separe { width: 1px; margin: 8px 0 12px; background: var(--trait); }
.bascule { display: inline-flex; padding: 3px; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier-fonce); }
.bascule__choix { padding: 6px 14px; border-radius: 9px; color: var(--encre-douce); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bascule__choix small { font-weight: 400; }
.bascule__choix--actif { background: var(--papier); color: var(--encre); box-shadow: 0 1px 3px rgba(74, 58, 46, .16); }

/* 14. Tringle d'avancement et anneau (graphiques SVG) --------------------- */
.tringle { display: block; max-width: 100%; height: auto; }
.tringle__barre, .tringle__embout { stroke: var(--encre); fill: var(--encre); }
.tringle__anneau--a-faire { fill: none; stroke: var(--encre-pale); }
.tringle__anneau--en-cours { fill: none; stroke: var(--miel); }
.tringle__demi { fill: var(--miel); }
.tringle__anneau--fait { fill: var(--sauge); stroke: var(--sauge); }
.tringle--claire .tringle__barre, .tringle--claire .tringle__embout { stroke: var(--ecru); fill: var(--ecru); }
.tringle--claire .tringle__anneau--a-faire { stroke: rgba(245, 240, 230, .75); }
.tringle--claire .tringle__anneau--fait { fill: var(--ecru); stroke: var(--ecru); }

.anneau { display: block; flex: none; }
.anneau__piste { fill: none; stroke: var(--lin); }
.anneau__part { fill: none; }
.anneau__nombre { font: 500 34px var(--police-titre); fill: var(--encre); }
.anneau__legende { font: 700 10.5px var(--police-texte); letter-spacing: .14em; text-transform: uppercase; fill: var(--encre-douce); }
/* couleurs des parts : par pôle, par famille de dépense */
.part-produits { stroke: var(--sauge); }   .cle-produits { background: var(--sauge); }
.part-site { stroke: var(--miel); }        .cle-site { background: var(--miel); }
.part-marque { stroke: var(--terre); }     .cle-marque { background: var(--terre); }
.part-societe { stroke: var(--noyer); }    .cle-societe { background: var(--noyer); }
.part-marchandise { stroke: var(--foret); } .cle-marchandise { background: var(--foret); }
.part-pub { stroke: #A8B092; }             .cle-pub { background: #A8B092; }
.legende { display: flex; flex-direction: column; gap: var(--e-2); min-width: 0; }
.legende__ligne { display: flex; align-items: center; gap: var(--e-2); font-size: 14px; line-height: 1.3; }
.legende__cle { width: 11px; height: 11px; flex: none; border-radius: 3px; }
.legende__valeur { margin-left: auto; padding-left: var(--e-3); font: 500 18px var(--police-titre); white-space: nowrap; }

/* Jauge « prix face au prix visé » : la cible est une bande, le prix un point */
.jauge { display: block; width: 100%; height: 30px; overflow: visible; }
.jauge__piste { fill: var(--lin); }
.jauge__graduation { stroke: var(--papier); stroke-width: 2; }
.jauge__cible { fill: var(--miel); opacity: .85; }
.jauge__point { fill: var(--sauge); stroke: var(--papier); stroke-width: 3; }
.jauge__repere { fill: var(--papier); stroke: var(--terre); stroke-width: 3; }
.jauge__texte { font: 600 11.5px var(--police-texte); fill: var(--encre-pale); }

/* Barres (dépenses par mois, etc.) */
.barres__paye { fill: var(--sauge); }
.barres__prevu { fill: url(#hachure-prevu); stroke: var(--miel); stroke-width: 1.5; }
.barres__vide { fill: var(--lin); }
.barres__axe { stroke: var(--trait); }
.barres__texte { font: 600 12px var(--police-texte); fill: var(--encre-douce); }
.barres__valeur { font: 600 12.5px var(--police-texte); fill: var(--encre); }

/* 15. Fiche de tâche (jamais en listing : une fiche par tâche) ----------- */
.fiche { position: relative; display: block; overflow: hidden; padding: 11px 13px 10px 16px; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); box-shadow: 0 1px 0 rgba(74, 58, 46, .04); text-decoration: none; }
.fiche::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.fiche:hover { border-color: var(--trait-fort); }
.fiche__titre { font-size: 14.5px; font-weight: 600; line-height: 1.32; }
.fiche__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 7px; font-size: var(--taille-mini); color: var(--encre-douce); }
.fiche__pole { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-texte); font-weight: 600; }
.fiche__pole .picto { width: 14px; height: 14px; }
.fiche__echeance { display: inline-flex; align-items: center; gap: 4px; color: var(--terre-fonce); font-weight: 700; }
.fiche__echeance .picto, .fiche__notes .picto { width: 14px; height: 14px; }
.fiche__notes { display: inline-flex; align-items: center; gap: 3px; }
.fiche--en-cours { border-color: rgba(201, 161, 90, .55); }
.fiche--fait { border-style: dashed; background: transparent; box-shadow: none; }
.fiche--fait::before { display: none; }
.fiche--fait .fiche__titre { font-weight: 400; color: var(--encre-douce); }

/* 16. Fil de notes (idées et tâches) ------------------------------------- */
.fil { display: flex; flex-direction: column; gap: var(--e-3); }
.fil__titre { display: flex; align-items: center; gap: var(--e-2); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.fil__titre small { font-size: var(--taille-petit); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--encre-douce); }
.note { max-width: 86%; padding: 9px 14px 11px; border: 1px solid var(--trait); border-radius: 14px; border-top-left-radius: 4px; background: var(--papier); }
.note--vous { align-self: flex-end; border-color: rgba(94, 106, 76, .25); border-radius: 14px; border-top-right-radius: 4px; background: var(--sauge-pale); }
.note__tete { display: flex; align-items: baseline; gap: var(--e-2); }
.note__tete .prenom { font-size: 16.5px; color: var(--terre-fonce); }
.note--vous .note__tete .prenom { color: var(--sauge-fonce); }
.note__date { font-size: 12px; color: var(--encre-douce); }
.note__texte { margin-top: 2px; font-size: 14.5px; line-height: 1.45; }
.fil__vide { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-4); border: 1.5px dashed var(--trait-fort); border-radius: var(--r); color: var(--encre-douce); font-size: 14px; }
.fil__vide .picto { width: 26px; height: 26px; color: var(--encre-pale); }
.fil__ajout { display: flex; align-items: flex-end; gap: var(--e-2); padding: 7px 7px 7px 13px; border: 1.5px solid var(--trait-fort); border-radius: var(--r); background: var(--papier); }
.fil__ajout textarea { flex: 1; min-width: 0; padding: 4px 0; border: 0; background: transparent; resize: none; color: var(--encre); font: 14.5px/1.4 var(--police-texte); outline: none; }
.fil__ajout textarea::placeholder { color: var(--encre-pale); }

/* 17. Tableau ------------------------------------------------------------ */
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tableau th { padding: 0 var(--e-3) var(--e-2); border-bottom: 1.5px solid var(--trait); color: var(--encre-douce); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tableau td { padding: 11px var(--e-3); border-bottom: 1px solid var(--lin); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.tableau__principal { font-weight: 600; }
.tableau__second { display: block; font-size: var(--taille-mini); color: var(--encre-douce); font-weight: 400; }

/* 18. Logo de service (vrai logo en couleur, ou pastille au nom) --------- */
.logo-service { display: grid; place-items: center; width: 38px; height: 38px; flex: none; padding: 7px; border: 1px solid var(--trait); border-radius: 10px; background: #fff; }
.logo-service img { width: 100%; height: 100%; object-fit: contain; }
.logo-service--nom { padding: 0; border-color: transparent; background: var(--foret); color: var(--ecru); font: 700 13px var(--police-texte); letter-spacing: .02em; }
.logo-service--grand { width: 52px; height: 52px; padding: 10px; border-radius: 13px; }
.cadenas { display: inline-flex; align-items: center; gap: 3px; color: var(--sauge-fonce); font-size: 12px; font-weight: 700; }
.cadenas .picto { width: 15px; height: 15px; }

/* 19. Étoiles (importance d'une idée) ------------------------------------ */
.etoiles { display: inline-flex; gap: 1px; color: var(--miel); }
.etoiles .picto { width: 14px; height: 14px; }
.etoiles .etoile--eteinte { color: #DCCFB8; }

/* 20. Téléphone et tablette ---------------------------------------------- */
@media (max-width: 1100px) {
  .principal { padding: var(--e-6) var(--e-6) var(--e-7); }
  .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bandeau { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cadre { display: block; }
  .menu { position: sticky; top: 0; z-index: 20; height: auto; overflow: visible; }
  .menu__haut { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px var(--e-4); }
  .menu__logo { padding: 0; gap: 10px; }
  .menu__logo svg { width: 30px; height: 30px; }
  .menu__nom { font-size: 20px; }
  .menu__sous-nom { margin-top: 3px; font-size: 9.5px; }
  .menu__bouton { display: inline-flex; align-items: center; gap: var(--e-2); margin-left: auto; padding: 7px 13px; border: 1px solid rgba(245, 240, 230, .3); border-radius: 10px; color: var(--ecru); font-size: 15px; font-weight: 600; cursor: pointer; }
  .menu__corps { display: none; flex-basis: 100%; padding: var(--e-3) 0 var(--e-1); }
  .menu__case:checked ~ .menu__corps { display: flex; }
  .menu__lien--actif::before { left: calc(-1 * var(--e-4)); }
  .principal { padding: var(--e-4) var(--e-4) var(--e-7); }
  .bandeau { padding: var(--e-7) var(--e-5) var(--e-5); gap: var(--e-4); border-radius: var(--r-grand); }
  .bandeau::after { left: var(--e-5); right: var(--e-5); }
  .bandeau__embouts::before { left: calc(var(--e-5) - 6px); }
  .bandeau__embouts::after { right: calc(var(--e-5) - 6px); }
  .bandeau__tete { align-items: flex-start; gap: var(--e-3); }
  .bandeau__medaillon { width: 44px; height: 44px; }
  .bandeau__medaillon .picto { width: 22px; height: 22px; }
  .bandeau__titre, .bandeau--accueil .bandeau__titre { font-size: 32px; }
  .bandeau__phrase { font-size: 16px; }
  .bandeau__cote { flex-wrap: wrap; }
  .bandeau__chiffre { flex: 1 1 64px; min-width: 0; padding: var(--e-2) var(--e-3); }
  .bandeau__chiffre strong { font-size: 24px; }
  .grille--2, .grille--3, .grille--4 { grid-template-columns: minmax(0, 1fr); gap: var(--e-3); }
  .carte { padding: var(--e-4) var(--e-4) var(--e-5); border-radius: var(--r); }
  .carte__tete { flex-wrap: wrap; }
  .carte__titre { font-size: 19px; }
  .filet { margin: var(--e-7) 0 var(--e-3); }
  .filet__titre { white-space: normal; }
  .chiffre { font-size: 44px; }
  .onglets { flex-wrap: nowrap; overflow-x: auto; gap: var(--e-4); scrollbar-width: none; }
  .tableau--repliable thead { display: none; }
  .tableau--repliable tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--e-3); padding: var(--e-3) 0; border-bottom: 1px solid var(--lin); }
  .tableau--repliable td { padding: 0; border: 0; }
  .tableau--repliable .tableau__cache-mobile { display: none; }
}
