@import 'css/main.css';

.project-grid img,
.project-grid2 img,
.project-grid3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Pour éviter la petite marge sous l'image */
    display: block;
}

.txt,
.txtTablet {
    padding: 60px 0 65px 0;
}

.project-grid h1,
.project-grid2 h1,
.project-grid3 h1 {
    /* margin-top un peu plsu grande que dans le main car c'est entre deux
    images donc ça fait chargé */
    margin-top: 60px;
    /* et margin bottom plus petite pour rapprocher la date */
}

h1 {
    margin-bottom: 5px;
}

#h1Projet2 {
    margin-bottom: 50px;
}

/* -------------------------------------- */
/* Description */
/* -------------------------------------- */

.description {
    display: flex;
    justify-content: flex-start;
    margin: 55px 0;
    width: 100%;
}

.detailsProject {
    padding-left: 37px;
    border-left: solid 1px var(--black);
    width: 50%;
}

.detailsProject p:last-child {
    margin-bottom: 0;
}

.marks {
    padding-right: 35px;
}

.marks p {
    margin-bottom: 20px;
    font-weight: 300;
}

.marks p:last-child {
    margin-bottom: 0;
}

.marks strong {
    font-weight: 700;
}

/* ----------------------------------- */
/* M E D I A   Q U E R I E S */
/* ----------------------------------- */

@media (max-width: 768px) {

    .detailsProject {
        margin-right: 10px;
        width: 70%;
    }
}

@media (max-width: 450px) {

    /* description */
    .description {
        flex-direction: column;
        margin: 35px 0 45px 0;
        width: 100%;
    }

    .detailsProject {
        padding-left: 0;
        padding-top: 30px;
        border-left: none;
        border-top: solid 1px var(--black);
        width: 100%;
    }

    .marks {
        padding-right: 0;
        padding-bottom: 28px;
    }

    .marks p {
        margin-bottom: 20px;
    }

    #h1Projet2 {
        margin-bottom: 35px;
    }
}