/* Spécial pour coller les tuiles à la vitrine (HUB) */
@media (min-width: 768px) {
  html:not([style="font-size: 200%;"]) .no-margin-top-desktop-only {
    margin-top: 0 !important;
  }
}

/* Suppression bg blanc sur onglet */
.cd-onglet-horizontal {
  background-color: transparent;
}

/* Réécriture des paddings sur tiroir */
#zone-centrale .tiroirs.cd-tiroirs .tiroir .contenu-tiroir {
  padding: 0 10px;
}

/* overwrite .tel */
.tel {
  font-size: 1rem;
}


/* .cd-max-ctn padding-bottom */
.padding-bottom-1 {
  padding-bottom: 60px
}

@media (min-width: 768px) {
  .padding-3 {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

/* Fix button action */
#contenu .cd-bouton-action {
  width: auto;
}

/* Lien d'action v2 - Revu et corrigé */
.cd-externe-2,
.cd-lien-action-2 {
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
}

.cd-lien-action-2:after {
  content: url('/ressources/images/ic-fleche-vert-droite.svg');
  padding-left: .5rem;
}

.cd-externe-2:after {
  content: url('/ressources/images/ic-n1-lien-externe.svg');
  padding-left: .5rem;
}

#zone-centrale a:link.cd-lien-externe-2,
#zone-centrale a:visited.cd-externe-2,
#zone-centrale a:link.cd-lien-action-2,
#zone-centrale a:visited.cd-lien-action-2 {
  text-decoration: none;
  color: #007944;
}

#zone-centrale a:hover.cd-externe-2,
#zone-centrale a:focus.cd-externe-2,
#zone-centrale a:hover.cd-lien-action-2,
#zone-centrale a:focus.cd-lien-action-2 {
  color: #595959;
  text-decoration: underline;
}

/* Shadow */
.shadow_12 {box-shadow: 0 8px 12px 0 rgba(0, 0, 0, .1)}




/* Overwrite cd-vitrine */
.cd-vitrine.fondation {
  height: 23.45rem;
  background-color: transparent;
  background-position: right bottom;
}

.cd-vitrine.fondation:after {
  display: none;
}

.cd-vitrine.fondation > div {
  margin: 0;
  padding: 0;
  max-width: 55%;
  background-color: transparent;
}

#page #zone-centrale .cd-typo-temp .cd-vitrine.fondation h1.titre {
  font-family: robotobold, arial, sans-serif; 
  font-size: 2.25rem;
}

#page #zone-centrale .cd-typo-temp .cd-vitrine.fondation .desc {
  font-size: 1.5rem;
}

@media (max-width: 576px) {
  .cd-vitrine.fondation {
    background-size: cover;
    background-position-x: calc(100% + 150px);
    background-position-y: calc(100% - 1.9rem);
  }

  .cd-vitrine.fondation > div {
    align-self: flex-start;
    margin-top: 2rem;
  }

  #contenu .cd-vitrine.fondation .cd-bouton-action {
    display: inline-block;
  }

  #page #zone-centrale .cd-typo-temp .cd-vitrine.fondation h1.titre {
    font-size: 2rem;
    padding-right: 0;
  }

  #page #zone-centrale .cd-typo-temp .cd-vitrine.fondation .desc {
    font-size: 1.125rem;
  }
}

#zone-centrale .cd-typo-temp .cd-vitrine_1600 .titre {
  font-family: robotoblack, arial, sans-serif;
}

#zone-centrale .cd-typo-temp .cd-vitrine_1600 .desc {
  font-size: 1.125rem;
}


/* Cd-grille avec séparation */
.cd-grille.separation > * {
  position: relative;
}

.cd-grille.gutter-40.separation > *:not(:last-child) {
  padding-right: 1rem;
}

.cd-grille.separation > *:not(:last-child):before {
  content: '';
  position: absolute;
  left: 100%;
  top: 1rem;
  bottom: 1rem;
  border-left: 1px solid #cbcccc;
}

@media (max-width: 767px) {
  .cd-grille.gutter-40.separation > * {
    padding-right: 0;
    padding-bottom: 2rem;
  }
  .cd-grille.separation > *:not(:last-child):before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 1rem;
    width: 100%;
    border-left: none;
    border-bottom: 1px solid #cbcccc;
  }
}

