/* Studio exégétique : modale « Fiche d'étude complète » (css_js/exegese-fiche.js). Posée sur <body> : le studio se redessine et effacerait une modale qu'il contiendrait. */
.exf-fond { --exs-canvas: #faf7f1; --exs-surface: #f7f2ea; --exs-ink: #2a2622; --exs-ink-soft: #4a433c; --exs-line: #e6dfd3; --exs-accent: #7a4a21; --exs-accent-dark: #5a3416;
    --exs-serif: 'BP Gentium', 'Gentium Plus', 'Gentium', Georgia, serif; --exs-ui: 'BP Gentium', 'Gentium Plus', 'Gentium', Georgia, serif; color: var(--exs-ink); font: 400 14px/1.4 var(--exs-ui); }
.exf-fond *, .exf-fond *::before, .exf-fond *::after { box-sizing: border-box; }
:where(.exf-fond) button { font: inherit; color: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; text-shadow: none; box-shadow: none; }
.exf-fond { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(30, 24, 18, .55); backdrop-filter: blur(2px); animation: exf-in .22s ease both; }
@keyframes exf-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes exf-monte { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.exf-boite { position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); max-height: min(860px, 100%); background: var(--exs-canvas, #fffdf9); border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); overflow: hidden; animation: exf-monte .3s cubic-bezier(.16, .84, .3, 1) both; }
.exf-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 24px 12px; background: var(--exs-surface, #f7f2ea); border-bottom: 1px solid var(--exs-line, #e2d9cc); }
.exf-kicker { font: 700 10.5px var(--exs-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--exs-accent, #7a4a21); }
.exf-tete h2 { margin: 2px 0 0; font: 700 24px var(--exs-serif); color: var(--exs-ink, #2b2118); }
.exf-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--exs-line, #e2d9cc); background: #fff; font: 400 22px/1 var(--exs-ui); color: var(--exs-ink-soft, #6f675f); cursor: pointer; }
.exf-x:hover { color: var(--exs-accent, #7a4a21); border-color: var(--exs-accent, #7a4a21); }
.exf-corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 24px 18px; scrollbar-width: thin; }
.exf-intro { margin: 0 0 12px; font: 400 14px/1.5 var(--exs-ui); color: var(--exs-ink-soft, #6f675f); }
.exf-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.exf-preset { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--exs-line, #e2d9cc); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; font: 400 13px var(--exs-ui); color: var(--exs-ink-soft, #6f675f); transition: border-color .15s, box-shadow .15s, background .15s; }
.exf-preset i { font-size: 20px; color: var(--exs-accent, #7a4a21); width: 24px; text-align: center; }
.exf-preset span { display: flex; flex-direction: column; }
.exf-preset b { font-size: 14px; color: var(--exs-ink, #2b2118); }
.exf-preset small { font-size: 12px; }
.exf-preset:hover { border-color: var(--exs-accent, #7a4a21); }
.exf-preset.on { background: #f6eddf; border-color: var(--exs-accent, #7a4a21); box-shadow: 0 0 0 1px var(--exs-accent, #7a4a21) inset; }
.exf-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.exf-carte { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 12px; border: 1px solid var(--exs-line, #e2d9cc); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.exf-carte.on { border-color: #cdb28a; box-shadow: 0 2px 10px rgba(122, 74, 33, .1); }
.exf-carte.vide { opacity: .55; background: #faf7f2; }
.exf-carte-t { display: flex; align-items: flex-start; gap: 11px; }
.exf-carte-x { flex: 1 1 auto; min-width: 0; }
.exf-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f6eddf; color: var(--exs-accent, #7a4a21); font-size: 17px; }
.exf-carte.vide .exf-ico { background: #efebe5; color: #9a9188; }
.exf-carte b { font: 700 14px var(--exs-ui); color: var(--exs-ink, #2b2118); }
.exf-desc { font: 400 12px/1.4 var(--exs-ui); color: var(--exs-ink-soft, #6f675f); margin-top: 1px; }
.exf-carte-b { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.exf-ce { flex: 1 1 auto; font: 400 12.5px/1.4 var(--exs-ui); color: var(--exs-ink-soft, #6f675f); min-height: 1.4em; }
.exf-pastille { flex: none; white-space: nowrap; }
.exf-pastille { padding: 1px 9px; border-radius: 10px; background: #e3eee3; color: #35603a; font: 700 11px var(--exs-ui); }
.exf-pastille.rien { background: #ece8e1; color: #8a8178; }
.exf-pied { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 24px; border-top: 1px solid var(--exs-line, #e2d9cc); background: var(--exs-surface, #f7f2ea); }
.exf-total { display: flex; flex-direction: column; font: 400 12px var(--exs-ui); color: var(--exs-ink-soft, #6f675f); margin-right: auto; }
.exf-total b { font-size: 15px; color: var(--exs-ink, #2b2118); }
.exf-formats { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--exs-line, #e2d9cc); border-radius: 10px; background: #fff; }
.exf-fmt { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: 700 12.5px var(--exs-ui); color: var(--exs-ink-soft, #6f675f); cursor: pointer; }
.exf-fmt.on { background: #f6eddf; color: var(--exs-accent, #7a4a21); box-shadow: 0 0 0 1px var(--exs-accent, #7a4a21) inset; }
.exf-go { height: 40px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--exs-accent, #7a4a21); color: #fff; font: 700 14px var(--exs-ui); cursor: pointer; }
.exf-go:hover:not(:disabled) { background: var(--exs-accent-dark, #5d3718); }
.exf-go:disabled { background: #cfc7bb; cursor: default; }
.exf-attente { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 220px; font: 400 15px var(--exs-ui); color: var(--exs-ink-soft, #6f675f); }
.exf-spin { width: 26px; height: 26px; border: 3px solid #eadfce; border-top-color: var(--exs-accent, #7a4a21); border-radius: 50%; animation: exf-tour .8s linear infinite; }
@keyframes exf-tour { to { transform: rotate(360deg); } }
.exf-progres { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(255, 253, 249, .92); font: 600 15px var(--exs-ui); color: var(--exs-ink, #2b2118); }
@media (max-width: 720px) { .exf-fond { padding: 0; } .exf-boite { max-height: 100%; height: 100%; border-radius: 0; } .exf-grille { grid-template-columns: 1fr; } .exf-pied { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .exf-fond, .exf-boite { animation: none; } .exf-spin { animation-duration: 2s; } }
.exf-etendue { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.exf-etendue-t { font: 700 12px var(--exs-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--exs-ink-soft); margin-right: 4px; }
.exf-etendue .exf-fmt { border: 1px solid var(--exs-line); background: #fff; }
.exf-note { margin: -6px 0 14px; font: 400 12.5px/1.45 var(--exs-ui); color: var(--exs-ink-soft); }
/* Carte d'accès, dans l'onglet Synthétiser */
#exe_studio .exs-fiche-carte { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; padding: 12px 16px; border: 1px solid #e0cdb0; border-radius: 12px; background: linear-gradient(180deg, #fbf4e8, #f6eddf); }
#exe_studio .exs-fiche-carte > i { font-size: 26px; color: var(--exs-accent, #7a4a21); }
#exe_studio .exs-fiche-carte > div { flex: 1 1 auto; }
#exe_studio .exs-fiche-carte .exs-btn { flex: none; white-space: nowrap; }
#exe_studio .exs-fiche-carte b { font: 700 14.5px var(--exs-ui); color: var(--exs-ink, #2b2118); }

/* Interrupteur d'une rubrique */
.exf-fond .exf-sw { flex: none; position: relative; width: 40px; height: 22px; margin-top: 2px; padding: 0; border: 0; border-radius: 11px; background: #cfc7bb; transition: background .15s; }
.exf-fond .exf-sw span { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.exf-fond .exf-sw.on { background: var(--exs-accent, #7a4a21); }
.exf-fond .exf-sw.on span { transform: translateX(18px); }
.exf-fond .exf-sw:disabled { opacity: .4; cursor: default; }
.exf-fond .exf-sw:focus-visible, .exf-fond .exf-seg button:focus-visible, .exf-fond .exf-preset:focus-visible, .exf-fond .exf-fmt:focus-visible { outline: 2px solid var(--exs-accent, #7a4a21); outline-offset: 2px; }
/* Trois profondeurs, nommées */
.exf-fond .exf-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--exs-line, #e2d9cc); border-radius: 9px; background: #fff; overflow: hidden; }
.exf-fond .exf-seg button { height: 30px; padding: 0 4px; border: 0; border-left: 1px solid var(--exs-line, #e2d9cc); border-radius: 0; background: #fff; font: 600 12.5px var(--exs-ui); color: var(--exs-ink-soft, #6f675f); transition: background .12s, color .12s; }
.exf-fond .exf-seg button:first-child { border-left: 0; }
.exf-fond .exf-seg button:hover:not(:disabled):not(.on) { background: #f6eddf; color: var(--exs-accent, #7a4a21); }
.exf-fond .exf-seg button.on { background: var(--exs-accent, #7a4a21); color: #fff; }
.exf-fond .exf-seg button:disabled { color: #b8b0a6; background: #f4f0ea; cursor: default; }
.exf-fond .exf-seg.off button.on { background: #fff; color: inherit; }
.exf-fond .exf-seg.off { opacity: .7; }
.exf-groupe { margin: 18px 0 8px; font: 700 12px var(--exs-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--exs-accent, #7a4a21); }
.exf-groupe:first-of-type { margin-top: 4px; }
.exf-fond .exf-preset { align-items: flex-start; }
.exf-fond .exf-preset i { margin-top: 3px; }
.exf-etendue .exf-fmt.on { background: #f6eddf; border-color: var(--exs-accent, #7a4a21); color: var(--exs-accent, #7a4a21); }
.exf-go:hover:not(:disabled), .exf-go:focus-visible { color: #fff; }
/* Votre question : le choix des rubriques */
.exf-question { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #e0cdb0; border-radius: 12px; background: linear-gradient(180deg, #fbf4e8, #f6eddf); }
.exf-question label { display: block; margin-bottom: 6px; font: 700 12px var(--exs-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--exs-accent, #7a4a21); }
.exf-question label small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--exs-ink-soft, #6f675f); }
.exf-question-l { display: flex; gap: 8px; }
.exf-question input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--exs-line, #e2d9cc); border-radius: 9px; background: #fff; font: 400 14px var(--exs-ui); color: var(--exs-ink, #2b2118); }
.exf-question input:focus { outline: 2px solid var(--exs-accent, #7a4a21); outline-offset: 1px; }
.exf-fond .exf-adapter { flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--exs-accent, #7a4a21); color: #fff; font: 700 13px var(--exs-ui); white-space: nowrap; }
.exf-fond .exf-adapter:hover:not(:disabled) { background: var(--exs-accent-dark, #5d3718); }
.exf-fond .exf-adapter:disabled { background: #cfc7bb; cursor: default; }
.exf-adapt { margin: 8px 0 0; font: 400 12.5px/1.45 var(--exs-ui); color: var(--exs-ink-soft, #6f675f); }
.exf-raison { display: block; margin-top: 2px; font: italic 400 11.5px/1.35 var(--exs-ui); color: #8a8178; }
@media (max-width: 720px) { .exf-question-l { flex-direction: column; } .exf-fond .exf-adapter { width: 100%; } }
/* Rubriques proposées : liseret, pastille, et les autres s'estompent */
.exf-carte { position: relative; }
.exf-carte.prop { border-color: var(--exs-accent, #7a4a21); border-left-width: 5px; background: #fffaf1; box-shadow: 0 3px 14px rgba(122, 74, 33, .18); margin: 4px 0; padding-top: 18px; }
.exf-tag { position: absolute; top: -9px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 10px; background: var(--exs-accent, #7a4a21); color: #fff; font: 700 11px var(--exs-ui); }
.exf-carte.hors { opacity: .62; }
.exf-carte.hors:hover { opacity: 1; }
.exf-grille { gap: 16px; }
