/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* ---------------------------------------------------------------- */
/*FFM CUSTOM FONTS*/
/* ---------------------------------------------------------------- */
@font-face {
  font-family: "BC-Civitas";
  src:
    url("fonts/BC-Civitas-Light-6381a2aac5513edf7b648521028e6228.woff2")
      format("woff2"),
    url("fonts/BC-Civitas-Light-6381a2aac5513edf7b648521028e6228.woff")
      format("woff");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "BC-Civitas";
  src:
    url("fonts/BC-Civitas-Regular-86ef0a82d3debbaf60e0cd4918b581cb.woff2")
      format("woff2"),
    url("fonts/BC-Civitas-Regular-86ef0a82d3debbaf60e0cd4918b581cb.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "BC-Civitas";
  src:
    url("fonts/BC-Civitas-Medium-e390c4ff7fa338dcbd33a41144398780.woff2")
      format("woff2"),
    url("fonts/BC-Civitas-Medium-e390c4ff7fa338dcbd33a41144398780.woff")
      format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "BC-Civitas";
  src:
    url("fonts/BC-Civitas-Semibold-0ea66253d7cc5dcdf56bc58d1cc03a24.woff2")
      format("woff2"),
    url("fonts/BC-Civitas-Semibold-0ea66253d7cc5dcdf56bc58d1cc03a24.woff")
      format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "BC-Civitas";
  src:
    url("fonts/BC-Civitas-Bold-84e8aad8c139cab27c0d5d14606a574d.woff2")
      format("woff2"),
    url("fonts/BC-Civitas-Bold-84e8aad8c139cab27c0d5d14606a574d.woff")
      format("woff");
  font-weight: 900;
  font-style: normal;
}

/* ---------------------------------------------------------------- */
/*HELPER CLASSES*/
/* ---------------------------------------------------------------- */
.orange h3 {
  color:#e94f3d !important; 
}
.ttu {
  text-transform: uppercase !important;
}
.dib {
  display: inline-block !important;
}
.display-none {
  display: none;
}
.display-block {
  display: block !important;
}
.mg-1 {
  margin: -1px !important;
}
.color-white {
  color: white !important;
}
.red {
  background-color: red !important;
}
.yellow {
  background-color: yellow !important;
}
.pink {
  background-color: pink !important;
}
.green {
  background-color: green !important;
}
.blue {
  background-color: blue !important;
}
.lh1 li {
  line-height: 1.2em !important;
  margin-bottom: 10px;
}
.lh1-2 p {
  line-height: 1.2em !important;
}
.lh1-2 {
  line-height: 1.2em !important;
}
.lh1-2 li {
  line-height: 1.2em !important;
  margin-bottom: 10px;
}
.lh1 p {
  line-height: 1em !important;
}
.lh1 {
  line-height: 1em !important;
}
.mobile-center img {
  text-align: center !important;
}
.mt-1px {
  margin-top: -1px !important;
}
.ml0 {
  margin-left: 0 !important;
}
.ml5 {
  margin-left: 5px !important;
}
.ml10 {
  margin-left: 10px !important;
}
.ml15 {
  margin-left: 15px !important;
}
.ml20 {
  margin-left: 20px !important;
}
.ml25 {
  margin-left: 25px !important;
}
.ml30 {
  margin-left: 30px !important;
}
.mr0 {
  margin-right: 0 !important;
}
.mr5 {
  margin-right: 5px !important;
}
.mr10 {
  margin-right: 10px !important;
}
.mr15 {
  margin-right: 15px !important;
}
.mr20 {
  margin-right: 20px !important;
}
.mr25 {
  margin-right: 25px !important;
}
.mr30 {
  margin-right: 30px !important;
}
.mt-5 {
  margin-top: -5px !important;
}
.mt0 {
  margin-top: 0 !important;
}
.mt5 {
  margin-top: 5px !important;
}
.mt10 {
  margin-top: 10px !important;
}
.mt15 {
  margin-top: 15px !important;
}
.mt20 {
  margin-top: 20px !important;
}
.mt25 {
  margin-top: 25px !important;
}
.mt30 {
  margin-top: 30px !important;
}
.mt35 {
  margin-top: 35px !important;
}
.mb0 {
  margin-bottom: 0 !important;
}
.mb5 {
  margin-bottom: 5px !important;
}
.mb10 {
  margin-bottom: 10px !important;
}
.mb15 {
  margin-bottom: 15px !important;
}
.mb20 {
  margin-bottom: 20px !important;
}
.mauto {
  margin: auto !important;
}
.pt0 {
  padding-top: 0 !important;
}
.pt5 {
  padding-top: 5px !important;
}
.pt10 {
  padding-top: 10px !important;
}
.pt15 {
  padding-top: 15px !important;
}
.pt20 {
  padding-top: 20px !important;
}
.pb0 {
  padding-bottom: 0 !important;
}
.pb5 {
  padding-bottom: 5px !important;
}
.pb10 {
  padding-bottom: 10px !important;
}
.pb15 {
  padding-bottom: 15px !important;
}
.pb20 {
  padding-bottom: 20px !important;
}
.pb25 {
  padding-bottom: 25px !important;
}
.pb30 {
  padding-bottom: 30px !important;
}
.pb35 {
  padding-bottom: 35px !important;
}
.mw600 {
  max-width: 600px !important;
}
.zindex1000 {
  z-index: 1000 !important;
}
.z-7000 {
  z-index: 7000 !important;
  position: relative;
}
.z-10000 {
  z-index: 10000 !important;
}
span:has(a.mt0) {
  margin-top: 0 !important;
}
span:has(a.mt5) {
  margin-top: 5px !important;
}
span:has(a.mt10) {
  margin-top: 10px !important;
}
span:has(a.mt15) {
  margin-top: 15px !important;
}
span:has(a.mt20) {
  margin-top: 20px !important;
}

@keyframes fadeIn {
  0% {
    visibility: hidden;
  }
  100% {
    visibility: visible;
  }
}

/* ---------------------------------------------------------------- */
/*STYLES GENERAUX*/
/* ---------------------------------------------------------------- */
a.custom-link.btn.btn-sm.border-width-0.mt10.color-dark-btn {
    color: #142523 !important;
}
a.custom-link.btn.btn-sm.border-width-0.mt10.color-dark-btn:hover {
    color: #94B37E !important;
}

figcaption {
    font-style: italic;
}
/*Events*/
.ffm-events h3 {
    padding-bottom: 15px;
}
/*Centrage verticalmenu missions interne aux pages missions*/
.icon-vertical-middle .icon-box-left .icon-box-icon,
.icon-box-right .icon-box-icon,
.icon-box-left .icon-box-content,
.icon-box-right .icon-box-content {
  display: table-cell;
  vertical-align: middle;
}
/*Masquage des vignettes + fleches sur lightbox page metiers */
.metiers div#lg-components-1 {
  display: none;
}
.metiers button#lg-prev-1,
.metiers button#lg-next-1 {
  display: none;
}
/*MENU PRINCIPAL*/
li.nos-missions a {
  font-size: 13px !important;
  color: #e94f3d !important;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgb(228 228 228);
  /*padding-left: 0 !important;*/
  margin-left: 10px;
  pointer-events: none;
  cursor: default;
}
li.nos-missions-last a {
  border-bottom: 1px solid rgb(228 228 228);
  padding-bottom: 20px !important;
  margin-left: 10px;
}
@media screen and (min-width: 959px) {
    li.nos-missions-last a {
    padding-left: 0 !important;
  }
}


