/*
Theme Name: Croix-Rouge Jeunesse
Theme URI:  https://www.media-animation.be/
Description: Custom Wordpress theme for Croix-Rouge Jeunesse 2019 (BE).
Author: Media-Animation.
Author URI: https://www.media-animation.be/-Agence-de-communication-.html
Version: 0.1
License: GNU General Public License
Tags: featured-images, footer-widgets
Text Domain: crj
*/

/* NORMALIZE */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  font-size: 1.3em;
}

/* Sections
     ========================================================================== */

/**
   * Remove the margin in all browsers.
   */

@font-face {
  font-family: "Sequel-Regular";
  src: url("./assets/fonts/Sequel-Regular.eot");
  /* IE9 Compat Modes */
  src: url("./assets/fonts/Sequel-Regular.eot?#iefix") format("embedded-opentype"),
    /* IE6-IE8 */
    url("./assets/fonts/Sequel-Regular.otf") format("opentype"),
    /* Open Type Font */
    url("./assets/fonts/Sequel-Regular.svg") format("svg"),
    /* Legacy iOS */
    url("./assets/fonts/Sequel-Regular.ttf") format("truetype"),
    /* Safari, Android, iOS */
    url("./assets/fonts/Sequel-Regular.woff") format("woff"),
    /* Modern Browsers */
    url("./assets/fonts/Sequel-Regular.woff2") format("woff2");
  /* Modern Browsers */
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
}

/**
   * Render the `main` element consistently in IE.
   */

main {
  display: block;
}

a {
  color: #FBBD3E;
  text-decoration: none;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
p {
  font-size: 16px;
  margin: 15px 0;
  line-height: 1.4em;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
  letter-spacing: 3.7px;

}

header#header {
  border-bottom: 4px solid #FF2400;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 108px;
}

/* Grouping content
     ========================================================================== */

/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
     ========================================================================== */

/**
   * Remove the gray background on active links in IE 10.
   */

a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */

b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
   * Add the correct font size in all browsers.
   */

small {
  font-size: 80%;
}

/**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
     ========================================================================== */

/**
   * Remove the border on images inside links in IE 10.
   */

img {
  border-style: none;
}

/* Forms
     ========================================================================== */

/**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
   * Correct the inability to style clickable types in iOS and Safari.
   */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
   * Remove the inner border and padding in Firefox.
   */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */

legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
  text-transform: uppercase;
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */

progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */

textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */

[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
     ========================================================================== */

/*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */

details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */

summary {
  display: list-item;
}

/* Misc
     ========================================================================== */

/**
   * Add the correct display in IE 10+.
   */

template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */

[hidden] {
  display: none;
}

/*GENERATED CLASSES  */
.excerpt h4 {
  margin-block-end: 1.1em;
}

.excerpt h4 a {
  text-decoration: none;

  text-transform: uppercase;
  font-size: 1.2em;
  font-weight: 400;
}

.excerpt .date {
  font-size: 0.8em;
}

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

.type-page,
.single .type-post,
.crj_activites-template-default .crj-content {
  max-width: 700px;
}

/*END WP GENERATED CLASSES */

html,
body {
  height: calc(100% - 32px);
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/*#container{ background-color: #f0f0f0;}*/
#container,
#footer,
#header {
  margin: 0 auto;
  width: 100%;
}

div#content>div {
  /*max-width: 1300px;*/
  margin: auto;
  /*justify-content: center;*/
}

.qui {
  max-width: 1200px;
}

.list-crj_activite {
  display: flex;
  flex-flow: row wrap;
  flex-basis: 100%;
  justify-content: center;
}

div#content>div.discover,
div#content>div.aide {
  max-width: 100%;
  padding: 30px 0;
}

.home-main .category-actualite {
  text-align: center;
  position: relative;
}

.home-main .category-actualite .text {
  position: relative;
  top: 0%;
  width: 100%;
  text-align: center;
  height: 100%;
  color:#000;
  vertical-align: middle;
}

.home-main .category-actualite .text a {
  color: #000;
  text-decoration: none;
}

.home-main .category-actualite .text h1 {
  padding-top: 10%;
  font-style: normal;
  padding: 0 0 20px;
}
@media (min-width:920px){
  .home-main .category-actualite .text h1 {padding: 0 15% 20px; }}
.home-main .category-actualite .text p {
  margin: 0;
  padding:20px;
  background: transparent;
}

#map,
#map-acteurs,
#map-activites,
#map-all-acteurs {
  /*width: 1200px;*/
  height: calc(100vw * 0.33);
  max-width: 100%;
  margin: auto;
}

