*{
	box-sizing:border-box;
	margin:0;
	padding:0
}
@font-face {
	font-family: 'Poetsen One';
	url('../fonts/PoetsenOne-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
html {
	background:#A4531A;
	padding:0 2.5em 2em;
	scroll-behavior:smooth;
}
body {
	font-family: 'Poetsen One', sans-serif;
	font-weight: 400;
	font-style: normal;
	background:#DFDBD4;
	color:#6B3820;
	max-width:1200px;
	padding:1em;
	margin:0 auto;
	min-height:100vh;
	filter:drop-shadow(0 0 5px) drop-shadow(0 0 5px) drop-shadow(0 0 5px);
	text-wrap:balance;
}
body>header {
	display:grid;
	grid-template-columns:1fr auto 1fr;
	gap:1em;
	align-items:center;
}
@media (max-width:800px) {
	body>header {display:block;}
}
.right {
	text-align:end;
}
header nav {
	grid-column:1/4;
	margin:0 -3em;
}
header nav > ul {
	display:flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style:none;
	gap:1em;
	padding:0 2em 0;
	margin:0;
}

header nav > ul ul {
	position:absolute;
	display:none;
	list-style:none;
	background:#624739;
	min-width:8em;
}

header nav > ul ul li:not(:last-child){
	border-bottom:ridge 2px #fff2
}

header nav > ul ul li{
	margin:.5em 1em 0;
	line-height:2em;
} 
header a {
	color:inherit;
	text-decoration:none;
}
header>nav , .more{
	padding:3px 5px;
	background:linear-gradient(to bottom,#F4A508 50%, #C69F4F 50%);
	-webkit-clip-path: polygon(100% -3px, calc(100% - 1em) 50%, 100% 100%, 100% 100vh,0 100vh, 0 100%, 1em 50%, 0 -3px);
	clip-path: polygon(100% -3px, calc(100% - 1em) 50%, 100% 100%, 100% 100vh,0 100vh, 0 100%, 1em 50%, 0 -3px);
	color:wheat
}
header>nav>ul {
	background: #E09500;
	filter:drop-shadow(0 0 1px);
	-webkit-clip-path:inherit;
	clip-path:inherit;
}
header>nav>ul>li {
	position:relative;
	padding:1em;
}
header>nav>ul>li:is(:hover,.active)  {
	background:#624739;
	box-shadow:0 -3px #624739 , 0 3px #624739;
}
header>nav>ul>li:hover ul {
	display:grid;
	top:100%;
	left:0; 
}

#bg {
	margin:1em 0;
	aspect-ratio:2/.6;
	background-size:cover;
	border:solid silver 5px;
	box-shadow:inset 0 0 1px, 0 0 1px;
	display:grid;
	place-content:end;
	padding:0.5em;
}
#bg a {
	color:inherit;
	text-decoration:none;
	font-family:cursive;
	border-radius: 1em;
	padding:0 .35em;
	background:#fffa;
}

.repertory.menu.breadcrumb,
.catDesc {
  grid-column:1/-1;
  background:#E0950088;
  padding:1em;
  margin:0 -1em -1em;
}
.catDesc:has(p:first-child:empty,p:last-child:empty),
.pagination.text-center:not(:has(*)){
  display:none;;
}
.repertory.menu.breadcrumb {
  display:flex;
  gap:1em;
  list-style:none;
}
.repertory.menu.breadcrumb li:has(a)::after {
  content:' /';
  padding-left:1em;
}
.repertory.menu.breadcrumb a{
  color:inherit
}
.catDesc {
}

main article  {
	display:grid;
	gap:1em;
	padding:1em;
}
main:has(.card) {
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
	grid-auto-flow: row dense;
	gap:1em;
}
@media(min-width:1060px){
	article:first-of-type:nth-last-child(4) {
		grid-column:2
	}	
}

article:first-of-type:nth-last-child(4) {
	background:#fff2
}
main h2 {
	grid-column:1/-1;
	border-bottom:solid;
}
main .card {
	display:grid;
	grid-template-rows:auto auto auto 1fr auto;
	gap:1.5em;
	height:100%;
}
main .card h2 {
  display:grid;
  min-height:4em;
  align-items: end;
  text-transform: uppercase;
  font-size:1.4em;
}
.cardImage {
	display:grid;
	aspect-ratio:2/1;
	width:100%;
	object-fit:cover;
	border:solid silver 5px;
	box-shadow:inset 0 0 1px, 0 0 1px; 
	background:#A0E0E9;
	color:#BB543D;
	font-weight:bolder;
	font-size:2em;
	overflow:hidden;
}
.cardImage:empty {
	place-content:center;
}
.card:nth-child(2n) {
	background:#fff2;
	border-radius:3px;
}
.card:nth-child(2n) .cardImage {
	background:#FCBB90
}
.card:nth-child(3n) .cardImage {
	background:#C85339;
	color:#DFDBD4;
}
.card:nth-child(4n) .cardImage {
	background:#F6BB59;
	color:#DFDBD4;
}
.card:nth-child(4n) .cardImage {
	background:#FCBE90;
}

.cardImage:not(:has(img)):after {
	content:attr(title);
}
.cardImage a, .cardImage:after {
	grid-row:1;
	grid-column:1;
}
main .card .cardImage :is(a,a img) {
	width:100%;
	height:100%;
	display:block;
	object-fit:cover; 
	padding:0;
	aspect-ratio:2/1;
}
main .card h3 {
	text-transform:uppercase;
}
main .card :is(header,.cardImage) {
	order:-2
}
main .card footer {
	order:-1;
	font-size:.75em
}
main .card .art-date {
	float:right;
	margin-top:-1.6em;
	text-align:end;
}
.more {
	margin-top:auto;
	max-width:max-content;
	font-size:0.25em;
	padding:3px;
	border-radius:5px;
}
.more a {
	filter:drop-shadow(0 0 3px#f2f5f988);
	display:block;
	padding:0.25em 1em;
	-webkit-clip-path:inherit;
	clip-path:inherit;
	background: #E09500;
	font-size:3.8em;
	color:inherit;
	border-radius:inherit;
	text-transform:uppercase;
	text-decoration:none;
}
.more a:hover {
	background:#624739;
}

:is(.page.mode-static ,.page.mode-article) main article {
  display:block;
  line-height:1.6;
  padding:0 2em;
}

:is(.page.mode-static ,.page.mode-article) main article header{
  display:grid;
  grid-template-columns:1.5em 1fr;
  gap:.5em;
  margin-bottom:2em;
  margin-inline:-2em;
}

:is(.page.mode-static ,.page.mode-article) main article header .art-date{
  grid-row:1/4;
  grid-column:1;
  writing-mode: sideways-lr;
  margin:auto;
}

:is(.page.mode-static ,.page.mode-article) main article header h2,
:is(.page.mode-static ,.page.mode-article) main article header div{
  grid-column:2;
}

a:has(img.art_thumbnail) {
  float:left;
  padding: 0 1em 1em 0;
}

.page.mode-article main article p{
  text-indent:1em;
  margin-bottom:1.2em;
}
.page.mode-article main article p:first-letter{
  font-weight: bolder;
}



.coms,#form {
  max-width:max-content;
  margin:auto;
}
#form fieldset {
  padding:1em;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:.5em 1em;
}
#id_answer,.chat,#com_message {
  grid-column:1/-1;
}
#id_answer:has(blockquote) {
  background:#FCC08E88;
  padding:1em;
}

