/* Les animations des menus déroulant : */

@keyframes clipPath {
    0% {
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg) scale(1);
        top: 4vw;
        opacity: 1;        
    }
}

@keyframes clipPathRes {
    0% {
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg) scale(1);
        top: 8vw;
        opacity: 1;        
    }
}

/* -                                                             - */
/* -                          HEADER                             - */
/* -                                                             - */

header {
    height: 34vw;
    width: 100%;
    background-color: rgb(209, 209, 209);
    border-bottom: 0.4vw solid rgba(64, 64, 64, 0.70);
}

/* -                                                             - */
/* -                          NAVBAR                             - */
/* -                                                             - */

nav {
    height: 4vw;
    width: 100%;
    background-color: #215158;
    box-shadow: 0px 0.05vw 0.7vw 0.05vw #404040;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 9999;
}

/* -                                                                            - */
/* -                          NAVBAR - CHRYSAL'HOME                             - */
/* -                                                                            - */

/* Affiche le nom du site dans la barre de navigation */

header > nav > .nav-name {
    border-right: solid 2px white;
    height: 100%;
    width: 16vw;
    background-color: #215158;
    display: flex;
    transition: 400ms;
}
header > nav > .nav-name:hover {
    height: 100%;
    width: 16vw;
    background-color: #256b75;
    display: flex;
    transition: 400ms;
}

header > nav > .nav-name > a {
    color: white;
    height: auto;
    width: auto;
    margin: auto auto auto 0px;
    font-size: 1.3vw;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Lato';
}

header > nav > .nav-name > ion-icon {
    color: white;
    margin: 1.05vw 0.8vw auto auto;
    font-size: 1.7vw;
}

/* -                                                                    - */
/* -                          NAV - SECTION                             - */
/* -                                                                    - */

header > nav > section {
    height: 100%;
    width: 50vw;
    background-color: #215158;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -                                                                       - */
/* -                          NAVBAR - CONTENU                             - */
/* -                                                                       - */

/* Affiche le contenu des menus déroulant */

.select {
    width: 12.5vw;
    height: 4vw;
    display: flex;
    border-bottom: 0.1vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0vw;
}

#diff {
    border-bottom: none;
}

.select:hover {
    background-color: #c4dfe3;
}

.select > a{
    color:black;
    text-decoration: none;
    margin: auto auto auto 1.0vw;
    font-size: 1.0vw;
    display: flex;
}

.select > a > ion-icon {
    font-size: 1.0vw;
    margin: auto 0.6vw auto 0.2vw;
    color: black;
}

/* -                                                                                   - */
/* -                          NAV - SECTION - PREMIER MENU                             - */
/* -                                                                                   - */

/* Bouton < A PROPOS > dans la barre de navigation */

header > nav > section > #menu-apropos {
    background-color: #215158;
    height: 100%;
    width: 14vw;
    display: flex;
    transition: 400ms;
}

header > nav > section > #menu-apropos:hover {
    background-color: #256b75;
    height: 100%;
    width: 14vw;
    transition: 400ms;
}

header > nav > section > #menu-apropos > a {
    color: white;
    text-decoration: none;
    font-size: 1.0vw;
    margin: auto;
    display: flex;
}

header > nav > section > #menu-apropos > a > ion-icon{
    font-size: 1.3vw;
    margin: -0.05vw 0.6vw auto auto;
    color: white;
}

/* -                                                                                    - */
/* -                          NAV - SECTION - DEUXIEME MENU                             - */
/* -                                                                                    - */

/* Bouton < PRESTATIONS > dans la barre de navigation */

header > nav > section > #menu-prestations {
    background-color: #215158;
    height: 100%;
    width: 14vw;
    display: flex;
    transition: 400ms;
}

header > nav > section > #menu-prestations:hover {
    background-color: #256b75;
    height: 100%;
    width: 14vw;
    transition: 400ms;
}

header > nav > section > #menu-prestations > a {
    color: white;
    text-decoration: none;
    font-size: 1.0vw;
    margin: auto;
    display: flex;
}

