/* Couche de présentation : les identifiants et parcours métier sont conservés. */
:root {
  --bleu-fb: #137d70;
  --bleu-fb-fonce: #0c645a;
  --fond: #f5f6f8;
  --texte: #172b35;
  --texte-secondaire: #66767e;
  --bordure: #e1e7e9;
  --rayon: 14px;
  --sidebar-width: 246px;
}
body { font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; }
button, input, textarea, select { font-family: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #56bca9; outline-offset: 3px; }
.entete { background: #152d35; padding: 48px 20px 70px; }
body.is-connected > .entete { display: none; }
body.is-connected main { max-width: none; margin: 0; padding: 0; }
body.is-connected > .pied { margin-left: var(--sidebar-width); padding: 18px; font-size: 12px; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); background: #142d35; color: #d4e1e5; padding: 28px 16px 16px; display: flex; flex-direction: column; overflow-y: auto; }
.studio-brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-weight: 650; font-size: 21px; letter-spacing: -.5px; padding: 0 9px 29px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 42px; border-radius: 12px; background: #c8e9ba; color: #173a35; font-size: 30px; font-weight: 800; position: relative; }
.brand-mark > span { position: absolute; right: 5px; bottom: 3px; }
.brand-caption { display: block; font-size: 9px; letter-spacing: 2px; font-weight: 500; color: #9db4bd; margin-top: 1px; }
.nav-label { color: #8ea7af; font-size: 10px; letter-spacing: 1.6px; font-weight: 650; padding: 16px 12px 9px; }
.app-sidebar .barre-onglets, .app-sidebar .sous-onglets-bar { display: flex; flex-direction: column; border: 0; background: transparent; box-shadow: none; border-radius: 0; gap: 4px; margin: 0; padding: 0; }
.app-sidebar .barre-onglets button, .app-sidebar .sous-onglet { width: 100%; flex: none; border: 0; border-radius: 8px; background: transparent; color: #c4d4da; font-size: 13px; font-weight: 500; padding: 11px 12px; display: flex; align-items: center; gap: 11px; text-align: left; justify-content: flex-start; white-space: normal; }
.app-sidebar .barre-onglets button:hover, .app-sidebar .sous-onglet:hover { background: #203c45; color: white; }
.app-sidebar .barre-onglets button.onglet-actif, .app-sidebar .sous-onglet.sous-onglet-actif { background: #c8e9ba; color: #183c31; font-weight: 650; box-shadow: none; }
.app-sidebar .sous-onglet[data-sous-onglet="apercu"] { display: none; }
.sidebar-footer { margin-top: auto; padding-top: 26px; }
.sidebar-help { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #c4d4da; padding: 12px; font-size: 13px; border-top: 1px solid #304750; }
.sidebar-help > span { margin-left: auto; }
.app-sidebar .barre-session { border: 0; border-top: 1px solid #304750; background: transparent; box-shadow: none; margin: 8px 0 0; padding: 18px 4px 0; display: flex; gap: 9px; align-items: center; font-size: 12px; }
.session-avatar { display: grid; place-items: center; width: 33px; height: 33px; background: #36525b; border-radius: 50%; font-size: 10px; color: #fff; flex: 0 0 auto; }
.barre-session strong { color: #fff; font-size: 12px; font-weight: 600; }
.barre-session small { display: block; font-size: 10px; color: #8ea7af; }
.app-sidebar .barre-session .btn-lien { margin-left: auto; color: #c4d4da; font-size: 21px; padding: 6px; }
.app-workspace { margin-left: var(--sidebar-width); padding: 0 38px 25px; min-width: 0; max-width: 1600px; }
.workspace-topbar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--bordure); min-height: 69px; font-size: 12px; }
.workspace-breadcrumb { color: #87959b; }
.workspace-breadcrumb > span:first-child { margin: 0 13px; color: #bdc7cb; }
#page-breadcrumb { color: #344d58; }
.topbar-help { margin-left: auto; color: #526b75; text-decoration: none; font-size: 12px; }
.topbar-help:hover { color: var(--bleu-fb); }
.workspace-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 33px 0 25px; }
.page-eyebrow { font-size: 10px; letter-spacing: 1.9px; font-weight: 700; color: #6f8b8e; margin-bottom: 9px; }
.workspace-heading h1 { font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -1.1px; font-weight: 650; line-height: 1.25; }
#page-description { font-size: 13px; line-height: 1.7; color: var(--texte-secondaire); margin-top: 9px; max-width: 650px; }
.timezone-pill { font-size: 10px; color: #5b727a; border: 1px solid var(--bordure); padding: 8px 12px; border-radius: 20px; white-space: nowrap; background: #fff; }
.timezone-pill > span { display: inline-block; width: 6px; height: 6px; background: #39a68a; border-radius: 50%; margin-right: 6px; }
.publishing-flow { display: flex; align-items: center; gap: 19px; padding: 13px 17px; border: 1px solid var(--bordure); background: #eef2f2; border-radius: 9px; margin: 0 0 26px; font-size: 11px; color: #5d737b; }
.publishing-flow b { margin-right: 7px; font-size: 10px; color: #197c6d; font-weight: 700; }
.publishing-flow i { color: #a3b3b7; font-style: normal; }
.carte { border: 1px solid var(--bordure); box-shadow: 0 3px 10px #163e4a03; padding: 25px; margin-bottom: 22px; }
.carte h2 { font-size: 16px; font-weight: 650; letter-spacing: -.25px; margin-bottom: 15px; }
.section-intro { color: var(--texte-secondaire); font-size: 12px; line-height: 1.8; margin: -6px 0 17px; }
.champ { margin-bottom: 7px; min-width: 0; }
.champ label { font-size: 12px; font-weight: 600; color: #3e555e; margin-bottom: 7px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select { border: 1px solid #dce4e7; border-radius: 7px; padding: 11px 12px; min-height: 42px; font-size: 13px; background: #fff; color: #243d47; width: 100%; max-width: 100%; }
input::placeholder, textarea::placeholder { color: #9ba9ae; }
input:focus, textarea:focus, select:focus { border-color: #37a18e; box-shadow: 0 0 0 3px #137d7015; }
.form-section-title { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; padding-top: 17px; margin-top: 3px; border-top: 1px solid #edf1f2; }
.form-section-title > span { font-size: 10px; width: 23px; height: 23px; display: grid; place-items: center; color: #28806f; background: #eaf5f0; border-radius: 6px; }
.form-section-title:first-child { border: 0; padding-top: 0; }
.btn-principal { font-size: 12px; padding: 12px 17px; font-weight: 650; border-radius: 7px; }
.btn-secondaire, .bouton-petit { border-radius: 7px; font-size: 12px; }
.btn-principal.bouton-vert { background: #167f70; }
.btn-principal.bouton-vert:hover { background: #0c645a; }
#formulaire-produit > .btn-principal { margin-top: 23px; }
#onglet-generateur { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .9fr); gap: 25px; align-items: start; }
#resultat { min-width: 0; }
.preview-placeholder { padding: 8px 5px 20px; position: sticky; top: 24px; }
#onglet-generateur:has(#resultat:not(.resultat-cache)) #generator-empty-preview { display: none; }
.preview-kicker { font-size: 9px; font-weight: 650; letter-spacing: 1.5px; color: #7e9299; display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #97b3ab; }
.preview-paper { background: #fff; border: 1px solid #dfe7e8; border-radius: 12px; box-shadow: 0 14px 34px #1b4a5810; padding: 18px; transform: rotate(-1deg); }
.preview-profile { display: flex; gap: 9px; align-items: center; font-size: 10px; }
.preview-profile > span { width: 31px; height: 31px; display: grid; place-items: center; color: #4c796f; background: #e4efe7; border-radius: 50%; font-weight: 600; }
.preview-profile b { display: block; font-size: 10px; }
.preview-profile small { color: #9aa9af; font-size: 9px; }
.preview-profile i { margin-left: auto; color: #879a9f; }
.preview-lines { display: grid; gap: 7px; margin: 22px 0; }
.preview-lines span { height: 5px; background: #edf1f2; border-radius: 3px; }
.preview-lines span:nth-child(2) { width: 86%; }
.preview-lines span:nth-child(3) { width: 56%; }
.preview-illustration { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 17px; height: 210px; border-radius: 6px; background: #e5eee3; color: #698c73; }
.preview-illustration svg { stroke-width: 1px; opacity: .7; }
.preview-illustration span { font-family: Georgia, serif; font-size: 24px; font-style: italic; color: #4d7159; }
.preview-paper-footer { color: #9ba9ad; padding-top: 16px; font-size: 9px; }
.preview-placeholder > h2 { font-size: 20px; margin: 31px 0 10px; letter-spacing: -.5px; font-weight: 600; }
.preview-placeholder > p { font-size: 12px; color: #72868f; line-height: 1.9; max-width: 330px; }
.preview-placeholder > a { display: inline-block; margin-top: 15px; color: #277d6e; font-size: 12px; font-weight: 600; text-decoration: none; }
.preview-note { border-top: 1px solid #dfe6e8; margin-top: 26px; padding-top: 16px; display: flex; gap: 10px; align-items: flex-start; color: #84959c; font-size: 10px; line-height: 1.8; max-width: 330px; }
.preview-note svg { flex-shrink: 0; margin-top: 2px; }
.tableau-enveloppe, .tableau-wrapper { overflow-x: auto; }
table { font-size: 12px; }
.tableau th, .tableau-donnees th { background: #f6f8f9; font-size: 10px; font-weight: 650; color: #70868f; }
.tableau td, .tableau-donnees td { padding: 14px 10px; border-color: #edf1f2; }
.nouveau-projet { background: #f4f7f7; padding: 18px; border: 1px solid #e7edee; }
.sous-onglet-panneau { min-width: 0; }
.mobile-menu, .sidebar-backdrop { display: none; }
.skip-link { position: fixed; left: 260px; top: -100px; z-index: 100; background: #fff; padding: 10px; color: #126b60; }
.skip-link:focus { top: 10px; }
body:not(.is-connected) .carte { max-width: 420px; margin-left: auto; margin-right: auto; }
body:not(.is-connected) main { margin-top: -30px; }
@media (min-width: 1800px) { .app-workspace { margin-right: auto; } }
@media (max-width: 1150px) {
  :root { --sidebar-width: 220px; }
  .app-workspace { padding: 0 24px 20px; }
  .workspace-heading { align-items: flex-start; }
  .timezone-pill { display: none; }
  #onglet-generateur { grid-template-columns: minmax(0, 1fr); }
  .preview-placeholder { position: static; display: none; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 246px; }
  .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .nav-open .app-sidebar { transform: translateX(0); }
  .app-workspace { margin-left: 0; padding: 0 16px 20px; }
  body.is-connected > .pied { margin-left: 0; }
  .workspace-topbar { min-height: 59px; }
  .mobile-menu { display: block; border: 1px solid #dfe6e8; background: #fff; color: #263f48; border-radius: 6px; padding: 6px 10px; font-size: 17px; cursor: pointer; }
  .workspace-heading { padding: 25px 0 21px; }
  .workspace-heading h1 { font-size: 27px; }
  .page-eyebrow { font-size: 9px; }
  .publishing-flow { gap: 8px; font-size: 9px; padding: 11px; margin-bottom: 20px; }
  .publishing-flow b { display: block; font-size: 9px; margin-bottom: 3px; }
  .publishing-flow span { flex: 1; }
  .carte { padding: 19px 16px; }
  .grille, .nouveau-projet { grid-template-columns: 1fr; }
  .nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: #10272d65; border: 0; z-index: 29; }
  .skip-link { left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .app-sidebar { transition: none; } }

/* Guide autonome, également imprimable. */
.guide-page { background: #f5f6f8; }
.guide-page main { max-width: 1100px; margin: 0 auto 70px; padding: 0 24px; }
.guide-header { background: #142d35; color: white; padding: 34px max(24px, calc((100vw - 1052px) / 2)) 42px; }
.guide-header a { color: #c8e9ba; text-decoration: none; font-size: 13px; }
.guide-header h1 { font-size: 38px; letter-spacing: -1.2px; margin: 28px 0 10px; }
.guide-header p { color: #b1c8d0; font-size: 14px; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 34px; padding-top: 30px; }
.guide-nav { position: sticky; top: 24px; align-self: start; display: grid; gap: 9px; font-size: 13px; }
.guide-nav a { color: #55717a; padding: 6px 0; text-decoration: none; }
.guide-nav a:hover { color: #137d70; }
.guide-body section { background: white; border: 1px solid var(--bordure); border-radius: 12px; padding: 28px; margin-bottom: 20px; scroll-margin-top: 20px; }
.guide-body h2 { font-size: 21px; margin-bottom: 15px; letter-spacing: -.5px; }
.guide-body h3 { font-size: 15px; margin: 22px 0 10px; }
.guide-body p, .guide-body li { font-size: 14px; line-height: 1.9; color: #526a74; }
.guide-body ol, .guide-body ul { padding-left: 22px; margin: 12px 0; }
.guide-body li + li { margin-top: 8px; }
.guide-body strong { color: #233f49; }
.guide-body code { font-size: 12px; padding: 2px 5px; background: #eff4f4; border-radius: 4px; }
.guide-table { overflow-x: auto; margin: 15px 0; }
.guide-table table { width: 100%; border-collapse: collapse; }
.guide-table td, .guide-table th { border-bottom: 1px solid #e6edee; padding: 12px 10px; text-align: left; font-size: 12px; line-height: 1.7; }
.guide-table th { background: #f3f6f6; color: #4b6972; }
.guide-callout { padding: 15px 18px; background: #edf6ef; border-left: 3px solid #87b78f; border-radius: 0 8px 8px 0; margin: 18px 0; }
@media (max-width: 760px) { .guide-layout { grid-template-columns: 1fr; } .guide-nav { position: static; grid-template-columns: 1fr 1fr; gap: 4px; } .guide-header h1 { font-size: 29px; } .guide-body section { padding: 21px; } }
@media print { .guide-nav, .guide-header a { display: none; } .guide-layout { display: block; } .guide-header { color: #172b35; background: white; padding: 10px 24px; } .guide-header p { color: #526a74; } .guide-body section { break-inside: avoid; } }