html[style='font-size: 200%;'] .cd-grille.gutter-40.separation > *,
html[style='font-size: 150%;'] .cd-grille.gutter-40.separation > * {
  padding-right: 0;
  padding-bottom: 2rem;
}

html[style='font-size: 200%;'] .cd-grille.separation > *:not(:last-child):before,
html[style='font-size: 150%;'] .cd-grille.separation > *:not(:last-child):before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 1rem;
  width: 100%;
  border-left: none;
  border-bottom: 1px solid #cbcccc;
  }

/* 3 pastilles */
@media (max-width: 767px) {
  .liste-pastilles {
   flex-basis: 100%;
   max-width: 100%;
  }
}

#zone-centrale .liste-pastilles > li {
  padding-left: 0;
  background: none;
}

.liste-pastilles > li > div:first-child {
  background-color: #fff;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  border-radius: 100%;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.11);
  line-height: 1;
}

.liste-pastilles .titre-vert {
  display: block;
  margin-top: 20px;
  font-family: 'robotoblack', arial, sans-serif;
  color: #00884e;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  #zone-centrale .liste-pastilles {
   flex-basis: 100%;
   max-width: 100%;
   padding-top: 1rem;
   padding-bottom: .5rem;
  }

  .liste-pastilles > li {
   display: flex;
   margin-bottom: 1.5rem
  }

  .liste-pastilles > li > div:first-child {
   margin-right: 20px;
   width: 70px;
   height: 70px;
  }

  .liste-pastilles > li > div:first-child > img {
   width: 50% !important;
  }

  .liste-pastilles .titre-vert {
   margin-top: 0;
  }
}


/* Alvéole */
.alveole {
  position: relative;
}

.alveole:before {
  content: '';
  position: absolute;
  width: 4.125rem;
  height: 7.125rem;
  top: -3.4375rem;
  left: -2.75rem;
  background-image: url(/ressources/images/a00-alveole-haut-g.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

@media (max-width: 767px) {
  .alveole {
    padding-left: 40px;
    padding-top: 3.5rem
  }

  .alveole:before {
    top: 1em;
    left: 0;
  }
}

/* .cd-calendrier */
.cd-calendrier {
  margin-bottom: 2rem;
}

.cd-calendrier > * {
  border: solid 1px rgba(46, 36, 152, .2);
  padding: 2rem 16px;
  margin-bottom: 1rem;
}

html:not([style="font-size: 150%;"]):not([style="font-size: 200%;"]) .cd-calendrier > * {
  min-height: 12rem;
}

@media (max-width: 767px) {
  html:not([style="font-size: 150%;"]):not([style="font-size: 200%;"]) .cd-calendrier > * {
    min-height: 12rem;
  }
}

#zone-centrale .cd-typo-temp .cd-calendrier > * > *:first-child {
  margin-top: 0;
}

#zone-centrale .cd-typo-temp .cd-calendrier > * > *:last-child {
  margin-bottom: 0;
}

#zone-centrale .cd-typo-temp .cd-calendrier .date {
  margin-top: .3rem;
  margin-bottom: .3rem;
}

#zone-centrale .cd-typo-temp .cd-calendrier .desc {
  font-size: .875rem;
  line-height: auto;
  margin-top: .3rem;
}

/* Tuile avec image et lien et bordure */
.cd-tuiles .b-radius,
.cd-tuiles.cd-lien .b-radius > a,
.cd-tuiles.cd-lien .b-radius > div {
  border: none !important;
  border-radius: 8px;
}

.cd-tuiles.cd-lien .b-radius > a:before {
  border-radius: 8px;
}


.cd-tuiles.cd-lien > * > a:after {
  width: 1rem;
  height: 1rem;
  position: absolute;
  background-image: url('/ressources/images/ic-fleche-vert-droite.svg');
  background-position: center left;
}

