body{
    margin: 0;
}
header{
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    background-color: rgb(184, 182, 182);
    border: 2px solid gray;
}
header h1 a{
    text-decoration: none;
    color: black;
}
header li {
    list-style: none;
}
header ul {
    display: flex;
    justify-content: space-around;
    gap: 50px;
}
main section li p:first-child{
    font-weight: bold;
}
main section div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(217, 217, 217);
    font-size: 20px;
}
main section div ol{
    list-style: square;
    align-self: center;
    margin-inline: 21.5%;
}
main section a{
    align-self: flex-end;
    padding: 20px;
    color: black;
    text-decoration: none;
}
main section p{
    font-size: 20px;
}
main section a:hover{
    text-decoration: underline;
}
main section:nth-child(2){
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: 150px;
}
main section article a {
    font-size: 20px;
    margin-left: -20px;
    text-decoration: underline;
}
main section article p{
    padding: 0 50px;
}
main section article div{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
article h3{
    font-size: 1.5em;
}
footer{
    border: 2px solid rgb(180, 180, 180);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 100px;
}
footer ul {
    display: flex;
    flex-direction: row;
    gap: 30px;
    list-style: none;
}
footer a{
    color: black;
}
footer a:hover{
    font-weight: bold;
}
footer h3, h4 {
    font-size: 1.5em;
}
form{
    display: flex;
    justify-content: center;
    
}
form div{
    background-color: rgb(217, 217, 217);
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    padding-inline: 2%;
    padding-top: 2%;
    margin-bottom: 5%;
}
form div h2{
    align-self: center;
    margin-top: -20px;
    font-size: 40px;
}
form input{
    width: 99.5%;
    height: 30px;
}
textarea{
    height: 87px;
}
button{
    width: 100px;
    align-self: flex-end;
    margin-block: 20px;
    background-color: rgb(178, 178, 178);
}
#idContact{
    font-size: 30px;
    margin-left: 2%;
    margin-top: 3%;
    margin-bottom: 3%;
}
.sectionPourPageDinfo{
    background-color: rgb(217, 217, 217);
    margin: 2%;
}
.sectionPourPageDinfo h2{
    background-color: white;
    padding-bottom: 30px;
}
.sectionPourPageDinfo article h3{
    padding-left: 2.5%;
}
.sectionPourPageDinfo > p:last-child{
    margin-left: 2.5%;
    font-weight: bold;
    padding-block: 2%;
}
#idMainAutrice{
    margin-inline: 2%;
    height: 600px;
}
#idAutriceDiv{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    margin-block: 2%;
}
#idPresentationAutrice{
    margin-top: 8%;
    align-items: start;
    padding-inline: 2%;
    align-self: center;
}
.classHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- For modals --- */
.classModalImage {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.classModalImage:hover {opacity: 0.7;}

/* The Modal (background) */
.classModal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.classModalContent {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#idCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  background-color: rgba(0, 0, 0, 0); /* Black w/ opacity */
}

/* Add Animation */
.classModalContent, #idCaption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.classClose {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.classClose:hover,
.classClose:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* --- Responsive design --- */
@media only screen and (min-width: 120px) and (max-width: 600px)
{
    header{
        flex-direction: column;
        align-items: start;
    }
    header ul{
        margin-left: -40px;
    }
    header img{
        width: 40px;
        height: 40px;
    }
    footer{
        height: 220px;
        flex-direction: column;
        align-items: start;
        padding-bottom: 50px;
        margin-top: 50px;
    }
    footer ul{
        flex-direction: column;
        margin-left: -40px;
    }
    main section article img{
        width: 200px;
    }
    form input{
        width: 97%;
        height: 30px;
    }
    form div h1{
        padding-top: 20px;
    }
    #idAutriceDiv img {
        width: 20%;
    }
    #idAutriceDiv h1{
        font-size: 30px;
    }
    #idPresentationAutrice{
        height: 500px;
        margin-bottom: -320px;
    }
    .classModalContent {
        width: 100%;
    }
}