 
h2 {
    font-size: var(--t1);
    font-weight: var(--fw-gras); 
}
.accroche {
    width: 100%;
    padding: var(--padding);
}
section:not(:first-of-type) {
    border-top: var(--border);
}
/* INTRO ------------------------------- */ 
#intro {
    color: var(--lightColor);
    background-color: var(--vert);
    min-height: var( --hauteur-section);
}

 #intro .accrochebtn {
    font-size: var(--fs-xl) !important;
    /* margin-top: auto; */
    margin-bottom: var(--padding);
 }
 #intro > div a {
    font-weight: var(--fw-normal);;
 }
 .h1 {
    font-size: var(--t2);
    margin: 0 0 var(--padding) 0;
 }
/*  .enchiffres li {
    font-size: var(--l);
 } */
/* SERVICES ------------------------------- */ 
#services header {
    margin-bottom: 1rem;
}
#services h2 {
    padding-bottom: 0;
}  
    #services h3 {
        font-size: var(--fs-l);
        margin: var(--padding) 0 .25rem 0;
    }
    #services h3:first-of-type {
        margin: .25rem 0;
    }
/* PROJETS ------------------------------- */
#projets header,
#projets ul {
    grid-column: 1/-1;
}
#projets ul {
    list-style: none;
    min-height: fit-content;
    color: var(--currentColor);
 }

    #projets ul li {
        width: 100%;
        gap: var(--padding);
        min-height: fit-content;
        margin-bottom: calc(var(--padding)*2);
    }  
    #projets ul li a {
        border: none;
        font-weight: var(--fw-normal);

    } 
    #projets .liste {
        padding: 1rem;
        height: 100%;
        background-color: var(--blanc);
    }

    #projets .liste > * {
        margin: 0 0 .5rem  0;
    }
        #projets .liste figure {
            width: 100%;
        }

        #projets .liste > h3 {
            display: inline-block;
            font-size: var(--fs-l);
        }
        
        #projets footer {
            text-align: center;
        }
        #projets footer a:before {
            content:"→ ";
            white-space: pre;
        }
/* ACTUS ------------------------------- */ 
#actus {
    color: var(--bleu);
}
/* UNE ---------------------------------------------------------- */
.article-une-extrait {
    border-top: var(--border);
    padding-top: 1rem;
    margin-bottom: var(--padding);
}
.article-une-extrait a {
    font-weight: inherit;
    border-bottom: none;
}
.article-une-extrait a header .article-extrait-categorie {
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
}

.article-une-extrait h3 {
    font-size: var(--t2);

}
.article-une-extrait figure {
    margin-bottom: var(--padding);
}

    .article-extrait-text {
        font-size: var(--fs-s);
        margin-bottom: var(--padding);
    }
    .article-extrait-text p:last-child.plus,
    .articles-next p:last-child.plus {
        border-bottom: var(--border);
        width: fit-content;
    }

/* ARTICLES ---------------------------------------------------------- */ 
#actus {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--padding);
}
.articles-next,
.articles-next > article {
    margin-bottom: var(--padding);
}
    .articles-next > article {
        --columns: 12;
        grid-column: span var(--columns);
        border-top: var(--border);
        padding: 1rem 0;
    }
    .articles-next > article a{
        font-weight: inherit;
    }
    .articles-next header {
        margin-bottom: var(--padding);
    }
    .articles-next header .article-extrait-categorie {
        margin-bottom: .5rem;
    }
    .articles-next header h3 {
        font-size: var(--t4);
        margin-bottom: 0;
    }
    .articles-next header time {
        font-size: var(--fs-s);

    }
    #actus a.bouton {
        justify-self: end;
        margin-top: auto;
        color: var(--lightColor);
        background-color: var(--bleu);

    }
/* AGENDA ------------------------------- */ 
#agenda {
    padding-top: var(--padding);
    padding-bottom: var(--padding);
    display: flex;
    flex-direction: column;
}

.agenda-jour {

    border-top: var(--border);
    padding-top: .5rem;
    margin-bottom: calc(var(--padding)*2);
}
    .agenda-jour > h3 {
        font-weight: var(--fw-normal);
        margin-bottom: 0;
    }
    .agenda-jour > ul {
        list-style: none;
    }
    .agenda-evt {
        margin: 0;
    }
        .agenda-evt:not(:last-child) { 
            border-bottom: 1px dotted;
        }
        .agenda-evt > a {
            display: block;
            font-weight: inherit;
            padding: 1rem;
            border-bottom: none;
        }
            .agenda-evt > a > * {
                margin: 0;
            }

    #agenda a.bouton {
        margin-top: auto ;
    }