header > nav > section > #menu-prestations > a > ion-icon {
    font-size: 1.3vw;
    margin: -0.05vw 0.6vw auto auto;
    color: white;
}

/* Bouton < CARTE-CADEAU > dans la barre de navigation */

header > nav > #menu-carte-cadeau {
    background-color: #215158;
    height: 100%;
    width: 14vw;
    display: flex;
    transition: 400ms;
    border-right: 2px solid #dd7456 ;
    border-left: 2px solid #dd7456 ;
}

header > nav > #menu-carte-cadeau:hover {
    background-color: #256b75;
    height: 100%;
    width: 14vw;
    transition: 400ms;
}

header > nav > #menu-carte-cadeau > a {
    color: #dd7456;
    text-decoration: none;
    margin: auto;
    display: flex;
    justify-content: center;
}

nav img {
    max-width: 9%;
    margin-right: 5%;
}

/* Apparition du menu déroulant lorsqu'on survole le bouton < PRESTATIONS > dans la barre de navigation */

header > nav > section > #menu-prestations > #submenu-prestations {
    height: 20.4vw;
    width: 12.5vw;
    background-color: #ebfeff;
    border-radius: 0vw;
    position: absolute;
    display: none;
    top: 0vw;
    z-index: 9998;
    box-shadow: 1vw 1vw 2vw -1vw #000000;
}

header > nav > section #menu-prestations:hover #submenu-prestations {
    display: block;
    animation: clipPath 0.50s ease-out 1 forwards;
}

/* -                                                                                    - */
/* -                          NAV - SECTION - TROISIEME MENU                             - */
/* -                                                                                    - */

/* Bouton < PARTENAIRES > dans la barre de navigation */

header > nav > section > #menu-partenaires {
    background-color: #215158;
    height: 100%;
    width: 14vw;
    display: flex;
    transition: 400ms;
}

header > nav > section > #menu-partenaires:hover {
    background-color: #256b75;
    height: 100%;
    width: 14vw;
    transition: 400ms;
}

header > nav > section > #menu-partenaires > a {
    color: white;
    text-decoration: none;
    font-size: 1.0vw;
    margin: auto;
    display: flex;
}

header > nav > section > #menu-partenaires > a > ion-icon{
    font-size: 1.3vw;
    margin: -0.05vw 0.6vw auto auto;
    color: white;
}

/* Apparition du menu déroulant lorsqu'on survole le bouton < PARTENAIRES > dans la barre de navigation */

header > nav > section > #menu-partenaires > #submenu-partenaires {
    height: 20.4vw;
    width: 12.5vw;
    background-color: #ebfeff;
    position: absolute;
    display: none;
    top: 0vw;
    z-index: 9998;
    box-shadow: 1vw 1vw 2vw -1vw #000000;
}

header > nav > section #menu-partenaires:hover #submenu-partenaires {
    display: none;
    animation: clipPath 0.50s ease-out 1 forwards;
}

/* -                                                                                     - */
/* -                          NAV - SECTION - QUATRIEME MENU                             - */
/* -                                                                                     - */

header > nav > section > #menu-contact {
    background-color: #215158;
    height: 100%;
    width: 14vw;
    display: flex;
    transition: 400ms;
}

header > nav > section > #menu-contact:hover {
    background-color: #256b75;
    height: 100%;
    width: 14vw;
    transition: 400ms;
}

header > nav > section > #menu-contact > a {
    color: white;
    text-decoration: none;
    font-size: 1.0vw;
    margin: auto;
    display: flex;
}

header > nav > section > #menu-contact > a > ion-icon{
    font-size: 1.3vw;
    margin: -0.05vw 0.6vw auto auto;
    color: white;
}

header > nav > section > #menu-contact > #submenu-contact {
    height: 16vw;
    width: 14vw;
    background-color: rgb(255, 255, 255);
    border-radius: 1vw;
    position: absolute;
    display: none;
    top: 5vw;
    z-index: 9998;
}

