@charset "UTF-8";
/*
	Version mobile (option 1 : adaptation de la mise en page en tableaux existante)
	Chargée uniquement sur les pages qui définissent $PAGE_RESPONSIVE = true.
	Ne s'applique qu'en dessous de 760px : le rendu bureau reste identique.
*/
@media screen and (max-width: 760px)
{
	html, body
	{
		margin     : 0;
		overflow-x : hidden;
	}
	body
	{
		font-size : 14px;
	}
	img
	{
		max-width : 100%;
		height    : auto;
	}

	/* --- Tableaux de mise en page (largeurs fixes 1004 / 601 / 403) empilés --- */
	#container table[width="1004"],
	#container table[width="601"],
	#container table[width="403"],
	#container table[width="1004"] > tbody,
	#container table[width="601"] > tbody,
	#container table[width="403"] > tbody,
	#container table[width="1004"] > tbody > tr,
	#container table[width="601"] > tbody > tr,
	#container table[width="403"] > tbody > tr,
	#container td[width="1004"],
	#container td[width="601"],
	#container td[width="403"]
	{
		display : block;
		width   : auto !important;
		height  : auto !important;
	}
	/* Ligne principale : contenu d'abord, colonne gauche (coordonnées) ensuite */
	#container > table[width="1004"] > tbody > tr
	{
		display        : flex;
		flex-direction : column;
	}
	#ets_debuck_gauche
	{
		order : 2;
	}

	/* --- En-tête : on garde le logo, on recadre l'image --- */
	#ets_debuck_header
	{
		height              : 110px !important;
		background-size     : auto 110px;
		background-position : min(0px, calc(50vw - 160px)) 0;
		background-color    : #a2d10f;
	}
	#ets_debuck_header > div
	{
		padding : 0 !important;
	}
	#ets_debuck_header img
	{
		display : block;
		width   : 100%;
		height  : 110px;
	}

	/* --- Menu principal : boutons sur plusieurs lignes --- */
	.ets_menu
	{
		padding : 0 !important;
	}
	.ets_menu table,
	.ets_menu tbody
	{
		display : block;
		width   : 100%;
	}
	.ets_menu tr
	{
		display         : flex;
		flex-wrap       : wrap;
		justify-content : center;
		gap             : 6px;
		padding         : 10px 8px;
		background      : #672d02;
	}
	.ets_menu td
	{
		display : block;
		width   : auto !important;
	}
	.ets_menu td:has(> img)
	{
		display : none; /* traits séparateurs */
	}
	.ets_menu a
	{
		display       : block;
		padding       : 9px 12px;
		font-size     : 14px !important;
		border        : 1px solid rgba(255, 255, 255, 0.35);
		border-radius : 4px;
	}
	.ets_menu a.menu1,
	.ets_menu a.menu1:link,
	.ets_menu a.menu1:visited
	{
		color : #f7f7f7;
	}
	.ets_menu a.menu2,
	.ets_menu a.menu2:link,
	.ets_menu a.menu2:visited
	{
		color        : #672d02;
		background   : #f3e500;
		border-color : #f3e500;
	}

	/* --- Bandeau titre de la page (image "Accueil", etc.) --- */
	#container td[id^="ets_debuck_contenu_"]
	{
		height              : 55px !important;
		background-position : left top;
	}

	/* --- Texte --- */
	#container td[width="601"]:not([id]) > div:not(.ets_menu)
	{
		padding : 16px !important;
	}
	#container td[width="601"] div[align="justify"]
	{
		padding    : 16px !important;
		font-size  : 15px !important;
		line-height: 1.5;
		text-align : left;
	}
	#container td[width="601"] div[align="justify"] ul
	{
		padding-left : 20px;
	}
	#container td[width="601"] div[align="justify"] li
	{
		margin-bottom : 6px;
	}

	/* --- Photos de l'accueil : côte à côte si possible, sinon l'une sous l'autre --- */
	table.ets_photos,
	table.ets_photos tbody
	{
		display : block;
		width   : 100%;
	}
	table.ets_photos tr
	{
		display         : flex;
		flex-wrap       : wrap;
		justify-content : center;
		gap             : 10px;
	}
	table.ets_photos td
	{
		display : block;
		flex    : 1 1 140px;
	}
	table.ets_photos img
	{
		display : block;
		width   : 100%;
	}

	/* --- Colonne gauche : coordonnées + animation + liens --- */
	#ets_debuck_gauche
	{
		background : none;
		text-align : center;
		padding    : 10px 16px 0;
	}
	#ets_debuck_gauche div
	{
		padding : 0 !important;
	}
	#ets_debuck_gauche td[height="126"] > div
	{
		color      : #672d02;
		padding    : 16px !important;
		background : #f3e500;
		font-size  : 15px;
		line-height: 1.5;
		border-radius : 4px;
	}
	#ets_debuck_animation
	{
		margin : 16px auto;
	}
	#ets_debuck_animation img
	{
		display : block;
		margin  : 0 auto;
	}
	#ets_debuck_gauche table:not([width])
	{
		margin : 0 auto;
	}
	#ets_debuck_gauche a.menu_gauche1,
	#ets_debuck_gauche a.menu_gauche2
	{
		font-size : 15px;
	}

	/* --- Pied de page --- */
	#container > table:not([width]),
	#container > table:not([width]) tbody,
	#container > table:not([width]) tr
	{
		display : block;
		width   : 100%;
	}
	#container > table:not([width]) td
	{
		padding : 0 16px 20px;
	}
	#container > table:not([width]) td a
	{
		display     : inline-block;
		font-size   : 12px !important;
		line-height : 2;
	}

	/* --- Page Contact : formulaire sur une colonne --- */
	#container form table[width="475"],
	#container form table[width="475"] tbody,
	#container form table[width="475"] tr,
	#container form table[width="475"] td
	{
		display : block;
		width   : 100% !important;
	}
	#container form table[width="475"] td
	{
		font-size : 14px !important;
		padding   : 2px 0;
	}
	#container form table[width="475"] tr
	{
		margin-bottom : 10px;
	}
	#container form input.contact,
	#container form select.contact,
	#container form textarea.contact
	{
		box-sizing : border-box;
		width      : 100% !important;
		font-size  : 16px; /* évite le zoom automatique d'iOS */
		padding    : 8px;
	}
	#container form textarea.contact
	{
		height : 180px !important;
	}
	#container form input[type="submit"].contact
	{
		width       : auto !important;
		padding     : 10px 28px;
		margin      : 6px 0;
		background  : #672d02;
		color       : #ffffff;
		font-weight : bold;
		border      : 0;
		border-radius : 4px;
	}

	/* --- Page Liens : logo au-dessus du texte --- */
	#container table[width="450"],
	#container table[width="450"] tbody,
	#container table[width="450"] tr
	{
		display : block;
		width   : 100% !important;
	}
	#container table[width="450"] tr
	{
		display        : flex;
		flex-direction : column;
		align-items    : center;
		gap            : 10px;
	}
	#container table[width="450"] td
	{
		display    : block;
		width      : auto !important;
		text-align : center;
	}
	#container table[width="450"] td:has(img)
	{
		order : -1;
	}

	/* --- Page Plan : carte à la largeur de l'écran --- */
	#ets_debuck_carte,
	#container iframe
	{
		box-sizing : border-box;
		width      : 100% !important;
		max-width  : 425px;
	}
	#ets_debuck_carte
	{
		height : 300px !important;
	}

	/* --- Message d'erreur du formulaire (overlib, 450px) --- */
	#overDiv
	{
		left      : 8px !important;
		right     : 8px;
		max-width : calc(100vw - 16px);
		overflow  : hidden;
	}
}
