
.relative { position: relative }
.absolute { position: absolute }
.bg-beige { background-color: #FAF5DE80}
.flex {display: flex}
.flex-wrap {flex-wrap: wrap}
.justify-center {
    justify-content: center;
}
.gap-10 {gap:10px}
.gap-20 {gap:20px}
.items-center { align-items: center }
.post-type-archive-engages section#content .inside {
    width: 90%;
    max-width: 1279px;
    margin:auto;
    padding: 80px 0;
    overflow: visible;
}

/* Description archive */
.post-type-archive-engages section#description {
    background-color: #095540;
    margin-bottom: 0;
    padding: 30px 0;
}

.post-type-archive-engages section#description h2 {
    margin-bottom: 0rem;
    color: #F3D9B4;
}

.post-type-archive-engages section#description p:not(.headline) {
    text-align: center;
    color: white;
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    line-height: 1.5;
    max-width: 80%;
    margin:auto;
    font-style: italic;
}

.post-type-archive-engages section#description p.headline {
    font-size: 2rem;
    font-family: 'Oswald', sans-serif;
    color: #FFFFFF;
}

/* Archive liste */
.post-type-archive-engages section.inside h3  {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 27px;
    padding-bottom: 0;
}

.post-type-archive-engages section.inside h3 a {
    color: rgba(14,85,63,.6);
    transition: all .5s ease-in-out;
    text-decoration: none;
}
.post-type-archive-engages section.inside h3 .slogan {
    color: rgba(14,85,63,.6);
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    text-align: center;
    text-transform: initial;
    line-height: 1.2;
    z-index: 3;
    position: relative;
    margin-top: 10px;
}
.post-type-archive-engages section.inside h3 a:hover {
    color: rgba(14,85,63,1);
}

/* Thumbnail */
.post-type-archive-engages section.inside h3 a span{
    display: inline-block;
    position: relative;
    z-index: 2;
}
.post-type-archive-engages section.inside h3 a span.post-thumbnail {
    display: inline-block;
    background-color: #FEEED7;
    z-index: 1;
}

.post-type-archive-engages section.inside h3 a span.post-thumbnail img {
    object-fit: cover;
}

.post-type-archive-engages section.inside h3 a span.post-thumbnail,
.post-type-archive-engages section.inside h3 a span.post-thumbnail img {
    width:205px;
    height: 300px;
    margin-bottom: 20px;
}

.others-engages {
    padding : 40px 0;
    width: 100%;
    max-width: 1168px;
    margin: auto;
}
.others-engages h3 {
    font-family: 'EB Garamond', serif;
    margin-bottom: 30px;
    font-size: 32px;
    line-height: 35px;
}

.engages-list-grid {
    display: flex;
    flex-direction: column;
    gap: 19px;
    justify-content: center;
    align-items: center;
}
.engages-list-grid .engage-item {
    width: 273px;
    height: 385px;
    background-color: #efefef;
}

/**
Actions
 */
.cognac-actions .headline {
    background-color: #095540;
    margin-bottom: 20px;
}

.btn-filter {
    display: inline-block;
    font-size: 1rem ;
    font-family: 'Oswald', sans-serif;
    padding: 8px 16px;
    border: 1px solid #000000;
    color: #000000;

}
.btn-filter:hover {
    color: #0E553F;
    background-color: #0E553F;
    background-color: rgba(14,85,63,.15);
    text-decoration: none;
}

