/* Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, footer {
    min-height: 16vh;
}

#yellowtop {
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(255,240,0,1) 35%);
    height:6px;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

#projets {
    display: flex;
    flex-direction: row;
    width: 80%;
}

#filtres {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.btnfiltre {
    display:block;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: #6e6c6f;
    background-color: transparent;
    margin: 4px;
    display:block;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border: none;
    padding : 2px 4px 2px 4px;
}
.btnfiltre:active {
    color: black;
}
.btnfiltre:hover {
    color: black;
}
/* 
.btnfiltre {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  border: 3px solid;
  padding: 0.25em 0.5em;
  box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin: 2px;
}

.btnfiltre:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
} */

.btnfiltreactif {
    background-color: #fff000;
    color: black;
}

.hideSectionFiltre:after {
    content: "+";
}
.hideSectionFiltre > button:not(.btnfiltreactif) {
    display:none;
}


#cartes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: max-content
}

.carte {
    position: relative;
    margin: 0px 10px 20px 10px;
    margin-top : 0;
    border-bottom: 1px solid gray;
    width: 25vw;
}

.carte:hover {
    background-color: white;
}

.carte > a {
    text-decoration: none;
    color: #000;
}

.carte > a > figure {
    margin: 0;
}
.carte > a > figure > figcaption {
    margin-top: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    display:block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carte > a > figure > img {
    max-width: 100%;
}
.carte > a > span {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: #6e6c6f;
    margin-left:10px;
    margin-bottom: 30px;
    display:block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#projetimages {
    background-color: white;
    min-width : 50%;
    max-width : 80%;
    margin: auto;
}

#projetimages > img {
    display: block;
    max-width:100%;
    margin:0;
    margin-bottom: 10px
}

#projetimages > img:hover {
    opacity: 0.7;
}

#projetinfos {
    background-color: white;
    min-width : 50%;
    max-width : 80%;
    margin: auto;
}

#projetinfos > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 0px 0px 20px 0px;
}

#projetinfos > ul > li {
    list-style-type: none;
    font-weight: 600;
    margin:0px;
    padding:0px;
    margin-top: 20px;
    min-width: 196px
}

#projetinfos > ul > li > span {
    display: block;
    text-transform: uppercase;
    color: #6e6c6f;
}
#projettext {
    column-count: 2; /* Set the number of columns */
    column-gap: 20px; /* Optional gap between columns */
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid grey;
}

#projettext > p {
    word-wrap: break-word;
}
#projettext > p:first-of-type {
    margin-top: 0;
}

#projetequipe {
    margin: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid grey;
}

#projetequipe > h4 {
    text-transform: uppercase;
}
/* Style */
body { 
    margin:0; 
    padding:0; 
    background-color:#fff; 
    font-family:'Lato',sans-serif; 
    font-size:12px; 
    font-weight:400; 
    color:#000; 
}

h1 {
    text-transform: uppercase;
    color: #000;
    padding:  5px 20px 5px 20px;
    margin: 40px 0px 20px 0px;
    font-size: 1.4rem;
    font-weight: 400;
    border-bottom: 1px solid #000;
}

h1.projet {
        margin: 40px 0px 20px 0px;
        font-size: 16px;
        text-transform: none;
        border: none;
    font-weight: 700;
}

h3.lieudate {
    text-transform: uppercase;
    margin: 0px 0px 6px 0px;
    font-size: 12px;
    color: #6e6c6f;
}

header {
    padding-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    
}

footer {
    border-top: 1px solid lightgrey;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logodiv {
    width: 30em;
    padding-right: 10px;
}

#logotype {
    max-height: 15vh;
    margin-right: 0px;
    display:block;
    float: right;
}
#leftheader {
    width: 30em;
}

#nav-bar {
    display: flex;
    flex-flow: row;
    flex: 1 0 auto;
    justify-content: space-between;
    border-bottom: 1px solid lightgrey;
}

#nav-bar a {
    text-transform: uppercase;
    flex: 1 0;
    text-align: center;
    text-decoration: None;
    font-size: 1.2rem;
    color: grey;
    margin-left: 10px;
    margin-right: 10px;
    font-stretch: expanded;
    font-weight: 400;
    margin-bottom: 10px;
}
#nav-bar a:hover {
    color:black;
}

main {
    background-color: rgb(252, 252, 252);
}


form {
    min-width: 50%;
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    font-size: 1.0rem;
    color: black;
    line-height: 1.2;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: white;
}

form > p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


#btnenvoyer {
    background-color: black;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border: none;
    margin: auto;
    padding: 5px 15px 5px 15px;
}

input[type=text], input[type=email] {
    padding: 12px 20px;
    margin: 8px 0px;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid lightgrey;;
    border-bottom: 2px solid lightgrey;
    border-right: 2px solid lightgrey;
    background-color: rgb(252, 252, 252);
}
textarea {
    resize: none;
    width: 100%;
    height: 150px;
    padding: 12px 20px;
    margin: 8px 0px;
    box-sizing: border-box;
    border: 1px solid lightgrey;;
    border-bottom: 2px solid lightgrey;
    border-right: 2px solid lightgrey;
    background-color: rgb(252, 252, 252);
}

input[type=text]:focus, input[type=email]:focus {
    outline: none;
    background-color: white;
}

textarea:focus {
    outline: none;
    background-color: white;
}

/* images slide */

.imagesmodalbg {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(119, 119, 119);
}

.imagesmodalcontent {
    position: relative;
    background-color: white;
    margin: auto;
    padding: 10px;
    width: 90%;
    height: 80vh;
}

.imagesslide {
    text-align: center;
    display: none;
    opacity: 1;
    width: 90%;
    height: 80vh;
    margin: auto
}

.imagesslide > img {
    max-width: 100%;
    max-height: 78vh;
    display: block;
    margin: auto;
}

/* Next & previous buttons */
.prev,
.next,
.close {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.close {
  top: 0%;
  right: 0;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.close:hover {
    color:#000;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    
    #projets {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #cartes {
        display: grid;
        grid-template-columns: 1fr;
    }

    .carte {
        width: 90vw;
        margin: auto;
        margin-bottom: 20px;
    }

    #filtres {
        margin-left: 10px;
    }
    .btnfiltre {
        display: inline-block;
    }

}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

    #filtres {
        margin-left: 10px;
    }

    #projets {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #cartes {
        display: grid;
        grid-template-columns: 1fr;
    }
    .carte {
        width: 90vw;
    }
    .btnfiltre {
        display: inline-block;
    }

}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #filtres {
        margin-left: 10px;
    }

    #projets {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #cartes {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .carte {
        width: 40vw;
    }

    .btnfiltre {
        display: inline-block;
    }

}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #cartes {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    #projets {
        display: flex;
        flex-direction: row;
        width: 80%;
    }

    .carte {
        width: 25vw;
    }

    #filtres {
        width: 20vw;
    }
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #cartes {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    #projets {
        display: flex;
        flex-direction: row;
        width: 80%;
    }
    .carte {
        width: 20vw;
    }

    #filtres {
        width: 20vw;
    }
}

#adresse {
    text-align: center;
}