.home-div {
  position: relative;
}

.home .titre-central {
  color: #000;
}

.home .titre-central h1 a {
  text-decoration: none;
}

.crj-contact-form {
  margin: auto;
  width: 300px;
  max-width: 100%;
}

.crj-contact-form label,
.crj-contact-form input,
.crj-contact-form select {
  display: block;
  padding: 0;
  margin: 0;
}

.crj-div-icon .number {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: #89849b;
  position: absolute;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -20px 0 0 -20px;
  -webkit-animation-name: bounce;
  -moz-animation-name: bounce;
  -o-animation-name: bounce;
  -ms-animation-name: bounce;
  animation-name: bounce;
  -webkit-animation-fill-mode: both;
  -moz-animation-fill-mode: both;
  -o-animation-fill-mode: both;
  -ms-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-duration: 1s;
  -moz-animation-duration: 1s;
  -o-animation-duration: 1s;
  -ms-animation-duration: 1s;
  animation-duration: 1s;
}

.crj-div-icon .number.acteur11 {
  background: red;
}

.crj-div-icon .number.acteur5 {
  background: blue;
}

@keyframes bounce {
  0% {
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-transform: translateY(-2000px) rotate(-45deg);
    -moz-transform: translateY(-2000px) rotate(-45deg);
    -o-transform: translateY(-2000px) rotate(-45deg);
    -ms-transform: translateY(-2000px) rotate(-45deg);
    transform: translateY(-2000px) rotate(-45deg);
  }

  60% {
    opacity: 1;
    -ms-filter: none;
    filter: none;
    -webkit-transform: translateY(30px) rotate(-45deg);
    -moz-transform: translateY(30px) rotate(-45deg);
    -o-transform: translateY(30px) rotate(-45deg);
    -ms-transform: translateY(30px) rotate(-45deg);
    transform: translateY(30px) rotate(-45deg);
  }

  80% {
    -webkit-transform: translateY(-10px) rotate(-45deg);
    -moz-transform: translateY(-10px) rotate(-45deg);
    -o-transform: translateY(-10px) rotate(-45deg);
    -ms-transform: translateY(-10px) rotate(-45deg);
    transform: translateY(-10px) rotate(-45deg);
  }

  100% {
    -webkit-transform: translateY(0) rotate(-45deg);
    -moz-transform: translateY(0) rotate(-45deg);
    -o-transform: translateY(0) rotate(-45deg);
    -ms-transform: translateY(0) rotate(-45deg);
    transform: translateY(0) rotate(-45deg);
  }
}

.crj-div-icon .number {
  position: relative;
  top: -19px;
  font-size: 12px;
  width: 30px;
  text-align: center;
  left: 18px;
}

.crj-div-icon img {
  opacity: 0;
}

.excerpt .activite-meta {
  display: block;
}

.activite-meta {
  display: inline-block;
}

.show-all-container {
  flex-basis: 100%;
}

.show-all {
  background-color: #ff2400;
  color: white;
  display: block;
  text-align: center;
  max-width: max-content;
}

