/* OrgChart CSS Base: Reference https://www.cssscript.com/responsive-hierarchical-organization-chart-pure-css/ */


header {
  text-align: center;
  margin-bottom: 2em;
  padding-top: 2em;
  font-family: helvetica, sans-serif;
  font-size: 2em;
  padding-bottom: 2em;
}
section{
  z-index: 10000;
}
.container {
  max-width: 60%;
  margin: auto;
}
.organizational-chart h1 {
  font-family: helvetica, Arial, sans-serif;
  font-size: 2em;
}
.titre-generique h2 {
  font-family: helvetica, Arial, sans-serif;
  font-size: 1.3em;
  color: white;
  font-weight: 200;
}
.titre-entite h3 {
  font-family: helvetica, Arial, sans-serif;
  font-size: 1em;
  font-weight: 200;

}
 
 ul {
  text-align: left;
 }


ol.organizational-chart,
ol.organizational-chart ol,
ol.organizational-chart li,
ol.organizational-chart li > div {
  position: relative;
}

ol.organizational-chart,
ol.organizational-chart ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.organizational-chart {
  text-align: center;
}

ol.organizational-chart ol {
  padding-top: 1em;
}

ol.organizational-chart ol:before,
ol.organizational-chart ol:after,
ol.organizational-chart li:before,
ol.organizational-chart li:after,
ol.organizational-chart > li > div:before,
ol.organizational-chart > li > div:after {
  background-color: #b7a6aa;
  content: "";
  position: absolute;
}

ol.organizational-chart ol > li {
  padding: 1em 0 0 1em;
}

ol.organizational-chart > li ol:before {
  height: 1em;
  left: 50%;
  top: 0;
  width: 3px;
}

ol.organizational-chart > li ol:after {
  height: 3px;
  left: 3px;
  top: 1em;
  width: 50%;
}

ol.organizational-chart > li ol > li:not(:last-of-type):before {
  height: 3px;
  left: 0;
  top: 2em;
  width: 1em;
}

ol.organizational-chart > li ol > li:not(:last-of-type):after {
  height: 100%;
  left: 0;
  top: 0;
  width: 3px;
}

ol.organizational-chart > li ol > li:last-of-type:before {
  height: 3px;
  left: 0;
  top: 2em;
  width: 1em;
}

ol.organizational-chart > li ol > li:last-of-type:after {
  height: 2em;
  left: 0;
  top: 0;
  width: 3px;
}

ol.organizational-chart li > div {
  background-color: #fff;
  border-radius: 3px;
  min-height: 2em;
  padding: 0.5em;
}

/*** PRIMARY ***/
ol.organizational-chart > li > div {
  border: solid black 1px;
  margin-right: 1em;
}

ol.organizational-chart > li > div:before {
  bottom: 2em;
  height: 3px;
  right: -1em;
  width: 1em;
}

ol.organizational-chart > li > div:first-of-type:after {
  bottom: 0;
  height: 2em;
  right: -1em;
  width: 3px;
}

ol.organizational-chart > li > div + div {
  margin-top: 1em;
}

ol.organizational-chart > li > div + div:after {
  height: calc(100% + 1em);
  right: -1em;
  top: -1em;
  width: 3px;
}

/*** SECONDARY ***/
ol.organizational-chart > li > ol:before {
  left: inherit;
  right: 0;
}

ol.organizational-chart > li > ol:after {
  left: 0;
  width: 100%;
}

ol.organizational-chart > li > ol > li > div {
  background-color: black;
}

/*** TERTIARY ***/
ol.organizational-chart > li > ol > li > ol > li > div {
  background-color: #fff;
  
}

/*** QUATERNARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > div {
  background-color: #fca858;
}

/*** QUINARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > ol > li > div {
  background-color: #fddc32;
}


/* OrgChart CSS Response Screen: Reference https://www.cssscript.com/responsive-hierarchical-organization-chart-pure-css/ */
@media only screen and (min-width: 64em) {
  ol.organizational-chart {
    margin-left: -1em;
    margin-right: -1em;
  }

  /* PRIMARY */
  ol.organizational-chart > li > div {
    display: inline-block;
    float: none;
    margin: 0 1em 1em 1em;
    vertical-align: bottom;
  }

  ol.organizational-chart > li > div:only-of-type {
    margin-bottom: 0;
    width: calc((100% / 1) - 2em - 4px);
  }

  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(2),
  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(2) ~ div {
    width: calc((100% / 2) - 2em - 4px);
  }

  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(3),
  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(3) ~ div {
    width: calc((100% / 3) - 2em - 4px);
  }

  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(4),
  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(4) ~ div {
    width: calc((100% / 4) - 2em - 4px);
  }

  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(5),
  ol.organizational-chart > li > div:first-of-type:nth-last-of-type(5) ~ div {
    width: calc((100% / 5) - 2em - 4px);
  }

  ol.organizational-chart > li > div:before,
  ol.organizational-chart > li > div:after {
    bottom: -1em !important;
    top: inherit !important;
  }

  ol.organizational-chart > li > div:before {
    height: 1em !important;
    left: 50% !important;
    width: 3px !important;
  }

  ol.organizational-chart > li > div:only-of-type:after {
    display: none;
  }

  ol.organizational-chart > li > div:first-of-type:not(:only-of-type):after,
  ol.organizational-chart > li > div:last-of-type:not(:only-of-type):after {
    bottom: -1em;
    height: 3px;
    width: calc(50% + 1em + 3px);
  }

  ol.organizational-chart > li > div:first-of-type:not(:only-of-type):after {
    left: calc(50% + 3px);
  }

  ol.organizational-chart > li > div:last-of-type:not(:only-of-type):after {
    left: calc(-1em - 3px);
  }

  ol.organizational-chart > li > div + div:not(:last-of-type):after {
    height: 3px;
    left: -2em;
    width: calc(100% + 4em);
  }

  /* SECONDARY */
  ol.organizational-chart > li > ol {
    display: flex;
    flex-wrap: nowrap;
  }

  ol.organizational-chart > li > ol:before,
  ol.organizational-chart > li > ol > li:before {
    height: 1em !important;
    left: 50% !important;
    top: 0 !important;
    width: 3px !important;
  }

  ol.organizational-chart > li > ol:after {
    display: none;
  }

  ol.organizational-chart > li > ol > li {
    flex-grow: 1;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 1em;
  }

  ol.organizational-chart > li > ol > li:only-of-type {
    padding-top: 1em;
  }

  ol.organizational-chart > li > ol > li:only-of-type:before,
  ol.organizational-chart > li > ol > li:only-of-type:after {
    display: none;
  }

  ol.organizational-chart > li > ol > li:first-of-type:not(:only-of-type):after,
  ol.organizational-chart > li > ol > li:last-of-type:not(:only-of-type):after {
    height: 3px;
    top: 0;
    width: 50%;
  }

  ol.organizational-chart
    > li
    > ol
    > li:first-of-type:not(:only-of-type):after {
    left: 50%;
  }

  ol.organizational-chart > li > ol > li:last-of-type:not(:only-of-type):after {
    left: 0;
  }

  ol.organizational-chart > li > ol > li + li:not(:last-of-type):after {
    height: 3px;
    left: 0;
    top: 0;
    width: 100%;
  }
}