.cognac-actions .headline h2 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-family: Oswald;
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.cognac-actions .headline .description {
    width: 90%;
    max-width: 1024px;
    margin:auto;
    font-family: EB Garamond;
    font-size: 22px;
    font-style: italic;
    font-weight: 500;
    line-height: 34px;
    text-align: center;
    color: white;
    padding: 40px 0 30px 0
}
.cognac-actions .headline .description ul {
    margin: 2rem 0 1em 2.5em;
}
.cognac-actions .headline .description ul li {
    text-align: left;
    list-style: disc;
}
.cognac-actions .headline .featured-image {
    height: 350px;
    overflow: hidden;
}
.cognac-actions .headline .featured-image img {
    object-fit: cover;
    width: 100%;
}
.cognac-actions .featured-video  {
    width: 90%;
    max-width: 960px;
    margin: 45px auto;
}
.cognac-actions h3 {
    font-family: Oswald;
    font-size: 23px;
    font-weight: 500;
    line-height: 26px;
    text-transform: uppercase;
    text-align: center;
    color: #0E553F;
    margin-top: 0px;
}
.cognac-actions .cognac-grid-item .featured-image {
    height: 221px;
    background-color: #b23b23;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.cognac-actions .cognac-grid-item .featured-image video {
    object-fit: cover;
    width:100%;
    height:100%;
    position: relative;
    z-index: 1;
}
.cognac-actions .cognac-grid-item .featured-image .video-duration {
    position: absolute;
    width: 51px;
    height: 32px;
    bottom:1rem;
    right:1rem;
    z-index:2;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #b33b23;
    color:white;
    font-family: "Oswald";
}
.grid-container{
    display: grid;
    margin: auto;
    gap: 20px;
    padding: 20px;
}
.grid-container .cognac-grid-item {
    min-height: 322px;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
    transition: all .3s ease-in;
}
.grid-container .cognac-grid-item:hover {
    background: #0E553F;
}
.grid-container .cognac-grid-item h4 {
    font-family: Oswald;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0em;
    text-align: left;
    color: #000000;;
}
.grid-container .cognac-grid-item .content {
    padding:1rem
}
.grid-container .cognac-grid-item a {
    width: 100%;
    height: 100%;
}

.grid-container .cognac-grid-item .content p {
    font-family: EB Garamond;
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 28px;

}
.grid-container .cognac-grid-item:hover .content h4,
.grid-container .cognac-grid-item:hover .content p{
    color: white;
}
.cognac-grid-item img {
    object-fit: cover;
}
.grid-of-4 {
    max-width: 1096px;
}

.actions-filter {
    margin: 3rem 0 1.6rem 0;
}
.actions-filter a {
    transition: all .4s ease-in-out;
}
.actions-filter .actif {
    color: #000000;
    background-color: rgba(14,85,63,.15);
    text-decoration: none;
    pointer-events: none;
}

#actions-banniere {
    position: relative;
    display: flex;
    /* background-color:#034f3a; */
    justify-content: center;

}
#actions-banniere:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transition: all .4s ease-in-out;
}
/* #actions-banniere:hover:before {
    background: rgba(14,85,63, .5) !important;
    opacity: 1;
}*/

@media (max-width: 980px) {
    #actions-banniere img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 1000px) {
    #actions-banniere {
        padding-top: 40px;
        height: auto; /* 394px;*/
    }
}

#actions-banniere .content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}
#actions-banniere h3 {
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0;
    font-size: 43px;
    line-height: 46px;
}
#actions-banniere p {
    font-family: "EB Garamond";
    font-size: 26px;
    font-style: italic;
    font-weight: 500;
    line-height: 25px;
    text-align: center;
    color: white;
}

.engages-list-grid .engage-item img {
    object-fit: cover;
    width: 273px;
    height: 385px;
}
.engages-list-grid .engage-item {
    margin-bottom: 1rem;
    overflow: hidden;
}
.engages-list-grid .engage-item h3 {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(16,85,64,.5);
    display: flex;
    justify-content: center;
    align-items: end;
    transition: all .5s ease-in-out;
    padding:1rem;
    box-sizing: border-box;
}

.engages-list-grid .engage-item h3 span {
    font-family: Oswald;
    text-transform: uppercase;
    color: white;
    transition: all .5s ease-in-out;
    padding-top: 1.5rem;
    display: block;
    text-align: center;
}


.post-navigation {
    display: flex;
    flex-wrap: wrap;
}
.post-navigation .link {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #FEEED7;
}
.post-navigation .link a {
    display: block;
    height: 216px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}
