/* PERSONNALISATION DE LA POLICE */
@font-face {
    font-family: "Police-1";
    src: url(./assets/fonts/Montserrat-VariableFont_wght.ttf)
}

/* PARAMETRES GENERAUX */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family:"Police-1", sans-serif;
    list-style: none;
}
button {
    background: none;
    outline: none;
    border: 1px solid #f1f1f1;
    color: #f1f1f1;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.4s ease;
    cursor: pointer;
}
button:hover {
    color: #000;
    background: #f1f1f1;
}
a {
    text-decoration: none;
}
body {
    min-height: 100vh;
    margin: 0 auto;
    text-align: center;  
}

/* NAVIGATION */
nav {
    max-width: 1100px;
    margin: 0 auto;
}
nav ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;   
}
nav li {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative; 
    transition: 0.4s ease;
    padding: 20px 0;
}
nav li:first-child {
    color: #3782AE;
}
/* nav li:first-child::before {
    content: "";
    width: 100%;
    height: 5px;
    position: absolute;
    background: #3782AE;
    transform: translateY(-20px);
} */
nav li:hover::before {
    content: "";
    width: 100%;
    height: 5px;
    position: absolute;
    background: #3782AE;
    transform: translateY(-20px);
}
nav li:last-child::before {
    background: none;
}
#language { 
    padding: 10px 25px;
    background: rgb(230, 230, 230);
    border-radius: 50px;
}

/* SECTION HEADER */
.main-header {
    background: url(assets/img/ville-lyon.png) fixed center/cover;
    color: #f1f1f1;
    padding: 60px;
}
.main-header h1 {
    color: #333;
    text-transform: uppercase;
    padding: 15px;
    background: #fff;
    font-size: 1.3rem;
    width: 60%;
    margin: 30px auto;
}
.main-header button {
    padding: 15px 30px;
    letter-spacing: 2px;
}
.main-header i {
    transform: translateX(10px);
}

/* SECTION HEADER TEXT */
.header-text {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0;
    line-height: 25px;
}

.header-text h2 {
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 15px;
}

.header-text p {
    text-align: justify;
    padding-bottom: 10px;
}

/* SECTION ICON PART */
.icon-part {
    padding: 60px 10px;
    background: rgb(32, 32, 32);
    color: #f1f1f1;
}
.icon-part-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lip-logo {
    margin-bottom: 25px;
}
.list-icon-part h3 {
    text-transform: uppercase;
    font-weight: 600;
}
.list-icon-part p {
    width: 80%;
    margin: 10px auto 20px;
}
.list-icon-part button {
    padding: 10px 20px;
}

