/* ==========================================================================
   L'habillage « doux » de l'ERP (12 novembre 2026), dans l'ambiance Celtis :
   un fond beige clair, du blanc, du vert sauge pour le menu et les boutons
   principaux ; les couleurs de l'accueil passent en pastel, le texte reste
   foncé pour bien se lire. Les grands titres en serif, comme Celtis.
   Chargé après habillage.css, seulement dans l'ERP (.shell) : les pages
   publiques ne changent pas. Pour revenir à l'habillage orange, il suffit de
   ne plus charger ce fichier.
   1.96.2 : la photo entière en haut du menu (sans le logo), « Appeler » et
   « Y aller » en vert sur les fiches.
   1.96.1 : les grands titres reprennent la police du menu (IBM Plex Sans),
   plus lisible, en gardant leur grande taille ; la photo de cuisine
   (cuisine-menu.jpg) remplace le visuel de la charte derrière le logo.
   ========================================================================== */

.shell {
  /* La palette */
  --d-fond: #ecebe6;
  --d-carte: #ffffff;
  --d-lin: #f6f4ee;
  --d-ligne: #e2dfd6;
  --d-ligne-forte: #cdc8bb;
  --d-encre: #2e3430;
  --d-encre-2: #57605a;
  --d-encre-3: #7d847e;
  --d-sauge: #546457;
  --d-sauge-fonce: #435046;
  --d-sauge-moyen: #7f907f;
  --d-sauge-pale: #e1e8de;
  --d-sauge-tres-pale: #f0f3ee;
  --d-chene: #a9875b;
  --d-chene-pale: #f2eadc;
  --d-terre: #a8603d;
  --d-terre-pale: #f5e3d8;
  --d-bleu: #4d6b84;
  --d-bleu-pale: #e2e9ef;
  --d-lavande: #66597f;
  --d-lavande-pale: #e9e5f0;
  --d-rose: #a64a3d;
  --d-rose-pale: #f6e1dc;

  /* Les couleurs de base de l'ERP, adoucies */
  --ink: var(--d-encre);
  --ink-2: var(--d-encre-2);
  --ink-3: var(--d-encre-3);
  --paper: var(--d-fond);
  --surface: var(--d-carte);
  --line: var(--d-ligne);
  --line-strong: var(--d-ligne-forte);
  --accent: var(--d-sauge);
  --accent-hover: var(--d-sauge-fonce);
  --accent-soft: var(--d-sauge-pale);
  --oak: var(--d-chene);
  --oak-soft: var(--d-chene-pale);
  --focus: 0 0 0 3px rgba(84, 100, 87, .3);
  --side: var(--d-sauge);
  --side-ink: #f3f1ea;
  --side-ink-2: #d3dbd0;
  --side-tuile: #617264;
  --side-tuile-hover: #6d7f70;
  --orange: var(--d-terre);
  --orange-fonce: #8f4f31;
  --orange-doux: var(--d-terre-pale);
  --vert-vif: var(--d-sauge);
  --vert-vif-fonce: var(--d-sauge-fonce);
  --vert-rdv: var(--d-sauge);
  --ombre-carte: 0 1px 2px rgba(60, 52, 36, .05), 0 6px 18px rgba(60, 52, 36, .06);
  background: linear-gradient(to right, var(--side) 232px, var(--d-fond) 232px);
}

