.projet a:hover,.projet a:focus{
    text-decoration: none;
    outline: none;
}
#accordion .panel{
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}
#accordion .panel-heading{
    padding: 0;
    border: none;
    border-radius: 0;
    background: #fff;
    position: relative;
}
#accordion .panel-title a{
    display: block;
    padding: 15px 35px;
    margin: 0 0 20px 0;
    background: #fff;
    font-size: 17px;
    font-weight: bold;
    color: #197f2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #044f79;
    border-radius: 0 0 0 30px;
    position: relative;
}
#accordion .panel-title a.collapsed{ margin-bottom: 0; }
#accordion .panel-title a:before,
#accordion .panel-title a.collapsed:before{
    content: "\f068";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 18px;
    font-weight: normal;
    color: #197f2e;
    position: absolute;
    top: 15px;
    right: 17px;
    transition: all 0.3s ease 0s;
}
#accordion .panel-title a.collapsed:before{ content: "\f067"; }
#accordion .panel-title a:after{
    content: "";
    border-top: 15px solid #044f79;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    position: absolute;
    bottom: -15px;
    left: 15%;
}
#accordion .panel-title a.collapsed:after { display: none; }
#accordion .panel-body{
    padding: 20px 30px;
    border: none;
    font-size: 17px;
    line-height: 28px;
    letter-spacing: 1px;
}

/* Projets page enhancements */
.projets-tabs{
    display: inline-flex;
    gap: 10px;
    background: #f5f7f9;
    padding: 8px;
    border-radius: 999px;
}
.projets-tab{
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: transparent;
    color: #0f6c35;
    border: 1px solid transparent;
    font-weight: 600;
}
.projets-tab:hover{ background: #e8f3ec; text-decoration: none; }
.projets-tab.active{ background: #0f6c35; color: #fff; }

.projects-card{
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}
.projects-card img{ width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .35s ease; }
.projects-card:hover{ transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.16); }
.projects-card:hover img{ transform: scale(1.04); }
.projects-card .projects-one__content{ display:none; }
.projects-card__title{
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}
.projects-one__button{ position: absolute; right: 12px; bottom: 12px; }
.projects-badge{
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0f6c35;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
}
.projects-badge.badge--current{ background:#0f6c35; }
.projects-badge.badge--archived{ background:#6b7280; }
.projects-badge.badge--upcoming{ background:#d97706; }

/* Accent bar on hover */
.projects-card::after{
    content:"";
    position: absolute;
    left:0; right:0; bottom:0;
    height: 3px;
    background: linear-gradient(90deg,#0f6c35, #22c55e);
    opacity: 0;
    transition: opacity .2s ease;
}
.projects-card:hover::after{ opacity: 1; }

/* Focus for accessibility */
.projects-card:focus-within{ box-shadow: 0 0 0 3px rgba(34,197,94,0.35), 0 16px 32px rgba(0,0,0,0.16); }
.projects-card__overlay{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.projects-card__overlay .projects-card__title{
    color: #fff;
    font-weight: 700;
    margin: 0;
}
.projects-card__overlay .projects-card__more{ border-color: rgba(255,255,255,0.8); color: #fff; }
.projects-card__overlay .projects-card__more:hover{ background: #fff; color: #0f6c35; }
.projects-card__actions{ margin-top: 10px; }
.projects-card__more{
    border-color: #0f6c35;
    color: #0f6c35;
    font-weight: 600;
    padding: 6px 10px;
}
.projects-card__more:hover,
.projects-card__more:focus{
    background: #0f6c35;
    color: #fff;
}
/* Utility to hide non-selected rubrique */
.is-hidden{ display: none !important; }