/* --- BARRIÈRE ANTI-FLASH --- */

/* On cache TOUT ce qui est susceptible de clignoter par défaut */
#defaultCanvas0, 
#cadre, 
#progress-container, 
#start-button, 
#explanation-button, 
#dev-win-button,
#main-copyright,
.button,
.action-icon,
#coffre {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 1s ease-in, visibility 1s !important;
}

/* On libère l'affichage UNIQUEMENT quand body a la classe .loaded */
body.loaded #defaultCanvas0, 
body.loaded #cadre, 
body.loaded #progress-container, 
body.loaded #start-button, 
body.loaded #explanation-button, 
body.loaded #main-copyright,
body.loaded #coffre {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Cas particulier du bouton dev : il reste invisible sauf si tu veux le voir */
body.loaded #dev-win-button {
    /* Change 'none' en 'block' si tu veux le voir pour tes tests */
    display: none !important; 
    opacity: 1 !important;
    visibility: visible !important;
}


#dev-win-button {
    position: fixed;
    top: 0.93vh;
    right: 0.52vw;
    padding: 0.46vh 0.52vw;
    background-color: #333333; 
    color: white;
    border: 0.05vw solid #00ff00; 
    cursor: pointer;
    z-index: 10000; 
    font-family: Arial, sans-serif;
    display: block !important; 
}

#dev-win-button:hover {
    background-color: #111111;
}

#main-copyright {
    position: fixed;
    bottom: 5px;      /* Très bas */
    width: 100%;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.8vw; /* Taille adaptative */
    color: rgba(255, 255, 255, 0.4); /* Blanc très discret (presque transparent) */
    z-index: 50;      /* Sous tes boutons et fiches, mais au-dessus du fond */
    pointer-events: none; /* TRÈS IMPORTANT : permet de cliquer sur les bulles à travers le texte */
}

	@keyframes slideBackground {
		0% {
			background-position: center top;
		}
		100% {
			background-position: center bottom;
		}
	}

	body {
    margin: 0;
    overflow: hidden;
    background-color: #000; /* Le fond reste noir par défaut */
    /* On retire opacity: 0 d'ici */
}

body.loaded {
    /* On injecte le fond uniquement quand c'est prêt */
    background-image: linear-gradient(to right, rgba(28, 28, 28, 0.5), rgba(28, 28, 28, 0.5)), url('Fond3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideBackground 2s ease-out forwards;
}

#black-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000 !important; /* Noir total */
    z-index: 20000 !important; /* Doit être au-dessus de TOUT (même du cadre à 9999) */
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease-out, visibility 2s;
    pointer-events: all; 
}

/* Disparition du rideau */
body.loaded #black-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


	@font-face {
		font-family: 'DailyBubble';
		src: url('DailyBubble.ttf') format('truetype');
	}

	.bubble {
		cursor: pointer;
	}

@keyframes slideDown {
    0% {
        top: -4.63vh; 
        opacity: 0;
    }
    100% {
        top: 1.85vh; 
        opacity: 1;
    }
}

#progress-container {
    font-family: 'DailyBubble', sans-serif;
    position: fixed;
    top: 3vh; 
    left: 49%; 
    transform: translateX(-50%);
    width: 65%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 0.10vw solid #333; 
    border-radius: 0.52vw; 
    text-align: center;
    font-size: 1.25vw; 
    font-weight: bold;
    color: #333;
    box-shadow: 0px 0.21vw 0.56vh rgba(0, 0, 0, 0.2); 
    overflow: hidden;
    height: 4vh; 
    z-index: 9998;
    animation: slideDown 1s ease-out forwards;
    
    /* AJOUT CRUCIAL ICI */
    display: flex;
    align-items: center;
    justify-content: center;
}

#progress-text {
    position: absolute; 
    /* On retire top, left et transform car le FLEX du parent s'en occupe */
    width: 100%;
    height: 100%;
    
    /* Centrage interne au bloc texte */
    display: flex;
    align-items: center;
    justify-content: center;
    
    text-align: center;
    z-index: 9999;
    pointer-events: none; 
    color: black !important;
    font-family: 'DailyBubble', sans-serif; /* Utilise ta police qui fonctionne ! */
}


#loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: red;
    border-radius: 0.52vw; 
    transition: width 0.5s ease, background-color 0.5s ease;
    z-index: 9998;
}

#discover-button {
    background-image: url('DECOUVRIR4.wepb'); 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 27vw;
    height: 57vh;
    position: fixed;
    color: transparent;
    padding: 0;
    top: 30%;
    left: 40%;
    border: none;
    border-radius: 0; 
    cursor: pointer;
    z-index: 10000;
    animation: zoomIn 2s ease-out;
    transition: all 0.3s ease-in-out;
}

#discover-button:hover {
    transform: scale(1.1);
}

#canvas {
	position: absolute;
	z-index: 2; 
	pointer-events: none; 
}


	@keyframes zoom-out {
		0% {
			transform: scale(2.4);
			top: 50%;
			left: 41%;
		}
		100% {
			transform: scale(1);
			top: 0;
			left: 0;
		}
	}

#cadre {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background-image: url('CADRE COUPE HD3.webp');
    /* Force l'image à s'étirer pile aux dimensions de l'écran */
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
    pointer-events: none;
    /* Assure le centrage parfait après le zoom-out */
    transform: translate(-50%, -50%);
    animation: zoom-out 1.5s ease-out forwards;
}

#reset-button {
    
    background-image: url('recommencer.png');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;

    
    text-indent: -9999px; 
    line-height: 0; 

    
width: 3.13vw;
    height: 5.56vh;
    
    border: none;
    background-color: transparent; 
    cursor: pointer;
    padding: 0; 

    
    transition: transform 0.2s;
    animation: zoomIn 2s ease-out forwards
}

#reset-button:hover {
    transform: scale(1.05); 
}

#fiche-detaillee,
#fiche-metier {
    font-family: 'BLKCHCRY', sans-serif;
    font-size: 1.8vw; 
    margin-top: 0.5vh;     margin-bottom: -1.85vh; 
    line-height: 0.9;
    display: none;
    position: fixed;
    top: 49%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 25vw; 
    padding: 0 1.04vw; 
    background-image: url('vieuxpapier2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.52vw; 
    box-shadow: 0 0.21vw 0.93vh rgba(0, 0, 0, 0.3); 
    text-align: center;
    overflow: hidden;
    height: 78vh; 
    animation: slideUp 3.5s ease-in-out forwards;
}



#fiche-detaillee .emoji-small {
    
    font-size: 0.6em !important; 
    line-height: 1;
}


#fiche-supplementaire .emoji-small {
    
    font-size: 0.6em !important; 
    line-height: 1;
}

	#fiche-detaillee.show {
		display: block;
	}


#metier-description {
    font-size: 1.8vw; 
    line-height: 0.9; 
    font-family: 'BLKCHCRY', sans-serif;
}



#fiche-aidenous {
    font-family: 'DailyBubble', sans-serif;
    font-size: 0.7vw; 
    display: none;
    position: fixed;
    top: 45%;
    left: 85%;
    transform: translate(-50%, 50%);
    width: 15.63vw; 
    padding: 0 1.04vw; 
    background-image: url('vieuxpapier2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.52vw; 
    box-shadow: 0 0.21vw 0.93vh rgba(0, 0, 0, 0.3); 
    text-align: center;
    overflow: hidden;
    height: 32.41vh; 
    animation: slideUp 2.5s ease-in-out forwards;
}

#metier-title,
#titre-detaille {
    font-family: 'BLKCHCRY', sans-serif;
    font-size: 2vw; 
    line-height: 1;
    margin-top: 2vh;
    margin-bottom: -0.46vh; 
}


@keyframes slideUp {
    0% {
        transform: translate(-50%, 50%);
        height: 0;
        opacity: 0;
    }
    50% {
        transform: translate(-50%, 10%);
        height: 23.15vh; 
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%);
        height: 78vh; 
        opacity: 1;
    }
}

@keyframes slideUpEXP {
    0% {
        transform: translate(-50%, 50%);
        height: 0;
        opacity: 0;
    }
    50% {
        transform: translate(-50%, 10%);
        height: 23.15vh; 
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%);
        height: 67vh; 
        opacity: 1;
    }
}

