@media print{
	@page {
		size: A4;
		margin: 2cm 1.5cm 2cm 1.5cm;
		@bottom-right-corner {
	    content: counter(page);
	    font-size: 11pt;
	    font-family: var(--font-sans);
	  }
	  @top-center{
    	content: string(title);
    	font-size: 11pt;
    	font-family: var(--font-sans);
  	}
  	@bottom-center {
    	content: "Les temps qui restent";
    	font-size: 11pt;
    	font-family: var(--font-sans);
    	text-transform: uppercase;
  	}
	}

	@page:first{
		@top-center {
	    content: none;
	  }
	  @bottom-center {
    	content: none;
  	}
  	@bottom-right-corner {
    	content: none;
  	}
	}

/*	.pagedjs_page .pagedjs_margin-top-center .pagedjs_margin-content{
		width: calc(100% + 6cm);
	}*/

	body[data-template="print-numero"] .content-wrapper .article-dossier-serie .article-inner h1 p:first-child,
	body[data-template="print-dossier"] .content-wrapper .article-dossier-serie .article-inner h1 p:first-child,
	body[data-template="print-numero-cairn"] .content-wrapper .article-dossier-serie .article-inner h1 p:first-child{
		string-set: title content(text);
	}

	/*	permet de gérer les longues urls*/
	body[data-template="print-numero"] .content-wrapper .article-dossier-serie .article-inner p a,
	body[data-template="print-numero-cairn"] .content-wrapper .article-dossier-serie .article-inner p a,
	body[data-template="print-dossier"] .content-wrapper .article-dossier-serie .article-inner p a{

	  /* These are technically the same, but use both */
	  overflow-wrap: break-word;
	  word-wrap: break-word;

	  -ms-word-break: break-all;
	  /* This is the dangerous one in WebKit, as it breaks things wherever */
	  word-break: break-all;
	  /* Instead use this non-standard one: */
	  word-break: break-word;

	  /* Adds a hyphen where the word breaks, if supported (No Blink) */
	  -ms-hyphens: auto;
	  -moz-hyphens: auto;
	  -webkit-hyphens: auto;
	  hyphens: auto;

	}

	/*	en js j'ajoute dans le contenu l'author pour qu'il apparaisse dans le sommaire, mais je ne veux pas qu'il apparaisse sous le titre dans les articles*/
	body[data-template="print-numero"] .content-wrapper .article-dossier-serie .article-inner h1 .toc-author,
	body[data-template="print-dossier"] .content-wrapper .article-dossier-serie .article-inner h1 .toc-author,
	body[data-template="print-numero-cairn"] .content-wrapper .article-dossier-serie .article-inner h1 .toc-author{
		display: none;
	}

	h1, h2, h3, h4, h5{
		page-break-inside: avoid;
		
	}

	a{
		word-break: break-word;
	}

	body[data-template="print-numero"] .article-dossier-serie .article-content .alignment-left p,
	body[data-template="print-dossier"] .article-dossier-serie .article-content .alignment-left p,
	body[data-template="print-numero-cairn"] .article-dossier-serie .article-content .alignment-left p{
			text-align: left;
	/*		text-align-last: left;*/
			hyphens: none;
		}

	body[data-template="print-numero"] .article-dossier-serie .article-content .alignment-justify p,
	body[data-template="print-dossier"] .article-dossier-serie .article-content .alignment-justify p,
	body[data-template="print-numero-cairn"] .article-dossier-serie .article-content .alignment-justify p{
			text-align: justify;
			hyphens: auto;
		}

	body[data-template="print-numero"] .article-dossier-serie .article-content .alignment-right p,
	body[data-template="print-dossier"] .article-dossier-serie .article-content .alignment-right p,
	body[data-template="print-numero-cairn"] .article-dossier-serie .article-content .alignment-right p{
			text-align: right;
	/*		text-align-last: right;*/
			hyphens: none;
		}

	body[data-template="print-numero"] .article-dossier-serie .article-content .alignment-center p,
	body[data-template="print-dossier"] .article-dossier-serie .article-content .alignment-center p,
	body[data-template="print-numero-cairn"] .article-dossier-serie .article-content .alignment-center p{
		text-align: center;
		/*		text-align-last: center;*/
		hyphens: none;
	}

	body[data-template="print-numero"] .content-wrapper h2,
	body[data-template="print-dossier"] .content-wrapper h2,
	body[data-template="print-numero-cairn"] .content-wrapper h2{
		margin-top: 0;
	}

	body[data-template="print-numero-cairn"] .content-wrapper h2{
		margin-top: 0.75rem;
		margin-bottom: 0.75rem;
	}
	
	header{
		position: relative;
		width: 100%;
		margin-bottom: 1cm;
		border-bottom: 1px solid #000;
	}

	figure{
		page-break-inside: avoid;
		width: 80%;
		margin: auto;
	}

	.logo{
		background: transparent;
		height: auto;
		text-align: center;
		padding:0.3cm;
		padding-top: 0;
	}

	body .logo .logo-inner{
		position: relative;
		width: auto;
		top:0;
		left: 0;
		transform: none;
	}

	h2, h3, h4{
		text-align: left;
		text-align-last: left !important;
	}

	.block figure figcaption, .block-type-audio figcaption{
		text-align: left;
		text-align-last: left !important;
		margin-top: 2mm;
	}

	.logo a{
		display: block;
		color: var(--color);
		font-size: 15px;
	}

	.logo .reduce-title{
		display: none;
	}

	.menu-wrapper, .tetiere, .related-articles, #menu-icon{
		display: none;
	}

	main{
		margin-left: 0;
		width: 100%;
		border:0;
	}

	.content-wrapper{
		padding: 0;
	}

	.content-wrapper article .article-intro,
	.content-wrapper article .article-content {
		text-align: justify;
		hyphens: auto;
		font-size: 18px;
/*		text-align-last: initial;*/
	}

	.content-wrapper .article-info,
	.content-wrapper .article-info p{
		font-size: 18px;
	}

	.dossier-print-title .dossier-intro{
		text-align: justify;
		hyphens: auto;
		font-size: 18px;
	}

	.article-meta-right{
		display:none;
	}

	.block-type-video{
		display: none;
	}

	/* PRINT DOSSIER / NUMERO */
	.article-dossier-serie article{
		page-break-before: always;
	}

	.article-dossier-serie .bandeau-container > h2{
/*		width: 21cm;
		height: 29.7cm;*/
		page-break-before: always;
		page-break-after: always;
		background: transparent;
		color: var(--color);
		font-size: 50px;
		line-height: 1.1;
		text-align: left;
		page: categorie;
	}

	@page categorie{
		@top-center{
    	content: none;
  	}
	}

	.article-dossier-serie .bandeau-container > h2 > span{
		color: #000;
		font-size: 35px;
		line-height: 1.2;
	}

	/* paged.js	*/
	body[data-template="print-numero"] blockquote,
	body[data-template="print-dossier"] blockquote,
	body[data-template="print-numero"] .article-intro,
	body[data-template="print-dossier"] .article-intro{
		font-size: 17px;
	}

	.footnote-inner{
		display: none;
	}

	.logo-cover{
		font-family: var(--font-sans);
		color: var(--color);
		text-align: center;
		text-transform: uppercase;
		font-size: 47px;
	  page-break-after: avoid;
	}

	.print-numero-title{
		page-break-before: avoid;
	  page-break-after: always;
	}

		  

	/*	toc   */
	#list-toc-generated{ 
		list-style: none;
		margin-left: 0 !important;
		margin-top: 0 !important;
	}

	#list-toc-generated .toc-element{
		text-align: center;
		font-family: var(--font-sans);
		font-size: 15px;
		list-style: none;
		padding-left: 0 !important;
		margin-bottom: 18px;
	}

	#list-toc-generated .toc-element p{
		margin-bottom: 0;
		/*color: red !important;*/
	}

	#list-toc-generated .toc-element p:before{
		content: none !important;
	}

  #list-toc-generated .toc-element a::before{
      content: " p. " target-counter(attr(href), page);
      text-align: center;
      display: block;
      color: #000;
  }

  #list-toc-generated .toc-element a{
  	border: none !important;
  	text-decoration: none !important;
  }

  #list-toc-generated .toc-element-level-1{
			background: var(--color);
			color: #FFF;
			text-transform: uppercase;
			padding: calc(var(--padding) / 2);
  }

  #list-toc-generated .toc-element .toc-author{
  	font-family: var(--font-mono);
  	font-size: 14px;
  }

  #list-toc-generated .toc-element + #list-toc-generated .toc-element-level-1{
  	margin-top: calc(var(--padding) * 2);
  }

