/*!
 * Les Cahiers du journalisme et de l'information — feuille de style des articles
 * Transcription du gabarit Word « Gabarit-Cahiers_du_journalisme-Word.dotx ».
 * Base : 1em = 12 pt du gabarit (16 px). Toutes les règles sont limitées à .cdj-article
 * pour ne pas toucher au thème (Divi) ni être modifiées par lui.
 *
 * Valeurs du gabarit (styles Word)            -> CSS
 *  Normal         Times 12, interligne 1,15, après 12 pt, justifié
 *  Titre princ.   Libre Baskerville 24, centré, avant 24 pt
 *  Sous-titre     Libre Baskerville 14, centré, après 18 pt
 *  Signature      Times 12 italique, centré, après 3 pt
 *  Section        Libre Baskerville gras 9, capitales, #C00000, avant 24 / après 9 pt
 *  Retrait c. t.  Times 12, simple, retraits 1 cm / 1 cm
 *  Intertitre     Libre Baskerville gras 11, avant 24 / après 9 pt
 *  Sous-intert.   Libre Baskerville italique 10,5, avant 18 / après 9 pt
 *  Texte tableau  Libre Baskerville 9, simple, avant/après 2 pt
 *  Légende        Libre Baskerville gras 10, avant 6 / après 24 pt
 *  Note de fin    Times 10 italique, après 0
 *  Bibliographie  Times 12, simple, retrait négatif 1 cm
 *  Note bas de p. Times 9, simple, après 6 pt
 *  Lettrine       Times 37,5 (2 lignes), #C00000
 */

@font-face {
	font-family: "CDJ Libre Baskerville";
	src: url(fonts/LibreBaskerville-VF.woff2) format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "CDJ Libre Baskerville";
	src: url(fonts/LibreBaskerville-Italic-VF.woff2) format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

.cdj-article {
	--cdj-rouge: #c00000;
	--cdj-gris: #7f7f7f;
	--cdj-texte: #000;
	--cdj-serif: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", Tinos, serif;
	--cdj-titres: "CDJ Libre Baskerville", "Libre Baskerville", Baskerville, Georgia, serif;
	--cdj-retrait: 2.3625em; /* 1 cm */
	--cdj-li-normal: 1.3225; /* interligne 1,15 Word en Times */
	--cdj-li-simple: 1.15;

	box-sizing: border-box;
	max-width: 37.8em; /* 16 cm de justification, comme le gabarit */
	margin: 0 auto;
	padding: 0;
	font-family: var(--cdj-serif);
	font-size: 1rem;
	font-weight: 400;
	line-height: var(--cdj-li-normal);
	color: var(--cdj-texte);
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
	font-kerning: normal;
	text-rendering: optimizeLegibility;
}
.cdj-article *,
.cdj-article *::before,
.cdj-article *::after { box-sizing: inherit; }

/* Remises à zéro (Divi impose padding, couleurs et graisses aux p/hN/listes) */
.cdj-article p,
.cdj-article h1, .cdj-article h2, .cdj-article h3, .cdj-article h4,
.cdj-article ul, .cdj-article ol, .cdj-article li,
.cdj-article figure, .cdj-article figcaption, .cdj-article blockquote,
.cdj-article table, .cdj-article header, .cdj-article footer, .cdj-article section {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	font-style: normal;
}
.cdj-article p { margin: 0 0 1em; font-size: 1em; line-height: inherit; }
.cdj-article strong, .cdj-article b { font-weight: 700; }
.cdj-article em, .cdj-article i { font-style: italic; }
.cdj-article em em { font-style: normal; }
.cdj-article sup, .cdj-article sub { font-size: .667em; line-height: 0; position: relative; vertical-align: baseline; }
.cdj-article sup { top: -.5em; }
.cdj-article sub { bottom: -.25em; }
.cdj-article .cdj-sc { font-variant: small-caps; }
.cdj-article .cdj-u { text-decoration: underline; }
.cdj-article a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
	text-decoration-color: rgba(192, 0, 0, .55); text-underline-offset: .15em; word-break: break-word; }
.cdj-article a:hover, .cdj-article a:focus { color: var(--cdj-rouge); }
.cdj-article :target { scroll-margin-top: 6rem; }