.post-navigation .link img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: all .5s ease-in-out;
}
.post-navigation .link a:hover img {
    opacity: .2;
}
.post-navigation .link span {
    z-index: 2;
    position: relative;
    color: white;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
    display: block;
    text-align: center;
    width: 100%;
    padding: 0 1.2rem;
}
.post-navigation .link.previous-post svg {
    transform: rotate(-180deg);
}
.post-navigation .link.next-post svg,
.post-navigation .link.previous-post svg {
    position: relative;
    z-index: 4;
}
.post-navigation .link.next-post a {
    justify-content: end;
}
.post-navigation .link.next-post a:hover,
.post-navigation .link.previous-post a:hover
{
    text-decoration: initial;
}
.post-nav-container {
    padding: 2.8rem ;
}

.post-type-archive-engages #actions-banniere:before {
    /* opacity: 1;
    background: rgba(0,0,0, .2); */
}

.engages-footer {
    padding: 2.8rem 2.8rem
}
.engages-footer a {
    text-decoration: underline;
}
.engages-footer a:hover {
    text-decoration: none;
}
@media (max-width: 768px) {
    /* Adjust the grid layout for smaller screens */
    .grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .post-type-archive-engages section.inside h3 a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    /* Further adjust the grid layout for even smaller screens */
    .grid-container {
        grid-template-columns: 1fr !important;
    }
}

@media(min-width:780px) {

    .engages-footer {
        padding: 4rem 2.8rem
    }

    .post-navigation .link {
        width: 50%;
    }

    .post-navigation .link span {
        font-size: 22px;
    }

    .cognac-actions h3 {
        font-size: 43px;
        font-weight: 500;
        line-height: 46px;
    }

    .cognac-actions .headline .featured-image {
        height: 400px;
    }

    .cognac-actions .headline h2 {
        font-size: 54px;
        line-height: 64px;
    }

    .cognac-actions .headline .description {
        font-size: 32px;
        line-height: 44px;
        padding: 80px 0 60px 0
    }

    .engages-list-grid {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 19px;
        justify-content: left;
    }
    .engages-list-grid .engage-item {
        width: 273px;
        height: 385px;
        background-color: #efefef;
        overflow: hidden;
        display: block;
    }
    .engages-list-grid .engage-item:hover h3,
    .engages-list-grid .engage-item:hover h3 span{
        opacity: 1;
    }
    .engages-list-grid .engage-item:hover h3 span {
        padding-top: 0;
    }
    .engages-list-grid .engage-item h3 {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(16,85,64,.5);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all .5s ease-in-out;
        opacity: 0;
        padding:1rem;
        box-sizing: border-box;
    }
    .engages-list-grid .engage-item h3 span {
        font-family: Oswald;
        text-transform: uppercase;
        color: white;
        transition: all .5s ease-in-out;
        opacity: 0;
        padding-top: 1.5rem;
        display: block;
        text-align: center;
    }
    .engages-list-grid .engage-item img {
        width: 273px;
        height: 385px;
        object-fit: cover;
    }

    .post-type-archive-engages section#content .inside {
        padding: 92px 0;
    }

    .post-type-archive-engages section#description p:not(.headline) {
        line-height: 44px;
    }
    .post-type-archive-engages section.inside h3{
        font-size: 90px;
    }
    .post-type-archive-engages section#description {
        padding:50px 0 50px 0;
    }
    .post-type-archive-engages section#description h2 {
        font-size: 60px;
        color: #FFFFFF;
    }
    .post-type-archive-engages section.inside h3 .slogan {
        font-size: 24px;
        font-style: italic;
        line-height: 1.5;
    }
    .post-type-archive-engages section.inside h3 a span.post-thumbnail {
        position: absolute;
        bottom: -320px;
        right: 0;
        opacity: 0;
        transition: opacity .5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: translateY(0);
    }
    .post-type-archive-engages section.inside h3 a:hover span.post-thumbnail {
        opacity: 1;
        transform: translateY(-10px);
        transition-delay: 0.5s;
    }
    .post-type-archive-engages section.inside h3:last-child a span.post-thumbnail {
        top: -50%;
    }

    .post-type-archive-engages section.inside h3 a span.post-thumbnail,
    .post-type-archive-engages section.inside h3 a span.post-thumbnail img {
        width:305px;
        height: 499px;
    }

    #actions-banniere h3.lg-font {
        font-size: 180px;
        padding: 0;
        line-height: 180px;
    }
    #actions-banniere h3.lg-font + p {
        font-family: Oswald;
        font-style: initial;
    }
}