/*  Personalisation du theme caravane-du-ponant.fr */

@font-face {
  font-family: chewie;
  src: url('../fonts/ChewieDEMO-Regular.otf');
}
@font-face {
  font-family: gondola;
  src: url('../fonts/GondolaSD.ttf');
}
@font-face {
  font-family: insula;
  src: url('../fonts/insula.ttf');
}

body {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

body * {
  background-color: white;
}

a, a:hover {
  color: #034f84;
}

h1,h2,h3{
  font-family: insula;
  padding: 0;
  margin: 0;
}

h3, h4{
  font-family: chewie;
}

h1 a, h2 a, h3 a, h1 a:hover, h2 a:hover, h3 a:hover {
  color: rgb(157, 37, 34);
  text-decoration: none;
}

p, li, span, figcaption, dl * {
  font-family: chewie;
}

iframe {
  width: 560px;
  height: 360px;
}

/* Entete */

header.header ul.menu li{
  font-family: "Insula", serif;
  display: inline-block;
  padding: .2em 1.5em;
  margin-bottom: .1em;
  background: url(../img/fond-menu.jpg);
  --m:
    conic-gradient(from   45deg at left,  #0000,#000 30deg 59deg,#0000 90deg) left /91% 15px repeat-y,
    conic-gradient(from -135deg at right, #0000,#000 30deg 59deg,#0000 90deg) right /90% 15px repeat-y;
  -webkit-mask: var(--m);
          mask: var(--m);
}

header.header ul.menu li:hover {
  transform: scale(1.02);
  background: white;
}

header.header ul.menu li a {
  color: black!important;
  background: none;
  font-size: 1.8em;
}

header.header ul.menu li a:hover {
  text-decoration: none;
}

h1.maintitle{
  width: 100%;
}

h1.maintitle a{
  font: small-caps 7rem/8rem gondola ;
  color: black;
/*  clip-path: polygon(0 0, 100% 0, 100% 70px, 0 70px); */
}

h1.maintitle img#logo_lcdp{
  height: 100px;
  margin-right: 30px;
}

#logo_lcdp:hover {
  animation: rotate_logo 3s linear infinite alternate;
}
@keyframes rotate_logo {
  from {transform: rotate(0deg);}
  to {transform: rotate(-5deg);}
}


/* Article */

article.article header {
  margin-top: 1.5rem;
}

article.article h1, article.article h2, article.article h3 {
    color: rgb(157, 37, 34);
}

article.article header h2 {
  font-size: 3rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.contenu_article h3{
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contenu_article h1, .contenu_article h2 {
  margin: 6rem 0 3rem 0;
} 

.contenu_article p+h1, .contenu_article p+h2, .contenu_article p+h3 {
  margin-top: 3rem;
} 

div.contenu_article p {
  text-align: justify;
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
}

div.contenu_article p span{
  font-style: italic;
  font-weight: bold;
  color: rgb(157, 37, 34);
}
div.contenu_article p span.plus{
  font-style: normal;
  font-weight: normal;
}

div.contenu_article li{
  font-size: 1.7rem;
}

div.contenu_article img{
  margin-top: 10px;
  padding: 3px;
  border: 1px solid silver;
  box-shadow: 2px 2px 2px #888;
}

div.contenu_article figure {
  display: inline-block;
  width: 406px;
  margin-right: 10px;
}

div.contenu_article figure.image-normale {
  width: 100%;
}

div.contenu_article figcaption {
  font-style: italic;
  font-size: .9em;
}

div.contenu_article div.fiche::after {
  content: "";
  clear: both;
  display: table;
}

div.contenu_article div.fiche img {
  float: right;
  max-height: 400px;
  margin-left: 20px;
}

div.contenu_article div.fiche h3 {
  text-decoration: underline;
}

p.more {
  font-size: 1.6rem!important;
  margin: 0!important;
}

p.more a{
  color: rgb(157, 37, 34);
}

i.arrow {
  width: 0.7em;
  height: 0.7em;
  border-right: 0.2em solid rgb(157, 37, 34);
  border-top: 0.2em solid rgb(157, 37, 34);
  transform: rotate(45deg);
  display: inline-block;
  font-style: normal;
  position: relative;
  margin-left: 1rem;
}

time {
  font-size: 1.2rem;
  color: silver;
}

span.del {
  text-decoration-line: line-through;
}

.video {
  display: block;
  text-align: center;
}

/* Page contact */

#form_contact {
  margin: 1rem!important;
}

.capcha-word{
  background-color: rgba(3, 79, 132,.15);
  font-weight: bold;
  padding: .1rem .5rem;
}


/* Page Calendrier */

#calendrier h3 {
  font-size: 1.7em;
  margin: 2em 0 1em 0;
}

#calendrier h4 {
  font-size: 1.5em;
  font-weight: bold;
  color: rgb(157, 37, 34);
}

#calendrier img {
  max-width: 300px;
  display: block;
}

div#calendrier dl * {
  text-align: justify;
  font-size: 1.8rem;
}

dl.avenir dt {
  color: rgb(157,37,34);
}

div#calendrier dt {
    margin: 0 .5rem 0 0;
    padding: 0;
    float: left;
    font-weight: bold;
    line-height: 2rem;
    font-size: 1.3em;
}

div#calendrier dd {
    margin: 0 0 2.5rem 0;
    padding: 0;
    line-height: 2rem;
}

div#calendrier dd::before {
    content: ' : ';
}


/* Pied de page */

footer.footer {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 1.2em;
  background-color: #eee;
}

footer.footer p{
  margin: 0;
  text-align: center;
  margin: 1em auto;
  background-color: #eee;
}

footer.footer p a {
  background-color: #eee;
}

footer.footer p#web{
  border: 1px solid gray;
  padding: 0 1.5em;
  width: max-content;
  margin: 1em auto;
  background-color: white;
}

.pagination {
  margin-top: 1rem;
}

.pagination span::first-letter, .pagination a::first-letter {
    text-transform: uppercase;
}

.pagination a:hover {
    background-color: #3a6c96;
    color: #fff;
    text-decoration: none;
}

 .pagination a {
    background-color: #258fd6;
    border-radius: .3rem;
    color: #fff;
}

.pagination span, .pagination a{
  display: inline-block;
  min-width: 3rem;
  padding: .8rem .7rem;
}

.p_prev, .p_next, .p_prev a, .p_next a{
  min-width: 10rem;
}

.p_current {
    border-radius: .3rem;
    border: 1px solid silver;
}

/* En fonction de la taille de l'écran */

@media (max-width: 1250px) {
  body {margin: 20px;}
  h1.maintitle a {font: small-caps 6.4rem/7rem gondola ;}

@media (max-width: 1000px) {
  h1.maintitle a {font: small-caps 5.5rem/6rem gondola ;}
}

@media (max-width: 900px) {
  h1.maintitle a {font: small-caps 4.3rem/5rem gondola;}
  header.header ul.menu li a {font-size: 1.6em;}
}

@media (max-width: 750px) {
  h1.maintitle a {font: small-caps 3.6rem/4.5rem gondola;}
  header.header ul.menu li a {font-size: 1.4em;}
}

@media (max-width: 640px) {
  h1.maintitle * {display: block; margin-bottom:15px; width:100%; text-align:center;}
  h1.maintitle a {clip-path:none;}
  ul.menu {text-align:center; width:100%;}
  article.article header h2 {font-size:2.5rem;}
}