html, body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	height: 100dvh;
	max-width: 100dvw;
}
@media print {
	html, body {
		height: fit-content;
		-webkit-print-color-adjust:exact !important;
		print-color-adjust:exact !important;
	}
	.media-accessible {
		content: var(--img-src);
	}
}

@font-face {
    font-family: HG-EB;
    src: url('../fonts/HankenGrotesk-ExtraBold.woff2');
}
@font-face {
    font-family: HG-B;
    src: url('../fonts/HankenGrotesk-Bold.woff2');
}
@font-face {
    font-family: HG-SB;
    src: url('../fonts/HankenGrotesk-SemiBold.woff2');
}
@font-face {
    font-family: HG-M;
    src: url('../fonts/HankenGrotesk-Medium.woff2');
}
@font-face {
    font-family: HG;
    src: url('../fonts/HankenGrotesk-Regular.woff2');
}
@font-face {
    font-family: HG-L;
    src: url('../fonts/HankenGrotesk-Light.woff2');
}
@font-face {
    font-family: HG-T;
    src: url('../fonts/HankenGrotesk-Thin.woff2');
}

:root {
	--main-color-1: #e5007d;
	--main-color-2: #ffed00;
}

body {
	color: #f2f2f2;
	font-family: HG-SB;
	font-size: 18px;
	text-align: justify;
}

:root {
	--header-height: 130px;
	--offset-header-height: var(--header-height);
	--content-width: 1000px;
	--max-content-width: 90dvw;
	--scroll-color-1: var(--main-color-1);
	--scroll-color-2: var(--main-color-2);
	--block-spacing: 175px;
}

[popover] {
	all: unset;
}

@media screen and (max-width: 600px) {
	:root {
		--offset-header-height: 0;
	}
}

/** ===================== GLOBAL STYLES ===================== **/

a {
	color: white;
}


.media-accessible {
	display: block;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-image: var(--img-src);
}
h1.media-accessible,
h2.media-accessible,
h3.media-accessible,
h4.media-accessible,
h5.media-accessible,
h6.media-accessible {
	margin: 0;
}


.media-accessible > *:not(img),
.invisible-accessible,
.btn:not(.open) .content {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

span.soon {
	display: block;
	font-size: 3rem;
	text-align: center;
	margin: 50px;
	color: var(--main-color-2);
}

.rounded {
	clip-path: circle(50% at 50% 50%);
}

#main .links {
	justify-content: center;
	gap: 20px;
}

#main .links a {
	position: relative;
	box-shadow: -10px 10px var(--box-shadow-color);
	--box-shadow-color: #FFF;
	top: 0;
	left: 0;
	border-radius: 100px;
	transition: 
		box-shadow 0.2s ease-in-out,
		top 0.2s ease-in-out,
		left 0.2s ease-in-out
	;
}
#main .links a:hover {
	box-shadow: -2px 2px var(--box-shadow-color);
	top: 6px;
	left: -6px;
}


#main .links .media-accessible {
	box-shadow: -10px 10px #59358c;
	width: 60px;
	height: 60px;
	mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: var(--main-color-2);
}
#main .links .media-accessible.ig-lnk {
	mask-image:url("../vectors/links/ig.svg");
}
#main .links .media-accessible.fb-lnk {
	mask-image:url("../vectors/links/fb.svg");
}

.srx {
	font-weight: 600;
	font-size: 105%;
}

li {
  margin-top: 10px;
}

/** ------------ Scrollbars ------------ **/

/* Firefox */

* {
	scrollbar-width: thin;
	scrollbar-color: var(--scroll-color-2) var(--scroll-color-1);
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
	width: 16px;
}

*::-webkit-scrollbar-track {
	background: var(--scroll-color-2);
}

*::-webkit-scrollbar-thumb {
	background-color: var(--scroll-color-1);
	border-radius: 10px;
	border: 3px solid #ffffff;
}

/** ===================== SITE SECTIONS ===================== **/

main {
	max-width: 100dvw;
	max-height: 100dvh;
	overflow-x: hidden;
	overflow-y: scroll;
	
	scroll-snap-type: y mandatory;
	background-color: var(--main-color-1);
	position: relative;
	z-index: 0;
}
@media print {
	main {
		max-height: fit-content;
		overflow-y: auto;
	}
	main > section .media-accessible,
	main {
		
	}
}

/** ------------ header ------------ **/

/**.btn.open .item-heading, **/
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	min-width: 1200px;
	height: var(--header-height);
	z-index: 1000;
	
	clip-path: polygon(0 0, 0 100%, 100% 0);
}