@keyframes dissolve {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(-0.93vh); 
        filter: blur(0.19vh); 
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(1.85vh); 
        filter: blur(0.46vh); 
    }
}

	.hidden {
		animation: dissolve 1.5s ease-out forwards;
		pointer-events: none;
	}

	.hidden.finished {
		display: none;
	}


#btn-savoirplus,
#btn-Paypal,
#btn-Tipee,
#btn-bmc {
    font-family: 'DailyBubble', sans-serif;
    position: fixed;

    background-image: url('bulle.webp');
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 50%;
    background-color: transparent;

    
    box-shadow: 0vw 0.21vw 0.56vh rgba(0, 0, 0, 0.3);
    
    display: none;
    justify-content: center;
    align-items: center;
    color: #D9E3E6;

    
    text-shadow: 0.10vw 0.19vh 0.37vh rgba(139, 69, 19, 0.6);
    
    cursor: pointer;
    z-index: 9999;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

#btn-savoirplus {
    font-size: 2.5vw; 
    width: 17.19vw; 
    height: 30.55vh; 
    top: 25%;
    
    left: calc(50% + 11.5vw);
    animation: zoomIn 5s ease-out forwards;
}

#btn-Paypal,
#btn-Tipee,
#btn-bmc {
    font-size: 1.46vw; 
    width: 10.42vw; 
    height: 18.52vh; 
    top: 65%;
    animation:
        zoomIn 9s ease-out forwards;
}

@keyframes clignoteCouleur1 {
	0%, 100% {
		color: white;
	}
	50% {
		color: #0070E0;
	}
}

@keyframes clignoteCouleur2 {
	0%, 100% {
		color: white;
	}
	50% {
		color: #FFDD00;
	}
}

@keyframes clignoteCouleur3 {
	0%, 100% {
		color: white;
	}
	50% {
		color: #E4003E;
	}
}

@keyframes zoomIn {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}


#btn-Paypal {
    top: 65%;
    
    left: calc(50% + 15.02vw);
    
    animation:
        zoomIn 5s ease-out forwards, 
        clignoteCouleur1 3s 7s infinite ease-in-out; 
}

#btn-bmc {
    top: 65%;
    
    left: calc(50% + 24.92vw);
    
    animation:
        zoomIn 5s ease-out forwards,
        clignoteCouleur2 3s 8s infinite ease-in-out;
}

#btn-Tipee {
    top: 65%;
    
    left: calc(50% + 34.81vw);
    
    animation:
        zoomIn 5s ease-out forwards,
        clignoteCouleur3 3s 9s infinite ease-in-out;
}

#btn-savoirplus:hover,
#btn-Paypal:hover,
#btn-bmc:hover,
#btn-Tipee:hover {
    transform: scale(1.1);
}

#btn-savoirplus,
#btn-Paypal,
#btn-Tipee,
#btn-bmc {

    transition: transform 0.3s ease-in-out; 

    transform: scale(0);
    opacity: 0;

}

#fiche-explication {
    font-family: 'BLKCHCRY', sans-serif;
    font-size: 1.4vw; 
    margin-top: 4vh; 
    margin-bottom: 0vh; 
    line-height: 0.9;
    display: none;
    position: fixed;
    top: 50%;
    left: 78%;
    transform: translate(-50%, 50%);
    width: 22vw; 
    padding: 0 0.52vw; 
    background-image: url('vieuxpapier2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.52vw; 
    box-shadow: 0 0.21vw 0.93vh rgba(0, 0, 0, 0.3); 
    text-align: center;
    opacity: 0;
    overflow: hidden;
    height: 65vh; 
    animation: slideUpEXP 1.5s ease-in-out forwards;
    transform: scale(0);
}



	#fiche-metier.show {
		display: block;
	}

#explanation-title {
    font-family: 'BLKCHCRY', sans-serif;
    font-size: 2vw; 
    margin-top: 0.9vh; 
    margin-bottom: -1.85vh; 
    line-height: 0.8;
}




@keyframes slideCoffre {
    0% {
        top: -18.52vh; 
        opacity: 0;
    }
    100% {
        top: 43%;
        opacity: 1;
    }
}

@font-face {
	font-family: 'BLKCHCRY';
	src: url('BLKCHCRY.TTF') format('opentype');
}

	@keyframes rotateCoffre {
		0% {
			transform: rotate(0deg);
		}
		100% {
			transform: rotate(-5deg);
		}
	}

	@keyframes rotateCoffre2 {
		0% {
			transform: rotate(0deg);
		}
		100% {
			transform: rotate(2deg);
		}
	}

