:root {
    --ep-yellow: #fec816;    
    --ep-yellow-contrasted: #AE650C; /*#ff9f00;*/
    --ep-color: rgb(68, 68, 68);
}

*,
::after,
::before {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.66em;
}

header {
    border-bottom: 2px solid var(--ep-yellow);
    width: 100%;
    margin: 0;
}

header>div {
    max-width: 1200px;
    margin: auto;
    display:grid;
    grid-template-areas:"logo menu";
    grid-template-rows: auto;
    grid-template-columns: auto;
    justify-content: space-between;
    align-items: center;
}

.header-logo{
    grid-area: logo;
}
.menu {
    grid-area: menu;
}
.menu-toggle {
    grid-area: menu-toggle;
    display:none;
}


.menu {
    transition: all .5s ease-out;
}
.menu-toggle {
    display:none;
    position: relative;
    width: 40px;
    height: 40px;
    transition-duration: 0.5s;
    border:0 transparent;
    background: transparent;
    box-shadow: none;
    margin-right: 20px;
    margin-left: auto;
}


.menu-toggle .icon,
.menu-toggle .icon:before,
.menu-toggle .icon:after{
  transition-duration: 0.5s;
  position: absolute;
  height: 4px;
  width: 100%;
  left:0;
  right:0;
  background-color: var(--ep-yellow);
}
.menu-toggle .icon {
  top: 20px;
}
.menu-toggle .icon:before {
  content: "";
  top: -10px;
}
.menu-toggle .icon:after {
  content: "";
  top: 10px;
}
.menu-toggle.open .icon {
  background: transparent;
}
.menu-toggle.open .icon:before {
  transform: rotateZ(45deg);
  top:0;
}
.menu-toggle.open .icon:after {
  transform: rotateZ(-45deg);
  top:0;
}
.menu-toggle:hover {
  cursor: pointer;
}

.menu-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

header nav ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    flex-wrap: wrap;
    padding: 5px;
    margin: 0;
}

header nav ul li {
    padding: 0px 20px;
    line-height: 20px;
    text-align: center;
}