/*  #list-toc-generated .toc-element-level-1 a{
  	color: #FFF;
  }*/

  #list-toc-generated .toc-element-level-1 a::before{
  	/*content: none;*/
  }

  #list-toc-generated .toc-element:nth-child(11n){
  	page-break-before: always;
  }

  /* hack for leaders */

  #list-toc-generated{
      overflow-x: hidden;
  }

	/* Dossier  */
  .print-dossier #list-toc-generated .toc-element-level-1{
  	background: transparent;
  	padding: 0;
  	text-transform: none;
  	margin-bottom: 0;
  	margin-top: calc(var(--padding) * 1);
  }

/*  .print-dossier #list-toc-generated .toc-element-level-1 a::before{
      content: " p. " target-counter(attr(href), page);
      text-align: center;
      display: block;
      color: #000;
  }*/

  .print-dossier .dossier-print-title h1{
  	font-family: var(--font-sans);
	  color: var(--color);
	  text-align: center;
	  text-transform: uppercase;
	  font-size: 47px;
	  font-weight: normal;
  }

/*  #list-toc-generated .toc-element{
      display: flex; 
  }

  #list-toc-generated .toc-element a::after{
      position: absolute;
      right: 0;
      background-color: white;
      padding-left: 6px;
  }

  #list-toc-generated .toc-element a{
      right: 0;
  }*/

	/* foonotes */
