/* ===========================
   DIDACTICUA v1.15 – style.css
   RGAA 4.1 – Design épuré
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f4ea9;
  --blue-800: #1565c0;
  --blue-700: #1e73d8;
  --blue-100: #ddeeff;
  --indigo: #4040b0;
  --indigo-100: #eeeeff;
  --teal: #0f7d6e;
  --teal-100: #d4f2ec;
  --orange: #b85e00;
  --orange-100: #fff0d9;
  --green: #1a6e2e;
  --green-100: #d9f0e0;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #0f1c2e;
  --muted: #424f61;
  --border: #bfcede;
  --radius: 10px;
  --radius-sm: 8px;
  --header-h: 72px;
  --focus-color: #005fcc;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--blue-800); }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---- Lien d'évitement (RGAA) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--blue-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  top: 0;
}

/* ---- Focus visible global (RGAA) ---- */
:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Texte masqué accessiblement ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden-control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== EN-TÊTE ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--blue-900);
  color: #fff;
  z-index: 100;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1.5rem;
}
.header-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  color: #fff;
}
.brand-logo svg { width: 24px; height: 24px; display: block; }
.brand-logo i { font-size: 1.35rem; }
.brand-title {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  color: #fff;
}
.brand-subtitle { font-size: 0.78rem; opacity: 0.9; }
.top-tabs { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.top-tab {
  color: #fff;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}
.top-tab:hover { background: rgba(255,255,255,0.18); }
.top-tab.active,
.top-tab[aria-current="page"] {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}
.top-tab:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ===== SHELL PRINCIPAL ===== */
.app-shell {
  padding-top: var(--header-h);
  min-height: 100vh;
}
.view { display: none; }
.view.active { display: block; }
.view-header {
  width: min(1280px, 100%);
  margin: 0 auto 1.5rem;
  padding: 2rem 1.5rem 0;
}
.view-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.55rem;
}
.view-header p { color: var(--muted); max-width: 860px; }

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

/* ===== ACCUEIL ===== */
.home-intro {
  width: min(1280px, 100%);
  margin: 0 auto 1.5rem;
  padding: 2rem 1.5rem 0;
}
.home-intro h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.home-intro p { color: var(--muted); max-width: 820px; }

.modules-select-section {
  width: min(1280px, 100%);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.home-accessibility-panel {
  padding: 0 1.2rem;
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: #7b8796;
  opacity: 1;
}
.section-heading-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.section-desc {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 860px;
}

/* ---- Grille des modules sélectionnables ---- */
.modules-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 960px) {
  .modules-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .modules-select-grid {
    grid-template-columns: 1fr;
  }
}

.module-select-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  border: 1px solid #9ec2ea;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  color: var(--text);
  box-shadow: 0 6px 14px rgba(15, 78, 169, 0.10), 0 2px 0 rgba(15, 78, 169, 0.10);
  transform: translateY(0);
}
.module-select-card:hover,
.module-select-card:focus-visible {
  border-color: var(--blue-700);
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 16px 28px rgba(15, 78, 169, 0.18), 0 4px 0 rgba(15, 78, 169, 0.14);
  transform: translateY(-5px);
}
.module-select-card:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}
.module-select-card:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 0 8px 16px rgba(15, 78, 169, 0.16), 0 2px 0 rgba(15, 78, 169, 0.12);
}
.module-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.module-card-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--indigo-100);
  color: var(--indigo);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.module-card-recommendation {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #e8f7ea;
  color: #1d6b38;
  font-size: 0.72rem;
  font-weight: 700;
}
.module-select-card.is-recommended {
  border-color: #8fcf9f;
  box-shadow: 0 10px 20px rgba(29, 107, 56, 0.12), 0 3px 0 rgba(29, 107, 56, 0.08);
}
.module-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}
.module-card-summary {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
.module-card-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.module-card-highlights li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 0.9rem;
  position: relative;
}
.module-card-highlights li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue-700);
  font-weight: 700;
}

/* ===== SECTION HOME générique ===== */
.home-section {
  width: min(1280px, 100%);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.home-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.home-context-card { margin-top: 0.75rem; }
.home-context-heading {
  align-items: center;
}
.context-heading-content {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.context-heading-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.55rem;
}
.context-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.inline-field-block {
  min-width: 0;
}
.is-hidden { display: none; }
.program-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.program-class-card {
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 4px 10px rgba(15, 78, 169, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.program-class-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}
.program-class-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.program-class-card:hover,
.program-class-card.active,
.program-class-card:has(input:checked) {
  border-color: var(--blue-700);
  box-shadow: 0 10px 18px rgba(15, 78, 169, 0.14);
  transform: translateY(-2px);
}
.program-class-card:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}
.home-theme-summary-box {
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ===== PROMPT EXAMPLES ===== */
.prompt-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.prompt-example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.prompt-example-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.prompt-example-head i { color: var(--blue-700); font-size: 1rem; }
.prompt-example-head h3 { font-size: 0.95rem; font-weight: 700; }
.prompt-example-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #1e2532;
  color: #cdd6e8;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 200px;
  font-family: 'Inter', monospace;
}

/* ===== CHATBOT ===== */
.chatbot-layout {
  width: min(1280px, 100%);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.embed-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.embed-card-head h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.embed-card-head p { color: var(--muted); font-size: 0.9rem; }
.embed-third-party-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}
.embed-card-actions {
  margin-bottom: 0.9rem;
}
.chatbot-embed-wrapper {
  width: 100%;
}
.chatbot-frame {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 700px;
  border: 0;
  background: #f6f8fb;
}
.compact-panel { margin: 0; width: auto; }

/* ===== GUIDE ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.guide-card h2, .guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.guide-card p { color: var(--muted); font-size: 0.9rem; }
.guide-step {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

/* ===== INFO PANEL ===== */
.info-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  width: min(1280px, 100%);
  margin: 0 auto 1.5rem;
}
.info-panel h2, .info-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.info-panel p { color: var(--muted); margin-bottom: 0.5rem; }
.info-panel ul { padding-left: 1.2rem; }
.info-panel li { color: var(--muted); margin: 0.35rem 0; font-size: 0.9rem; }

/* ===== LIENS (Magistère + Forge + Références) ===== */
.liens-section {
  width: min(1280px, 100%);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.liens-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
}
.liens-section-title i { color: var(--blue-700); }
.liens-section-desc { color: var(--muted); margin-bottom: 1rem; max-width: 860px; font-size: 0.93rem; }

/* ===== REFERENCES GRID ===== */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.reference-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.reference-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.reference-card h3 i { color: var(--blue-700); }
.reference-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; }
.reference-card a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-800);
  text-decoration: none;
}
.reference-card a:hover { text-decoration: underline; }
.reference-author { font-size: 0.82rem; font-style: italic; }
.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #9ec2ea;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  box-shadow: 0 6px 14px rgba(15, 78, 169, 0.10), 0 2px 0 rgba(15, 78, 169, 0.10);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.link-card:hover,
.link-card:focus-visible {
  text-decoration: none;
  border-color: var(--blue-700);
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 16px 28px rgba(15, 78, 169, 0.18), 0 4px 0 rgba(15, 78, 169, 0.14);
  transform: translateY(-5px);
}
.link-card:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 0 8px 16px rgba(15, 78, 169, 0.16), 0 2px 0 rgba(15, 78, 169, 0.12);
}
.link-card h3,
.link-card p { color: inherit; }

/* ===== MAGISTÈRE PROGRAMME ===== */
.magistere-program { display: grid; gap: 0.65rem; margin-top: 0.85rem; margin-bottom: 1rem; }
.program-item {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fbff;
}
.program-item strong { font-size: 0.95rem; }
.program-item span { color: var(--muted); font-size: 0.88rem; }

/* ===== CTA ===== */
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.85rem; }

/* ===== PROMPTS LIBRARY ===== */
.prompt-library {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.prompt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prompt-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.prompt-card-head h3 { font-size: 1rem; font-weight: 700; margin: 0.3rem 0; }
.prompt-card-head p { color: var(--muted); font-size: 0.88rem; }
.prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 0.75rem;
  font-weight: 700;
}
.prompt-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }
.prompt-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f0f4fa;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.prompt-preview {
  margin: 0 1.1rem 0.85rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: #1e2532;
  color: #cdd6e8;
  font-size: 0.87rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow: auto;
}
.prompt-preview:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}
.prompt-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0 1.1rem 1rem;
}
.prompt-destinations {
  padding: 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.prompt-destinations a {
  font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--blue-800);
  color: #fff;
  border-color: var(--blue-800);
}
.btn-primary:hover { background: var(--blue-900); border-color: var(--blue-900); }
.btn-secondary {
  background: #e8f0fa;
  color: var(--blue-900);
  border-color: #c2d5f0;
}
.btn-secondary:hover { background: #d5e6f7; }
.btn-outline {
  background: #fff;
  color: var(--blue-900);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--blue-100); border-color: var(--blue-700); }

/* ===== MODULE VUE ===== */
#view-module { width: 100%; }
.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: min(1280px, 100%);
  margin: 0 auto 1rem;
  padding: 2rem 1.5rem 0;
}
.module-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}
.module-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.3rem 0 0.4rem;
}
.module-header p { color: var(--muted); max-width: 860px; }
.module-card {
  width: min(1280px, 100%);
  margin: 0 auto 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.module-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.module-card-heading h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.module-card-heading p { color: var(--muted); font-size: 0.9rem; }

/* ===== FORMULAIRES MODULE ===== */
.form-grid { display: grid; gap: 0.9rem; }
.form-grid.two-cols { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.full-width { grid-column: 1 / -1; }
.field-label, label > span:first-child {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.field-helper {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin: -0.1rem 0 0.45rem;
  line-height: 1.45;
}
.field-input, .field-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
}
.field-input:focus, .field-textarea:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 0;
  border-color: var(--blue-700);
}
.field-textarea { min-height: 100px; resize: vertical; }
.module-inline-equal-grid {
  display: grid;
  gap: 0.9rem;
  align-items: end;
}
.module-inline-equal-grid.two-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.module-inline-equal-grid.three-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shared-edit-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.shared-edit-panel-head {
  margin-bottom: 0.8rem;
}
.shared-edit-panel-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--blue-900);
}
.field-textarea.compact { min-height: 78px; }
.group-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem;
}
.check-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.check-pill:hover { border-color: var(--blue-700); background: #f0f6ff; }
.check-pill input { accent-color: var(--blue-700); margin-top: 0.15rem; }
.check-pill-content { display: flex; flex-direction: column; gap: 0.3rem; }
.check-pill-text { display: block; }
.form-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.detail-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.detail-choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #a9c5ea;
  background: linear-gradient(180deg, #fffef8 0%, #f4f9ff 100%);
  box-shadow: 0 10px 18px rgba(15, 78, 169, 0.12), 0 4px 0 rgba(15, 78, 169, 0.10);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
}
.detail-choice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 230, 120, 0.28) 0%, rgba(255, 230, 120, 0.12) 18%, rgba(255,255,255,0) 42%, rgba(30, 115, 216, 0.10) 100%);
  pointer-events: none;
}
.detail-choice-card:hover,
.detail-choice-card.is-selected,
.detail-choice-card:has(input:checked) {
  transform: translateY(-4px);
  border-color: var(--blue-700);
  background: linear-gradient(180deg, #fffde9 0%, #eaf4ff 100%);
  box-shadow: 0 16px 28px rgba(15, 78, 169, 0.18), 0 5px 0 rgba(15, 78, 169, 0.14);
}
.detail-choice-card input {
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
  accent-color: var(--blue-700);
  transform: scale(1.08);
}
.detail-choice-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}
.detail-choice-card-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}
.detail-choice-card-desc {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.option-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.option-recommendation-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f7ea;
  color: #1d6b38;
  border: 1px solid #b7dfbf;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}
.detail-inline-fields {
  width: 100%;
}
.single-choice-grid.single-choice-grid-cecrl {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.single-choice-card {
  min-height: 100%;
}
.single-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.transcription-status {
  min-height: 1.2rem;
}
.transcription-status.is-loading {
  color: var(--blue-800);
  font-weight: 700;
}
.transcription-status.is-success {
  color: var(--green);
  font-weight: 700;
}
.transcription-status.is-error {
  color: #a02020;
  font-weight: 700;
}

.file-input { display: block; width: 100%; margin-top: 0.35rem; }
.file-label { display: block; margin-top: 0.45rem; font-size: 0.82rem; color: var(--muted); }
.text-link {
  color: var(--blue-800);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.87rem;
}
.text-link:hover { text-decoration: underline; }
.example-btn {
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.83rem;
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-start;
  padding: 0.15rem 0;
  background: none;
  border: none;
  cursor: pointer;
}
.example-btn:hover { text-decoration: underline; }

/* Structures coopératives */
.structures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
}
.structure-tile {
  position: relative;
  display: block;
  text-align: left;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid #a9c5ea;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: 0 10px 18px rgba(15, 78, 169, 0.10), 0 4px 0 rgba(15, 78, 169, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  min-height: 120px;
  cursor: pointer;
}
.structure-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.structure-tile strong { display: block; font-size: 0.93rem; margin-bottom: 0.3rem; }
.structure-tile-head strong { margin-bottom: 0; }
.structure-tile span { display: block; color: var(--muted); font-size: 0.84rem; }
.structure-tile small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.3rem; font-style: italic; }
.structure-tile:hover,
.structure-tile.active,
.structure-tile:has(input:checked) {
  border-color: var(--teal);
  background: linear-gradient(180deg, #ffffff 0%, #e8fbf8 100%);
  box-shadow: 0 16px 28px rgba(11, 120, 110, 0.16), 0 5px 0 rgba(11, 120, 110, 0.10);
  transform: translateY(-4px);
}
.structure-tile:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

/* Enseignement explicite */
.explicite-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
}
.explicite-step-card {
  text-align: left;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #a9c5ea;
  background: linear-gradient(180deg, #fffef8 0%, #f4f9ff 100%);
  box-shadow: 0 10px 18px rgba(15, 78, 169, 0.12), 0 4px 0 rgba(15, 78, 169, 0.10);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.explicite-step-card strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.explicite-step-card span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.explicite-step-card:hover,
.explicite-step-card.active {
  transform: translateY(-4px);
  border-color: var(--blue-700);
  background: linear-gradient(180deg, #fffde9 0%, #eaf4ff 100%);
  box-shadow: 0 16px 28px rgba(15, 78, 169, 0.18), 0 5px 0 rgba(15, 78, 169, 0.14);
}
.explicite-step-card:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}
.explicite-stage-panel {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 14px rgba(15, 78, 169, 0.08), 0 3px 0 rgba(15, 78, 169, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.explicite-stage-panel.is-selected,
.explicite-stage-panel:focus-within {
  transform: translateY(-2px);
  border-color: var(--blue-700);
  background: linear-gradient(180deg, #fffef7 0%, #f1f7ff 100%);
  box-shadow: 0 14px 24px rgba(15, 78, 169, 0.14), 0 4px 0 rgba(15, 78, 169, 0.10);
}
.top-gap { margin-top: 1rem; }

/* Prompt textarea */
.prompt-textarea {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: #f8fbff;
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
  margin-top: 0.85rem;
}
.prompt-textarea:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 0;
  border-color: var(--blue-700);
}

/* ===== PIED DE PAGE ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  padding: 0.85rem 1.5rem;
  color: var(--muted);
  font-size: 0.83rem;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-inner a {
  color: var(--blue-800);
  font-weight: 600;
  text-decoration: none;
}
.footer-inner a:hover { text-decoration: underline; }

/* ===== MODALE Mentions légales ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.modal-box h2 { font-size: 1.15rem; font-weight: 800; }
.modal-box p { color: var(--muted); font-size: 0.9rem; }
.modal-box a { color: var(--blue-800); }
.modal-close { align-self: flex-start; margin-top: 0.5rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 600;
  background: #1a2538;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: 340px;
  font-size: 0.9rem;
}
.toast.show { opacity: 1; transform: none; }
.toast.success { background: #1a6e35; }
.toast.warning { background: #8c4e00; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --header-h: auto; }
  .site-header { position: static; }
  .app-shell { padding-top: 0; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    height: auto;
  }
  .top-tabs { justify-content: flex-start; }
  .home-intro,
  .modules-select-section,
  .home-section,
  .view-header,
  .module-header,
  .guide-grid,
  .references-grid,
  .info-panel,
  .liens-section,
  .prompt-library,
  .chatbot-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .home-intro h1 { font-size: 1.35rem; }
  .detail-choice-grid { grid-template-columns: 1fr; }
  .view-header h1,
  .module-header h1 { font-size: 1.4rem; }
  .modules-select-grid,
  .prompt-examples-grid,
  .chatbot-layout,
  .references-grid,
  .guide-grid { grid-template-columns: 1fr; }
  .module-header,
  .module-card-heading,
  .prompt-card-head,
  .embed-card-head { flex-direction: column; align-items: flex-start; }
  .form-grid.two-cols { grid-template-columns: 1fr; }
  .chatbot-frame { height: 65vh; min-height: 480px; }
  .footer-inner { padding: 0.85rem 1rem; }
}

/* ===================================================
   NOUVELLES CLASSES – historique des modifications
   =================================================== */

/* --- Hint texte --- */
.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* ===== SÉLECTEUR THÉMATIQUE / AXE ===== */
.theme-selector-wrap {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.25rem;
}

.theme-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.theme-tab-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s;
}
.theme-tab-btn:hover { background: #c6deff; }
.theme-tab-btn.active,
.theme-tab-btn:has(input:checked) {
  background: var(--blue-900);
  color: #fff;
  border-color: var(--blue-700);
}
.theme-tab-btn:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.theme-niveau-group { margin-bottom: 1.25rem; }
.theme-niveau-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-900);
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: var(--blue-100);
  border-radius: 6px;
  display: inline-block;
}

.theme-axes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

/* ===== CARTES 3D (effet en relief + surbrillance) ===== */
.card-3d {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 3px 0 #bfcede, 0 4px 8px rgba(0,0,0,0.07);
  position: relative;
  user-select: none;
}
.card-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 #a8bccc, 0 8px 18px rgba(0,0,0,0.12);
  border-color: var(--blue-700);
}
.card-3d:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #bfcede, 0 2px 4px rgba(0,0,0,0.07);
}
.card-3d.selected {
  border-color: var(--blue-800);
  background: linear-gradient(135deg, #ddeeff 0%, #eef5ff 100%);
  box-shadow: 0 3px 0 var(--blue-700), 0 4px 12px rgba(30,115,216,0.18);
}
.card-3d.selected .card-3d-inner strong {
  color: var(--blue-900);
}

.card-3d-inner {
  padding: 0.85rem 1rem;
}
.card-3d-inner strong { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--text); }
.card-3d-inner p { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* Axe et objet d'étude */
.theme-axe-card .card-3d-inner { padding: 0.8rem 0.9rem; }
.theme-axe-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}
.theme-axe-titre { font-size: 0.87rem !important; font-weight: 700 !important; }
.theme-axe-desc { font-size: 0.77rem !important; }
.theme-role-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.theme-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}
.theme-role-badge.major {
  background: #dbeafe;
  color: #1d4ed8;
}
.theme-role-badge.minor {
  background: #ede9fe;
  color: #6d28d9;
}
.theme-role-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.theme-role-btn {
  border: 1px solid #bfd4ec;
  background: #fff;
  color: var(--blue-900);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.theme-role-btn:hover,
.theme-role-btn.active {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}

.theme-selected-display {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--border);
}
.theme-selected-input { margin-top: 0.3rem; }

