/* Thème reveal.js aux couleurs de la charte Info-Bible (charte/style.css) : ivoire, encre bleu nuit, bleu #003399, or #f5c518, EB Garamond.
   Chargé après librairies/reveal/dist/theme/white.css par pierre-oddon/projection.php */
@font-face {font-family: "EB Garamond"; src: url("../charte/polices/EBGaramond.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap;}
@font-face {font-family: "EB Garamond"; src: url("../charte/polices/EBGaramond-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400 800; font-display: swap;}

:root {
	--ib-ivoire: #fbfaf4;
	--ib-papier: #fffdf7;
	--ib-encre: #14213d;
	--ib-bleu: #003399;
	--ib-bleu-fonce: #002266;
	--ib-bleu-doux: #e6ecf8;
	--ib-or: #f5c518;
	--ib-or-fonce: #a67c00;
	--ib-or-doux: #fff6cc;
	--ib-gris: #4a5470;
	--ib-bord: #d9dcea;
	--r-background-color: var(--ib-ivoire);
	--r-main-font: "EB Garamond", Garamond, "Times New Roman", serif;
	--r-main-font-size: 36px;
	--r-main-color: var(--ib-encre);
	--r-heading-font: "EB Garamond", Garamond, "Times New Roman", serif;
	--r-heading-color: var(--ib-bleu-fonce);
	--r-heading-text-transform: none;
	--r-heading-font-weight: 600;
	--r-link-color: var(--ib-bleu);
	--r-link-color-hover: var(--ib-or-fonce);
	--r-selection-background-color: var(--ib-or-doux);
}

.reveal-viewport, body {background: var(--ib-ivoire);}
.reveal {font-family: var(--r-main-font); font-size: var(--r-main-font-size); color: var(--ib-encre); line-height: 1.35;}
.reveal .slides {text-align: left;}

/* Titres */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {font-family: var(--r-heading-font); color: var(--ib-bleu-fonce); text-transform: none; font-weight: 600; letter-spacing: 0; line-height: 1.15; text-shadow: none;}
.reveal h1 {font-size: 2.1em;}
.reveal h2 {font-size: 1.45em; padding-bottom: .25em; margin-bottom: .55em; border-bottom: 3px solid var(--ib-or); display: inline-block;}
.reveal h3 {font-size: 1.05em; color: var(--ib-bleu); margin: .5em 0 .25em;}
.reveal h4 {font-size: .8em; color: var(--ib-or-fonce); text-transform: uppercase; letter-spacing: .08em;}
.reveal strong {color: var(--ib-bleu-fonce);}
.reveal em {color: inherit;}

/* Listes : puces dorées */
.reveal ul {list-style: none; margin-left: 0; padding-left: 1.1em;}
.reveal ul li {position: relative; margin: .22em 0;}
.reveal ul li::before {content: ""; position: absolute; left: -.9em; top: .52em; width: .42em; height: .42em; border-radius: 50%; background: var(--ib-or);}
.reveal ol {margin-left: 1.3em;}
.reveal ol li {margin: .22em 0;}
.reveal ol li::marker {color: var(--ib-or-fonce); font-weight: 600;}
.reveal li > ul, .reveal li > ol {font-size: .9em;}

/* Citation biblique */
.reveal blockquote, .reveal .verset {
	width: auto; margin: .6em 0; padding: .55em .9em .55em 1.1em;
	background: var(--ib-papier); border: 1px solid var(--ib-bord); border-left: 6px solid var(--ib-or);
	border-radius: 0 10px 10px 0; box-shadow: 0 1px 3px rgba(20,33,61,.08), 0 8px 24px rgba(20,33,61,.06);
	font-style: italic; font-size: .92em; quotes: none;
}
.reveal blockquote p {margin: .2em 0;}
.reveal blockquote cite, .reveal .ref {display: block; font-style: normal; font-size: .72em; color: var(--ib-gris); text-align: right; margin-top: .2em;}
.reveal .ref-inline {font-size: .75em; color: var(--ib-gris); font-style: normal;}

/* Encadrés académiques (mêmes noms que charte/style.css) */
.reveal .avertissement {background: var(--ib-or-doux); border-left: 6px solid var(--ib-or-fonce); padding: .5em .9em; border-radius: 0 10px 10px 0; font-size: .85em;}
.reveal .a-retenir {background: var(--ib-bleu-doux); border-left: 6px solid var(--ib-bleu); padding: .5em .9em; border-radius: 0 10px 10px 0; margin-top: .6em;}
.reveal .a-retenir strong {color: var(--ib-bleu);}
.reveal .signature {font-size: .7em; color: var(--ib-gris); font-style: italic; text-align: right;}
.reveal .petit {font-size: .75em;}
.reveal .tres-petit {font-size: .6em;}
.reveal .gris {color: var(--ib-gris);}
.reveal .centre {text-align: center;}
.reveal .en-preparation {color: var(--ib-gris); font-style: italic;}
.reveal .en-preparation::after {content: " · en préparation"; font-size: .7em; color: var(--ib-or-fonce); font-style: normal;}
.reveal .mot {font-family: var(--r-main-font); font-style: italic; color: var(--ib-bleu);}

/* Mises en page */
.reveal .colonnes {display: flex; gap: 1.2em; align-items: flex-start;}
.reveal .colonnes > * {flex: 1 1 0;}
.reveal .colonnes > .etroite {flex: 0 0 34%;}
.reveal .cartes {display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6em; margin-top: .4em;}
.reveal .carte {background: var(--ib-papier); border: 1px solid var(--ib-bord); border-top: 4px solid var(--ib-bleu); border-radius: 10px; padding: .45em .7em; font-size: .78em;}
.reveal .carte h3 {margin-top: 0; font-size: 1.1em;}
.reveal figure {margin: 0;}
.reveal img, .reveal figure img {max-height: 520px; border: 0; box-shadow: 0 2px 6px rgba(20,33,61,.15), 0 10px 30px rgba(20,33,61,.12); border-radius: 4px; background: none;}
.reveal figcaption, .reveal .credit {font-size: .5em; color: var(--ib-gris); font-style: italic; margin-top: .3em; line-height: 1.25;}
.reveal .credit-fond {margin-top: 2.2em; text-align: right; font-size: .45em; color: rgba(255,255,255,.75); font-style: italic;}

/* Diapos sombres (titre et ouvertures de partie, fond tableau voilé) */
.reveal section.sombre, .reveal section.sombre h1, .reveal section.sombre h2, .reveal section.sombre h3, .reveal section.sombre strong {color: #fbfaf4;}
.reveal section.sombre h1 {font-size: 2.3em; text-shadow: 0 2px 18px rgba(0,0,0,.45);}
.reveal section.sombre h2 {border-bottom-color: var(--ib-or);}
.reveal section.sombre .surtitre {color: var(--ib-or); text-transform: uppercase; letter-spacing: .14em; font-size: .62em; font-weight: 600;}
.reveal section.sombre .auteur {font-size: 1em; color: var(--ib-or); margin-top: 1em;}
.reveal section.sombre .gris, .reveal section.sombre .petit {color: #d8dcea;}
.reveal section.sombre ul li::before {background: var(--ib-or);}
.reveal section.sombre blockquote {background: rgba(13,21,48,.55); border-color: rgba(255,255,255,.15); border-left-color: var(--ib-or); color: #fbfaf4; box-shadow: none;}
.reveal section.sombre blockquote cite {color: #d8dcea;}
.reveal .numero-partie {font-size: 3.2em; color: var(--ib-or); font-weight: 700; line-height: 1; margin-bottom: .1em;}

/* Plan */
.reveal ol.plan {list-style: none; margin-left: 0; counter-reset: plan;}
.reveal ol.plan li {counter-increment: plan; padding: .12em 0 .12em 1.8em; position: relative;}
.reveal ol.plan li::before {content: counter(plan); position: absolute; left: 0; top: .12em; width: 1.25em; height: 1.25em; line-height: 1.25em; border-radius: 50%; background: var(--ib-bleu); color: #fff; text-align: center; font-size: .8em; font-weight: 600;}
.reveal ol.plan li.en-preparation::before {background: var(--ib-bord); color: var(--ib-gris);}

/* Bibliographie */
.reveal .bibliographie {font-size: .58em; line-height: 1.3;}
.reveal .bibliographie li {margin: .15em 0;}

/* Contrôles, progression, numéro */
.reveal .progress {color: var(--ib-or); height: 4px;}
.reveal .controls {color: var(--ib-bleu);}
.reveal .slide-number {background: transparent; color: var(--ib-gris); font-family: var(--r-main-font); font-size: 16px;}
.reveal .slide-menu-button {left: 14px; bottom: 14px;}
.retour-site {position: fixed; left: 56px; bottom: 16px; z-index: 40; font: 600 15px/1 "EB Garamond", Garamond, serif; color: var(--ib-bleu); text-decoration: none; background: rgba(251,250,244,.85); padding: 5px 9px; border-radius: 6px; border: 1px solid var(--ib-bord);}
.retour-site:hover {color: var(--ib-or-fonce);}

@media print {.retour-site {display: none;}}
.reveal .colonnes figure img {max-height: 430px;}
.reveal figure img {max-height: 440px;}
.reveal section.sombre {text-shadow: 0 1px 10px rgba(0,0,0,.55);}

/* Texte biblique long (études de Marc) et tableaux */
.reveal blockquote.texte-biblique {font-size: .72em; line-height: 1.38; font-style: normal;}
.reveal blockquote.texte-biblique sup {color: var(--ib-or-fonce); font-weight: 600; font-size: .7em; margin-right: .1em;}
.reveal table {font-size: .62em; border-collapse: collapse; margin: .4em 0; width: 100%;}
.reveal table th, .reveal table td {border-bottom: 1px solid var(--ib-bord); padding: .3em .6em; text-align: left; vertical-align: top;}
.reveal table th {color: var(--ib-bleu-fonce); border-bottom: 2px solid var(--ib-or);}
.reveal table td:first-child {white-space: nowrap; color: var(--ib-bleu); font-weight: 600;}
.reveal figure.petite img {max-height: 380px;}

/* Aide (touche ?) : texte clair sur le fond sombre de l'overlay */
.reveal .overlay.overlay-help .viewport-inner, .reveal .overlay-help .viewport-inner {color: #fbfaf4;}
.reveal .overlay-help .viewport-inner .title {color: var(--ib-or); font-family: var(--r-main-font); font-size: 28px;}
.reveal .overlay-help .viewport-inner table {font-size: 20px; width: auto; margin: 0 auto;}
.reveal .overlay-help .viewport-inner th, .reveal .overlay-help .viewport-inner td {color: #fbfaf4; border: 1px solid rgba(251,250,244,.3); font-family: var(--r-main-font); white-space: normal;}
.reveal .overlay-help .viewport-inner th {color: var(--ib-or); border-bottom: 2px solid var(--ib-or);}
.reveal .overlay-help .viewport-inner td:first-child {color: var(--ib-or); font-weight: 600;}

/* Figures annotées (image + SVG superposé : bulles, zones, flèches) */
.reveal figure.annotee {text-align: center;}
.reveal .annote {position: relative; display: inline-block; line-height: 0;}
.reveal .annote img {display: block; margin: 0; max-height: 460px;}
.reveal .annote svg {position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; font-family: "EB Garamond", Garamond, Georgia, serif;}
.reveal .colonnes .annote img {max-height: 470px;}
.reveal .sandales {grid-template-columns: 1fr 1fr; align-items: end; max-width: 760px; margin: .3em auto 0;}
.reveal .sandales img {max-height: 220px;}
.reveal .sandales figcaption {font-size: .75em; font-style: normal; color: var(--ib-bleu-fonce);}
.reveal figure.chronologie svg {width: 100%; height: auto; font-family: "EB Garamond", Garamond, Georgia, serif; background: #fffdf7; border: 1px solid var(--ib-bord); border-radius: 8px;}

/* Code couleur du texte biblique (repris de la présentation d'origine, couleurs adaptées) */
.cc-note {color: var(--ib-bleu, #003399); text-decoration: underline; text-decoration-color: rgba(0,51,153,.45); text-underline-offset: .15em; font-weight: 600;}
.cc-cle {background: #fff1b8; box-shadow: 0 0 0 .08em #fff1b8; border-radius: .15em; font-weight: 600;}
.cc-personne {color: #b32228; font-weight: 700;}
.cc-precision {color: #4a6fa5; font-style: italic;}
.reveal .legende-cc {font-size: .45em; color: var(--ib-gris); margin-top: .3em; text-align: right;}
.legende-cc span {margin-left: .8em;}

/* Tableaux en deux groupes (introduction / début du ministère) */
.reveal .groupe {font-size: .5em; font-weight: 700; margin: .5em 0 .1em; padding: .1em .6em; border-radius: 6px; display: inline-block;}
.groupe.intro {background: #fde8e8; color: #b32228;}
.groupe.debut {background: #e3f1e6; color: #1e6b34;}
.reveal figure.annotee.large .annote img {width: 1080px; max-height: none;}
.reveal .groupe {display: table;}
/* Les deux tableaux d'un même groupe gardent les mêmes colonnes */
.reveal table:has(th:nth-child(4)) {table-layout: fixed;}
.reveal table:has(th:nth-child(4)) th:nth-child(1) {width: 11%;}
.reveal table:has(th:nth-child(4)) th:nth-child(2) {width: 38%;}
.reveal table:has(th:nth-child(4)) th:nth-child(3) {width: 37%;}
.reveal table:has(th:nth-child(4)) th:nth-child(4) {width: 14%;}
.reveal table:has(th:nth-child(2)):not(:has(th:nth-child(3))) {table-layout: fixed;}
.reveal table:has(th:nth-child(2)):not(:has(th:nth-child(3))) th:first-child {width: 34%;}