#don-invite {
    font-family: 'DailyBubble', sans-serif;
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6vw; 
    background-image: url('vieuxpapier-carre.png');
    text-align: center;
    z-index: 9999;
    display: none;
    animation: fadeInUp 2s ease-out forwards;
}

#don-invite .arrow {
    font-size: 1.25vw; 
    animation: bounceArrow 1s infinite;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        
        transform: translate(-50%, 1.85vh);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


#coffre {
    position: fixed;
    top: -18.52vh; 
    left: 15%;
    width: 21.88vw; 
    height: auto;
    z-index: 10;
    animation: slideCoffre 1.5s ease-out forwards, rotateCoffre 2s 1.5s ease-in-out forwards, rotateCoffre2 2s 0.8s ease-in-out forwards;
    transform-origin: bottom left;
    z-index: 1; 
    pointer-events: none;
    display: none;
}

#blue-overlay {
    position: fixed;
    top: 43%;
    left: 19%;
    width: 15.63vw; 
    height: auto;
    background-color: rgba(0, 0, 255, 0.4);
    z-index: 9999;
    pointer-events: none;
}

#start-button {
    font-family: 'DailyBubble', sans-serif;
    color: #D9E3E6;
    
    text-shadow: 0.10vw 0.19vh 0.37vh rgba(139, 69, 19, 0.6);
    position: fixed;
    top: 60%;
    left: 49%;
    transform: translate(-50%, -50%);
    width: 15.63vw; 
    height: 27.78vh; 
    background-image: url('bulle.webp');
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0px 0.21vw 0.56vh rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 2.5vw; 
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    flex-direction: column;
}


@font-face {
    font-family: 'ArmyStamp';
    src: url('ArmyStamp.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}


#match-percentage-stamp {
    position: absolute; 
    bottom: 5%; 
    left: 5%;  
    
    font-family: 'ArmyStamp', sans-serif; 
    font-size: 6vw; 
    color: #FF0000; 
    transform: rotate(-15deg); 


    padding: 0.93vh 0.78vw; 
    border: 0.16vw solid #FF0000; 

    /* Ombre convertie pour garder la finesse */
    text-shadow: 0.1vw 0.1vw 0.16vw rgba(0, 0, 0, 0.7); 
}

#start-button span {
    display: block;
    text-align: center;
    margin: 0.19vh 0; 
}

#start-button:hover {
    
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

#next-step-button {
    background-image: url('bulle suivante11.webp'); 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 16vw;
    height: 27vh;
    position: fixed;
    bottom: 4vh;
    right: 6vw;
    border: none;
    cursor: default; /* On désactive le curseur sur les bords vides */
    z-index: 9999;
    display: block;
    transform-origin: center center;
    
    /* Indispensable pour la hitbox */
    pointer-events: none; 

    /* Tes animations d'origine */
    transition: transform 0.3s ease-in-out; 
    animation-name: slideIn, pulse;
    animation-duration: 0.8s, 1.7s;
    animation-timing-function: ease-out, ease-in-out;
    animation-delay: 0s, 0.2s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
}

/* --- LA ZONE DE CLIC RÉELLE (La flèche uniquement) --- */
#next-step-button::before {
    content: '';
    position: absolute;
    
    /* On réactive le clic uniquement ici */
    pointer-events: auto; 
    cursor: pointer;

    /* RÉGLAGES DE LA ZONE (Hitbox) */
    /* On resserre pour ne garder que la flèche au milieu */
    top: 25%;      /* Supprime le vide en haut */
    bottom: 25%;   /* Supprime le vide en bas */
    left: 15%;     /* Supprime le vide à gauche */
    right: 15%;    /* Supprime le vide à droite */

    /* ASTUCE : Décommente la ligne ci-dessous pour voir la zone de clic en couleur */
    /* background: rgba(0, 255, 0, 0.3); */
}

#next-step-button:hover {
    animation-name: slideIn, pulse-large;
    animation-duration: 0.8s, 1s;
    animation-timing-function: ease-out, ease-in-out;
    animation-delay: 0s, 0.2s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none; 
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08); 
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-large {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2); 
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    0% {
        
        right: -30vw; 
    }
    100% {
        
        right: 6vw; 
    }
}