/* ===== CATÉGORIES CONSIGNES (Compréhension / Expression / Médiation) ===== */
.consignes-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 700px) {
  .consignes-cat-grid { grid-template-columns: 1fr; }
}
.consigne-cat-card {
  text-align: center;
}
.consigne-cat-card .card-3d-inner {
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.consigne-cat-card .option-title-row {
  justify-content: center;
  text-align: center;
}
.consigne-cat-icon {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  color: var(--blue-700);
}
.consigne-cat-card.selected .consigne-cat-icon { color: var(--blue-900); }

/* ===== CRITÈRES COMPRÉHENSION / EXPRESSION ===== */
.criteria-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.criteria-item-card {}
.criteria-item-card strong { font-size: 0.87rem; }
.criteria-item-card span:last-child { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; display: block; }
.criteria-item-card:has(input:checked) {
  border-color: var(--blue-800);
  background: linear-gradient(135deg, #ddeeff 0%, #eef5ff 100%);
  box-shadow: 0 3px 0 var(--blue-700), 0 4px 12px rgba(30,115,216,0.18);
}
.criteria-item-card:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

/* ===== DIFFÉRENCIATION ===== */
.diff-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.diff-option-card {}
.diff-card-label { cursor: pointer; display: block; }
.diff-card-label strong { font-size: 0.87rem; }
.diff-card-desc { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; display: block; }
.diff-option-card:has(input:checked) {
  border-color: var(--blue-800);
  background: linear-gradient(135deg, #ddeeff 0%, #eef5ff 100%);
  box-shadow: 0 3px 0 var(--blue-700), 0 4px 12px rgba(30,115,216,0.18);
}
.diff-option-card:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.context-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}
.context-reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.context-reminder-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fbff;
  padding: 0.8rem 0.9rem;
}
.context-reminder-grid article span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.context-reminder-grid article strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
}
.neuro-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.neuro-card-label {
  cursor: pointer;
  display: block;
}
.neuro-option-card .card-3d-inner {
  min-height: 118px;
}
.neuro-option-card p {
  margin-top: 0.35rem;
}
.neuro-option-card:has(input:checked),
.consigne-cat-card:has(input:checked) {
  border-color: var(--blue-800);
  background: linear-gradient(135deg, #ddeeff 0%, #eef5ff 100%);
  box-shadow: 0 3px 0 var(--blue-700), 0 4px 12px rgba(30,115,216,0.18);
}
.neuro-option-card:has(input:focus-visible),
.consigne-cat-card:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}
.consigne-criteria-zone[hidden],
.chatbot-embed-wrapper[hidden] {
  display: none;
}

/* ===== FORMAT DE SORTIE ===== */
.output-format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.output-format-card .card-3d-inner {
  min-height: 130px;
}
.output-format-card-desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.output-format-card:has(input:checked) {
  border-color: var(--blue-800);
  background: linear-gradient(135deg, #ddeeff 0%, #eef5ff 100%);
  box-shadow: 0 3px 0 var(--blue-700), 0 4px 12px rgba(30,115,216,0.18);
}
.output-format-card:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.consignes-controls-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(280px, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.assign-criteria-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fbff;
}

.assign-criteria-toggle input {
  margin-top: 0.2rem;
}

.assign-criteria-toggle strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.assign-criteria-toggle small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.selected-criteria-preview {
  margin-top: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fbff;
  font-size: 0.86rem;
}

.consigne-assignment-block {
  margin-top: 1rem;
}

.consigne-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.consigne-assignment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 6px 14px rgba(15, 78, 169, 0.08);
  padding: 1rem;
}

.consigne-assignment-head {
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: var(--blue-900);
}

.consigne-assignment-card label + label {
  margin-top: 0.75rem;
  display: block;
}

.consigne-precision-textarea {
  min-height: 110px;
}

/* Responsive sélecteur thème */
@media (max-width: 768px) {
  .theme-axes-grid { grid-template-columns: 1fr; }
  .criteria-cards-grid { grid-template-columns: 1fr; }
  .diff-cards-grid { grid-template-columns: 1fr; }
  .consignes-cat-grid { grid-template-columns: 1fr; }
  .program-class-grid { grid-template-columns: 1fr; }
  .context-reminder-grid { grid-template-columns: 1fr; }
  .context-reminder-actions { justify-content: flex-start; }
  .theme-role-actions { flex-direction: column; }
  .neuro-option-grid { grid-template-columns: 1fr; }
  .output-format-grid { grid-template-columns: 1fr; }
  .consignes-controls-row { grid-template-columns: 1fr; }
  .consigne-assignment-grid { grid-template-columns: 1fr; }
  .module-inline-equal-grid.two-items,
  .module-inline-equal-grid.three-items {
    grid-template-columns: 1fr;
  }
  .module-header-actions {
    justify-content: flex-start;
  }
}


/* === Ajustements V22 ciblés === */
.activity-suboptions {
  margin-top: 0.9rem;
}

.single-choice-grid.single-choice-grid-activity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.single-choice-grid.single-choice-grid-activity > .single-choice-card {
  flex: 0 1 230px;
}

.program-class-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.program-class-grid > .program-class-card {
  flex: 0 1 170px;
}

.cecrl-strategy-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.cecrl-selected-level-card {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #a9c5ea;
  background: linear-gradient(180deg, #fffef8 0%, #f4f9ff 100%);
  box-shadow: 0 10px 18px rgba(15, 78, 169, 0.12), 0 4px 0 rgba(15, 78, 169, 0.10);
}

.cecrl-selected-level-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cecrl-selected-level-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}


.inclusive-grid-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.inclusive-grid-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1300px;
}
.inclusive-grid-table th,
.inclusive-grid-table td {
  border: 1px solid #d9e2ef;
  vertical-align: top;
}
.inclusive-grid-table thead th {
  padding: 0.85rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}
.inclusive-grid-table .phase-col {
  background: #f3f6fb;
  min-width: 180px;
}
.inclusive-grid-table .didactique-col { background: #eef5ff; }
.inclusive-grid-table .explicite-col { background: #fff3e8; }
.inclusive-grid-table .cooperation-col { background: #f4edff; }
.inclusive-grid-table .neuro-col { background: #eefcf4; }
.inclusive-grid-table .cua-col { background: #edf9ef; }
.phase-row-title {
  min-width: 180px;
  padding: 0.85rem 0.75rem;
  background: #f8fbff;
  font-size: 0.88rem;
  line-height: 1.4;
}
.synthese-cell-textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: none;
  padding: 0.75rem;
  font: inherit;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
}
.synthese-cell-textarea:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: -3px;
  background: #fffef8;
}


/* ===== AJUSTEMENTS V29 ===== */
.mediation-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mediation-task-card .card-3d-inner span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.25rem;
}

.neuro-recommendations-box {
  border: 1px solid #cfe3ff;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  box-shadow: 0 8px 18px rgba(15, 78, 169, 0.08);
  padding: 1rem 1.05rem;
}

.neuro-recommendations-box > strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.3rem;
  color: var(--blue-900);
}

.neuro-recommendations-box > p {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.8rem;
}

.neuro-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.neuro-recommendations-grid article {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.neuro-recommendations-grid article > span {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.neuro-recommendation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.neuro-recommendation-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.neuro-recommendation-tag.obstacle {
  background: #fff2dc;
  color: var(--orange);
}

.explicite-empty-state {
  padding: 1rem 1.05rem;
  border: 1px dashed #9fbfe6;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .mediation-task-grid,
  .neuro-recommendations-grid {
    grid-template-columns: 1fr;
  }
}


.module-support-card {
  margin-top: 1rem;
}

.module-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.guidance-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.guidance-card {
  border: 1px solid rgba(92, 108, 255, 0.14);
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,247,255,0.96) 100%);
  box-shadow: 0 12px 30px rgba(28, 33, 53, 0.06);
}

.guidance-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #1b2653;
}

.guidance-card p {
  margin: 0;
  color: #43506b;
  line-height: 1.6;
}

.guidance-card-empty {
  border-style: dashed;
  background: rgba(248, 250, 255, 0.85);
}

.guidance-source {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(92, 108, 255, 0.1);
  color: #4250a8;
  font-size: 0.82rem;
  font-weight: 600;
}

.module-support-sidebar {
  display: grid;
  gap: 0.9rem;
}

.support-panel-block {
  border-radius: 18px;
  border: 1px solid rgba(92, 108, 255, 0.12);
  background: rgba(250, 252, 255, 0.94);
  padding: 1rem;
}

.support-panel-block h4 {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: #1b2653;
}

.support-link-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.support-link-list a {
  color: #2d4cc8;
  text-decoration: none;
  font-weight: 600;
}

.support-link-list a:hover,
.support-link-list a:focus {
  text-decoration: underline;
}

.support-link-list-detailed li {
  display: grid;
  gap: 0.18rem;
}

.support-link-description {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #52627f;
}

.activity-reminder-card {
  display: grid;
  gap: 0.65rem;
}

.activity-reminder-tags {
  justify-content: flex-start;
}

.activity-reminder-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #24418f;
  font-weight: 600;
}

@media (max-width: 980px) {
  .module-support-grid {
    grid-template-columns: 1fr;
  }
}


.cecrl-activity-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.cecrl-activity-group {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.consignes-explicite-embed {
  margin-top: 1rem;
}

.explicite-drag-source-panel {
  margin-top: 1rem;
}

.explicite-drag-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.explicite-criteria-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #bcd4f5;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: var(--blue-900);
  font-weight: 700;
  cursor: grab;
  box-shadow: 0 6px 12px rgba(15, 78, 169, 0.08);
}

.explicite-criteria-chip.is-dragging {
  opacity: 0.55;
}

.explicite-stage-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.explicite-stage-assignment-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.explicite-dropzone {
  border: 2px dashed #bfd2ef;
  border-radius: 16px;
  padding: 0.9rem;
  background: #f8fbff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.explicite-dropzone.has-items {
  border-style: solid;
}

.explicite-dropzone.is-over {
  border-color: var(--blue-700);
  background: #eef5ff;
  box-shadow: 0 0 0 4px rgba(15, 78, 169, 0.08);
}

.explicite-dropzone-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.explicite-dropzone-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

.explicite-assigned-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #c7d7ef;
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 10px rgba(15, 78, 169, 0.06);
}

.explicite-chip-remove {
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  border-radius: 999px;
  background: #e9eef9;
  color: var(--blue-900);
  font-weight: 800;
  cursor: pointer;
}

.explicite-chip-remove:hover {
  background: #d7e6ff;
}

@media (max-width: 768px) {
  .cecrl-activity-multi-grid,
  .explicite-stage-assignment-grid {
    grid-template-columns: 1fr;
  }
}


.brand-title-link {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
}
.brand-title-link:hover,
.brand-title-link:focus-visible {
  color: var(--blue-800);
  text-decoration: underline;
}

.home-resource-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.forge-links-panel {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .home-resource-meta-grid {
    grid-template-columns: 1fr;
  }
}