/**.btn.open .left-heading, **/
.site-header .left-header {
	width: 100%;
	height: 100%;
	
	background-color: var(--main-color-2);
	
	padding: 25px;
	padding-top: 30px;
	box-sizing: border-box;
}

.site-header a {
	width: fit-content;
	height: fit-content;
	display: block;
}

.site-header .site-logo {
	--img-src: url("../vectors/logo.svg");
	max-width:70dvw;
	width: 320px;
	height: 70px;
	margin-top: -10px;
}


@media screen and (max-width: 600px) {
	.site-header {
		position: absolute;
	}
	body:has(.btn.open) .site-header {
		position: fixed;
	}
	.site-header .left-header {
		padding: 20px;
		padding-top: 25px;
	}
}
@media print {
	.site-header {
		position: absolute;
	}
}

/** ------------ footer & sections ------------ **/

main > footer,
main > section {
    min-height: 100dvh; 
    scroll-snap-align: start;
	scroll-snap-stop: always;	
	
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	
}

main > footer,
main > section:not(:nth-child(2), .fit-the-content) {
	margin-top: 200px;
}

main > footer,
main > section.fit-the-content {
    scroll-margin-top: var(--offset-header-height);
	scroll-margin-bottom: 200px;
	justify-content: start;
	box-sizing: border-box;
	min-height: unset;
	margin-top: var(--block-spacing);
	scroll-snap-align: center;
}

/** ------ sections ------ **/

main > section.first-fit {
	margin-top: unset;
	scroll-snap-align: start;
}

main > section.last-fit {
	scroll-snap-align: end;
}

main > footer > div,
main > section > div {
	width: var(--content-width);
	margin-top: var(--block-spacing);
	max-width: var(--max-content-width);
	position: relative;
	
}

main > footer > div,
main > section > div:first-of-type {
	margin-top: 0;
}

/** ------ footer ------ **/

main > footer {
	text-align: center;
}

main > footer > div:not(:first-child) {
	margin-top: 50px;
}
main > footer > div:last-child {
	margin-bottom: 70px;
}


/** ===================== FLEX GRID ROW ===================== **/

/** ------------ flex grid ------------ **/

.grid {
	display: grid;
	gap: 40px;
	align-items: center;
	justify-content: space-evenly;
}

.grid.g21 { grid-template-columns: 2fr 1fr; }
.grid.g12 { grid-template-columns: 1fr 2fr; }
.grid.g11 { grid-template-columns: 1fr 1fr; }

@media screen and (max-width: 1100px) {
	.grid.g21, .grid.g12 { 
		grid-template-columns: 1fr 1fr; 
	}
}
@media screen and (max-width: 600px) {
	.grid.g21, .grid.g12, .grid.g11 { 
		grid-template-columns: 1fr;
	}
}

/** ------------ flex row ------------ **/

.row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-evenly;
}

.row-3, .row-3 {
	gap: 40px;
}

.row-2 > * {
	flex: 1 1 45%;
}

.row-3 > *, 
.w-1-3 {
	flex: 1 1 30%;
}

@media screen and (max-width: 1100px) {
	.row-3 > *, 
	.w-1-3 {
		flex: 1 1 45%;
	}
}

.row-2 > *, 
.w-1-2 {
	flex: 1 1 45%;
}

.w-2-3 {
	flex: 1 1 60%;
}

@media screen and (max-width: 600px) {
	.row-3 > *, 
	.w-1-3, 
	.row-2 > *, 
	.w-1-2, 
	.w-2-3 {
		flex: 1 1 100%;
	}
}


/** ===================== STICKERS ===================== **/

.stickers {
	width: 200px;
	z-index: -1;
	aspect-ratio: 1;
	position: absolute;
	background-image: var(--img-src);
}

#sticker-purple {
	right: 0;
	top: 0;
	rotate: 17deg;
	transform: translate(37%,-98%) scale(1.2);
}

#sticker-orange {
	bottom: 0;
	right: 0;
	rotate: 13deg;
	transform: translate(96%,63%) scale(1.2);
}

#sticker-blue {
	top: 0;
	left: 0;
	rotate: 15deg;
	transform: translate(-120%,-20%);
}

#sticker-green {
	top: 0;
	left: 0;
	rotate: -18deg;
	transform: translate(-10%,0%) scale(130%);
}

#sticker-pink {
	top: 0;
	right: 0;
	rotate: 19deg;
	transform: translate(10%,-107%) scale(123%);
	z-index: 1;
}