#explanation-button {
    font-family: 'DailyBubble', sans-serif;
    color: #D9E3E6;
    font-size: 1.33vw; 
    
    text-shadow: 0.10vw 0.19vh 0.37vh rgba(139, 69, 19, 0.6);
    position: fixed;
    top: 30%;
    left: 49%;
    transform: translate(-50%, -50%);
    width: 10.15vw; 
    height: 18.06vh; 
    background-image: url('bulle.webp');
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    
    box-shadow: 0px 0.21vw 0.56vh rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

	#explanation-button:hover {
		transform: translate(-50%, -50%) scale(1.1);
		opacity: 1;
	}

#redonner-button {
    background-image: url('recommencer3.webp');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    top: 13.8vh; 
    left: 88.3%;
    transform: translateX(-50%);
    
    width: 17vw; 
    height: 17vh;

    text-indent: -9999px; 
    line-height: 0;
    color: white;
    border: none;
    background-color: transparent;
    border-radius: 0.26vw; 
    cursor: pointer;
    z-index: 9998;

    /* --- CHANGEMENTS ICI --- */
    display: block;          /* On le laisse en block pour qu'il soit "calculable" */
    visibility: hidden;      /* Caché au départ */
    opacity: 0;             /* Invisible au départ */
    pointer-events: none;    /* Pas de clic tant qu'il n'est pas affiché */
    
    /* On garde la transition pour le hover fluide */
    transition: opacity 1s ease, transform 0.5s ease;
}

#redonner-button::before {
    content: '';
    position: absolute;
    pointer-events: auto; 
    cursor: pointer;
    left: 25%;
    right: 25%;
    bottom: 20%;
    top: 0;
}

#redonner-button:hover {
    /* On s'assure que le hover ne casse pas la position finale du slide */
    transform: translate(-50%, 5%) scale(1.1) !important;
    opacity: 1;
}

