/* Elements communs */
main {
    display: grid;
}

.wrapper1 {
    display: grid;
    grid-gap: 2px;
    align-items: center;
}

/* pres1 : à mon sujet */
#pres1 {
    grid-column: 1;
    grid-row: 1;
    margin-top: 10rem;
    position: inherit;
    background-color: #15b5b0;
}

#pres1 h2, #pres1 p {
    color:white;
    line-height:1.5rem;
    margin-bottom: 1rem;
}

#pres1 p {
    text-align: justify;
    text-justify: inter-word;
}

@media (max-width:800px) {

    #pres1 .image {
        grid-column: 1;
        grid-row: 1;
        left:25%;
    }

    #pres1 .texte {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (min-width:800px) {

    #pres1 .image {
        grid-column: 1;
        grid-row: 1;
        width : 40VW;
        left:15%;
    }

    #pres1 .texte {
        grid-column: 2;
        grid-row: 1;
        width : 40VW;
    }
}

#pres1 .image {
    position : relative;
    display: block;
    box-shadow: none;
}

#pres1 .image img {
    box-shadow: none;
    max-width : 100%;
}
#pres1 .squircle_avatar { background-image: url("../img/aurelie.png");	width:50%; aspect-ratio:1; clip-path: url(#squircle); background-size: cover;}


#pres1 .texte {
    position : relative;
    display: block;
    padding-top: 2rem;
}
#pente1 .penteBW{
    grid-column: 1;
    grid-row: 2;
    position:relative;
}

/* pres2: Mes objectifs */
#pres2 {
    grid-column: 1;
    grid-row: 3;
    background-color: white;
}


@layer demo {
	.carousel {
		--items: 4;
		--carousel-duration: 50s;
		@media (width > 600px) {
			--carousel-duration: 40s;
		}
		
        @media (max-width:800px) {
            --carousel-width: 80VW;
        }
        @media (min-width:800px) {
            --carousel-width: min(80vw,800px);
        }
        
		--carousel-item-width: 256px;
		--carousel-item-height: 460px;
		--carousel-item-gap: 2rem;
		--carousel-left: calc(50% - var(--carousel-width)/2);

		--clr-cta: rgb(0, 132, 209);

		position:relative;
		width: var(--carousel-width);
		height: var(--carousel-item-height);
        left: var(--carousel-left);
		overflow: clip;

		&[mask] {
			/* fade out on sides */
			mask-image: linear-gradient(
				to right,
				transparent,
				black 10% 90%,
				transparent
			);
		}

		&[reverse] > article {
			animation-direction: reverse;
		}
		/* hover pauses animation */
		&:hover > article {
			animation-play-state: paused;
		}
	}
    
	.carousel > article {
		position: absolute;
		top: 0;
		left: calc(100% + var(--carousel-item-gap));
		width: var(--carousel-item-width);
		height: var(--carousel-item-height);
		display: grid;
		grid-template-rows: 260px auto 1fr auto;
		gap: 0.25rem;
		padding-block-end: 1rem;
		border-radius: 10px;
		background: light-dark(white, rgba(255 255 255 / 0.05));
		color: light-dark(rgb(49, 65, 88), white);

		/* animation */
		will-change: transform;
		animation-name: marquee;
		animation-duration: var(--carousel-duration);
		animation-timing-function: linear;
		animation-iteration-count: infinite;
		animation-delay: calc(
			var(--carousel-duration) / var(--items) * 1 * var(--i) * -1
		);
		&:nth-child(1) {
			--i: 0;
		}
		&:nth-child(2) {
			--i: 1;
		}
		&:nth-child(3) {
			--i: 2;
		}
		&:nth-child(4) {
			--i: 3;
		}
		&:nth-child(5) {
			--i: 4;
		}
		&:nth-child(6) {
			--i: 5;
		}
		&:nth-child(7) {
			--i: 6;
		}
		&:nth-child(8) {
			--i: 7;
		}
	}
	.carousel img {
		width: 100%;
		height: 100%;
		object-fit: cover;

		border-radius: 10px 10px 0 0;
	}
	.carousel > article > *:not(img) {
		padding: 0 1rem;
	}
	.carousel > article > div {
		grid-row: span 2;
		display: grid;
		grid-template-rows: subgrid;
		font-size: 0.8rem;
	}
	.carousel > article h3 {
		font-size: 1.1rem;
		font-weight: 300;
		padding-block: 0.75rem 0.25rem;
		margin: 0;
	}
	.carousel > article p {
		margin: 100px;
	}

	@keyframes marquee {
		100% {
			transform: translateX(
				calc(
					(var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) *
						-1
				)
			);
		}
	}
}