.comment >a:last-of-type,
#id_answer> a:last-of-type {
  display: block;
  max-width:max-content;
  margin:.5em auto 0;
  padding:0.2em .5em;
  background:#B54B34;
  color:wheat;
  text-decoration: none;
  border-radius: 5px;
  box-shadow:1px 1px 3px #3028
}

.coms blockquote {
  padding:0.5em;
  font-style:italic;
  color:#777;
}
.coms {
  display: grid;
  gap: 1em;
  background: #fff3;
  padding: 1em;
}

p:has(a[title*="RSS"]){
  text-align:center;
  padding: 1em;
}


main aside {
	margin-top:1em;
	display:grid;
	grid-column:1/-1;
	grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
	gap:1em;
}

@media (max-width:665px) {
	body#top main {
		display:block;
	}	
}
@media (min-width:664px) {
  div:has(.arch-list.unstyled-list) {
    grid-column:span 2; 
	background:#fff2;   
  }
  .arch-list.unstyled-list {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:0 1em ;
  }
}

@media (max-width:980px) {
	div:has(.cat-list){
		grid-column:span 2;
	}
	.cat-list.unstyled-list {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:0 1em ;
  }	
}
@media (max-width :1060px) {
	html {padding:0;}
	main aside {display:contents}
}
main aside div {
}
main aside h3 {
	border-bottom:solid 3px;
	line-height:2.3;
	background:#fff1
}
main aside ul {
	list-style:none;
}
main aside ul li {
	display:grid;
	font-weight:bolder;
	gap:0.25em;
	padding:0.25em 0 0.25em 0.5em;
	border-bottom: groove 2px #D4CCC444;
	min-height:4.75em;
	align-items:center;
	border-radius:0;
}
main aside ul li a {
	color:inherit;
	text-decoration:none;
	font-size:1.2em;
}
main aside ul li a:visited {
	color: #777;
}
main aside ul li time, 
footer h4 {
	color:#E09500;
}