/* SECTION NEWS PART */
.news-part {
    background:#3782AE;
    padding: 50px 0 45px;
}
.header-news {
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 70% 30%;
}
.left-part {
    line-height: 35px;
}
.left-part h2 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: left;
    font-size: 1.2rem;
    color: #fff;
}
.left-part p {
    font-weight: bold;
    font-size: 0.7rem;
    text-align: left;
    color: #fff;
}
.right-part {
    display: flex;
    align-items: center;
    justify-content:flex-start;
}
/* .right-part button {
    padding: 8px 20px;
    color: #000;
    font-weight: bold;
    border: 1px solid rgb(32, 32, 32);
}
.right-part button:hover {
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.9);
} */
.main-news {
    max-width: 1100px;
    margin: 0 auto;
}
.main-news-container {
    display: flex;
    justify-content: space-around;
}
.main-news-container > div {
    max-width: 23%;
    position:relative;
}
.mn-pic img {
    object-fit: cover;
    width: 100%;
    -webkit-box-shadow: 2px 3px 15px -3px #000000; 
    box-shadow: 2px 3px 15px -3px #000000;
}
.main-news-container div h4 {
    margin: 15px 0;
    text-align: left;
    color: #fff;
}
.main-news-container div p {
    text-align: left;
    font-size: 0.8rem;
    line-height: 20px;
    margin-bottom: 45px;
    color: #fff;
}
.link {
    text-align: left;
    position: absolute;
    bottom: 0;
}
.link a {
    color: #002c4a;
    text-transform: uppercase;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.link a:hover {
    color: rgb(180, 180, 1);
}
.link i {
    transform: translateX(5px);
}

/* SECTION ICON PART */
.icon-part {
    padding: 60px 10px;
    background: rgb(32, 32, 32);
    color: #f1f1f1;
}
.icon-part-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lip-logo {
    margin-bottom: 25px;
}
.list-icon-part h3 {
    text-transform: uppercase;
    font-weight: 600;
}
.list-icon-part p {
    width: 80%;
    margin: 10px auto 20px;
}
.list-icon-part button {
    padding: 10px 20px;
}

/* SECTION NEWS PART2 */
.news-part2 {
    background:#f1f1f1;
    padding: 50px 0 45px;
}
.header-news2 {
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 70% 30%;
}
.left-part2 {
    line-height: 35px;
}
.left-part2 h2 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: left;
    font-size: 1.2rem;
    color: #333;
}
.left-part2 p {
    font-weight: bold;
    font-size: 0.7rem;
    text-align: left;
    color: #333;
}
.right-part2 {
    display: flex;
    align-items: center;
    justify-content:flex-start;
}
/* .right-part button {
    padding: 8px 20px;
    color: #000;
    font-weight: bold;
    border: 1px solid rgb(32, 32, 32);
}
.right-part button:hover {
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.9);
} */
.main-news2 {
    max-width: 1100px;
    margin: 0 auto;
}
.main-news-container2 {
    display: flex;
    justify-content: space-around;
}
.main-news-container2 > div {
    max-width: 23%;
    position:relative;
}
.mn-pic2 img {
    object-fit: cover;
    width: 100%;
    -webkit-box-shadow: 2px 3px 15px -3px #000000; 
    box-shadow: 2px 3px 15px -3px #000000;
}
.main-news-container2 div h4 {
    margin: 15px 0;
    text-align: left;
    color: #333;
}
.main-news-container2 div p {
    text-align: left;
    font-size: 0.8rem;
    line-height: 20px;
    margin-bottom: 45px;
    color: #333;
}
.link {
    text-align: left;
    position: absolute;
    bottom: 0;
}
.link a {
    color: #002c4a;
    text-transform: uppercase;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.link a:hover {
    color: rgb(180, 180, 1);
}
.link i {
    transform: translateX(5px);
}

/* SECTION CONTACT */
.contact {
    padding: 65px 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-list {
    display: flex;
    justify-content: space-around;
    font-weight: 400;
    position: relative;
}
.contact-list:after {
    content: "";
    position: absolute;
    width: 80%;
    height: 1px;
    background: rgb(235, 235, 235);
    bottom: -28px;
}
.contact-list .list  {
    width: 24%;
    text-align: left;
}
#contact-img img {
    margin: 0 auto;
    display: block;
}
.list h5 {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.infos-p li {
    margin: 15px 0;
    font-size: 0.9rem;
}
.list p {
    line-height: 22px;
    margin-bottom: 15px;
    font-size: 0.7rem;
}
.list h6 {
    font-size: 0.8rem;
    margin-bottom: 8px;
}
.list a {
    font-size: 0.9rem;
}
.list .network {
    margin: 20px 0 8px;
}
.footer-logos i {
    font-size: 0.9rem;
    margin: 0 12px 30px 0;
}
.copyright {
    margin: 0;
}
.contact-medias {
    margin: 80px 0 40px;
    display: grid;
    grid-template-columns: 28% 72%;
}
.medias-text h3 {
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 40px;
}
.medias-text p {
    font-size: 0.8rem;
    font-weight: bold;
}
.medias-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* SECTION FOOTER */

footer {
    background:rgb(32, 32, 32);
    padding: 25px;
}

footer h3 {
    text-transform: uppercase;
    color: #f1f1f1;
    margin-bottom: 25px;
}

footer ul {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    list-style-type: none;  
    color: #f1f1f1 
}

/* ------------------ media querie ---------------------- */
@media screen and (max-width: 895px) {
    nav li {
        font-size: 0.7rem;
    }
    .main-header img {
        width: 60%;
    }
    .contact-list .list {
        padding-left: 15px;
    }
    .medias-logos img {
        width: 40px;
    }
    footer ul {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 715px) {
    .header-text {
        margin: 0 30px;
    }
    .main-header h1 {
        width: 100%;
    }
    nav li {
        display: none;
    }
    .icon-part-container {
        display: block;
    }
    .icon-part {
        padding: 0 0 30px;
    }
    .list-icon-part {
        margin-top: 40px;
    }
    .header-news, .header-news2 {
        display: block;
    }
    .news-part h2, .news-part2 h2 {
        font-size: 1.6rem;
    }
    .news-part p, .news-part2 p {
        text-align: center;
        margin: 25px;
        font-size: 1.2rem;
    }
    .left-part, .left-part2 {
        width: 100%;
    }
    .left-part h2, .left-part2 h2 {
        text-align: center;
    }
    .left-part p, .left-part2 p {
        text-align: center;
        margin-bottom: 10px;
    }
    .right-part {
        display: block;
        margin: 0 auto;
    }
    .main-news-container, .main-news-container2 {
        display: block;
    }
    .main-news-container > div, .main-news-container2 > div {
        max-width: 90%;
        margin: 0 auto;
        padding-bottom: 15px;
        margin-top: 58px;
    }
    .main-news-container img, .main-news-container2 img {
        width: 100%;
    }
    .contact {
        display: none;
    }
    footer li {
        margin-bottom: 20px;
    }   
}

/* Section Contact */
/* .section-contact {
    width: 100%;
    height: auto;
}

.section-contact h2 {
    text-align: center;
    color: #333;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 50px;
}

.section-contact h2 strong {
    font-weight: 900;
} */

.container-form {
    margin: 20px auto;
    width: 50%;
    color: #f1f1f1;
}

.form-groupe {
    position: relative;
    display: flex;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.form-groupe label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 20px;
    transition: 0.4s ease-out;
}

.form-groupe input {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    outline: none;
    background: none;
    border-bottom: 3px solid #aaa;
    color: #666;
    font-size: 20px;
    transition: 0.4s ease-out;
}

textarea {
    width: 100%;
    height: 200px;
    border: none;
    border: 3px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    resize: none;
    outline: none;
    font-size: 20px;
    transition: 0.4s all ease-out;
    background: #f1f1f1;
}

textarea::placeholder {
    font-size: 20px;
    opacity: 0.5;
}

textarea:focus {
    border-color: #8b97d7;
}

.form-groupe:nth-child(4) {
    margin-bottom: 25px;
    justify-content: flex-start;
}

.form-groupe .button-submit {
    display: block;
    width: auto;
    padding: 15px 60px;
    border: 3px solid rgb(144, 144, 144);
    border-radius: 999px;
    background-image: linear-gradient(to right, transparent 50%, rgb(65, 65, 65) 50%, rgb(134, 134, 134));
    background-size: 200%;
    color: #bca3a3;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
}

.form-groupe .button-submit:hover {
    color: #fff;
    background-position: 100%;
    border: 3px solid #fff;
}

p.comments {
    display: inline-block;
    font-weight: bold;
    color: rgb(146, 31, 31);
    font-size: 12px;
}

.container-form.thank-you {
    position: relative;
    top: -20px;
    color: #f1f1f1;
}

@media screen and (max-width: 1300px) {
    .section-contact h2 {
        padding: 70px 0 0 0;
    }
    .container-form {
        padding-left: 0;
    }

    .form-groupe:nth-child(4) {
        justify-content: center;
    }
}

@media screen and (max-width: 400px) {
    .container-form {
        width: 90%;
    }
}



/* Animation Contact */
/* Quand un enfant de .form-group à le focus alors le label, on va l'utiliser où lorsque .form-groupe.animation à le label */
.form-groupe:focus-within label,

.form-groupe.animation label {
    top: 0px;
    transform: translateY(-100%);
    color: #e9dfdf;
}

