@import 'css/vars.css';
@import 'css/texts.css';
@import 'css/nav.css';
@import 'css/form.css';
@import 'css/modal.css';

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--main-bg-color);
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 6rem 2rem 2rem 2rem;
  position: relative;
  background-image: url(img/pipe.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: 92% 6px;
  background-color:  var(--primary-color);
}

header .wrapper {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

header .intro {
  flex : 1 1 50%;
}

header ul.interventions {
  margin: 0;
  padding: 0;
}

header ul.interventions li{
  display: inline-block;
  font-size : 1.3rem;
  text-transform: uppercase;
}

header ul.interventions li:not(:last-child)::after{
  content : '';
  display : inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary-shadow);
  border-radius: 10px;
  position: relative;
  margin: 0 0.5rem;
}

header .illu {
  flex : 0 0 50%;
}

header .illu::after {
  z-index: -1;
  content: '';
  display: block;
  width: 50%;
  height: 10px;
  left: 79px;
  background: #0000005c;
  border-radius: 70%;
  position: relative;
  bottom: -83px;
  box-shadow: 0 0 2px;
  animation : shadowing 7s infinite alternate ease-in-out;
}

@keyframes shadowing {
  from {
    opacity: 1;
  }
  to {
    opacity: .2;
  }
}

header .illu img {
  width: 100%;
  height: auto;
  position: relative;
  transform: translateY(90px);
  right: 0;
  animation : floating 7s infinite alternate ease-in-out;
}

  @keyframes floating {
    from {
        transform: translateY(90px);
    }
    to {
      transform: translateY(70px);
    }
  }

/* MAIN */
main {
  max-width: 1000px;
  width: 100%;
  margin: 60px auto;
}

section {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 1rem;
}

.content {
  margin-right: 2rem;
}

  /* PLAN D INTERVENTION */
  #services .box {
    height: auto;
    background: var(--secondary-color);
    border-radius: 20px;
    display: block;
    margin: auto;
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 600;
    box-sizing: border-box;
    box-shadow: 10px 10px 0 var(--secondary-shadow);
    min-width: 300px;
  }

  #services .box h3 {
    margin: 0;
    font-size: 1.2rem;
    text-indent: -0.5rem;
  }

  #services ul.interventions {
    list-style-type: none;
    font-size: 1rem;
    padding: 0;
    box-sizing: border-box;
  }

  #services ul.interventions li {
    position: relative;
    margin: 0;
    padding-bottom: 1em;
    padding-left: 2rem;
    font-weight: 400;
    font-size: .9rem;
  }

  #services ul.interventions li::before {
    background-color: #fff;
    width: 3px;
    content: '';
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 5px;
  }
  /* Start the line further down on the first list item */
  #services ul.interventions li:first-child::before { top: 15px;  }
  /* Stop the line short on the final list item */
  #services ul.interventions li:last-child::before { height: 15px; }

  #services ul.interventions .circle {
    display: block;
    position:absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 16px;
    border: 4px solid #d9e1e6;
    left: -6px;
    top:3px;
  }

  #services ul.interventions .focus {
    position: absolute;
  }

  #services ul.interventions .focus.animate {
    display: block;
    position:absolute;
    width: 16px;
    height: 16px;
    background: #03a9f4;
    border-radius: 16px;
    border: 4px solid #03a9f4;
    left: -6px;
    top:3px;
    animation: scaleIn 1s normal forwards linear;
  }

  @keyframes scaleIn {
    from {
      transform: scale(.5, .5);
      opacity: 1;
    }
    to {
      transform: scale(1.5, 1.5);
      opacity: 0;
    }
  }

.picture {
  border-radius: 20px;
  display: block;
  box-shadow: 10px 10px 0 var(--button-shadow);
}

/* ZONE */
#zone > div {
  flex : 1 1 50%;
  padding:0 1rem;
  box-sizing: border-box;
}

#zone .map {

}

/* INFOS UTILES */
.fiche {
  box-sizing: border-box;
  margin: 1rem;
  padding: 1rem 2rem;
  flex: 0 0 calc(50% - 2rem);
  border: 1px solid #e1dbdb;
  border-radius: 20px;
  color: #5a5656;
  position: relative;
  text-align: center;
}

.fiche h3{
  margin: 0;
  font-size: 1.5rem;
}

/* CTA */
button.cta {
  cursor: pointer;
  color: var(--button-text);
  background: var(--button-color) ;
  padding: 0.5rem 1rem;
  margin: 1rem 1rem 0rem 0;
  border-radius: 50px;
  border: unset;
  font-size: 1.3rem;
  box-sizing: border-box;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  transition: all .2s ease;
  position: relative;
  box-shadow: 6px 6px 0 var(--button-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
}

button.cta.secondary {
  background: var(--button-secondary-button) ;
  font-size: .9rem;
}

button.cta.interactive {
  background: var(--button-secondary-button) ;
  font-size: .9rem;
}

button:hover {
  box-shadow: 3px 3px 0 #232730;

}

button:hover .material-symbols-rounded {
  animation: ring .1s normal forwards linear;
}

button .material-symbols-rounded {
  vertical-align: bottom;
  font-size: 1.5rem;
  margin-right: .5rem;
}

@keyframes ring {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(0deg);
  }
}


/* CONTACT */
#horaires  {
  list-style-type: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#horaires li {
  padding: 1rem;
  border: 1px solid red;
  box-sizing: border-box;
  margin: 0;
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.125);
}

#horaires li:hover {
  color: #495057;
  text-decoration: none;
  background-color: #f8f9fa;
}

#horaires li.active, #horaires li.active:hover {
  color: #155724;
  background-color: #c3e6cb;
}

#horaires li.close, #horaires li.close:hover {
    color: #721c24;
    background-color: #f5c6cb;
}

/* FOOTER */
footer {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 2rem;
  position: relative;
  background-color:var(--primary-color);
  color: var(--font-color);
}

footer p {
  text-align: center;
  font-size: .8rem;
}

#coordonnees {
  list-style-type: none;
  margin: 0 0 0 .5rem;
  padding: 0 0 0 1rem;
  border-left: 1px solid #8d8d8d;
}

/* FLEX */
.separator {
  width:80%;
  background: #dbe0eb;
  height: 1px;
  margin: 2rem auto;
  position: relative;
}

.flex {
  display: flex;
}

.row {
  flex-direction: row;
}

.wrap {
  flex-wrap: wrap;
}

.j-center {
  justify-content: center;
}

.a-center {
  align-items: center;
}

.a-stretch {
  align-items: baseline;
}

.infos h3, .infos h4 {
  margin: 0;
}