/* CONTACT FORM 7 modale formulaire */
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #ffb900;
    padding: 50px;
    color: #583a00;
    Font-size: 22px;
    font-weight: 600;
    border-radius: 5px;
}
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #46b450;
    padding: 50px;
    color: #defec8;;
    Font-size: 22px;
    font-weight: 600;
    border-radius: 5px;
}

/* RECAPTCHA dans contact form 7 (page contact) */
.wpcf7 .anr_captcha_field {
    margin-top: 20px;
}

/*HOME*/
.wpb_column:has(.internal-menu .lien1 .col-link:hover)
  .style-back_color-110230-bg {
  background-color: #ffc3b0 !important;
  transition: all 0.3s ease;
}
.wpb_column:has(.internal-menu .lien2 .col-link:hover)
  .style-back_color-370173-bg {
  background-color: #ffc3b0 !important;
  transition: all 0.3s ease;
}
.wpb_column:has(.internal-menu .lien3 .col-link:hover)
  .style-back_color-179721-bg {
  background-color: #ffc3b0 !important;
  transition: all 0.3s ease;
}
.wpb_column:has(.internal-menu .lien4 .col-link:hover)
  .style-back_color-191492-bg {
  background-color: #ffc3b0 !important;
  transition: all 0.3s ease;
}
/*Depuis 1937 sur slider home*/
  @media screen and (min-width: 1600px) {
  .hidden1600 {
    display: none;
  }
}
@media screen and (max-width: 1600px) {
  .dn1600 {
    display: none;
  }
  .hidden1600 {
    display: block;
  }
}
@media screen and (max-width: 959px) {
  .ffm-actus-home .wpb_column.pos-top.pos-center.align_left.column_child.col-lg-3.single-internal-gutter {
      display: none;
  }
  #colophon h3 {
     font-size: 16px;
     text-align: left;
  }
  .tablet-center {
    text-align: center !important;
  }
}
@media screen and (max-width: 649px) {
    .mobile-center {
    text-align: center !important;
  }
}
@media screen and (max-width: 500px) {
  ul#menu-top-bar li {
      display: block !important;
  }
}
@media screen and (max-width: 339px) {
  #colophon h3 {
     font-size: 16px;
  }
}




/*Signature*/
#page-header .header-wrapper.header-uncode-block,
#page-header .header-wrapper.header-uncode-block .row-inner,
#page-header .header-wrapper.header-uncode-block .uncol,
#page-header .header-wrapper.header-uncode-block .uncol-inner {
  overflow: visible !important;
}
.p-relative {
  position: relative !important;
}
.p-absolut {
  position: absolute !important;
}
.signature::after {
  content: "";
  width: 122px;
  height: 240px;
  display: block;
  background-image: url("img/signature2.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  Top: -40px;
  left: 5px;
  z-index: 1000 !important;
  transform: rotate(17deg);
}
.unmask-blob-4 {
  position: relative;
}
.unmask-blob-4.signature::after {
  width: 50%;
  height: 300px;
  bottom: 56px;
}
.depuis {
  text-indent: -30px;
}
.date-1937 {
  width: 100px;
}
/*ACTUALITÉS*/
#ffm-actus hr {
  width: 25px;
  border-color: #a2b57f;
  border-width: 2px;
  border-radius: 5px;
}
/*Scroll to top*/
.footer-scroll-top i {
  border-radius: 2px;
  width: 3em;
  height: 3em;
  line-height: 2.8em;
}
.style-light.footer-scroll-top .btn-default,
.style-dark.footer-scroll-top .style-light .btn-default,
.tmb-light .t-entry-text .btn-default,
.style-dark .tmb-light .t-entry-text .btn-default,
.tmb-dark .t-overlay-inner .btn-default {
  background-color: #e94f3d !important;
  border-color: white !important;
}
/*FOOTER*/
@media screen and (max-width: 1332px) {
  .icon-box.icon-box-left.icon-box-space-reduced.ml20.icon-inline.icon-media-image, .icon-box.icon-box-left.icon-box-space-reduced.icon-inline.icon-media-image {
    margin-left: 0!important;
    padding-left: 0;
    margin-bottom: 10px!important;
}
.icon-box.icon-inline {
    padding-right: 30px;
}
}