.module-mode-card {
  border: 1px solid rgba(31, 78, 121, 0.14);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.module-mode-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.module-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(31, 78, 121, 0.1);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.module-mode-head h3 {
  margin: 0.55rem 0 0.25rem;
}

.module-mode-head p,
.module-mode-note {
  color: var(--muted);
}

.module-mode-note {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(31, 78, 121, 0.16);
}

@media (max-width: 720px) {
  .module-mode-head {
    flex-direction: column;
  }

  .module-expert-toggle {
    width: 100%;
    justify-content: center;
  }
}


/* ===== v5.0.1 InclusIA theme overrides ===== */
:root {
  --blue-900: #1d4ed8;
  --blue-800: #2356d8;
  --blue-700: #2a66e8;
  --blue-100: #e9f0ff;
  --indigo: #6d28d9;
  --indigo-100: #f5f3ff;
  --teal: #0f766e;
  --teal-100: #dff7f3;
  --orange: #c26a00;
  --orange-100: #fff7e6;
  --green: #17803d;
  --green-100: #e8f7ea;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #65708a;
  --border: #e5e9f2;
  --radius: 22px;
  --radius-sm: 14px;
  --focus-color: #0f52d1;
}
body {
  background: linear-gradient(180deg, #f7faff 0%, #f8fafc 220px, #f8fafc 100%);
  color: var(--text);
}
.site-header {
  background: linear-gradient(180deg, var(--blue-800) 0%, #1e40af 100%);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.18);
}
.header-inner, .footer-inner {
  max-width: 1240px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.brand-title-link, .brand-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-title-link:hover { text-decoration: none; opacity: 0.96; }
.brand-subtitle {
  color: rgba(255,255,255,0.88);
}
.top-tabs { gap: 0.45rem; }
.top-tab {
  border-radius: 12px;
  padding: 0.62rem 0.95rem;
  border: 1px solid transparent;
}
.top-tab:hover { background: rgba(255,255,255,0.12); }
.top-tab.active,
.top-tab[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.home-intro, .view-header, .module-header {
  width: min(1240px, 100%);
}
.home-intro {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 1.75rem;
  margin-top: 1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--blue-800) 0%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(30, 64, 175, 0.18);
}
.home-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  pointer-events: none;
}
.home-intro > * { position: relative; z-index: 1; }
.home-intro h1 {
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  margin-bottom: 0;
  color: #fff;
}
.home-intro p,
.module-header p { color: var(--muted); }
.modules-select-section, .home-section { width: min(1240px, 100%); }
.home-accessibility-panel { padding: 0; }
.module-select-card,
.guide-card,
.reference-card,
.info-panel,
.module-card,
.home-context-card,
.embed-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.module-select-card {
  padding: 1.35rem;
  background: #fff;
  border-color: #edf2fb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.module-select-card:hover,
.module-select-card:focus-visible {
  border-color: rgba(35, 86, 216, 0.28);
  background: #fff;
  box-shadow: 0 16px 36px rgba(29, 78, 216, 0.12);
  transform: translateY(-4px);
}
.module-card-icon, .context-heading-icon, .guide-step {
  border-radius: 16px;
}
.module-card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-100);
  color: var(--blue-800);
}
.module-card-badge {
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.68rem;
}
.btn {
  border-radius: 14px;
  padding: 0.78rem 1.05rem;
  box-shadow: none;
}
.btn-primary {
  background: var(--blue-800);
  border-color: var(--blue-800);
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.btn-secondary {
  background: #eff6ff;
  color: var(--blue-800);
  border-color: #d8e5ff;
}
.btn-outline {
  background: #fff;
  color: var(--blue-800);
  border-color: #dbe4f1;
}
.btn-outline:hover, .btn-secondary:hover {
  background: #f8fbff;
}
.module-header {
  align-items: flex-end;
  margin-top: 1rem;
}
.module-card {
  width: min(1240px, 100%);
  padding: 1.3rem 1.35rem;
}
.module-card-heading h3, .home-section h2, .view-header h1, .module-header h1 {
  letter-spacing: -0.03em;
}
.field-input, .field-textarea, .prompt-textarea {
  border-radius: 14px;
  border-color: #dbe4f1;
  background: #fff;
}
.field-input, .field-textarea {
  min-height: 48px;
}
.field-textarea, .prompt-textarea {
  background: #fbfdff;
}
.detail-choice-card,
.structure-tile,
.explicite-step-card,
.program-class-card,
.check-pill {
  border-radius: 18px;
  border-color: #e4eaf4;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.detail-choice-card:hover,
.structure-tile:hover,
.explicite-step-card:hover,
.program-class-card:hover,
.check-pill:hover {
  border-color: rgba(35, 86, 216, 0.3);
  background: #fbfdff;
}
.prompt-textarea {
  min-height: 320px;
  line-height: 1.7;
}
.site-footer {
  background: #fff;
  border-top: 1px solid #e6ecf5;
}
.modal-box {
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}
.toast {
  border-radius: 14px;
}
@media (max-width: 768px) {
  .home-intro {
    margin-top: 0;
    border-radius: 0 0 24px 24px;
  }
  .module-card, .module-select-card, .guide-card, .reference-card, .info-panel {
    border-radius: 18px;
  }
}


/* ===== v5.0.2 InclusIA-aligned theme ===== */
:root {
  --blue-900: #1e40af;
  --blue-800: #2356d8;
  --blue-700: #3b82f6;
  --blue-100: #eff6ff;
  --indigo: #7c3aed;
  --indigo-100: #f5f3ff;
  --teal: #0f766e;
  --teal-100: #ecfeff;
  --orange: #d97706;
  --orange-100: #fffbeb;
  --green: #15803d;
  --green-100: #f0fdf4;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 12px;
  --focus-color: #1d4ed8;
}
body {
  background: #f8fafc;
  color: var(--text);
}
.site-header {
  position: sticky;
  height: auto;
  background: var(--blue-800);
  border-bottom: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.app-shell { padding-top: 0; }
.header-inner {
  max-width: 1152px;
  min-height: 64px;
  padding: 0.6rem 1rem;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-logo i { font-size: 1.4rem; }
.brand-title-link, .brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
}
.top-tabs { gap: 0.15rem; }
.top-tab {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.top-tab:hover { background: rgba(255,255,255,0.10); }
.top-tab.active,
.top-tab[aria-current="page"] {
  background: rgba(255,255,255,0.20);
  border: 0;
}
.home-intro,
.view-header,
.module-header,
.modules-select-section,
.home-section,
.module-card,
.footer-inner {
  width: min(1152px, 100%);
}
.home-intro {
  margin: 0 auto;
  padding: 1.75rem 1rem;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.home-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.45) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.08;
  pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.home-intro h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.75rem;
}
.home-intro h1 span { color: #6ee7b7; }
.home-intro p {
  max-width: 860px;
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
}
.modules-select-section { padding: 2rem 1rem 0; }
.home-accessibility-panel { padding: 0; }
.section-desc { max-width: 760px; }
.modules-select-grid {
  gap: 1rem;
}
.module-select-card,
.guide-card,
.reference-card,
.info-panel,
.module-card,
.home-context-card,
.embed-card,
.program-class-card,
.detail-choice-card,
.structure-tile,
.explicite-step-card,
.check-pill,
.theme-selector-wrap,
.modal-box {
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.module-select-card {
  padding: 1.5rem;
  transition: all 0.2s ease;
  transform: none;
}
.module-select-card:hover,
.module-select-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(35,86,216,0.25);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.12);
}
.module-card-icon,
.context-heading-icon,
.guide-step {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.module-card-icon {
  background: #eef2ff;
  color: #4f46e5;
}
.module-card-badge {
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 700;
}
.module-header {
  padding: 2rem 1rem 0;
  margin-bottom: 1rem;
  align-items: end;
}
.view-header { padding: 2rem 1rem 0; }
.view-header h1,
.module-header h1,
.home-section h2,
.module-card-heading h3,
.guide-card h2,
.guide-card h3 {
  color: var(--text);
  letter-spacing: -0.025em;
}
.module-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.module-card-heading p,
.view-header p,
.module-header p,
.reference-card p,
.guide-card p,
.info-panel p,
.field-helper,
.section-desc {
  color: var(--muted);
}
.btn {
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.btn-primary {
  background: var(--blue-800);
  border-color: var(--blue-800);
}
.btn-primary:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
}
.btn-outline,
.btn-secondary {
  background: #fff;
  border-color: #dbe4f1;
  color: var(--blue-800);
}
.btn-outline:hover,
.btn-secondary:hover {
  background: #f8fbff;
}
.field-input,
.field-textarea,
.prompt-textarea {
  border-radius: 12px;
  border-color: #d1d5db;
  background: #fff;
}
.prompt-textarea { background: #fbfdff; }
.eyebrow {
  background: #eff6ff;
  color: var(--blue-900);
  border-radius: 999px;
}
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.footer-inner {
  max-width: 1152px;
  padding: 0.9rem 1rem;
}
.module-choice-card {
  border-style: dashed;
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.module-inline-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #dbe4f1;
  background: #fff;
  cursor: pointer;
}
.module-inline-toggle input {
  margin-top: 0.15rem;
  accent-color: var(--blue-800);
}
.module-inline-toggle-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.module-inline-toggle-content strong {
  color: var(--text);
  font-size: 0.95rem;
}
.module-inline-toggle-content span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.guide-grid-compact {
  margin-top: 1rem;
}
.guide-card.compact ul {
  padding-left: 1.1rem;
  color: var(--muted);
}
.guide-card.compact li {
  margin: 0.35rem 0;
}
@media (max-width: 768px) {
  .home-intro {
    border-radius: 0 0 20px 20px;
    padding: 1.5rem 1rem;
  }
  .header-inner {
    padding: 0.8rem 1rem;
  }
}


/* ===== v5.0.3 Accueil rapproché ===== */
:root {
  --inclusia-royal: #2356d8;
  --inclusia-royal-dark: #1e40af;
  --inclusia-navy: #1f2a44;
  --inclusia-muted: #65708a;
  --inclusia-line: #e5e9f2;
  --inclusia-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  --inclusia-shadow-hover: 0 14px 32px rgba(35, 86, 216, 0.12);
  --inclusia-radius: 20px;
  --inclusia-pill: 999px;
}
body {
  background: #f8fafc;
  color: var(--inclusia-navy);
}
.site-header {
  background: var(--inclusia-royal);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
.header-inner {
  max-width: 1280px;
  gap: 1.25rem;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}
.brand-title-link,
.brand-title {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-subtitle {
  max-width: 560px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.86);
}
.top-tabs {
  gap: 0.5rem;
}
.top-tab {
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}
.top-tab:hover {
  background: rgba(255,255,255,0.12);
}
.top-tab.active,
.top-tab[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
}
.home-intro {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 0 3rem;
  padding: 3.35rem 0 3.9rem;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--inclusia-royal) 0%, #2a66e8 52%, var(--inclusia-royal-dark) 100%);
  box-shadow: none;
}
.home-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.19) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.34;
  pointer-events: none;
}
.home-intro::after {
  content: '';
  position: absolute;
  inset: auto -8% -110px 48%;
  height: 230px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 72%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  max-width: 860px;
  padding: 0 0.25rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--inclusia-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.98);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.home-intro h1 {
  max-width: 760px;
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.home-intro h1 span {
  color: #8ef0cf;
}
.home-hero-subtitle {
  max-width: 760px;
  margin: 0 0 0.85rem;
  color: rgba(255,255,255,0.96);
  font-size: 1.08rem;
  line-height: 1.65;
}
.home-hero-body,
.home-intro p {
  max-width: 760px;
  color: rgba(255,255,255,0.84);
  font-size: 1rem;
  line-height: 1.72;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.3rem;
  border-radius: var(--inclusia-pill);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.hero-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.hero-btn-primary {
  background: #fff;
  color: var(--inclusia-royal-dark);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.hero-btn-primary:hover {
  background: #f8fbff;
}
.hero-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.34);
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}
.modules-select-section,
.home-section,
.view-header,
.module-header {
  width: min(1280px, calc(100% - 3rem));
}
.modules-select-section {
  margin: 0 auto 2.8rem;
  padding: 0;
}
.home-accessibility-panel {
  padding: 0;
}
.home-section-heading {
  margin-bottom: 1.25rem;
}
.home-section-heading h2,
.home-section h2 {
  color: var(--inclusia-navy);
  font-size: clamp(1.75rem, 2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}
.section-desc,
.field-helper,
.module-card-summary,
.module-card-highlights li,
.guide-card p,
.info-panel p,
.reference-card p,
.view-header p,
.module-header p {
  color: var(--inclusia-muted);
}
.modules-select-grid {
  gap: 1.45rem;
}
.module-select-card {
  position: relative;
  gap: 1rem;
  min-height: 100%;
  padding: 1.4rem 1.35rem 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--inclusia-line);
  background: #fff;
  box-shadow: var(--inclusia-shadow);
  transform: translateY(0);
}
.module-select-card:hover,
.module-select-card:focus-visible {
  transform: translateY(-4px);
  border-color: #d7deec;
  background: #fff;
  box-shadow: var(--inclusia-shadow-hover);
}
.module-select-card.is-recommended {
  border-color: #d5e3fb;
  box-shadow: 0 8px 24px rgba(35, 86, 216, 0.09);
}
.module-select-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.module-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.module-card-icon,
.context-heading-icon,
.guide-step {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: none;
}
.module-card-icon-cecrl {
  background: #fff3e8;
  color: #d97706;
}
.module-card-icon-neuro {
  background: #f3e8ff;
  color: #7c3aed;
}
.module-card-icon-cooperation {
  background: #e8fbf5;
  color: #0f766e;
}
.module-card-badge {
  order: 2;
  align-self: flex-start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #7a8599;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.module-card-recommendation {
  margin-top: 0;
  padding: 0.34rem 0.7rem;
  border-radius: var(--inclusia-pill);
  background: #edf4ff;
  color: var(--inclusia-royal);
  font-size: 0.72rem;
  font-weight: 700;
}
.module-card-title {
  margin: 0;
  color: var(--inclusia-navy);
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 800;
}
.module-card-summary {
  font-size: 0.94rem;
  line-height: 1.62;
}
.module-card-highlights {
  gap: 0.42rem;
  margin-top: auto;
}
.module-card-highlights li {
  font-size: 0.84rem;
  line-height: 1.55;
}
.module-card-highlights li::before {
  color: #94a3b8;
}
.home-context-card,
.module-card,
.guide-card,
.reference-card,
.info-panel,
.embed-card {
  border: 1px solid var(--inclusia-line);
  border-radius: var(--inclusia-radius);
  box-shadow: var(--inclusia-shadow);
  background: #fff;
}
.home-section {
  margin: 0 auto 2.8rem;
  padding: 0;
}
.home-context-card {
  margin-top: 0;
}
.home-context-heading {
  align-items: flex-start;
}
.context-heading-icon {
  background: #e8f0ff;
  color: var(--inclusia-royal);
}
.module-card-heading h3,
.view-header h1,
.module-header h1,
.guide-card h2,
.guide-card h3,
.reference-card h3 {
  color: var(--inclusia-navy);
}
.btn,
.example-btn,
.theme-tab-btn,
.program-class-card,
.detail-choice-card,
.single-choice-card,
.check-pill,
.module-inline-toggle,
.field-input,
.field-textarea,
.prompt-textarea {
  border-radius: 16px;
}
.view-header,
.module-header {
  padding-left: 0;
  padding-right: 0;
}
.site-footer {
  background: #fff;
  border-top: 1px solid var(--inclusia-line);
}
.footer-inner {
  max-width: 1280px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (max-width: 960px) {
  .home-hero-inner,
  .modules-select-section,
  .home-section,
  .view-header,
  .module-header {
    width: min(100%, calc(100% - 2rem));
  }
  .home-intro {
    padding: 2.5rem 0 3rem;
  }
}
@media (max-width: 768px) {
  .site-header {
    height: auto;
    position: sticky;
  }
  .app-shell {
    padding-top: 0;
  }
  .header-inner {
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }
  .home-intro {
    margin-bottom: 2rem;
    padding: 2.2rem 0 2.6rem;
    border-radius: 0 0 28px 28px;
  }
  .home-intro h1 {
    font-size: 2rem;
  }
  .home-hero-subtitle,
  .home-hero-body,
  .home-intro p {
    font-size: 0.96rem;
  }
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btn {
    width: 100%;
  }
  .module-select-card {
    padding: 1.2rem;
  }
}


/* ===== v5.0.4 ajustements fins ===== */
:root {
  --inclusia-royal: #2356d8;
  --inclusia-royal-dark: #1f4fcf;
  --inclusia-hero-deep: #1e40af;
  --inclusia-navy: #1f2a44;
  --inclusia-muted: #65708a;
  --inclusia-line: #e5e9f2;
  --inclusia-shadow-soft: 0 4px 16px rgba(0,0,0,0.04);
  --inclusia-shadow-card: 0 10px 28px rgba(35, 86, 216, 0.08);
}
.site-header {
  background: var(--inclusia-royal);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.header-inner {
  max-width: 1280px;
  min-height: 68px;
  padding: 0.7rem 1.4rem;
}
.brand-text {
  min-width: 0;
}
.brand-title-link {
  font-size: 1.22rem;
  font-weight: 800;
}
.brand-subtitle {
  max-width: 720px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
}
.top-tabs {
  gap: 0.38rem;
}
.top-tab {
  min-height: 38px;
  padding: 0.55rem 0.92rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.home-intro {
  padding: 3.25rem 0 3.6rem;
  background: linear-gradient(135deg, var(--inclusia-royal) 0%, #2a66e8 58%, var(--inclusia-hero-deep) 100%);
}
.home-intro::before {
  background-size: 17px 17px;
  opacity: 0.26;
}
.home-intro::after {
  inset: auto -6% -108px 58%;
}
.home-hero-inner {
  width: min(1280px, calc(100% - 3rem));
  max-width: none;
  padding: 0;
}
.hero-kicker {
  margin-bottom: 1rem;
}
.home-intro h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(2.4rem, 4.7vw, 3.8rem);
  margin-bottom: 0.9rem;
}
.home-hero-subtitle,
.home-intro p {
  max-width: none;
  width: 100%;
  font-size: 1.04rem;
  line-height: 1.72;
}
.home-hero-actions {
  margin-top: 1.45rem;
}
.hero-btn {
  min-height: 50px;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
}
#home-context-container {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto 2.3rem;
}
.home-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.home-context-card {
  width: 100%;
  margin: -1rem 0 0;
  padding: 1.4rem 1.45rem;
  border-radius: 22px;
  border: 1px solid var(--inclusia-line);
  box-shadow: var(--inclusia-shadow-soft);
}
.home-context-heading {
  margin-bottom: 1rem;
}
.home-context-heading .context-heading-content {
  gap: 1rem;
}
.home-context-heading h2 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
  color: var(--inclusia-navy);
}
.home-context-heading p {
  max-width: none;
  color: var(--inclusia-muted);
}
.form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.05rem;
}
.modules-select-section,
.view-header,
.module-header,
.footer-inner,
.demarche-section {
  width: min(1280px, calc(100% - 3rem));
}
.modules-select-section {
  margin: 0 auto 2.8rem;
}
.home-section-heading {
  margin-bottom: 1.15rem;
}
.home-section-heading h2 {
  margin-bottom: 0.35rem;
}
.section-desc {
  max-width: 960px;
}
.modules-select-grid {
  gap: 1.55rem;
}
.module-select-card,
.demarche-card,
.demarche-step,
.demarche-lead-card,
.demarche-cta-panel,
.guide-card,
.reference-card,
.info-panel,
.module-card,
.home-context-card,
.embed-card {
  border: 1px solid var(--inclusia-line);
  box-shadow: var(--inclusia-shadow-soft);
}
.module-select-card {
  padding: 1.5rem 1.45rem 1.35rem;
  border-radius: 22px;
}
.module-select-card:hover,
.module-select-card:focus-visible {
  border-color: #d6e0f5;
  box-shadow: var(--inclusia-shadow-card);
}
.module-select-card-top {
  margin-bottom: 0.1rem;
}
.module-card-icon,
.context-heading-icon,
.guide-step {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}
.module-card-title {
  font-size: 1.12rem;
  line-height: 1.36;
}
.module-card-badge {
  font-size: 0.72rem;
  margin-bottom: 0.05rem;
}
.module-card-summary {
  font-size: 0.92rem;
  line-height: 1.64;
}
.module-card-highlights {
  gap: 0.38rem;
}
.module-card-highlights li {
  font-size: 0.83rem;
}
.demarche-header {
  padding-top: 2.1rem;
  margin-bottom: 1.3rem;
}
.demarche-header p {
  max-width: 940px;
}
.demarche-section {
  margin: 0 auto 1.3rem;
}
.section-heading-block {
  margin-bottom: 0.9rem;
}
.section-heading-block h2,
.demarche-lead-card h2,
.demarche-cta-panel h2 {
  color: var(--inclusia-navy);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.section-heading-block p,
.demarche-copy p,
.demarche-card p,
.demarche-step p,
.demarche-cta-panel p {
  color: var(--inclusia-muted);
}
.demarche-lead-card,
.demarche-cta-panel {
  padding: 1.5rem 1.45rem;
  border-radius: 22px;
  background: #fff;
}
.demarche-grid {
  display: grid;
  gap: 1rem;
}
.demarche-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.demarche-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.demarche-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.25rem 1.2rem;
}
.demarche-card h3,
.demarche-step h3 {
  color: var(--inclusia-navy);
  font-size: 1.02rem;
  margin-bottom: 0.38rem;
}
.demarche-steps {
  display: grid;
  gap: 0.9rem;
}
.demarche-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.1rem;
}
.demarche-step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eaf1ff;
  color: var(--inclusia-royal);
  font-weight: 800;
}
.site-footer {
  margin-top: 2.2rem;
  background: #fff;
  border-top: 1px solid var(--inclusia-line);
}
.footer-inner {
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.15rem;
}
.footer-meta,
.footer-links,
.footer-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
}
.footer-meta {
  color: var(--inclusia-muted);
  font-size: 0.86rem;
}
.footer-quicknav {
  gap: 0.35rem;
}
.footer-view-link {
  border: 1px solid var(--inclusia-line);
  background: #fff;
  color: var(--inclusia-navy);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.footer-view-link:hover {
  background: #f8fbff;
}
.footer-links a,
.footer-meta a {
  color: var(--inclusia-muted);
  font-size: 0.84rem;
}
.footer-links a:hover,
.footer-meta a:hover {
  color: var(--inclusia-royal);
}
@media (max-width: 980px) {
  .demarche-grid-3,
  .demarche-grid-2,
  .form-grid.two-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .header-inner,
  .home-hero-inner,
  #home-context-container,
  .modules-select-section,
  .view-header,
  .module-header,
  .demarche-section,
  .footer-inner {
    width: min(100%, calc(100% - 1.4rem));
  }
  .header-inner {
    padding: 0.9rem 0.2rem;
  }
  .brand-subtitle {
    display: none;
  }
  .top-tabs {
    justify-content: flex-start;
    gap: 0.3rem;
  }
  .top-tab {
    padding: 0.48rem 0.74rem;
    font-size: 0.84rem;
  }
  .home-intro {
    padding: 2.2rem 0 2.6rem;
    margin-bottom: 1.8rem;
    border-radius: 0 0 28px 28px;
  }
  .home-intro h1 {
    font-size: 2.1rem;
  }
  .home-hero-subtitle,
  .home-intro p {
    font-size: 0.98rem;
  }
  .home-context-card,
  .module-select-card,
  .demarche-card,
  .demarche-lead-card,
  .demarche-cta-panel,
  .demarche-step {
    border-radius: 18px;
  }
  .demarche-step {
    grid-template-columns: 40px 1fr;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
  }
  .demarche-step-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}


/* ===== v5.0.7 finitions d’interface ===== */
:root {
  --hero-width: min(1280px, calc(100% - 3rem));
  --footer-width: min(1280px, calc(100% - 3rem));
}
.header-inner {
  min-height: 66px;
  padding: 0.66rem 1.35rem;
  gap: 1.1rem;
}
.brand-title-link {
  font-size: 1.18rem;
  line-height: 1.1;
}
.brand-subtitle {
  font-size: 0.74rem;
  line-height: 1.4;
  max-width: 700px;
}
.top-tabs {
  gap: 0.32rem;
}
.top-tab {
  min-height: 36px;
  padding: 0.5rem 0.86rem;
  font-size: 0.88rem;
  line-height: 1;
}
.home-intro {
  padding: 3.05rem 0 3.35rem;
}
.home-intro::before {
  background-size: 16px 16px;
  opacity: 0.23;
}
.home-intro::after {
  inset: auto -4% -96px 62%;
  height: 208px;
}
.home-hero-inner {
  width: var(--hero-width);
}
.hero-kicker {
  margin-bottom: 0.92rem;
  padding: 0.34rem 0.76rem;
  font-size: 0.76rem;
}
.home-intro h1 {
  font-size: clamp(2.52rem, 4.95vw, 3.95rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 0.78rem;
}
.home-hero-subtitle,
.home-intro p {
  font-size: 1rem;
  line-height: 1.68;
}
.home-hero-actions {
  gap: 0.78rem;
  margin-top: 1.28rem;
}
.hero-btn {
  min-height: 46px;
  padding: 0.72rem 1.26rem;
  font-size: 0.95rem;
}
#home-context-container,
.modules-select-section,
.view-header,
.module-header,
.demarche-section {
  width: var(--hero-width);
}
#home-context-container {
  margin: 0 auto 2.1rem;
}
.home-context-card {
  margin-top: -0.6rem;
  padding: 1.32rem 1.36rem;
}
.home-context-heading {
  margin-bottom: 0.9rem;
}
.home-context-heading h2 {
  font-size: 1.62rem;
  margin-bottom: 0.28rem;
}
.modules-select-section {
  margin-bottom: 2.55rem;
}
.home-section-heading {
  margin-bottom: 1rem;
}
.home-section-heading h2 {
  font-size: 1.9rem;
}
.section-desc {
  font-size: 0.96rem;
  line-height: 1.62;
}
.modules-select-grid {
  gap: 1.42rem;
}
.module-select-card {
  padding: 1.42rem 1.36rem 1.26rem;
}
.module-card-title {
  font-size: 1.08rem;
  line-height: 1.32;
}
.module-card-summary {
  font-size: 0.9rem;
  line-height: 1.58;
}
.module-card-highlights li {
  font-size: 0.81rem;
  line-height: 1.5;
}
.demarche-header {
  padding-top: 1.95rem;
  margin-bottom: 1.18rem;
}
.demarche-header h1 {
  font-size: 2.02rem;
  line-height: 1.12;
}
.demarche-header p,
.section-heading-block p,
.demarche-copy p,
.demarche-card p,
.demarche-step p,
.demarche-cta-panel p {
  font-size: 0.96rem;
  line-height: 1.64;
}
.section-heading-block h2,
.demarche-lead-card h2,
.demarche-cta-panel h2 {
  font-size: 1.5rem;
}
.demarche-lead-card,
.demarche-cta-panel {
  padding: 1.42rem 1.36rem;
}
.demarche-card {
  padding: 1.18rem 1.14rem;
}
.demarche-step {
  padding: 0.95rem 1.04rem;
  gap: 0.84rem;
}
.site-footer {
  margin-top: 1.9rem;
}
.footer-inner {
  width: var(--footer-width);
  max-width: none;
  gap: 0.48rem;
  padding: 0.92rem 0 1rem;
}
.footer-meta,
.footer-links,
.footer-quicknav {
  gap: 0.44rem 0.78rem;
}
.footer-meta {
  font-size: 0.82rem;
  line-height: 1.45;
}
.footer-view-link {
  padding: 0.36rem 0.7rem;
  font-size: 0.79rem;
}
.footer-links a,
.footer-meta a {
  font-size: 0.81rem;
  line-height: 1.45;
}
@media (max-width: 768px) {
  :root {
    --hero-width: min(100%, calc(100% - 1.25rem));
    --footer-width: min(100%, calc(100% - 1.25rem));
  }
  .header-inner {
    padding: 0.82rem 0;
    gap: 0.78rem;
  }
  .top-tabs {
    gap: 0.26rem;
  }
  .top-tab {
    min-height: 34px;
    padding: 0.46rem 0.7rem;
    font-size: 0.82rem;
  }
  .home-intro {
    padding: 2.05rem 0 2.35rem;
    margin-bottom: 1.55rem;
  }
  .hero-kicker {
    margin-bottom: 0.72rem;
  }
  .home-intro h1 {
    font-size: 2.14rem;
    line-height: 1.02;
    margin-bottom: 0.62rem;
  }
  .home-hero-subtitle,
  .home-intro p {
    font-size: 0.94rem;
    line-height: 1.58;
  }
  .home-hero-actions {
    gap: 0.62rem;
    margin-top: 1.08rem;
  }
  .hero-btn {
    min-height: 44px;
    padding: 0.68rem 1rem;
    font-size: 0.92rem;
  }
  #home-context-container {
    margin-bottom: 1.7rem;
  }
  .home-context-card,
  .module-select-card,
  .demarche-card,
  .demarche-lead-card,
  .demarche-cta-panel,
  .demarche-step {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .home-context-card {
    padding-top: 1.08rem;
    padding-bottom: 1.1rem;
  }
  .modules-select-section {
    margin-bottom: 2rem;
  }
  .home-section-heading {
    margin-bottom: 0.82rem;
  }
  .home-section-heading h2,
  .home-context-heading h2,
  .demarche-header h1 {
    font-size: 1.52rem;
    line-height: 1.15;
  }
  .section-desc,
  .demarche-header p,
  .section-heading-block p,
  .demarche-copy p,
  .demarche-card p,
  .demarche-step p,
  .demarche-cta-panel p {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .module-card-title {
    font-size: 1.02rem;
  }
  .module-card-summary {
    font-size: 0.88rem;
  }
  .module-card-highlights li {
    font-size: 0.79rem;
  }
  .footer-inner {
    gap: 0.42rem;
    padding: 0.86rem 0 0.96rem;
  }
  .footer-meta,
  .footer-links,
  .footer-quicknav {
    gap: 0.34rem 0.68rem;
  }
  .footer-view-link {
    padding: 0.34rem 0.62rem;
    font-size: 0.78rem;
  }
  .footer-links a,
  .footer-meta,
  .footer-meta a {
    font-size: 0.79rem;
  }
}


/* ===== v5.0.7 passe finale ultra fidèle ===== */
:root {
  --hero-width: min(1292px, calc(100% - 2.75rem));
  --footer-width: min(1292px, calc(100% - 2.75rem));
}
.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 1px 0 rgba(10, 37, 78, 0.08);
}
.header-inner {
  max-width: 1292px;
  min-height: 64px;
  padding: 0.7rem 0;
  gap: 1rem;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.brand-title-link {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.brand-subtitle {
  max-width: 760px;
  font-size: 0.735rem;
  line-height: 1.32;
}
.top-tabs {
  gap: 0.28rem;
}
.top-tab {
  min-height: 35px;
  padding: 0.48rem 0.82rem;
  border-radius: 10px;
  font-size: 0.855rem;
  font-weight: 650;
}
.home-intro {
  padding: 3.18rem 0 3.48rem;
  margin-bottom: 1.42rem;
}
.home-hero-inner {
  width: var(--hero-width);
  max-width: none;
}
.home-intro h1 {
  max-width: none;
  font-size: clamp(2.64rem, 5.02vw, 4.08rem);
  line-height: 1.015;
  letter-spacing: -0.05em;
  margin-bottom: 0.74rem;
}
.home-hero-subtitle {
  max-width: none;
  width: 100%;
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: -0.01em;
}
.home-hero-actions {
  margin-top: 1.22rem;
  gap: 0.72rem;
}
.hero-btn {
  min-height: 45px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
}
#home-context-container {
  margin: 0 auto 2rem;
}
.home-context-card {
  margin-top: -0.72rem;
  padding: 1.28rem 1.34rem;
}
.home-context-heading h2,
.home-section-heading h2 {
  letter-spacing: -0.03em;
}
.section-desc {
  max-width: 980px;
}
.modules-select-grid {
  gap: 1.34rem;
}
.module-select-card {
  min-height: 100%;
  border-radius: 16px;
  padding: 1.38rem 1.34rem 1.22rem;
}
.module-card-title {
  letter-spacing: -0.02em;
}
.site-footer {
  margin-top: 2.05rem;
  background: #ffffff;
  border-top: 1px solid #dfe7f1;
  box-shadow: 0 -1px 0 rgba(15, 28, 46, 0.03);
}
.footer-inner {
  width: var(--footer-width);
  max-width: none;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1rem 0 1.08rem;
}
.footer-meta {
  font-size: 0.81rem;
  font-weight: 600;
  color: #41546a;
}
.footer-quicknav {
  gap: 0.36rem 0.56rem;
}
.footer-view-link {
  min-height: 34px;
  padding: 0.34rem 0.7rem;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  background: #f7fbff;
  color: #214d87;
}
.footer-view-link:hover {
  background: #eef5ff;
  text-decoration: none;
}
.footer-links {
  width: 100%;
  padding-top: 0.56rem;
  border-top: 1px solid #e8eef6;
}
.footer-links a,
.footer-meta a {
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  :root {
    --hero-width: min(100%, calc(100% - 1rem));
    --footer-width: min(100%, calc(100% - 1rem));
  }
  .header-inner {
    padding: 0.74rem 0 0.8rem;
    gap: 0.7rem;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand-subtitle {
    font-size: 0.71rem;
    line-height: 1.28;
  }
  .top-tabs {
    gap: 0.22rem;
  }
  .top-tab {
    min-height: 33px;
    padding: 0.42rem 0.64rem;
    font-size: 0.79rem;
  }
  .home-intro {
    padding: 1.9rem 0 2.16rem;
    margin-bottom: 1.36rem;
  }
  .home-intro h1 {
    font-size: 2.04rem;
    line-height: 1.01;
    margin-bottom: 0.56rem;
  }
  .home-hero-subtitle,
  .home-intro p {
    font-size: 0.92rem;
    line-height: 1.52;
  }
  .home-hero-actions {
    margin-top: 1rem;
    gap: 0.56rem;
  }
  .hero-btn {
    min-height: 43px;
    padding: 0.66rem 0.92rem;
    font-size: 0.9rem;
  }
  #home-context-container {
    margin-bottom: 1.52rem;
  }
  .home-context-card {
    margin-top: -0.42rem;
    padding: 1.02rem 0.96rem 1.06rem;
  }
  .modules-select-section {
    margin-bottom: 1.84rem;
  }
  .module-select-card,
  .demarche-card,
  .demarche-lead-card,
  .demarche-cta-panel,
  .demarche-step {
    padding-left: 0.96rem;
    padding-right: 0.96rem;
  }
  .footer-inner {
    gap: 0.48rem;
    padding: 0.9rem 0 1rem;
  }
  .footer-links {
    padding-top: 0.48rem;
  }
}
@media (max-width: 560px) {
  .header-inner {
    padding-top: 0.68rem;
  }
  .home-intro {
    padding: 1.72rem 0 2rem;
  }
  .hero-kicker {
    margin-bottom: 0.64rem;
  }
  .home-intro h1 {
    font-size: 1.86rem;
  }
  .home-hero-subtitle,
  .home-intro p,
  .section-desc,
  .demarche-header p,
  .demarche-copy p,
  .demarche-card p,
  .demarche-step p,
  .demarche-cta-panel p {
    font-size: 0.89rem;
    line-height: 1.48;
  }
  .home-hero-actions {
    width: 100%;
  }
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-meta,
  .footer-links,
  .footer-quicknav {
    gap: 0.3rem 0.52rem;
  }
  .footer-view-link {
    font-size: 0.77rem;
  }
}


/* ===== v5.0.7 contrôle visuel final ===== */
:root {
  --hero-width: min(1296px, calc(100% - 2.5rem));
  --footer-width: min(1296px, calc(100% - 2.5rem));
}
.header-inner {
  max-width: 1296px;
}
.home-intro {
  padding: 3.08rem 0 3.34rem;
}
.home-intro h1 {
  font-size: clamp(2.7rem, 5.1vw, 4.12rem);
  line-height: 1.01;
  letter-spacing: -0.052em;
}
.home-hero-subtitle {
  font-size: 0.995rem;
  line-height: 1.6;
  max-width: none;
}
.home-hero-actions {
  margin-top: 1.14rem;
}
#home-context-container {
  margin: 0 auto 2rem;
}
.modules-select-grid {
  gap: 1.28rem;
  align-items: stretch;
}
.modules-select-grid > div {
  display: flex;
}
.module-select-card {
  width: 100%;
  min-height: 100%;
  border-radius: 17px;
  border: 1px solid #cfe0f2;
  box-shadow: 0 14px 34px rgba(15, 78, 169, 0.08), 0 1px 0 rgba(15, 78, 169, 0.04);
}
.module-select-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 78, 169, 0.12), 0 1px 0 rgba(15, 78, 169, 0.05);
}
.home-context-card,
.module-card,
.demarche-card,
.guide-card,
.reference-card,
.info-panel,
.embed-card {
  border-radius: 18px;
  border-color: #d8e4f0;
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.05);
}
.footer-inner {
  padding: 0.98rem 0 1.04rem;
}
@media (max-width: 900px) {
  .modules-select-grid {
    gap: 1.08rem;
  }
  .module-select-card {
    border-radius: 16px;
  }
}
@media (max-width: 768px) {
  :root {
    --hero-width: min(100%, calc(100% - 0.9rem));
    --footer-width: min(100%, calc(100% - 0.9rem));
  }
  .home-intro {
    padding: 1.84rem 0 2.08rem;
  }
  .home-intro h1 {
    font-size: 2rem;
    line-height: 1.01;
    margin-bottom: 0.54rem;
  }
  .home-hero-subtitle,
  .home-intro p {
    font-size: 0.915rem;
    line-height: 1.5;
  }
  .home-context-card {
    margin-top: -0.36rem;
  }
  .module-select-card,
  .home-context-card,
  .module-card,
  .demarche-card,
  .guide-card,
  .reference-card,
  .info-panel,
  .embed-card {
    border-radius: 16px;
  }
  .footer-inner {
    padding: 0.88rem 0 0.96rem;
  }
}
@media (max-width: 560px) {
  .home-intro {
    padding: 1.64rem 0 1.92rem;
  }
  .home-intro h1 {
    font-size: 1.82rem;
  }
  .home-hero-actions {
    gap: 0.52rem;
  }
  .module-card-title {
    font-size: 1.02rem;
  }
  .module-card-summary,
  .section-desc {
    font-size: 0.88rem;
    line-height: 1.46;
  }
}


/* ===== v5.0.7 recette finale ===== */
:root {
  --hero-width: min(1300px, calc(100% - 2.4rem));
  --footer-width: 100%;
}
.home-intro {
  padding: 3.02rem 0 3.26rem;
}
.home-intro h1 {
  font-size: clamp(2.74rem, 5.08vw, 4.08rem);
  line-height: 1.005;
}
.home-hero-subtitle,
.section-desc,
.module-card-summary,
.view-header p,
.demarche-card p,
.guide-card p {
  color: #314255;
}
.hero-btn-secondary {
  border-color: #c7d9ee;
  color: #174a86;
}
.module-select-card,
.home-context-card,
.module-card,
.demarche-card,
.guide-card,
.reference-card,
.info-panel,
.embed-card {
  box-shadow: 0 12px 30px rgba(15, 28, 46, 0.055);
}
.module-card-title {
  line-height: 1.26;
}
.module-card-highlights li {
  color: #425368;
}
.example-btn {
  border-color: #c6d7ea;
  background: #f7fbff;
  color: #174a86;
}
.example-btn:hover {
  background: #eef5ff;
}
.site-footer {
  margin-top: 1.9rem;
}
.footer-inner {
  width: 100%;
  max-width: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.82rem 1.35rem;
  overflow-x: auto;
}
.footer-meta,
.footer-links,
.footer-quicknav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.42rem 0.8rem;
  white-space: nowrap;
}
.footer-meta {
  line-height: 1.2;
}
.footer-links {
  flex: 1 1 auto;
  justify-content: center;
  padding-top: 0;
  border-top: 0;
}
.footer-quicknav {
  flex: 0 0 auto;
}
.footer-links a,
.footer-meta,
.footer-meta a,
.footer-view-link {
  font-size: 0.79rem;
}
@media (max-width: 1024px) {
  .footer-inner {
    gap: 0.72rem;
    padding-inline: 1rem;
  }
  .footer-links a,
  .footer-meta,
  .footer-meta a,
  .footer-view-link {
    font-size: 0.77rem;
  }
}
@media (max-width: 768px) {
  :root {
    --hero-width: min(100%, calc(100% - 0.85rem));
  }
  .home-intro {
    padding: 1.78rem 0 2rem;
  }
  .home-intro h1 {
    font-size: 1.98rem;
  }
  .home-hero-subtitle,
  .section-desc,
  .module-card-summary,
  .view-header p,
  .demarche-card p,
  .guide-card p {
    font-size: 0.91rem;
    line-height: 1.5;
  }
  .footer-inner {
    padding: 0.8rem 0.85rem 0.92rem;
  }
}

