:root { --currentColor: var(--violet); }
/* SECTION ATELIERS ------------------------------- */ 
#ateliers,
#ateliers.liste-ateliers,
#ateliers .liste-header {
    color: var(--lightColor);
    background-color: var(--currentColor);
}
.liste-ateliers {
    row-gap: 0;
    padding: var(--padding);
    min-height: fit-content;
}
    /* BLOC Catalogue titre */
    .liste-ateliers .liste-header {
        display: grid;
        grid-template-columns: subgrid;
        align-content: center;
        padding: .5rem 0 calc(var(--padding)*2) 0;
        border-bottom: 1px solid;
    }
        .liste-header h2 {
            font-size: var(--fs-m);
            margin: 0 0 var(--padding) 0;
            font-weight: var(--fw-gras);
            padding-bottom: 0;
        }

        /* BLOC Filtres NAV --------------------------------- */
        .liste-header h2,
            nav.filtercloud, 
                nav.filtercloud h4,
                nav.filtercloud a {
                display: flex;
                flex-wrap: wrap;
            }
        .liste-header,
            nav.filtercloud {
                align-content: center;
            }
            .liste-header h2,
                nav.filtercloud h4 {
                    height: fit-content;
                    align-self: center;
                }
                nav.filtercloud h4{
                    font-weight: var(--fw-normal);
                    margin: 0;
                }
                nav.filtercloud h4, 
                nav.filtercloud a {
                    padding-inline-end: .5rem;
                    font-size: var(--fs-xs);
                    line-height: 1.5rem;
                }
                nav.filtercloud a {
                    border: none;
                    font-weight: var(--fw-normal);
                    border: 1px solid;
                    border-radius: 1rem;
                    padding-inline-start: .5rem;
                    padding-bottom: .1rem;
                    margin: .25rem;
                }
                    nav.filtercloud a.filtre-actif { 
                        color: var(--currentColor);
                        background-color: var(--lightColor);
                        border-color: transparent;
                    }      
                
    /* ARTICLE Atelier  */
    .liste-ateliers article {
        border-top: 4px solid currentColor;
        min-height: calc(90vh - var(--hauteurMenu));
        padding: var(--padding) 0 0 0;
        margin-bottom: calc(var(--padding)*2);
            display: grid;
            grid-template-columns: subgrid;

    }
        /* BLOC TITRE ----------------------- */
        .atelier-titre,
            .atelier-titre a
        {
            display: block;
            height: 100%;
            width: 100%;
            border: none;
            font-weight: var(--fw-normal);
            margin-bottom: 0;
        }
            .atelier-titre a h3 {
                display: inline-block;
                overflow-wrap: normal ;
                word-break: keep-all;
                hyphens: none;
                font-weight: var(--fw-gras);
                margin: 0 0 1rem 0;
                line-height: 1.4;
                border-bottom: 1px solid;
            }
                .atelier-titre a h3:before {
                    content: "→ ";
                    white-space: pre;
                }
        /* BLOC INFOS  */
        .atelier-resume {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0 var(--padding);
            padding: 0;
            height: fit-content;
            align-self:  flex-end;
            font-size: var(--fs-l);
        }
            .atelier-resume ul,
            .atelier-resume .atelier-description,
            .atelier-resume .tags,
            .atelier-resume > div {
                grid-column: span 2;
            }
            /* UL Ligne R1 */
            .atelier-resume ul {
                list-style: none;
                padding: .5rem 0;
                border-bottom: 1px solid;
                    display: grid;
                    grid-template-columns: subgrid ;
                    gap: 0 var(--padding);
            }
            /* UL Ligne R2 */
            .atelier-resume ul:last-of-type {
                margin: 0 0 1rem 0;
            }    
                .atelier-resume li {
                    margin-bottom: 0;
                }
                li.public span:nth-child(2) {
                    text-transform: lowercase;
                }
                li.public span:nth-child(2):before {
                    content:"et ";
                    white-space: pre;
                }
                /* P Ligne 3 : decription */
                .atelier-resume .atelier-description,
                .atelier-resume div:nth-last-of-type(2) {
                    border-bottom: none;
                }
                /* P Ligne 4 : tags */
                .atelier-resume .tags {
                    font-size: var(--fs-xs);
                }
                    .atelier-resume .tags span{
                        border: 1px solid;
                        border-radius: 8px;
                        padding: .25rem .5rem .35rem .5rem;
                        display: inline-block;
                        margin: 0 .5rem .5rem 0;
                    }

                /* BLOC Ligne 5 : Bouton lien */    
                .atelier-resume .atelier-link {
                    display: block;
                    height: auto;
                    width: 100%;
                    padding: 0;
                    border: none;
                } 
                    .bouton {
                        border: none;
                    }