/*TOPBAR*/
.topbar-contact img,
.topbar-joinus img,
.topbar-login img {
  width: 20px;
}
.menu-bloginfo {
  background-color: #370800;
  padding: 0;
}
.menu-bloginfo a {
  display: inline-block;
  margin-right: 45px;
  text-transform: uppercase;
  font-weight: 600;
}
.navbar-topmenu a,
.menu-dark a.menu-smart-toggle {
  color: #f1b6af !important;
  transition: all 150ms linear;
}
.menu-dark .menu-smart li.menu-item-link.social-icon a:not(.un-submenu *) {
  color: #ff6f5e !important;
  transition: all 150ms linear;
}
.menu-dark
  .menu-smart
  li.menu-item-link.social-icon
  a:not(.un-submenu *):hover {
  color: #f1b6af !important;
}
.navbar-topmenu a:hover {
  color: #ffffff !important;
}
/*.topbar-joinus a {
    background: #291818;
}
.topbar-contact a {
    background: #3f2626;
}
.topbar-login a {
    background: #4b2e2e;
}*/
#menu-top-bar i.fa.fa-angle-right.fa-dropdown::before {
  display: none !important;
}
.menu-bloginfo a:nth-child(3) {
  background-color: #4c0b00;
  margin-right: 0;
  padding: 10px 12px;
  color: #ffffff !important;
  text-transform: uppercase;
  font-weight: 600;
  height: 36px;
}
.menu-bloginfo a:first-child {
  margin-left: 20px;
}
.top-menu.top-menu-enhanced .row-menu-inner .menu-bloginfo {
  padding: 0 !important;
}
/*Header home*/
.translatex-15 {
  transform: rotate(180deg) translateX(-15%) !important;
}
.translatex-10 {
  transform: rotate(180deg) translateX(-10%) !important;
}
.translatex-30 {
  transform: rotate(180deg) translateX(-30%) !important;
}
.date-1937 {
  text-indent: 300px;
}
.etoile {
  text-indent: 400px;
}
.light-btn {
  color: #696266 !important;
}
.missions-reduced .icon-box-heading h3 {
  line-height: 20px !important;
  margin-top: 5px;
}
.missions-reduced p {
  margin-top: 0 !important;
}
/*section chiffres*/
.counter-section p {
  margin: 0;
  line-height: 70px;
}
/*Centrage boutons*/
span.btn-container:has(.btn-center) {
  text-align: center;
}
/*boutons missions sur pages missions*/
.missions {
  transition: all linear 300ms;
}
.missions:hover {
  background: #ffddd3;
}
.missions .icon-box {
  transition: all linear 300ms;
}
.missions:hover .icon-box {
  transform: translateX(20px);
}
/*décoration sur titres*/
.title-deco h2, .title-deco h3, .title-deco h4, .title-deco h5, .title-deco h6 {
  position: relative !important;
  z-index: 1;
}
.title-deco35 h2, .title-deco35 h3, .title-deco35 h4, .title-deco35 h5, .title-deco35 h6  {
  position: relative !important;
  z-index: 1;
}
.title-deco h2 span:last-child:after, .title-deco h3 span:last-child:after, .title-deco h4 span:last-child:after, .title-deco h5 span:last-child:after, .title-deco h6 span:last-child:after {
  content: "";
  display: block;
  width: 75px;
  height: 75px;
  position: absolute;
  top: 60px;
  left: 45%;
  background: url("img/signature1.png");
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: multiply;
}
.title-deco35 h2 span:last-child:after,.title-deco35 h3 span:last-child:after, .title-deco35 h4 span:last-child:after, .title-deco35 h5 span:last-child:after, .title-deco35 h6 span:last-child:after {
  content: "";
  display: block;
  width: 75px;
  height: 75px;
  position: absolute;
  top: 20px;
  left: 45%;
  background: url("img/signature1.png");
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: multiply;
}
.title-deco35.decocentre h2 span:last-child:after, .title-deco35.decocentre h3 span:last-child:after, .title-deco35.decocentre h4 span:last-child:after, .title-deco35.decocentre h5 span:last-child:after, .title-deco35.decocentre h6 span:last-child:after {
    top: 36%;
    left: 47%;
}

#main ol li a:not(.btn.btn-secondary.btn-xs, .event-cat, .post-cat):before,
#main p a:before,
#main ul li a:not(.btn.btn-secondary.btn-xs, .event-cat, .post-cat):before {
  background: #e83f3f;
  bottom: 0;
  content: " ";
  display: block;
  left: 0;
  padding: 15px;
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.3s ease;
  z-index: -1;
}

/*fix couleur icône sur gallerie*/
.ffm-carrousel i {
    color: white !important;
}

/*Liens hypertextes*/

:root {
  --accent-color: #fbcbb9;
  --dark-color: #914444;
}

.page-body p:not(.btn-container, .t-entry-meta) a:not(.btn) {
  
  text-decoration: none;
  box-shadow: inset 0 -0.1em 0 0 var(--accent-color);
  transition: all 0.2s ease-in-out;
}

.page-body p:not(.btn-container, .t-entry-meta) a:not(.btn):hover {
  box-shadow: inset 0 -1.3em 0 0 var(--accent-color);
}
.page-body .style-light .link-hover,
.page-body .style-dark .style-light .link-hover,
.page-body .style-light a:not(.btn-text-skin):hover,
.page-body .style-dark .style-light a:not(.btn-text-skin):hover,
.page-body .style-light a:not(.btn-text-skin):focus,
.page-body .style-dark .style-light a:not(.btn-text-skin):focus,
.page-body .style-light a.active,
.page-body .style-dark .style-light a.active,
.page-body .style-light .tmb .t-entry-text .t-entry-title a:hover,
.page-body .style-dark .style-light .tmb .t-entry-text .t-entry-title a:hover,
.page-body .style-light .tmb .t-entry-text .t-entry-title a:focus,
.page-body .style-dark .style-light .tmb .t-entry-text .t-entry-title a:focus,
.page-body
  .style-light
  .tmb-content-under.tmb
  .t-entry
  p.t-entry-author
  a:hover
  span,
.page-body
  .style-dark
  .style-light
  .tmb-content-under.tmb
  .t-entry
  p.t-entry-author
  a:hover
  span,
.page-body
  .style-light
  .tmb-content-lateral.tmb
  .t-entry
  p.t-entry-author
  a:hover
  span,
.page-body
  .style-dark
  .style-light
  .tmb-content-lateral.tmb
  .t-entry
  p.t-entry-author
  a:hover
  span,
.page-body .style-light .tmb .t-entry p.t-entry-comments .extras a:hover i,
.page-body
  .style-dark
  .style-light
  .tmb
  .t-entry
  p.t-entry-comments
  .extras
  a:hover
  i,
.page-body .style-light .tmb .t-entry p.t-entry-comments .extras a.active i,
.page-body
  .style-dark
  .style-light
  .tmb
  .t-entry
  p.t-entry-comments
  .extras
  a.active
  i,
.page-body .style-light .tmb .t-entry p.t-entry-comments .extras a:focus i,
.page-body
  .style-dark
  .style-light
  .tmb
  .t-entry
  p.t-entry-comments
  .extras
  a:focus
  i,
.page-body
  .style-light
  .drop-hover-accent.uncode-post-titles
  .tmb:hover
  .t-entry-title
  *,
.page-body
  .style-dark
  .style-light
  .drop-hover-accent.uncode-post-titles
  .tmb:hover
  .t-entry-title
  *,