#redonner-button.show {
    visibility: visible !important;
    pointer-events: auto !important;
    animation: slideDownFade 1.5s ease forwards;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        /* Départ plus haut pour le glissement (ex: -100% de sa hauteur) */
        transform: translate(-50%, -100%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.social-share {

    position: fixed;
    bottom: 1.85vh; 
    right: 39%;
    z-index: 9999;
    display: none;
    gap: 0.78vw; 
}

.social-share a {
    font-size: 2.40vw; 
    text-decoration: none;
    transition: transform 1s ease;
}

.social-share a i {
    background-image: url('bulle.webp');
    background-size: 5vw; 
    background-repeat: no-repeat; 
    background-position: center; 

    border-radius: 50%;
    padding: 0.52vw;

    
    display: inline-block; 
    
    width: 2.40vw;  
    height: 2.40vw; 
    

    transition: transform 1s ease;
    animation: flash-bg 2s infinite;
}


.social-share a:nth-child(1) i {
	animation-delay: 0s;
}

.social-share a:nth-child(2) i {
	animation-delay: 0.4s;
}

.social-share a:nth-child(3) i {
	animation-delay: 0.8s;
}

.social-share a:nth-child(4) i {
	animation-delay: 1.2s;
}

.social-share a:nth-child(5) i {
	animation-delay: 1.6s;
}


.social-share a:hover {
	transform: scale(1.3);
}

.social-share .facebook { color: #1877F2; }
.social-share .twitter { color: #1DA1F2; }
.social-share .linkedin { color: #0077B5; }
.social-share .whatsapp { color: #25D366; }
.social-share .email { color: #FF5722; }

#fiche-supplementaire {
    position: fixed;
    font-size: 1.8vw; 
    left: 75%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 15vw; 
    height: 39vh; 
    padding: 0.52vw; 
    box-sizing: border-box;
    background-image: url('vieuxpapier-carre.png');
    border-radius: 0.62vw; 
    box-shadow: 0 0 1.11vh rgba(0,0,0,0.5); 
    visibility: hidden;
    opacity: 0;
    animation: slideUpSupplementaire 3.5s ease-in-out forwards;
    font-family: 'BLKCHCRY', sans-serif;
    top: 45%;
    overflow: hidden;
    animation-fill-mode: forwards;
    line-height: 0.7;
}


#titre-supplementaire,
#texte-supplementaire {
	display: none;
}

@keyframes slideUpSupplementaire {
    0% {
        transform: translate(-50%, 50%);
        height: 0;
        opacity: 0;
        visibility: hidden;
    }
    50% {
        transform: translate(-50%, 10%);
        height: 9.26vh; 
        opacity: 0.7;
        visibility: visible;
    }
    100% {
        transform: translate(-50%, -50%);
        height: 25.00vh; 
        opacity: 1;
        visibility: visible;
    }
}



.modal {
    
    
    
    visibility: hidden;
    opacity: 0;
    
    position: fixed;
    z-index: 1000;
    
    
    left: -30%; 
    top: 0;
    width: 70vw;
    height: 70vh;
    
    
    
    transition: 
        left 2s ease-out, 
        opacity 0.6s ease-in,
        visibility 0.6s; 
    
    overflow: auto; 
}


.modal-content {
    background-color: transparent; 
    font-family: 'BLKCHCRY', sans-serif;
    font-size: 1vw; 
    
    color: #f8f0e3; 
    
    border: 0.1vw solid #a5d7e8; 
    
    box-shadow: 0 0.74vh 1.48vh rgba(0, 0, 0, 0.5), 
                0 0 0.52vw rgba(165, 215, 232, 0.7); 
    
    border-radius: 1.5vw; 
    
    text-align: center;
    
    margin-top: 12vh;
    margin-bottom: 12vh;
    margin-left: auto;
    margin-right: auto;
    padding: 1.04vw;
    width: 80vw;
    max-width: 26.04vw;
}


#comment-text {
    background-image: url('vieuxpapier2.jpg');
    opacity: 0.6;
    
    color: black; 
    
    border: 0.05vw solid #ff7f50; 
    
    box-shadow: inset 0 0.09vh 0.16vw rgba(0, 0, 0, 0.4); 
    
    border-radius: 0.8vw; 
    
    width: 90%; 
    margin: 0.93vh 0; 
    padding: 0.52vw; 
}



.modal.is-active {
    
    
    
    visibility: visible;
    opacity: 1;
    
    
    left: -15%; 
    
    
}


.modal-actions button {
    
    padding: 0.52vw 1.04vw; 
    
    
    margin: 0.52vw; 
    
    
    border-radius: 0.26vw; 
    
    
    color: white; 
    
    
    border: none;
    
    
    cursor: pointer;
    
    
    transition: background-color 0.3s ease;
}


#send-comment-btn {
    background-color: #5FA5A0; 
        color: black;
        opacity: 0.8;
}



#close-comment-btn {
    background-color: #5FA5A0; 
        color: black;
        opacity: 0.6;

}


#send-comment-btn:hover,
#close-comment-btn:hover {
    background-color: #00C9B3; 
}

html {
    /* Force la barre de défilement à être toujours là (même vide) 
       pour éviter que le fond ne saute quand elle apparaît */
    overflow-y: scroll; 
}

body {
    margin: 0;
    padding: 0;
    /* Assure que le fond couvre tout sans bouger */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Très important pour la stabilité */
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
}

/* Si ton bouton reset est dans un conteneur, fixe sa hauteur */
#controls-container {
    height: 4.63vh;
    overflow: hidden;
}

.action-icon {
    position: fixed;

    z-index: 9998;
    /* On définit bien ce qu'on anime : transform et opacity */
    transition: transform 6s ease-out, opacity 0.5s ease;
    visibility: hidden;
    opacity: 0;
    filter: drop-shadow(0 0.8vw 1.2vw rgba(0, 0, 0, 0.6));
}

#img-partager {
    left: 0vw;
    width: 15.63vw;
    bottom: 6vh;
    transform: translateX(-400vw);
}

#img-soutenir {
    right: 0vw;
    width: 20.83vw;
    bottom: 6vh;
    transform: translateX(300vw);
}

.slide-in-left {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(20vw) !important; 
}

.slide-in-right {
    visibility: visible !important;
    opacity: 1 !important;
    /* Position finale à droite (valeur négative pour revenir vers la gauche) */
    transform: translateX(-15.63vw) !important; 
}