/* Media queries pour smartphones */


@media only screen and (min-width : 320px) and (max-width : 1024px) {
    
html {
    width: 100%;
    background-color: #f8f8f8;
    
}

body {
    margin:0;
    padding:0;
    background-color: #f8f8f8;
    max-width: 100%;
    }    
    
header {
    background-color: #f4f4f4;
    padding-left: 5%;
    padding-right: 5%;
    height: auto;
    padding-top: 2%;
    padding-bottom: 2%;
    color: #333;
}
    
footer {
    font-size: 1.8em;
    }
 
   
#logo {
    -webkit-box-shadow: 2px 6px 20px -4px rgba(0,0,0,0.75);
    -moz-box-shadow: 2px 6px 20px -4px rgba(0,0,0,0.75);
    box-shadow: 2px 6px 20px -4px rgba(0,0,0,0.75);
    position: relative;
    height: 200px;
    width: 200px;
}

/* Nom - Prénom et leitmotiv */
    
.titre-header {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    font-size: 2.3em;
    text-align: center;
    padding-right: 4%; 
    padding-top: 3%;
    position: relative;
    float: right;
    
}
    

/* Style commun aux titres de categories h2 */    
    
h2 {
    font-family: 'Open Sans', sans-serif;
}
    
.apropos, .experiences, .formations, .competences, .contact, .portfolio {
    display:flex;
    padding-left: 5%;
    padding-top: 50px;
    padding-bottom: 2%;
    font-size: 2em;
    color: #333;
    }
    
.apropos h2, .experiences h2, .formations h2, .competences h2, .contact h2, .portfolio h2 {
    padding-left: 2%;    
    }

 
#hamburger {
    display: block;
    background-color: #f4f4f4;
    text-align: center;
    }
    
#nav-burger {
    display:none;
    font-size: 3em !important;
    }
    
#nav-burger nav  {
    max-width: 100%;
    }
    
 #nav-burger nav ul li a {
    text-decoration: none;
    color: #333;
     border-bottom: 1px solid #dadada; 
     max-width: 100%;  
    }
    
#nav-burger nav ul li {
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    list-style-type: none; 
    background-color: #f8f8f8;
    margin-bottom: 20px;
    }
    
#nav-burger nav ul li:first-child {
    display: none;
    }  
    

    
    
form {
    text-align: center;
}

input[type=text], input[type=email], select, textarea {
    width: 72%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    margin-right: 15%;
    margin-left: 14%;
    font-family: 'Open Sans', sans-serif;
    font-size: 2em;
}

html input[type="submit"] {
    background-color: #21b2ed;
    color: white !important;
    padding: 12px 20px;
    border: 1px solid #21b2ed;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 2em;
    margin-top: 5%;
    margin-bottom: 5%;
}

input[type=submit]:hover {
    opacity: 0.8;
    font-family: 'Open Sans', sans-serif;
}  

legend {
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}

fieldset {
    border: none;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    margin: 5%;
}

#couleur-erreur {
    color: #cd1719;
    text-align: center;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-size: 2em;
    }   
    
#couleur-erreur2 {
    color: #21b2ed;
    text-align: center;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-size: 2em;
    }   
}



/* Media queries pour desktop large screen */

@media only screen and (min-width : 1824px) { 


#img-apropos:hover {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
    
    @keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-1px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(2px, 0, 0);
  }
}

form {
    text-align: center;
}

input[type=text], input[type=email], select, textarea {
    width: 72%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    margin-right: 15%;
    margin-left: 14%;
    font-family: 'Open Sans', sans-serif;
}

html input[type="submit"] {
     background-color: #21b2ed;
    color: white !important;
    padding: 12px 20px;
    border: 1px solid #21b2ed;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
}

input[type=submit]:hover {
    opacity: 0.8;
    font-family: 'Open Sans', sans-serif;
}  

legend {
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}

fieldset {
    border: none;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
}

#couleur-erreur {
    color: #cd1719;
    text-align: center;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    }
    
#couleur-erreur2 {
    color: #21b2ed;
    text-align: center;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    }   

#adresse {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    border: 1px solid #cd1719;
    max-width: 320px;
    margin: auto;
    border-radius: 20px;
    }
    
}









/* Media queries pour laptop */

@media only screen and (min-width : 1024px) { 
    
#img-apropos:hover {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
    
    @keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-1px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(2px, 0, 0);
  }
}

form {
    text-align: center;
}

input[type=text], input[type=email], select, textarea {
    width: 72%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    margin-right: 15%;
    margin-left: 14%;
    font-family: 'Open Sans', sans-serif;
}

html input[type="submit"] {
     background-color: #21b2ed;
    color: white !important;
    padding: 12px 20px;
    border: 1px solid #21b2ed;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
}

input[type=submit]:hover {
    opacity: 0.8;
    font-family: 'Open Sans', sans-serif;
}  

legend {
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}

fieldset {
    border: none;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
}

#couleur-erreur {
    color: #cd1719;
    text-align: center;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    }
    
#couleur-erreur2 {
    color: #21b2ed;
    text-align: center;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    }   

#adresse {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    border: 1px solid #cd1719;
    max-width: 320px;
    margin: auto;
    border-radius: 20px;
    }    
    
    
}