.page-body
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  a.t-entry-table-typography:hover,
.page-body
  .style-dark
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  a.t-entry-table-typography:hover,
.page-body
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  .t-entry-table-typography
  a:hover,
.page-body
  .style-dark
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  .t-entry-table-typography
  a:hover,
.page-body
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  a.t-entry-table-typography:focus,
.page-body
  .style-dark
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  a.t-entry-table-typography:focus,
.page-body
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  .t-entry-table-typography
  a:focus,
.page-body
  .style-dark
  .style-light
  .tmb.tmb-table
  .t-inside-post-table
  .t-entry-table-typography
  a:focus,
.page-body .style-light .widget_nav_menu li.active > a,
.page-body .style-dark .style-light .widget_nav_menu li.active > a,
.page-body .style-light div[class*="sharer-"].share-button label:hover,
.page-body
  .style-dark
  .style-light
  div[class*="sharer-"].share-button
  label:hover,
.page-body .style-light div[class*="sharer-"].share-button label:focus,
.page-body
  .style-dark
  .style-light
  div[class*="sharer-"].share-button
  label:focus {
  color: #170b0b;
}
/*FOOTER*/
.page-body #copyrightarea p a {
  text-decoration: none;
  box-shadow: inset 0 -0.1em 0 0 var(--dark-color);
  transition: all 0.2s ease-in-out;
}
.page-body #copyrightarea p a:hover {
  box-shadow: inset 0 -1.3em 0 0 var(--dark-color);
  color: var(--accent-color);
}

/* ---------------------------------------------------------------- */
/* GRAVITY FORMS - Formulaires */
/* ---------------------------------------------------------------- */

.form-green-info {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 34px;
  display: inline;
  background-color: #763f3b;
  line-height: 42px;
  color: #fff;
  padding: 4px 5px; /* Fusion des deux padding */
  width: fit-content; /* Correction de la valeur invalide */
  margin: 0;
  letter-spacing: 0.5px;
  position: relative;
  transition: opacity 0.3s;
  /* box-shadow: inset 1em 1em 50px 0px #ffcc00; */
}

.hidden-byopacity {
  opacity: 0;
}

.gform_wrapper.gravity-theme .gfield_label {
  font-size: 21px;
  font-weight: 600;
}

label a {
  color: #333;
  transition: color 0.3s;
}
label a:hover {
  color: #666;
}

input[type="checkbox"] {
  width: 25px;
  height: 25px;
  accent-color: #e94f3d;
  color: #fff;
  -webkit-appearance: auto !important;
}

input[type="checkbox"]:checked:before {
  content: "" !important;
  display: none !important;
}

input[type="radio"] {
  width: 25px;
  height: 25px;
  accent-color: #e94f3d;
  color: #e94f3d;
  -webkit-appearance: auto !important;
  border-color: #e94f3d !important;
  /* display: grid !important; */
  /* grid-template-columns: 1em auto; */
  /* gap: 0.5em; */
  font-weight: bold;
  line-height: 1.1;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-color: #e94f3d;
  margin: 0;
}

input[type="radio"]:checked:before {
  box-sizing: border-box;
  font-family: "uncodeicon";
  margin: auto;
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 0;
  right: 0;
  line-height: 1.2em;
  font-size: 11px;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #fff;
  background-color: #fff !important;
  border: none;
}

.gform_wrapper.gravity-theme .gfield_checkbox label,
.gform_wrapper.gravity-theme .gfield_radio label {
  display: inline-block;
  position: relative;
  top: 0;
  margin-bottom: 15px !important;
}

.gform_wrapper.gravity-theme .gfield-choice-input {
  display: inline-block;
  float: left !important;
}

.gform_required_legend {
  display: none;
}

/* Styles pour formulaires Gravity Forms */
:focus {
  outline: none;
}

.ginput_counter {
  display: none;
}

.gfield {
  margin-top: 25px;
  position: relative;
}

.gform_wrapper.gravity-theme input[type="text"]:not(.gf-telephone),
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="date"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="url"] {
  padding: 20px 0 20px 0 !important;
}

.gform_wrapper.gravity-theme input[type="text"].gf-telephone {
  padding-left: 65px !important;
}

.gform_wrapper.gravity-theme input[type="text"].gf-telephone::placeholder {
  color: #999 !important;
}

.gform_wrapper.gravity-theme .gfield input.datepicker::placeholder {
  opacity: 0;
}
.gform_wrapper.gravity-theme .gfield.active input.datepicker::placeholder {
  opacity: 1;
}

/* necessary to give position: relative to parent. */
.ginput_container {
  position: relative;
}

.gform_wrapper .codeclient input {
  font-weight: 900;
  font-size: 125%;
  letter-spacing: 0.5rem;
}

.gform_wrapper .ginput_container_checkbox,
.gform_wrapper .ginput_container_radio {
  padding-top: 25px;
  line-height: 18px;
}

.gform_wrapper .ginput_container_checkbox label,
.gform_wrapper .ginput_container_radio label {
  font-size: 21px;
  margin-left: 7px;
}

.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="date"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="url"] {
  font-size: 21px;
  font-weight: 500;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 1px;
  position: relative;
}

.effect-16 {
  position: relative;
}

.effect-16 input {
  border: 0;
  padding: 4px 0;
  border-bottom: 2px solid #ccc;
  background-color: transparent;
}

.effect-16 .focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e94f3d;
  transition: 0.4s;
  z-index: 5;
}

/* Correction .has-content -> .hascontent */
.effect-16.active .focus-border,
.effect-16.hascontent .focus-border {
  width: 100%;
  transition: 0.4s;
}

/* Correction .has-content -> .hascontent */
.effect-16.active .focus-border,
.effect-16.hascontent:after {
  width: 100%;
  transition: 0.4s;
}
.effect-16 label {
  width: 100%;
  top: 20px;
  /* color: #999; */
  color: #763f3b;
  transition: 0.3s;
  z-index: 1;
  letter-spacing: 0.5px;
  line-height: 19px;
}

.gfield:not(
    .gfield--type-fileupload,
    .gfield--type-choice,
    .gfield--type-textarea
  ).effect-16
  label {
  position: absolute;
  left: 0;
}

.effect-16.active label,
.effect-16.hascontent label {
  top: -21px;
  font-size: 12px;
  /* color: #763F3B; */
  color: #e94f3d;
  transition: 0.3s;
}