.chapo {
	display: grid;
	gap: 1em;
}
.text-center {
	text-align:center;
}
.pagination {
	grid-column: 1/-1;
	background:#A4531A;
	padding:1em;
	margin:0 -1em;
	color:#F35439;
}
.p_next {
	background:linear-gradient(to bottom,#F4A508 50%, #C69F4F 50%);
	padding:3px;
	display:inline-block;
	clip-path: polygon(0% 0%, calc(100% - 1em) 0, 100% 50%, calc(100% - 1em) 100%, 0 100%, .5em 51%);
	color:wheat;
	min-width: 7.5em;
}
.p_next a{
	display:block;
	background: #E09500;
	padding:1em;
	color:inherit;
	clip-path:inherit;
	text-decoration:none;
}
.p_next a:hover{
	background:#624739;
}
.p_prev {
	background:linear-gradient(to bottom,#F4A508 50%, #C69F4F 50%);
	padding:3px;
	display:inline-block;
	clip-path:polygon(1em 0, 100% 0, calc(100% - .4em) 50%, 100% 100%, 1em 100%, 0 50%);
	color:wheat;
	min-width: 7.5em;
}
.p_prev a{
	display:block;
	background: #E09500;
	padding:1em;
	color:inherit;
	clip-path:inherit;
	text-decoration:none;
}
.p_prev a:hover{
	background:#624739;
}
.pagination.text-center :is(.p_first,.p_last) a {
	color:orange;
	text-decoration:none;
	font-size:2em;
}
span:has(a[title*="RSS"]) {
	grid-column:1/-1;
	text-align:center;
}
a[title*="RSS"] {
	color:#54A0F3;
	display: inline-block;
	font-weight: bolder;
	line-height:2;
	text-decoration: none;
	border-block:solid orange 2px;
}


body>footer {
	border-top:#D79002 solid;
	color:wheat;
	background:#423024;
	padding:1em;
	margin:6em -1em -1em;
	display:grid;
	gap:1em 2em;
	grid-template-columns:repeat(3,1fr);
	position:relative; 
}
footer>div {
	margin:auto;
}
footer> p:not(.order-1) {
	grid-column:1/-1;
	margin:3em -1em -1em;
	padding:2em;
	text-align:center;
	background:#614639;
	border-top:#5A4237 1em solid;
}
footer a, #toTop:hover {
	scale:1;
	color:#F35439;
	transition:.25s;
}
.order-1 {
	order: -1;
	grid-column:1/-1;
	filter: drop-shadow(0 0 2px #423024);
	margin-top: -1em;
}
#toTop{  
	position:absolute;
	bottom:100%;
	left:50%;
	-webkit-clip-path: polygon(0 100%, 0 .5em, 50% 0, 100% .5em, 100% 100%);
	clip-path: polygon(0 100%, 0 .5em, 50% 0, 100% .5em, 100% 100%);
	translate:-50%;
	background:#423024;
	padding:.15em .3em 0;
	color:#614639;
	text-decoration:none;
	font-size:2.5em;
	scale:0.8;
	transform-origin:bottom;
}


/* only for pluxthemes */
form.kzSkinSelect{margin-top:-2.5em;}
/* page social */
.s-footer__social {
  display:flex;
  justify-content:end;
  list-style:none;
  gap:.5em;
}
.s-footer__social a {
  color:inherit;
}

/* fin pluxthemes */

/* formulaire plxMySearch */
.searchfields {
  margin:.5em auto;
  max-width:max-content;
}
.searchfields p {
  display:flex;
  background: linear-gradient(to bottom,#F4A508 50%, #C69F4F 50%);
  clip-path: polygon(100% -3px, calc(100% - 5px) 50%, 100% 100%, 100% 100vh,0 100vh, 0 100%, 5px 50%, 0 -3px);
  padding:4px 5px;
  width:max-content;
  box-shadow:inset 0 0 0 5px #fff1;
}
#top .searchfields:focus-within {
  filter:drop-shadow(1px 1px blue) drop-shadow(-1px -1px blue) drop-shadow(1px -1px blue) drop-shadow(-1px 1px blue) drop-shadow(0 0 1px)
}
#top .searchfields p input {
  border:none;
  padding:.2em 8px;
  margin: 0;
  color:inherit;
  outline:none;
}
#top .searchfields [type="text"] {
  clip-path: polygon(100% -3px, 100% 50%, 100% 100%, 100% 100vh,0 100vh, 0 100%, 5px 50%, 0 0);
}
#top .searchfields [type="submit"] {
 clip-path: polygon(100% -3px, calc(100% - 5px) 50%, 100% 100%, 100% 100vh,0 100vh, 0 100%, 0 50%, 0 -3px);
}

#static-page-recherche {
  max-width:600px;
  margin:auto;
}
.search_results>p:first-of-type {
  text-align:center;
}
.search_articles ~ div p {
  margin-left:-2em;
   clip-path: polygon(100% -3px, calc(100% - 5px) 50%, 100% 100%, 100% 100vh,0 100vh, 0 100%, 5px 50%, 0 -3px);
  background:#fff4;
}
.search_articles ~ div ol {
  display:grid;
  list-style:none;
  color:#DFAA40;
  line-height:1.4;
  margin-bottom:.5em;
}
.search_articles ~ div ol li {
  display:flex;
  gap:.6em;
  font-size:.6em;
  align-items:center;
  justify-content: space-between;
  padding-inline-end: 3em
}
.search_articles ~ div a {
  color:#624739;
  text-decoration:none;
  order:-1;
  font-size:1.4em;
}