/* ------------------------------------------------------------------ en-tête */
.cdj-article .cdj-running-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .2em 2em;
	margin: 0 0 1.5em;
	padding: 0 0 .5em;
	border-bottom: .75pt solid var(--cdj-rouge);
	font-family: var(--cdj-titres);
	font-size: .5833em; /* 7 pt */
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .043em; /* 0,3 pt */
	text-transform: uppercase;
	text-align: left;
	color: var(--cdj-gris);
}
.cdj-article .cdj-running-head sup { font-size: .65em; top: -.6em; }

.cdj-article .cdj-article-header { text-align: center; }
.cdj-article h1.cdj-title {
	margin: 1em 0 .5em; /* avant 24 pt, après 12 pt */
	font-family: var(--cdj-titres);
	font-size: 2em; /* 24 pt */
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
	-webkit-hyphens: manual;
	hyphens: manual;
}
.cdj-article .lead.cdj-subtitle {
	margin: 0 0 1.2857em; /* après 18 pt */
	font-family: var(--cdj-titres);
	font-size: 1.1667em; /* 14 pt */
	line-height: 1.25;
	text-align: center;
	-webkit-hyphens: manual;
	hyphens: manual;
}
.cdj-article .authors { margin: 0; }
.cdj-article .authors .author {
	margin: 0 0 .25em; /* après 3 pt */
	font-style: italic;
	text-align: center;
	-webkit-hyphens: manual;
	hyphens: manual;
}
.cdj-article .cdj-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5em 1.5em;
	margin: .75em 0 0;
	font-family: var(--cdj-titres);
	font-size: .75em;
}
.cdj-article .cdj-actions a { text-decoration: none; color: var(--cdj-rouge); }
.cdj-article .cdj-actions a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- intitulés de section */
.cdj-article .cdj-section-label {
	margin: 3em 0 1em; /* avant 24 pt (+ 3 pt de la signature), après 9 pt — en 9 pt */
	font-family: var(--cdj-titres);
	font-size: .75em; /* 9 pt */
	font-weight: 700;
	line-height: 1.4375;
	text-transform: uppercase;
	text-align: left;
	color: var(--cdj-rouge);
	-webkit-hyphens: manual;
	hyphens: manual;
}

/* ------------------------------------------------------------- résumés */
.cdj-article .abstract .abstract-text p,
.cdj-article .abstract .keywords {
	margin: 0 var(--cdj-retrait) 1em;
	line-height: var(--cdj-li-simple);
}
.cdj-article .abstract .keywords .keywords-label {
	font-family: var(--cdj-titres);
	font-size: .75em;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--cdj-rouge);
}

/* ------------------------------------------------------------- corps */
.cdj-article .article-body { margin-top: 3.3em; }
.cdj-article .article-body:first-child,
.cdj-article .cdj-article-header + .article-body { margin-top: 2.5em; }

/* Lettrine rouge sur deux lignes */
.cdj-article p.intro::first-letter {
	float: left;
	margin: .03em .05em 0 0;
	padding: 0;
	font-family: var(--cdj-serif);
	font-size: 3.125em; /* 37,5 pt */
	font-weight: 400;
	font-style: normal;
	line-height: .82;
	color: var(--cdj-rouge);
}
@supports ((initial-letter: 2) or (-webkit-initial-letter: 2)) {
	.cdj-article p.intro::first-letter {
		float: none;
		margin: 0 .06em 0 0;
		font-size: 1em;
		line-height: inherit;
		-webkit-initial-letter: 2;
		initial-letter: 2;
	}
}

.cdj-article .article-body h2 {
	margin: 2.1818em 0 .8182em; /* avant 24 pt, après 9 pt — en 11 pt */
	font-family: var(--cdj-titres);
	font-size: .9167em; /* 11 pt */
	font-weight: 700;
	line-height: 1.4375;
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
	break-after: avoid;
}
.cdj-article .article-body h3 {
	margin: 1.7143em 0 .8571em; /* avant 18 pt, après 9 pt — en 10,5 pt */
	font-family: var(--cdj-titres);
	font-size: .875em; /* 10,5 pt */
	font-weight: 400;
	font-style: italic;
	line-height: 1.4375;
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
	break-after: avoid;
}
.cdj-article .article-body h4 {
	margin: 1.5em 0 .75em;
	font-family: var(--cdj-titres);
	font-size: .8333em;
	font-weight: 400;
	line-height: 1.4375;
	text-align: left;
	break-after: avoid;
}
.cdj-article .article-body h2 + h3 { margin-top: 0; }