/* ===== v5.0.8 footer + Scribéo + visite guidée ===== */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.field-inline-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.field-inline-link:hover {
  text-decoration: underline;
}

.guide-hero-actions {
  margin-top: 1rem;
}

.site-footer {
  margin-top: 2.05rem;
  background: #ffffff;
  border-top: 1px solid #dfe7f1;
  box-shadow: 0 -1px 0 rgba(15, 28, 46, 0.03);
}

.footer-inner-single-line {
  width: min(100%, calc(100% - 1.5rem));
  max-width: 1360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.2rem;
  padding: 0.92rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.footer-inner-single-line .footer-meta,
.footer-inner-single-line .footer-links {
  display: flex;
  align-items: center;
  gap: 0.42rem 0.85rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-inner-single-line .footer-meta {
  flex: 0 0 auto;
  font-size: 0.81rem;
  font-weight: 600;
  color: #41546a;
}

.footer-inner-single-line .footer-links {
  flex: 1 1 auto;
  justify-content: flex-end;
  width: auto;
  padding-top: 0;
  border-top: 0;
}

.footer-inner-single-line .footer-links a,
.footer-inner-single-line .footer-meta a {
  font-size: 0.8rem;
}

.guided-tour-overlay {
  --guided-tour-x: 50vw;
  --guided-tour-y: 50vh;
  --guided-tour-radius: 150px;
  position: fixed;
  inset: 0;
  z-index: 14040;
  pointer-events: none;
}

.guided-tour-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--guided-tour-x) var(--guided-tour-y), rgba(255,255,255,.12) 0, rgba(255,255,255,.08) calc(var(--guided-tour-radius) * .46), rgba(15,23,42,.14) calc(var(--guided-tour-radius) * .72), rgba(15,23,42,.7) var(--guided-tour-radius));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.guided-tour-card {
  position: fixed;
  z-index: 14042;
  width: min(360px, calc(100vw - 24px));
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(21,101,192,.16);
  box-shadow: 0 18px 48px rgba(15,23,42,.24);
  pointer-events: auto;
}

