@import "style.css";

@media print {
    body {
        margin: 0 !important;
    }

    header {
        display: none !important;
    }

    .cv {
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
}

header {
    width: 210mm;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin: 20px auto;
    a, button {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: .8rem;
        border-radius: 100px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        background-color: #ffffff;
        border: 1px solid #ddd;
        scale: 100%;
        transition: scale linear 50ms;
        cursor: pointer;
        &:hover {
            scale: 115%;
        }
    }
}

.cv {
    width: 210mm;
    height: 297mm;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border: 1px solid #ddd;
    display: grid;
    grid-template-columns: 275px 1fr;
    font-family: sans-serif;
    color: var(--main-color);
    overflow: hidden;
}

a {
    text-decoration: none;
}

#side {
    background: var(--main-color);
    color: #ffffff;
    padding-block: 20px;
    font-size: .9rem;

    #photo {
        display: block;
        width: 175px;
        margin: auto;
    }

    section {
        padding-left: 20px;

        h2 {
            border-bottom: 1px solid #ffffff;
        }

        ul {
            padding-left: 0;
            list-style-position: inside;
        }
    }

    .contact p {
        display: flex;
        align-items: center;
        gap: 1ch;
    }
}

main {
    padding: 20px;

    h1 {
        letter-spacing: .8mm;
        margin-top: 0;
        margin-bottom: .25rem;
    }

    .metier {
        margin-block: 0 .4rem;
        letter-spacing: .6mm;
        font-size: 1.1rem;
    }

    .detail {
        font-size: .8rem;
        color: var(--secondary-color);
        margin-block: .2rem;
    }

    h2 {
        border-bottom: 1px solid var(--main-color);
        margin-block: 0 .5rem;
    }

    .experiences {
        display: grid;
        grid-template-columns: 30px 1fr;

        .frise {
            text-align: center;
            .puce {
                width: 10px;
                aspect-ratio: 1;
                border: 2px solid var(--main-color);
                border-radius: 10px;
                margin: 5px auto 0;
            }

            .trait {
                width: 2px;
                height: calc(100% - 10px);
                margin: auto;
                background: var(--secondary-color);

                &.last {
                    height: calc(100% - 30px);
                }
            }
        }

        .experience {
            margin-top: 0;

            .date {
                font-weight: bold;
                letter-spacing: .4mm;
            }

            .lieu {
                color: var(--secondary-color);
                font-size: .8rem;
            }

            .titre {
                margin-bottom: 4px;
            }

            p {
                font-size: .8rem;
                margin-block: 0;

                &:last-child {
                    margin-bottom: .6rem;
                }
            }

            .separator {
                height: 1px;
                background: #dddddd;
                margin-block: 2px;
            }
        }
    }

    .autre {
        font-size: .8rem;
    }
}