/** ===================== BUTTONS ===================== **/

input[type="submit"] {
	all: unset;
	text-align: center;
	--txt-color: var(--main-color-1);
	color: var(--txt-color);
}

.btns-grid {
	position: relative;
}

.btn-container {
	--btn-color: var(--main-color-1);
	--btn-color-2: var(--main-color-2);
	--btn-height: 75px;
	position: relative;
	height: var(--btn-height);
}

input[type="submit"],
.btn {
	height: var(--btn-height);
	overflow: hidden;
	position: relative;
	
	border-radius: 35px;
	--box-shadow-color: #FFF;
	box-shadow: -10px 10px var(--box-shadow-color);
	top: 0;
	left: 0;
	
	transition: 
		transform .1s ease-in-out,
		opacity .05s ease-in-out,
		box-shadow 0.2s ease-in-out,
		top 0.2s ease-in-out,
		left 0.2s ease-in-out
	;
	cursor: pointer; 
	
	background-color: var(--btn-color);
}
input[type="submit"]:hover,
.btn:hover {
	/**transform: scale(1.05);**/
	cursor: pointer; 
	box-shadow: -2px 2px var(--box-shadow-color);
	
	top: 6px;
	left: -6px;
}

/** ------ btn heading ------ **/

.btn:not(.open) .item-heading {
	height: 100%;
}

.btn .left-heading {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
input[type="submit"],
.btn .left-heading h3 {
	font-weight: 600;
	font-size: 32px;
}

.btn .left-heading .shown {
	color: var(--txt-color);
	margin-left: 25px;
	margin-right: 25px;
}

.btn .media-accessible {
	pointer-events: none;
	transform: scale(0.6);
	background-size: initial;
	background-position: center;
	width: fit-content;
	height: fit-content;
}

/** ------ btn content ------ **/

.btn .content {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--max-content-width);
	width: 0;
	text-align: left;
}

/** ------ inverted btn ------ **/

.btn-container.invert-btn-open::after {
	background-color: var(--btn-color-2);
}

/** ------------ round opening animation ------------ **/

.btn-container::after {
	pointer-events: none;
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 200vmax;
	height: 200vmax;
	aspect-ratio: 1;
	z-index: 105;
	content: '';
	clip-path: circle(50.0% at 50% 50%);
	background-color: var(--btn-color);
	transition: 
		transform .15s ease-in-out;
}

.btn-container:has(.btn.opening)::after,
.btn-container:has(.btn.closing)::after {
	opacity: 1;
}
.btn-container:has(.btn.opening)::after,
.btn-container:has(.btn.open)::after {
	transform: translate(-50%, -50%) scale(1);
}
.btn-container:has(.btn.closing)::after {
	transform: translate(-50%, -50%) scale(0);
}

.btn.open.closing {
	opacity: 0;
}

/** ------------ button open as fullscreen window ------------ **/

.btn.open {
	position: fixed;
	z-index: 500; /** 1000 pour remplacer le site header **/
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
	padding-top: var(--header-height);
	padding-bottom: 150px;
	border-radius: 0;
	box-sizing: border-box;
	opacity: 1;
	
	--scroll-color-1: var(--btn-color);
	--scroll-color-2: var(--btn-color-2);
}

.btn.open {
	transition: 
		transform .1s ease-in-out,
		opacity .05s ease-in-out,
		box-shadow 0.2s ease-in-out,
		top 0s ease-in-out,
		left 0s ease-in-out
	;
}

.btn.open:hover {
	transform: unset;
	cursor: unset; 
}

.btn.open .item-heading {
	margin-top: 20px;
}

/**
.btn.open .left-heading {
	background-color: var(--btn-color-2);
}
**/

.btn.open .left-heading .shown {
	margin-left: 10px;
	margin-top: 5px;
	font-family: HG-B;
}

/** ------ open inverted-btn ------ **/

.btn.open.invert-btn-open .left-heading {
	/**background-color: var(--btn-color);**/
}

.btn.open.invert-btn-open .left-heading .shown {
	/**background-color: var(--btn-color);**/
	color: #FFF;
}

.btn.open.invert-btn-open {
	background-color: var(--btn-color-2);
	--scroll-color-1: var(--btn-color-2);
	--scroll-color-2: var(--btn-color);
}

/** ------ open heading ------ **/

.btn.open .left-heading {
	margin: auto;
	width: var(--content-width);
	max-width: var(--max-content-width);
	align-items: center;
	justify-content: center;
}
.btn.open .media-accessible {
	transform: scale(80%);
	transform-origin: center center;
}

