@font-face {
  font-family: 'Sansation';
  src: url('/fonts/Sansation_Bold.ttf');
}

:root {
  --main-color: #1E3191;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Sansation';
}

body {
  overflow-x: hidden;
}

h1,
h2 {
  text-transform: uppercase;
  text-align: center;
}

header {
  padding: 1em;

  background-image: url('/img/background.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

header nav {
  text-align: center;
  display: none;
  align-items: center;
  position: fixed;
  background-color: white;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

header nav img {
  width: 75%;
}

header img.desktop:hover {
  cursor: pointer;
}

.desktop {
  display: none;
}

header nav a {
  margin: 1em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.2em;
  color: var(--main-color);
}

header nav a:hover {
  color: black;
}

header .burger-container {
  position: absolute;
  z-index: 11;
  text-align: right;
  color: var(--main-color);
  font-size: 1.5em;
}

header iframe {
  width: 100%;
}

header h1 {
  margin: 10% 0;
  color: var(--main-color);
}

.liseraie {
  display: block;
  width: 100%;
}

section {
  padding: 2em;
}

#icones h1 {
  font-size: 1em;
}

#icones img {
  width: 100%;
}

#icones .pictos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

#icones .pictos>div {
  display: grid;
  justify-content: center;
}

#icones .pictos p {
  color: var(--main-color);
  text-align: center;
}

#entreprise .flex>div {
  overflow: hidden;
  position: relative;
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mySwiper2 .swiper-slide img {
  border-radius: 2%;
}

.swiper-container {
  width: 100%;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.mySwiper2 {
  height: 80%;
  width: 100%;
}

.mySwiper {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
}

.mySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

#services {
  background-color: var(--main-color);
  color: white;
  padding-bottom: 15%;
}

#services img,
#produits img {
  width: 100%;
  height: auto;
  border-radius: 2%;
}

#services a {
  text-decoration: none;
  font-size: 16px;
  color: white;
  padding: 10px;
  border: 2px solid white;
  display: block;
}

#services a:hover {
  background-color: white;
  color: var(--main-color);
}

#produits a {
  text-decoration: none;
  color: var(--main-color);
  font-size: 16px;
  padding: 10px;
  border: 2px solid var(--main-color);
}

#produits a:hover {
  color: white;
  background-color: var(--main-color);
}

#produits>p {
  text-align: center;
}

#gamme-produits h2 {
  font-size: 24px;
  text-align: left;
}

#gamme-produits p {
  font-size: 20px;
}

#gamme-produits .materiaux {
  display: block;
}


#gamme-produits .materiaux img {
  margin: .5em 0;
  width: 100%;
  height: auto;
}

#etapes>div {
  margin: 1em 0;
}

#etapes .icon {
  text-align: center;
}

#etapes .icon img {
  width: 50%;
}

#fabrication-images img {
  margin: 1em 0;
  width: 100%;
}

#norme {
  text-align: center;
}

#norme a {
  color: var(--main-color);
  text-decoration: none;
}

#norme a:hover {
  text-decoration: underline;
}

#rideaux .rideau {
  overflow: hidden;
  position: relative;
  margin: 1em 0;
}

#rideaux .rideau img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#rideaux .rideau .devoile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#rideaux .rideau .devoile img {
  height: 100%;
}

#rideaux .rideau .more {
  display: grid;
  display: -webkit-flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: var(--main-color);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .5s;
}

#rideaux .rideau .text {
  padding: 1em;
  background-color: var(--main-color);
  color: white;
}

#rideaux .rideau .text h2 {
  margin: 0px;
}

#rideaux .rideau:hover .more {
  opacity: 1;
}

#rideaux .rideau .more a {
  text-decoration: none;
  color: white;
  padding: 10px;
  border: 2px solid white;
}

#rideaux .rideau:hover .more a:hover {
  background-color: white;
  color: var(--main-color);
}

#photos img {
  width: 100%;
}

#description {
  padding: 0 2em;
}

#description p {
  font-size: 16px;
  text-align: justify;
}

#formulaire h2 {
  text-align: left;
  color: var(--main-color);
}

#formulaire input,
#formulaire textarea {
  width: calc(100% - 1em);
  padding: 1em;
  margin: .5em 0;
  border: 3px solid var(--main-color);
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Sansation', sans-serif;
}

#formulaire input[type="checkbox"] {
  width: auto;
}

#formulaire .name {
  display: flex;
}

#formulaire .name input {
  width: 47%;
}

