/*
Theme Name: motaphoto
Theme URI: https://www.motaphoto.fr
Author: fatina
Author URI: https://fatina.com
Description: Thème "motaphoto2"
Version: 1.0
Tags: openclassrooms,motaphoto
Text Domain: motaphoto
*/
body{
  margin: 0; 
}
.flex {
  display: flex;
  justify-content: space-between;
}
.logo img {
  width: 300px;
  height: auto;
  margin: 30px;
}
main.container{
  width: 80%;
  margin: 40px auto;

}
h3.secondary_title{
  font-family: "space-mono-bold-italic";
  text-transform: uppercase;
}
header{
  box-shadow: 0px 5px 10px #e5e5e5;
}
/****************slider*********************/
.slider {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
}

.fond_slider {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.slider h1 {
  text-shadow: 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff, 3px 3px #fff, -3px -3px #fff, 3px -3px #fff, -3px 3px #fff;
  mix-blend-mode: lighten;
  align-self: center;
  position: absolute;
  font-family: "Space Mono", monospace;
  font-style: italic;
  font-size: 6vw;
  text-transform: uppercase;
}

.menu-menu-container {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
  padding: 13px;
}

ul li {
  font-family: "space-mono-bold-italic";
  list-style-type: none;
  margin: 0px 20px;
  text-decoration: none;

}

.menu-item-18 a,
.menu-item-19 a,
.menu-item-20 a {
  text-decoration: none;
  color: black;
}

.menu_toggle {
  display: none
}

#menu-menu.menu {
  display: flex;
  justify-content: flex-end;

}

.searchform {
  display: none
}

.hero_header {
  width: 100vw;
  margin-bottom: 25px;
}

.hero_header img {
  width: 100vw;
}

.hero_header #titre_header {
  position: absolute;
  top: 402px;
  left: 220px;
  z-index: 9999;

}
/****************************FILTRES**********************/
section.filtres {
  display: flex;
  justify-content: space-between;
}
section.filtres form select{
  margin: 20px 20px 20px 0px;
  padding: 10px;
  border-radius: 8px;
  width: 200px;
  border:thin solid #cbcbcb;
}
.filtres_taxo{
  display: flex;
}
/*************************************Galerie Photo accueil***************************/
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0px;
  grid-template-rows: repeat(4, auto);
  /* Deux lignes automatiques */
  grid-gap: 20px;
  /* Espacement entre les images */

}

.card {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}


.img_accueil {
  width: 100%;
  height: 410px;
  object-fit: cover;
  transition: .3s;
}

.cover {
  background-color: black;
  display: none;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0.6;
  color: white;
  font-weight: 700;
}

div.card:hover .cover
{
  display:block;

}


.icons {
  display: flex;
}

.icons #plein_ecran {
  position: absolute;
  top: 0;
  right: 0;

}

.icons #eye {
  position: absolute;
  top: 50%;
  left: 50%;
}

.info {
  display: flex;
  justify-content: space-between;
  bottom: 0;
  position: absolute;
  width: 100%;
}
p.info_categorie{
  float: right;
}

.boutton_plus {
  margin-top: 25px;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;

}

#load-more-btn {
  width: 200px;
  height: 30px;
  margin-bottom: 25px
}

#load-more-btn:hover {
  color: white;
  background-color: black;

}

.menu-footer-container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  border-top-style: solid;
  border-width: 1px;
  border-color: black;
}

#menu-footer ul {
  list-style-type: none;
}

.menu-item-36 a,
.menu-item-32 a,
.menu-item-33 a {
  text-decoration: none;
  color: black;
}

#menu-footer.menu {
  display: flex;

}

.menu-toggle {
  display: none
}

/*****single-photo**/
.abc {
  display: flex;
}

.contenu_droite {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom-style: solid;
  border-width: 1px;
  border-color: black;
}

.contenu_gauche {
  width: 50%;
}
.img_prev_next{
  display: flex;
  justify-content: space-between;
  margin: 20px;
}
img.previous-image, img.next-image {
  width: 75px;
  height: 75px;
  object-fit: cover;
}
.arrows{
  display: flex;
  justify-content: space-between;
}
.fleche img{
  width: 50px;
}
.fleche{
  text-align: center;
}
.visualisation_prev_next{
  margin: 10px;
}
.img_accueil2 {
  display: flex;
  height: auto;
  width: 100%;
  cursor: pointer;
}

.min_gallery {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid black;
}
.contact_single{
  display: flex;
  align-items: center;
}
.min_galerry p {
  font-family: Poppins;
  font-weight: 300;
  color: black;
  line-height: 21px;
}

