@font-face {
    font-family: 'Bebas';
    src: url('../fonts/Bebas.woff2') format('woff2'),
        url('../fonts/Bebas.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*{
    box-sizing: border-box;
}

:root{
    --color-blue: #234c87;
    --color-purple: #8768c4;
    --color-yellow: #ffed00;
    --color-red: #e2332d;
    --color-white: #ffffff;
}

a{
    color: inherit;
}

.cta{
	font-family: 'Bebas';
    background-color: var(--color-yellow);
    color: var(--color-purple);
    text-transform: uppercase;
    border: none;
    padding: 0.1em 1em;
    cursor: pointer;
    font-weight: bold;
	transition: all 0.2s ease-in-out;
}

.cta:hover {
  transform: scale(1.10);
  transform-origin: center center;
}



.rs{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.rs__text{
    font-size: 20px;
    line-height: 1.2;
}

.rs__item{
    display: block;
    width: 44px;
    height: 44px;    
}

.rs__item--facebook{
	background-image: url('../images/facebook.jpg');
}

.rs__item--insta{
	background-image: url('../images/instagram.jpg');
}


body{
    font-family: Bebas, sans-serif;
/*    background-color: var(--color-purple);*/
	background-color: #efefef;
    color: var(--color-white);
}

.site{
    width: 1350px;
	margin: auto;
    display: flex;
    flex-direction: column;
}

.main{
    width: 1350px;
    display: flex;
}

.slider{
    width: 707px;
	height: 760px;
}

.content{
    background-color: var(--color-purple);
    width: 643px;
	height: 760px;
    position: relative;
}

.content__reglement{
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0px;
    padding: 0.5em 1em;
    border-radius: 0 0 1rem 1rem;
    background-color: var(--color-blue);
    font-size: 20px;
    text-decoration: none;
}

.content::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -95px;
    width: 95px;
    background: bottom right no-repeat url('../images/masque.png');
}

.slider {    
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 200%;
    animation: slide 8s ease-in-out infinite alternate;
}

/* Animation avec pauses */
@keyframes slide {
    0%   { transform: translateX(0); }
    45%  { transform: translateX(0); }      /* Pause image 1 */
    55%  { transform: translateX(-708px); }   /* Transition */
    100% { transform: translateX(-708px); }   /* Pause image 2 */
}

.slider-track__image {
    background: center right no-repeat;
    height: 760px;
    width: 100%;
}

.slider-track__image--1 {
    background-color: #795546;
    background-image: url('../images/slide_1.jpg');
}

.slider-track__image--2 {
    background-color: #ebce4a;
    background-image: url('../images/slide_2.jpg');
}


.footer{
    background-color: var(--color-blue);
    height: 25px;
    line-height: 25px;
    text-align: center;
}

.footer__link{
    text-decoration: none;
    
}

.footer__link::after{
    content: "/";
    padding: 0 0.5em;
}

.footer__link:last-child::after{
    content: none;
}


.popup{
    display: none;
    position: fixed;
    top:0;
    left:0;
    bottom:0;
    right:0;
    justify-content: center;
    align-items: center;
	z-index: 10;	
}

.popup--visible{
	background: rgba(0, 0, 0, 0.2);
    display: flex;	
	
}

.popup--visible .popup__inner{
	animation: 0.5s ease-in-out popupscale;	
}

@keyframes popupscale {
  0% {
    transform: scale(0.5);
  }  
  70%{
	  transform: scale(1.05);
  }  
  100% {
    transform: scale(1);
  }
}

.popup__inner{
    position: relative;
    background-color: var(--color-white);
    padding: 5rem;
    border-radius: 1rem;
    text-align: center;
}

.popup__close{
    background-image: url(../images/close.png);
    width: 22px;
    height: 22px;
    position: absolute;
    right: 1rem;
    top: 1rem;
    border: none;
    cursor: pointer;
    background-color: #fff;
}
.popup__close:hover {
    opacity:0.8;
}

.popup__titre{
    font-size: 32px;    
    color: var(--color-red);
    margin-bottom: 32px;
}

.popup__texte{    
    font-size: 20px;
    color: var(--color-purple);
    margin-bottom: 32px;
}

.popup__texte ul{
    text-align: left;
    list-style-type: disc;
}

.popup__texte li{
    line-height: 1.2;
}


.page{
    position: absolute;
    width: 643px;
    top: 0;
    bottom: 0;
    left: 0;    
    display: none;
}

.page--visible{
    display: flex;
}

.page__asterisque{
    text-align: center;
}

.before{
    padding: 60px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.before__titre{
    font-size: 56px;
    text-align: center;
}

.before__soustitre{
	width: 600px;
	height: 517px;
	background-image: url('../images/visuel_pascommence.jpg');
}

.after{
    padding: 60px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.after__titre{
    width: 600px;
	height: 327px;
	background-image: url('../images/visuel_termine.jpg');
}

.after__soustitre{
    text-align: center;
    font-size: 32px;
    text-decoration: none;    
}

.after__soustitre:hover{
    text-decoration: underline;
}


.home{
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.home__titre{
    width: 600px;
	height: 597px;
	background-image: url('../images/visuel_home.jpg');
}
	
.home__cta{
    font-size: 40px;
}

.formulaire{
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.formulaire__titre{
    width: 600px;
	height: 283px;
	background-image: url('../images/visuel_formulaire.jpg');
}

.form{
    width: 530px;
    margin-top: -45px;
}

.form__cols{
    display: flex;
    gap: 25px;
}

.form__first-half{
    position: relative;
    width: 210px;
}

.form__second-half{
    width: 295px;
}

.form__obligatoire{
	font-family: arial, sans-serif;
	font-size: 11px;
    position: absolute;
    top: -20px;
}

.form__field{
    top:2px;
    position: relative;
    height: 30px;
    margin-bottom: 10px;
}

.form__field--nom, .form__field--email{
    margin-bottom: 30px;
}

.form__input{
    font-family: 'Bebas', sans-serif;
    color: var(--color-purple);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    border:none;
    padding: 5px 1rem 0 1rem;
    font-size: 13px;
}

.form__label{    
    left: 1rem;
    top: 10px;
    position: absolute;
    color: var(--color-purple);
    transition: 0.2s ease;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
  top: 3px;
  font-size: 0.5rem;  
}

.form__field--fichier{
    margin-bottom: 70px;
}

.form__label--fichier{    
    top:0;
    left:0;
    bottom: 0;
    width: 100%;
    border-radius: 5px;
    background-color: var(--color-white);    
    color: var(--color-grey);
    font-size: 12px;
    background-image: url(../images/upload.png);
    background-repeat: no-repeat;
    background-position: 265px center;
    line-height: 1.2;
}

.form__label--fichier-inner{    
    position: absolute;
    top: 8px;
    left: 21px;    
    color: var(--color-purple);
    font-size: 14px;
}

.form__fieldinfo{
	font-family: arial, sans-serif;
	font-size: 11px;
    position: absolute;
    top: 45px;
    line-height: 1.2;    
}

.form__input--fichier{
    opacity: 0;
}

.state--before__block, .state--while__block, .state--after__block{
    display: none;
    height: 30px;
}

.state--before .state--before__block{
    display: block;
}

.state--while .state--while__block{
    display: block;
}

.state--after .state--after__block{
    display: block;
}

.state--while__progress, .state--after__filename{
    background-color: var(--color-white);
    color: var(--color-purple);
    height: 30px;
    border-radius: 5px;
    line-height: 30px;
    min-width: 20%;
    padding: 0 1rem;
    overflow: hidden;
}

.state--after__filename{
    width: 100%;
}

.state--after__close {
	background-image: url(../images/close.png);
	width: 22px;
	height: 22px;
	position: absolute;
	right: 0.5rem;
	top: 4px;
	border: none;
	cursor: pointer;
}

.form__field--checkbox{
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    height: auto;
    margin: 0 auto 0.6rem;
}

.form__input--checkbox{
    position: relative;    
    top: -4px;
}

.form__field--checkbox .form__label.form__label--checkbox{
	font-family: arial, sans-serif;
	font-size: 11px;
    position: static;
    line-height: 1.2;
    color: var(--color-white);
}

.form__infos{
	font-family: arial, sans-serif;
	font-size: 11px;
    line-height: 1;
    margin: 0 auto 1rem;    
}

.form__cta{
    width: 100%;
    font-size: 35px;
    margin: 10px auto 0;
	letter-spacing: 6px;
}

.perdu{
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.perdu__titre{
    width: 550px;
	height: 280px;
	background-image: url('../images/visuel_perdu.jpg');
}

.perdu__soustitre{
    text-align: center;
    font-size: 40px;
}

.gain{
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.gain__titre{
    width: 600px;
	height: 327px;	
    text-transform: uppercase;
    text-align: center;
    color: var(--color-purple);
}

.gain__titre-inner{
    transform: rotate(-6deg);
}

.gain__titre--places{
    background-image: url('../images/visuel_gain_places.jpg');
    padding: 90px 0 0 0px;
    font-size: 52px;
}

.gain__titre--enceinte{
    background-image: url('../images/visuel_gain_enceinte.jpg');
    padding: 112px 0 0 0px;
    font-size: 52px;
}

.gain__alerte{
    text-align: center;
    font-size: 32px;
}


@media all and (max-width: 1400px) and (min-width: 1201px){	

	@keyframes slide {
		0%   { transform: translateX(0); }
		45%  { transform: translateX(0); }      /* Pause image 1 */
		55%  { transform: translateX(-613px); }   /* Transition */
		100% { transform: translateX(-613px); }   /* Pause image 2 */
	}
	
	.site{
		width: 1170px;
	}

	.main{
		width: 1170px;		
	}

	.slider{
		width: 612px;
		height: 659px;
	}

	.content{
		width: 558px;
		height: 659px;
	}	
	
	.content::before{		
		left: -57px;
		width: 57px;
		background: bottom right no-repeat url('../images/masque_1170.png');
	}
	
	
	.slider-track__image {
		height: 659px;
	}

	.slider-track__image--1 {
		background-image: url('../images/slide_1_1170.jpg');
	}

	.slider-track__image--2 {
		background-image: url('../images/slide_2_1170.jpg');
	}	
	
	.page{
		width: 558px;
	}
	
	.home__titre{
		width: 549px;
		height: 543px;
		background-image: url('../images/visuel_home_1170.jpg');
	}
	
	.formulaire {
		padding: 0 0 5px;
	}
		
	.form__field--nom, .form__field--email {
		margin-bottom: 20px;
	}	
	
	.formulaire__titre{
		width: 524px;
		height: 254px;
		background-image: url('../images/visuel_formulaire_1170.jpg');
	}
	
	.form__field {
        height: 28px;
	}
	
	.form__input {
		font-size: 12px;
		padding: 5px 1rem 0 1rem;
	}
	
	.form__infos {
		font-size: 10px;
	}
	
	.form__fieldinfo {
		font-size: 10px;
	}
	
	.form__field--checkbox .form__label.form__label--checkbox {
		font-size: 10px;
	}

	
	.form__cta {
		display: block;
		width: 90%;
		font-size: 25px;	
	}
	
	.perdu__titre{
		width: 531px;
		height: 278px;
		background-image: url('../images/visuel_perdu_1170.jpg');
	}

	.gain__titre{
		width: 538px;
		height: 284px;	
	}
	
	.gain__titre--places{
		background-image: url(../images/visuel_gain_places_1170.jpg);
        padding: 80px 0 0 0px;
        font-size: 45px;
	}

	.gain__titre--enceinte {
        background-image: url(../images/visuel_gain_enceinte_1170.jpg);
        padding: 103px 0 0 0px;
        font-size: 45px;
    }
	
	.before {
	    padding: 50px 0 10px;
	}
	
	.before__titre {
		font-size: 42px;
	}
	
	.before__soustitre {
		width: 494px;
		height: 450px;
		background-image: url(../images/visuel_pascommence_1170.jpg);
	}

	.after{
		padding: 60px 0 10px;
	}

	.after__titre{
		width: 531px;
		height: 278px;
		background-image: url('../images/visuel_termine_1170.jpg');
	}
}

@media all and (max-width: 1200px) and (min-width: 1001px){	

	@keyframes slide {
		0%   { transform: translateX(0); }
		45%  { transform: translateX(0); }      /* Pause image 1 */
		55%  { transform: translateX(-506px); }   /* Transition */
		100% { transform: translateX(-506px); }   /* Pause image 2 */
	}
	
	.site{
		width: 960px;
	}

	.main{
		width: 960px;		
	}

	.slider{
		width: 505px;
		height: 541px;
	}

	.content{
		width: 455px;
		height: 541px;
	}	
	
	.content::before{		
		left: -51px;
		width: 51px;
		background: bottom right no-repeat url('../images/masque_960.png');
	}	
	
	.content__reglement {
		border-radius: 0 0 0.5rem 0.5rem;
		font-size: 15px;
	}
	
	.slider-track__image {
		height: 541px;
	}

	.slider-track__image--1 {
		background-image: url('../images/slide_1_960.jpg');
	}

	.slider-track__image--2 {
		background-image: url('../images/slide_2_960.jpg');
	}	
	
	.page{
		width: 455px;
	}
	
	.page__asterisque {
		font-size: 12px;
	}
	
	.home__titre{
		width: 438px;
		height: 444px;
		background-image: url('../images/visuel_home_960.jpg');
	}
	
	.home__cta {
		font-size: 30px;
	}
	
	.formulaire{
		padding-top: 0;
	}
	
	.formulaire__titre{
		width: 259px;
		height: 111px;
		background-image: url('../images/visuel_formulaire_960.jpg');
	}
	
	.form {
		margin-top: -30px;
		width: 455px;
	}
	
	.form__cols {
		gap: 14px;
	}
	
	.form__field--checkbox{
		height: auto;
		margin: 0 auto 2px;
	}
	
	.form__cta {
        font-size: 20px;
    }
	
	.perdu__titre{
		width: 438px;
		height: 233px;
		background-image: url('../images/visuel_perdu_960.jpg');
	}
	
	.perdu__soustitre{
		font-size: 32px;
	}	
	
	.gain__titre{
		width: 449px;
		height: 231px;	
	}
	
	.gain__titre--places{
		background-image: url(../images/visuel_gain_places_960.jpg);
        padding: 63px 0 0 0px;
        font-size: 38px;
	}
	
	.gain__alerte{
		font-size: 27px;
	}

	.gain__titre--enceinte {
        background-image: url(../images/visuel_gain_enceinte_960.jpg);
        padding: 80px 0 0 0px;
        font-size: 38px;
    }
	
	.before__titre {
		font-size: 33px;
	}
	
	.before__soustitre {
		width: 416px;
		height: 369px;
		background-image: url(../images/visuel_pascommence_960.jpg);
	}

	.after{
		padding: 60px 0 10px;
	}

	.after__titre{
		width: 438px;
		height: 233px;
		background-image: url('../images/visuel_termine_960.jpg');
	}
}

@media all and (max-width: 1000px){	


	@keyframes slide {
		0%   { transform: translateX(0); }
		45%  { transform: translateX(0); }      /* Pause image 1 */
		55%  { transform: translateX(-751px); }   /* Transition */
		100% { transform: translateX(-751px); }   /* Pause image 2 */
	}
	
	.site{
		width: 750px;
	}

	.main{
		width: 750px;		
		flex-direction: column;
	}

	.slider{
		width: 750px;
		height: 809px;
	}
	
	.slider-track {
		width: 1500px;		
	}

	.slider-track__image {
		width: 750px;
	}

	.content{
		width: 750px;
		height: 809px;
	}	
	
	.content__reglement{
		top: -5px;
	}
	
	.content::before {
        left: 0;
        width: 750px;
		height: 42px;
		top: -42px;
        background: bottom right no-repeat url(../images/masque_750.png);
    }
	
	.slider-track__image {
		height: 809px;
	}

	.slider-track__image--1 {
		background-image: url('../images/slide_1_750.jpg');
	}

	.slider-track__image--2 {
		background-image: url('../images/slide_2_750.jpg');
	}	
	
	.page{
		width: 750px;
	}
}

@media all and (max-width: 767px){	

	@keyframes slide {
		0%   { transform: translateX(0); }
		45%  { transform: translateX(0); }      /* Pause image 1 */
		55%  { transform: translateX(-321px); }   /* Transition */
		100% { transform: translateX(-321px); }   /* Pause image 2 */
	}
	.site{
		width: 320px;
		position: relative;
		margin-bottom: 25px;
	}

	.main{
		width: 320px;		
	}

	.slider{
		width: 320px;
		height: 344px;
	}
	
	.footer{
		position: absolute;
		bottom: 0;
		right: 0;
		left: 0;
	}
	
	.footer__link {
		font-size: 12px;
}
	
	.slider-track {
		width: 640px;		
	}

	.slider-track__image {
		width: 320px;
	}

	.content{
		width: 320px;
		height: auto;
		padding-bottom: 15px;
	}	
	
	.content__reglement{
		top: -4px;
		font-size: 16px;
	}
	
	.content::before {
        left: 0;
        width: 320px;
		height: 14px;
		top: -14px;
        background: bottom right no-repeat url(../images/masque_320.png);
    }
	
	.slider-track__image {
		height: 344px;
	}

	.slider-track__image--1 {
		background-image: url('../images/slide_1_320.jpg');
	}

	.slider-track__image--2 {
		background-image: url('../images/slide_2_320.jpg');
	}	
	
	.page{
		width: 320px;
		position: static;
		padding-bottom: 20px;
	}
	
	.page__asterisque {
		font-size: 9px;
	}
	
	.home{
		height: 420px;		
	}
	
	.home__titre{
		width: 286px;
		height: 284px;
		background-image: url('../images/visuel_home_320.jpg');
	}
	
	.formulaire__titre{
		width: 279px;
		height: 138px;
		background-image: url('../images/visuel_formulaire_320.jpg');
	}
	
	.form {
		width: 320px;
		margin-top: 0;
	}
	
	.form__cols {
		display: block;
	}
	
	.form__first-half {
		width: 320px;
	}
	
	.form__second-half {
		width: 320px;
	}
	
	.form__cta {
		width: 86%;
		font-size: 18px;
		margin: 10px auto 10px;
		letter-spacing: 2px;
		display: block;
	}
	
	.form__label--fichier {
        background-position: 290px center;
	}
	
	.perdu {
		height: 400px;
	}		
	
	.perdu__titre{
		width: 287px;
		height: 155px;
		background-image: url('../images/visuel_perdu_320.jpg');
	}
	
	.perdu__soustitre{
		font-size: 26px;
	}	
	
	.gain {
		height: 400px;
	}
	
	.gain__titre{
		width: 287px;
		height: 155px;	
	}
	
	.gain__titre--places{
		background-image: url(../images/visuel_gain_places_320.jpg);
        padding: 44px 0 0 0px;
        font-size: 23px;
	}
	
	.gain__alerte{
		font-size: 20px;
	}
	
	.rs__text {
		font-size: 16px;
	}

	.gain__titre--enceinte {
        background-image: url(../images/visuel_gain_enceinte_320.jpg);
        padding: 55px 0 0 0px;
        font-size: 23px;
    }
	
    .before {
		height: 420px;
	}
	
	.before__titre {
		font-size: 26px;
	}
	
	.before__soustitre {
		width: 268px;
		height: 238px;
		background-image: url(../images/visuel_pascommence_320.jpg);
	}

	.after{
		padding: 30px 0 10px;
		height: 400px;
	}

	.after__titre{
		width: 287px;
		height: 155px;
		background-image: url('../images/visuel_termine_320.jpg');
	}
	
	.after__soustitre {
        font-size: 26px;
	}	
	
	.popup__inner{
		padding: 0.5rem;
		 width: 320px;
	}
	
	.popup__texte ul{
		list-style-type: none;
		font-size: 14px;
	}
}