.discover {
  background-image: url('assets/map.png');
  margin: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.discover a {
  margin-top: 40px;
  margin-bottom: 40px;
  display: block;
  font-weight: bolder;
  color: #fff;
  font-size: 1.4em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  -webkit-appearance: none;
  margin: 40px auto;
  border: none;
  overflow: visible;
  padding: 0 60px;
  /* Property is ignored due to the display
  vertical-align: middle; */
  line-height: 30px;
  min-height: 30px;
  text-decoration: none;
  padding: 10px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  border-radius: 8px;
  background-color: #ff2400;
  max-width: 80%;
}
/*
@media ( min-width:1024){
  padding: 20px 40px;
  font-size: 16px;
}
*/
.aide {
  background-color: rgb(251, 189, 62);
  color: black;
  margin: 0 0 -5px;
  padding: 30px 0;
}

.aide a {
  padding-top: 40px;
  padding-bottom: 40px;
  display: block;
  font-weight: 700;
  color: white;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  text-align: center;
  width: max-content;
  margin: auto;
}

/*.underlined::after,
.show-all::after, */
.single-crj_acteurs .activites>h2::after,
.single-crj_acteurs .futur-activites>h2::after,
.home-articles>h2::after,
.home-activites>h2::after,
.home-qui .qui>h2::after,
.type-page h1::after,
.category-actualite h1:after,
.single .crj-content.crj_activites h1:after {
  content: url('assets/line.svg');
  width: 7em;
  display: block;
  position: absolute;
  left: calc(50% - 3.5em);
  padding: 10px 0 0 0;

}

.single-crj_acteurs .activites>h2,
.single-crj_acteurs .futur-activites>h2,
.home-articles>h2,
.home-activites>h2,
.home-qui .qui>h2,
.type-crj_acteurs h2,
.type-page h1 {
  position: relative;
  text-align: center;
  padding-bottom: 30px;
}

.underlined,
.show-all {
  position: relative;
  -webkit-appearance: none;
  margin: 40px auto;
  border: none;
  overflow: visible;
  padding: 0 60px;
  vertical-align: middle;
  line-height: 30px;
  min-height: 30px;
  text-decoration: none;
  padding: 14px 40px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  border-radius: 8px;
}

.show-all svg {
  width: auto;
  height: 10px;
  position: absolute;
  left: calc(50% - 20px);
  bottom: 0;
  display: block;
}

.checkboxdiv {
  width: 100%;
  max-width: 300px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.checkboxdiv input[type="checkbox"] {
  display: none;
}

.checkbox-bar {
  width: 100%;
  height: 30px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 30px;
  cursor: pointer;
}

.checkbox-bar-slider {
  position: absolute;
  top: -10px;
  /* il faut monter de la moitié de 50px(ma taille) - 30px(le parent) */
  transition: left .5s ease-in-out;
  background-color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  -webkit-box-shadow: 2px 2px 5px 0px rgba(189, 189, 189, 1);
  -moz-box-shadow: 2px 2px 5px 0px rgba(189, 189, 189, 1);
  box-shadow: 2px 2px 5px 0px rgba(189, 189, 189, 1);
  border: 1px solid #AAA;
  box-sizing: border-box;
  /* pour pas ajouter le border en plus dans le calcul d'en haut */
}

input~.checkbox-bar {
  transition: background-color .5s;
  background-color: blue;
}

input:checked~.checkbox-bar {
  background-color: red;
  transition: background-color .5s;
}

input~.checkbox-bar>.checkbox-bar-slider {
  left: 0;
}

input:checked~.checkbox-bar>.checkbox-bar-slider {
  left: calc(100% - 50px);
}

.checkbox-text {
  display: inline-block;
  text-align: center;
  vertical-align: center;
}

input~.checkbox-bar>.checkbox-text:nth-child(2) {
  padding-right: 0px;
}

input:checked~.checkbox-bar>.checkbox-text:nth-child(2) {
  padding-right: 60px;
}

input~.checkbox-bar>.checkbox-text:first-child {
  padding-left: 60px;
}

input:checked~.checkbox-bar>.checkbox-text:first-child {
  padding-left: 0px;
}

input~.checkbox-bar>.checkbox-text:nth-child(2),
input:checked~.checkbox-bar>.checkbox-text:first-child {
  flex-basis: 90%;
  transition: all .5s;
  font-size: 1em;
  color: rgba(255, 255, 255, 1);
  white-space: nowrap;
}

input~.checkbox-bar>.checkbox-text:first-child,
input:checked~.checkbox-bar>.checkbox-text:nth-child(2) {
  color: rgba(255, 255, 255, .7);
  flex-basis: 10%;
  font-size: .8em;
  transition: all .5s;
  white-space: nowrap;
}

#primary-menu > ul > li{ margin:20px 0;}
#primary-menu ul.sub-menu, #primary-menu ul.sub-menu ul.sub-menu {
  padding: 5px 0 20px 0;
  margin: 0 15px 0 0;
}

#primary-menu ul.sub-menu li:before, #primary-menu ul.sub-menu ul.sub-menu li:before {
  content: '';
  position: absolute;
}

#primary-menu .sub-menu a:hover {
  color: #FBBD3E;
}