/* Citations longues (Retrait corps de texte) */
.cdj-article blockquote {
	margin: 0 var(--cdj-retrait) 1em;
	quotes: none;
	font-size: 1em;
	line-height: var(--cdj-li-simple);
}
.cdj-article blockquote::before, .cdj-article blockquote::after { content: none; }
.cdj-article blockquote p { margin: 0 0 1em; }
.cdj-article blockquote p:last-child { margin-bottom: 0; }
.cdj-article blockquote + blockquote { margin-top: 0; }
.cdj-article .article-body blockquote { margin-bottom: 1em; }

/* Listes */
.cdj-article .article-body ul,
.cdj-article .article-body ol { margin: 0 0 1em; padding-left: 1.6em; line-height: inherit; }
.cdj-article .article-body ul { list-style: disc; }
.cdj-article .article-body ol { list-style: decimal; }
.cdj-article .article-body li { margin: 0 0 .25em; }
.cdj-article .article-body li > ul,
.cdj-article .article-body li > ol { margin: .25em 0 0; }

/* Appels de note */
.cdj-article .cdj-fnref a { text-decoration: none; color: inherit; padding: 0 .08em; }
.cdj-article .cdj-fnref a:hover { color: var(--cdj-rouge); }
.cdj-article a.cdj-cite,
.cdj-article a.cdj-xref { text-decoration-style: dotted; text-decoration-color: rgba(192, 0, 0, .5); }

/* ------------------------------------------------------------- figures, tableaux */
.cdj-article .cdj-figure { margin: 0 0 2em; text-align: left; }
.cdj-article .cdj-figure-media { display: flex; flex-wrap: wrap; gap: .75em; align-items: flex-start; }
.cdj-article .cdj-figure img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	box-shadow: none;
}
.cdj-article .cdj-figure-multi img { min-width: 0; }
.cdj-article .cdj-figure-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 1.5em;
	align-items: flex-start;
	margin: 0 0 2em;
}
.cdj-article .cdj-figure-group .cdj-figure { flex: 1 1 14em; margin: 0; }
.cdj-article .cdj-figure-group .cdj-figure img { width: 100% !important; }
.cdj-article figcaption,
.cdj-article .cdj-caption-orpheline {
	margin: .6em 0 0; /* avant 6 pt — en 10 pt */
	font-family: var(--cdj-titres);
	font-size: .8333em; /* 10 pt */
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
}
.cdj-article .cdj-caption-orpheline { margin-bottom: 2.4em; }
.cdj-article figcaption .cdj-source,
.cdj-article .cdj-source {
	display: block;
	margin-top: .35em;
	font-family: var(--cdj-titres);
	font-size: .9em;
	font-weight: 400;
}
.cdj-article p.cdj-source { font-size: .75em; margin: .35em 0 2em; text-align: left; }

.cdj-article .cdj-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.cdj-article .cdj-table-wrap:focus { outline: 1px dotted var(--cdj-gris); outline-offset: 2px; }
.cdj-article table.cdj-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto;
	font-family: var(--cdj-titres);
	font-size: .75em; /* 9 pt — style « Texte tableau » */
	line-height: 1.25;
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
	background: transparent;
}
.cdj-article table.cdj-table th,
.cdj-article table.cdj-table td {
	padding: var(--cdj-cell-pad, 0 5.4pt);
	vertical-align: top;
	text-align: left;
	font-size: 1em;
	line-height: inherit;
	background-clip: padding-box;
	color: inherit;
}
.cdj-article table.cdj-table th { font-weight: 700; }
.cdj-article table.cdj-table td p,
.cdj-article table.cdj-table th p { margin: .2222em 0; text-align: left; line-height: inherit; }
.cdj-article table.cdj-table td p:empty { display: none; }
.cdj-article table.cdj-table img { max-width: 100%; height: auto; }
.cdj-article .cdj-figure-table figcaption { margin-top: .6em; }