.cd-tuiles.cd-lien > * > a.cd-externe .desc:after {
  content: '';
  right: 0;
  bottom: 20%;
  display: inline-block;
  margin-left: .3rem;
  width: .81rem;
  height: .81rem;
  background-image: url('/ressources/images/ic-n1-lien-externe.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Cd titre vert */
#zone-centrale .cd-typo-temp .cd-titre-vert {
  color: #00884e;
  font-size: 2rem;
}

/* Panneau blanc avec bordure */
.cd-panel-2 {
  padding: 1.75rem 25px;
  margin-bottom: 20px;
}

#zone-centrale .cd-panel-2 > *:first-child {
  margin-top: 0;
}

#zone-centrale .cd-panel-2 > *:last-child {
  margin-bottom: 0;
}

.cd-panel-2 .img-debord {
  margin-top: calc(-20px - 1rem) !important;
}

.cd-panel-3 {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cd-panel-3 .col-texte {
  flex-basis: 60%;
  max-width: 60%;
  padding: 1.75rem 25px;
}
.cd-panel-3 .col-image {
  flex-basis: 40%;
  max-width: 40%;
  align-self: center;
  text-align: center;
}

@media (max-width: 767px) {
  .cd-panel-3 {
    flex-direction: column-reverse;
  }

  .cd-panel-3 .col-image,
  .cd-panel-3 .col-texte {
    flex-basis: 100%;
    max-width: 100%;
  }

  .cd-panel-3 .col-image[style] {
    display:none;
  }
  
  .cd-panel-3 .col-texte {
    padding-top: 0;
  }
  
  .cd-panel-3 .col-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
}

.cd-panel-3.b-radius .col-image:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.cd-panel-3.b-radius .col-image:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

@media (max-width: 767px) {
  .cd-panel-3.b-radius .col-image:last-child {
    border-bottom-right-radius: 0;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
  }
}

/* fixe-desktop */
@media (max-width: 767px) {
  .fixe {
    width: auto;
  }
}

/* Correction cd-onglet-horizontaux */
@media (max-width: 576px) {
  ul.cd-onglets-horizontaux > li {
    margin-right: 1rem;
    margin-left: 1rem;
  }
}

/* Affiche des rapport annuel */
div[id^=display] {
  display: none;
}


/* Recherche */
.recherche {
    padding: 2rem 30px;
    background-image: url(/ressources/images/a00-sondage-alveole.svg);
    background-repeat: no-repeat;
    background-position-x: 110%;
    background-position-y: bottom;
}

.recherche.selected {
    background-image: none !important;
}

.recherche #section-caisse-localisateur form {
    padding: 1.25rem 20px;
    text-align: left;
    border: solid 1px #cbcccc;
    background-color: #fff;
    margin: 0 auto;
    width: 72%;
}

.recherche #section-caisse-localisateur form div:last-child {
    margin-top: 1.25rem;
}

.recherche form label {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 1.378rem;
  line-height: 1.5;
  display: block;
  text-align: left;
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  letter-spacing: normal;
  color: #595959;
}

/*.recherche #section-caisse-localisateur form div.container{
	display: flex;
	margin-top: 0.31rem;
	align-items: center;
	width: 100%;
}*/


/*.recherche #section-caisse-localisateur form div.container button{
	flex-grow: 0;
	flex-shrink: 0;
}*/

.recherche form select#select-region {
    padding: 1px 6px;
	margin-right: 20px;
    height: 2rem;
    min-height: 44px;
    width: 100%;
    font-size: 1rem;
    border: solid 1px #cbcccc;
}
/*button.secondaire {
    padding: 9px 12px;
    line-height: 1.5;
    -moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
	width: 7.8rem;
}*/

#message-erreur-selection, #msgError, #msgError a:link {margin-top: .875rem; color: #CC0000; font-weight: 700;}

#section-caisse-localisateur select#select-region.erreur-selection {border: solid 3px #CC0000;}


html[style="font-size: 150%;"] .recherche h2, html[style="font-size: 200%;"] .recherche h2{
  max-width: 100%;
}
html[style="font-size: 150%;"] .recherche #section-caisse-localisateur form, html[style="font-size: 200%;"] .recherche #section-caisse-localisateur form{
    width: 100%;
}



@media (max-width: 768px) {

  .recherche{
    padding: 20px;
    background-image: none;
  }

  .recherche #section-caisse-localisateur h2{
	max-width: 100%;
  }
  .recherche #section-caisse-localisateur form{
	width: 100%;
  }
}