#primary-menu .sub-menu a {
  text-transform: initial;
}
@media(min-width:1400px){ #primary-menu .sub-menu a{display: block;}}
.home .has-post-thumbnail IMG {
  max-height: inherit;
}

.has-post-thumbnail .has-post-thumbnail IMG {
  max-width: 354px;
  width: auto;
  margin: auto;
  text-align: center;
  justify-content: center;
  display: flex;
}

.extra {
  position: absolute;
  height: 30px;
  background-color: #FF2400;
  z-index: 401;
  right: 0;
  color: #fff;
  padding: 5px 15px 0;
  font-size: 15px;
}

.custom-logo {
  max-width: 300px;
  height: auto;
  width:100%;
  min-height: 30px;}

.wp-block-image img {
  height: auto;
}
div.excerpt header {
  position: relative;
  width: 100%
}

div.excerpt header img {
  width: 100%;
  height: auto;
}

div.excerpt header .excerpt-title {
  box-sizing: border-box;
  padding: 10px 15px 0 15px;
  /*display: flex;*/
}

div.excerpt header .excerpt-title:hover {
  /*background-color: rgba(1, 0, 60, 0.3);*/
  cursor: pointer;
}

.filter-form FORM {
  display: flex;
  flex-wrap: wrap;
}
@media (min-width:600px) and (max-width:894){
  div.excerpt header{
  position: relative;
  width: auto;
  flex-basis: 40%;
  max-width: 400px;
  background-color: #e4e4e4;}
  div.excerpt header img {
    width: auto;
    height: auto;
    max-width: 300px;
}
}

.filter-form FORM INPUT, .filter-form FORM SELECT{ width: 100%; margin: 5px 0;}
.filter-form FORM SELECT{ padding:3px; font-size:13px;}
@media (min-width:920px){ 
.filter-form FORM INPUT, .filter-form FORM SELECT{ width: 43%; margin:10px; }
.filter-form FORM SELECT{ padding:8px 10px; font-size:13px;}
.filter-form FORM legend{ width: 100%;
                      margin: 0 10px 20px; 
                      border-bottom: 3px solid #fff;
                      padding: 0 0 10px; color:#fff;}
}
input,
select {
  margin: 0 10px;
  height: fit-content;
  padding: 4px 10px;
  font-size: 0.9em;
}

/*div.excerpt.type-crj_activites header .excerpt-title {
  height: 99%;
  background-color: rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  padding: 10% 30px;
  color: white;
  margin: 0 0 3px;
}*/

div.excerpt.type-crj_activites header .excerpt-title a {
  color: #FBBD3E;
}

div#content>.type-page a {
  color: #fbbd3e;
  text-decoration: none;
}

div#content>.type-page {
  font-size: 16px;
  padding: 0 0 5% 0;
}

.home-articles>h2,
.home-activites>h2,
.type-page h1,
.category-actualite h1,
.crj-content.type-crj_acteurs .activites>h2,
.single .crj-content.crj_activites h1 {
  color: #ff2400;
  flex-basis: 100%;
  justify-self: center;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 1.3em;
  padding: 10px 0 40px;
}

@media (min-width:920px){
.home-articles>h2,
.home-activites>h2,
.type-page h1,
.category-actualite h1,
.crj-content.type-crj_acteurs .activites>h2,
.single .crj-content.crj_activites h1 {
  font-size: 1.6em;}
}

.home-div {
  display: flex;
  justify-content: space-evenly;
  /*flex-direction: column;*/
  flex-wrap:wrap;
}

.logo-menu-opener svg {
  width: 50px;
  height: 50px;
  padding: 30px 20px 0 0;
}

.logo-menu-opener {
  display: flex;
  justify-content: space-between;
  align-content: start;
  flex-basis: 100%;
}

@media (min-width: 1400px) {
  .logo-menu-opener {
    flex-basis: initial;
  }
}

#header {
  position: relative;
}

#primary-menu {
  display: none;
  background-color: rgb(1, 0, 60);
  color: white;
  z-index: 1000;
}

#primary-menu .sub {
  font-size: 0.7em;
  max-width: 260px;
  display: block;
  color: #000;
}

#primary-menu a {
  color: white;
  text-transform: uppercase;
  font-size: 0.9em;
  text-decoration: none;
  
} 
@media (min-width:1400px){
  #primary-menu a {
    white-space: nowrap;
  }
}

#primary-menu.opened {
  display: block;
  position: absolute;
  top: 0;
  /* la taille du logo */
  width: 100%;
  min-height: 100vh;
  bottom:0;
  z-index:10600;
}
@media(min-height: 400px){
  #primary-menu.opened {
    max-height: 100vh;
   
  }
}
.thumb{ text-align:center;}
#primary-menu.opened .menu-menu-1-container #menu-menu-1 > ul > li a{ margin:20px; display: block;}

#primary-menu #menu-close {
  float: right;
  padding: 20px;
}

.menu-menu-1-container {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}

.menu-menu-1-container>ul {
  width: max-content;
  padding-inline-start: 0px;
}

.menu-item {
  text-align: left;
  list-style: none;
  cursor: pointer;
  display: grid;
  margin: 0 0 0 8px;
}

@media (min-width:1400px){
  .menu-item{ display: initial; text-align:center;  margin: 0 0;}
}
.menu-item a {
  padding: 0 1em;
  margin-bottom: 10px;
}

li.current_page_ancestor,
li.current-menu-item,
li.current-menu-item:hover {
  color: #FF2400;
}