.btn .left-heading img.offset {
	margin-top: -6px;
}
.btn.open .left-heading img.offset {
	margin-top: -14px;
}


.btn.open .close-cross {
	position: fixed;
	z-index: 1000;
	top: 36px;
	right: 30px;
	width: calc( .3 * var(--btn-height) );
	height: calc( .3 * var(--btn-height) );
	mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: #FFF;
}

.btn.open .close-cross:hover {
	transform: scale(1.05);
	cursor: pointer; 
}

@media screen and (max-width: 660px) {
  .btn.open.invert-btn-open .close-cross {
    background-color: var(--btn-color-2);
  }
}

@media screen and (max-width: 940px) {
	.btn.open .close-cross {
		mix-blend-mode: difference;
	}
}
@media screen and (max-width: 660px) {
	.btn.open .close-cross {
		mix-blend-mode: unset;
		background-color: var(--btn-color);
	}
}

/** ------ open content ------ **/

.btn.open .content {
	width: fit-content;
	max-width: var(--max-content-width);
	z-index: -1;
}

.btn.open .content {
	font-size: 23px;
}
@media screen and (max-width: 800px) {
	.btn.open .content {
		font-size: 20px;
	}
}
@media screen and (max-width: 600px) {
	.btn.open .content {
		font-size: 18px;
	}
}


@media print {
	#main .btn-container {
		flex-basis: 100%;
		width: 100%;
		height: fit-content;
		margin: 0;
		max-width: 100%;
	}
	#main .btn {
		overflow: visible;
		height: fit-content;
	}
	#main .btn.invert-btn-open {
		color: var(--btn-color-2);
	}
	body:has(.btn.open) {
		overflow-x: hidden;
		overflow-y: scroll;
	}
	body:has(.btn.open) *:not(:has(.btn.open)):not(.btn.open):not(.btn.open *),
	.btn-container::after {
		all: unset;
		width: 0;
		height: 0;
		overflow: hidden;
		display: block;
	}
	body *:has(.btn.open) {
		display: block;
		overflow: visible;
		margin:0;
		padding:0;
	}
	#main .btn.open {
		position: static;
		width: 100dvw;
		min-height: 100dvh;
	}
	#main .btn.open .left-heading {
		position: absolute;
		left:50dvw;
	}
	#main .btn .content {
		position: unset;
		width: unset;
		height: unset;
		overflow: unset;
		clip-path: unset;
		white-space: unset;
		border: unset;
		min-width: 95%;
		padding: 20px;
	}
}

/** ===================== VIDEOS ===================== **/

button.play-btn {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.video-container {
	position: relative;
	width: fit-content;
	height: fit-content;
}

.video-player {
	max-width: 100%;
	width: 700px;
	background-color: black;
	box-shadow: -10px 10px #59358c;
	cursor: pointer; 
	transform: scale(1);
	transition: 
		box-shadow 0.2s ease-in-out,
		transform 0.2s ease-in-out
	;
}

.video-player:hover, .video-player.playing {
	box-shadow: -2px 2px #59358c;
	transform: translate(-8px, 8px);
}

.video-player video {
	width: 100%;
	display: block;
}

.video-player .play-btn {
	width: 75px;
	aspect-ratio: 1;
	mask:url("../vectors/play-button.svg");
	mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	background-color: var(--main-color-2);
	
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

.video-player.playing .play-btn {
	visibility: hidden;
}

.video-player .progress-bar {
	height: 3px;
	width: 0%;
	
	background-color: var(--main-color-2);
	position: absolute;
	bottom: 0;
	left: 0;
}

.video-player.playing .progress-bar {
	transition: width 0.3s linear; 
}



/** ===================== CONTENT/SECTIONS SPECIFIC ===================== **/

/** ------------ campaign ------------ **/

.campaign-title {
	--img-src: url("../vectors/changer-la-vie.svg");
	width: 100%;
	height: 635px;
	max-height: 70dvh;
}

/** ------------ creed ------------ **/

.creed-text {
	text-align: justify;
}

@media screen and (max-width: 960px) {
	#creed .grid {
		grid-template-columns: 1fr;
	}
	.creed-text {
		text-align: justify;
	}
}

.rodrigo-fig {
	background-color: var(--main-color-2);
	--img-src:url("../images/rodrigo.webp");
	min-width: 300px;
	aspect-ratio: 1;
	background-size: 100% auto;
	background-position: center top;
}

@media screen and (max-width: 1000px) {
	.rodrigo-fig {
		scroll-snap-align: end;
	}
}

/** ------------ program / themes ------------ **/

.btn.vivre-ensemble.open .media-accessible {
	transform: scale(60%);
	background: url(../vectors/buttons-labels/vivre-ensemble-invert.svg) no-repeat;
}
.btn.vivre-ensemble.open .media-accessible img  {
	opacity: 0;
}

@media screen and (max-width: 700px) {
	.themes-btns .btn:not(.open) {
		width: 41dvw;
	}
	#main .themes-btns .btn:not(.open) .media-accessible {
		transform: scale(55%);
	}
}

