/************************************ RESET ************************************/

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style-type: none;
    color: inherit;
    font-style: normal;
}
hr {
    visibility: hidden;
}

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

@font-face {
    font-family: "welcome2019";
    src:
        url("assets/fonts/welcome_2019/Welcome2019.otf") format("otf"),
        url("assets/fonts/welcome_2019/Welcome2019.ttf") format("truetype");
}
/*
@font-face {
    font-family: "sublima";
    src:
        url("assets/fonts/sublima/Sublima-ExtraLight.otf") format("opentype"),
        url("assets/fonts/sublima/Sublima-ExtraLight.ttf") format("truetype");
}
@font-face {
    font-family: "sublima";
    src:
        url("assets/fonts/sublima/Sublima-ExtraBold.otf") format("opentype"),
        url("assets/fonts/sublima/Sublima-ExtraBold.otf") format("truetype");
}
*/
/*
@font-face {
    font-family: "lunchtype21";
    src: url("assets/fonts/lunchtype21/Lunchtype21-Regular.ttf")
        format("truetype");
    font-weight: 300;
}
@font-face {
    font-family: "lunchtype21";
    src: url("assets/fonts/lunchtype21/Lunchtype21-Medium.ttf")
        format("truetype");
    font-weight: 600;
}
@font-face {
    font-family: "lunchtype21";
    src: url("assets/fonts/lunchtype21/Lunchtype21-Bold.ttf") format("truetype");
    font-weight: 800;
}
*/

@font-face {
    font-family: "gantari";
    src:
        url("assets/fonts/gantari/OTF/Gantari-Regular.otf") format("opentype"),
        url("assets/fonts/gantari/TTF/NonHint/Gantari-Regular.ttf")
            format("truetype");
    font-weight: 400;
}
@font-face {
    font-family: "gantari";
    src:
        url("assets/fonts/gantari/OTF/Gantari-Bold.otf") format("opentype"),
        url("assets/fonts/gantari/TTF/NonHint/Gantari-Bold.ttf")
            format("truetype");
    font-weight: 700;
}
@font-face {
    font-family: "gantari";
    src:
        url("assets/fonts/gantari/OTF/Gantari-Black.otf") format("opentype"),
        url("assets/fonts/gantari/TTF/NonHint/Gantari-Black.ttf")
            format("truetype");
    font-weight: 900;
}

@font-face {
    font-family: "gantari";
    src:
        url("assets/fonts/gantari/OTF/Gantari-Regular.otf") format("opentype"),
        url("assets/fonts/gantari/TTF/NonHint/Gantari-Regular.ttf")
            format("truetype");
    font-weight: 400;
}
@font-face {
    font-family: "gantari";
    src:
        url("assets/fonts/gantari/OTF/Gantari-Bold.otf") format("opentype"),
        url("assets/fonts/gantari/TTF/NonHint/Gantari-Bold.ttf")
            format("truetype");
    font-weight: 700;
}

* {
    --color-XXXL: #ff4773;
    --color-XXL: #9747ff;
    --color-XL: #4b4a9c;
    --color-L: #323232;
    --color-M: #88705f;
    --color-S: #cdb8a9;
    --color-XS: #f5e9e0;
    --color-XXS: #fff;

    --transparent-color-L: rgba(50, 50, 50, 0.5);

    --height-XL: 150px;
    --height-L: 86px;
    --height-M: 54px;
    --height-S: 44px;
    --height-XS: 20px;

    --width-M: 100px;

    --radius-L: 60px;
    --radius-M: 34px;
    --radius-S: 5px;

    --font-sans: "gantari";
    --font-fancy: "welcome2019";
    --font-color-dark: #323232;
    --font-color-light: #fff;
}
* {
    line-height: 110%;
    box-sizing: border-box;
}

/********************   layout  ********************/

body {
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--font-sans), Helvetica, Arial, sans-serif;
}
/*
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}
*/
body footer {
    height: var(--height-L);
}
.w75,
.w50,
.w33:nth-of-type(3n + 1),
.w33:nth-of-type(3n + 2),
.w25 {
    margin-right: 0.5%;
}
.w25 {
    width: 24.5%;
}
.w50 {
    width: 49.5%;
}
.w75 {
    width: 74.5%;
}
.w33 {
    width: 32.8%;
}

@media (max-width: 1172px) {
    .w33 {
        width: 49%;
        margin-right: 1%;
    }
    .w25 {
        width: 100%;
    }
}
@media (max-width: 598px) {
    .w33,
    .w50 {
        width: 100%;
        margin-right: 0;
    }
}

.grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: 5vh;
}
.grid > * {
    display: flex;
    flex-direction: column;
}
/********************   fonts  ********************/
h2 {
    font-size: 1.4em;
}
.fancy {
    font-family: var(--font-fancy);
    letter-spacing: 0.1em;
}
.fancy b {
    font-size: 140%;
}
.fancy small {
    font-size: 60%;
}

mark {
    background-color: var(--color-XS);
    padding: 0 0.2em;
}
address {
    font-size: 1.2em;
}
/********************   buttons & inputs  ********************/
a,
label,
button {
    cursor: pointer;
}