li.current_page_ancestor .sub-menu,
li.current-menu-item .sub-menu,
li.current-menu-item:hover .sub-menu {
  color: #000;
}

.qui-sommes-nous-list {
  display: flex;
  flex-flow: row wrap;
}

.home .qui-sommes-nous-child {
  padding: 0;
}

.qui-sommes-nous-child {
  flex-basis: 90%;
  padding: 0 20px;
  text-align: center;
}
@media (min-width:920px){
  .qui-sommes-nous-child {
    flex-basis: 40%;
    padding: 0 20px;
    text-align: center;
  }
}
@media (min-width:1200px){
  .qui-sommes-nous-child {
    flex-basis:22%;
    padding: 0 20px;
    text-align: center;
  }
}
.qui-sommes-nous-child .thumb {
  /*background-color: #fff;
  border-radius: 50%;*/
  overflow: hidden;
}

.home #content {
  display: initial;
}

.category-actualite #content {
  display: flex;
}

#content {
  padding: 20px;
}
@media( min-width:1800px){
  #content {
    padding: 40px 0px;
  }
}
.qui-sommes-nous-child h2 a {
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  display: block;
  padding: 0 20px;
}

.home .qui-sommes-nous-child h2 a {
  color: #000;
  padding: 0;
  min-height: 30px;
}

@media (min-width:1400px) {
  .action-toggle {
    display: none;
  }

  #primary-menu {
    display: block;
    background-color: inherit;
    color: inherit;
  }

  #primary-menu a {

    color: inherit;
  }

  .menu-menu-1-container>ul {
    /*width: 100%;*/
    display: flex;
    justify-content: space-around;
  }

}

.home-main img {
  max-width: 100%;
  height: auto;
}

.activite-meta-dates {
  width: max-content;
  text-align: center;
}

.excerpt p {
  margin: 15px;
}

.crj_activites aside.meta-info {
  flex-basis: 100%;
  font-size: 0.8em;
  color: #666666;
}



body.single-crj_activites .crj-content .content {
  flex-basis: 100%;
}

.activite-meta-dates .activite-meta,
.date {
  display: inline;
  background-color: #ff2400;
  padding: 6px 10px;
  color: #fff;
  cursor: default;
}

.date-actualite {
  text-align: right;
  font-size: 12px;
  color: #666666;
}

.excerpt.type-crj_activites,
.excerpt.type-post, .excerpt.crj_acteur {
  border: solid 1px #e2e2e2;
  background-color: #fff;
  margin: 10px 0;
  box-sizing: border-box;
  /* (1200(width page) / 2) - (2*10 (margin) ) */
}
.home-activites .excerpt{ margin: 10px 20px;}
@media (min-width:920px){
  .excerpt.type-crj_activites,
.excerpt.type-post, .excerpt.crj_acteur{  margin: 10px; max-width: 400px;}
}

.aide a {
  background-image: url('assets/fleche2.svg'), url('assets/coeur.svg');
  background-repeat: no-repeat;
  background-position: 4% 88%, 100% 30%;
  padding: 40px;
  background-size: 26px 30px, 40px 40px;
  max-width: 70%;
}

@keyframes svgsize {
  0% {
    background-size: 26px 30px, 40px 40px;
    ;
  }

  50% {
    background-size: 26px 30px, 55px 55px;
  }
}

.aide a:hover {
  animation-name: svgsize;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

div#content>div.filter-form {
  margin: 0 auto 20px;
    padding: 20px;
    background-color: #FBBD3E;
    max-width: 1620px;

}
.filter-form FORM INPUT{ border: none;}
.svg-icon svg path {
  fill: #fff;
}

/*
.svg-icon svg:hover {
  animation-name: balance;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.svg-icon svg:hover path {
  animation-name: icon-color;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;

}

@keyframes icon-color {
  0% {
    fill: white;
  }

  50% {
    fill: red;
  }
}

@keyframes balance {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(45deg);
  }

  50% {
    transform: rotate(-45deg);
  }

  75% {
    transform: rotate(45deg);
  }
}
*/

#popup {
  display: none;
  position: fixed;
  top: 0px;
  left: 0px;
  width: calc(100vw - 25px);
  height: calc(100vh - 15px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding-top: 15px;
}

#popup.opened {
  display: block;

}

#popup .action-toggle {
  display: block;
  float: right;
  margin: 0 20px;
}

.popup-content {
  padding-top: 20px;
  width: 80%;
  margin: auto;
  background-color: white;
}

.popup-content-wrapper {
  margin: 10px;
  max-height: calc(100vh - 30px);
  overflow: scroll;
}