.guided-tour-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guided-tour-step {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.guided-tour-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148,163,184,.22);
  overflow: hidden;
  margin: 0 0 12px;
}

.guided-tour-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #00a0e3);
  transition: width .2s ease;
}

.guided-tour-step-text {
  margin: 0 0 14px;
  color: #425368;
  font-size: 0.95rem;
  line-height: 1.52;
}

.guided-tour-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.guided-tour-focus-target {
  position: relative;
  z-index: 14041 !important;
  isolation: isolate;
  box-shadow: 0 0 0 4px rgba(96,165,250,.45), 0 0 0 10px rgba(96,165,250,.14), 0 18px 42px rgba(15,23,42,.16) !important;
  transform: scale(1.01);
  transition: transform .18s ease, box-shadow .18s ease;
}

[data-guided-tour-focus='true'] {
  scroll-margin: 92px;
}

.guided-tour-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #d7e2f0;
  background: #f7fbff;
  font-weight: 700;
}

.guided-tour-welcome-box {
  max-width: min(480px, calc(100vw - 24px));
}

.guided-tour-welcome-header {
  align-items: center;
}

.guided-tour-welcome-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.guided-tour-welcome-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f4ea9, #1e73d8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15,78,169,.24);
}

.guided-tour-welcome-brand-name {
  margin: 0;
}

.guided-tour-welcome-brand-text small {
  color: #5b6b7d;
  font-weight: 700;
}

.guided-tour-welcome-body {
  display: grid;
  gap: 10px;
}

.guided-tour-welcome-intro,
.guided-tour-welcome-list {
  color: #425368;
}

.guided-tour-welcome-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guided-tour-welcome-pills span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29,88,205,.1);
  color: var(--blue-900);
  font-size: 0.76rem;
  font-weight: 700;
}

.guided-tour-welcome-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.45;
}

.guided-tour-welcome-footer {
  gap: 8px;
}

@media (max-width: 900px) {
  .footer-inner-single-line {
    width: min(100%, calc(100% - 1rem));
    padding: 0.88rem 0;
  }

  .guided-tour-card {
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 14px;
  }

  .guided-tour-card-actions .btn {
    flex: 1 1 120px;
  }
}

@media (max-width: 768px) {
  .footer-inner-single-line {
    width: min(100%, calc(100% - 0.9rem));
  }

  .field-label-row {
    align-items: flex-start;
  }
}

/* ===== v5.0.9 guided tour + footer adjustments ===== */
.footer-inner-single-line {
  gap: 0.55rem 0.9rem;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.footer-inner-single-line .footer-meta,
.footer-inner-single-line .footer-links {
  gap: 0.28rem 0.6rem;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.footer-inner-single-line .footer-links {
  min-width: max-content;
}

.footer-inner-single-line .footer-links a,
.footer-inner-single-line .footer-meta,
.footer-inner-single-line .footer-meta a {
  font-size: 0.76rem;
  line-height: 1.15;
}

.guided-tour-overlay {
  z-index: 2147483000;
}

.guided-tour-card {
  z-index: 2147483646;
}

.guided-tour-focus-target {
  z-index: 2147483200 !important;
}

.guided-tour-card-head {
  cursor: move;
  touch-action: none;
  user-select: none;
}

.guided-tour-card.is-dragging,
body.guided-tour-dragging .guided-tour-card {
  cursor: grabbing;
}

.guided-tour-welcome-header {
  justify-content: flex-start;
}

.guided-tour-welcome-body {
  gap: 0;
}

.guided-tour-welcome-intro {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-inner-single-line .footer-links a,
  .footer-inner-single-line .footer-meta,
  .footer-inner-single-line .footer-meta a {
    font-size: 0.72rem;
  }
}


/* ===== v5.1.0 bouton vert + visite guidée renforcée + mode sombre ===== */
.hero-btn-secondary {
  background: #8ef0cf !important;
  color: #0f5132 !important;
  border-color: #8ef0cf !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.hero-btn-secondary:hover {
  background: #79e8c3 !important;
  border-color: #79e8c3 !important;
}

.top-tabs {
  gap: 0.45rem;
}

.nav-icon-btn.theme-toggle-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--blue-900);
  border: 1px solid rgba(148,163,184,.34);
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}
.nav-icon-btn.theme-toggle-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}
.nav-icon-btn.theme-toggle-btn i {
  font-size: 1rem;
}
.theme-toggle-btn.is-dark {
  background: rgba(15,23,42,.86);
  color: #fde68a;
  border-color: rgba(251,191,36,.28);
}

