@font-face {
	font-family: 'Retro Mario';
	src: url('./fonts/RetroMario-Regular.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Elegant Typewriter';
	src: url('./fonts/ELEGANT TYPEWRITER Light.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

body{
	overflow: hidden; 
	height: 100%;
	width: 100%;
	font-family: Arial, Helvetica, sans-serif;
	color: white;
	background-color: #040E14;
}

#bckgPicture
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-image: url(./pictures/01_bckg_titre.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: auto 100%;
	/* if you prefer to cover and crop top/bottom use background-size: cover; */
}

#menu
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 90vh;
	z-index: 100;
	display: flex;
	justify-content: center;
	align-items: center;
	/* background-color: rgba(0, 0, 0, 0.2); */
}


.menuBtn
{
	display: flex;
	flex-direction: column;
	gap: 0.25vh;
	align-items: center;
	padding-top: 35vh;
}

#btn_menu_01,
#btn_menu_02,
#btn_menu_03
{
	width: min(465px);
	aspect-ratio: 465 / 105;
	background-repeat: no-repeat;
	/* background-position: center center; */
	/*background-size: contain;*/
	cursor : pointer;
	position: relative;
	z-index: 1;
}

#btn_menu_01
{
	background-image: url(./pictures/sprtiteSheet.png);
	background-position: -340px 0;
}
#btn_menu_01:hover
{
	background-image: url(./pictures/sprtiteSheet.png);
	background-position: -805px 0;
}

#btn_menu_02
{
	background-image: url(./pictures/sprtiteSheet.png);
	background-position: -340px -105px;
}
#btn_menu_02:hover
{
	background-image: url(./pictures/sprtiteSheet.png);
	background-position: -805px -105px;
}

#btn_menu_03
{
	background-image: url(./pictures/sprtiteSheet.png);
	background-position: -340px -210px;
}
#btn_menu_03:hover
{
	background-image: url(./pictures/sprtiteSheet.png);
	background-position: -805px -210px;
}

/* Styles pour les légendes du menu */
.menuLegend {
	position: absolute;
	opacity: 1;
	transition: opacity 0.3s ease;
	pointer-events: none;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.menuLegend img {
	max-width: 150px;
	height: auto;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
	flex-shrink: 0;
}

.menuLegend p {
	margin: 0;
	font-size: 22px;
	font-family: 'Elegant Typewriter', Arial, sans-serif;
	color: white;
	line-height: 1.3;
	white-space: normal;
}

/* Positionnement des légendes */
.legend-right {
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-left: -10px;
	flex-direction: row;
	align-items: flex-start;
}
.legend-right p {
	width: 250px;
    text-align: left;
    transform: rotate(13deg);
    margin-top: 34px;
}	

.legend-left {
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-right: -10px;
	flex-direction: row-reverse;
	align-items: flex-start;
}
.legend-left p {
	width: 250px;
    text-align: right;
    transform: rotate(-11deg);
    margin-top: 29px;
}

.legend-bottom {
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	margin-top: -10px;
	flex-direction: row;
	align-items: flex-start;
}
.legend-bottom p {
	width: 250px;
    text-align: center;
    transform: rotate(-6deg);
    margin-top: 36px;
    margin-left: -10px;
}	

/* Affichage au survol du bouton parent */
/*#btn_menu_01:hover .menuLegend,
#btn_menu_02:hover .menuLegend,
#btn_menu_03:hover .menuLegend {
	opacity: 1;
}*/

#footer
{
	position: absolute;
	bottom: 25px;
	left: 0;
	width: 100%;
	height: 5vh;
	z-index: 100;
	/* background-color: brown; */
	margin: 0;
}


#zoneContact
{
	position: relative;
	text-align: center;
	/* background-color: aqua; */
	/* bottom: 0.5vh; */
}

.socialBtn{
	display: inline-block;
	position: relative;
	width: 56px;
	height: 56px;
	background-image: url(pictures/sprtiteSheet.png);
	margin-left: 20px;
	margin-right: 20px;
	right:0px;
	/* background-size: contain; */
}

#contactMail{
	display: block;
	position: relative;
	width: 40px;
	height: 40px;
	top: 5px;
	left: 5px;
	background-image: url(pictures/sprtiteSheet.png);
	background-position: -60px 0;
}
#contactMail:hover{
	background-position: -60px -40px;
}


#contactLinkedIn{
	display: block;
	position: relative;
	width: 40px;
	height: 40px;
	top: 5px;
	left: 6px;
	background-image: url(pictures/sprtiteSheet.png);
	background-position: -100px 0;
}
#contactLinkedIn:hover{
	background-position: -100px -40px;
}

#downloadCV{
	display: block;
	position: relative;
	width: 40px;
	height: 40px;
	top: 5px;
	left: 5px;
	background-image: url(pictures/sprtiteSheet.png);
	background-position: -140px 0;
}
#downloadCV:hover{
	background-position: -140px -40px;
}
#app {
    display: none;
}

#app.active {
    display: block;
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#frameViewer {
    width: 100%;
    height: 100vh;
    border: none;
}

#fadeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #040E14;
	opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#fadeOverlay.active {
    opacity: 1;
	pointer-events: auto;
}

#fadeOverlay::after {
    content: '';
    width: 100px;
    height: 100px;
    background-image: url(./pictures/loader.gif);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#fadeOverlay.active::after {
    opacity: 1;
}

#loadingText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 80px));
    color: white;
    font-family: 'Elegant Typewriter', Arial, sans-serif;
    font-size: 22px;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s ease;
	margin-top: 20px;
}

#fadeOverlay.active #loadingText {
    opacity: 1;
}

/* ===================== */
/* Mobile portrait overlay */
/* ===================== */

#mobilePortraitOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #040E14;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
    gap: 30px;
}

#mobilePortraitOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

#mauriceHead {
    width: 40vw;
    max-width: 200px;
    transform: rotate(180deg);
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

#mobilePortraitOverlay.active #mauriceHead {
    opacity: 1;
}

#mobilePortraitText {
    color: white;
    font-family: 'Elegant Typewriter', Arial, sans-serif;
    font-size: clamp(16px, 5vw, 24px);
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
    margin: 0;
}

/* ===================== */
/* Menu responsive       */
/* ===================== */

/* Écrans moyens (tablettes, petits laptops) : léger rétrécissement */
@media (max-width: 1280px) {
    .menuBtn {
        transform: scale(0.85);
    }
}

/* Écrans étroits : réduction plus forte + légendes masquées */
@media (max-width: 1000px) {
    .menuBtn {
        transform: scale(0.7);
    }
    .menuLegend {
        display: none;
    }
}

/* Petits écrans (mobile paysage) */
@media (max-width: 700px) {
    .menuBtn {
        transform: scale(0.6);
        padding-top: 28vh;
    }
}

/* Écrans bas (paysage sur téléphone) */
@media (max-height: 550px) {
    .menuBtn {
        padding-top: 18vh;
    }
}

/* ===================== */
/* Footer responsive     */
/* ===================== */

/* Tablettes */
@media (max-width: 1000px) {
    #footer {
        bottom: 15px;
    }
    #zoneContact {
        transform: scale(0.8);
        transform-origin: center bottom;
    }
}

/* Mobile paysage / petits écrans */
@media (max-width: 700px) {
    #footer {
        bottom: 8px;
    }
    #zoneContact {
        transform: scale(0.65);
        transform-origin: center bottom;
    }
}

/* Écrans très bas (paysage téléphone) */
@media (max-height: 550px) {
    #footer {
        bottom: 5px;
    }
    #zoneContact {
        transform: scale(0.6);
        transform-origin: center bottom;
    }
}