@charset "utf-8";

/* Style Tablette horizontale */
@media screen and (min-width: 992px) and (max-width: 1200px) {

	.tablette {
		display: block;
	}
}

/* Style Mobile & Tablette verticale */
@media screen and (max-width: 991px) {

	html {
		font-size: 100%;
		/* Permet de gêrer les fonts en em */
		-webkit-text-size-adjust: none;
		/* Containte taille de police automatique sur iphone et ipad au changement d'orientation */
	}

	body {}

	.content {
		min-width: 320px;
	}

	.mobile {
		display: none;
	}

	.web {
		display: none;
	}

	.bouton a {
		width: 100%;
		max-width: 242px;
		margin: 0;
	}

	.bouton-left a,
	.bouton-right a {
		margin: 10px 12px;
	}

	.bouton a br.mobile {
		display: inline-block;
	}

	label {}

	input[type=text],
	input[type=password],
	input[type=email],
	input[type=tel] {}

	select {}

	textarea {}

	input[type=checkbox] {}

	input[type=radio] {}

	#captcha {}

	::-webkit-input-placeholder {}

	:-moz-placeholder {
		/* Firefox 18- */
	}

	::-moz-placeholder {
		/* Firefox 19+ */
	}

	:-ms-input-placeholder {}

	.check_btn {}

	.check_label {
		font-size: 0.9em;
		text-align: left;
	}


	/* HEADER */

	/* CONTENU */
	#page_home #bl_contenu, #page_conf #bl_contenu {
		background-image: url("../img/m_fond_home.png");
		background-repeat: no-repeat;
		background-size: cover;
	}
	#page_coord #bl_contenu, #page_contact #bl_contenu {
		background-image: url("../img/m_fond_home2.png");
		background-repeat: no-repeat;
		background-size: cover;
	}

	#bl_contenu {
		width: 100%;
		padding: 26px 6% 50px 6%;
		/* background-image: url("../img/m_fond_home.png");
		background-repeat: no-repeat;
		background-size: cover; */
	}
	

	h2 {
		font-size: 1em;
	}

	.sstitre {
		margin-top: 17px;
		line-height: 1.2em;
	}

	.text1 {
		font-size: 0.9em;
	}

	#mentions {
		font-size: 0.7em;
	}

	/* .file_ligne {
		left: 20px;
	} */

	.file_visuel {
		width: auto;
		max-width: 84%;
	}

	.file_visuel img {
		height: auto;
		max-height: 275px;
		max-width: 100%;
	}

	.file_name {
		display: none;
		max-width: 150px;
	}

	.file_delete {
		vertical-align: top;
		margin-top: 8px;
		margin-left: 10px;
	}

	.bouton .bouton-left a {
		width: 241px;
	}

	#menu {
		display: none;
		z-index: +2;
		position: absolute;
		top: 73px;
		left: 0;
		width: 100%;
		margin: 0;
		border-top: 1px solid #fff;
		border-bottom: 1px solid #fff;
		background-color: #182d70;
		z-index: 10S;
	}

	#menu li {
		float: left;
		width: 100%;
		margin: 0;
		text-align: left;
	}

	#menu li:first-child {
		margin-top: 40px;
	}

	#menu li:last-child {
		margin-bottom: 40px;
	}

	#menu li.debugMobile {
		display: block;
	}

	#menu li a {
		float: left;
		color: white;
		width: 100%;
		padding-left: 6%;
		font-size: 16px;
		line-height: 41px;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}

	#menu_bg {
		z-index: 200;
		display: none;
		top: 0px;
		left: 0px;
		width: 100%;
		height: 100%;
		position: fixed;
		background: rgba(0, 0, 0, 0.7);
	}

	#icon_menu {
		position: absolute;
		top: 30px;
		right: 6%;
		cursor: pointer;
	}

	#icon_menu .bar {
		display: block;
		width: 24px;
		height: 4px;
		margin: 0 auto;
		background: #182d70;
		-webkit-transition: all .7s ease;
		-moz-transition: all .7s ease;
		-ms-transition: all .7s ease;
		-o-transition: all .7s ease;
		transition: all .7s ease;
	}

	#icon_menu .middle {
		margin: 5px auto;
		width: 28px;
	}

	#icon_menu.open .top {
		-webkit-transform: translateY(8px) rotateZ(45deg);
		-moz-transform: translateY(8px) rotateZ(45deg);
		-ms-transform: translateY(8px) rotateZ(45deg);
		-o-transform: translateY(8px) rotateZ(45deg);
		transform: translateY(8px) rotateZ(45deg);
	}

	#icon_menu.open .bottom {
		-webkit-transform: translateY(-8px) rotateZ(-45deg);
		-moz-transform: translateY(-8px) rotateZ(-45deg);
		-ms-transform: translateY(-8px) rotateZ(-45deg);
		-o-transform: translateY(-8px) rotateZ(-45deg);
		transform: translateY(-8px) rotateZ(-45deg);
	}

	#icon_menu.open .middle {
		width: 0;
	}

	#page_home_header {
		position: relative;
		width: 100%;
		height: 278px;
		background: url("../img/m_bandeau.png") no-repeat;
		background-color: #d13030;
		background-position: top center;
		background-size: cover;
	}

	/* PAGE: Accueil */

	#page_home #page_home_header {
		display: block;
		height: 762px;
		background: url("../img/m_bandeau_home.png") no-repeat;
		background-color: #c72a2a;
		background-position: top center;
		background-size: cover;
	}

	header {
		z-index: +3;
	}

	#main-header {
		position: fixed;
		/* Reste en haut au scroll comme sur la maquette */
		top: 0;
		left: 0;
		z-index: 1000;
		width: 100%;
		height: 74px;
		/* Taille standard header mobile */
		background-color: #ffffff !important;
		/* Blanc pur */
		box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
		/* Ombre légère sous le header */
		display: flex;
		align-items: center;
	}

	#page_home #bt_jouer {
		margin-top: 619px;
	}

	/* #page_home h1 {
		margin-top: 70px;
	} */

	#page_home #bl_tuto {
		flex-wrap: wrap;
		align-content: center;
		padding-bottom: 50px;
	}

	#page_home .tuto_cadre {
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
		margin-bottom: 25px;
		text-align: center;
	}

	#bl_banniere {
		position: relative;
		width: 100%;
		overflow: hidden;
		display: flex;
		/* keep the button overlay logic simple */
		justify-content: center;
		align-items: flex-end;
		margin: 0;
		padding-top: clamp(10px, 3vw, 20px);
		flex-direction: column;
	}

	/* mobile image */
	#m_banniere_home {
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
		object-position: top center;
		margin-top: clamp(73px, 3vw, 18px);
		/* ⬅️ small gap under the ribbon */
	}

	#page_home #bt_jouer {
		position: absolute;
		left: 22%;
		/* bottom: clamp(10px, 3.5vw, 24px); */
		transform: translateX(-50%);
		z-index: 2;
		margin: 0 !important;
		bottom: 8%;
	}


	/* hide desktop image */
	#banniere_home {
		display: none !important;
	}

	/* hide reveal image */
	#reveal_img {
		display: none !important;
	}

	/* PAGE: Coordonnées */

	#page_coord #bl_contenu form {
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
		margin-top: 1.6em;
	}

	#page_coord #bl_middle {
		width: 100%;
		display: flex;
		flex-direction: column;
	}

	#page_coord #bt_valider {
		margin-top: 45px;
	}


	/* PAGE: Code-barres */

	#page_cb #bl_contenu {
		padding-bottom: 50px;
		background-image: url("../img/m_fond_home2.png");
		background-repeat: no-repeat;
		background-size: cover;
	}

	#page_cb #bl_contenu form {
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}

	#page_cb #bl_codebarre {
		width: 100%;
	}


	/* PAGE: Déclaration */

	#page_decla #bl_contenu {
		padding-bottom: 40px;
	}

	#page_decla #icon_aide {
		top: 42px;
		right: -35px;
	}

	#page_decla #upload_text1 {
		margin-top: 1.4em;
		font-size: 1em;
	}

	#page_cb #zone_upload {
		width: 100%;
		height: 166px;
		margin-top: 28px;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		border: 2px dashed #ff0000;
		border-radius: 50px;
	}

	#page_cb #zoneParcourirMobile {
		display: block;
	}

	#page_cb #bt_parcourir {
		margin-top: 40px;
		margin-bottom: 40px;
	}

	#page_decla #form_lapin #bt_valider {
		margin-top: 40px;
	}


	/* PAGE: Reveal */

	#page_reveal #bl_contenu {
		padding: 0px;
	}

	#page_reveal #m_visuel_reveal {
		z-index: -1;
		position: absolute;
		top: 0;
		left: 50%;
		width: 320px;
		height: auto;
		margin-left: -167px;
	}

	#page_reveal .text1 {
		margin: 42px 0px 0px 0px;
		font-size: 34px;
	}

	#page_reveal .sstitre {
		text-transform: none;
		margin: 17px 10px 0 10px;
	}

	#page_reveal #decompte p {
		position: absolute;
		top: 2%;
		left: 40%;
		font-size: 120px;
		line-height: 1.65em;
		color: red;
	}

	/* PAGE: Perdu */

	#page_perdu #m_visuel_montagne {
		width: 100%;
		height: auto;
		max-width: 308px;
		margin: 0 auto;
		margin-top: 30px;
		margin-bottom: 25px;
	}

	#page_perdu #m_visuel_mvec {
		width: 100%;
		height: auto;
		max-width: 332px;
		margin: 0 auto;
		margin-top: 1.7em;
	}

	#page_perdu #bt_back a {
		max-width: 100%;
	}


	/* PAGE: Gain */

	#page_gain #bl_contenu {
		padding-bottom: 45px;
	}

	#page_gain #bl_contenu form {
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}

	#page_gain #visuel_panier {
		margin: 0 auto;
		margin-top: 1.5em;
	}

	#page_gain #bl_champ {
		width: 100%;
		margin: 0 auto;
		margin-top: 0;
	}

	#page_gain #page_gain_text2 {
		margin-top: 1.5em;
		font-size: 1em;
	}

	#page_gain #bt_valider {
		margin-top: 30px;
	}

	.text2 {
		font-size: 21px;
		line-height: 1.2em;
		font-weight: 400;
		margin-bottom: 27px;
		margin-top: 11px;
	}

	.text3 {
		font-size: 20px;
		line-height: 1.2em;
		margin-bottom: 27px;
		margin-left: 15px;
        margin-right: 15px;
	}

	#page_gain #visuel_panier {
		display: inline-block;
		vertical-align: top;
		width: 267px;
		height: auto;
		margin-bottom: 30px;
	}


	/* PAGE: Confirmation */

	#page_conf #m_visuel_montagne {
		width: 100%;
		height: auto;
		max-width: 308px;
		margin: 0 auto;
		margin-top: 30px;
		margin-bottom: 25px;
	}

	#page_conf #m_visuel_mvec {
		width: 100%;
		height: auto;
		max-width: 332px;
		margin: 0 auto;
		margin-top: 1.7em;
	}

	#page_conf #bt_back a {
		max-width: 100%;
	}


	/* PAGE: Mentions légales */

	#page_text #bl_text {
		margin-top: 42px;
		text-align: justify;
	}

	#page_text .bull {
		padding: 0;
		padding-right: 10px;
	}

	#page_text #bt_back {
		margin-top: 45px;
	}

	#page_text #bt_back a {
		max-width: 100%;
	}


	/* PAGE: Attente et Fin */

	#page_out h1 {
		font-size: 1.2em;
	}
	#page_out p {
		font-size: 18px;
		line-height: 25px;
		margin: 10px 0;
	}
	#page_out p#text {
		font-size: 19px;
		line-height: 25px;
	}


	/* LIGHTBOX */

	.lightbox_content {
		width: 92%;
		max-width: 450px;
		padding: 3.5em 4% 1.5em 4%;
	}
	.lightbox_content#lb_pays {
		width: 92%;
		max-width: 450px;
		padding: 0px 0px 1.5em 0px;
	}
	.lightbox_content#lb_wrong_answer {
		text-align: center;
	}
	.lightbox_content#lb_wrong_answer h1{
		margin-bottom: 25px;
	}
	.lightbox_content#lb_wrong_answer span{
		font-size: 18px;
	}
	.lightbox_content#lb_wrong_answer .bouton a{
		background-color: #182d70;
	}
	.lightbox_content#lb_wrong_answer .bouton a div{
		color: #fff;
	}

	.lightbox_close {
		top: 10px;
		right: 10px;
	}

	.lightbox_titre {
		margin-bottom: 20px;
		font-size: 24px;
		line-height: 1.2em;
	}
	#lb_pays .lightbox_titre {
		margin: 40px 0px;
		font-size: 15px;
		line-height: normal;
		font-weight: bold;
		color: #182d70;
	}

	.lightbox_text {
		font-size: 1em;
		max-width: 100%;
		color: #182d70;
	}
	#lb_pays .lightbox_text {
		font-size: 1em;
		max-width: 100%;
		color: #182d70;
		margin: 20px 0 40px 0;
	}

	#lb_pays .bouton a {
        background-color: #182d70;
    }
	#lb_pays .bouton a div{
		color: #fff;
    }

	#lb_contact .bouton a {
		max-width: 290px;
	}

	#lb_aide {
		width: 92%;
		padding-top: 45px;
		padding-left: 0;
		padding-right: 0;
	}

	#m_lb_aide {
		display: block;
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
	}
	#lb_pays,
	#lb_pays .lightbox_content {
		overflow: visible !important;
	}

	.custom_select_wrapper.open .custom_select_options {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	/* ===== CUSTOM SELECT PAYS ===== */
	.custom_select_wrapper {
		position: relative;
		width: 100%;
		max-width: 320px;
		margin: 14px auto 4px;
		user-select: none;
		font-family: 'Inter', sans-serif;
	}

	/* ── Selected (visible) ── */
	.custom_select_selected {
		display: flex;
		align-items: center;
		gap: 10px;
		background: #fff;
		border: 2px solid #182d70;
		border-radius: 10px;
		padding: 11px 14px;
		cursor: pointer;
		transition: border-color 0.2s, box-shadow 0.2s;
	}

	.custom_select_selected:hover,
	.custom_select_wrapper.open .custom_select_selected {
		border-color: #e8500a;
		box-shadow: 0 0 0 3px rgba(232,80,10,0.15);
	}

	.custom_select_selected span {
		flex: 1;
		font-size: 1em;
		font-weight: 600;
		color: #182d70;
	}

	/* ── Chevron animé ── */
	.chevron {
		width: 18px;
		height: 18px;
		color: #182d70;
		transition: transform 0.25s ease;
		flex-shrink: 0;
	}
	.custom_select_wrapper.open .chevron {
		transform: rotate(180deg);
	}

	/* ── Dropdown list ── */
	.custom_select_options {
		display: none;
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		background: #fff;
		border: 2px solid #182d70;
		border-radius: 10px;
		max-height: 200px;
		overflow-x: hidden;
		overflow-y: auto;
		list-style: none;
		margin: 0;
		padding: 4px 0;
		z-index: 9999;
		box-shadow: 0 8px 24px rgba(24,45,112,0.18);
		animation: dropIn 0.2s ease;
		-webkit-overflow-scrolling: touch;
	}

	@keyframes dropIn {
		from { opacity: 0; transform: translateY(-6px); }
		to   { opacity: 1; transform: translateY(0); }
	}

	.custom_select_wrapper.open .custom_select_options {
		display: block;
	}

	/* ── Option items ── */
	.option_pays {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 11px 14px;
		cursor: pointer;
		transition: background 0.15s;
		border-bottom: 1px solid #f0f2f8;
	}
	.option_pays:last-child {
		border-bottom: none;
	}
	.option_pays:hover {
		background: #f0f4ff;
	}
	.option_pays.active {
		background: #eef1fb;
	}

	.option_pays span {
		flex: 1;
		font-size: 0.95em;
		font-weight: 600;
		color: #182d70;
	}
	.option_pays span em {
		font-style: normal;
		font-weight: 400;
		color: #666;
		font-size: 0.9em;
	}

	/* ── Check mark ── */
	.check_icon {
		width: 16px;
		height: 16px;
		color: #e8500a;
		flex-shrink: 0;
	}
	.option_pays:not(.active) .check_icon {
		display: none;
	}

	/* ── Flag ── */
	.flag_icon {
		width: 20px;
		height: 20px;
		object-fit: cover;
		border-radius: 3px;
		border: 1px solid #e0e0e0;
		flex-shrink: 0;
	}
	#flag_icon {
		width: 30px;
		height: 30px;
		object-fit: cover;
		border-radius: 3px;
		border: 1px solid #e0e0e0;
		flex-shrink: 0;
		margin-left: 20px;
	}

	/* ── DROM spécifique ── */
	.drom_item {
		align-items: flex-start;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.drom_content {
		display: flex;
		flex-direction: column;
		gap: 2px;
		flex: 1;
	}
	.drom_content span {
		font-weight: 700;
		font-size: 0.95em;
		color: #182d70;
	}
	.drom_content small {
		font-size: 0.75em;
		color: #777;
		line-height: 1.4;
	}
	.drom_item .flag_icon {
		margin-top: 2px;
	}


	/* FOOTER */

	footer {
		padding: 14px 0 16px 0;
		overflow: hidden;
	}

	footer ul {
		float: left;
		width: 92%;
		margin: 0 4%;
	}

	footer li a {
		float: left;
		width: 100%;
		margin: 0;
		line-height: 20px;
	}

	#desktop_message {
		bottom: 30px !important;
	}
}

@media screen and (max-width: 768px) {
	.mobile {
		display: block;
	}
}