:root {
  color-scheme:dark;
  --bg:#071827;
  --panel:#0d2236;
  --panel-raised:#112a40;
  --text:#f2f6fc;
  --muted:#a7b9cb;
  --line:#244057;
  --primary:#b7dfc7;
  --primary-text:#102b20;
  --accent:#D6AD55;
  --shadow:0 8px 30px #00000013;
  --sidebar:#091d2e;
  --focus:#b7dfc7;
}
:root[data-theme=light] {
  color-scheme:light;
  --bg:#f2f5f8;
  --panel:#fff;
  --panel-raised:#f7f9fb;
  --text:#142b3e;
  --muted:#52677b;
  --line:#d9e2e9;
  --primary:#155e3b;
  --primary-text:#fff;
  --shadow:0 6px 24px #142b3e07;
  --sidebar:#fff;
  --focus:#155e3b;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input,textarea {
  font:inherit;
}
button,.button {
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
  opacity:.6;
}
button,a,input,textarea {
  touch-action:manipulation;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px;
}
button {
  border:0;
}
input,textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--bg);
  color:var(--text);
  padding:12px 14px;
  min-height:47px;
}
textarea {
  min-height:100px;
  resize:vertical;
}
label {
  display:block;
  font-weight:600;
  margin:19px 0 7px;
}
p {
  margin:0 0 16px;
  color:var(--muted);
}
h1,h2,h3 {
  line-height:1.25;
  margin:0;
  color:var(--text);
  letter-spacing:-.025em;
}
h1 {
  font-size:36px;
  font-weight:650;
}
h2 {
  font-size:20px;
  font-weight:650;
}
h3 {
  font-size:16px;
  font-weight:600;
}
em {
  font-style:normal;
  color:var(--primary);
}
small,.fine {
  font-size:12px;
  color:var(--muted);
}
[hidden] {
  display:none!important;
}
.skip {
  position:fixed;
  top:-80px;
  left:20px;
  padding:12px;
  background:var(--primary);
  color:var(--primary-text);
  z-index:100;
}
.skip:focus {
  top:10px;
}
.primary,.secondary,.danger,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-height:46px;
  border-radius:9px;
  padding:11px 19px;
  font-size:14px;
  font-weight:650;
}
.primary {
  background:var(--primary);
  color:var(--primary-text);
}
.secondary {
  background:var(--panel-raised);
  border:1px solid var(--line);
  color:var(--text);
}
.danger {
  color:var(--text);
  background:var(--panel-raised);
  border:1px solid #b14d56;
}
.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
}
.eyebrow {
  display:block;
  font-size:10px;
  font-weight:750;
  letter-spacing:.18em;
  color:var(--primary);
  margin-bottom:12px;
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:13px;
  line-height:1.4;
  letter-spacing:.12em;
  font-weight:500;
}
.brand strong {
  display:block;
  font-weight:750;
  letter-spacing:.14em;
}
.brand img {
  flex-shrink:0;
}
.workspace {
  display:flex;
  min-height:100vh;
}
.sidebar {
  width:252px;
  position:fixed;
  inset:0 auto 0 0;
  z-index:30;
  background:var(--sidebar);
  border-right:1px solid var(--line);
  padding:32px 18px 20px;
  display:flex;
  flex-direction:column;
  overflow:auto;
}
.sidebar .brand {
  margin:0 8px 34px;
}
.space-label {
  font-size:9px;
  color:var(--muted);
  letter-spacing:.18em;
  margin:0 15px 16px;
}
.sidebar nav a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  margin:4px 0;
  border-radius:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:550;
  min-height:45px;
}
.sidebar nav a>span:first-child {
  font-size:20px;
  line-height:1;
  width:22px;
  flex-shrink:0;
  text-align:center;
}
.sidebar nav a:hover,.sidebar nav a[aria-current] {
  color:var(--text);
  background:var(--panel-raised);
}
.sidebar nav a[aria-current] {
  box-shadow:inset 3px 0 var(--primary);
}
.sidebar nav .universe-icon {
  color:color-mix(in srgb,var(--accent) 75%,var(--text));
}
.nav-label {
  font-size:9px;
  font-weight:650;
  letter-spacing:.16em;
  margin:29px 14px 10px;
}
.sidebar small {
  font-size:7px;
  border:1px solid var(--line);
  padding:3px 5px;
  border-radius:4px;
  margin-left:auto;
  white-space:nowrap;
}
.sidebar-foot {
  margin-top:auto;
  padding:40px 14px 0;
  font-size:11px;
  color:var(--muted);
}
.sidebar-foot p {
  font-size:10px;
  margin:8px 0 0;
}
.privacy-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--primary);
  margin-right:6px;
}
.main-wrap {
  width:calc(100% - 252px);
  margin-left:252px;
}
.topbar {
  height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 38px;
  border-bottom:1px solid var(--line);
  background:var(--sidebar);
}
.breadcrumb {
  font-size:12px;
  color:var(--muted);
}
.breadcrumb span {
  margin:0 14px;
  color:var(--muted);
}
.breadcrumb strong {
  color:var(--text);
  font-weight:550;
}
.top-actions {
  display:flex;
  align-items:center;
  gap:13px;
}
.local-tag {
  font-size:8px;
  letter-spacing:.12em;
  color:var(--muted);
  margin-right:8px;
}
.icon-button {
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:var(--muted);
  border-radius:8px;
  font-size:22px;
}
.icon-button:hover {
  background:var(--panel-raised);
  color:var(--text);
}
.profile-avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  height:37px;
  width:37px;
  background:var(--panel-raised);
  font-size:9px;
  font-weight:700;
}
.lock-button {
  background:transparent;
  color:var(--muted);
  font-size:11px;
  min-height:44px;
  padding:0 6px;
}
.mobile-menu {
  display:none;
}
#main {
  padding:40px 38px 30px;
  max-width:1660px;
  margin:auto;
  min-height:calc(100vh - 160px);
}
#main:focus {
  outline:none;
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:32px;
}
.page-heading p {
  margin-top:13px;
  margin-bottom:0;
  font-size:13px;
}
.phase-pill {
  border:1px solid var(--line);
  border-radius:20px;
  padding:7px 13px;
  font-size:9px;
  font-weight:650;
  white-space:nowrap;
  color:var(--primary);
  background:var(--panel);
}
.phase-pill span {
  color:var(--muted);
  font-weight:400;
}
.kpi-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:38px;
}
.kpi {
  padding:23px;
  position:relative;
  min-height:159px;
}
.kpi p {
  font-size:11px;
  margin-bottom:6px;
  padding-right:20px;
}
.kpi strong {
  display:block;
  font-size:34px;
  font-weight:500;
  line-height:1.5;
}
.kpi small {
  font-size:9px;
}
.kpi-icon {
  position:absolute;
  right:21px;
  top:18px;
  font-size:22px;
  color:var(--primary);
}
.section-title {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:15px;
  margin:0 0 19px;
}
.section-title h2 {
  font-size:18px;
}
.section-title>span {
  font-size:11px;
  color:var(--muted);
}
.universe-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:38px;
}
.universe-card {
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:180px;
  padding:23px 20px;
  border-radius:13px;
  border:1px solid color-mix(in srgb,var(--accent) 36%,var(--line));
  background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 16%,var(--panel)),var(--panel));
  transition:transform .18s,border-color .18s;
}
.universe-card:hover,.module-card:hover {
  transform:translateY(-3px);
  border-color:var(--accent);
}
.universe-letter {
  color:color-mix(in srgb,var(--accent) 75%,var(--text));
  font-size:9px;
  font-weight:700;
  letter-spacing:.15em;
  position:relative;
}
.universe-card h3 {
  font-size:18px;
  max-width:160px;
  margin:17px 0 21px;
  z-index:1;
}
.universe-card>span:last-child {
  margin-top:auto;
  font-size:10px;
  color:var(--muted);
  z-index:1;
}
.universe-card b {
  float:right;
  color:var(--text);
  font-size:14px;
}
.universe-watermark {
  position:absolute;
  font-size:100px;
  right:-4px;
  bottom:21px;
  color:var(--accent);
  opacity:.12;
  line-height:1;
}
.module-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:28px;
}
.module-card {
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  padding:19px;
  min-height:166px;
  transition:transform .18s,border-color .18s;
  box-shadow:var(--shadow);
}
.module-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:17px;
}
.tile-icon {
  height:34px;
  width:34px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:color-mix(in srgb,var(--accent) 12%,var(--panel));
  color:color-mix(in srgb,var(--accent) 75%,var(--text));
  font-size:24px;
}
.status {
  border:1px solid var(--line);
  background:var(--panel-raised);
  border-radius:20px;
  padding:3px 8px;
  font-size:9px;
  color:var(--muted);
  white-space:nowrap;
}
.module-card h3 {
  font-size:14px;
  line-height:1.45;
}
.module-bottom {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px;
  margin-top:auto;
  padding-top:16px;
}
.module-bottom span:last-child {
  font-size:16px;
  line-height:1;
  color:var(--muted);
}
.team-banner {
  display:flex;
  align-items:center;
  gap:20px;
  padding:26px;
  margin-top:32px;
}
.team-banner .tile-icon {
  height:48px;
  width:48px;
  flex-shrink:0;
}
.team-banner h2 {
  font-size:18px;
}
.team-banner p {
  font-size:12px;
  margin:6px 0 0;
}
.team-banner>span:last-child {
  font-size:12px;
  margin-left:auto;
  color:var(--primary);
}
footer {
  max-width:1660px;
  margin:auto;
  padding:24px 38px;
  display:flex;
  gap:18px;
  font-size:9px;
  letter-spacing:.1em;
  color:var(--muted);
  border-top:1px solid var(--line);
}
footer span {
  letter-spacing:0;
}
footer span:last-child {
  margin-left:auto;
}
.login {
  max-width:510px;
  margin:55px auto;
  padding:20px;
}
.login>.brand {
  margin-bottom:55px;
}
.login>.eyebrow {
  margin-top:20px;
}
.login h1 {
  font-size:54px;
}
.login .intro {
  font-size:16px;
  margin:20px 0 25px;
}
.login .panel {
  padding:29px;
}
.login h2 {
  margin-bottom:12px;
}
.login .panel p {
  font-size:13px;
}
.login .primary {
  width:100%;
  margin-top:24px;
}
.login>.fine {
  text-align:center;
  margin-top:22px;
}
.check {
  display:flex;
  align-items:flex-start;
  gap:11px;
  font-size:13px;
  font-weight:400;
}
.check input {
  width:18px;
  height:18px;
  min-height:18px;
  flex-shrink:0;
  margin-top:2px;
  accent-color:var(--primary);
}
#login-error {
  color:var(--text);
  margin:15px 0 0;
}
.back-link {
  display:inline-block;
  color:var(--muted);
  font-size:13px;
  padding:0 0 25px;
}
.module-detail {
  max-width:960px;
  margin-top:14px;
}
.module-detail h1 {
  margin-bottom:20px;
}
.module-detail>p {
  margin:25px 0;
}
.detail-meta {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding:27px;
  gap:24px;
}
.detail-meta span {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}
.detail-meta strong {
  font-size:14px;
  font-weight:550;
}
.empty-state {
  padding:55px 24px;
  text-align:center;
  margin:25px 0;
  border-style:dashed;
}
.empty-state h2 {
  margin:17px 0 10px;
}
.empty-state p {
  font-size:13px;
}
.text-link {
  display:inline-block;
  color:var(--primary);
  font-size:13px;
  margin:16px 0;
}
.health-warning {
  border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));
  background:color-mix(in srgb,var(--accent) 6%,var(--panel));
  padding:19px 23px;
  border-radius:10px;
  font-size:13px;
  line-height:1.7;
  margin-bottom:27px;
}
.specialist-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.specialist {
  padding:25px;
  display:flex;
  flex-direction:column;
}
.specialist-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
}
.hex-avatar {
  clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  width:60px;
  height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:color-mix(in srgb,var(--accent) 22%,var(--panel));
  color:color-mix(in srgb,var(--accent) 75%,var(--text));
  font-size:17px;
  font-weight:700;
}
.specialist h2 {
  font-size:17px;
  line-height:1.4;
  margin-bottom:12px;
}
.specialist p {
  font-size:12px;
  line-height:1.8;
}
.pro-slot {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:var(--muted);
  gap:10px;
}
.team-lead {
  grid-column:1/-1;
  border-color:color-mix(in srgb,var(--accent) 70%,var(--line));
  background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 8%,var(--panel)),var(--panel));
}
.lead-label {
  font-size:10px;
  color:var(--primary);
  letter-spacing:.15em;
  font-weight:700;
  margin-bottom:18px;
}
.team-lead .specialist-top {
  margin-bottom:12px;
}
.assistant-panel {
  max-width:760px;
  padding:38px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.assistant-symbol {
  font-size:55px;
  color:var(--primary);
  line-height:1;
  margin-bottom:22px;
}
.assistant-panel h2 {
  font-size:27px;
  margin:22px 0;
}
.assistant-panel p {
  font-size:14px;
  line-height:1.9;
}
.assistant-panel .primary {
  margin-top:20px;
}
.profile-layout {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.profile-panel {
  padding:29px;
}
.profile-panel h2 {
  margin-bottom:14px;
}
.profile-panel p {
  font-size:13px;
}
.profile-side {
  display:grid;
  gap:24px;
}
.profile-panel fieldset {
  margin:26px 0;
  padding:19px;
  border:1px solid var(--line);
  border-radius:8px;
}
.profile-panel legend {
  font-size:12px;
  font-weight:600;
  padding:0 6px;
}
.profile-panel fieldset p {
  font-size:12px;
}
.profile-panel .check {
  margin:14px 0;
}
.profile-panel .primary {
  margin-top:5px;
}
.profile-panel button {
  max-width:100%;
  white-space:normal;
}
.danger-zone h2 {
  color:var(--text);
}
#save-status {
  margin:16px 0 0;
  color:var(--primary);
}
#toast {
  position:fixed;
  z-index:100;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:var(--text);
  color:var(--bg);
  padding:14px 22px;
  border-radius:12px;
  box-shadow:0 8px 24px #0003;
  font-size:13px;
  max-width:calc(100vw - 32px);
  width:max-content;
}
#toast:empty {
  display:none;
}
.loading {
  margin:25vh auto;
  text-align:center;
  letter-spacing:.12em;
}
.loading span {
  display:block;
  font-size:12px;
  margin-top:15px;
  color:var(--muted);
  letter-spacing:0;
}
@media(min-width:1600px) {
  #main {
    padding:48px 55px;
  }
  .topbar {
    padding:0 55px;
  }
  .module-grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