/* Les grands titres : la police du menu, en grand. */
.shell h1, .shell .home-bonjour h1 { font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
.shell .page-head h1 { font-size: 1.85rem; }

/* ---------- Le menu de gauche : sauge, l'onglet ouvert couleur lin ---------- */

.shell .sidebar { background: var(--side); }
.shell .nav a { background: var(--side-tuile); color: #f6f4ee; border-color: rgba(255, 255, 255, .06); }
.shell .nav a .ico { color: #dfe6da; }
.shell .nav a.has-nb { background: var(--side-tuile); }
.shell .nav a:hover, .shell .nav a:focus-visible { background: var(--side-tuile-hover); color: #fff; border-color: rgba(255, 255, 255, .14); }
.shell .nav a[aria-current="page"] {
  background: var(--d-lin); color: var(--d-sauge-fonce); border-color: transparent;
  box-shadow: 0 4px 12px rgba(30, 40, 32, .22);
}
.shell .nav a[aria-current="page"] .ico { color: var(--d-sauge); }
.shell .nav-nb { background: rgba(255, 255, 255, .2); color: #fff; }
.shell .nav a[aria-current="page"] .nav-nb { background: var(--d-sauge); color: #fff; }
.shell .nav-admin a { background: #5b6b5e; }
.shell .nav-title { color: #e7dcc6; }
.shell .menu-ranger-btn[aria-pressed="true"] { background: var(--d-lin); border-color: var(--d-lin); color: var(--d-sauge-fonce); }
.shell .sidebar [data-menu] > a.is-glisse { box-shadow: 0 10px 24px rgba(0, 0, 0, .3), 0 0 0 2px var(--d-chene) !important; }
.shell .menu-dit { color: #e7efd9; }
/* En haut du menu : la photo de cuisine Celtis, entière et sans voile (1.96.2 :
   le logo n'y est plus), le nom dessous. */
.shell .brand-avec-logo {
  box-shadow: 0 2px 10px rgba(30, 40, 32, .25);
  min-height: 0; aspect-ratio: 794 / 674; padding: 0;
  background: url("cuisine-menu.jpg") center top / 100% auto no-repeat, #f7f5ef;
}
.shell .brand-avec-logo .brand-logo { display: none; }
.shell .brand-avec-logo .brand-sous { margin: auto 0 0; background: #f7f5ef; }

/* ---------- La barre du haut ---------- */

.shell .topbar { background: #f7f6f2; box-shadow: 0 1px 0 var(--d-ligne); }
.shell .search input { background: #fff; border-color: var(--d-ligne-forte); }
.shell .search input:focus { border-color: var(--d-sauge); }
.shell .btn-quick { box-shadow: 0 1px 3px rgba(60, 52, 36, .1); font-weight: 600; }
/* Les boutons du haut en pastel, texte foncé ; « Prendre RDV » en sauge plein, comme le bouton de Celtis. */
.shell .btn-quick.btn-primary { background: var(--d-sauge-pale); border-color: #c9d5c5; color: var(--d-sauge-fonce); }
.shell .btn-quick.btn-primary:hover { background: #d3dece; border-color: var(--d-sauge-moyen); color: var(--d-sauge-fonce); }
.shell .btn-quick[href="/devis/nouveau"] { background: var(--d-chene-pale); border-color: #e2d3ba; color: #6a4e2a; }
.shell .btn-quick[href="/devis/nouveau"]:hover { background: #eadfca; border-color: var(--d-chene); color: #5a4122; }
.shell .btn-quick.btn-appel { background: var(--d-terre-pale); border-color: #ebc9b6; color: #87452a; }
.shell .btn-quick.btn-appel:hover { background: #f0d5c5; border-color: var(--d-terre); color: #7a3c22; }
.shell .btn-quick[href="/prendre-rdv"] { background: var(--d-sauge); border-color: var(--d-sauge); color: #fff; }
.shell .btn-quick[href="/prendre-rdv"]:hover { background: var(--d-sauge-fonce); border-color: var(--d-sauge-fonce); color: #fff; }

/* « MaJ » et « Se déconnecter » : des disques clairs cerclés de couleur douce. */
.shell .btn-out, .shell .btn-maj {
  background: #fbfaf6; box-shadow: 0 1px 3px rgba(60, 52, 36, .18);
}
.shell .btn-out::before, .shell .btn-maj::before { background: radial-gradient(circle at 50% 35%, #ffffff, #f1efe8); box-shadow: none; }
.shell .btn-out { --neon: #b8735a; --neon-doux: rgba(184, 115, 90, .3); color: #a5583d; }
.shell .btn-out svg { filter: none; }
.shell .btn-maj { --neon: #6f8a6c; --neon-doux: rgba(111, 138, 108, .3); color: #4c6449; text-shadow: none; }
.shell .btn-out:hover, .shell .btn-out:focus-visible, .shell .btn-maj:hover, .shell .btn-maj:focus-visible, .shell .btn-maj[aria-current="page"] {
  box-shadow: 0 0 0 3px var(--neon-doux), 0 2px 6px rgba(60, 52, 36, .2);
}
.shell .btn-maj:hover, .shell .btn-maj:focus-visible, .shell .btn-maj[aria-current="page"] { color: #3e553c; }
.shell .btn-out:hover, .shell .btn-out:focus-visible { color: #8f4a32; }
.shell .btn-maj.is-nouvelle { animation: maj-doux 1.1s ease-in-out infinite; }
@keyframes maj-doux {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 138, 108, .5), 0 1px 3px rgba(60, 52, 36, .18); }
  50% { box-shadow: 0 0 0 7px rgba(111, 138, 108, .22), 0 1px 3px rgba(60, 52, 36, .18); }
}

/* ---------- Les onglets et les choix cochés : sauge au lieu de noir ---------- */

.shell .tabs a[aria-current="page"],
.shell .nl-trouver-onglets button[aria-selected="true"],
.shell .rs-puce input:checked + span,
.shell .j-cat input:checked + span { background: var(--d-sauge); border-color: var(--d-sauge); color: #fff; }
.shell .reglages-menu a[aria-current="true"], .shell .reglages-menu a[aria-current="true"]:hover,
.shell .att-filtres a[aria-current="true"] { background: var(--d-sauge-pale); border-color: #c3cfbf; color: var(--d-sauge-fonce); }
.shell .badge-presc, .shell .aff-prive, .shell .badge.fact-verrou { background: var(--d-sauge-fonce); color: #f0e3c8; }
.shell .cdc-code:not([class*="cdc-t"]), .shell .ent-qui-moi { background: var(--d-sauge-fonce); color: #fff; }

/* ---------- Sur les fiches : « Appeler » et « Y aller » en vert ---------- */

.shell .btn-appeler { background: #3f7a4a; box-shadow: 0 2px 6px rgba(47, 92, 56, .28); }
.shell .btn-appeler:hover, .shell .btn-appeler:focus-visible { background: #33653d; }
.shell .btn-yaller { background: #5f8a55; box-shadow: 0 2px 6px rgba(47, 92, 56, .22); }
.shell .btn-yaller:hover, .shell .btn-yaller:focus-visible { background: #4e7546; }
.shell .yaller-alt { background: var(--d-sauge-tres-pale); border-color: #c6d6c1; color: #3c6236; }
.shell .yaller-alt:hover, .shell .yaller-alt:focus-visible { background: var(--d-sauge-pale); color: #2f5029; }
.shell .adr-gps .ico { color: #5f8a55; }

/* ---------- Les codes couleur gardés, mais en doux ---------- */

/* Le violet des rendez-vous et des rôles : lavande. */
.shell .btn.btn-violet-plein { background: var(--d-lavande-pale); border-color: #cdc3df; color: #4a3d66; }
.shell .btn.btn-violet-plein:hover, .shell .btn.btn-violet-plein:focus-visible { background: #ddd6ea; border-color: var(--d-lavande); color: #3f3459; }
.shell .btn.btn-violet { color: #5e4f80; border-color: #c4b8da; }
.shell .btn.btn-violet:hover, .shell .btn.btn-violet:focus-visible { background: #f3f0f8; color: #4a3d66; border-color: var(--d-lavande); }
.shell .ecrire-lienrdv, .shell .ind-recap { border-left-color: #b4a7cf; }
.shell .ecrire-lienrdv h2 { color: #5e4f80; }
.shell .rdv-titre { background: var(--d-lavande-pale); border-color: #cdc3df; color: #4a3d66; }
.shell .rdv-titre-jour, .shell .rdv-titre.is-auj { background: var(--d-lavande); border-color: var(--d-lavande); color: #fff; }
.shell .roles-fiche { border-left-color: #b4a7cf; }
.shell .roles-titre { color: #6d5b8f; }
.shell .roles-choix .choice.is-ici input:checked + span { background: var(--d-lavande-pale); border-color: #b4a7cf; color: #4a3d66; }
.shell .chiffres-demo span { border-color: #b4a7cf; color: #5e4f80; }
.shell .chiffres-demo input:checked + span { background: var(--d-lavande); border-color: var(--d-lavande); }
/* Le rouge « enregistrer » : terre cuite douce. */
.shell .btn-enreg { border-color: #e6c2b6; color: #9b4a38; }
.shell .btn-enreg .ico { color: #c0705c; }
.shell .btn-enreg:hover { background: #c0705c; border-color: #c0705c; color: #fff; }
.shell .btn-danger { border-color: #e6c2b6; }

/* ---------- Les blocs et les tableaux ---------- */

.shell .block, .shell .table-wrap { border-color: var(--d-ligne); box-shadow: var(--ombre-carte); }
.shell .table th { background: var(--d-lin); }
.shell .table tbody tr:hover { background: #faf9f5; }
.shell .input-unit span { background: var(--d-lin); }

/* ---------- Accueil : bonjour et semaine ---------- */

.shell .home-bonjour { border-color: #e6dccb; background: linear-gradient(135deg, #fbf8f2, #f1e9dc); }
.shell .home-bonjour h1 { font-size: 2rem; color: #3a3f39; }
.shell .home-bonjour p { color: var(--d-encre-2); }
.shell .home-bonjour-ico { color: var(--d-chene); box-shadow: inset 0 0 0 2px #e3d3b8; }
.shell .semaine { border-color: #d3ddd0; background: linear-gradient(135deg, #f5f7f2, #e6ede2); }
.shell .semaine-num > :first-child, .shell .semaine-num > a.semaine-cal { color: var(--d-sauge); font-family: var(--font); font-weight: 600; font-size: 1.95rem; }
.shell .semaine-liste li { border-left-color: var(--d-sauge-moyen); }

/* ---------- Accueil : les quatre grandes cartes, en pastel ---------- */

.shell .chiffres-haut .chiffre { color: var(--d-encre); border: 1px solid transparent; box-shadow: var(--ombre-carte); }
.shell .chiffres-haut .chiffre:hover { box-shadow: 0 8px 22px rgba(60, 52, 36, .12); }
.shell .chiffres-haut .chiffre strong, .shell .chiffres-haut .chiffre .chiffre-unite { color: inherit; }
.shell .chiffres-haut .chiffre .chiffre-lib { color: inherit; opacity: .85; }
.shell .chiffres-haut .chiffre > .ico { color: inherit; opacity: .8; }
.shell .chiffres-haut .chiffre .chiffre-sous { background: rgba(255, 255, 255, .7); color: inherit; }
.shell .chiffres-haut .chiffre-ca { background: linear-gradient(135deg, #e9eff4, #d9e4ec); border-color: #cfdbe5; color: #2f4b62; }
.shell .chiffres-haut .chiffre-mb { background: linear-gradient(135deg, #eef3eb, #dde8d9); border-color: #cddbc9; color: #34503a; }
.shell .chiffres-haut .chiffre-app { background: linear-gradient(135deg, #f8eee5, #f1dfd0); border-color: #ead2bf; color: #74431f; }
.shell .chiffres-haut .chiffre-devis { background: linear-gradient(135deg, #f0edf5, #e3ddec); border-color: #d8d0e5; color: #4d4166; }
.shell .chiffres-haut .chiffre-devis .chiffre-sous { background: none; color: inherit; }
.shell .chiffres-coche input { border-color: var(--d-sauge-moyen); }
.shell .chiffres-coche input:checked { background-color: var(--d-sauge-moyen); }

/* ---------- Accueil : les petites tuiles blanches, icônes adoucies ---------- */

.shell .chiffre { border-color: var(--d-ligne); }
.shell .chiffres-bas .chiffre:hover { border-color: var(--d-ligne-forte); }
.shell .chiffre-prospects > .ico { color: var(--d-bleu); }
.shell .chiffre-clients > .ico { color: var(--d-sauge); }
.shell .chiffre-apporteurs > .ico { color: var(--d-terre); }
.shell .chiffre-coef > .ico { color: var(--d-chene); }
.shell .chiffre-fid > .ico { color: #5d8379; }
.shell .chiffre-news > .ico { color: var(--d-terre); }
.shell .chiffres-bas .chiffre strong, .shell .chiffre-hva, .shell .chiffre-news .chiffre-spontanes { color: var(--d-encre); }
.shell .chiffre-lib { color: var(--d-encre-2); }

/* ---------- Accueil : la jauge, du rose doux au vert sauge ---------- */

.shell .jauge { border-color: var(--d-ligne); }
.shell .frise::before { background: #efece5; }
.shell .frise-e { color: #3b342c; }
.shell .frise-e1 { --fc: #e7b3aa; } .shell .frise-e2 { --fc: #ecbfa5; } .shell .frise-e3 { --fc: #efcb9f; }
.shell .frise-e4 { --fc: #f0d59d; } .shell .frise-e5 { --fc: #e8dea4; color: #3b342c; }
.shell .frise-e6 { --fc: #cbdcae; } .shell .frise-e7 { --fc: #b2cfa8; }
.shell .frise-e.is-avenir { background: color-mix(in srgb, var(--fc) 38%, #fff); color: #6c665c; }
.shell .frise-e.is-ici { color: #2e2a24; box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--fc) 70%, #6b5b45), 0 4px 10px rgba(60, 52, 36, .14); }
.shell .frise-e.is-ici::after { border-top-color: color-mix(in srgb, var(--fc) 70%, #6b5b45); }
.shell .jauge-rouge .jauge-msg { color: #a24a3a; } .shell .jauge-orange .jauge-msg { color: #a3602f; }
.shell .jauge-jaune .jauge-msg { color: #876a1f; } .shell .jauge-vert .jauge-msg { color: #4f6e4b; }

/* ---------- Accueil : ce que disent les clients ---------- */

.shell .retours-acc { border-color: var(--d-ligne); }
.shell .retours-acc-titre > .ico { color: var(--d-sauge); }
.shell .retours-acc-moins .retours-acc-lib { color: #a85a40; }
.shell .retours-acc-plus .retours-acc-lib { color: #577556; }
.shell .retours-acc-moins li { border-left-color: #e3b5a3; }
.shell .retours-acc-plus li { border-left-color: #b5ccae; }

/* ---------- Accueil : « À faire en priorité » ---------- */

.shell .priorites-tete h2 { font-family: var(--font); font-weight: 600; font-size: 1.45rem; }
.shell .priorites-tete h2 .ico { color: var(--d-chene); fill: #ecdcc0; }
.shell .prio-lien { border-color: #d3ddd0; }
.shell .prio-nb { border-color: var(--d-sauge-moyen); color: var(--d-sauge-fonce); }
.shell .prio-action { background: var(--d-sauge-pale); color: var(--d-sauge-fonce); box-shadow: none; border: 1px solid #c9d5c5; }
.shell .prio.is-urgent .prio-lien { border-color: #ebc3b8; background: linear-gradient(135deg, #fff, #fbf1ee); }
.shell .prio.is-urgent .prio-nb { border-color: #c97b68; color: #9b4434; }
.shell .prio.is-urgent .prio-action { background: var(--d-rose-pale); color: #8e3b2d; border-color: #ebc3b8; }
.shell .prio.is-important .prio-lien { border-color: #ecd3bd; background: linear-gradient(135deg, #fff, #fcf6ef); }
.shell .prio.is-important .prio-nb { border-color: #c99268; color: #8a5530; }
.shell .prio.is-important .prio-action { background: var(--d-terre-pale); color: #84482a; border-color: #ebc9b6; }

/* ---------- Téléphone et impression ---------- */

@media (max-width: 900px) {
  .shell { background: var(--d-fond); }
}
@media print {
  .shell .chiffres-haut .chiffre { background: #fff !important; color: #000; }
}
.shell .rdv-titre.is-auj .rdv-titre-jour { background: #fff; color: #4a3d66; }