.guided-tour-overlay {
  z-index: 2147483646 !important;
  isolation: isolate;
}
.guided-tour-card {
  z-index: 2147483647 !important;
  width: min(388px, calc(100vw - 28px));
  transition: left .32s cubic-bezier(.22,1,.36,1), top .32s cubic-bezier(.22,1,.36,1), opacity .22s ease, transform .22s ease, box-shadow .18s ease;
  transform: translateZ(0);
  will-change: left, top, transform, opacity;
}
.guided-tour-card[hidden] {
  display: none !important;
}
.guided-tour-card-head {
  align-items: center;
  gap: 10px;
}
.guided-tour-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.guided-tour-move-btn {
  min-height: 34px;
  padding: 0.38rem 0.72rem;
}
.guided-tour-move-btn.is-active,
.guided-tour-card.is-move-mode .guided-tour-move-btn {
  background: #e8f0ff;
  border-color: #bfd3f5;
  color: var(--blue-900);
}
.guided-tour-card.is-move-mode .guided-tour-card-head {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.guided-tour-card.is-dragging,
body.guided-tour-dragging .guided-tour-card,
body.guided-tour-dragging .guided-tour-card.is-move-mode .guided-tour-card-head {
  cursor: grabbing !important;
  transition: none !important;
}
.guided-tour-focus-target {
  z-index: 2147483645 !important;
}
.guided-tour-progress span {
  transition: width .26s cubic-bezier(.22,1,.36,1);
}

body.theme-dark {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5eefb;
  --muted: #9fb0c7;
  --border: #334155;
  --blue-100: #14233f;
  --indigo-100: #1d2342;
  --teal-100: #0b2f35;
  --orange-100: #3a2612;
  --green-100: #123025;
  background: var(--bg);
  color: var(--text);
}
body.theme-dark .site-header {
  background: linear-gradient(135deg, #0b2c70 0%, #113983 100%);
  border-bottom-color: rgba(255,255,255,.12);
}
body.theme-dark .top-tab {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
}
body.theme-dark .top-tab:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
body.theme-dark .top-tab.active {
  background: #fff;
  color: var(--blue-900);
}
body.theme-dark .nav-icon-btn.theme-toggle-btn {
  background: rgba(15,23,42,.88);
  color: #fde68a;
  border-color: rgba(251,191,36,.24);
}
body.theme-dark .home-context-card,
body.theme-dark .module-card,
body.theme-dark .guide-card,
body.theme-dark .reference-card,
body.theme-dark .info-panel,
body.theme-dark .embed-card,
body.theme-dark .module-select-card,
body.theme-dark .modal-box,
body.theme-dark .site-footer,
body.theme-dark .field-group,
body.theme-dark .activity-card,
body.theme-dark .detail-choice-card,
body.theme-dark .single-choice-card,
body.theme-dark .program-class-card,
body.theme-dark .home-theme-summary-box {
  background: #111827;
  color: var(--text);
  border-color: #334155;
  box-shadow: 0 12px 30px rgba(2,6,23,.34);
}
body.theme-dark .app-shell,
body.theme-dark .view,
body.theme-dark .modules-select-section,
body.theme-dark .home-section,
body.theme-dark .home-accessibility-panel {
  background: transparent;
}
body.theme-dark .home-section-heading h2,
body.theme-dark .home-section h2,
body.theme-dark .module-card-heading h3,
body.theme-dark .view-header h1,
body.theme-dark .module-header h1,
body.theme-dark .guide-card h2,
body.theme-dark .guide-card h3,
body.theme-dark .reference-card h3,
body.theme-dark .module-card-title,
body.theme-dark .field-label,
body.theme-dark .brand-title-link,
body.theme-dark .brand-title,
body.theme-dark .modal-box h2,
body.theme-dark .modal-box h3 {
  color: #e5eefb;
}
body.theme-dark .section-desc,
body.theme-dark .field-helper,
body.theme-dark .module-card-summary,
body.theme-dark .module-card-highlights li,
body.theme-dark .guide-card p,
body.theme-dark .info-panel p,
body.theme-dark .reference-card p,
body.theme-dark .view-header p,
body.theme-dark .module-header p,
body.theme-dark .brand-subtitle,
body.theme-dark .footer-meta,
body.theme-dark .footer-links a,
body.theme-dark .home-theme-summary-box,
body.theme-dark .guided-tour-step-text,
body.theme-dark .guided-tour-welcome-intro,
body.theme-dark .guided-tour-welcome-brand-text small,
body.theme-dark .guided-tour-welcome-list,
body.theme-dark .modal-box p,
body.theme-dark .modal-box li {
  color: #cbd5e1;
}
body.theme-dark .field-input,
body.theme-dark .field-textarea,
body.theme-dark .prompt-textarea,
body.theme-dark select,
body.theme-dark input,
body.theme-dark textarea {
  background: #0f172a;
  color: #e5eefb;
  border-color: #334155;
}
body.theme-dark .field-input::placeholder,
body.theme-dark .field-textarea::placeholder,
body.theme-dark .prompt-textarea::placeholder,
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #94a3b8;
}
body.theme-dark .btn-secondary,
body.theme-dark .example-btn,
body.theme-dark .theme-tab-btn,
body.theme-dark .program-class-card,
body.theme-dark .detail-choice-card,
body.theme-dark .single-choice-card,
body.theme-dark .check-pill,
body.theme-dark .module-inline-toggle,
body.theme-dark .footer-view-link,
body.theme-dark .guided-tour-keycap {
  background: #0f172a;
  color: #e5eefb;
  border-color: #334155;
}
body.theme-dark .btn-secondary:hover,
body.theme-dark .example-btn:hover,
body.theme-dark .theme-tab-btn:hover,
body.theme-dark .program-class-card:hover,
body.theme-dark .detail-choice-card:hover,
body.theme-dark .single-choice-card:hover,
body.theme-dark .footer-view-link:hover {
  background: #172036;
  color: #fff;
}
body.theme-dark .theme-tab-btn.active,
body.theme-dark .theme-tab-btn:has(input:checked),
body.theme-dark .program-class-card.selected,
body.theme-dark .detail-choice-card.selected,
body.theme-dark .single-choice-card.selected {
  background: rgba(37,99,235,.2);
  border-color: rgba(96,165,250,.55);
  color: #dbeafe;
}
body.theme-dark .site-footer {
  background: #0b1220;
  border-top-color: #334155;
}
body.theme-dark .guided-tour-card {
  background: rgba(15,23,42,.96);
  border-color: rgba(148,163,184,.28);
  box-shadow: 0 18px 54px rgba(2,6,23,.58);
}
body.theme-dark .guided-tour-progress {
  background: rgba(148,163,184,.18);
}
body.theme-dark .guided-tour-welcome-pills span {
  background: rgba(59,130,246,.16);
  color: #dbeafe;
}
body.theme-dark .guided-tour-move-btn.is-active,
body.theme-dark .guided-tour-card.is-move-mode .guided-tour-move-btn {
  background: rgba(59,130,246,.18);
  color: #dbeafe;
  border-color: rgba(96,165,250,.28);
}
body.theme-dark .modal-header {
  background: linear-gradient(135deg, #0b2c70 0%, #113983 100%);
}
body.theme-dark .module-card-recommendation {
  background: rgba(37,99,235,.14);
  color: #dbeafe;
}
body.theme-dark .module-card-badge {
  color: #93c5fd;
}
body.theme-dark .module-card-icon-cecrl {
  background: rgba(217,119,6,.18);
  color: #fdba74;
}
body.theme-dark .module-card-icon-neuro {
  background: rgba(124,58,237,.2);
  color: #d8b4fe;
}
body.theme-dark .module-card-icon-cooperation {
  background: rgba(13,148,136,.18);
  color: #99f6e4;
}
body.theme-dark .context-heading-icon {
  background: rgba(37,99,235,.18);
  color: #bfdbfe;
}

@media (max-width: 900px) {
  .nav-icon-btn.theme-toggle-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .guided-tour-card {
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 14px;
  }
}


/* ===== v5.1.1 accueil + mode sombre + Scribéo ===== */
.home-intro {
  padding-top: 2.35rem;
}

.home-intro h1 {
  margin-top: 0;
}

.field-label-row {
  gap: 1rem;
}

.field-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.field-inline-link-scribeo {
  padding-left: 0.1rem;
}

.field-inline-logo {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.top-tabs > .nav-icon-btn.theme-toggle-btn {
  align-self: center;
  flex: 0 0 auto;
}

body.theme-dark .home-intro,
body.theme-dark .home-context-card,
body.theme-dark .module-card,
body.theme-dark .guide-card,
body.theme-dark .reference-card,
body.theme-dark .info-panel,
body.theme-dark .embed-card,
body.theme-dark .module-select-card,
body.theme-dark .modal-box,
body.theme-dark .site-footer,
body.theme-dark .field-group,
body.theme-dark .activity-card,
body.theme-dark .detail-choice-card,
body.theme-dark .single-choice-card,
body.theme-dark .program-class-card,
body.theme-dark .home-theme-summary-box,
body.theme-dark .cecrl-strategy-card,
body.theme-dark .prompt-card,
body.theme-dark .guide-hero-card,
body.theme-dark .demarche-card,
body.theme-dark .demarche-step,
body.theme-dark .demarche-lead-card,
body.theme-dark .module-support-card,
body.theme-dark .info-card,
body.theme-dark .reference-list,
body.theme-dark .field-choice-grid > *,
body.theme-dark .module-grid > *,
body.theme-dark .program-grid > * {
  background: #111827 !important;
  color: #e5eefb !important;
  border-color: #334155 !important;
}

body.theme-dark .module-select-card:hover,
body.theme-dark .module-select-card:focus-visible,
body.theme-dark .guide-card:hover,
body.theme-dark .reference-card:hover,
body.theme-dark .program-class-card:hover,
body.theme-dark .detail-choice-card:hover,
body.theme-dark .single-choice-card:hover,
body.theme-dark .theme-tab-btn:hover,
body.theme-dark .example-btn:hover {
  background: #172036 !important;
}

body.theme-dark .home-intro::before {
  opacity: 0.16;
}

body.theme-dark .home-intro::after {
  background: radial-gradient(circle, rgba(96,165,250,0.22) 0%, rgba(96,165,250,0) 72%);
}

body.theme-dark :is(.home-context-card, .module-card, .guide-card, .reference-card, .info-panel, .embed-card, .module-select-card, .modal-box, .site-footer, .field-group, .activity-card, .detail-choice-card, .single-choice-card, .program-class-card, .home-theme-summary-box, .cecrl-strategy-card, .prompt-card, .guide-hero-card, .demarche-card, .demarche-step, .demarche-lead-card, .module-support-card, .info-card, .reference-list, .field-choice-grid > *, .module-grid > *, .program-grid > *) :is(h1, h2, h3, h4, p, li, label, span, strong, em, small) {
  color: inherit;
}

body.theme-dark .field-inline-link,
body.theme-dark .field-inline-link span,
body.theme-dark .field-inline-link-scribeo {
  color: #93c5fd !important;
}

body.theme-dark .field-inline-link:hover,
body.theme-dark .field-inline-link:hover span {
  color: #dbeafe !important;
}

body.theme-dark .field-inline-logo {
  filter: brightness(1.05) saturate(1.05);
}


/* ===== v5.1.5 liens + confidentialité ===== */
.btn-primary {
  background: #8ef0cf;
  color: #0f5132;
  border-color: #8ef0cf;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.btn-primary:hover {
  background: #79e8c3;
  border-color: #79e8c3;
}

body.theme-dark .btn-primary {
  background: #8ef0cf;
  color: #0f5132;
  border-color: #8ef0cf;
}
body.theme-dark .btn-primary:hover {
  background: #79e8c3;
  border-color: #79e8c3;
  color: #0b3d28;
}

body.theme-dark #view-module .card-3d,
body.theme-dark #view-module .detail-choice-card,
body.theme-dark #view-module .single-choice-card,
body.theme-dark #view-module .program-class-card,
body.theme-dark #view-module .explicite-step-card,
body.theme-dark #view-module .criteria-item-card,
body.theme-dark #view-module .diff-option-card,
body.theme-dark #view-module .neuro-option-card,
body.theme-dark #view-module .consigne-cat-card,
body.theme-dark #view-module .output-format-card,
body.theme-dark #view-module .context-reminder-grid article,
body.theme-dark #view-module .assign-criteria-toggle,
body.theme-dark #view-module .selected-criteria-preview,
body.theme-dark #view-module .consigne-assignment-card,
body.theme-dark #view-module .program-item,
body.theme-dark #view-module .shared-edit-panel,
body.theme-dark #view-module .prompt-example-card,
body.theme-dark #view-module .module-inline-toggle,
body.theme-dark #view-module .prompt-badge,
body.theme-dark #view-module .theme-selector-wrap,
body.theme-dark #view-module .home-theme-summary-box,
body.theme-dark #view-module .activity-card,
body.theme-dark #view-module .field-input,
body.theme-dark #view-module .field-textarea,
body.theme-dark #view-module .prompt-textarea,
body.theme-dark #view-module select,
body.theme-dark #view-module input,
body.theme-dark #view-module textarea {
  background: #111827 !important;
  color: #e5eefb !important;
  border-color: #334155 !important;
}

body.theme-dark #view-module .card-3d-inner strong,
body.theme-dark #view-module .card-3d-inner p,
body.theme-dark #view-module .detail-choice-card-body,
body.theme-dark #view-module .detail-choice-card-title,
body.theme-dark #view-module .detail-choice-card-desc,
body.theme-dark #view-module .diff-card-label strong,
body.theme-dark #view-module .diff-card-desc,
body.theme-dark #view-module .output-format-card-desc,
body.theme-dark #view-module .program-item span,
body.theme-dark #view-module .program-item strong,
body.theme-dark #view-module .assign-criteria-toggle strong,
body.theme-dark #view-module .assign-criteria-toggle small,
body.theme-dark #view-module .context-reminder-grid article span,
body.theme-dark #view-module .context-reminder-grid article strong,
body.theme-dark #view-module .selected-criteria-preview,
body.theme-dark #view-module .criteria-item-card span,
body.theme-dark #view-module .criteria-item-card strong,
body.theme-dark #view-module .module-card-heading h3,
body.theme-dark #view-module .module-card-heading p,
body.theme-dark #view-module .field-label,
body.theme-dark #view-module label > span:first-child,
body.theme-dark #view-module .field-helper,
body.theme-dark #view-module .shared-edit-panel-head strong,
body.theme-dark #view-module .prompt-badge,
body.theme-dark #view-module .theme-axe-titre,
body.theme-dark #view-module .theme-axe-desc {
  color: #e5eefb !important;
}

body.theme-dark #view-module .card-3d.selected,
body.theme-dark #view-module .detail-choice-card.is-selected,
body.theme-dark #view-module .detail-choice-card:has(input:checked),
body.theme-dark #view-module .single-choice-card:has(input:checked),
body.theme-dark #view-module .program-class-card:has(input:checked),
body.theme-dark #view-module .program-class-card.active,
body.theme-dark #view-module .program-class-card.selected,
body.theme-dark #view-module .explicite-step-card.active,
body.theme-dark #view-module .criteria-item-card:has(input:checked),
body.theme-dark #view-module .diff-option-card:has(input:checked),
body.theme-dark #view-module .neuro-option-card:has(input:checked),
body.theme-dark #view-module .consigne-cat-card:has(input:checked),
body.theme-dark #view-module .output-format-card:has(input:checked) {
  background: linear-gradient(180deg, #172036 0%, #1e293b 100%) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.34) !important;
}

body.theme-dark #view-module .field-input::placeholder,
body.theme-dark #view-module .field-textarea::placeholder,
body.theme-dark #view-module .prompt-textarea::placeholder,
body.theme-dark #view-module input::placeholder,
body.theme-dark #view-module textarea::placeholder {
  color: #94a3b8 !important;
}