@media screen and (min-width: 1024px) {
main a:hover {
    background-color: transparent;
}

/* SECTION ateliers --------------------------------- */
#ateliers {
    border-top: 1px solid;
    height: fit-content;
}
    /* BLOC Catalogue titre  ------------------------ */ 
    .liste-ateliers .liste-header {
        grid-column: span 12;
        min-height: fit-content;
        padding: .6rem 0;
    }
        .liste-header h2 {
            margin: 0;
        }
            .liste-header h2:after {
                content:" ↓";
                white-space: pre;
            }

        .liste-ateliers .liste-header h2,
        .liste-ateliers .liste-header h2 + div {
            grid-column: span 6;
        }

        /* BLOC Filtres NAV */
        nav.filtercloud a {
            padding-bottom: 0;
        }  
            nav.filtercloud a:hover { 
                color: var(--currentColor);
                background-color: var(--lightColor);
                border-color: transparent;
            }
         
    /* ARTICLE atelier  -------------------------- */ 
    .liste-ateliers article {
        grid-column: span 12;
        min-height: fit-content;
        padding: calc(var(--padding)/2) 0 0 0;
            display: grid;
            grid-template-columns: subgrid;
            row-gap: 0;
    }
        /* BLOC Titre et résumé */

        .liste-ateliers article .atelier-titre,
        .liste-ateliers article .atelier-resume 
        {
            grid-column: span 6;
            align-self: start;
            height: fit-content;
        }
        .liste-ateliers article .atelier-titre{
            height: 100%;
        }
        /* BLOC Titre */
        .atelier-titre {
            margin-bottom: 0;
        }

            .atelier-titre a:hover {
                color: currentColor;
            }
                .atelier-titre a h3 {
                    display: inline;
                    font-size: var(--t2);
                    font-weight: var(--fw-normal);
                    line-height: 1.2;
                }
                    /* Survol */
                    .atelier-titre a:hover h3 {
                        color: var(--bleu);
                        background-color: var(--blanc);
                        border-bottom: none;
                    }


        /* BLOC Infos */  
        .atelier-resume {
            grid-column: span 6;
        }
            /* Bloc Ligne R1 et R2 */
            .atelier-resume .ateliers-resume-r1,
            .atelier-resume .ateliers-resume-r2 {            
                margin: 0;
                border-top:0;
                    display: grid;
                    grid-template-columns: subgrid;
            }  

            /* Bloc Ligne R1 */
            .atelier-resume ul {
                border-bottom: 1px solid;
            }
                li.atelier-type{
                    display: inline-flex;
                    height: fit-content;
                }
                    li.atelier-type span:nth-child(2):before {
                        content:" ou ";
                        white-space: pre;
                    }

            /* Bloc Ligne R2  */
            .atelier-resume .ateliers-resume-r2 {
                display: inherit;
                height: fit-content;
            }
                .ateliers-resume-r2 li:last-of-type{
                    justify-self: start;
                }
                    li.public p:last-of-type {
                        margin-bottom: 0;
                    }

            /* Bloc Ligne 4 : Bouton  */
            .atelier-resume .atelier-link {
                display: none; /* Masquer */
                height: 0;
                width: 0;
            }   
}