.gform_wrapper.gravity-theme .gfield_checkbox label,
.gform_wrapper.gravity-theme .gfield_radio label {
  font-size: 21px;
  color: #333;
  font-weight: 500;
  font-family: "lato", sans-serif;
  letter-spacing: 0.5px;
  line-height: 26px;
}

/* #field_1_9 label {
  display: inline;
  position: absolute;
  z-index: 500;
  top: 8px;
  left: 25px;
  width: auto;
  pointer-events: none;
} */

input#input_1_3 {
  letter-spacing: 5px;
}

.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="date"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme
  input[type="url"]
  .gform_wrapper.gravity-theme
  input,
.gform_wrapper.gravity-theme textarea {
  font-size: 21px;
  font-weight: 600;
}

.gform_wrapper.gravity-theme textarea {
  border: 2px solid #ccc;
  padding: 15px;
  color: #333;
}

.gform_wrapper input[type="submit"],
.style-light input[type="button"].gform_next_button,
.style-light input[type="button"].gform_previous_button {
  background-color: #e94f3d;
  padding: 15px 40px !important;
  border: 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  letter-spacing: 0.5px;
}

/* checkbox */
label#label_1_8_1,
input#choice_1_8_1 {
  float: left;
}

/* bouton confirmation télécharger */
.btn-dwnld-pp {
  background-color: #763f3b;
  color: #fff;
  padding: 7px 20px 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 14px;
  display: inline-block;
  font-size: 24px;
}
.btn-dwnld-pp:hover {
  color: #fff;
  text-decoration: none;
}


/* info bulle */
.gfield:not(
    .gfield--type-fileupload,
    .gfield--type-section,
    .gfield--input-type-captcha, .gfield--type-consent
  ).hasdescription:not(.gfield--no-description)::before,
fieldset:not(
    .gfield--type-fileupload,
    .gfield--type-section,
    .gfield--type-checkbox,
    .gfield--type-consent
  ).gfield--has-description:not(.gfield--no-description)::before {
  content: "?" !important;
  position: absolute;
  background: #e94f3d;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 4px 8px;
  right: 0px;
  top: 18px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03rem;
}
fieldset:not(
    .gfield--type-fileupload,
    .gfield--type-section,
    .gfield--type-checkbox,
    .gfield--type-consent
  ).gfield--has-description:not(.gfield--no-description)::before {
  right: 50px;
  top: 23px;
}

.gfield:not(
    .gfield--type-fileupload,
    .gfield--input-type-captcha,
    .gfield--type-consent
  )
  .gfield_description:not(.validation_message)::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0px 7px;
  right: -5px;
  top: -45px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  cursor: pointer;
}
fieldset:not(
    .gfield--type-fileupload,
    .gfield--type-section,
    .gfield--type-checkbox,
    .gfield--type-consent
  ).gfield--has-description
  .gfield_description:not(.validation_message):before {
  right: 40px;
}

.gfield:not(
    .gfield--type-fileupload,
    .gfield--type-checkbox,
    .gfield--input-type-captcha,
    .gfield--type-consent
  )
  .gfield_description:not(.validation_message) {
  position: absolute;
  background: #e94f3d;
  width: 100%;
  height: auto;
  border-radius: 5px;
  padding: 7px 15px; /* Fusion des padding */
  right: 0px;
  top: 65px;
  color: #fff;
  font-weight: 600;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
  letter-spacing: 0.03rem;
}

.gfield_description:hover {
  opacity: 1 !important;
}

.gfield.gfield--type-fileupload .gfield_description:not(.validation_message),
.gfield.gfield--type-checkbox .gfield_description:not(.validation_message) {
  margin-top: 0;
  margin-bottom: 0;
}

/* erreurs */
.gform_wrapper .gfield_required {
  font-size: 18px;
  font-weight: 700;
}

.gform_wrapper .gfield_error [aria-invalid="true"] {
  border-top: 0px solid transparent;
  border-left: 0px solid transparent;
  border-right: 0px solid transparent;
  border-bottom: 2px solid #ccc;
}

/* .gform_wrapper .gfield_error.effect-16 label, 
.gform_wrapper.gform_validation_error .effect-16 label {
  left: 0;
  top: -21px; /* Suppression du top: 20px en doublon 
} */

/* .gform_wrapper.gravity-theme .gfield_description.gfield_validation_message {
  display: none;
} */

.gform_wrapper .gform_validation_errors > h2 .gform-icon {
  height: 50px;
}

.gform_wrapper .gform_validation_errors {
  margin-bottom: 50px;
}

/* media queries */
/* champ date / longs labels */
@media screen and (min-width: 642px) and (max-width: 768px) {
  .hasdescription::before {
    right: -25px;
  }
  .gfield_description:before {
    right: -35px;
  }
}

/* FORMS GF annexes */
.ffm-gform h3.gsection_title {
  text-align: center;
  font-size: 40px;
  padding: 0;
  color: #e94f3d;
}

.ffm-gform .gform-page-footer {
  padding-top: 60px !important;
  text-align: center;
}

.ffm-gform .gform_wrapper.gravity-theme .gfield {
  margin-bottom: 25px;
}

.gform_wrapper.gravity-theme .gsection {
  border-bottom: 0px solid transparent !important;
  margin-bottom: 50px !important;
}

.ffm-gform .gsection_description {
  text-align: center;
}

.gform_wrapper.gravity-theme .gfield_error [aria-invalid="true"] {
  border: none;
  border-bottom: 2px solid #c02b0a;
}

.gform_wrapper label.gfield_label + div.ginput_container {
  margin: 0 0 25px 0 !important;
}

.shadow-inset-form,
input,
textarea,
select,
.seldiv,
.select2-choice,
.select2-selection--single {
  box-shadow: none !important;
}

span.gfield_required.gfield_required_asterisk {
  font-size: 25px !important;
  line-height: 0;
}

/* ==========================================================================
   STYLES METABOX FRONT-END (Harmonisation Gravity Forms)
   ========================================================================== */

/* 1. Typographie globale et reset */
.mbup-form.rwmb-form,
.mbfs-form.rwmb-form {
  font-family: "Lato", sans-serif;
  color: #333;
}

.mbup-form input,
.mbfs-form input,
.mbup-form textarea,
.mbfs-form textarea,
.mbup-form select,
.mbfs-form select {
  box-shadow: none !important;
  outline: none !important;
}