.list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

#footer-asides>ul li.widget_custom_html {
  background-color: #01003C;
  color: white;
}

#footer-asides>ul {
  margin: 0;
  padding: 0;
}

#footer-asides>ul li.widget_custom_html a {
  color: #FBBD3E;
  text-decoration: none;
  font-size: 1.2em;
  font-style: italic;
}

#footer-asides {
  max-width: 100%;
  background-color: #01003C;
  padding: 0 0 20px;
}

#footer-asides li {
  text-align: center;
  max-width: 600px;
  margin: auto;
}

#footer-asides li {
  list-style: none;
}

.social-widget {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 0 20px;
  padding: 10px;
}
@media (min-width:920px){
  .social-widget {
    padding: 5%;
  }
}
.social-widget a {
  display: block;
  flex-basis: 100%;
}

.social-widget a.svg-icon {
  flex: 0 1 20%;
}

.widget-facebook,
.widget-twitter {
  max-width: 100px;
}

#site-realisation {
  font-size: 0.8em;
  text-align: center;
}

#site-realisation a {
  text-decoration: none;
  color: #01003C;
}

.widget-newsletter {
  background-image: url('assets/fleche.svg');
  background-repeat: no-repeat;
  background-position: 75% 100%;
  background-size: 21px 25px;
}

@media (min-width:1024px) {

  .social-widget a,
  .social-widget a.svg-icon {
    flex-basis: 33.33%;
  }

  .widget-newsletter {
    background-position: 100% 100%;
  }

  .widget-newsletter:hover {

    animation: arrow-nw .7s linear 0s infinite;
  }
}

#sidebar-footer h4 {
  font-size: 1.6em;
  padding: 20px 0;
  margin: auto;
  margin-top: 5px;
  width: max-content;
}
@media (min-width:920px){
  #sidebar-footer h4 {
    font-size: 1.8em;}
}
#sidebar-footer h4 {
  position: relative;
}

#sidebar-footer h4::after {
  background-image: url('assets/line-red.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 40px;
  content: ' ';
  width: 3em;
  display: block;
  position: absolute;
  left: calc(50% - 1.5em);
}

#sidebar-footer .widget-newsletter::after,
#sidebar-footer .widget-newsletter::before {
  content: ' ';
  width: 5em;
  display: block;
  transform: rotate(-5deg);
  margin: 10px auto;
}

#sidebar-footer .widget-newsletter::after {
  width: 5em;
  border-bottom: 6px solid #FBBD3E;
}

#sidebar-footer .widget-newsletter::before {
  width: 3em;
  border-top: 6px solid #FBBD3E;
}

@media (min-width:1024px) {
  .home-div {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  a.show-all {
    text-align: center;
  }
}
  @media (min-width:1400px) {
  .menu-item-has-children {
    position: relative;
  }

  .menu-item-has-children .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    text-align: left;
    background-color: white;
  }
  
  .menu-item-has-children .sub-menu .sub-menu {
	display: none;
    position: absolute;
    left: 0;
	top: -5px;
    text-align: left;
    background-color: white;
  }

  .menu-item-has-children .sub-menu .menu-item {
    text-align: left;
  }

  .menu-item-has-children:hover .sub-menu {
    display: block;
  }
  .menu-item-has-children:hover .sub-menu .sub-menu {
    display: none;
	bborder: 3px solid #ff2400 !important;
  }
  .menu-item-has-children:hover .sub-menu .sub-menu a {
    padding-left: 0px !important;
    padding-right: 20px !important;
  }
  .menu-item-has-children .menu-item-has-children {
    display: block !important;
  }
  
  .menu-item-has-children > a:after {
   content: ' ▾';
   margin-left: 5px;
   display: inline-block;
   transition: .3s all;
  }
  
  .menu-item-has-children .menu-item-has-children:hover > a:after {
   content: ' ▾';
   margin-left: 5px;
   display: inline-block;
     -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
  }
  .menu-item-has-children .menu-item-has-children:hover .sub-menu {
    display: block !important;
	margin-left: 100% !important;
	padding-bottom: 0 !important;
  }
}

@keyframes arrow-nw {
  0% {
    background-position: 100% 100%;
  }

  50% {
    background-position: 90% 90%;
  }

}

.home-qui {
  background-color: #f0f0f0;
  color: #000;
  text-align: center;

}

.home-qui ul {
  margin: 30px 0;
  display: flex;
}

.home-qui li {
  list-style: none;
  max-width: 600px;
  padding: 20px 30px;
}