/* Graphiques Word redessinés */
.cdj-article .cdj-chart { width: 100%; flex: 1 1 100%; }
.cdj-article .cdj-chart-svg { display: block; width: 100%; height: auto; }
.cdj-article .cdj-chart-data { margin: .5em 0 0; font-size: .8em; }
.cdj-article .cdj-chart-data summary { cursor: pointer; font-family: var(--cdj-titres); color: var(--cdj-gris); }
.cdj-article .cdj-chart-table { margin-top: .5em; font-size: .9em; }
.cdj-article .cdj-chart-table th, .cdj-article .cdj-chart-table td { border: .5pt solid #000; padding: 2pt 5pt; }

/* Encadrés (zones de texte Word), SmartArt */
.cdj-article .cdj-encadre {
	margin: 0 0 1em;
	padding: .75em 1em;
	border: .75pt solid #000;
	text-align: left;
}
.cdj-article .cdj-encadre p:last-child { margin-bottom: 0; }
.cdj-article .cdj-encadre-titre { font-family: var(--cdj-titres); font-weight: 700; font-size: .9167em; }
.cdj-article .cdj-smartart ul { margin: 0 0 1em; padding-left: 1.4em; list-style: square; }
.cdj-article .cdj-missing { display: inline-block; padding: .25em .5em; border: 1px dashed var(--cdj-rouge);
	font-family: var(--cdj-titres); font-size: .75em; color: var(--cdj-rouge); }
.cdj-article math[display="block"] { display: block; margin: .5em 0; }

/* ------------------------------------------------------------- fin d'article */
.cdj-article .article-notes { margin: 1.5em 0 0; }
.cdj-article .article-notes p {
	margin: 0; /* après 0 */
	font-size: .8333em; /* 10 pt */
	font-style: italic;
	line-height: var(--cdj-li-normal);
	text-align: left;
}

.cdj-article .cdj-footnotes ol {
	margin: 0;
	padding: 0 0 0 1.6em;
	list-style: decimal;
	font-size: .75em; /* 9 pt */
	line-height: var(--cdj-li-simple);
	text-align: left;
}
.cdj-article .cdj-footnotes li { margin: 0 0 .6667em; padding-left: .2em; } /* après 6 pt */
.cdj-article .cdj-footnotes li p { margin: 0 0 .3em; }
.cdj-article .cdj-footnotes li p:last-child { margin: 0; }
.cdj-article .cdj-fnback { text-decoration: none; margin-left: .2em; color: var(--cdj-gris); }
.cdj-article .cdj-fnback:hover { color: var(--cdj-rouge); }

.cdj-article .references,
.cdj-article .publication-reference { margin-top: 3em; }
.cdj-article .references .cdj-section-label,
.cdj-article .publication-reference .cdj-section-label { margin-top: 0; }
.cdj-article p.bib {
	margin: 0 0 1em;
	padding-left: var(--cdj-retrait);
	text-indent: calc(-1 * var(--cdj-retrait));
	line-height: var(--cdj-li-simple);
	text-align: left;
	-webkit-hyphens: manual;
	hyphens: manual;
}
.cdj-article .cdj-refs-sub {
	margin: 1.5em 0 .75em;
	font-family: var(--cdj-titres);
	font-size: .875em;
	font-style: italic;
	font-weight: 400;
	text-align: left;
}

/* Cible d'un lien interne (note, référence) : repère visuel discret */
.cdj-article p.bib:target,
.cdj-article .cdj-footnotes li:target,
.cdj-article .cdj-figure:target {
	background: #fbeaea;
	box-shadow: 0 0 0 .35em #fbeaea;
	transition: background-color 1.5s ease;
}

/* ------------------------------------------------------------- écrans étroits */
@media (max-width: 600px) {
	.cdj-article { text-align: left; }
	.cdj-article br.cdj-soft { display: none; }
	.cdj-article h1.cdj-title { font-size: 1.6em; }
	.cdj-article .abstract .abstract-text p,
	.cdj-article .abstract .keywords,
	.cdj-article blockquote { margin-left: 1em; margin-right: 0; }
	.cdj-article .cdj-figure-media img { width: 100% !important; }
}

/* ------------------------------------------------------------- impression */
@media print {
	.cdj-article { max-width: none; font-size: 12pt; }
	.cdj-article a { text-decoration: none; }
	.cdj-article .cdj-actions, .cdj-article .cdj-fnback, .cdj-article .cdj-chart-data { display: none; }
	.cdj-article .cdj-figure, .cdj-article table.cdj-table tr { break-inside: avoid; }
}