/* 2. Titres de sections (H2 et H4) */
.mbup-form h2,
.mbfs-form h2,
.mbup-form .rwmb-heading-wrapper h4,
.mbfs-form .rwmb-heading-wrapper h4 {
  text-align: center;
  font-size: 34px;
  color: #e94f3d;
  margin: 40px 0 25px 0;
  padding: 0;
  border: none;
  font-weight: 400;
  text-transform: uppercase;
}
.mbup-form h2,
.mbfs-form h2 {
  font-size: 40px;
}

/* 3. Espacement des champs */
.mbup-form .rwmb-field,
.mbfs-form .rwmb-field {
  margin-bottom: 30px;
  position: relative;
}

/* 4. Style des Labels (Format "Actif/Rempli" de GF) */
.mbup-form .rwmb-label label,
.mbfs-form .rwmb-label label {
  font-size: 14px;
  color: #e94f3d;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0px;
  transition: color 0.3s ease;
}

.mbup-form .rwmb-required,
.mbfs-form .rwmb-required {
  color: #e94f3d;
  margin-left: 3px;
}

/* 5. Inputs Textes, Emails, Dates, URLs (Effet Bordure animé) */
.mbup-form input[type="text"],
.mbfs-form input[type="text"],
.mbup-form input[type="email"],
.mbfs-form input[type="email"],
.mbup-form input[type="date"],
.mbfs-form input[type="date"],
.mbup-form input[type="tel"],
.mbfs-form input[type="tel"],
.mbup-form input[type="url"],
.mbfs-form input[type="url"],
.mbup-form textarea.rwmb-textarea,
.mbfs-form textarea.rwmb-textarea {
  width: 100%;
  padding: 15px 0 !important;
  font-size: 21px;
  font-weight: 500;
  color: #333;
  box-sizing: border-box;
  letter-spacing: 1px;
  border: 0;
  border-bottom: 2px solid #ccc;
  background-color: transparent;
  border-radius: 0;
}

/* Animation de la ligne orange au focus (Remplace la div .focus-border de GF) */
.mbup-form .rwmb-input,
.mbfs-form .rwmb-input {
  position: relative;
}
.mbup-form .rwmb-input::after,
.mbfs-form .rwmb-input::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e94f3d;
  transition: width 0.4s ease;
  z-index: 5;
}
/* Le focus-within permet d'animer la bordure quand on clique dans le champ */
.mbup-form .rwmb-input:focus-within::after,
.mbfs-form .rwmb-input:focus-within::after {
  width: 100%;
}

/* 6. Checkboxes et Radios */
.mbup-form input[type="checkbox"],
.mbfs-form input[type="checkbox"] {
  width: 25px;
  height: 25px;
  accent-color: #e94f3d;
  -webkit-appearance: auto !important;
  margin: 0 12px 0 0 !important;
  cursor: pointer;
}

/* Reset et design de base du cercle (vide) */
.mbup-form input[type="radio"],
.mbfs-form input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 25px !important;
  height: 25px;
  border: 2px solid #ccc; /* Bordure grise par défaut */
  border-radius: 50%;
  outline: none;
  position: relative;
  cursor: pointer;
  margin: 0 12px 0 0 !important;
  background-color: transparent;
  transition: border-color 0.3s ease;
  -webkit-appearance: auto !important;
  appearance: auto !important;
}

/* État coché : la bordure devient orange */
.mbup-form input[type="radio"]:checked,
.mbfs-form input[type="radio"]:checked {
  border-color: #e94f3d;
}

/* État coché : création du point central orange */
.mbup-form input[type="radio"]:checked::after,
.mbfs-form input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centrage parfait */
  width: 13px; /* Taille du point central */
  height: 13px;
  border-radius: 50%;
  background-color: #e94f3d;
}

.mbup-form .rwmb-input-list label,
.mbfs-form .rwmb-input-list label,
.mbup-form .rwmb-checkbox-wrapper label,
.mbfs-form .rwmb-checkbox-wrapper label {
  font-size: 21px;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 26px;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  text-transform: none;
}

/* 7. Groupes Répétables (Clones) */
.mbup-form .rwmb-clone,
.mbfs-form .rwmb-clone {
  background: #f9f9f9;
  padding: 25px 25px 10px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid #763f3b;
  position: relative;
}

/* Bouton Ajouter un clone */
.mbup-form .add-clone,
.mbfs-form .add-clone {
  background-color: #763f3b;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  border: none;
  font-weight: 600;
  transition: background-color 0.3s;
}
.mbup-form .add-clone:hover,
.mbfs-form .add-clone:hover {
  background-color: #5a2f2c;
}

/* Icône supprimer un clone */
.mbup-form .remove-clone,
.mbfs-form .remove-clone {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #e94f3d;
  text-decoration: none;
}
.mbup-form .remove-clone .dashicons,
.mbfs-form .remove-clone .dashicons {
  font-size: 24px;
}

/* 8. Textes de description et compteurs */
.mbup-form .description,
.mbfs-form .description {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}
.mbup-form .text-limiter,
.mbfs-form .text-limiter {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin-top: 5px;
}

