@import "normalize.scss";
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap');
$font: 'Rubik', sans-serif;

/****************************************************
                      VARIABLES COULEURS
*****************************************************/

:root {
    --fond-standard: #fcfafc;
    --couleur-liens:  #660066;
    --couleur-ecriture: #330033;
    --liens-hover: #eeaaee;
    --couleur-white: #ffffff;
    --couleur-fond-titre: #663366;

    --fond: var(--fond-standard);
    --liens: var(--couleur-liens);
    --ecriture: var(--couleur-ecriture);
    --hover: var(--liens-hover);
    --white: var(--couleur-white);
    --fond-titre: var(--couleur-fond-titre);
}    

/****************************************************
                      GLOBAL
*****************************************************/

* {
	box-sizing: border-box;
}

img {
    max-width: 100%;
}

html, body {
	height: 100%;
	margin: 0; padding: 0;
    body {
        display : table;
        width: 100%;
        background-color: var(--fond);
       font-family: $font;
    }
}

a {
    text-decoration: none;
    color: var(--liens);
    &:hover {
        color: var(--hover);
        text-decoration: underline;
    }
}

/****************************************************
                      HEADER
*****************************************************/

nav {
    text-align: center;
    a {
        margin-left: 10px;
    }
}

/****************************************************
                      MAIN
*****************************************************/

h1, h2, h3 {
    background-color: var(--fond-titre);
    color: var(--fond);
}

p {
    color: var(--ecriture);
    text-align: center;
}

.haut, .millieu {
    text-align: center;  
}

.haut {
    a {
        font-size: 25px;
    }
}

.modal-dialog .modal-content {
    width: 100%;
    height: 100%;
}

.row-form {
    display: flex;
    flex-direction: row;
    label {
        width: 50%;
    }
    input {
        width: 50%;
        height: 20%;
        margin: auto;
    }
}

@keyframes slideDownFadeIN {
    from {top:-100px;opacity: 0;}
    to {top:0px;opacity:1;}
}

.modal {
    display: none; 
    left: 0;
    top: 0;
    top: 130px;
    width: 100%;
    height: 80%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal:target {
    display: table;
    position: absolute;
    .modal-dialog {
        display: table-cell;
        vertical-align: middle;
    }
}

.modal-dialog .modal-content {
    margin: auto;
    background-color: white;
    position: relative;
    padding: 0;
    outline: 0;
    border: 1px #777 solid;
    text-align: justify;
    height: 75%;
    animation-name: slideDownFadeIN;
    animation-duration: 0.5s;
    border-radius: 30px;
    .closebtn {
        text-decoration: none;
        float: left;
        font-size: 20px;
        font-weight: bold;
        color: black;
        padding: -20px -20px 0 -20px;
    }
}

.container-contact {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

input {
    margin-left: 20px;
    margin-top: 10px;
}

/****************************************************
                      FOOTER
*****************************************************/

footer {
    display : table-row;
	height: 100px;
    nav {
        margin-top: 30px;
    }
}

/******************************************************************************/
/*=======================================================
                    MEDIA QUERIES
=========================================================*/
/******************************************************************************/

/*========================= RESPONSIVE TABLETTE ======================*/

@media screen and (min-width: 768px){ /*s'applique à partir de 768px et au-delà*/

/* ============ GLOBAL ==============*/

/* ============ HEADER ==============*/

/* ============ MAIN ==============*/

.modal-dialog .modal-content {
    width: 50%;
    // height: 100%;
}

.modal {
    top: 130px;
    width: 100%;
    height: 50%;
}

/* ============ FOOTER ==============*/

} /*fermeture @media tablette*/

/******************************************************************************/

/*========================= RESPONSIVE DESKTOP ======================*/

@media screen and (min-width: 1025px){ /*s'applique à partir de 1025px et au-delà*/

/* ============ GLOBAL ==============*/

/* ============ HEADER ==============*/

/* ============ MAIN ==============*/

/* ============ FOOTER ==============*/

} /*fermeture @media desktop*/