/*          */
/* HISTOIRE */
/*          */
.histoire-container {
  margin: 4rem auto;
  margin-top: 6rem;
  padding: 4rem;
  width: 1000px;
  background: var(--bg-grey);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

@media screen and (max-width: 1000px) {
  .histoire-container {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .histoire-container {
    position: initial;
    padding: 2rem;
    margin: 0 auto;
  }
}

.histoire-container h1 {
  color: var(--text-grey);
  background: var(--bg-green);
  margin: 0 auto;
  padding: 1rem;
  position: absolute;
  top: 0;
  right: 50%;
  transform: translate(50%, -50%);
}

@media screen and (max-width: 800px) {
  .histoire-container h1 {
    width: 60%;
    position: initial;
    top: initial;
    right: initial;
    transform: initial;
  }
}

@media screen and (max-width: 500px) {
  .histoire-container h1 {
    width: 100%;
  }
}

.histoire-text {
  position: relative;
  padding: 2.5rem;
  margin: 2rem auto;
  color: var(--text-green);
  width: 100%;
}

@media screen and (max-width: 500px) {
  .histoire-text {
    padding: 0;
  }
}

.histoire-text::before, .histoire-text::after {
  content: '';
  position: absolute;
  width: 5rem;
  height: 5rem;
  border-style: solid;
  border-color: var(--text-green);
}

.histoire-text::before {
  top: 0;
  left: 0;
  border-width: .2rem 0 0 .2rem;
}

.histoire-text::after {
  bottom: 0;
  right: 0;
  border-width: 0 .2rem .2rem 0;
}

@media screen and (max-width: 500px) {
  .histoire-text::before, .histoire-text::after {
    display: none;
  }
}

.histoire-text p {
  margin-bottom: 1rem;
}

.histoire-text p:last-child {
  margin-bottom: 0;
}

.figure {
  width: 60%;
  margin: 0 auto;
}

@media screen and (max-width: 800px) {
  .figure {
    width: 100%;
  }
}

.figure-caption {
  margin: 1rem auto;
  margin-bottom: 0;
  background: var(--bg-green);
  padding: 1rem;
  text-align: center;
  color: var(--text-grey);
}

.figure img {
  width: 100%;
  margin: 0 auto;
}

/*                      */
/* DOMAINE INTERVENTION */
/*                      */
.expertise-container {
  margin: 4rem auto;
  margin-top: 6rem;
  padding: 4rem;
  width: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--bg-grey);
  position: relative;
}

@media screen and (max-width: 1000px) {
  .expertise-container {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .expertise-container {
    background: var(--bg-grey);
    padding: 2rem;
    margin: 0 auto;
  }
}

.expertise-container h1 {
  color: var(--text-grey);
  background: var(--bg-green);
  margin: 0 auto;
  padding: 1rem;
  position: absolute;
  top: 0;
  right: 50%;
  transform: translate(50%, -50%);
}

@media screen and (max-width: 1000px) {
  .expertise-container h1 {

  }
}

@media screen and (max-width: 800px) {
  .expertise-container h1 {
    width: 60%;
    position: initial;
    top: initial;
    right: initial;
    transform: initial;
  }
}

@media screen and (max-width: 500px) {
  .expertise-container h1 {
    width: 100%;
  }
}

.domaines-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

.domaine {
  margin: 2rem auto;
  display: flex;
  position: relative;
}

@media screen and (max-width: 800px) {
  .domaine:first-of-type {
    margin-top: 2rem;
  }
}

.domaine:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 1230px) {
  .domaine {
    position: initial;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 800px) {
  .domaine {
    padding: 0;
  }
}

.domaine-header-right, .domaine-header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-green);
  color: var(--text-grey);
  padding: 3rem;
  width: 240px;
  height: 175px;
}

.domaine-header-right {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(75%, -50%);
}

.domaine-header-left {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-75%, -50%);
}

@media screen and (max-width: 1230px) {
  .domaine-header-right, .domaine-header-left {
    position: relative;
    top: initial;
    right: initial;
    transform: initial;
    width: initial;
    height: initial;
    padding: 0;
    padding-bottom: 1.5rem;
    background: none;
    color: var(--text-green);
  }

  .domaine-header-right::after, .domaine-header-left::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    transition: .5s;
    border-bottom: .3rem solid var(--text-green);
  }
}

.domaine-title {
  margin: 0;
  color: var(--text-grey);
}

@media screen and (max-width: 1230px) {
  .domaine-title {
    color: var(--text-green);
  }
}

.domaine-header-right i, .domaine-header-left i {
  margin: 0.5rem auto;
  font-size: 2rem;
  color: var(--text-grey);
}

@media screen and (max-width: 1230px) {
  .domaine-header-right i, .domaine-header-left i {
    color: var(--text-green);
  }
}

.domaine-body {
  padding: 2.5rem;
  color: var(--text-green);
  position: relative;
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (max-width: 1230px) {
  .domaine-body {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 1000px) {
  .domaine-body {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .domaine-body {
    padding: 0;
  }
}

.domaine-body::before, .domaine-body::after {
  content: '';
  position: absolute;
  width: 5rem;
  height: 5rem;
  border-style: solid;
  border-color: var(--text-green);
}

@media screen and (max-width: 500px) {
  .domaine-body::before, .domaine-body::after {
    display: none;
  }
}

.domaine-body::before {
  top: 0;
  left: 0;
  border-width: .2rem 0 0 .2rem;
}

.domaine-body::after {
  bottom: 0;
  right: 0;
  border-width: 0 .2rem .2rem 0;
}

.domaine-body p {
  margin-bottom: 1rem;
}

.domaine-list:last-child {
  margin-bottom: 0;
}