@font-face {
    font-family: "Shapiro95";
    src: url('font/shapiro95.ttf');
}

body {
    background-color: #e52521;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

h1 {
    font-size: 3.3em;
    font-family: "Shapiro95";
}

* {
    color:black;
}

.footer_left {
    text-align: left;
}

header {
    padding: 15px;
}
.menu_button i {
    font-size: 2em;
    cursor: pointer;
}

.menu_button img {
    cursor: pointer;  
    width: 30px;
    height: 30px;
}
#menu_icon_open {
    display: none;
}

footer, header, .socials_links {
    display: flex;
}

footer {
    position: fixed;
    z-index: 9;
    bottom: 10px;
    width: 100%;
}
.socials_links a {
    text-decoration: none;
}
.socials_links li {
    list-style-type: none;
    font-size: 0.7em;
    margin-right: 1em;
    flex-grow: 1;
}

.footer_center {
    font-size: 0.7em;
}

footer>div {
    flex-grow: 1;
    align-self: flex-end;
    font-family: "Shapiro95";
}

header>div {
    flex-grow: 1;
    text-align: right;
}

header .site_logo {
    flex-grow: 2;
    text-align: left;
}

.site_logo img, .footer_right img {
    width: 125px;
}

.footer_right {
    text-align: right;
    padding-right: 30px;
}

.menu_bloc {
    position: absolute;
    height: 100%;
    width: calc(100% - 2em);
    background: #e52521;
    padding-right: 2em;
    display: flex;
    align-items: center;
    z-index: 9;
}

.menu_bloc.closed {
    display: none;
}
.menu_bloc.open {
    display: block;
}

.menu_liste {
    flex-grow: 1;
    top: 26vh;
    position: absolute;
    right: 25px;
}

.menu_liste li {
    list-style-type: none;
    margin-top: 0.4em;
    text-align: right;
    font-family: "Shapiro95";
    text-transform: uppercase;
    font-size: 3em;
}

.menu_liste li a {
    color:#171716;
    padding-left: 2em;
    text-decoration: none;
    border-bottom: 2px solid black;
}

.menu_liste li:hover a {
    color:black;
}

/* responsive */ 
.desktop {
    display: block;
}
.mobile {
    display: none;
}

.mobile.socials_links {
    padding-left: 10px;
    margin-bottom: 0;
}
.mobile.socials_links i {  
    font-size: 3em;
}

.desktop.socials_links {
    margin-bottom: 0;
    padding-left: 15px;
}

.main_content {  
    justify-content: center;
    min-height: calc(100vh - 175px);
    display: flex;
    align-items: center;
}

/* HOME PAGE */
.img_accueil {
    max-width: 350px;
}

.home_animation {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}


/* contact */
.contact_form {
    flex-direction: column;
}

.contact_form form input ,
.contact_form form textarea{
    font-family: "Shapiro95";
    font-size: 0.5em;
    padding: 5px 0px;
    background:transparent;
    color:black;
    padding-left: 5px;
    width: calc(100% - 5px);
}

.contact_form form textarea {
    height: 100px;
}
.home_content {
    position: relative; 
}

.home_content_logo, .galerie_content_logo {
    width: 30%; 
    left: 5%;
    position: absolute; 
    bottom: -50px;
}  

.galerie_content_logo{
    bottom: 0;
}

.home_content_pano {
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    display: block;
    border-left: 25px solid #e52521;
    border-right: 25px solid #e52521;
    box-sizing: border-box;
}

.home_content_logo,
.home_content_pano {
    display: none;
}

.contact_form form input:focus {
    border: none;
}

.contact_form h1 {
    margin-bottom: 0px;
}
.contact_form form input::placeholder,
.contact_form form textarea::placeholder {
    color:black;
}

.contact_form textarea {
    margin-top: -1px;
    margin-bottom: -3px;
    
}

.ctc_submit {    
    text-transform: uppercase;
    padding: 10px 0;
    width: 100% !important;
    margin-top: 15px;
    cursor: pointer;
}
.contact_form form {
    width: 410px;
}

.mail_send_message {  
    border: 1px solid black;
    padding: 1em 2em;
    font-family: Shapiro95;
    text-transform: uppercase;
}

