@charset "UTF-8";
/* ==========================================================
   IPM TOOLS-DESIGN | embed.css
   Les embeds de la rédaction. Les couleurs et polices de la
   marque arrivent en variables, posées par embed.js.
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
body { font-family: var(--e-base, system-ui), system-ui, sans-serif; color: var(--e-ink); -webkit-font-smoothing: antialiased; }
.ie { --e-gap: 20px; background: var(--e-paper); color: var(--e-ink); padding: 22px 22px 18px; border-top: 4px solid var(--e-accent); }
.ie.is-dark { --e-paper: #141518; --e-ink: #F3F1EC; --e-muted: rgba(243,241,236,.66); --e-line: rgba(243,241,236,.16); --e-soft: #1F2024; --e-accent: var(--e-accent-dark); }
.ie__title { font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: clamp(21px, 4.6vw, 28px); line-height: 1.15; margin: 0 0 var(--e-gap); letter-spacing: -0.01em; }
.ie__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: var(--e-gap); padding-top: 12px; border-top: 1px solid var(--e-line); font-size: 12.5px; line-height: 1.45; color: var(--e-muted); }
.ie__foot b { font-weight: 700; color: var(--e-ink); letter-spacing: .01em; }
.ie a { color: var(--e-accent); }
.ie button { font: inherit; }
.ie :focus-visible { outline: 2px solid var(--e-accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ie__err { font-size: 15px; color: var(--e-muted); }

/* L'essentiel */
.ie-ess { list-style: none; margin: 0; padding: 0; counter-reset: ess; }
.ie-ess li { position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--e-line); font-size: 17px; line-height: 1.55; counter-increment: ess; }
.ie-ess li:first-child { border-top: 0; padding-top: 4px; }
.ie-ess li::before { content: counter(ess); position: absolute; left: 0; top: 8px; font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: 34px; line-height: 1; color: var(--e-accent); }
.ie-ess li:first-child::before { top: -2px; }

/* Chiffres clés */
.ie-num { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ie-num div { background: var(--e-soft); padding: 18px 18px 16px; border-radius: 4px; }
.ie-num b { display: block; font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: clamp(32px, 7vw, 46px); line-height: 1; color: var(--e-accent); margin-bottom: 10px; letter-spacing: -0.02em; }
.ie-num span { display: block; font-size: 15px; line-height: 1.45; }

/* Avant / après */
.ie-ba { position: relative; overflow: hidden; border-radius: 4px; background: var(--e-soft); --pos: 50%; touch-action: pan-y; }
.ie-ba img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ie-ba__a { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ie-ba__a img { width: 100%; height: 100%; object-fit: cover; }
.ie-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
.ie-ba__knob { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); display: grid; place-items: center; pointer-events: none; }
.ie-ba__knob svg { width: 26px; height: 26px; fill: var(--e-accent); }
.ie-ba__lab { position: absolute; top: 12px; padding: 4px 9px; background: rgba(0,0,0,.66); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; pointer-events: none; }
.ie-ba__lab--a { left: 12px; } .ie-ba__lab--b { right: 12px; }
.ie-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ie-ba:focus-within .ie-ba__knob { outline: 3px solid var(--e-accent); outline-offset: 2px; }
.ie-cap { font-size: 14px; line-height: 1.5; color: var(--e-muted); margin: 10px 0 0; }

/* Compte à rebours */
.ie-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.ie-cd div { background: var(--e-soft); padding: 16px 6px 12px; border-radius: 4px; }
.ie-cd b { display: block; font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: clamp(30px, 8vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--e-ink); }
.ie-cd span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--e-muted); }
.ie-cd-sub { font-size: 16px; line-height: 1.5; margin: 0 0 16px; color: var(--e-muted); }
.ie-cd-end { font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: 24px; color: var(--e-accent); margin: 0; }