/* 9. Bouton de Soumission Final */
.mbup-form .rwmb-button-wrapper,
.mbfs-form .rwmb-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.mbup-form button[type="submit"].rwmb-button,
.mbfs-form button[type="submit"].rwmb-button {
  background-color: #e94f3d;
  padding: 15px 40px !important;
  border: 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  letter-spacing: 0.5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.mbup-form button[type="submit"].rwmb-button:hover,
.mbfs-form button[type="submit"].rwmb-button:hover {
  background-color: #c02b0a;
}

/* 10. Gestion des erreurs de validation HTML5 */
.mbup-form input:invalid,
.mbfs-form input:invalid {
  box-shadow: none;
}
.mbup-form .rwmb-input:focus-within input:invalid,
.mbfs-form .rwmb-input:focus-within input:invalid {
  border-bottom-color: #c02b0a;
}

/* Masquer le compteur de caractères Metabox */
.mbup-form .text-limiter,
.mbfs-form .text-limiter {
  display: none !important;
}

/* Supprimer la bordure grise native des fieldsets (groupes de radios/checkbox) */
.mbup-form fieldset.rwmb-input-list,
.mbfs-form fieldset.rwmb-input-list {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Adoucir la ligne de séparation */
.mbup-form .rwmb-divider-wrapper hr,
.mbfs-form .rwmb-divider-wrapper hr {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 30px 0;
}

/*Recrutement Single*/
.recruit-box h3 {
  margin-top: 10px;
}
/*Recrutement Archive Tuiles*/
#tuiles-offres-ffm .offre-contrat {
  /* color: #7a1203; */
  font-weight: 500;
  font-size: 16px;
}
/* ------------------------------------------------
*
*   METABOX - FRONT END DASHBOARD (RECRUTEMENT)
*
*   ------------------------------------------------ */

.mbfs-add-new-post {
  display: none !important;
}

.mbfs-posts tbody > tr > th {
  text-align: center !important;
}

.mbfs-posts tr:nth-child(2n + 1) {
  background: transparent !important;
}

.mbfs-actions a {
  margin: 0 15px !important;
}

/* ------------------------------------------------
*
*   WPDM - TOP FILTERS
*
*   ------------------------------------------------ */
.w3eden .card {
  border: none;
  border-radius: 0;
}
.wpdmap-header-card .card-footer {
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 7px 33px;
}

.wpdmap-header-card .card-body {
  padding: 15px 0 7px 0;
}

/* ------------------------------------------------
*
*   WPDM - Cards
*
*   ------------------------------------------------ */

.w3eden .pp-wpdm-card {
  border: none;
  padding: 0;
  box-shadow: -2px 27px 30px -19px rgba(25, 16, 0, 0.4);
  -webkit-box-shadow: -2px 27px 30px -19px rgba(25, 16, 0, 0.4);
  -moz-box-shadow: -2px 27px 30px -19px rgba(25, 16, 0, 0.4);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  /* padding-left: 0; */
  margin-bottom: 0;
}

.pp-wpdm-btn {
  padding-bottom: 30px!important;
    -webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}

.pp-wpdm-card-item.pp-wpdm-thumbnail::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 300px;
    background: #e9583d45;
    mix-blend-mode: multiply;
    top: 0;
    left: 0;
    border-radius: 5px;
}

.w3eden .pp-wpdm-card-item {
  border: none;
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  background-color: #ffffff;
}

.w3eden .pp-wpdm-card-item h3,
.w3eden .pp-wpdm-card-item h4,
.w3eden .pp-wpdm-card-item h5,
.w3eden .pp-wpdm-card-item h6,
.w3eden .pp-wpdm-card-item h3 a,
.w3eden .pp-wpdm-card-item h4 a,
.w3eden .pp-wpdm-card-item h5 a,
.w3eden .pp-wpdm-card-item h6 a {
  text-transform: none;
  font-size: 16px !important;
}

.w3eden .wpdm-pp-btn {
  border-color: #e94f3d;
  color: #e94f3d;
  padding: 10px 1px !important;
  width: 100%;
  margin: 0 auto;
  letter-spacing: normal;
  text-transform: none;
}

.w3eden .wpdm-pp-btn:hover {
  border-color: #f87600;
}

a.wpdm-download-link.btn.btn-primary {
  background-color: #e94f3d;
  border-radius: 0;
  padding: 5px 20px !important;
  margin: 0 auto;
  border: 2px solid #e94f3d;
  color: #fff;
  font-weight: 600;
}
a.wpdm-download-link.btn.btn-primary:hover {
  background-color: #fff;
  border-radius: 0;
  padding: 5px 20px !important;
  margin: 0 auto;
  border: 2px solid #e94f3d;
  color: #e94f3d;
  font-weight: 600;
}

.pp-wpdm-card-item.pp-wpdm-title,
.pp-wpdm-card-item.pp-wpdm-filesize,
.pp-wpdm-card-item.pp-wpdm-filesize h6,
.pp-wpdm-card-item.pp-wpdm-title h4 {
  text-align: center !important;
  width: 100%;
  /* 	text-transform: uppercase; */
  font-weight: 600;
  padding: 0px;
  margin-top: 0;
}
.pp-wpdm-card-item.pp-wpdm-title h4 {
  font-size: 17px !important;
  line-height: 26px;
}
.pp-wpdm-card-item.pp-wpdm-title {
  padding: 30px 10px 17px 10px;
}
.pp-wpdm-card-item.pp-wpdm-description {
  padding-top: 0;
}
.pp-wpdm-card-item.pp-wpdm-description p {
  width: 100%;
  font-size: 14px !important;
  text-align: center;
}

.pp-wpdm-card-item.pp-wpdm-filesize h6 {
  font-size: 14px !important;
  font-weight: 400;
}

.pp-wpdm-card.wpdm-lt-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0;
}

.pp-wpdm-card-item.pp-wpdm-thumbnail {
  display: block;
  width: 100%;
  height: 230px; /*hauteur image carte*/
  padding: 0;
    -webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}

.pp-wpdm-card-item.pp-wpdm-thumbnail img {
  -webkit-border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}


.wpdm-downloads .col-lg-4.col-md-6.col-12 {
  padding: 0px 10px 2px 10px;
}

.wpdmap-header-card .input-group.input-src {
  height: 38px;
}

.wpdmap-header-card .input-group-append.input-group-btn {
  height: 38px;
}

.wpdmap-header-card .input-group-append.input-group-btn .btn {
  padding: 0 10px !important;
  margin-top: -2px;
}

.card-header.p-2.filter-header.bg-white {
  border: 1px solid #ccc;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.wpdmap-filter-sidebar .card-footer {
  padding: 5px 15px;
}

.wpdmap-filter-sidebar .card-footer,
.wpdmap-filter-sidebar .card-footer label {
  font-size: 14px;
}
.wpdmap-filter-sidebar .card-footer input {
  margin-right: 7px;
}

.w3eden label.d-block {
  margin-bottom: 0;
}

ul#wpdmcat-tree {
  list-style: none;
}

.pp-wpdm-filesize[data-filesize="0.00 KB"] {
  opacity: 0;
}

.pp-wpdm-card-item.pp-wpdm-icon {
  position: absolute;
  top: 5px;
  right: 10px;
  width: 58px;
}

/* archive page */
a.wpdm-resetbtn {
  font-size: 14px;
  line-height: 28px;
  font-weight: bold;
  letter-spacing: 0.5px;
  height: auto;
}

@media screen and (min-width: 768px) and (max-width: 1250px) {
  button.wpdm-resetbtn {
    font-size: 10px !important;
    line-height: 16px;
    border-bottom: 0px !important;
  }
}

.wpdmap-filter-sidebar {
  .card-header {
    border: 0;
    border-radius: 0 !important;
    background-color: #e94f3d;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    font-size: rem(20);
    padding: rem(10) rem(15);
    margin: rem(15) 0 rem(5);

    &.filter-header {
      margin-top: 0;
      margin-bottom: rem(25);
    }
  }

  .card {
    background-color: transparent;
    border: none;
  }
}