.home-qui li::before {
  content: ' ';
  display: block;
  background-color: #fff;
  width: 100px;
  height: 100px;
  border-radius: calc(125px / 2);
  margin: auto;
  margin: 30px auto;
}

.home-div {
  overflow: hidden;
  font-size: 0.9em;
}

.meta-info h3 a {
  text-transform: uppercase;
  text-decoration: none;
  font-size: 20px;
}

.meta-info .date {
  text-align: left;
  margin: 0 10px 20px 0;
  font-size: 12px;
  padding: 4px 0;
  text-transform: uppercase;
}

.crj_activites-template-default .meta-info .date{ padding:4px 8px;}

.meta-info .adresse,
.meta-info .porteur-projet {
  font-size: 12px;
  color: #666666;
}

.meta-info .adresse:before {
  content: url('assets/locate.png');
  display: inline-block;
  vertical-align: middle;
}

.meta-info .porteur-projet:before {
  content: url('assets/star.png');
  display: inline-block;
  vertical-align: middle;
}

.meta-info span.author {
  font-size: 0.9em;
  margin: 20px 0 0 0;
  display: block;
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.crj-content.type-crj_acteurs,
.crj-content.type-crj_activites {
  /*display: grid;
  grid-template-columns: 340px 1fr; */
  font-size: 0.8em;
  line-height: 1.5em;
}

/*
.crj-content.type-crj_acteurs .post-content {
  grid-column: 1;
  grid-row: 1/6;
  line-height: 1.5em;
  padding: 0 40px 0 0;
}

.crj-content.type-crj_acteurs .adresse {
  grid-column: 1;
  grid-row: 1;
}

.crj-content.type-crj_acteurs .activites {
  grid-column: 2;
  grid-row: 1 / 6;
}
.crj-content.type-crj_activites .post-content {
  grid-column: 2;
  grid-row: 1;
}

.crj-content.type-crj_activites aside {
  grid-column: 1;
  grid-row: 1;
}

.crj-content.type-crj_activites footer {
  grid-column: 1/3;
  grid-row: 2;
  text-align: center;
}
*/
.crj-content.type-crj_acteurs aside.adresse {
  border-top: solid 1px;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid;
}

.crj-content.type-crj_acteurs .activites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  flex-basis: 100%;
}

.crj-content.type-crj_acteurs .activites>h2 {
  flex-basis: 100%;
  text-align: center;
}

.crj-content.type-crj_acteurs .activites .navigation {
  flex-basis: 100%;
  text-align: center;
}

.crj_acteur.excerpt {
  width: 300px;
  max-width: 100%;
}

div.excerpt.crj-acteur header img {
  width: auto;
  height: auto;
  max-height: 200px;
  min-height: 200px;
}
.crj-content.type-crj_acteurs .activites>h2::after {
  content: url(assets/line.svg);
  width: 7em;
  display: block;
  position: absolute;
  left: calc(50% - 3.5em);
  padding: 10px 0 0 0;
}

.crj-content.type-crj_acteurs .post-content IMG {
  max-width: 140px;
  margin: auto;
}
.crj_acteur .thumb{ height:150px;}
div.excerpt.crj_acteurs IMG{ max-height: 140px; width: auto;}

.crj-content.type-crj_acteurs .activites .type-crj_activites {
  max-width: 360px;
  width: 100%;
}

.qui-sommes-nous-child .thumb {

  height: 80px;
  width: auto;
  margin: auto;
}

.qui-sommes-nous-child .thumb IMG {
  height: 80px;
  width: auto;
}

.crj-content>.thumb {
  max-width: 600px;
  height: auto;
}

.crj-content>.thumb img {
  max-width: 100%;
  height: auto;
}

.single #content .crj-content {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-content: flex-end;
  padding: 20px;

}

.single .crj-content h1,
.single .crj-content .thumb {
  flex-basis: 50%;
}

.single .crj-content .content {
  flex-basis: 100%;
}

.qui-sommes-nous-list {
  display: flex;
  padding: 60px 0 40px;
  justify-content: center;
}

.has-post-thumbnail h3 a,
.type-crj_activites h3 a {
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0 15px;
  display: block;
}

.has-post-thumbnail p {
  font-size: 0.8em;
  font-size: 18px;
}

.has-post-thumbnail h3 a {
  margin: 0 15px;
  display: block;
}

.category-actualite .has-post-thumbnail h3 a {
  margin: 0;
}

.nav-links ul {
  list-style: none;
}

.nav-links li {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  vertical-align: middle;
  border-radius: 50%;
}

.nav-links li.current {
  border: solid 2px black;
}

