/**************
* ENGAGEMENTS *
**************/

.main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 4rem 10%;
    padding-bottom: 0;
}
.main__ancres{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.main__ancres a:not(:last-of-type){
    margin-right: 1rem;
}
.main__ancres a{
    color: var(--primaire);
    position: relative;
    margin-top: .5rem;
    font-family: 'Philosopher', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}
/* Reponsive desktop */
@media screen and ( min-width:1280px ) {
    .main{
        margin-top: 15vh;
        position: relative;
        margin-bottom: 5rem;
        padding-left: 40%;
    }
    .main__ancres a::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -.5rem;
        width: 0;
        height: 2px;
        background-color: var(--secondaire); 
        transition: width 0.3s ease-in-out; 
        transform: translateX(-50%);
    }
    .main__ancres a:hover::after {
        width: 80px; 
    }
    .main__ancres a:not(:last-of-type){
        margin-right: 3rem;
    }
    .main::before{
        position: absolute;
        content: url(../images/design/elements-graphiques/assiette-3.png);
        left: 10%;
        bottom: -4rem;
    }
}


/* Démarches RSE */
.rse-iso{
    background-color: rgba(206, 180, 129, 0.30); 
    margin-top: 7rem;
}

.rse__photo{
    margin: auto;
}

.rse{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.rse .fireworks{
    max-width: 8rem;
    margin-bottom: 1rem;
}
.rse__titre{
    color: var(--primaire);
    display: block;
    margin-bottom: 1rem;
}
.rse__contenu > p{
    margin-bottom: .5rem;
}

.rse__bouton {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

/* .rse__bouton:hover {
	background-color: #005e8a;
} */



/* Reponsive desktop */
@media screen and ( min-width:1000px ) {
    .rse{
        display: flex;
        flex-direction: row;
        gap: 6rem;
        align-items: flex-end;
    }
    .rse__contenu{
        width: 40%;
    }
    .rse__photo{
        width: 60%;
        max-height: none;
    }
    .rse .fireworks{
        max-width: 12.5rem;
    }
    .rse{
        position: relative;
        background-color: transparent;
        margin-top: 0;
    }
    .rse::before{
        content: "";
        position: absolute;
        top: 12rem;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(206, 180, 129, 0.30); 
        z-index: -1;
    }
}
/* Reponsive desktop */
@media screen and ( min-width:1600px ) {
    .rse::before{
        top: 14rem;
    }
}


/* Normes ISO */
.iso{
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

.iso__photo {
    max-height: 70vh;
}

.iso .fireworks{
    max-width: 8rem;
    margin-bottom: 1rem;
}
.iso__titre{
    color: var(--primaire);
    display: block;
    margin-bottom: 1rem;
}
.iso__contenu > p{
    margin-bottom: .5rem;
}
/* Reponsive desktop */
@media screen and ( min-width:1000px ) {
    .iso{
        display: flex;
        flex-direction: row;
        gap: 6rem;
        align-items: center;
        margin-top: 4rem;
    }
    .iso__contenu{
        width: 40%;
    }
    .iso__photo{
        width: 60%;
        /* max-height: none; */
    }
    .iso .fireworks{
        max-width: 12.5rem;
    }
}


/* Développement durable */
.dev-durable{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
}
/* Reponsive desktop */
@media screen and ( min-width:1200px ) {
    .dev-durable{
        padding: 5rem 30%;
    }
}

.dev-durable__boutons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

/* Enjeux */
.enjeux{
    display: flex;
    flex-direction: column;
    gap: 7rem;
    align-items: flex-start;
}
.enjeux ul li{
    position: relative;
    margin-left: 1.5rem;
    margin-bottom: .25rem;
}
.enjeux ul li::before{
    content: '';
    position: absolute;
    width: .4rem;
    height: .4rem;
    left: 0;
    border-radius: 50%;
    background-color: var(--primaire);
    color: var(--primaire);
    margin-left: -1rem;
    margin-top: .5rem;
}
.enjeu{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.enjeu.appear {
    max-width: 100%;
    opacity: 1;
    transform: translateY(0);
}
.enjeu__contenu > *{
    margin-bottom: .5rem;
}
.enjeu__titre{
    color: var(--tertiaire);
    position: relative;
}
.enjeu__titre::before{
    content: '1';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    line-height: .8;
    color: #CEB481;
    z-index: -1;
    opacity: .2;
}
.enjeux .enjeu:nth-of-type(2) .enjeu__titre::before{
    content: '2';
}
.enjeux .enjeu:nth-of-type(3) .enjeu__titre::before{
    content: '3';
}
.enjeux .enjeu:nth-of-type(4) .enjeu__titre::before{
    content: '4';
}

.slider-outer-container{
    position: relative;
}
.slider-container {
    position: relative;
    overflow: hidden;
    width: calc(90vw - 2rem);
    margin: 0 1rem;
}
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
}
.logo img{
    height: 6rem; 
    min-width: 8rem;
    margin-right: .5rem;
    object-fit: contain;
}
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    color: var(--secondaire);
    font-size: 3rem;
    user-select: none;
}
.prev {
    left: 0;
}
.next {
    right: 0;
}



/* Reponsive desktop */
@media screen and ( min-width:1280px ) {
    .enjeu{
        position: relative;
    }
    .enjeux .enjeu:nth-of-type(1){
        padding-right: 45%;
    }
    .enjeux .enjeu:nth-of-type(2){
        align-self: flex-end;
        padding-left: 45%;
    }
    .enjeux .enjeu:nth-of-type(3){
        padding-left: 15%;
        padding-right: 33%;
    }

    .enjeux .enjeu:nth-of-type(4){
        align-self: flex-end;
        padding-left: 45%;
    }

    .enjeux .enjeu:nth-of-type(1)::after{
        position: absolute;
        content: url(../images/design/elements-graphiques/assiette-4.png);
        right: -25vw;
        top: -8rem;
    }
    .enjeux .enjeu:nth-of-type(2)::after{
        position: absolute;
        content: url(../images/design/elements-graphiques/spices-spoon-isolated-white-background\ 4.png);
        left: -10vw;
        top: 0;
    }
    .enjeux .enjeu:nth-of-type(3)::after{
        position: absolute;
        content: url(../images/design/elements-graphiques/assiette-5.png);
        right: -25vw;
        top: -3rem;
    }

    .enjeux .enjeu:nth-of-type(4)::after{
        position: absolute;
        content: url(../images/design/elements-graphiques/flat-lay-uncooked-spaghetti-penne-parmesan-with-copy-space.png);
        left: -10vw;
        top: 0;
    }

    .slider-container {
        width: 38rem; 
        margin: 0 2rem;
    }
	.enjeux .enjeu:nth-of-type(2){
		margin: 3rem 0;
	}
	.enjeux .enjeu:nth-of-type(2)::before{
		top: -6rem;
		left: -40%;
		right: -30%;
		bottom: -3rem;
		position: absolute;
		content: '';
		background-color: rgba(206, 180, 129, 0.30);
		z-index: -1;
	}

    .enjeux .enjeu:nth-of-type(4){
		margin: 3rem 0;
	}
	.enjeux .enjeu:nth-of-type(4)::before{
		top: -6rem;
		left: -40%;
		right: -30%;
		bottom: -3rem;
		position: absolute;
		content: '';
		background-color: rgba(206, 180, 129, 0.30);
		z-index: -1;
	}

}