@media(max-width:1190px) {
  .sidebar {
    width:220px;
    padding-left:12px;
    padding-right:12px;
  }
  .main-wrap {
    width:calc(100% - 220px);
    margin-left:220px;
  }
  #main {
    padding:30px 25px;
  }
  .topbar {
    padding:0 25px;
  }
  .module-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .universe-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .universe-card {
    min-height:160px;
  }
  .kpi-grid {
    gap:12px;
  }
  .kpi {
    padding:18px;
  }
  .kpi-icon {
    right:13px;
  }
  .kpi p {
    max-width:125px;
  }
  .page-heading {
    align-items:flex-start;
  }
  .phase-pill span {
    display:none;
  }
  .specialist-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  h1 {
    font-size:30px;
  }
  .profile-layout {
    grid-template-columns:1fr;
  }
}
@media(max-width:850px) {
  .sidebar {
    transform:translateX(-100%);
    width:270px;
    transition:transform .2s;
  }
  .main-wrap {
    width:100%;
    margin-left:0;
  }
  .menu-open .sidebar {
    transform:translateX(0);
  }
  .mobile-menu {
    display:flex;
  }
  .topbar {
    height:70px;
    gap:12px;
  }
  .top-actions {
    margin-left:auto;
    gap:8px;
  }
  .breadcrumb {
    font-size:11px;
  }
  .breadcrumb>span {
    margin:0 8px;
  }
  .local-tag {
    display:none;
  }
  .scrim {
    position:fixed;
    inset:0;
    background:#0009;
    z-index:29;
  }
  .kpi-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .kpi p {
    max-width:none;
  }
  .page-heading .phase-pill {
    display:none;
  }
  footer {
    padding:24px;
  }
  .detail-meta {
    grid-template-columns:1fr;
  }
  .menu-open {
    overflow:hidden;
  }
}
@media(max-width:540px) {
  #main {
    padding:28px 20px;
  }
  .topbar {
    padding:0 14px;
  }
  .breadcrumb {
    display:none;
  }
  .top-actions {
    gap:4px;
  }
  .icon-button {
    width:42px;
  }
  .lock-button {
    font-size:10px;
    padding:0 8px;
  }
  .profile-avatar {
    margin:0 6px;
  }
  .page-heading {
    margin-bottom:25px;
  }
  .page-heading h1 {
    font-size:29px;
    line-height:1.25;
  }
  .page-heading p {
    font-size:13px;
    line-height:1.8;
    margin-top:12px;
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:.15em;
  }
  .kpi-grid {
    gap:12px;
    margin-bottom:30px;
  }
  .kpi {
    min-height:145px;
    padding:18px 16px;
  }
  .kpi p {
    font-size:10px;
    padding-right:18px;
    min-height:32px;
  }
  .kpi strong {
    font-size:30px;
  }
  .kpi small {
    font-size:8px;
  }
  .section-title {
    display:block;
    margin-bottom:17px;
  }
  .section-title h2 {
    font-size:18px;
    margin-bottom:5px;
  }
  .section-title>span {
    font-size:11px;
  }
  .universe-grid {
    grid-template-columns:1fr;
    gap:13px;
    margin-bottom:30px;
  }
  .universe-card {
    min-height:150px;
    padding:22px;
  }
  .universe-card h3 {
    max-width:220px;
    margin:13px 0 18px;
    font-size:20px;
  }
  .universe-watermark {
    right:20px;
    bottom:18px;
  }
  .module-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .module-card {
    padding:15px;
    min-height:167px;
  }
  .module-card h3 {
    font-size:13px;
  }
  .module-top {
    gap:6px;
  }
  .status {
    font-size:8px;
    padding:3px 7px;
  }
  .tile-icon {
    width:29px;
    height:29px;
    font-size:21px;
  }
  .module-bottom {
    font-size:9px;
  }
  .team-banner {
    padding:21px;
    gap:14px;
    flex-wrap:wrap;
    margin-top:25px;
  }
  .team-banner>div {
    flex:1;
  }
  .team-banner h2 {
    font-size:16px;
  }
  .team-banner>span:last-child {
    margin:0 0 0 62px;
  }
  .team-banner p {
    font-size:11px;
  }
  footer {
    font-size:8px;
    gap:10px;
    flex-wrap:wrap;
  }
  footer span:last-child {
    margin-left:0;
    width:100%;
  }
  .specialist-grid {
    grid-template-columns:1fr;
  }
  .specialist {
    padding:24px;
  }
  .assistant-panel,.profile-panel {
    padding:23px;
  }
  .assistant-panel h2 {
    font-size:23px;
  }
  .profile-panel fieldset {
    padding:14px;
  }
  .login {
    margin:22px auto;
  }
  .login>.brand {
    margin-bottom:35px;
  }
  .login h1 {
    font-size:46px;
  }
  .login .panel {
    padding:23px;
  }
  .login .intro {
    font-size:14px;
  }
  .health-warning {
    padding:18px;
  }
  .profile-layout {
    gap:18px;
  }
  .module-detail h1 {
    font-size:30px;
  }
  .module-detail>.status {
    font-size:11px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

.hex-avatar .face{width:100%;height:100%;object-fit:cover;border-radius:inherit;clip-path:inherit;display:block}
.specialist .role{margin:-.25rem 0 .5rem;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;color:var(--accent,#42B8FF)}

/* ===== Accueil format « Livre de l'usine » (votrebeaulieu.com), Daniel 2026-11-01 ===== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.livre-head h1{font-size:1.6rem;margin:0 0 .35rem;display:flex;gap:.5rem;align-items:center}
.livre-head p{margin:0 0 1.6rem;font-weight:700;font-size:.85rem;color:var(--muted)}
.livre-label{margin:1.6rem 0 .7rem;font-size:.72rem;font-weight:700;letter-spacing:.22em;color:var(--muted)}
.livre-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.livre-tile{min-height:92px;border-radius:6px;padding:12px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;text-align:center;color:#fff;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s,filter .15s}
.livre-tile:hover,.livre-tile:focus-visible{transform:translateY(-2px);filter:brightness(1.1)}
.livre-tile strong{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em;line-height:1.25}
.livre-tile small{font-size:.7rem;font-weight:600;opacity:.92;line-height:1.3}
.livre-pic{font-size:1.35rem;line-height:1;margin-bottom:4px}
.livre-face{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.85);display:block}
.c0{background:#13798a}.c1{background:#e8496e}.c2{background:#1d2a44}.c3{background:#2352df}
.c4{background:#16804e}.c5{background:#c2185b}.c6{background:#6d2fe0}.c7{background:#c4540b}
.c8{background:#d0322c}.c9{background:#a86308}.c10{background:#0f6fae}.c11{background:#3a4458}
@media (max-width:1100px){.livre-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:850px){.livre-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== Holodeck Force Quantique ===== */
.holo{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}
.holo-list{display:flex;flex-direction:column;gap:6px;max-height:calc(100vh - 220px);overflow:auto}
.holo-pro{display:flex;gap:10px;align-items:center;padding:7px 10px;border-radius:6px;color:#fff;text-decoration:none;opacity:.78}
.holo-pro:hover,.holo-pro[aria-current]{opacity:1;outline:2px solid rgba(255,255,255,.7);outline-offset:-2px}
.holo-pro span{display:flex;flex-direction:column;min-width:0}
.holo-pro strong{font-size:.82rem;text-transform:uppercase}
.holo-pro small{font-size:.68rem;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.holo-chat{display:flex;flex-direction:column;gap:12px;min-height:calc(100vh - 220px)}
.holo-who{display:flex;gap:14px;align-items:center}
.holo-who img{width:72px;height:72px;border-radius:50%;object-fit:cover}
.holo-who h2{margin:0}.holo-who p{margin:.15rem 0;color:var(--muted);font-size:.85rem}
.holo-fil{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;max-height:52vh;padding:4px}
.holo-vide{color:var(--muted);margin:auto;text-align:center}
.holo-msg{max-width:80%;padding:9px 13px;border-radius:10px;background:var(--panel-raised)}
.holo-msg span{display:block;font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.holo-msg p{margin:0;line-height:1.45}
.holo-msg.moi{align-self:flex-end;background:#2352df;color:#fff}.holo-msg.moi span{color:rgba(255,255,255,.8)}
.holo-msg.attente p{opacity:.7;font-style:italic}
.holo-form{display:flex;gap:10px;align-items:flex-end}
.holo-form textarea{flex:1;resize:vertical;min-height:52px}
@media (max-width:850px){.holo{grid-template-columns:1fr}.holo-list{flex-direction:row;overflow-x:auto;max-height:none}.holo-pro{flex:0 0 auto}.holo-pro small{display:none}}
/* Contraste : texte blanc forcé sur les tuiles pleines, quel que soit le thème. */
.livre-tile small,.holo-pro small{color:rgba(255,255,255,.9)}
.livre-tile strong,.holo-pro strong{color:#fff}
.holo-msg.moi p{color:#fff}
.holo-msg.pro p{color:var(--text)}

/* ===== Holodeck : visage qui parle (la bouche ne bouge que pendant la voix) ===== */
.parle-face{--jaw:0;position:relative;flex:0 0 150px;width:150px;height:150px;border-radius:50%;overflow:hidden;background:#0a1626;
  box-shadow:0 0 0 3px rgba(255,255,255,.12);transition:box-shadow .2s}
.parle-face.parle{box-shadow:0 0 0 3px #3ddc97,0 0 26px rgba(61,220,151,.45)}
.parle-face img{position:absolute;max-width:none;object-fit:cover}
.parle-face .pf-bouche{position:absolute;left:41%;top:63%;width:18%;height:calc(var(--jaw) * 1.3px);border-radius:0 0 50% 50%;
  background:#2b0b10;transform:translateY(0);z-index:2}
.parle-face .pf-menton{z-index:3;clip-path:polygon(33% 64.5%,67% 64.5%,64% 84%,50% 90%,36% 84%);transform:translateY(calc(var(--jaw) * 1.1px))}
.holo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:.6rem}
.holo-btn{font:inherit;font-size:.8rem;font-weight:700;padding:7px 12px;border-radius:6px;border:1px solid rgba(255,255,255,.18);
  background:var(--panel-raised);color:var(--text);cursor:pointer;text-decoration:none}
.holo-btn.micro{background:#16804e;color:#fff;border-color:transparent}
.holo-btn.micro.actif{background:#d0322c;animation:holo-pulse 1s infinite}
.holo-btn:disabled{opacity:.6;cursor:wait}
.holo-etat{min-height:1.1em;margin:.35rem 0 0;font-size:.8rem;font-weight:700;color:#3ddc97}
@keyframes holo-pulse{50%{box-shadow:0 0 0 6px rgba(208,50,44,.25)}}
@media (prefers-reduced-motion:reduce){.holo-btn.micro.actif{animation:none}}

/* ===== forcequantique.com/holodeck : le Holodeck seul, dans sa fenêtre ===== */
.solo .sidebar,.solo .scrim,.solo footer,.solo .mobile-menu{display:none!important}
.solo .main-wrap{width:100%;margin-left:0}
/* Bouche recalée entre les lèvres (planche de contrôle 2026-11-01), forme ovale. */
.parle-face .pf-bouche{left:42.5%;top:71%;width:15%;height:calc(var(--jaw) * 1.15px);border-radius:50%;
  background:radial-gradient(ellipse at 50% 35%,#4a1218 0%,#1c0508 75%);box-shadow:inset 0 2px 2px rgba(0,0,0,.6)}
.parle-face .pf-menton{clip-path:polygon(34% 71.5%,66% 71.5%,63% 88%,50% 94%,37% 88%)}