@media screen and (max-width: 600px) {
	.themes-btns .btn:not(.open) {
		width: 40dvw;
	}
	#main .themes-btns .btn:not(.open) .media-accessible {
		transform: scale(50%);
	}
}

@media screen and (max-width: 600px) {
	
	.themes-btns .btns-grid {
		column-gap: 20px;
		row-gap: 30px;
	}
	.themes-btns .btns-grid > * {
		flex-basis: 45%;
	}
}
@media screen and (max-width: 400px) {
	
	.themes-btns .btns-grid > * {
		flex-basis: 100%;
	}
	.themes-btns .btn:not(.open) {
		width: 100%;
	}
}

/** ------------ btn "la liste" ------------ **/

#list-btn-container .row {
	justify-content: center;
	gap: 40px;
}

.btn-container.la-liste,
.btn-container.rejoinsnous  {
	max-width: 260px;
}

.btn-container.rejoinsnous  {
	z-index: 50;
}

@media screen and (min-width: 600px) {
	.btn-container.rejoinsnous  {
		position:fixed;
		top: calc( ( var(--header-height) + 25px ) /2 ); 
		right: 25px;
	}
}
@media screen and (min-width: 900px) {
	.btn-container.rejoinsnous  {
		top: calc( ( var(--header-height) - 25px ) /2 ); 
	}
}
@media screen and (min-width: 1200px) {
	.btn-container.rejoinsnous  {
		top: calc( ( var(--header-height) - 75px ) /2 ); 
	}
}

.grid.rejoinsnous {
	margin-top: 80px;
	row-gap: 60px;
	column-gap: 60px;
	grid-template-columns: 1fr 1fr;
}

.rejoinsnous input[type="submit"] {
	margin: auto;
	grid-column: span 2; 
	justify-self: center;
	padding-left: 30px;
	padding-right: 30px;
	--box-shadow-color: #59358c;
}

@media screen and (max-width: 660px) {
	.grid.rejoinsnous {
		grid-template-columns: 1fr;
	}
	.grid.rejoinsnous input[type="submit"] {
		grid-column: span 1;
	}
}

.input {
	position: relative;
	max-width: fit-content;
}

.input.aba {
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 0;
    pointer-events: none;
	overflow: hidden;
}

.input label, 
.input input {
	font-size: 25px;
}

.input input {
	all: unset;
	background: white;
	padding: 15px;
	color: var(--main-color-1);
	box-shadow: -10px 10px #59358c;
	transition: 
		box-shadow 0.15s ease-in-out
	;
}

.input input:focus,
.input input:not(:placeholder-shown),
.input input:hover {
	box-shadow: -2px 2px #59358c;
}

.input input::placeholder {
	opacity:0;
}

.input label {
	position: absolute;
	left: 15px;
	top: 50%;
	color: var(--main-color-1);
	transform: translateY(-50%);
	pointer-events: none;
	
	transition: 
		top 0.15s ease-in-out,
		color 0.15s ease-in-out
	;
}

.input:has(input:focus) label,
.input:has(input:not(:placeholder-shown)) label {
	top: -30%;
	color: white;
}

#info {
	position: fixed;
	top: 40px;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
	padding: 10px 30px;
	border-radius: 35px;
}
#info.success {
	background-color: rgba(0, 145, 65, .85);
}
#info.error {
	background-color: rgba(233, 37, 15, .85);
}
#info.success span::before {
	mask:  url(../vectors/success.svg) no-repeat;
}
#info.error span::before {
	mask: url(../vectors/error.svg) no-repeat;
}
#info.success span::before,
#info.error span::before {
	display: inline-block;
	width: 25px;
	height: 25px;
	content: '';
	mask-size: contain;
	background: currentColor;
	margin-right: 7px;
	margin-bottom: -7px;
}
#info.evaporate {
	top: 0;
	opacity: 0;
}


/** https://rodrigopourparis14.fr/?status=success **/