/* -                                                                                     - */
/* -                          NAV - SECTION - CINQUIEME MENU                             - */
/* -                                                                                     - */

header > nav > section > #menu-coffrefort {
    background-color: #215158;
    height: 100%;
    width: 14vw;
    display: flex;
    transition: 400ms;
}

header > nav > section > #menu-coffrefort:hover {
    background-color: #256b75;
    height: 100%;
    width: 14vw;
    transition: 400ms;
}

header > nav > section > #menu-coffrefort > a {
    color: white;
    text-decoration: none;
    font-size: 1.0vw;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

header > nav > section > #menu-coffrefort > a > ion-icon{
    font-size: 1.3vw;
    margin: -0.05vw 0.6vw auto auto;
    color: white;
}

header > nav > section > #menu-coffrefort > #submenu-coffrefort {
    height: 16vw;
    width: 14vw;
    background-color: rgb(255, 255, 255);
    border-radius: 1vw;
    position: absolute;
    display: none;
    top: 5vw;
    z-index: 9998;
}

/* -                                                                      - */
/* -                          NAV - CONNEXION                             - */
/* -                                                                      - */

/* Affiche le bouton < CONNEXION > dans la barre de navigation */

header > nav > .nav-connexion {
    height: 100%;
    width: 25vw;
    background-color: #215158;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1em;
}

header > nav > .nav-connexion > button {
    height: 2.4vw;
    width: 80%;
    border: 1px solid #256b75;
    background-color: #256b75;
    display: flex;
    margin: auto;
    border-radius: 2vw;
    transition: 400ms;
    cursor: pointer;
    align-items: center;
}

header > nav > .nav-connexion > button > h1 {
    font-size: 1.1vw;
    font-weight: 100;
    margin: auto auto auto 10%;
    color: white;
}
header > nav > .nav-connexion > button > ion-icon {
    font-size: 1.3vw;
    margin: auto 0.6vw auto auto;
    color: white;
}


#logo_projet {
    max-width: 30px;
    margin-left: 8%;
}

header > nav > .nav-connexion > button:hover {
    height: 3vw;
    width: 11vw;
    border: 1px solid #256b75;
    background-color: #238999;
    display: flex;
    margin: auto;
    border-radius: 1.6vw;
    transition: 400ms;
    cursor: pointer;
}

/* BOUTON DECONNEXION */

header > nav > .nav-connexion {
    height: 100%;
    width: 16vw;
    background-color: #215158;
    display: flex;
}

header > nav > .nav-connexion > form > button {
    height: 3vw;
    width: 16vw;
    border: 1px solid #256b75;
    background-color: #256b75;
    display: flex;
    margin: auto;
    border-radius: 2vw;
    transition: 400ms;
    cursor: pointer;
    align-items: center;
}

header > nav > .nav-connexion > form > button > h1 {
    font-size: 1.1vw;
    font-weight: 100;
    margin: auto auto auto 15%;
    color: white;
}
header > nav > .nav-connexion > form > button > ion-icon {
    font-size: 1.3vw;
    margin: auto 0.6vw auto auto;
    color: white;
}


#logo_projet {
    max-width: 15%;
    margin-left: 8%;
}


/* Animation du bouton < DECONNEXION > dans la barre de navigation */

header > nav > .nav-connexion > form > button:hover {
    height: 3vw;
    width: 16vw;
    border: 1px solid #256b75;
    background-color: #238999;
    display: flex;
    margin: auto;
    border-radius: 1.6vw;
    transition: 400ms;
    cursor: pointer;
}

/* -                                                                                      - */
/* -                          NAV - SECTION - RESPONSIVE MENU                             - */
/* -                                                                                      - */

/* Le menu caché qui apparait seulement lorsque la taille de l'écran est équivalent à celle d'une tablette */

header > nav > #menu-responsive {
    background-color: #215158;
    height: 100%;
    width: 8vw;
    display: none;
    transition: 400ms;
}

header > nav > #menu-responsive:hover {
    background-color: #256b75;
    height: 100%;
    width: 8vw;
    transition: 400ms;
}