@media screen and (min-width: 600px) {
    /* DERNIERS PROJETS */
    #projets ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--padding);
        min-height: fit-content;
        }
    }

@media screen and (min-width: 1024px) {
    .h1 {
        font-size: var(--t1);
        margin: 0 0 var(--padding) 0;
     }    
/* SERVICES ------------------------------- */   
    #services header, 
    #services .services-details {
        grid-column: span 6;
    } 

/* PROJETS ------------------------------- */
#projets {
    gap: 0 calc(var(--padding)*2)
}
#projets header {
    grid-column: span 8;
    grid-row: 1/2;
}
#projets footer {
    grid-column: span 4;
    grid-row: 1/2;
}
#projets ul {
    grid-column: 1/-1;
    grid-row: 2/3;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--padding);
        min-height: fit-content;
 }
 #projets ul li {
    margin-bottom: 0;
    
 }
    #projets a:hover .liste {
        color: var(--blanc);
        background-color: var(--bleu);
        transition: background-color 0.15s ease-in-out; /* Animer l'apparition/disparition du sous-menu */
        -webkit-transition: background-color 0.15s ease-in-out;
         -moz-transition: background-color 0.15s ease-in-out;
          -o-transition: background-color 0.15s ease-in-out;
    }

    #projets h3 {
        font-size: var(--fs-m);
    }
    #projets a:hover .liste h3:before {
        content: "→ ";
        white-space: pre;
    }
    #projets a:hover .liste .categories {
        border-color: inherit;
    }
    #projets footer {
        padding-top: 1.2rem;
        text-align: right;
    }
    #projets footer .bouton:before {
        content:"";
    }
    #projets footer .bouton:hover {
        color: var(--bleu);
        
    }
    #projets footer .bouton:hover:before {
        content: "→ ";
        white-space: pre;
    }
/* ACTUALITÉS --------------------------------------------------- */
#actus {
    padding-right: 0;
}

/* UNE ---------------------------------------------------------- */
.article-une-extrait > a {
    display: block;
    padding: 1rem;
    gap: 0 ;
}
p.event-local {
    margin-bottom: 1rem !important;
}
.article-une-extrait header {
    grid-column: 1/-1;
    grid-row: 1/2;

}

.article-une-extrait .article-textcontent {
    grid-column: 1/-1;
    grid-row: 2/3;
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem var(--padding);

}
    .article-une-extrait figure {
        grid-column: span 1;
        margin-bottom: 0;
        height: auto;
    }
    .article-une-extrait .article-extrait-text {
        grid-column: span 1;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }
    .article-extrait-text .plus {
        margin-top: auto;
    }
    /* Une a HOVER */
    .article-une-extrait > a:hover {
        color: var(--bleu);
        background-color: var(--blanc);
    }
        .article-une-extrait > a:hover header > *, 
        .article-une-extrait > a:hover .article-extrait-text > *,
        .article-une-extrait > a:hover .article-extrait-text .plus
        {
            width: fit-content;
        }

        article > a:hover .article-extrait-text p:last-child.plus,
        .articles-next > article a:hover p:last-child.plus{
            font-weight: var(--fw-gras);
            border-bottom: none;
        }
        .article-une-extrait a:hover header .article-extrait-categorie {
            display: inline-flex;
            justify-content: space-between;
            width: 100%;
        }
/* ARTICLES  ---------------------------------------------------------- */
    .articles-next > article {
        --columns: 6;
        padding: .5rem 0 0 0;
    }
    .article-extrait > a {
        display: block;
        width: 100%;
        padding: 1rem;
        border-bottom: none;
    }
    .article-extrait > a:hover {
        background-color: var(--blanc);
    }
    #actus a.bouton:hover {
        color: var(--bleu);
        background-color: var(--blanc);
    }


/* AGENDA ------------------------------- */ 
    .agenda-jour {
        margin-bottom: var(--padding);
    }

    #agenda .bouton:hover {
        color: var(--currentColor);
    }
    #actus a.bouton:hover:before,
    #agenda .bouton:hover:before {
        content:"→ ";
        white-space: pre;
    }
}