.contact_form form >* {
    width: 100%;
    padding: 3px;
    border:1px solid black;
}
.col_half {
    border:none;
    padding: 0 !important;
    display: flex;
}

.col_half * {
    flex-grow: 1;
    border:none;
    padding-left: 5px !important;
}
.bordered_left {
    border-left: 1px solid black;
}

/* galerie */

  
  @supports (display: grid) {
  
    .grid-item {
      padding: 3.5em 1em;
      font-size: 1em;
      overflow: hidden;
      font-weight: 700;
    }
    .main {
      grid-area: main;
      padding: 0;
    }
  
    .footer {
      grid-area: footer;
      padding: 0.6em;
    }
  
    .items {
      position: relative;
      width: 100%;
      overflow-x: scroll;
      overflow-y: hidden;
      white-space: nowrap;
      transition: all 0.2s;
      bottom: -18px;
    }
  
    .item {
      display: inline-block;
      height: 290px;
      max-width: 250px;
      cursor: pointer;
      margin: 2em 1em;
    }
  }


.galerie_content {
    position: relative;
    width: 100%;
}

#galerie_photo_view {
    width: 100%;
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    height: 100%;  
    background: rgba(0, 0, 0, 0.9);
}

#galerie_photo_view img{
    width: auto;
    margin-left: auto;
    max-width: 100%;
    margin-right: auto;
}

#galerie_photo_view>div {
    margin-left: auto;
    max-width: 80%;
    margin-right: auto;
    position: relative;
}

#galerie_icon_close {
    position: absolute;
    font-size: 2em;
    color: #e52521;
    cursor: pointer;
    background: white;
    padding: 10px;
    opacity: 0.5;
    transition: all 0.2s;
}

#galerie_icon_close:hover {
    opacity: 1; 
    transition: all 0.2s;
}


/* admin */
.admin_body {
    overflow-y: scroll;
}
.login_form {
    border: 2px solid black;
    padding: 1em;
}

.login_button {
    border: 2px solid black;
    background: transparent;
}

.admin {
    font-family: "Shapiro95";
    margin-top: 5em;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.galerie_admin {
    display: flex;
    flex-wrap: wrap;
}

.img_preview {position: relative;}

.img_preview img{
    width: 170px;
    height: 170px;
    margin-right: 1em;
    margin-bottom: 1em;
}

.img_preview.add_photo {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    margin-right: 1em;
    border: 2px solid rgb(112, 20, 20);
    margin-bottom: 1em;
}

.img_preview.add_photo i {
    font-size: 5em;
    opacity: 0.8;
}

.icon_remove_photo {
    position: absolute;
    z-index: 9;
    top: 0;
    cursor: pointer;
    left: 0;
    background: #fff;
    padding: 5px 10px;
    font-size: 2em;
    opacity: 0.5;
}

.img_preview:hover .icon_remove_photo {
    opacity: 1;
}

@media only screen and (max-width : 1024px) {
    .socials_links a {
        font-size: 0.8em;
    }

    .footer_center {
        font-size: 0.7em;
    }
}

@media only screen and (max-width : 620px) {
    .desktop {
         display: none;
    }
    .mobile {
        display: flex;
    }

    .menu_liste li {
        font-size: 2em;
    }

    .menu_bloc {
        width: calc(100% - 1em);
        padding-right: 1em;
    }
    
    .footer_right {
        padding-right: 10px;
    }

    footer {
        margin-top: 2em;
    }
    .menu_liste{
        right: 20px;
    }

    /* homepage */
    .home_content_pano {
        height: 260px;
        object-fit: cover;
        object-position: 90%;
    }
    .home_content_logo {
        width: 50%;
        left: 5%;
        position: absolute;
        bottom: -20px;
    }

    .galerie_content_images img{
        max-width: 200px;
        height: auto;
        min-height: none;
    }

    .galerie_content_logo {
        width: 55%;
    }

    .contact_form {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact_form h1 {
        font-size: 2em;
    }

    .contact_form form {
        width: 100%;
    }

    .socials_links li {
        margin-right: 5px   ;
    }

    .socials_links li i {
        font-size: 1em;
    }
} 

