
/* =========================
   POLICES
========================= */

/* Polices disponibles sur ton Mac */
@font-face {
    font-family: "American Light";
    src: local("AmericanTypewriter-CondensedLight"),
         local("American Typewriter Condensed Light");
    font-weight: normal;
}

@font-face {
    font-family: "American Condensed";
    src: local("AmericanTypewriter-Condensed"),
         local("American Typewriter Condensed");
    font-weight: normal;
}


/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #d3e7f0;
    font-family: Verdana, sans-serif;
}


/* =========================
   PHOTO D'ACCUEIL
========================= */

.home {
    position: relative;

    width: calc(100% - 48px);
    height: calc(100svh - 48px);
    min-height: 450px;

    margin: 24px auto;

    background-image: url("assets/home.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* =========================
   LOGO DU HAUT
========================= */

.home-logo-top {
    position: absolute;

    top: 25px;
    left: 50%;
    transform: translateX(-50%);

    width: 175px;
    height: auto;

    display: block;
    z-index: 5;
}


/* =========================
   LOGO DU BAS À DROITE
========================= */

.home-logo-bottom {
    position: absolute;

    right: 45px;
    bottom: 45px;

    width: 110px;
    height: auto;

    display: block;
    z-index: 5;
}


/* =========================
   BOUTON
========================= */

.home-button {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;

    padding: 12px 22px;

    background-color: white;
    border: 3px solid #888;
    border-radius: 20px;

    color: black;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    cursor: pointer;
    z-index: 3;
}


/* Texte Custom your scarf */

.button-title {
    font-family: "American Light",
                 "American Typewriter",
                 serif;

    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
}


/* Texte - 50 € */

.button-price {
    font-family: "American Condensed",
                 "American Typewriter",
                 serif;

    font-size: 23px;
    font-weight: 400;
    line-height: 1.2;
}


.home-button:hover {
    background-color: #f5f5f5;
}


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

@media (max-width: 900px) {

    .home-logo-bottom {
        right: 45px;
        bottom: 45px;
        width: 100px;
    }

    .button-title {
        font-size: 26px;
    }

    .button-price {
        font-size: 20px;
    }
}


/* =========================
   TÉLÉPHONE
========================= */

@media (max-width: 600px) {

    .home {
        width: calc(100% - 24px);
        height: calc(100svh - 24px);
        min-height: 450px;

        margin: 12px auto;

        background-position: 15% center;
    }

    /* Logo du haut inchangé */

    .home-logo-bottom {
        right: 25px;
        bottom: 40px;
        width: 75px;
    }

    .home-button {
        gap: 4px;
        padding: 10px 14px;
        border-width: 2px;
    }

    .button-title {
        font-size: 21px;
    }

    .button-price {
        font-size: 17px;
    }
}
/* =========================
   MENU BURGER
========================= */

/* Position du menu */

.home-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 20;

    width: 230px;
    pointer-events: none;
}

/* Burger fixe en haut à droite */

.menu-icon {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;

    width: 45px;
    height: 35px;
    margin-left: auto;

    cursor: pointer;
    list-style: none;
    pointer-events: auto;
}

.menu-icon::-webkit-details-marker {
    display: none;
}

/* Traits blancs sur ordinateur */

.menu-icon span {
    display: block;
    width: 34px;
    height: 3px;

    background-color: white;
    border-radius: 3px;
}

/* Le burger reste blanc même ouvert */

.home-menu[open] .menu-icon span {
    background-color: white;
}

/* =========================
   FENÊTRE DÉROULANTE
========================= */

.menu-dropdown {
    position: absolute;
    top: 55px;
    right: 0;

    width: 230px;

    display: flex;
    flex-direction: column;

    background-color: white;
    border: 1px solid #888;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);

    pointer-events: auto;
}

/* Les deux cases */

.menu-dropdown a {
    display: block;
    padding: 18px 15px;

    color: black;
    text-align: center;
    text-decoration: none;

    font-family: Verdana, sans-serif;
    font-size: 15px;
    font-weight: normal;
}

/* Barre de séparation */

.menu-dropdown a + a {
    border-top: 1px solid #999;
}

/* Effet au survol */

.menu-dropdown a:hover {
    background-color: #eeeeee;
}

/* =========================
   VERSION TÉLÉPHONE
========================= */

@media (max-width: 600px) {

    .home-menu {
        top: 25px;
        right: 15px;
        width: 210px;
        max-width: calc(100vw - 45px);
    }

    .menu-icon {
        width: 40px;
        height: 35px;
        gap: 6px;
    }

    /* Burger noir sur téléphone */

    .menu-icon span,
    .home-menu[open] .menu-icon span {
        width: 28px;
        height: 3px;
        background-color: black;
    }

    /* Fenêtre sous le burger */

    .menu-dropdown {
        top: 55px;
        right: 0;

        width: 210px;
        max-width: calc(100vw - 45px);
    }

    .menu-dropdown a {
        padding: 16px 12px;
        font-size: 14px;
    }
}