/* WPDM pagination & loading */
ul.wpdm-pagination {
  width: fit-content;
  display: block;
  margin: 0 auto;
}

#wpdm-downloads .wpdm-loading::after {
  position: absolute;
  width: 250px;
  height: 50px !important;
  background-color: #e94f3d;
  content: "chargement";
  top: 0;
  left: 0;
  z-index: 55000;
  color: #fff;
  font-size: 14px;
  text-align: left;
  text-indent: 0;
  padding: 15px;
  text-align: center;
  text-transform: uppercase;
  border-radius: 5px;
}

#wpdm-downloads .wpdm-loading {
  padding: 20px 30px;
  letter-spacing: 1px;
  font-size: 14pt;
  position: fixed;
  text-align: center;
  border-radius: 4px !important;
  left: calc(50% - 75px);
  bottom: 50px;
  z-index: 50000;
  text-indent: 9900px;
  content: "Chargement";
  width: 0;
  height: 0;
  overflow: visible;
  color: #fff;
  border-radius: 0 !important;
}

.wpdm-loading i {
  display: none !important;
}

.wpdmarchpage-search {
  margin-top: 9px;
}

.wpdmarchpage-search input#src {
  margin-top: 0;
}

:where(.rwmb-field) {
  display: block !important;
}

.rwmb-input input {
  margin-top: 0 !important;
}

/* 1. Cible l'ID du selecteur et les valeurs d'options à masquer */
/* Remplacer les valeurs par celles que tu souhaites cacher */
select#orderby option[value="view_count"],
select#orderby option[value="download_count"],
select#orderby option[value="package_size_b"] {
  /* 2. Masque l'élément dans la liste déroulante */
  display: none;
}

/* ------------------------------------------------
*
*   WPDM - Single fix / pages référencées
*
*   ------------------------------------------------ */
.single-wpdmpro .w3eden .attachment-full.size-full.wp-post-image {
  max-width: 50%;
  margin: 0 auto;
}
.single-wpdmpro .w3eden h1 {
  font-size: 32px;
}

/* ==========================================================================
   Styles Accordéon Mobilité
   ========================================================================== */

/* Structure du groupe régional */
.ffm-mobilite-geo .ffm-geo-group {
  border: none;
  margin-bottom: 0;
  overflow: hidden;
}

/* En-tête de la région (Barre cliquable) */
.ffm-mobilite-geo .ffm-geo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
  background: #fff;
  border: none;
}

/* Ajustement du choix parent (Région - Structure .gchoice) */
.ffm-mobilite-geo .ffm-geo-header .gchoice {
  margin: 0 !important;
  padding: 0;
  flex-grow: 1;
}

/* Flèche d'accordéon (Pur CSS) */
.ffm-mobilite-geo .ffm-geo-toggle {
  width: 12px;
  height: 12px;
  border-right: 3px solid #e94f3d;
  border-bottom: 3px solid #e94f3d;
  transform: rotate(45deg);
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-right: 10px;
}

.ffm-mobilite-geo .ffm-geo-group.is-open .ffm-geo-toggle {
  transform: rotate(-135deg);
  border-color: #763f3b;
}

/* Conteneur des départements (Fermé par défaut) */
.ffm-mobilite-geo .ffm-geo-content {
  display: none;
  padding: 20px 15px;
  /* border-top: 1px solid #e0e0e0; */
  border: none;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  background: #f9f9f9;
}

/* Affichage du contenu enfant en grille (Bascule via classe JS .is-open) */
.ffm-mobilite-geo .ffm-geo-group.is-open .ffm-geo-content {
  display: grid;
}

/* Ajustement des choix enfants (Départements - Structure .gchoice) */
.ffm-mobilite-geo .ffm-geo-content .gchoice {
  margin: 0 !important;
  padding: 0;
}

/* NOTICES pour les contenus restreints (admin, visiteurs) */

.ffm-admin-notice {
  background-color: #e94f3d;
  color: #ffffff;
  padding: 12px 15px;
  border-left: 4px solid #ffeeba;
  margin-bottom: 20px;
  font-size: 14px;
}

.ffm-public-notice {
  background-color: #e94f3d;
  color: #ffffff;
  padding: 12px 15px;
  border-left: 4px solid #ffeeba;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ==========================================
   MACARON DE RESTRICTION (TUILES UNCODE)
   ========================================== */

.ffm-restricted-badge {
    /* Positionnement absolu par rapport à la tuile */
    position: absolute;
    top: -20px;
    right: 15px;
    z-index: 20;
    
    /* Dimensions et aspect du macaron */
    width: 32px;
    height: 32px;
    background-color: #d9534f;
    color: #ffffff;
    border-radius: 50%;
    
    /* Centrage parfait de l'icône <i> contenue */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}


/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
#desktop-pp-language-switcher {
    position: fixed;
    top: 37px;
    right: 110px;
    z-index: 10000;
}
#mobile-pp-language-switcher {
    position: absolute;
    top: 24px;
    left: 25px;
    z-index: 10000;
}

#desktop-pp-language-switcher select,
#mobile-pp-language-switcher select{
    border: 1px solid #666;
    padding: 0 10px;
    width: 35px;
    text-align: center;
    color: #666;
}

/* Positionnement du module */
.cw-lang-dropdown {
    position: relative;
    display: inline-block;
}

/* li de la liste de langue */
.cw-lang-item {
  font-size: 16px;
  line-height: 18px;
  margin: 4px 0px 0px 0px;
}

.cw-lang-item.cw-active {
  display: none;
}

/* Bouton déclencheur transparent */
.cw-lang-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    color: inherit;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Flèche construite en CSS */
.cw-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

/* Rotation de la flèche à l'ouverture */
.cw-lang-dropdown.open .cw-arrow {
    transform: rotate(180deg);
}

/* Conteneur de la liste (masqué par défaut) */
.cw-lang-list {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent; /* Fond transparent selon consigne */
    min-width: 100%;
    z-index: 99;
}

/* Affichage de la liste au toggle */
.cw-lang-dropdown.open .cw-lang-list {
    display: block;
}

/* Styles des liens de la liste */
.cw-lang-item a {
    display: block;
    padding: 0px 5px;
    color: #008630;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

/* Survol et élément actif */
.cw-lang-item a:hover,
.cw-lang-item.cw-active a {
    opacity: 0.6;
}