input[type="radio"] {
    visibility: hidden;
    position: absolute;
    opacity: 0;
    width: 0;
}

input[type="radio"] + label {
    visibility: visible;
}
button,
label {
    border-radius: var(--radius-M);
    height: var(--height-S);
    padding-left: 2%;
    padding-right: 2%;
}
label {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
button {
    padding: 0 1em;
    width: max-content;
    display: block;
    outline: none;
    background: transparent;
    color: var(--color-XL);
    border: 3px solid var(--color-XL);
    font-weight: bold;
}
button:hover {
    color: var(--color-XXL);
    border: 3px solid var(--color-XXL);
}
address:before {
    content: url("assets/icons/location.svg");
    margin-right: 0.2em;
}
.price {
    line-height: 20px;
    color: var(--color-M);
    font-weight: bold;
}
.price:before {
    content: url("assets/icons/price-euro.svg");
    transform: translateY(0.2em) translateX(-0.1em);
    display: inline-block;
    fill: var(--color-M);
}
.avatar img {
    height: var(--height-M);
    border-radius: 50%;
}
button.cta {
    height: var(--height-M);
    background: var(--color-XXL);
    border: none;
    color: var(--color-XXS);
    padding-left: 8%;
    padding-right: 8%;
    margin: 0 auto;
    letter-spacing: 1.2;
    font-size: 1em;
    font-weight: normal;
}
/******************** lists, navigation, pop-ups ********************/
nav,
nav ul,
nav ol {
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--transparent-color-L);
    display: none;
    z-index: 999;
}

#popup {
    position: fixed;
    width: 360px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-XXS);
    border-radius: var(--radius-S);
    padding: 20px;
    z-index: 1000;
}
#popup #close-btn {
    position: absolute;
    height: var(--radius-M);
    width: var(--radius-M);
    top: 3px;
    right: 6px;
    border: none;
    font-size: 18px;
    font-family: var(--font-fancy);
    cursor: pointer;
    transform: scaleX(140%);
}
#popup .content {
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

@media (max-width: 430px) {
    #popup {
        width: 92vw;
    }
}
@media (min-width: 900px) {
    #popup {
        width: 480px;
        height: 660px;
    }
    #popup #close-btn {
        font-size: 25px;
        top: 3%;
        right: 4%;
    }
}
/******************************************************** SNIPPETS ************************************/

.hero {
    height: 50vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--height-XS);
}

/******** Nav Display *******/

body > main:before,
nav.fancy {
    content: "";
    min-height: var(--height-XL);
    display: flex;
}
nav.fancy {
    color: var(--color-S);
    text-transform: uppercase;
    font-size: 1.8em;
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    background: var(--color-XXS);
    box-shadow: 5px 0 10px var(--color-XXS);
    z-index: 990;
}
nav.fancy a,
nav.fancy a b,
nav.fancy a small,
nav.fancy a span {
    display: block;
}

nav.fancy a:hover {
    color: var(--color-M);
}
nav.fancy a.selected {
    color: var(--color-L);
    transform: translateY(12px);
}
nav.fancy li {
    position: relative;
}
nav.fancy li:before {
    content: ">";
    position: absolute;
    top: 40%;
    left: -0.2em;
    font-size: 3em;
    transform: rotate(-10deg);
}
@media (max-width: 1172px) {
    nav.fancy {
        flex-wrap: wrap;
        font-size: 1.5em;
    }
    nav.fancy li:before {
        content: "|";
    }
    nav.fancy li:first-child:before {
        display: none;
    }
    nav.fancy a.selected {
        transform: none;
    }
}
@media (max-width: 900px) {
    nav.fancy {
        font-size: 1.2em;
    }
    nav.fancy li:before {
        display: none;
    }
}
@media (max-width: 598px) {
    body {
        margin: 0 4vw var(--height-XL) 4vw;
    }
    nav.fancy > *:first-child {
        position: absolute;
    }
    nav.fancy > *:last-child {
        position: fixed;
        bottom: 0;
        background: var(--color-XXS);
        width: 100%;
        padding: 3vh 1em;
        align-items: end;
        letter-spacing: 0;
        color: var(--color-L);
        border-top: 1px solid var(--color-XS);
    }
    nav.fancy > *:last-child b {
        font-size: 1em;
    }
    nav.fancy > *:last-child small {
        font-family: Helvetica, Arial, sans-serif;
    }
    nav.fancy a.selected {
        color: var(--color-XXL);
    }
}

/***** Cards and user profile ****/