header > nav > #menu-responsive > a {
    color: white;
    text-decoration: none;
    font-size: 1.0vw;
    margin: auto;
    display: flex;
}

header > nav > #menu-responsive > a > ion-icon{
    font-size: 2.8vw;
    margin: auto;
    color: white;
}

/* Apparition du menu déroulant */

header > nav > #menu-responsive > #submenu-responsive {
    height: 20.4vw;
    width: 100%;
    background-color: rgb(255, 255, 255);
    position: absolute;
    display: none;
    top: 0vw;
    left: 0vw;
    z-index: 9998;
    box-shadow: 1vw 1vw 2vw -1vw #000000;
}

header > nav > #menu-responsive:hover #submenu-responsive {
    display: block;
    animation: clipPath 0.50s ease-out 1 forwards;
}

/* ------------------------------------------------------------------------------------------------ */

.menu-select-responsive {
    width: 100%;
    height: 4vw;
    display: flex;
    border-bottom: 0.1vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0vw;
}

#menu-selectt-responsive {
    border-bottom: none;
}

.menu-select-responsive:hover {
    background-color: #c4dfe3;
}

.menu-select-responsive > a{
    color:black;
    text-decoration: none;
    margin: auto;
    font-size: 1.0vw;
    display: flex;
}

.menu-select-responsive > a > ion-icon {
    font-size: 1.0vw;
    margin: auto 0.6vw auto auto;
    color: black;
}



/* -                                                                      - */
/* -                          HEADER - SECTION                            - */  /* ( Section en dessous de la barre de navigation )
/* -                                                                      - */

header > section {
    background-color: #F9F8F1;
    height: 30vw;
    width: 100%;
    position: relative;
    top: 4vw;
    display: flex;
}

/* Affiche l'image, adapte l'image selon la taille de l'écran */

header > section > img {
    width: 100%;
    height: 30vw;
    color: gray;    
}

/* -                                                                                   - */
/* -                          RESPONSIVE - TAILLE TABLETTE                             - */
/* -                                                                                   - */

/* Adapte le site pour la résolution d'une tablette */

@media screen and (max-width: 768px) {
    header {
        height: 46vw;
        width: 100%;
    }
    nav {
        height: 9vw;
    }
    header > nav > #menu-carte-cadeau {
        width: 32vw;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    header > nav > #menu-carte-cadeau > a {
        color: #dd7456;
        text-decoration: none;
        margin: auto;
        display: flex;
        justify-content: center;
        font-size: 2vw;
    }
    
    header > nav > .nav-name  {
        width: 32vw;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    header > nav > .nav-name:hover  {
        width: 32vw;
    }

    header > nav > .nav-name > a {
        font-size: 2.8vw;
        margin: 0;
    }
    header > nav > .nav-name > ion-icon {
        font-size: 3.6vw;
        margin: -0.3vw 1.5vw 0vw 0vw;
    }

    header > nav > #menu-responsive > a > ion-icon{
        font-size: 5vw;
    }

    header > section {
        background-color: #F9F8F1;
        height: 30vw;
        width: 100%;
        position: relative;
        top: 8vw;
    }
    header > section > img {
        width: 100%;
        height: 38vw;
    }

    .menu-select-responsive {
        height: 8vw;
    }

    header > nav > #menu-responsive > #submenu-responsive {
        height: 40.8vw;
    }
    header > nav > #menu-responsive:hover #submenu-responsive {
        display: block;
        animation: clipPathRes 0.50s ease-out 1 forwards;
    }
    .menu-select-responsive > a{
        font-size: 2.5vw;
    }
    .menu-select-responsive > a > ion-icon{
        font-size: 2.5vw;
    }

    /* MENUS DEROULANT */
    header > nav > section{
        display: none;
    }

    /* BOUTON CONNEXION */
    header > nav > .nav-connexion {
        display: none;
    }

     /* MENU RESPONSIVE CACHE */
    header > nav > #menu-responsive {
        display: flex;
    }
}