body.theme-dark #view-demarche .view-header,
body.theme-dark #view-demarche .demarche-lead-card,
body.theme-dark #view-demarche .demarche-card,
body.theme-dark #view-demarche .demarche-step,
body.theme-dark #view-demarche .demarche-cta-panel,
body.theme-dark #view-demarche .demarche-section,
body.theme-dark #view-demarche .section-heading-block {
  background: #111827 !important;
  color: #e5eefb !important;
  border-color: #334155 !important;
}

body.theme-dark #view-demarche .eyebrow,
body.theme-dark #view-demarche h1,
body.theme-dark #view-demarche h2,
body.theme-dark #view-demarche h3,
body.theme-dark #view-demarche .section-heading-block p,
body.theme-dark #view-demarche .demarche-copy p,
body.theme-dark #view-demarche .demarche-card p,
body.theme-dark #view-demarche .demarche-step p,
body.theme-dark #view-demarche .view-header p {
  color: #e5eefb !important;
}

body.theme-dark #view-demarche .demarche-step-number {
  background: rgba(59,130,246,.18) !important;
  color: #dbeafe !important;
  border-color: rgba(96,165,250,.28) !important;
}

body.theme-dark #view-liens .liens-section,
body.theme-dark #view-liens .reference-card,
body.theme-dark #view-liens .link-card,
body.theme-dark #view-liens .guide-card,
body.theme-dark #view-liens .info-panel,
body.theme-dark #view-liens .program-item {
  background: #111827 !important;
  color: #e5eefb !important;
  border-color: #334155 !important;
}

body.theme-dark #view-liens .link-card {
  background: linear-gradient(180deg, #111827 0%, #172036 100%) !important;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28) !important;
}
body.theme-dark #view-liens .link-card:hover,
body.theme-dark #view-liens .link-card:focus-visible {
  background: linear-gradient(180deg, #172036 0%, #1e293b 100%) !important;
  border-color: #60a5fa !important;
}

body.theme-dark #view-liens .liens-section-title,
body.theme-dark #view-liens .liens-section-desc,
body.theme-dark #view-liens h2,
body.theme-dark #view-liens h3,
body.theme-dark #view-liens p,
body.theme-dark #view-liens li,
body.theme-dark #view-liens span,
body.theme-dark #view-liens strong,
body.theme-dark #view-liens a,
body.theme-dark #view-liens .reference-author {
  color: #e5eefb !important;
}

body.theme-dark #view-liens .liens-section-title i,
body.theme-dark #view-liens .reference-card h3 i {
  color: #93c5fd !important;
}

/* ===== v5.1.3 audit sombre complet modules ===== */
body.theme-dark #view-module .check-pill,
body.theme-dark #view-module .module-choice-card,
body.theme-dark #view-module .module-inline-toggle,
body.theme-dark #view-module .detail-choice-card,
body.theme-dark #view-module .single-choice-card,
body.theme-dark #view-module .structure-tile,
body.theme-dark #view-module .explicite-step-card,
body.theme-dark #view-module .explicite-stage-panel,
body.theme-dark #view-module .guidance-card,
body.theme-dark #view-module .guidance-card-empty,
body.theme-dark #view-module .support-panel-block,
body.theme-dark #view-module .cecrl-activity-group,
body.theme-dark #view-module .activity-reminder-tags span,
body.theme-dark #view-module .explicite-criteria-chip,
body.theme-dark #view-module .explicite-dropzone,
body.theme-dark #view-module .explicite-assigned-chip,
body.theme-dark #view-module .explicite-chip-remove,
body.theme-dark #view-module .btn-outline,
body.theme-dark #view-module .btn-secondary,
body.theme-dark #view-module .eyebrow,
body.theme-dark #view-module .option-recommendation-badge,
body.theme-dark #view-module .guidance-source {
  background: #111827 !important;
  background-image: none !important;
  color: #e5eefb !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28) !important;
}

body.theme-dark #view-module .detail-choice-card::before,
body.theme-dark #view-module .module-choice-card::before,
body.theme-dark #view-module .card-3d::before,
body.theme-dark #view-module .guidance-card::before,
body.theme-dark #view-module .support-panel-block::before,
body.theme-dark #view-module .structure-tile::before {
  background: none !important;
}

body.theme-dark #view-module .check-pill:hover,
body.theme-dark #view-module .module-inline-toggle:hover,
body.theme-dark #view-module .detail-choice-card:hover,
body.theme-dark #view-module .single-choice-card:hover,
body.theme-dark #view-module .structure-tile:hover,
body.theme-dark #view-module .explicite-step-card:hover,
body.theme-dark #view-module .guidance-card:hover,
body.theme-dark #view-module .support-panel-block:hover,
body.theme-dark #view-module .cecrl-activity-group:hover,
body.theme-dark #view-module .btn-outline:hover,
body.theme-dark #view-module .btn-secondary:hover {
  background: #172036 !important;
  background-image: none !important;
  border-color: #60a5fa !important;
  color: #e5eefb !important;
}

body.theme-dark #view-module .detail-choice-card.is-selected,
body.theme-dark #view-module .detail-choice-card:has(input:checked),
body.theme-dark #view-module .single-choice-card:has(input:checked),
body.theme-dark #view-module .program-class-card:has(input:checked),
body.theme-dark #view-module .program-class-card.active,
body.theme-dark #view-module .program-class-card.selected,
body.theme-dark #view-module .explicite-step-card.active,
body.theme-dark #view-module .structure-tile.active,
body.theme-dark #view-module .structure-tile:has(input:checked),
body.theme-dark #view-module .criteria-item-card:has(input:checked),
body.theme-dark #view-module .diff-option-card:has(input:checked),
body.theme-dark #view-module .neuro-option-card:has(input:checked),
body.theme-dark #view-module .consigne-cat-card:has(input:checked),
body.theme-dark #view-module .output-format-card:has(input:checked),
body.theme-dark #view-module .explicite-stage-panel.is-selected,
body.theme-dark #view-module .explicite-stage-panel:focus-within,
body.theme-dark #view-module .explicite-dropzone.is-over,
body.theme-dark #view-module .explicite-dropzone.has-items {
  background: #172036 !important;
  background-image: none !important;
  border-color: #60a5fa !important;
  color: #e5eefb !important;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.34) !important;
}

body.theme-dark #view-module .check-pill,
body.theme-dark #view-module .check-pill-content,
body.theme-dark #view-module .check-pill-text,
body.theme-dark #view-module .detail-choice-card-title,
body.theme-dark #view-module .detail-choice-card-desc,
body.theme-dark #view-module .option-recommendation-badge,
body.theme-dark #view-module .structure-tile strong,
body.theme-dark #view-module .structure-tile span,
body.theme-dark #view-module .structure-tile small,
body.theme-dark #view-module .structure-tile-head strong,
body.theme-dark #view-module .explicite-step-card strong,
body.theme-dark #view-module .explicite-step-card span,
body.theme-dark #view-module .guidance-card h4,
body.theme-dark #view-module .guidance-card p,
body.theme-dark #view-module .guidance-source,
body.theme-dark #view-module .support-panel-block h4,
body.theme-dark #view-module .support-link-list a,
body.theme-dark #view-module .support-link-description,
body.theme-dark #view-module .activity-reminder-tags span,
body.theme-dark #view-module .cecrl-activity-group h3,
body.theme-dark #view-module .cecrl-activity-group h4,
body.theme-dark #view-module .cecrl-activity-group p,
body.theme-dark #view-module .cecrl-activity-group span,
body.theme-dark #view-module .cecrl-activity-group strong,
body.theme-dark #view-module .explicite-criteria-chip,
body.theme-dark #view-module .explicite-assigned-chip,
body.theme-dark #view-module .explicite-dropzone-empty,
body.theme-dark #view-module .module-inline-toggle-content strong,
body.theme-dark #view-module .module-inline-toggle-content span,
body.theme-dark #view-module .module-choice-card h3,
body.theme-dark #view-module .module-choice-card p,
body.theme-dark #view-module .btn-outline,
body.theme-dark #view-module .btn-secondary,
body.theme-dark #view-module .eyebrow {
  color: #e5eefb !important;
}

body.theme-dark #view-module .support-link-list a:hover,
body.theme-dark #view-module .support-link-list a:focus,
body.theme-dark #view-module .text-link,
body.theme-dark #view-module .example-btn {
  color: #93c5fd !important;
}

body.theme-dark #view-module .explicite-chip-remove:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}


/* ===== v5.1.5 ajustements ciblés ===== */
.brand-logo-link {
  text-decoration: none;
}

.guide-card .cta-row {
  margin-top: 0.85rem;
}

body.theme-dark .cecrl-selected-level-card {
  background: #111827 !important;
  background-image: none !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28) !important;
  color: #e5eefb !important;
}

body.theme-dark .cecrl-selected-level-card strong,
body.theme-dark .cecrl-selected-level-card span {
  color: #e5eefb !important;
}