/* For Change open/close icon on Bootstrap’s button collapse with only CSS, Reference: http://typecode.digital/change-openclose-icon-on-bootstraps-button-collapse-with-only-css/ */
[aria-expanded="false"] .menu__icon--open {
    display: block;
}

[aria-expanded="false"] .menu__icon--close {
    display: none;
}

[aria-expanded="true"] .menu__icon--open {
    display: none;
}

[aria-expanded="true"] .menu__icon--close {
    display: block;
}

.bkg-black {
  background-color: black;
  color: white;
  border-radius: 8px;

}
.bkg-white {
  background-color: white;
  color:  black;
  border-radius: 8px;
}
.box {
  max-width: fit-content;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
              rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, 
              rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  z-index: 100;
}
.box:hover{
  transform: scale(1.2, 1.2);
}
.box a {
  text-decoration: none;
  color: black;
}



.intertitre {
  margin-bottom: 3em;
}

.etroit{
  max-width: 60%;
}

.flexbox {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.colonne-1 {
  margin-right: 0.5em;
}
.colonne-2, .colonne-3 {
  margin-left: 0.5em;
}
.colonne-1, .colonne-2, .colonne-3 {
  padding: 10px;
  max-width: 50%;
}

.colonne-unique img{
  max-width: 100%;
}
.colonne-unique p {
  padding: 10px;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background-color: #f6f6f6!important;
  border-radius: 5px;
  position: relative;
  transition: all 5s ease-in-out;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, 
              rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, 
              rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  
  
}


.popup .titre h1, .popup .intertitre h2 {
  font-family: Helvetica,sans serif;
  text-align: center;
}
.popup .titre h1 {
  font-size: 2em;
  margin-bottom: 2em;
}
.popup .intertitre h2 {
  font-size: 1.5em;
  padding-top: 2em;

}
p {
  font-family: Georgia, serif;
}



.button {
  cursor: pointer;
  transition: all 0.3s ease-out;

}
.button:hover {
  background-color: #fff;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #878583;
}
.scroller {
  height: 70vh;
  overflow-y: scroll;
}

.capital{
  background-image: linear-gradient(180deg,#444444 0%,#dddddd 100%);
  border-radius: 8px;


}
.capital .colonne-1, .capital .colonne-2 {
  text-align: center;
}
.gros {
  background-image: radial-gradient(circle at center,#ffffff 0%,#000000 100%);
  border-radius: 50% 50% 50% 50%;
  height: 6em;
  width: 6em;
  max-width: 6em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.petit { 
  background-image: radial-gradient(circle at center,#ffffff 0%,#000000 100%);
  border-radius: 50% 50% 50% 50%;
  height: 4em;
  width: 4em;
  max-width: 4em;
  display: flex;
  justify-content: center;
  align-items: center;

}
.moyen {
  background-image: radial-gradient(circle at center,#ffffff 0%,#000000 100%);
  border-radius: 50% 50% 50% 50%;
  height: 5em;
  width: 5em;
  max-width: 5em;
  display: flex;
  justify-content: center;
  align-items: center;

}
.white {
  color: white;
}
.arrow {
  color: white;
  font-size: 2em;

}
.capital .bkg-white {
  padding: 10px;
}
.close-end {
  text-align: center;
  font-size: 2em;
  font-weight: 600;
  color: black;
  text-decoration: none;
}
.end {
  text-align: center;
  margin-top: 2em;
}
.close-end:hover {
  color: #878583;

}
.leaders .colonne-1, .leaders .colonne-2, .leaders .colonne-3 {
  text-align: center;
  background-image: linear-gradient(177deg,#ffffff 0%,#dddddd 100%);
  border-radius: 20px 20px 20px 20px;
  overflow: hidden;
  box-shadow: inset 0px 0px 18px 0px rgba(0,0,0,0.3);
}
.name {
  font-family: helvetica, Arial, sans-serif;
  font-weight: 600;
}
.reduce {
max-width: 50%;
}