#pres2 .ligne {
    margin:0 auto;
    align-items: baseline;
    width: 80VW;
}

@media (max-width:800px) {
    #pres2 .ligne {
        display:flow-root; 
    }
#pres2 .button-fond-blanc {
    width: 250px;
}

}
@media (min-width:800px) {
    #pres2 .ligne {
        display: flex;
    }

    #pres2 .button-fond-blanc {
        width: 20%;
    }

}

#pres2 h2, #pres2 p {
    line-height:1.5rem;
    margin-bottom: 1rem;
}

#pres2 p {
    text-align: center;
    text-justify: inter-word;
}


@media (max-width:800px) {
    #pres2 .image {
        grid-column: 1;
        grid-row: 1;
        left:5%;
    }

    #pres2 .texte {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (min-width:800px) {
    #pres2 .image {
        grid-column: 2;
        grid-row: 1;
        width : 35VW;
        left:15%;
    }

    #pres2 .texte {
        grid-column: 1;
        grid-row: 1;
        width : 45VW;
    }
}

#pres2 .image {
    position : relative;
    display: block;
    box-shadow: none;
}

#pres2 .image img {
    box-shadow: none;
    max-width : 100%;
}

#pres2 .texte {
   /* position : relative;
    bottom:-5%;*/
    display: block;
}


#pente2 .penteWB{
    grid-column: 1;
    grid-row: 4;
    position:relative;
}

/* pres3 : Expérience en data */
#pres3 {
    grid-column: 1;
    grid-row: 5;
    background-color: #15b5b0;
}

#pres3 h2 {
    color:white;
    margin-bottom: 1rem;
}

#pres3 {
    grid-column: 1;
    grid-row: 5;
    background-color: #15b5b0;
}

#pres3 p {
    color:white;
	text-align: justify;
}

@media (min-width:800px) {
    #pres3 .image {
        grid-column: 1;
        grid-row: 1;
        width : 35VW;
    }

    #pres3 .texte {
        grid-column: 2;
        grid-row: 1;
        width : 45VW;
    }
}


#pres3 img {
    box-shadow: none;
}


@keyframes display {
  0% {
    transform: translateX(200px);
    opacity: 0;
  }
  8% {
    transform: translateX(0);
    opacity: 1;
  }
  12% {
    transform: translateX(0);
    opacity: 1;
  }
  30% {
    transform: translateX(-300px);
    opacity: 0;
  }
  100% {
    transform: translateX(-200px);
    opacity: 0;
  }
}

.pic-ctn {
  position: relative;
  width: 300px;
  height: 260px;
  margin: auto;
  background-color:white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15%;
  mask-image: radial-gradient(white,white 70%,transparent);
}

.pic-ctn > img {
  position: absolute;
  opacity: 0;
  animation: display 12s infinite;
}

img:nth-child(2) {
  animation-delay: 2s;
}
img:nth-child(3) {
  animation-delay: 4s;
}
img:nth-child(4) {
  animation-delay: 6s;
}
img:nth-child(5) {
  animation-delay: 8s;
}
img:nth-child(6) {
  animation-delay: 10s;
}







#pente3 .penteBW{
    grid-column: 1;
    grid-row: 6;
    position:relative;
}

/* Restons en contact */
#contact {
    grid-column: 1;
    grid-row: 7;
}

#pente4 .penteWB{
    grid-column: 1;
    grid-row: 8;
    position:relative;
}






