@charset "utf-8";
/* ================================================================
   Responsive overrides for monpuits.com
   ================================================================ */

/* Hamburger button - hidden on desktop */
.mobile-menu-toggle { display: none; }
.mobile-menu-overlay { display: none; }

/* -------- MOBILE / TABLET (≤ 1024px) -------- */
@media (max-width: 1024px) {

	* { box-sizing: border-box; }
	img { max-width: 100%; height: auto; }

	body { overflow-x: hidden; }

	/* HEADER bois - bande propre en haut */
	#headerimg {
		position: fixed;
		top: 0;
		height: 60px;
		background-size: auto 100%;
		background-repeat: repeat-x;
		z-index: 50;
	}
	#header_bottom_separator {
		position: fixed;
		top: 60px;
		height: 8px;
		background-size: auto 100%;
		z-index: 50;
	}

	#content {
		width: 100%;
		padding: 80px 12px 0;
	}

	/* LOGO fixé en haut à gauche du header */
	#content #logo {
		position: fixed;
		top: 12px;
		left: 14px;
		float: none;
		display: block;
		margin: 0;
		width: 36px;
		height: 36px;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		z-index: 1100;
	}

	/* FLYER PDF - caché en mobile */
	#content #flyerlogo {
		display: none;
	}

	/* TITRE PRINCIPAL fixé dans le header entre logo et hamburger */
	#content #titre_principal {
		position: fixed;
		top: 14px;
		left: 64px;
		right: 64px;
		width: auto;
		height: 32px;
		line-height: 32px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: center;
		padding: 0;
		margin: 0;
		font-size: 16px;
		z-index: 1090;
	}
	#content #titre_principal span {
		position: relative;
		top: 0;
		left: 0;
		display: inline-block;
		padding: 2px 10px;
		font-size: 16px;
		line-height: 1.5;
	}

	/* SOUS-TITRE en flow normal sous le header */
	#content #titre_secondaire {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		height: auto;
		white-space: normal;
		text-align: center;
		padding: 4px 0;
		margin: 12px 0;
		font-size: 16px;
		line-height: 1.3;
	}
	#content #titre_secondaire span {
		position: relative;
		left: 0;
		display: inline-block;
		padding: 4px 8px;
	}

	/* HAMBURGER BUTTON */
	.mobile-menu-toggle {
		display: block;
		position: fixed;
		top: 14px;
		right: 14px;
		width: 44px;
		height: 44px;
		padding: 10px 8px;
		background: #aa1d32;
		border: 0;
		border-radius: 4px;
		cursor: pointer;
		z-index: 1100;
		box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	}
	.mobile-menu-toggle span {
		display: block;
		width: 100%;
		height: 3px;
		margin: 4px 0;
		background: #fff;
		border-radius: 2px;
		transition: transform 0.25s, opacity 0.25s;
	}
	body.menu-open .mobile-menu-toggle span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	body.menu-open .mobile-menu-toggle span:nth-child(2) {
		opacity: 0;
	}
	body.menu-open .mobile-menu-toggle span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* MENU OVERLAY (background dim) */
	.mobile-menu-overlay {
		display: block;
		position: fixed;
		top: 0; left: 0; right: 0; bottom: 0;
		background: rgba(0,0,0,0.5);
		z-index: 1050;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s, visibility 0.25s;
	}
	body.menu-open .mobile-menu-overlay {
		opacity: 1;
		visibility: visible;
	}

	/* MENU - panneau latéral plein écran */
	#content #menu_button {
		position: fixed;
		top: 0;
		right: -280px;
		width: 270px;
		max-width: 80vw;
		height: 100vh;
		float: none;
		padding: 70px 0 20px;
		margin: 0;
		background: #2c3439;
		font-size: 20px;
		text-align: left;
		white-space: normal;
		z-index: 1080;
		overflow-y: auto;
		transition: right 0.3s ease;
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}
	body.menu-open #content #menu_button {
		right: 0;
		box-shadow: -4px 0 12px rgba(0,0,0,0.4);
	}
	#content #menu_button a,
	#content #menu_button span a {
		float: none;
		display: block;
		width: 100%;
		margin: 0;
		padding: 16px 24px;
		font-size: 20px;
		background: transparent;
		border-bottom: 1px solid rgba(255,255,255,0.1);
		color: #b3d37d;
	}
	#content #menu_button span {
		display: block;
	}
	#content #menu_button span a {
		background: #aa1d32;
		color: #fff;
	}
	#content #menu_button a:hover {
		background: #aa1d32;
		color: #fff;
	}

	/* H1 / H2 / H3 */
	h1, h1.page-title {
		margin-top: 30px;
		margin-bottom: 20px;
		white-space: normal;
		padding-left: 0;
		text-align: center;
		background: none;
	}
	h1 span, h1.page-title span {
		font-size: 24px;
		padding: 4px 8px;
		display: inline-block;
		background-image: url(../img/Bg_Texture.png);
		line-height: 1.2;
	}
	h2 {
		margin-top: 20px;
		margin-bottom: 16px;
		padding-left: 0;
		text-align: center;
		background: none;
	}
	h2 span {
		font-size: 26px;
		padding: 4px 8px;
		display: inline-block;
		background-image: url(../img/Bg_Texture.png);
	}
	h3 { padding-left: 0; text-align: center; }
	h3 span { font-size: 22px; }
	h4 { font-size: 15px; }
	h5 { font-size: 16px; line-height: 1.4; padding: 10px 4px; text-align: left; }
	h5 .bigger { font-size: 19px; }
	h6 {
		font-size: 24px;
		line-height: 1.2;
		padding: 8px 0;
		text-align: center;
	}

	/* SCOTCHS décoratifs - cachés */
	.scotch_top_left,
	.scotch_bottom_right,
	.thumbnail .scotch_topleft,
	.thumbnail .scotch_bottomright {
		display: none !important;
	}

	/* MAIN IMAGE accueil - fluide */
	#main_image {
		width: 100%;
		max-width: 100%;
		height: 0;
		padding-bottom: 22.7%; /* 216/950 ratio */
		min-height: 120px;
		background-size: contain;
		background-position: center;
		background-repeat: no-repeat;
	}

	/* SEPARATEURS */
	.main_image_separator,
	#content .main_image_separator {
		max-width: 100% !important;
		width: 100% !important;
		margin: 15px 0;
	}

	/* ZONES TEXTE / IMAGE - empilées en pleine largeur */
	.zone_texte_gauche,
	.zone_texte_gauche_s2,
	.zone_texte_gauche_s3,
	.zone_texte_gauche_s4,
	.zone_texte_gauche_s5,
	.zone_image_droite,
	.zone_image_droite_s2,
	.zone_image_droite_s3,
	.zone_image_droite_s4,
	.zone_image_droite_s5,
	.zone_texte_droite {
		width: 100%;
		float: none;
		padding: 0;
		margin: 0 0 20px 0;
		height: auto;
		display: block;
	}

	.zone_image_droite .image_content,
	.zone_image_droite_s2 .image_content,
	.zone_image_droite_s3 .image_content,
	.zone_image_droite_s4 .image_content,
	.zone_image_droite_s5 .image_content {
		position: relative;
		max-width: 100%;
		height: auto;
		display: block;
		margin: 0 auto;
	}

	.red_button {
		text-align: center;
		font-size: 22px;
	}
	.red_button span {
		display: inline-block;
	}
	.zone_image_droite_s2 .red_button {
		position: relative;
		top: 0;
		left: 0;
		width: auto;
		margin: 10px auto;
	}

	/* PICTOS accueil */
	#pictos {
		float: none;
		width: 100%;
		height: auto;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin: 20px 0;
	}
	.entretien,
	.maintenance,
	.protection,
	.irrigation {
		float: none;
		margin: 6px;
	}

	/* AVANTAGES / CONTRAINTES (apropos) */
	#avantagecontraintes {
		background-image: none;
		background-color: #e8eef3;
		padding: 30px 10px;
	}
	#avantagecontraintes ul {
		width: 100%;
		padding: 20px 10px;
		display: block;
	}
	#avantagecontraintes #avantages,
	#avantagecontraintes #contraintes {
		position: relative;
		margin: 0 auto 10px;
		left: 0;
		top: 0;
		display: block;
	}
	#avantagecontraintes #avantages span,
	#avantagecontraintes #contraintes span {
		left: 60px;
	}

	/* SEPARATEUR VERTICAL apropos */
	.vertseparator {
		display: block;
		width: 100%;
		height: auto;
		background-image: none;
		margin: 20px 0;
		padding: 10px 0;
		border-top: 2px dotted #aa1d32;
	}

	/* THUMBNAILS galerie */
	.thumbnail,
	.thumbnail2 {
		display: block;
		width: 100%;
		max-width: 320px;
		height: auto;
		margin: 30px auto;
		top: 0;
	}
	.thumbnail .thumbnail_image,
	.thumbnail .thumbnail_image2,
	.thumbnail .thumbnail_image3 {
		width: 100%;
		max-width: 280px;
		height: auto;
		margin: 30px auto 0;
	}
	.thumbnail img {
		position: relative;
		max-width: 100%;
		height: auto;
	}
	.thumbnail span {
		position: relative;
		display: block;
		margin: 0 0 10px 0;
		text-align: center;
	}
	.thumbnail2 .thumbnail2_caption {
		height: auto;
		padding-bottom: 20px;
		background-size: cover;
	}

	/* CONTACT */
	#contact_zonegauche,
	#contact_zonedroite {
		width: 100%;
		height: auto;
		display: block;
		margin: 0;
		padding: 10px 0;
	}
	#contact_zonegauche .colonne {
		width: 100%;
		height: auto;
		display: block;
		margin-bottom: 20px;
	}
	#contact_zonegauche .colonne #googlemap {
		position: relative;
		width: 100%;
		max-width: 326px;
		left: 0;
		margin: 0 auto;
	}
	#contact_zonegauche iframe {
		max-width: 100%;
	}
	#contact_zonegauche a[href^="tel:"],
	#contact_zonegauche a[href^="mailto:"] {
		white-space: nowrap;
		display: inline-block;
	}

	/* ACTU */
	#actu_zonegauche {
		width: 100%;
		margin-left: 0;
		padding: 0;
		min-height: auto;
	}
	#actu_zonegauche img {
		padding-left: 0;
		max-width: 100%;
		height: auto;
	}
	#actu_zonegauche li {
		font-size: 14px;
	}

	/* FOOTER - fonds décoratifs cachés (badge 70 ans, etc) */
	#content #footercontactimg,
	#content #footerimg {
		display: none;
	}

	#footer {
		position: relative;
		height: auto;
		width: 100%;
		padding: 30px 16px;
		margin-top: 20px;
		text-align: center;
		background: #2c3439;
	}
	#footer #footer_logo {
		position: relative;
		float: none;
		display: block;
		margin: 0 auto 15px;
		width: 100px;
		height: 98px;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}
	#footer #footer_infos {
		position: relative;
		width: 100%;
		left: 0;
		float: none;
		height: auto;
	}
	#footer h3 {
		margin-left: 0;
		text-align: center;
		background: none;
		padding: 0;
	}
	#footer h3 span {
		font-size: 24px;
		background: none;
		color: #fff;
		padding: 0;
	}
	#footer #footer_infos h3 span {
		background: none;
	}
	#footer #footer_title2 {
		width: 100%;
		height: auto;
		padding: 10px 0;
		font-size: 15px;
		color: #b3d37d;
		text-align: center;
		word-wrap: break-word;
		line-height: 1.8;
	}
	#footer #footer_title2 a {
		color: #fff;
		text-decoration: underline;
	}
	#footer #footer_title2 a[href^="tel:"],
	#footer #footer_title2 a[href^="mailto:"] {
		white-space: nowrap;
		display: inline-block;
	}

	/* FOOTER BOTTOM - bandeau image caché */
	#footer_bottom {
		position: relative;
		height: auto;
		width: 100%;
		padding: 20px 10px;
		background: #1e2428;
	}
	#footer_bottom #footer_title_img,
	#footer_title_line {
		display: none;
	}
	#footer_bottom_line1,
	#footer_bottom_line2,
	#footer_bottom_line3 {
		position: relative;
		top: 0;
		height: auto;
		font-size: 14px;
		padding: 4px 6px;
		line-height: 1.5;
		margin: 6px 0;
	}
	#footer_bottom_line1 {
		color: #b3d37d;
		font-size: 14px;
	}
	#footer_bottom_line2 {
		font-size: 18px;
	}
	#footer_bottom_line2 a {
		padding: 4px 8px;
		display: inline-block;
	}
	#footer_bottom_line3 {
		color: #888;
		font-size: 12px;
	}
}

/* -------- VERY SMALL MOBILE (≤ 480px) -------- */
@media (max-width: 480px) {
	#content { padding: 75px 10px 0; }
	#content #titre_principal { left: 56px; right: 56px; font-size: 14px; }
	#content #titre_principal span { font-size: 14px; padding: 2px 6px; }
	#content #titre_secondaire { font-size: 14px; }
	h1 span, h1.page-title span { font-size: 20px; }
	h2 span { font-size: 22px; }
	h6 { font-size: 20px; }
	#footer_bottom_line1 { font-size: 13px; }
	#footer_bottom_line2 a { font-size: 16px; padding: 4px 6px; }
	#footer #footer_title2 { font-size: 14px; }
}