header nav ul li a {
    color: var(--ep-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
}

header nav ul li a::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    -webkit-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    transform: scale(0, 1);
    -ms-transform-origin: left center;
    transform-origin: left center;
    -webkit-transform-origin: left center;
    transition: all .15s ease-out;
    filter: alpha(0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
    background-color: #fec816;
    color: #fff;
}

header nav ul li a:hover::after,
header nav ul li a:focus::after,
header nav ul li a.active::after {
    -webkit-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
    filter: alpha(100);
    -moz-opacity: 100;
    -khtml-opacity: 100;
    opacity: 100;
    opacity: 1;
}


header .header-logo,
header .header-logo img {
    height: 90px;
    max-height: 100%;
    width:auto;
}



@media (max-width: 800px){
    .menu-toggle {
        display:block;
    }
    .menu {
        display:none;

    }
    .menu.open {
        display:block;
    }
    .menu ul {
        flex-direction: column;
        width: 100%;
        align-items: start;
        gap: 5px;
    }
    header nav ul li a {
        border-left: 3px solid transparent;
        padding: 0.25em 0.5em;
        font-size: 1rem;
        display:block;
        width: 100%;
        text-align: left;
    }
    header nav ul li a::after {
        display:none !important;
    }
    header nav ul li a.active,
    header nav ul li a:hover,
    header nav ul li a:focus {
        border-left-color: var(--ep-yellow);
    }
    header>div{
        grid-template-areas:
            "logo menu-toggle"
            "menu menu";
    }
}


main {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
    min-height: calc(100vh - 90px - 80px)
}

img,
video {
    max-width: 100%;
}

video {
    margin-top: 30px;
    margin-bottom: 30px;
}

.p-15px {
    padding: 0 15px;
}

h1, h2 {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
    text-transform: uppercase;
    margin: 3em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

h1::before,
h1::after,
h2::before,
h2::after {
    content: '';
    border-top: 1px solid #2a2a2a;
    width: 10%;
}

strong {
    font-weight: 700;
    font-style: normal;
    color: var(--ep-yellow-contrasted);
}

main li {
    margin-bottom: 1em;
}
p {
    margin-bottom: 20px;
}

a {
    color: darkblue;
}

footer {
    background: var(--ep-yellow);
    width: 100%;
    padding: 25px 20px;
    font-size: 14px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
}

.card-link {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;

    text-decoration: none;
    color: var(--ep-color);
    font-weight: 700;
}

.card-link:hover,
.card-link:focus {
    background-color: var(--ep-yellow);
    color: white !important;
}

.card-link .title {
    z-index: 11;
    position: absolute;
    top: 0;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    transform: translateY(0px);
    text-align: center;
    width: 100%;
}

.card-link img {
    margin-top: 30px;
    width: 370px;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.image-hover-overlay {
    -webkit-transition: opacity .25s ease-in-out;
    transition: opacity .25s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
}

.card-link:hover .image-hover-overlay,
.card-link:focus .image-hover-overlay {
    background-color: var(--ep-yellow) !important;
    opacity: 0.8;
    z-index: 10;
}

.card-link:hover img,
.card-link:focus img {
    transform: scale(1.04);
}

.card-link:hover .title,
.card-link:focus .title {
    transform: translateY(40px);
}

.partenaires {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.le-projet-cols {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    align-content: start;
    gap:20px;
}

.le-projet-cols > img {
    flex: 0;

}
.le-projet-cols > div {
    flex: 1;
}
.le-projet-cols > div > p:first-child {
    margin-top: 0;
}


ul.triangle {
  margin: 0.75em 0;
  padding: 0 1em;
  list-style: none;
}
ul.triangle li::before {
  content: "";
  border-color: transparent #111;
  border-style: solid;
  border-width: 0.35em 0 0.35em 0.45em;
  display: block;
  height: 0;
  width: 0;
  left: -1em;
  top: 0.9em;
  position: relative;
}

.le-projet-point-de-vue-beneficiaires {
    background: var(--ep-yellow);
    padding: 20px;
    margin-bottom: 40px;
}

.le-projet-point-de-vue-beneficiaires h2 {
    display: block;
    text-align: left;
    margin: auto;
    font-variant: normal;
    text-decoration: underline;
    text-transform: none;
    font-style: normal;
}
.le-projet-point-de-vue-beneficiaires h2::before,
.le-projet-point-de-vue-beneficiaires h2::after
{
    display:none;
}

details {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
}

summary {
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
  cursor: pointer;
}

details[open] {
  padding: 0.5em;
}

details[open] summary {
  border-bottom: 1px solid #aaa;
  margin-bottom: 0.5em;
}

.contact-list details{
    border-radius:0;
}
.contact-list details:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.contact-pane {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
        "map list";
    width: 100%;
}
.contact-pane #map {
    grid-area: map;
    flex-grow: 3;
    height: 600px;
    max-height: 90vh;
    width: 100%;

}

.contact-pane .contact-list {
    grid-area: list;
    width: 100%;
    height: 600px;
    max-height: 90vh;
    overflow-y: scroll;
    padding-bottom: min(400px, 80vh);
}

.contact-list img {
    margin:0;
    display:block;
}

@media (max-width: 800px) {
    .partenaires img {
        width: 150px;
        height: auto;
    }

    .le-projet-cols > img {
        width: auto;
        height: auto;
    }


    .contact-pane {
        grid-template-columns: 1fr;
        grid-template-areas:
            "map"
            "list";
        width: 100%;
    }

    .contact-list {
        height: fit-content;
        overflow: auto;;
    }

}


.jump {
    max-height: 1.8rem;
    z-index: -1;
    position: absolute;
    top: -2rem;
    left: -300px;
    transition: top .2s ease-out;
    padding: 5px;
    background: var(--ep-yellow);
    color: var(--ep-color);
    opacity: 0;
}

.jump:focus {
    z-index: 1000;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 1;
}