/* Atelier Albert — respecte les couleurs et boutons de DidactiCUA */
.albert-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(340px,2fr);gap:1.25rem;align-items:start}
.albert-panel{border:1px solid var(--border-color,#cbd5e1);border-radius:14px;padding:1.2rem;background:var(--card-bg,var(--surface,#fff));min-width:0}
.albert-panel h2{font-size:1.2rem;margin:0 0 1rem}.albert-panel label{display:block;font-weight:650;margin:.8rem 0 .3rem}
.albert-panel input,.albert-panel textarea{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #94a3b8;border-radius:8px;padding:.65rem;background:var(--input-bg,transparent);color:inherit;font:inherit}
.albert-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}.albert-messages{min-height:270px;max-height:560px;overflow:auto;display:flex;flex-direction:column;gap:.7rem;padding:.5rem}
.albert-bubble{border:1px solid #94a3b8;border-radius:12px;padding:.85rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.albert-bubble.user{margin-left:12%;background:rgba(59,130,246,.10)}.albert-bubble.assistant{margin-right:6%;background:rgba(16,185,129,.08)}
.albert-status{margin-bottom:1rem;font-weight:600}.albert-hint{font-size:.85rem;opacity:.75;margin:.5rem 0}.albert-sources{margin-top:1rem;font-size:.9rem}.albert-sources a{overflow-wrap:anywhere}
@media(max-width:850px){.albert-grid{grid-template-columns:1fr}.albert-messages{max-height:450px}}

/* Atelier Albert — panneau de contrôle qualité V1.2 */
.albert-quality[hidden]{display:none!important}
.albert-quality{margin-top:1rem;padding:1rem 1.15rem;border:1px solid var(--border-color,#a5adb6);border-radius:12px;background:var(--card-bg,transparent);overflow-wrap:anywhere}
.albert-quality h3{margin:0 0 .5rem;font-size:1.05rem}
.albert-quality p{margin:.45rem 0}
.albert-quality ul{margin:.35rem 0 .6rem;padding-left:1.5rem}
.albert-quality li{margin:.35rem 0}
.albert-quality-status{font-weight:700}
.albert-quality-ok{font-weight:650;color:#237a4b}
.albert-quality-warning{font-weight:650;color:#a34c16}
.albert-quality-note{font-size:.85rem;opacity:.8}

/* V1.3 — Atelier Albert, contraste complet en mode nuit */
body.theme-dark #view-albert { color:#eef4ff; }
body.theme-dark #view-albert .albert-panel,
body.theme-dark #view-albert .albert-quality {background:#17253e!important;border-color:#435775!important;color:#f0f5ff!important;}
body.theme-dark #view-albert .albert-messages {background:#111c31!important;color:#eef4ff!important;border-radius:12px;}
body.theme-dark #view-albert .albert-bubble {color:#f3f7ff!important;border-color:#536a8b!important;}
body.theme-dark #view-albert .albert-bubble.assistant {background:#1b3441!important;}
body.theme-dark #view-albert .albert-bubble.user {background:#203b63!important;}
body.theme-dark #view-albert input,
body.theme-dark #view-albert textarea {background:#101b2f!important;color:#f7faff!important;border-color:#7085a5!important;}
body.theme-dark #view-albert input::placeholder,
body.theme-dark #view-albert textarea::placeholder {color:#b3c2da!important;opacity:1;}
body.theme-dark #view-albert :is(h1,h2,h3,p,label,span,strong,li,.albert-status,.albert-hint) {color:#eef4ff;}
body.theme-dark #view-albert .albert-quality-ok {color:#8ce8b1!important;}
body.theme-dark #view-albert .albert-quality-warning {color:#ffd28c!important;}
body.theme-dark #view-albert .albert-sources a {color:#9fcaff!important;}
body.theme-dark #view-albert .btn-outline {background:#223657!important;color:#f3f7ff!important;border-color:#7890b5!important;}
body.theme-dark #view-albert .btn-primary {background:#3268c8!important;color:#fff!important;}
/* Accueil — quatre cartes, l’atelier Albert en première position */
.modules-select-grid {grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;}
.modules-select-grid > [role="listitem"] {min-width:0;}
.modules-select-grid .module-select-card {height:100%;}
.albert-home-card {position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:.65rem;text-align:left;width:100%;height:100%;padding:1.2rem;border-radius:15px;border:2px solid #5c86ef;background:linear-gradient(155deg,#102d70,#2149a4 65%,#142e6b);color:#fff;box-shadow:0 10px 24px #122b6333;transition:transform .22s ease,box-shadow .22s ease;overflow:hidden;}
.albert-home-card:hover,.albert-home-card:focus-visible {transform:translateY(-6px);box-shadow:0 18px 32px #102b6855;}
.albert-home-card:focus-visible {outline:3px solid #ffc56b;outline-offset:3px;}
.albert-home-art {display:flex;align-items:center;gap:.6rem;font-size:1.65rem;color:#e3eeff;min-height:55px;animation:albert-float 3.5s ease-in-out infinite;}
.albert-home-art .fa-graduation-cap {font-size:1.15rem;color:#a7e6ff;transform:rotate(-12deg);}
@keyframes albert-float {0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){.albert-home-art{animation:none}.albert-home-card{transition:none}}
.albert-home-eyebrow {font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#c7e6ff;}
.albert-home-title {font-size:1.25rem;line-height:1.25;color:#fff;}
.albert-home-description {font-size:.87rem;line-height:1.55;color:#f0f5ff;}
.albert-home-provider {font-size:.77rem;line-height:1.5;color:#d7e7ff;}
.albert-home-cta {margin-top:auto;font-size:.86rem;font-weight:800;color:#fff;display:flex;gap:.55rem;align-items:center;padding-top:.6rem;}
body.theme-dark .albert-home-card {background:linear-gradient(155deg,#122b5c,#193f86 65%,#112b56);border-color:#729cff;color:#fff;}
body.theme-dark .albert-home-card :is(strong,span,i) {color:inherit;}
@media(max-width:1150px){.modules-select-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.modules-select-grid{grid-template-columns:1fr;}}

/* Atelier Albert — document joint, thèmes clair et sombre */
.albert-attachment{margin:1rem 0;padding:1rem;border:1px solid var(--border, #718096);border-radius:12px;background:var(--card-bg, rgba(100,116,139,.12));color:inherit}
.albert-attachment label{display:block;font-weight:700;margin-bottom:.55rem}
.albert-attachment input[type=file]{display:block;width:100%;max-width:100%;color:inherit;background:transparent;padding:.55rem 0}
.albert-attachment input[type=file]::file-selector-button{border:1px solid currentColor;border-radius:7px;padding:.4rem .7rem;background:transparent;color:inherit;margin-right:.7rem;cursor:pointer}
#albert-file-status{margin:.5rem 0;overflow-wrap:anywhere;font-size:.92rem}
#albert-file-clear:not([hidden]){margin-top:.4rem}

/* V1.7 — Assistance Albert dans les trois modules manuels */
.module-albert-section{margin:1rem 0;padding:1rem;border:1px solid var(--border-color,#9ca3af);border-radius:12px}
.module-albert-status{margin:.65rem 0;min-height:1.25rem}
.module-albert-result{margin-top:1rem}
.module-albert-answer{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.55;max-height:35rem;overflow:auto;padding:1rem;border-radius:8px;background:var(--surface-muted,rgba(120,120,120,.10));color:inherit}
.module-albert-quality{margin-top:.75rem}
.module-albert-quality ul{padding-left:1.5rem}

/* V1.8 — espace de travail Albert à trois modules */
.albert-workspace{display:grid;grid-template-columns:minmax(280px,35%) minmax(0,1fr);gap:1.2rem;align-items:start}
.albert-workspace-sidebar{max-height:calc(100vh - 6rem);overflow-y:auto;position:sticky;top:1rem;padding:.65rem;border:1px solid var(--border-color,#9ca3af);border-radius:12px}
.albert-workspace-sidebar>h2{font-size:1.15rem;padding:.5rem;margin:0}
.albert-workspace-main{min-width:0}
.albert-workspace-main .prompt-textarea{width:100%;min-height:18rem;resize:vertical;white-space:pre-wrap}
.albert-workspace-main .albert-followup{min-height:5rem}
.albert-reference-panel ul{padding-left:1.4rem}
.albert-reference-panel li{margin:.4rem 0}
@media(max-width:900px){.albert-workspace{grid-template-columns:1fr}.albert-workspace-sidebar{position:static;max-height:none}}

/* V1.11 — accueil : trois boutons pleine largeur, bleu Albert au survol et à la sélection */
#home-modules-grid.modules-select-grid {
  display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:1rem;
}
#home-modules-grid.modules-select-grid > .home-manual-module {width:100%;min-width:0;}
#home-modules-grid .module-select-card {
  width:100%;min-height:150px;height:auto;
  display:grid;grid-template-columns:minmax(65px,95px) minmax(0,1fr);
  align-items:center;gap:.6rem 1.3rem;
  border:2px solid #5c86ef;transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
#home-modules-grid .module-select-card .module-select-card-top {grid-column:1;grid-row:1 / span 2;}
#home-modules-grid .module-select-card .module-card-copy {grid-column:2;grid-row:1;}
#home-modules-grid .module-select-card .module-card-highlights {grid-column:2;grid-row:2;}
#home-modules-grid .module-select-card:is(:hover,:focus-visible,:active,.is-selected) {
  background:linear-gradient(155deg,#102d70,#2149a4 65%,#142e6b) !important;
  border-color:#5c86ef !important;color:#fff !important;
  box-shadow:0 12px 28px rgba(16,43,104,.32);
}
#home-modules-grid .module-select-card:is(:hover,:focus-visible,:active,.is-selected) :is(.module-card-title,.module-card-summary,.module-card-badge,.module-card-highlights,.module-card-highlights li,.module-card-copy,.module-card-recommendation) {color:#fff !important;}
#home-modules-grid .module-select-card:focus-visible {outline:3px solid #ffc56b;outline-offset:3px;}
body.theme-dark #home-modules-grid .module-select-card:is(:hover,:focus-visible,:active,.is-selected) {
  background:linear-gradient(155deg,#122b5c,#193f86 65%,#112b56) !important;
  border-color:#729cff !important;color:#fff !important;
}
@media(max-width:650px){
 #home-modules-grid .module-select-card {display:flex;flex-direction:column;align-items:flex-start;min-height:0;}
}
@media(prefers-reduced-motion:reduce){#home-modules-grid .module-select-card{transition:none;}}

/* V1.12 — trois cartes verticales larges, côte à côte sur ordinateur */
#home-modules-grid.modules-select-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:1.2rem;align-items:stretch}
#home-modules-grid.modules-select-grid>.home-manual-module{min-width:0;width:100%;height:100%}
#home-modules-grid .module-select-card{display:flex;flex-direction:column;align-items:flex-start;gap:.85rem;min-height:330px;height:100%;padding:1.5rem;text-align:left}
#home-modules-grid .module-select-card .module-select-card-top,
#home-modules-grid .module-select-card .module-card-copy,
#home-modules-grid .module-select-card .module-card-highlights{grid-column:auto;grid-row:auto;width:100%}
#home-modules-grid .module-select-card .module-card-highlights{margin-top:auto}
@media(max-width:950px){#home-modules-grid.modules-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){#home-modules-grid.modules-select-grid{grid-template-columns:1fr}#home-modules-grid .module-select-card{min-height:260px}}

/* Repère historique de version : masqué en V1.15 */
.app-version { display:inline-block; margin-left:.55rem; padding:.1rem .45rem; border:1px solid currentColor; border-radius:999px; font-size:.7rem; opacity:.75; vertical-align:middle; }

/* Ressources en dessous des options, sans chevauchement dans les trois modules Albert. */
.albert-workspace-sidebar{position:static;max-height:none;overflow:visible;min-width:0;align-self:start}
.albert-workspace-sidebar .module-support-grid{grid-template-columns:minmax(0,1fr)}
.albert-workspace-sidebar .module-support-sidebar{grid-template-columns:minmax(0,1fr);min-width:0}
.albert-workspace-sidebar .module-support-card,.albert-workspace-sidebar .support-panel-block{min-width:0;overflow-wrap:anywhere}
.albert-workspace-sidebar .guidance-cards-grid{grid-template-columns:minmax(0,1fr)}

/* Choix simplifié / complet des paramètres Albert */
.albert-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:.8rem 0}
.albert-mode-options .btn{white-space:normal;min-height:3rem}
.albert-simple-fields .form-grid{grid-template-columns:minmax(0,1fr)}
@media(max-width:600px){.albert-mode-options{grid-template-columns:1fr}}

/* V1.15 : choix de parcours, lisibilité et pied de page */
.albert-configuration-mode{max-width:1100px;margin:1rem auto 1.5rem}
.albert-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin-top:1.2rem}
.albert-mode-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;min-height:210px;padding:1.5rem;border:2px solid #b8c9df;border-radius:18px;background:var(--card-bg,#fff);color:var(--text-primary,inherit);font:inherit;text-align:center;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.albert-mode-card>i{font-size:2.2rem;color:#1264b6}
.albert-mode-card>strong{font-size:1.22rem}
.albert-mode-card>span{font-size:.95rem;line-height:1.5;max-width:26ch}
.albert-mode-card:hover,.albert-mode-card:focus-visible,.albert-mode-card.is-active{background:linear-gradient(135deg,#1264b6,#07488f);color:white;border-color:#1264b6;box-shadow:0 8px 22px #1252a43b;transform:translateY(-2px)}
.albert-mode-card:hover>i,.albert-mode-card:focus-visible>i,.albert-mode-card.is-active>i{color:white}
.albert-simple-fields label>span i{color:#1264b6;margin-right:.55rem;width:1.25rem;text-align:center}
.albert-workspace-output .albert-prompt-editor[hidden]{display:none!important}
.albert-workspace-output .module-albert-section{margin-top:0}
.footer-inner.footer-inner-single-line{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:1rem;max-width:none;width:calc(100% - 2rem);white-space:nowrap}
.footer-inner-single-line .footer-meta,.footer-inner-single-line .footer-links{display:flex;align-items:center;flex-wrap:nowrap;gap:.7rem;white-space:nowrap}
.site-footer{overflow-x:auto}
@media(max-width:720px){.albert-mode-options{grid-template-columns:1fr}.albert-mode-card{min-height:155px}.footer-inner.footer-inner-single-line{width:max-content;min-width:100%;font-size:.76rem}}

/* Ajustements ergonomiques v1.15 */
body.theme-dark .albert-mode-card:not(:hover):not(:focus-visible):not(.is-active){background:#30343c!important;border-color:#606875!important;color:#f4f5f7!important}
body.theme-dark .albert-mode-card:not(:hover):not(:focus-visible):not(.is-active)>i{color:#9fc8ff!important}
#view-module .module-shared-context #home-context-title{display:none}
.albert-resource-panel{margin-top:1rem}
.albert-resource-panel label{display:block;margin:.8rem 0 .35rem;font-weight:600}
.albert-resource-panel label a{font-weight:500;margin-left:.5rem}
.albert-resource-panel input[type=file]{max-width:100%;height:auto;padding:.6rem}

/* Conversation simplifiée : disposition inspirée de l'Atelier Albert V1.5 */
.albert-chat-simple{display:flex;flex-direction:column;gap:.8rem;min-height:570px}
.albert-chat-simple .albert-chat-log{min-height:250px;max-height:460px;overflow:auto;background:#101b30;border-radius:9px;padding:1rem;display:flex;flex-direction:column;gap:.75rem}
.albert-chat-bubble{padding:.75rem 1rem;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.albert-chat-bubble.assistant{background:#1d3948;border:1px solid #526c8b;color:#f5faff;align-self:stretch}
.albert-chat-bubble.user{background:#164c87;color:white;align-self:flex-end;max-width:90%}
.albert-chat-simple .albert-chat-input{min-height:92px;width:100%}
.albert-chat-simple .albert-resource-panel{margin:0;padding:.9rem;background:rgba(114,143,184,.09)}
.albert-chat-simple .albert-chat-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.albert-chat-simple .module-albert-result{display:none!important}
.albert-chat-simple .module-albert-status{min-height:1.4rem}
@media(max-width:800px){.albert-chat-simple .albert-chat-log{min-height:200px}}

/* v1.15 — Disposition des deux modes et références pleine largeur */
#view-module .albert-configuration-mode{max-width:none;width:100%}
#view-module .albert-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;align-items:start;scroll-margin-top:1.2rem}
#view-module .albert-workspace-sidebar,#view-module .albert-workspace-main{min-width:0}
#view-module .albert-workspace-output{min-width:0}
#view-module .albert-reference-panel{width:100%;max-width:none;margin:1.15rem 0 0;grid-column:1/-1;box-sizing:border-box}
#view-module .albert-workspace--simple .albert-chat-simple{border:0;box-shadow:none;padding:0;background:transparent}
#view-module .albert-workspace--simple .albert-workspace-output{padding:1.1rem}
#view-module .albert-workspace--simple .albert-chat-simple>h3{margin:0 0 .25rem}
#view-module .albert-workspace--simple .albert-chat-log{background:#eaf4ff;border:1px solid #c6dff9;color:#142b49}
#view-module .albert-workspace--simple .albert-chat-bubble.assistant{background:#d6ecff;border:1px solid #a9cdef;color:#17304d}
#view-module .albert-workspace--simple .albert-chat-bubble.user{background:#155eae;color:#fff}
body.theme-dark #view-module .albert-workspace--simple .albert-chat-log{background:#202a3a;border-color:#46566c;color:#f3f7ff}
body.theme-dark #view-module .albert-workspace--simple .albert-chat-bubble.assistant{background:#304357;border-color:#61758b;color:#f3f7ff}
body.theme-dark #view-module .albert-workspace--simple .albert-chat-bubble.user{background:#1a4e85;color:#fff}
@media(max-width:950px){#view-module .albert-workspace{grid-template-columns:minmax(0,1fr)}}
/* Tutoriel inspiré des étapes horizontales illustrées de Pépites */
.didacti-tutorial{display:flex;flex-direction:column;gap:1rem;margin:1.1rem 0 1.7rem}
.didacti-tutorial-step{display:flex;align-items:flex-start;gap:1.1rem;background:linear-gradient(180deg,#f0f7ff,#e6f0fe);border:1px solid #c7dbef;border-left:8px solid #2563eb;border-radius:14px;padding:1.15rem 1.3rem;box-shadow:0 1px 3px rgba(16,24,40,.06)}
.didacti-tutorial-number{flex:0 0 3rem;width:3rem;height:3rem;display:flex;align-items:center;justify-content:center;background:#2563eb;color:#fff;border-radius:12px;font-weight:800;font-size:1.35rem}
.didacti-tutorial-content{flex:1;min-width:0}
.didacti-tutorial-content h2{display:flex;gap:.65rem;align-items:center;margin:0 0 .4rem;font-size:1.1rem;color:#1e293b}
.didacti-tutorial-content h2 i{color:#2563eb;width:1.4rem;text-align:center}
.didacti-tutorial-content p{margin:0;color:#334155;line-height:1.55}
body.theme-dark .didacti-tutorial-step{background:#1e293b;border-color:#334155;border-left-color:#3b82f6}
body.theme-dark .didacti-tutorial-content h2{color:#f1f5f9}
body.theme-dark .didacti-tutorial-content h2 i{color:#93c5fd}
body.theme-dark .didacti-tutorial-content p{color:#cbd5e1}
@media(max-width:550px){.didacti-tutorial-step{gap:.7rem;padding:.9rem}.didacti-tutorial-number{flex-basis:2.4rem;width:2.4rem;height:2.4rem}}

/* V1.15 — disposition demandée des modules et ChatMD flottant */
#view-module .albert-workspace--simple{grid-template-columns:minmax(230px, 1fr) minmax(0, 2fr)}
#view-module .albert-workspace--simple .albert-chat-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
#view-module .albert-workspace--simple .albert-reset-inline{margin-left:auto}
#view-module .albert-workspace--complete{grid-template-columns:minmax(0,1fr)}
#view-module .albert-workspace--complete .albert-workspace-sidebar,
#view-module .albert-workspace--complete .albert-workspace-main,
#view-module .albert-workspace--complete .albert-workspace-output{width:100%;max-width:none;box-sizing:border-box}
#view-module .albert-workspace--complete .albert-workspace-main{grid-column:1}
@media(max-width:950px){#view-module .albert-workspace--simple{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#view-module .albert-workspace--simple .albert-reset-inline{margin-left:0}}
.chatmd-floating{position:fixed;right:1.2rem;bottom:1.2rem;z-index:1100;display:flex;flex-direction:column;align-items:flex-end;gap:.7rem;pointer-events:none}
.chatmd-floating>*{pointer-events:auto}
.chatmd-float-toggle{display:flex;align-items:center;gap:.55rem;border:2px solid #fff;border-radius:999px;background:#1264b6;color:white;font-weight:700;padding:.9rem 1.2rem;box-shadow:0 6px 24px #001b3966;cursor:pointer}
.chatmd-float-toggle:hover,.chatmd-float-toggle:focus-visible{background:#07488f;outline-offset:3px}
.chatmd-float-panel{display:flex;flex-direction:column;width:min(410px,calc(100vw - 2rem));height:min(650px,calc(100dvh - 7rem));border:1px solid #a8bed7;border-radius:15px;background:#fff;box-shadow:0 12px 45px #001b3955;overflow:hidden}
.chatmd-float-panel[hidden]{display:none!important}
.chatmd-float-header{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.8rem 1rem;background:#1264b6;color:white}
.chatmd-float-header h2{font-size:1rem;color:inherit;margin:0}
.chatmd-float-close{background:transparent;border:1px solid #ffffff99;color:#fff;border-radius:8px;padding:.35rem .55rem;cursor:pointer}
.chatmd-float-frame{width:100%;height:100%;flex:1;min-height:0;border:0;background:#fff}
.chatmd-float-footer{padding:.5rem .85rem;background:#eff5fc;font-size:.83rem}
body.theme-dark .chatmd-float-panel{background:#202a3a;border-color:#586a80}
body.theme-dark .chatmd-float-footer{background:#29394e}
body.theme-dark .chatmd-float-footer a{color:#bddaff}
@media(max-width:600px){.chatmd-floating{right:.65rem;bottom:.65rem}.chatmd-float-panel{width:calc(100vw - 1.3rem);height:min(75dvh,650px)}.chatmd-float-toggle{padding:.7rem 1rem}}
