@import url('fonts/raleway-font.css');

:root {
  --liens: dimgray;
  --lienshover: Silver;
  --texte-site: dimgray;
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte-site);
}

a {
  text-decoration: none;
  color: var(--liens);
}
h1, h2{
  font-family: "Raleway-Bold", arial, sans-serif;
  font-weight: normal;
}
section h2 {
  text-transform: uppercase;
}

/* menu */
.header {
  background-color: #fff;
  /* box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1); */
  position: fixed;
  display: flex;
  width: 100%;
  z-index: 3;

  & a {
    color: var(--liens);
  }
}

.header ul {
  width: 70%;
  margin: 0 -80vw;
  padding: 1em 0;
  list-style: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
}

.header li a {
  display: block;
  padding: 20px 0;
  border-right: 1px solid white;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--liens);
  font-size: .8em;
}

.header li a:hover,
.header .menu-btn:hover {
  color: var(--lienshover);
}

.header .logo {
  display: block;
  width: 19%;
  display: flex;
  align-items: center;
  /* font-size: 2em; */
  padding: 10px 20px;
  text-decoration: none;
  text-transform: uppercase;
}

/* menu */

.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  /* display: inline-block; */
  float: right;
  margin: 28px 60vw;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 5px;
}

.header .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked~.menu {
  max-height: 260px;
}

.header .menu-btn:checked~.menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked~.menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked~.menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
  top: 0;
}

.apropos {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "un" "deux" "trois" "quatre";
  & section p, section em{
    text-align: justify;
    margin: 2em;
  }
  
}
.apropos section:nth-child(2n+1) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.apropos section:nth-child(1) {
  grid-area: un;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}
.apropos section:nth-child(2) {
  grid-area: deux;
}
.apropos section:nth-child(3) {
  grid-area: trois;
  text-align: center;

}
.apropos section:nth-child(4) {
  grid-area: quatre;
}
.borddroit{

  border-right: 1px solid dimgrey;
}

/* 48em = 768px */

@media (min-width: 48em) {
  .header {
    display: flex;

    & ul {
      flex-direction: row;
      margin: 0;
    }
  }

  .header li {
    float: left;
  }

  .header li a {
    padding: 20px 0;
  }

  .header .menu {
    clear: none;
    display: flex;
    justify-content: space-evenly;
    max-height: none;
  }

  .header .menu-icon {
    display: none;
  }
}

/* fin menu */
.home {
  padding-top: 22vh;
  text-align: center;
}

.pied {
  padding-top: 22vh;

  & aside ul {
    list-style: none;
  }
}

@media (min-width: 48em) {
  .apropos {
    padding-top: 22vh;
    display: grid;
    
    width: 60vw;
    margin-left: auto;
    margin-right: auto;
  }
  .apropos {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas: "un deux" "trois quatre";
    
  }
  .contact {
    padding-top: 22vh;
    display: grid;
    
    width: 60vw;
    margin-left: auto;
    margin-right: auto;
  }
  .realisations {
    padding-top: 22vh;
    display: grid;
    
    width: 60vw;
    margin-left: auto;
    margin-right: auto;
  }
  .pied {
    display: flex;
    justify-content: space-evenly;
  }

}

/* realisations */
.items {
  display: flex;
  max-width: 804px;
  width: 100%;
  justify-content: space-between;
}
.items .item{
  font-size: 0.6em;
  margin: 0.3em;
  padding: .5em;
  color: white;
  background-color: #333;
  text-transform: uppercase;

}
.items .item span{
  cursor: pointer;
  transition: all 0.3s ease;
}
.items span.active,
.items span:hover {

  background: var(--lienshover);
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  max-width: 810px;
  margin-top: 30px;
}

.gallery .image {
  width: calc(100% / 4.4);
  aspect-ratio: 1/1;
  margin: .5em;
  overflow: hidden;
}
.gallery .image .item{
  object-fit: cover;
}
.detail .image {
  width: calc(100% / 2.4);
}

