/*
    Theme Name: Forms by RETP
    Version: 1.0
    Author: Bastien (Rose & Piment)
*/

/******************************
 
 [Table of Contents]
 
 1. Generale
 2. Header
 3. Carousel
 4. Formulaire
 5. Contact Form
 6. Contenu
 7. Footer
 3. Connexion
 9. Scroll to Top
 10. 404
 
******************************/

@font-face {
    font-family: 'OpenSans Li';
    src: url('fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'OpenSans Se';
    src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* 
 1. Generale
*/

:root {
    --noir-1: #222;
    --gris-1: #f8f9fa;
    --violet-1: #883d90;
}

body,
html {
    width: 100%;
    height: auto;
    font-size: 16px;
}
body {
    font-family: 'OpenSans Li', Helvetica, sans-serif;
    background-color: #fff;
    overflow-x: hidden;
    color: var(--noir-1);
}

section {
    padding: 3rem 0;
}

b,
strong {
    font-family: 'OpenSans Se', Helvetica, sans-serif;
    font-weight: 900;
}

a {
    color: var(--noir-1);
    text-decoration: none;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

button:hover,
button:focus,
a:hover,
a:focus {
    box-shadow: 0 !important;
    outline: 0 !important;
}

p {
    color: var(--noir-1);
    line-height: 1.3;
    margin-bottom: 20px;
}
p:last-child {
    margin-bottom: 0;
}

ul {
    list-style-type: circle;
    padding-left: 15px;
}
ul li {
    color: var(--noir-1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Times, "Times New Roman", Georgia, serif;
}
h1 {
    text-transform: uppercase;
    text-align: center;
    position: relative;
}

figure {
    margin: 0;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE10+ CSS here */
    .card > * {
        flex: 0 0 auto;
    }
}

/* 
 2. Header
*/

header .logo {
    max-height: 60px;
    display: block;
    margin: 0 auto;
}

header .nav-pills li {
    align-items: center;
    display: flex;
    margin-right: 1rem;

}
header .nav-pills li:last-child {
    margin-right: 0;
}
header .nav-pills li:last-child a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    background-color: var(--violet-1);
    border-radius: 15px;
    border: 0;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}
header .nav-pills li:last-child a:hover {
    background-color: var(--noir-1);
}

/* 
 3. Carousel
*/

#carouselForm {
    position: relative;
    border-radius: 25px;
    box-shadow: 0px 10px 15px 7px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}
#carouselForm .carousel-item {
    background-color: #f6f6f6;
    height: 300px;
    border-radius: 25px;
}
#carouselForm .carousel-item img {
    position: absolute;
    max-width: 1320px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 100%;
    margin: 0 auto;
    border-radius: 25px;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}
#carouselForm .carousel-item video {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

@media screen and (max-width: 767px) {
    #carouselForm .carousel-item {
        height: 230px;
    }
}

@media screen and (max-width: 575px) {
    #carouselForm .carousel-item {
        height: 200px;
    }
}

@media screen and (max-width: 460px) {
    #carouselForm .carousel-item {
        height: 150px;
    }
}

/* 
 4. Formulaire
*/

#formulaire h1 {
    margin-bottom: 1.5rem;
}
#formulaire h1:before {
    content: "";
    background-color: var(--noir-1);
    position: absolute;
    width: 8rem;
    height: 0.25rem;
    bottom: -0.4rem;
    right: 0;
    left: 0;
    margin: 0 auto;
}

#formulaire .form-wrapper {
    background-color: #f0f0f2;
    border-radius: 25px;
    box-shadow: 0px 10px 15px 7px rgba(0,0,0,0.1);
    padding: 3rem;
}

/* 
 5. Contact Form
*/

#contact-us input[type='text'],
#contact-us input[type='number'],
#contact-us input[type='email'],
#contact-us input[type='tel'] {
    width: 100%;
    height: 45px;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid var(--noir-1);
    margin-bottom: 5px;
    border-radius: 15px;
    color: var(--noir-1) !important;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}
#contact-us input[type='text']:hover,
#contact-us input[type='number']:hover,
#contact-us input[type='email']:hover,
#contact-us input[type='tel']:hover {
    border: 1px solid var(--noir-1);
}
#contact-us input[type='text']:focus,
#contact-us input[type='number']:focus,
#contact-us input[type='email']:focus,
#contact-us input[type='tel']:focus {
    color: #fff;
    outline: none;
    border: 1px solid var(--noir-1);
}
#contact-us textarea {
    height: 20.5rem !important;
    max-width: 100%;
}
#contact-us .frm_button_submit {
    font-family: Times, "Times New Roman", Georgia, serif;
    display: block;
    font-size: 1.2rem;
    height: auto;
    padding: 0.5rem 2rem;
    color: #fff;
    background-color: var(--noir-1);
    border-color: var(--noir-1);
    border-radius: 15px;
    outline: none;
    margin-top: 1rem;
    width: 100%;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
