/* Déclinaison rose-violet de la charte des guides publics BiMP. */
.guide-ia-cua {
  --primary: #694071;
  --primary-2: #7b4a85;
  --muted: #655b70;
  --line: #e6deeb;
  --cua-soft: #f7f1fa;
  --cua-ink: #62406f;
  background:
    radial-gradient(circle at 4% 0%, rgba(197,130,169,.16), transparent 30%),
    radial-gradient(circle at 96% 6%, rgba(148,123,195,.13), transparent 28%),
    linear-gradient(180deg, #fcf8fc, #f3eef8);
}
.guide-ia-cua .hero { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,240,249,.92)); }
.guide-ia-cua .hero::after { background: radial-gradient(circle, rgba(183,119,165,.16), transparent 70%); }
.guide-ia-cua .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 36px; padding-top: 36px; padding-bottom: 36px; }
.guide-ia-cua .brand { min-width: 0; }
.guide-ia-cua .brand img { width: 210px; height: auto; }
.guide-ia-cua h1 { color: #62406f; max-width: 14ch; }
.guide-ia-cua .kicker { color: #795d80; }
.guide-ia-cua .panel-head h2 { font-size: clamp(1.45rem, 2vw, 2.15rem); line-height: 1.12; font-weight: 740; }
.guide-ia-cua .card h3 { font-weight: 730; }
.guide-ia-cua .tab-btn[aria-selected="true"] { background: #f7f0f9; border-color: #d9c4e1; box-shadow: 0 4px 12px rgba(98,64,111,.06); }
.guide-ia-cua a { text-underline-offset: 3px; }
.guide-ia-cua main a:not(.btn) { color: #70477f; }
.guide-ia-cua a:focus-visible, .guide-ia-cua button:focus-visible, .guide-ia-cua summary:focus-visible { outline: 3px solid #965a9a; outline-offset: 4px; }
.guide-ia-cua .step::before { background: #f7f1fa; font-weight: 740; }
.guide-ia-cua .cua-tinted { background: linear-gradient(180deg, #f9f2fb, #fff); }
.cua-hero-figure { margin: 0; border: 1px solid #e5d9eb; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 15px 35px rgba(98,64,111,.07); }
.cua-hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.cua-hero-figure figcaption { padding: 20px 22px; color: #6c5076; font-size: .96rem; }
.cua-figure-label { display: block; margin-bottom: 6px; font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #7c6584; }
.cua-start { display: flex; align-items: start; gap: 14px; padding: 22px 26px; margin-top: 22px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 22px; }
.cua-start .icon { color: #805389; margin-top: 3px; }
.cua-start p { margin: 0; font-size: .96rem; color: var(--muted); }
.cua-chapter-number { width: 56px; height: 56px; display: grid; place-items: center; color: #795087; background: #f5eefa; border: 1px solid #e5d7ed; border-radius: 18px; font-size: 1.1rem; font-weight: 730; }
.cua-gap { margin-top: 18px !important; }
.cua-subtitle { color: #62406f; font-size: 1.18rem; line-height: 1.35; font-weight: 740; margin: 28px 0 14px; }
.cua-definition { border: 1px solid #e5d5ec; border-radius: 20px; padding: 22px; background: #f9f3fb; }
.cua-definition p { margin: 0; color: #5f4c69; }
.cua-definition .kicker { margin-bottom: 10px; }
.cua-source { font-size: .87rem; color: #796782; margin: 13px 0 18px; }
.card .cua-source { display: inline-block; margin: 13px 0 0; }
.cua-note { font-size: .93rem; color: var(--muted); margin: 14px 0 18px; }
.cua-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.cua-table-hint { display: none; margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.cua-table-wrap:focus-visible { outline: 3px solid #965a9a; outline-offset: 3px; }
.cua-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.cua-table caption { padding: 16px 18px; text-align: left; font-weight: 730; color: #62406f; background: #faf5fc; }
.cua-table th, .cua-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.cua-table thead { color: #62406f; background: #f7f1fa; }
.cua-table tbody th { width: 30%; font-weight: 650; }
.cua-table td { color: var(--muted); }
.cua-callout { margin: 20px 0; padding: 20px 22px; border-left: 3px solid #b67c9f; border-radius: 0 18px 18px 0; background: #faf1f7; }
.cua-callout p { margin: 0; color: #69536f; }
.cua-callout .cua-source { margin: 10px 0 0; }
.cua-scenario { margin: 24px 0 16px; padding: 20px 22px; background: #f6f0fa; border: 1px solid #e5d7ed; border-radius: 20px; }
.cua-scenario .cua-scenario-label { margin: 0; color: #825d8d; text-transform: uppercase; letter-spacing: .08em; font-size: .79rem; font-weight: 720; }
.cua-scenario h3 { color: #62406f; margin: 8px 0 9px; font-size: 1.2rem; line-height: 1.3; font-weight: 740; }
.cua-scenario p { margin: 0; color: var(--muted); max-width: 90ch; }
.cua-scenario .cua-success { margin-top: 11px; font-size: .95rem; color: #624c6f; }
.cua-actif { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cua-actif p { margin: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: .93rem; }
.cua-actif strong { display: block; color: #62406f; margin-bottom: 8px; }
.cua-actif span { color: var(--muted); }
.cua-prompt { margin: 14px 0 22px; padding: 0 20px; border: 1px solid #e3d5eb; border-radius: 18px; background: #fcf9fd; }
.cua-prompt summary { cursor: pointer; min-height: 48px; padding: 15px 0; color: #70477f; font-weight: 690; }
.cua-prompt-content { padding-bottom: 20px; }
.cua-prompt-content .cua-note { margin: 4px 0 14px; }
.cua-prompt-text { margin: 0 0 15px; white-space: pre-wrap; overflow-wrap: anywhere; color: #51435c; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; font: .94rem/1.65 Inter, ui-sans-serif, system-ui, sans-serif; }
.cua-extract { margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cua-extract p { margin: 0; color: #5f4c69; }
.cua-extract .kicker { margin-bottom: 12px; }
.cua-extract .cua-note { margin-top: 12px; }
.cua-aid-ladder { display: grid; gap: 10px; margin: 18px 0; }
.cua-aid-ladder p { margin: 0; display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 12px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cua-aid-ladder strong { color: #70477f; font-weight: 690; }
.cua-aid-ladder span { color: var(--muted); }
.cua-transfer, .cua-reference { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.cua-transfer h3, .cua-reference h3 { color: #62406f; font-size: 1.12rem; font-weight: 730; margin: 0 0 10px; }
.cua-transfer p, .cua-reference p { color: var(--muted); font-size: .95rem; }
.cua-chapter-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.cua-chapter-nav a { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 680; min-height: 44px; }
.cua-chapter-nav > span { color: var(--muted); font-size: .9rem; }
.cua-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cua-checklist label { display: flex; align-items: start; gap: 12px; padding: 16px; min-height: 60px; cursor: pointer; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: #675071; }
.cua-checklist input { width: 21px; height: 21px; flex: 0 0 21px; margin: 3px 0 0; accent-color: #805389; }
.cua-checklist input:focus-visible { outline: 3px solid #965a9a; outline-offset: 3px; }
.cua-faq { display: grid; gap: 10px; }
.cua-faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0 18px; }
.cua-faq summary { color: #62406f; min-height: 48px; padding: 15px 0; cursor: pointer; font-weight: 650; }
.cua-faq p { color: var(--muted); margin: 0 0 18px; }
.guide-ia-cua .footer { background: linear-gradient(135deg, #4e345f, #744c78); }
.guide-ia-cua .footer strong { color: #fff; }
.guide-ia-cua .footer::after { background: radial-gradient(circle, rgba(219,149,193,.18), transparent 70%); }
.guide-ia-cua .footer-links { align-items: center; }
.cua-print { display: none; }
.cua-enhanced .cua-print { display: inline-flex; }
@media (max-width: 1080px) {
  .guide-ia-cua .hero-grid { gap: 24px; }
  .cua-actif { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .guide-ia-cua .hero-grid { grid-template-columns: 1fr; padding: 24px 20px; }
  .guide-ia-cua .topbar { padding: 22px 20px 0; }
  .guide-ia-cua .brand img { width: 185px; }
  .cua-hero-figure { max-width: 540px; }
  .cua-start { padding: 18px; }
  .cua-checklist { grid-template-columns: 1fr; }
  .cua-table { min-width: 570px; }
  .cua-table-hint { display: block; }
  .cua-aid-ladder p { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .cua-actif { grid-template-columns: 1fr; }
  .cua-actif strong { margin-bottom: 4px; }
  .cua-scenario, .cua-definition, .cua-extract { padding: 18px; }
  .cua-chapter-number { width: 44px; height: 44px; border-radius: 14px; }
  .guide-ia-cua .panel-head { grid-template-columns: 44px 1fr; gap: 12px; }
  .cua-prompt { padding: 0 15px; }
  .cua-prompt-text { padding: 14px; }
}
@media print {
  @page { margin: 14mm; }
  html { font-size: 13px; }
  .guide-ia-cua { font-size: 10pt; background: #fff; }
  .guide-ia-cua .hero-grid { grid-template-columns: 1.15fr 1fr; padding: 20px; gap: 20px; }
  .guide-ia-cua h1 { font-size: 28pt; }
  .guide-ia-cua .panel { break-inside: auto; overflow: visible; }
  .guide-ia-cua .panel-inner { padding: 20px; }
  .guide-ia-cua .card { break-inside: auto; overflow: visible; }
  .guide-ia-cua .panel-head, .guide-ia-cua .step, .cua-scenario, .cua-prompt summary { break-inside: avoid; }
  .guide-ia-cua .grid-2, .guide-ia-cua .grid-3 { grid-template-columns: 1fr; }
  .cua-actif { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-ia-cua .cua-table { min-width: 0; }
  .guide-ia-cua .guide-steps::details-content, .cua-prompt::details-content, .cua-faq details::details-content { content-visibility: visible; }
  .cua-prompt:not([open]) > :not(summary), .cua-faq details:not([open]) > :not(summary) { display: block !important; }
  .cua-chapter-nav, .copy-btn, .cua-print, .cua-table-hint { display: none !important; }
  .cua-checklist { grid-template-columns: 1fr; }
  .cua-prompt, .cua-prompt-text { break-inside: auto; }
}