.crj-contact-form input {
  margin: 0 0 15px;
  width: calc(100% - 16px);
  padding: 8px;
}

.crj-contact-form label {
  font-size: 13px;
  text-transform: uppercase;
  margin: 14px 0 2px;
}

.filter-form FORM input[type="submit"], input[type="submit"] {
  background-color: #ED1E25;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  padding: 8px 25px;
  border: none;
  width:160px;
}

.excerpt.type-post h3 {
  min-height: none;
  font-size:1.1em;
}
@media (min-width:920px){
  .excerpt.type-post h3 {
    min-height: 50px;
  }
}
textarea#message {
  min-width: 280px;
  width: 100%;
  min-height: 180px;
  border-color: #d2d2d2;
}

.crj-contact-form select {
  background-color: #d2d2d2;
  height: 30px;
  width: 100%;
}

.crj-contact-form input[type="submit"] {
  margin: 15px 0;
  width: calc(100% - 16px);
  padding: 8px;
}

.nav-links {
  font-size: 14px;
  margin: 20px auto;
}

.nav-links a {
  text-decoration: none;
  color: #666666;
  padding: 4px 6px;
}

.nav-links span.current,
.nav-links a:hover {
  color: #fff;
  background-color: #FBBD3E;
  padding: 4px 6px;
}

.crj-content.type-crj_activites Footer a {
  text-decoration: none;
  background-color: #ED1E25;
  color: #fff;
  padding: 6px 15px;
  display: block;
}

.vingt {
  flex-basis: 100%;
}

.single .crj-content .content {
  flex-basis: 100%;
}

.content ul {
  font-size: 17px;
}

@media (min-width:992px) {
  .vingt {
    flex-basis: 20%;
  }

  .type-crj_activites .vingt {
    flex-basis: 100%;
  }

  .single .crj-content .content {
    flex-basis: 78%;
  }
}

IMG.attachment-large {
  max-height: 100px;
  width: auto;
  margin: auto;
  display: block;
}

.grande-image {
  margin: 0 ;
  padding: 0;
  width: 100%;
}

.grande-image IMG {
  width: 100%;
}

.home #content {
  padding: 0 0 40px 0;
}

select {
  background-color: #ED1E25;
  color: #fff;
  border: none;
}

.home .qui-sommes-nous-child {
  margin: 0 15px;
}

ul.social-bar {
  width: 100%;
  border-top: solid 1px #ccc;
  border-bottom: solid 1px #ccc;
  padding: 6px 0;
  text-align: right;
  margin: 40px 0 0 0;
}

div#content>.type-page ul.social-bar a {
  color: #ccc;
}

ul.social-bar a {
  color: #ccc;
}

div#content>.type-page ul.social-bar a:hover {
  color: #FBBD3E;
}

ul.social-bar a:hover {
  color: #FBBD3E;
}

ul.social-bar li {
  display: inline;
  margin: 0 10px;
}

ul.social-bar li:last-child {
  margin: 0 4px 0 10px;
}

@media (min-width:920px) {
  .home-main .category-actualite .text {
    position: absolute;
    top: 0%;
    width: 100%;
    text-align: center;
    height: 100%;
    color: white;
    vertical-align: middle;
    
  }
  .home .titre-central {
    color: #fff;
  }
  .home-main .category-actualite .text p {
    margin: 0 15%;
    padding: 20px;
   
  }
  .home-main .category-actualite .text h1 a {
    color: #fff;
    text-decoration: none;
  }
  .home-main .category-actualite .text h1 {
    margin:40px 0 30px 0;
  }
  .home-main .category-actualite .text p {
    padding:20px;
    margin:40px 15%;
    text-align:center;
    
  }
}

.single .crj-content h1{ line-height:1.1em; }

/* Formulaire de contact */

.wpcf7 p{
  font-size: 13px;
  text-transform: uppercase;
}

.wpcf7 input {
  padding: 10px 0px;
  font-size: 1.2em;
  width: 100%;
  height: 20px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 10px;
}

.wpcf7 textarea {
  width: 100%;
  margin-top: 10px;
}

.wpcf7 select {
    background-color: #fff;
    color: red;
    font-size: 16px;
    border: none;
    width: 704px;
    height: 45px;
    margin: 10px 0;
    border: 1px solid #000;
}

input.wpcf7-form-control.wpcf7-submit {
  height: 35px;
}

input.wpcf7-form-control.wpcf7-submit.btn-wpcf7 {
  margin-left: 4px;
}

.modal
{
	padding-top: 0 !important;
}

.modal .modal-content
{
	margin-top: 100px !important;
}