/*	[aria-describedby="footnote-label-bottom"]::before {
	  content: none;
	}*/


	.article-content{
		counter-reset: footnotesbott;
	}

	.article-content .footnote, 
	.article-intro .footnote,
	.article-content .footnote, 
	.article-intro .footnote{
		position: inherit;
		top:0;
		left:0;
	}

	.footnote-inner,
	.footnote-inner,{
		background: transparent;
		border-radius: none;
		padding: 0;
	}

	.article-content .footnote-label, 
	.article-intro .footnote-label,
	.article-content .footnote-label, 
	.article-intro .footnote-label{
		display: inline-block;
		position: relative;
		color: var(--color);
		vertical-align: super;
		background: transparent;
		top: -2px;
		left: 0;
		width: auto;
		padding: 0px;
	}

	.article-content .footnote-space, 
	.article-intro .footnote-space,
	.article-content .footnote-space, 
	.article-intro .footnote-space{
		margin-left: 0px;
	}

	.article-content .footnote-wrapper, 
	.article-intro .footnote-wrapper,
	.article-content .footnote-wrapper, 
	.article-intro .footnote-wrapper{
		position: inherit;
	}

	.footnote-label::before,
	.footnote-label::before{
		display: inline-block;
		margin-left: 0;
  	transform: none;
	}

	body[data-template="print-numero"] .content-wrapper .tags li::after,
	body[data-template="print-numero-cairn"] .content-wrapper .tags li::after,
	body[data-template="print-dossier"] .content-wrapper .tags li::after {
		margin-left: 5px;
	}


	body[data-template="print-dossier"] .article-dossier-serie .article-content p.audio-url,
	body[data-template="print-numero-cairn"] .article-dossier-serie .article-content p.audio-url, 
	body[data-template="print-numero"] .article-dossier-serie .article-content p.audio-url{
		font-size: var(--small-size);
    font-family: var(--font-mono);
    opacity: 0.7;
    text-decoration: underline;
    margin-top: 0;
	}

	/* ------ CAIRN Design specific ----- */
	/* Grille de base : 1 unité = 14pt (10pt × 1.4) */
	.cairn .article-content-inner{
		column-count: 2;
		column-gap: 0.5cm;
		column-fill: auto; /* remplit chaque colonne de haut en bas, comme un journal */
		font-size: 10pt;
		line-height: 14pt;
	}

	.cairn .content-wrapper .article-content h1 p{
		line-height: 28pt;
	}

	.cairn p,
	.cairn blockquote,
	.cairn .footnotes-list,
	.cairn #list-toc-generated .toc-element{
		font-size: 10pt;
		line-height: 14pt;
	}

	.cairn .content-wrapper .article-content .toc-element p{
		margin-bottom: 0 !important;
	}

	.cairn .footnotes-list{
		column-count: 2;
		column-gap: 10px;
	}

	.cairn .footnotes-list li{
		margin-left: 20px;
	}

	.cairn .footnotes-list .footnote-label-bottom{
		font-size: 8px;
		width: 24px;
		margin-right: 10px;
		margin-left: -35px;
	}

	.cairn h1, 
	.cairn .content-wrapper h1,
	.cairn .content-wrapper h1 p{
		font-size: 20pt;
	}

	.cairn h2{
		font-size: 14pt;
		line-height: 21pt; /* 1.5 × 14pt, multiple de la grille */
		margin-top: 14pt;
		margin-bottom: 14pt;
		/* ne jamais laisser un titre seul en fin de colonne/page */
		break-after: avoid;
		page-break-after: avoid;
		column-break-after: avoid;
	}

	.cairn h3{
		line-height: 14pt;
		margin-top: 14pt;
		margin-bottom: 0;
		/* ne jamais laisser un titre seul en fin de colonne/page */
		break-after: avoid;
		page-break-after: avoid;
		column-break-after: avoid;
	}

	.cairn figure{
		width: 100% !important;
		margin-top: 10pt !important;
	}

	.cairn .content-wrapper .article-content p{
		margin-bottom: 14pt !important; /* multiple de la grille de base */
		line-height: 14pt;
		margin-top: 0 !important;
	}

	.cairn .content-wrapper .article-content .toc-element p{
		margin-bottom: 0;
	}

	.cairn .block figure figcaption, 
	.cairn  .block-type-audio figcaption{
		font-size: 9pt;
	}

	.content-wrapper .article-info, .content-wrapper .article-info p{
		font-size: 10pt;
		text-align: center;
	}

	.cairn .green-audio-player{
		min-width: 0;
	}

	.cairn .footnote-label{
		font-size: 7px;
	}


}





/* Encarts « Faire un don » / « Newsletter » : pas dans les versions imprimables
   (impression du navigateur + templates print-… mis en page avec paged.js) */
@media print{
	.encart,
	.block-type-encart{
		display: none !important;
	}
}

body[data-template^="print-"] .encart,
body[data-template^="print-"] .block-type-encart{
	display: none !important;
}
