/* =========================================================
   PHILEAS POSTCARD
   ========================================================= */

.postcard-section {
    max-width: 1180px;
    margin: 55px auto 65px;
    padding: 0 24px;
}

.postcard {
    position: relative;
    overflow: hidden;

    padding: 42px 48px 34px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;

    background-color: #2b3035;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);
}


/* ---------- HEADER ---------- */

.postcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.postcard-eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;

    color: #d4af37;

    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;

    letter-spacing: 5px;
}

.postcard-envelope {
    font-size: 25px;
    letter-spacing: normal;
}

.postcard-tagline {
    color: #b89b68;
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-style: italic;

    transform: rotate(-3deg);
}


/* ---------- TITRE ---------- */

.postcard-title {
    margin: 27px 0 12px;

    color: #fff;

    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;

    line-height: 1.05;
}

.postcard-passed {
    margin: 0 0 28px;

    color: #e2e6e9;
    font-family: Inter, sans-serif;
    font-size: 16px;
}

.postcard-passed strong {
    color: #d4af37;
}


/* ---------- CONVERSATION ---------- */

.postcard-conversation {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    align-items: center;
    gap: 18px;
}

.postcard-message {
    min-height: 130px;

    padding: 23px 25px;

    border-radius: 13px;

    color: #17202a;

    font-family: Inter, sans-serif;

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.15);
}

.postcard-message-sender {
    background: #f4efe4;
}

.postcard-message-receiver {
    background: #dce8f2;
}

.postcard-message-waiting {
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255, 255, 255, 0.07);

    border: 1px dashed rgba(212, 175, 55, 0.5);

    color: #fff;

    text-align: center;
}

.postcard-message-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.postcard-message-head span {
    color: #7c858c;
    font-size: 13px;
}

.postcard-message p {
    margin: 16px 0 0;

    font-size: 17px;
    line-height: 1.5;
}

.postcard-arrow {
    color: #d4af37;

    font-size: 35px;
    text-align: center;
}


/* ---------- HOLDER ---------- */

.postcard-holder {
    display: flex;
    align-items: center;
    gap: 13px;
}

.postcard-holder div:last-child {
    display: flex;
    flex-direction: column;
}

.postcard-holder span {
    margin-top: 3px;

    color: #65727c;
    font-size: 13px;
}

.postcard-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #d4af37;
    color: #17202a;

    font-weight: 700;
}

.postcard-waiting-icon {
    color: #d4af37;
    font-size: 30px;
}


/* ---------- JOURNEY ---------- */

.postcard-journey {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 45px;

    align-items: center;

    margin-top: 35px;
}

.postcard-photo {
    padding: 8px 8px 18px;

    background: #f3efe6;

    transform: rotate(-3deg);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.postcard-photo img {
    display: block;

    width: 100%;
    height: 155px;

    object-fit: cover;
}

.postcard-photo span {
    display: block;

    padding-top: 10px;

    color: #26313a;

    font-family: "Playfair Display", serif;
    font-style: italic;

    text-align: center;
}


/* ---------- LOCALISATION ---------- */

.postcard-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 24px;
}

.postcard-location-text {
    display: flex;
    align-items: center;
    gap: 15px;

    color: #fff;
}

.postcard-location-text div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.postcard-location-text strong {
    font-family: Inter, sans-serif;
    font-size: 18px;
}

.postcard-location-text span {
    color: #c9d0d5;
}

.postcard-pin {
    color: #d4af37 !important;
    font-size: 28px;
}


/* ---------- BUTTON ---------- */

.postcard-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 13px 23px;

    border: 1px solid #d4af37;
    border-radius: 30px;

    color: #d4af37;

    font-family: Inter, sans-serif;
    font-weight: 500;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}

.postcard-button:hover {
    background: #d4af37;
    color: #17202a;
}


/* ---------- FOOTER ---------- */

.postcard-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-top: 34px;

    color: #e7e0d3;

    font-family: "Playfair Display", serif;
    font-size: 17px;
}

.postcard-footer span {
    width: 45px;
    height: 1px;

    background: #d4af37;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .postcard-section {
        margin: 35px auto 45px;
        padding: 0 15px;
    }

    .postcard {
        padding: 28px 20px 25px;
        border-radius: 20px;
    }

    .postcard-header {
        display: block;
    }

    .postcard-tagline {
        display: none;
    }

    .postcard-eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .postcard-title {
        margin-top: 22px;

        font-size: 34px;
    }

    .postcard-passed {
        font-size: 14px;
        line-height: 1.5;
    }


    /* Messages l'un sous l'autre */

    .postcard-conversation {
        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .postcard-message {
        width: 100%;
        min-height: auto;

        box-sizing: border-box;
    }

    .postcard-arrow {
        transform: rotate(90deg);
        font-size: 28px;
    }


    /* Photo + localisation */

    .postcard-journey {
        display: block;

        margin-top: 28px;
    }

    .postcard-photo {
        width: 82%;
        max-width: 280px;

        margin: 0 auto 35px;
    }

    .postcard-location {
        align-items: stretch;
    }

    .postcard-button {
        justify-content: center;

        width: 100%;

        box-sizing: border-box;
    }

    .postcard-footer {
        margin-top: 30px;

        font-size: 14px;
        text-align: center;
    }

    .postcard-footer span {
        width: 25px;
        flex-shrink: 0;
    }
}