#contact-us .frm_button_submit:hover {
    background-color: #fff;
    color: var(--noir-1);
}
#contact-us .frm_button_submit:active {
    opacity: 0.9;
}

#contact-us ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--noir-1);
    opacity: 1; /* Firefox */
}
#contact-us :-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--noir-1);
}
#contact-us ::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--noir-1);
}

.grecaptcha-badge {
    display: none;
}

/* 
 6. Contenu
*/

#contenu {
    background-color: var(--gris-1);
}
#contenu h1 {
    margin-bottom: 1.5rem;
}
#contenu h1:before {
    content: "";
    background-color: var(--violet-1);
    position: absolute;
    width: 8rem;
    height: 0.25rem;
    bottom: -0.4rem;
    right: 0;
    left: 0;
    margin: 0 auto;
}

#contenu .card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0px 10px 15px 7px rgba(0,0,0,0.1);
}
#contenu .card img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
#contenu .card .card-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1;
}
#contenu .consulter {
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    background-color: var(--violet-1);
    border-radius: 15px;
    border: 0;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
    display: block;
    margin-top: 2rem;
    text-align: center;
}
#contenu .consulter:hover {
    background-color: var(--noir-1);
}

#contenu table {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 15px;
    box-shadow: 0px 10px 15px 7px rgba(0,0,0,0.1);
}
#contenu table thead {
    background-color: var(--gris-1);
}
#contenu table thead tr th:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
#contenu table thead tr th:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

#contenu .export-view {
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    background-color: var(--violet-1);
    border-radius: 15px;
    border: 0;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
    display: table;
    margin-left: auto;
    margin-top: 2rem;
}
#contenu .export-view:hover {
    background-color: var(--noir-1);
}

/* 
 7. Footer
*/

footer {
    font-size: 0.85rem;
}
footer .footer .small,
footer .footer .small a {
    color: var(--noir-1);
}

/* 
 8. Connexion
*/

#loginform {
    padding: 1.5rem 2rem 1rem;
    margin: 0 auto;
    width: 400px;
}
#loginform p {
    margin-bottom: 10px;
}
#loginform label {
    display: none;
}
#loginform input[type=text],
#loginform input[type=password] {
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    background-color: var(--noir-1);
    border: 0;
    border-radius: 15px;
    margin-bottom: 5px;
    color: #fff !important;
    font-size: 0.8rem;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}
#loginform input[type=submit] {
    display: block;
    font-size: 0.9rem;
    width: 100%;
    height: auto;
    padding: 0.65rem 2rem;
    color: #fff;
    background-color: var(--violet-1);
    border: 1px solid var(--violet-1);
    border-radius: 0;
    outline: none;
    margin: 0 auto;
    border-radius: 15px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
#loginform input[type=submit]:hover {
    background-color: var(--noir-1);
    color: #fff;
    border: 1px solid var(--noir-1);
}
#loginform ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #fff;
    opacity: 1; /* Firefox */
}
#loginform :-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #fff;
}
#loginform ::-ms-input-placeholder { /* Microsoft Edge */
    color: #fff;
}

/* 
 9. Scroll to Top
*/

.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    line-height: 60px;
    text-align: center;
    z-index: 100;
    cursor: pointer;
    background-color: var(--violet-1);
    border-radius: 15px;
    display: none;
    -webkit-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    transition: all 300ms ease;
}
.scroll-to-top:hover {
    color: #fff;
    background-color: var(--noir-1);
}

/* 
 10. 404
*/

.erreur {
    height: calc(100vh - 66px) !important;
}
.erreur .text-wrapper {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.erreur .title {
    font-family: Times, "Times New Roman", Georgia, serif;
    font-size: 5rem;
    color: var(--noir-1);
    position: relative;
    text-align: center;
}
.erreur .subtitle {
    font-size: 1.5rem;
    color: var(--noir-1);
    position: relative;
    text-align: center;
}
.erreur .buttons {
    margin-top: 4rem;
}
.erreur .buttons a.button {
    background-color: var(--violet-1);
    display: block;
    text-decoration: none;
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.erreur .buttons a.button:hover {
    background-color: var(--noir-1);
    color: #fff;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.erreur .subtitle:before,
.erreur .title:before {
    content: attr(data-content);
    position: absolute;
    left: -2px;
    text-shadow: 1px 0 blue;
    top: 0;
    color: white;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    -webkit-animation: noise-anim-2 3s infinite linear alternate-reverse;
    animation: noise-anim-2 3s infinite linear alternate-reverse;
}