/* Toutes les sections */
h1 {
    font-family: "Chewy", system-ui;
    letter-spacing: 1px;
}
h2 {
    font-family: "Chewy", system-ui;
    font-weight: normal;
    font-size: 31px;
    letter-spacing: 1px;
}
section {
    width: 100%;
    padding: 25px calc(calc(calc(100% - 1500px) / 2) + 15px) 35px calc(calc(calc(100% - 1500px) / 2) + 15px);
}
@media screen and (max-width: 1500px) {
    section {
        padding: 25px 15px 35px 15px;
    }
}
section img {
    display: block;
    max-height: 100%;
    max-width: 100%;
}

.background_green {
    background-color: var(--color-vert);
}
.background_rose {
    background-color: var(--color-rose);
}

.deux {
    display: flex;
    flex-direction: row;
}
.deux>div:not(:has(img)) {
    width: 100%;
}
.deux>div:has(img) {
    width: 40%;
}
.deux>div:has(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 325px;
}

@media screen and (max-width: 600px) {
    .deux {
        flex-direction: column !important;
        align-items: center;
    }
    .deux>div:has(img) {
        margin-top: 20px;
        width: 100%;
    }
    .deux>div>img {
        max-height: 260px;
        max-width: 70%;
    }
}

h1, h2, h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Section accueil */
#accueil h1::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url("/ressources/logo/fee.svg") no-repeat center;
    background-size: contain;
    transform: scaleX(-1);
    margin-right: 10px;
}
#accueil img {
	clip-path: shape(from 79.78% 10.78%,curve to 95.71% 30.95% with 86.98% 16.66%/92.38% 23.49%,curve to 99.93% 54.91% with 99.05% 38.41%/100.33% 46.49%,curve to 92.49% 79.98% with 99.53% 63.31%/97.47% 72.04%,curve to 70.11% 98.1% with 87.52% 87.9%/79.64% 95.02%,curve to 38.5% 97.56% with 60.56% 101.16%/49.37% 100.19%,curve to 10.8% 83.36% with 27.62% 94.93%/17.07% 90.64%,curve to 1.07% 55.54% with 4.51% 76.08%/2.48% 65.78%,curve to 3.45% 27.53% with -0.31% 45.28%/-1.08% 35.08%,curve to 27.21% 10.11% with 7.99% 19.98%/17.82% 15.1%,curve to 54.54% 0% with 36.6% 5.14%/45.55% 0.06%,curve to 79.78% 10.78% with 63.53% -0.07%/72.57% 4.89%);
    margin-left: 15px;
}
#accueil p {
    text-align: justify;
    font-size: 20px;
}
#accueil>div {
    display: flex;
    flex-direction: column;
}
#accueil>div>div {
    flex: 1;
    align-items: center;
    justify-content: center;
    display: flex;
    width: 100%;
    text-align: justify;
    padding: 25px;
}

/* Section slogan */
#slogan {
    min-height: 150px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}
#slogan::before {
    content: url(/ressources/index/p1.svg);
}
#slogan::after {
    content: url(/ressources/index/p2.svg);
}
#slogan div {
    margin: 0 15px;
}
blockquote {
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: bold;
}
cite {
    float: right;
}

.div_carrousel {
    min-height: 150px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    user-select: none;
}
.div_carrousel blockquote {
    font-size: 20px;
}
.div_carrousel_container {
    flex: 1;
    min-width: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x;
}
.div_carrousel_container::-webkit-scrollbar {
    display: none;
}
.div_carrousel_container.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}
.div_carrousel_container>div {
    flex: 0 0 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    margin: 0 15px;
    text-align: justify;
    filter: blur(3px);
}
.div_carrousel_container>div.active {
    filter: none;
}
.div_carrousel_container>div:nth-of-type(1) {
    margin-left: 10%;
}
.div_carrousel_container>div:nth-last-of-type(1) {
    margin-right: 10%;
}
/* .div_carrousel_container>div>div {
    margin: 0 20px;
    flex: 0.8;
}
.div_carrousel_container>div::before {
    content: url(/ressources/index/p1.svg);
}
.div_carrousel_container>div::after {
    content: url(/ressources/index/p2.svg);
} */

@media screen and (max-width: 775px) {
    .div_carrousel .carrousel_back, .div_carrousel .carrousel_next {
        display: none;
    }
}

/* Sections avec listes (Nos missions et nos actions) */
section ul {
  list-style: none;
  padding-left: 0;
  width: 100%;
}
#missions h2::before, #actions h2::before {
    content: "";
    display: inline-block;
    width: 205px;
    height: 40px;
    background: url(/ressources/logo/fee-e-rose.svg) no-repeat center;
    background-size: contain;
    transform: scaleX(-1);
    margin-right: 10px;
}
#missions h2::after, #actions h2::after {
    content: "";
    display: inline-block;
    width: 205px;
    height: 40px;
    background: url(/ressources/logo/fee-e-rose.svg) no-repeat center;
    background-size: contain;
    margin-left: 10px;
}
@media screen and (max-width: 620px) {
    #missions h2::before, #actions h2::before {
        width: 32px;
        height: 32px;
        background: url(/ressources/logo/fee.svg) no-repeat center;
        background-size: contain;
        margin-right: 11vw;
    }
    #missions h2::after, #actions h2::after {
        width: 32px;
        height: 32px;
        background: url(/ressources/logo/fee.svg) no-repeat center;
        background-size: contain;
        margin-left: 11vw;
    }
}
section li:not(:last-child) {
    margin-bottom: 13px;
}
section li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("/ressources/logo/ebc.svg");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
}
section:nth-child(2n) li::before {
    background-image: url(/ressources/logo/ej.svg);
}

/* Footer */
footer {
    padding: 25px calc(calc(calc(100% - 1500px) / 2) + 15px) 35px calc(calc(calc(100% - 1500px) / 2) + 15px);
}
footer a {
    color: #000000;
}
footer svg {
    width: 30px;
    margin: 0 7px;
}
@media screen and (max-width: 600px) {
    footer {
        padding-bottom: 75px;
    }
    #accueil>div>div {
        padding: 0 25px;
    }
    #intervenants>ul {
        flex-direction: column;
    }
    #intervenants>ul>li {
        max-width: 100%;
        width: 100%;
    }
}

/* #jpo {
    height: 500px;
} */

#jpo.deux>div:has(img) {
    max-height: 500px;
    width: 50%;

}
#jpo>div:nth-of-type(1) {
    display: flex;
    align-items: center;
    justify-content: center;
}
#jpo>div:nth-of-type(1)>div {
    align-items: center;
}
#jpo p {
    font-size: 20px;
}

@media screen and (max-width: 600px) {
    #jpo.deux>div:has(img) {
        width: 100%;
    }
    #jpo.deux>div>img {
        max-height: none;
        padding: 25px;
    }
}