
body{

    font-size: 12px;
    line-height: 1.5em;
    --small: 9px;

    --title: 26px;
    --subtitle: 20px;
    --fs-medium: 18px;
 
    --table-w: 760px;
}



@page{
    size: 297mm 210mm;
    margin-left: 14mm;
    margin-right: 14mm;
    margin-top: 8mm; 
    margin-bottom: 14mm; 


    @bottom-left {
      content: element(titleRunning);
    }
    @bottom-right-corner{
        content: counter(page) "/" counter(pages);
        color: var(--light);
        text-align: left;
    }
}



.groupement-equipe,
.groupement-devis,
.groupement-planning,
.groupement-texte{
    break-before: page;
    break-after: page;
}


.running{
    position: running(titleRunning);
    color: var(--light);
    display: flex!important;
    gap: 4ch;
    
}



/* COUVERTURE  ---------------------------------------------------- */

.groupement-cover{
    break-after: page;
    display: grid;
    grid-template-rows: 10mm 3fr 2fr;
    height: calc(var(--pagedjs-height-left) - var(--pagedjs-margin-top) - var(--pagedjs-margin-bottom) - 10mm);   
}



.groupement-cover{

}

.cover_top{
    display: flex;
    align-items: center;
}

.cover_date{
    margin-left: 8ch;
    flex-grow: 1;
}

.groupement-cover h1{
    font-size: 6em;
    line-height: 1em;
    align-self: end;

}

.cover_baseline{
    font-size: 1.6rem;
        line-height: 1.2;
    align-self: end;
    max-width: 38ch;
}

.cover_baseline::after{
    content: "";
    display: block;
    background-color: white;
    width: 100%;
    height: 5mm;
    position: absolute;
    bottom: -1mm;
}



/* Texte  ---------------------------------------------------- */


h2{
    font-size: var(--title);
    font-weight: bold;
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.25lh;
    margin-bottom: 2lh;
    break-after: avoid;
}

h3{
     font-size: var(--subtitle);
    font-weight: bold;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    break-after: avoid;
}

.chapeau{
    font-size: var(--fs-medium);
    line-height: 1.5;
    max-width: 52ch;
        margin-top: 3rem;
}

p{
    margin-block: 0.5lh;
    widows: 3;
    orphans: 3;
}




/* EQUIPE  ---------------------------------------------------- */


.groupement-equipe__schema{
    margin-top: 2rem;
    break-inside: avoid;
}

.groupement-equipe__schema img{
    display: block;
    max-width: 100%;
    max-height: 90mm;
    object-fit: contain;
}

.people-grid{
    display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
   gap: 3rem;
}

.people-card{

    break-inside: avoid;
}

.people-card__figures{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.people-card__figure{
    --size: 80px;
    width: var(--size);
    height: var(--size);
    border-radius: 1000px;
    overflow: hidden;
    display: flex;
    margin-bottom: 1rem;
    border: 1px solid #888;
}

.people-card__figure img{
    filter: grayscale(1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.people-card__baseline{
    font-weight: bold;
    margin-top: -0.25rem;
    margin-bottom: 1rem;

}

.people-card__header{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
}

.people-card .group-title{
    flex-grow: 2;
}

.people-card .group-title h3{
    margin-top: 0;
}


/* Section texte -------------------------------------- */

.groupement-texte{
     columns: 2;
   gap: 3rem;
   column-fill: auto;

   }


   .groupement-texte h2{
    column-span: all;
   }

/* TABLEAU (bloc du constructeur de page)  --------------------- */

.tableau{
    margin: 1.5rem 0;
    break-inside: avoid;
}

.tableau table{
    width: 100%;
    border-collapse: collapse;
}

.tableau th,
.tableau td{
    padding: 0.25lh 1ch 0.25lh 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ccc;
}

.tableau th{
    font-weight: bold;
    border-bottom-color: currentColor;
}

.tableau figcaption{
    margin-top: 0.5rem;
    color: #888;
    font-size: var(--small);
}




/* SPECIFIC */


#une-equipe-qui-se-connait{
    -webkit-column-break-before: always;
}