.button_contact {
  margin: 20px;
  width: 245px;
  height: 38px;
  border:0;
  background-color: lightgrey;
  font-family: "space-mono-bold-italic";
}
.contenu_droite h3{
    line-height: 86px;
    font-style: italic;
    font-weight: 400;
    font-size: 80px;
    margin-bottom: 30px;
}
.contenu_droite{
  font-family: "space-mono-bold-italic";
}
.contenu_droite p{
  margin: 10px 0px;
}
.rand_img{
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.img_rand_img{
  margin: 10px;
  height: 30vw;
  width: 98%;
  object-fit: cover;
}
.diapo{
  margin: 60px 0px;
}

/*****Modal Contact**/

.wrapper {
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: white;

}

.wrapper a {
  display: inline-block;
  text-decoration: none;
  padding: 15px;
  background-color: #fff;
  border-radius: 3px;
  font-family: 'Roboto', sans-serif;
}

.modal {
  background-color: #000000e6;
  position: fixed;
  top:0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal:target {
  visibility: visible;
  opacity: 1;
}

.modal__content {
  border-radius: 4px;
  position: relative;
  width: 500px;
  max-width: 90%;
  background: #fff;
  padding: 1em 2em;
  margin-top: 0;
  border-color: black;
  border-style: solid;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #585858;
  text-decoration: none;
}
.modal__close:hover{
  cursor: pointer;
}
.image_header {
  overflow: hidden;
}

.image_header p {
  display: flex;
}
#formulaire{
  display: none;
  z-index: 2;
}
a.show_contact:hover{
  cursor: pointer;
}
/******************LIGHTBOX**************************/
.modal-lightbox {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 16px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000000ed;
}

.lightbox-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 30%;
  max-width: 900px;
}

.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}


img.img_accueil2_lightbox {
 width: 100%;
  height: auto;
}


.lightbox_arrows{  
  display: flex;
}
.next_lightbox{
  position: absolute;
  top: 50vh;
  right: 4px;
  }

.prev_lightbox{
  position: absolute;
  top: 50vh; 
 }  
/*****************Média Quéries***********************************/


/****************************** Menu-mobile*************************/

@media only screen and (max-width: 768px) {

  .menu-toggle {
    font-size: 50px;
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    color: #000;
    
  }


  nav {

    display: none;
    /* Par défaut, le menu est masqué */
    margin-top: 57px;
    /* Ajoute un espace entre le logo et le menu*/
    background-color: red;


  }

  .menu-menu-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
  }

  header {
    color: #fff;
    /*padding: 10px 20px;*/
  }



 

  .logo img {
    margin: 0;
    width: 150px;
  }



  nav.active {
    display: block;
    margin: 0;

  }



  .menu-item-18 a,
  .menu-item-19 a,
  .menu-item-20 a {
    color: white;
  }


  nav ul {
    display: flex;
    /* Affiche les éléments du menu en colonne */
    flex-direction: column;
    /* Change la direction de l'axe principal en colonne */


  }

  .close-menu {
    display: none;
  }

  .gallery {
    display: inline;
  }

  .wpc7 {
    display: flex;
  }

  .menu-footer-container {
    display: flex;
    /* Affiche les éléments du menu en colonne */
    flex-direction: column;
    /* Change la direction de l'axe principal en colonne */
    align-items: center;
    /* Centre les éléments horizontalement */
  }

  #menu-footer.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .menu#menu-footer ul {
    margin: 20px 20px;
  }


  section.filtres,.filtres_taxo {
    display: initial;
  }
  section.filtres form select{
    width: 100%;
  }
 
  .slider {
    height: 50vw;

  }
  header{
    position: fixed;
    width: 100%;
    background-color: white;
    z-index: 1;
  }
  nav {
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 57px;
    z-index: 1;
  }
  nav.active {
   margin-top: 57px;
  }
  ul#menu-menu.menu{
    padding: 0;
    margin-top: 60px;
  }
  header nav ul li {
    font-family: "space-mono-bold-italic";
    list-style-type: none;
    margin: 10px 20px;
    text-decoration: none;
    font-size: 35px;
  }
  .modal{
    z-index: 1;
  }

  .abc{
    display:initial
  }

  .img_accueil2{
    display: initial;
  }
}



/*******************************fonts*****************************/
@font-face {
  font-family: 'space-mono-bold-italic';
  src: url('./assets/fonts/Space_Mono/SpaceMono-Italic.ttf');
  font-display: swap;
  font-style: italic;
  font-weight: 700;
  ;
}

@font-face {
  font-family: 'space-mono ';
  src: url('./assets/fonts/Space_Mono/SpaceMono-Regular.ttf');
  font-display: swap;
  font-style: ;
  font-weight: 400;
}



@font-face {
  font-family: "Poppins";
  src: url('./assets/fonts/Poppins/Poppins-Light.ttf');
  font-display: swap;
  font-style: italic;
  font-weight: 300;
  ;
}