.card {
    padding: 0 2%;
    justify-content: space-between;
}
.card main ul {
    display: block;
}
.card.greenpark main > img {
    filter: hue-rotate(5deg) saturate(130%) grayscale(60%) brightness(120%);
}
.card.indoorpark main > img {
    filter: hue-rotate(-20deg) grayscale(80%) brightness(120%);
}
.card.indoorpeace main > img {
    filter: hue-rotate(5deg) grayscale(30%) brightness(120%);
}
.card footer {
    display: flex;
    flex-direction: row-reverse;
    position: relative;
}
.card .user {
    cursor: pointer;
}
.card .user:first-child {
    z-index: 10;
}
.card .user:nth-child(2) {
    z-index: 9;
    transform: translateX(10px);
}
.card .user:nth-child(3) {
    z-index: 8;
    transform: translateX(20px);
}
.card .user-intro {
    width: max-content;
    min-width: var(--width-M);
    white-space: nowrap;
    text-align: right;
    background: #f5e9e0;
    position: absolute;
    top: -60px;
    right: -32px;
    padding: 11px var(--height-XS) 9px var(--height-XS);
    border-radius: var(--radius-S);
    display: none;
    visibility: hidden;
    opacity: 0;
    cursor: pointer;
}
.card .user-intro::after {
    z-index: -2;
    content: "";
    position: absolute;
    bottom: -20px;
    right: var(--height-M);
    background: #f5e9e0;
    width: 50px;
    height: 60px;
    transform: rotate(35deg);
    border-radius: 5px 5px 0 0;
    cursor: pointer;
}
.card .user:hover .user-intro {
    display: block;
    visibility: visible;
    opacity: 100%;
}

#popup .content img.profile-picture {
    width: 160px;
    border-radius: 50%;
    transform: translateY(-50%);
}

/******************************************************** PAGES ************************************/

/**********   meet parent  **********/

.filter {
    margin: 0 auto;
    text-align: center;
    display: flex;
    position: relative;
    width: calc(var(--width-M) * 3);
    height: var(--height-M);
    background-color: var(--color-XXS);
    border: 2px solid var(--color-L);
    border-radius: var(--radius-M);
    box-shadow: 4px 4px var(--color-L);
    padding-right: 4px;
}
.filter label {
    position: relative;
    top: 3px;
    left: 3px;
    transition: 0.25s cubic-bezier(0, 0, 0, 1);
}
.filter label:hover {
    background-color: var(--color-L);
    color: var(--color-XXS);
}
input[type="radio"]:checked + label {
    background-color: var(--color-L);
    color: var(--color-XXS);
}

/******************************************************** SECTIONS ************************************/

/**********   meet parent / card place & event **********/

.activity main > img {
    width: 100%;
    border-radius: var(--radius-S);
    border-top-right-radius: var(--radius-L);
}
.activity main p {
    padding: 1em 0;
    color: var(--transparent-color-L);
}
.activity footer:before {
    content: "Qui rencontrer ici ?";
    font-family: var(--font-fancy);
    text-align: right;
    font-size: 1.2em;
    position: absolute;
    top: -1.1em;
}
.activity h2 {
    display: inline-block;
    max-width: 80%;
    padding: 0.8em 1.4em 0.3em 0;
    background: var(--color-XXS);
    border-top-right-radius: var(--radius-M);
}
.activity main h2,
.activity main ul {
    transform: translateY(-1.5em);
}

.sitting > main {
    min-height: 260px;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
    border: 1px solid var(--color-XS);
    border-radius: var(--radius-M);
}
.sitting main > * {
}
.sitting address {
    width: 100%;
}
.kids {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}
.kid_avatar {
    width: var(--height-L);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
}
.kid_avatar b {
    font-size: 0.9em;
}
.kid_avatar img {
    background: var(--color-S);
    border-radius: 50%;
    height: var(--height-L);
    margin-bottom: 0.5em;
}

.when-sticker {
    width: 116px;
    height: var(--width-M);
    background: var(--color-XS);
    border-radius: var(--radius-S) var(--radius-S) 70% var(--radius-S);
    transform: translate(-28px, -28px);
}

.when-sticker .day,
.when-sticker .hours {
    display: block;
    margin-left: calc(var(--height-XS) + 2px);
    font-weight: 900;
}
.when-sticker .day {
    padding: 3px 0 0 3px;
}
.when-sticker .day.num {
    font-family: var(--font-fancy);
    color: var(--color-XXXL);
    font-size: 60px;
    letter-spacing: 4px;
    line-height: 80%;
}
.when-sticker .month {
    width: var(--width-M);
    height: var(--height-XS);

    text-align: right;
    padding: 6px 4px;
    text-transform: uppercase;
    display: block;
    transform-origin: top left;
    transform: rotate(-90deg);
    position: absolute;
    top: var(--width-M);
}
.when-sticker .hours {
    padding: 5px;
    background: var(--color-L);
    color: var(--color-XXS);
    border-radius: var(--radius-S) var(--radius-M) var(--radius-M)
        var(--radius-S);
    width: 70%;
    letter-spacing: 1px;
    font-weight: normal;
}
.when-sticker .hours time:last-child {
    display: block;
    font-size: 0.8em;
}
.when-sticker .hours time:last-child:before {
    content: "\2192";
}
.lover {
    position: relative;
}
.lover .avatar img {
    transform: scale(60%);
    position: absolute;
    top: -15px;
    left: -44px;
}
.lover .loves {
    padding-left: 5px;
    color: var(--color-XXL);
    width: 100%;
}