.gallery .image span {
  position: relative;
}
.gallery .image span img {
  object-fit: cover;}

.gallery .image span p {
  width: 100%;
  position: absolute;
  color: aliceblue;
  text-align: center;
  padding-top: 4em;
}

.gallery .image img {
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.gallery .image:hover img {
  transform: scale(1.1);
}

.gallery .image.hide {
  display: none;
}

.gallery .image.show {
  animation: animate 0.4s ease;
}

@keyframes animate {
  0% {
    transform: scale(0.5);
  }

  100% {
    transform: scale(1);
  }
}
.preview-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  max-width: 700px;
  width: 100%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  border-radius: 3px;
  padding: 0 5px 5px 5px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

.preview-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}

.preview-box .details {
  padding: 13px 15px 13px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.details .title {
  display: flex;
  font-size: 18px;
  font-weight: 400;
}

.details .title p {
  font-weight: 500;
  margin-left: 5px;
}

 .icon {
  font-weight: bold;
  display: inline-block;
  width:97%;
  font-style: 22px;
  cursor: pointer;
  text-align: right;

}

.preview-box .image-box {
  width: 100%;
  display: flex;
}

.image-box img {
  width: 100%;
  border-radius: 0 0 3px 3px;
}

.shadow {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: rgba(0, 0, 0, 0.4);
}

.shadow.show {
  display: block;
}

/* form */
form {
	display: flex;
}
form > div {
	flex: 1;
	min-width: 0; /* fix for min-width: auto */
}
form > div + div {
	margin-left: 1em;
}

/* 2- fluid inputs */
div > p {
	display: flex;
}
form input:not([type=submit]) {
	flex: 1; /* fluid width */
	display: block; /* IE fix */
	min-width: 0; /* fix for min-width: auto */
}

/* 3- fluid textarea */
div + div {
	display: flex;
	flex-direction: column;
}
textarea {
	flex: 1; /* fluid height */
	display: block; /* IE fix */
}
form > div {
	padding: 1em;
	background: #fff;
	border: 1px solid gray;
	border-radius: 1px;
}
input,
textarea {
	padding: .3em;
	border: 1px solid #555;
	border-radius: 1px;
	font-family: inherit;
	font-size: inherit;
  background: rgba(0,0,0,.02);
}
input:focus,
textarea:focus {
	outline: none;
}
input[type="submit"] {
	padding: .3em .3em;
	background: #555;
	border: none;
	color: #fff;   
	border-radius: 4px;
	cursor: pointer;
  font-size: .9em;
}
label {
	width: 5em;
	margin-right: .5em;
	text-align: right;
}
input[type="submit"] {
	margin-left: auto;
}
div:first-child p:first-child {
	justify-content: flex-end;
}
textarea {
	resize: vertical;
	color: #aaa;
}
div > p:first-child {margin-top: 0;}
div > p:last-child {margin-bottom: 0;}
small {
	font-size: 0.8rem;
	color: #aaa;
}

/* small screens */
@media (max-width: 600px) {
	form {
		flex-direction: column;
	}
	form p {
		display: block;
	}
	label {
		display: block;
		width: auto;
		text-align: left;
	}
	form > div {
		width: auto;
	}
	form > div + div {
		margin-left: 0;
		margin-bottom: 1em;
		order: -1;
	}
	input {
		width : 100%
	}
  .gallery .image {
    width: calc(100% / 2.4);
  }
  .detail .image {
    width: calc(100% / 3.2);
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.css-button{
  min-width: 130px;
  height: 40px;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  border: 1px solid #585858;
  color: #fff;
  background: transparent;
  z-index: 0;
}
.css-button:hover:after {
  top: 0;
  left: 0;
}
.css-button:after {
  content: "";
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 5px;
  left: 5px;
  transition: 0.2s;
  background-color: #ced4da;
}
progress {
  accent-color: gray;
}
/* fin de form */