/* Tableau */
.ie-tb__search { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; margin: 0 0 12px; border: 1px solid var(--e-line); border-radius: 4px; background: var(--e-paper); color: var(--e-ink); }
.ie-tb__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ie-tb { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ie-tb th { text-align: left; border-bottom: 2px solid var(--e-ink); padding: 0; white-space: nowrap; }
.ie-tb th button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.ie-tb th button::after { content: ""; width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--e-line); margin-top: 4px; }
.ie-tb th[aria-sort="ascending"] button::after { border-top-color: transparent; border-bottom-color: var(--e-accent); margin: 0 0 4px; }
.ie-tb th[aria-sort="descending"] button::after { border-top-color: var(--e-accent); }
.ie-tb th button:focus-visible { outline: 2px solid var(--e-accent); outline-offset: -2px; }
.ie-tb td { padding: 9px 10px; border-bottom: 1px solid var(--e-line); }
.ie-tb .is-num { text-align: right; }
.ie-tb th.is-num button { justify-content: flex-end; }
.ie-tb tbody tr:nth-child(even) td { background: var(--e-soft); }
.ie-tb__empty { padding: 14px 10px; color: var(--e-muted); }

/* Qui est qui */
.ie-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ie-who article { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: start; padding: 14px; background: var(--e-soft); border-radius: 4px; }
.ie-who__ph { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--e-accent); color: #fff; display: grid; place-items: center; font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: 22px; }
.ie-who__ph img { width: 100%; height: 100%; object-fit: cover; }
.ie-who h3 { font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: 18px; line-height: 1.2; margin: 4px 0 2px; }
.ie-who small { display: block; font-size: 13px; line-height: 1.4; color: var(--e-accent); font-weight: 700; }
.ie-who p { grid-column: 1 / -1; margin: 0; font-size: 14.5px; line-height: 1.5; }

/* Quiz */
.ie-quiz__meta { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--e-muted); margin-bottom: 10px; }
.ie-quiz__bar { height: 4px; background: var(--e-line); border-radius: 2px; margin-bottom: 18px; overflow: hidden; }
.ie-quiz__bar i { display: block; height: 100%; background: var(--e-accent); transition: width .3s ease; }
.ie-quiz__q { font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: clamp(19px, 4.4vw, 23px); line-height: 1.25; margin: 0 0 16px; }
.ie-quiz__opts { display: grid; gap: 8px; }
.ie-quiz__opts button { text-align: left; padding: 13px 16px; border: 1px solid var(--e-line); border-radius: 4px; background: var(--e-paper); color: var(--e-ink); font-size: 16px; line-height: 1.35; cursor: pointer; transition: border-color .2s, background .2s; }
.ie-quiz__opts button:hover:not([disabled]) { border-color: var(--e-ink); }
.ie-quiz__opts button[disabled] { cursor: default; }
.ie-quiz__opts .is-ok { border-color: #1f8a52; background: rgba(31,138,82,.1); }
.ie-quiz__opts .is-ko { border-color: #c4283c; background: rgba(196,40,60,.08); }
.ie-quiz__opts .is-ok::after { content: " ✓"; color: #1f8a52; font-weight: 700; }
.ie-quiz__opts .is-ko::after { content: " ✗"; color: #c4283c; font-weight: 700; }
.ie-quiz__fb { margin: 14px 0 0; font-size: 15px; line-height: 1.55; }
.ie-quiz__fb b { color: var(--e-accent); }
.ie-quiz__next { margin-top: 16px; padding: 11px 18px; border: 0; border-radius: 4px; background: var(--e-ink); color: var(--e-paper); font-weight: 700; font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.ie-quiz__score { font-family: var(--e-title), Georgia, serif; font-weight: var(--e-title-w, 700); font-size: 56px; line-height: 1; color: var(--e-accent); margin: 6px 0 8px; }
@media (prefers-reduced-motion: reduce) { .ie-quiz__bar i { transition: none; } }