#formulaire .name input:nth-child(1) {
  margin: 0 1% 0 0;
}

#formulaire .name input:nth-child(2) {
  margin: 0 0 0 1%;
}

#formulaire input[type="submit"] {
  background-color: var(--main-color);
  color: white;
}

#formulaire input[type="submit"]:hover {
  color: var(--main-color);
  background-color: white;
  cursor: pointer;
}

#formulaire .error {
  color: red;
}

#formulaire .success {
  color: green;
}

#dimensionnement img {
  width: 100%;
  height: auto;
}

#formulaire.devis h2, #formulaire.devis h3, #formulaire.devis h4, #formulaire.devis label[for="plafond"] {
  color: var(--main-color);
}

#dimensionnement #schema div p {
  font-style: italic;
}

#finition-coffre-schemas div {
  text-align: center;
}

#call2action {
  background-image: url('/img/call2action.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  padding: 5%;
}

#call2action.blue,
.blue {
  background: var(--main-color);
}


#call2action h2 {
  font-size: 1.5em;
  color: white;
}

#call2action nav {
  text-align: center;
  display: grid;
}

#call2action nav a {
  color: white;
  text-decoration: none;
  margin: 10px;
  padding: 10px;
  background-color: var(--main-color);
  border: 2px solid var(--main-color);
}

#call2action.blue nav a {
  border: 2px solid white;
}

#call2action nav a:hover {
  color: var(--main-color);
  background-color: white;
  border-color: white;
}

footer {
  padding: 5%;
  text-align: center;
}

footer a,
footer span {
  text-decoration: none;
  color: var(--main-color);
}

footer.blue a,
footer.blue span {
  text-decoration: none;
  color: white;
}

footer a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 728px) and (max-width: 1023px) {
  #etapes .icon img {
    width: 25%;
  }

  #rideaux {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1em;
    row-gap: 1em;
  }

  #formulaire .name input {
    width: 48%;
  }
}

@media screen and (min-width: 1025px) {
  .desktop {
    display: block;
  }

  header {
    padding-top: 2%;
  }

  header nav {
    display: block;
    position: initial;
    background: initial;
  }

  header div {
    display: flex;
    justify-content: center;
  }

  header nav.secondary {
    display: flex;
    justify-content: space-between;
  }

  header nav img.mobile {
    display: none;
  }

  header nav img {
    width: auto;
  }

  header nav a {
    margin: 1em 2em;
  }

  header .burger-container {
    display: none;
  }

  header h1 {
    font-size: 3em;
  }

  section {
    padding: 1em 15%;
  }

  .flex {
    display: flex;
  }

  #icones #mascotte {
    text-align: center;
    width: 20%;
  }

  #icones .pictos {
    width: 80%;
    grid-template-columns: repeat(4, 1fr);
  }

  #entreprise>div>div,
  #services>div>div,
  #produits>div>div {
    width: 50%;
  }

  section .text {
    padding: 5%;
    font-size: 20px;
  }

  #services {
    padding-bottom: 5%;
  }

  #services a {
    display: initial;
  }

  #services .image {
    order: 2;
  }

  #produits .flex,
  #services .flex {
    align-items: center;
  }

  #gamme-produits h2 {
    font-size: 36px;
  }

  #gamme-produits .materiaux {
    display: flex;
  }

  #gamme-produits .materiaux img {
    margin: 1em;
  }

  #etapes>div {
    display: flex;
    align-items: center;
    margin: initial;
  }

  #etapes>div .icon {
    width: 30%;
  }

  #etapes .icon img {
    width: 60%;
  }

  #etapes>div .text {
    width: 70%;
  }

  #etapes h2 {
    text-align: left;
  }

  #fabrication-images img {
    margin: 1em;
  }

  #rideaux {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1em;
    row-gap: 1em;
  }

  #photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1em;
    row-gap: 1em;
  }

  #description {
    padding: 1em 15%;
  }

  #description p {
    font-size: 20px;
  }

  #formulaire .name input {
    width: 48.5%;
  }

  .form-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 1em 0;
    row-gap: 1em;
    align-items: center;
  }

  #dimensionnement .form-group, #environnement .form-group, #tablier .form-group, .form-group.three-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-group.two-columns {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #dimensionnement #schema div {
    display: flex;
    align-items: center;
  }

  #dimensionnement #schema div img {
    width: 70%;
  }

  #call2action h2 {
    font-size: 2em;
  }

  #call2action nav {
    display: block;
  }

  footer {
    padding: 2%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes goUp {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -100%, 0);
  }
}