@import url('style-contact.css');
@import url('style-occasions.css');
@import url('style-produit.css');

:root {
    --background-color: #FFFFFF;
    --green-color: #376D5D;
    --yellow-color: #FFEBAD;
    --pink-color: #FFD3F8;
    --black-color: #000000;
    --white-color: #ffffff;
}

/* Font */

@font-face {
    font-family: 'titre';
    src: url('../fonts/cornella.otf') format('opentype');
}

@font-face {
    font-family: 'soustitre';
    src: url('../fonts/TTChocolates-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'texte';
    src: url('../fonts/TTChocolates-Regular.otf') format('opentype');
}

/* ----------- PAGE EN GÉNÉRAL---------- */

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
}

body{
    display: flex;
    flex-direction: column;
    margin: 0px;
}

/* ----------- SECTION HEADER ---------- */

.header {
    display: flex;
    justify-content: space-around;
    background-color: var(--pink-color);
    font-family: 'texte';
    font-size: 20px;
    padding: 10px;
}

.header__search, .header__link {
    margin-top: 5px;
}

.header__numero, .header__connexion, .header__panier {
    margin: 10px;
    color: var(--green-color);
    text-decoration: none;
}

.header__image {
    width: 175px;
    height: 179px;
    margin: 5px;
}

.header__form input{
    border: 1px solid var(--green-color);
    width: 300px;
    height: 33px;
    font-family: 'texte';
    font-size: 20px;
}

input::placeholder {
    color: var(--green-color);
    font-family: 'texte';
    font-size: 20px;
}

/* ----------- MENU NAVIGATION ---------- */

.nav-menu {
    display: flex;
    align-items: center;
    background-color: var(--green-color);
    font-family: 'texte';
    height: 45px;
}

 .menu__occasions, .menu__bouquets, 
 .menu__apropos, .menu__soutien {
    display: flex;
    justify-content: center;
    text-decoration: none;
    color: var(--white-color);
    align-items: center;
    border-bottom: 2px solid var(--green-color);
    height: 43px;
    width: 177px;
    font-size: 20px;
}

.menu__link--active {
    background-color: var(--pink-color);
    color: var(--green-color);
    height: 100%;
    margin: 0;
    height: 43px;
}

.menu__occasions:hover, .menu__bouquets:hover,
.menu__apropos:hover, .menu__soutien:hover {
    background-color: var(--pink-color);
    color: var(--green-color);
    border-bottom: 2px solid var(--pink-color);
    cursor: pointer;
}

/* ----------- FOOTER---------- */

.footer {
    position: relative;
    padding: 10px;
    background-color: var(--pink-color);
    width: 100%;
    height: 50%;
}

.footer__form {
    display: flex;
}

.footer__form input{
    width: 299px;
    height: 40px;
    border: 1px solid var(--green-color);
    font-family: 'texte';
    font-size: 20px;
}

.footer__button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green-color);
    background-color: var(--yellow-color);
    width: 119px;
    height: 40px;
    font-size: 22px;
    font-family: 'soustitre';
    color: var(--green-color);
    cursor: pointer;
}

.footer__button:hover {
    background-color: var(--pink-color);
    cursor: pointer;
}

.footer__remerc, .footer__retab, 
.footer__romantisme, .footer__sourire{
    display: flex;
    flex-direction: row;
    text-decoration: none;
    font-family: 'texte';
    font-size: 20px;
    color: var(--green-color);
}

.footer__infolettre, .footer__link {
    margin-left: 10%;
    margin-bottom: 5px;
}

.footer__title {
    font-family: 'soustitre';
    font-size: 25px;
    color: var(--green-color);
    margin-bottom: 0 ;
    margin-top: 5px;
}

.footer__icone {
   position: absolute;
    top: 10px;
    right: 10px;
    margin-right: 10%;
}

.footer__link {
    margin-top: 10px ;
}

.footer__link > a:hover {
    color: var(--green-color);
    font-weight: bold;
}

/* MOBILE */
@media (max-width: 600px) {

    /* ---- Header ---- */
    .header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .header__link {
        display: contents;
    }

    .header__search {
        order: 1;
        flex: 1;
        margin-right: 10px;
        margin-top: 0;
    }

    .header__connexion {
        order: 2;
    }

    .header__panier {
        order: 3;
    }

    .header__logo {
        order: 4;
        flex-basis: 100%;
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }

    .header__numero {
        order: 5;
        text-align: center;
        margin: 10px;
    }

    .header__form input {
        width: 100%;
    }

    .header__image {
        width: 140px;
        height: 143px;
    }

    /* ---- Nav menu ---- */
    .nav-menu {
        flex-direction: column;
        height: auto;
        border-top: 2px solid var(--green-color);
    }

    .menu__occasions, .menu__bouquets,
    .menu__apropos, .menu__soutien {
        width: 100%;
    }

   /* ---- Footer ---- */
    .footer {
        height: auto;
    }

    .footer__infolettre, .footer__link {
        margin-left: 5%;
        margin-right: 5%;
    }

    .footer__form {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .footer__form input {
        flex: 1;
        min-width: 0;
    }

    .footer__button {
        width: 80px;
    }

    .footer__link {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 20px;
    }

    .footer__icone {
        position: static;
        margin-top: 20px;
        margin-right: 5%;
        display: flex;
        justify-content: flex-end;
    }
    
    /* ---- Page Occasions ---- */
    .page__occasion {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .category {
        width: 100%;
        margin-top: 0;
    }

    .remerciement img, .amour img {
        width: 90px;
        height: 112px;
        margin: 30px 15px;
    }

    .populaires {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* ---- Page Soutien / Contact ---- */

    .contact__title, .politiques__title, .informations__title,
    .contact__text, .politiques__question, .informations__question,
    .politiques__reponse, .informations__reponse {
        margin: 20px;
    }

    .contact__formulaire {
        padding: 20px;
    }

    .formulaire {
        width: 100%;
    }

    .formulaire__champ {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .formulaire__champ input,
    #sujet {
        width: 100%;
    }

    /* ---- Page Produit ---- */

    .produit {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin: 20px auto;
        padding: 0 20px;
    }

    .image__sourire {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .image__livraison {
        width: 100%;
        max-width: 350px;
    }

    .produit__prix {
        flex-direction: column;
        width: 100%;
    }

    .produit__peluche, .produit__chocolat {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        width: 50px;
    }

    .produit__description {
        padding: 25px;
    }

    .description__titre {
        top: -20px;
        font-size: 20px;
        padding: 8px 14px;
    }

    .produit__commentaires {
        padding: 20px;
    }

    .commentaires__zone {
        min-height: 150px;
    }
}