/* Vert Concept — template J5 (reconstruit depuis beez_20) */

:root {
	--green: #94A05A;
	--green-light: #d1dd7e;
	--gray-light: #E0E2E3;
	--text: #333333;
	--text-dark: #1a1a1a;
	--accent: #b0356e;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 12.5px;
	color: var(--text);
	line-height: 1.4;
	background: url('../images/background_green.png') repeat-x center 10px, #a6c22b url('../images/background.jpg') no-repeat center top;
	background-size: auto, cover;
	padding: 0 0 30px;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--text-dark); }

img { max-width: 100%; height: auto; }

h1, h3 { color: var(--text-dark); font-weight: normal; }
.site-main h2 {
	color: #EA0755;
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 15px;
	text-align: right;
}

/* ===== Cadre unique (header + nav + contenu + footer, un seul bloc) ===== */
.site-frame {
	max-width: 1000px;
	margin: 10px auto 0;
	background: #fff;
	box-shadow: 0 20px 25px #333333;
	overflow: hidden;
}

/* ===== Header ===== */
.header-banner {
	background: #2f3320 url('../../../images/bandeau/bandeau0.jpg') no-repeat center;
	background-size: cover;
	min-height: 135px;
	display: flex;
	align-items: center;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	flex-wrap: wrap;
	width: 100%;
}
.logo {
	font-size: 4em;
	color: #fff;
	line-height: 1.1;
	letter-spacing: 1px;
	text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.logo:hover { color: #fff; opacity: .9; }
.logo-bold { font-weight: bold; }
.logo .subtitle {
	display: block;
	font-size: 0.24em;
	color: #eee;
	text-transform: none;
	font-weight: bold;
	letter-spacing: 0.4px;
	text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.6);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	width: 34px;
	height: 28px;
	flex-direction: column;
	justify-content: space-between;
	padding: 0;
}
.nav-toggle span {
	display: block;
	height: 3px;
	background: #fff;
	border-radius: 2px;
}

/* ===== Nav ===== */
.main-nav-bar {
	background: #fff;
	border-bottom: 2px solid #3D2F21;
}
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
}
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 14px 16px;
	color: var(--text-dark);
	font-size: 0.85em;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current > a,
.main-nav > ul > li.active > a {
	color: var(--accent);
}
.main-nav .mod-menu__sub {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid var(--gray-light);
	border-top: 2px solid var(--green);
	min-width: 220px;
	display: none;
	box-shadow: 0 6px 16px rgba(0,0,0,.12);
	z-index: 50;
}
.main-nav li.deeper:hover > .mod-menu__sub,
.main-nav li.deeper.open > .mod-menu__sub {
	display: block;
}
.main-nav .mod-menu__sub a { padding: 10px 16px; white-space: nowrap; }

/* ===== Breadcrumb ===== */
.breadcrumb-wrap { padding: 8px 24px; font-size: 0.8em; color: #777; background: #f7f8f4; border-bottom: 1px solid var(--gray-light); }
.breadcrumb-wrap a { color: #777; }
.breadcrumb-wrap a:hover { color: var(--green); }
.breadcrumb-wrap ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Main ===== */
.site-main { padding: 5px 18px; }
.site-main--split { padding-top: 5px; }
.page-title { color: var(--green); border-bottom: 2px solid var(--gray-light); padding-bottom: 10px; }

.site-main .article-info { display: none; }
.site-main p { margin: 0.25em 0; }
.has-left #wrapper p { margin: 0.2em 0; }
.has-left #wrapper ul { margin: 0.3em 0; padding-left: 1.2em; }
.has-left #wrapper li { margin-bottom: 0.15em; }
.has-left #wrapper h3, .has-left #wrapper strong { line-height: 1.3; }

/* ===== Fiche contact compacte ===== */
.contact-compact h2 { color: #87A05A; text-align: left; }
.contact-compact .contact-name { font-size: 1.2em; margin-bottom: 4px; }
.contact-compact .contact-position { color: #777; font-weight: normal; margin-left: 8px; }
.contact-compact .contact-details { margin-bottom: 22px; }
.contact-cols { display: flex; gap: 30px; flex-wrap: wrap; }
.contact-info-col { flex: 1 1 200px; }
.contact-form-wrap { flex: 1 1 260px; }
@media (max-width: 700px) {
	.contact-cols { flex-direction: column; }
}
.contact-form-wrap .com-contact__form { max-width: 400px; }
.contact-form-wrap fieldset { border: none; padding: 0; margin: 0 0 8px; }
.contact-form-wrap legend { font-size: 0.95em; margin-bottom: 6px; }
.contact-form-wrap .control-group { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.contact-form-wrap .control-group:has(textarea) { align-items: flex-start; }
.contact-form-wrap .control-label { flex: 0 0 68px; }
.contact-form-wrap .controls { flex: 1; min-width: 0; }
.contact-form-wrap label { display: block; font-weight: bold; font-size: 0.85em; line-height: 1.2; }
.contact-form-wrap .field-spacer { font-size: 0.8em; color: #777; margin-bottom: 4px; }
.contact-form-wrap .field-spacer .control-label { flex-basis: auto; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
	width: 100%;
	padding: 4px 6px;
	border: 1px solid var(--gray-light);
	border-radius: 3px;
	font-family: inherit;
	font-size: 0.85em;
	box-sizing: border-box;
}
.contact-form-wrap textarea { height: 60px; resize: vertical; }
.contact-form-wrap .controls { text-align: center; }
.contact-form-wrap button { background: var(--green); color: #fff; border: none; padding: 6px 18px; border-radius: 3px; cursor: pointer; font-size: 0.9em; }
.contact-form-wrap button:hover { background: var(--accent); }

.back-link { margin-top: 16px; text-align: right; }
.back-link--top { position: absolute; top: 0; right: 0; margin: 0; z-index: 2; }
.back-link a {
	display: inline-block;
	background: var(--green);
	color: #fff;
	padding: 6px 14px;
	border-radius: 3px;
	font-size: 0.9em;
}
.back-link a:hover { background: var(--accent); color: #fff; }

/* Home : image de fond en colonne, meme hauteur que le texte a cote (flex stretch) */
.site-main--split {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 14px;
}
.site-main--split .article-title-above {
	flex: 1 0 100%;
	order: -1;
	color: #EA0755 !important;
	font-weight: bold;
	text-align: left !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0 0 4px;
}
.has-left #left {
	flex: 0 0 34%;
	max-height: 460px;
	background-size: cover;
	background-position: right 0px;
	border-radius: 2px;
}
.has-left #wrapper { flex: 1; min-width: 0; }
@media (max-width: 700px) {
	.site-main--split { flex-direction: column; }
	.has-left #left { flex-basis: auto; width: 100%; min-height: 220px; }
}

/* ===== Grilles categorie (Portfolio id=13, Particuliers id=11, etc.) ===== */
.portfolio-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.portfolio-grid.columns-3 .portfolio-tile {
	flex: 1 1 30%;
	min-width: 220px;
}
.portfolio-grid.columns-5 .portfolio-tile {
	flex: 1 1 17%;
	min-width: 150px;
}
.portfolio-tile a {
	display: block;
	color: inherit;
	padding: 6px;
	border-radius: 4px;
	transition: background-color .2s ease;
}
.portfolio-tile a:hover { background-color: var(--gray-light); }
.portfolio-tile img { width: 100%; height: 130px; object-fit: cover; border-radius: 4px; display: block; }
.portfolio-tile-title { display: block; margin-top: 8px; font-size: 0.92em; color: var(--text-dark); text-align: center; }
.portfolio-tile a:hover .portfolio-tile-title { color: var(--accent); }

/* Particuliers : description au survol en plus du fond gris (deja sur .portfolio-tile a) */
.portfolio-tile-desc { display: none; margin-top: 4px; font-size: 1.05em; color: var(--text); text-align: center; }
.portfolio-tile--hover a:hover .portfolio-tile-title { display: none; }
.portfolio-tile--hover a:hover .portfolio-tile-desc { display: block; }

/* ===== Blocs "page-blocks" (tuiles hover, ex-modules mod_custom) ===== */
.page-blocks-area { border-top: 1px solid var(--gray-light); margin-top: 0; padding-top: 0; }
/* Accueil + Presentation uniquement : espace entre le texte et les tuiles images */
.page-blocks-area:has(#accueil),
.page-blocks-area:has(#competences-et-valeurs),
.page-blocks-area:has(#plantes-et-bien-etre) {
	margin-top: 16px;
	padding-top: 16px;
}
.page-blocks-area .custom { display: block; }
.page-blocks-area > div > div[id] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.page-blocks-area .child {
	position: relative;
	flex: 1 1 150px;
	max-width: 220px;
	min-height: 130px;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	background: var(--gray-light);
}
/* Contact : image decorative unique (montage large 660x134), pas une tuile hover normale */
.page-blocks-area #contact .child {
	flex: 1 1 100%;
	max-width: 100%;
	min-height: 0;
	cursor: default;
}
.page-blocks-area #contact .child img {
	height: auto !important;
	object-fit: contain;
}
/* Presentation/competences-et-valeurs : 2 photos decoratives, pleine largeur sans legende hover */
.page-blocks-area #competences-et-valeurs .child {
	flex: 1 1 calc(50% - 4px);
	max-width: calc(50% - 4px);
	min-height: 0;
	cursor: default;
}
.page-blocks-area #competences-et-valeurs .child img {
	height: auto !important;
	object-fit: cover;
}
/* Presentation/plantes-et-bien-etre : 4 photos decoratives, meme ligne, sans legende hover */
.page-blocks-area #plantes-et-bien-etre .child {
	flex: 1 1 calc(25% - 6px);
	max-width: calc(25% - 6px);
	min-height: 0;
	cursor: default;
}
.page-blocks-area #plantes-et-bien-etre .child img {
	height: auto !important;
	object-fit: cover;
}
.page-blocks-area .child img {
	display: none !important;
	width: 100%;
	height: 130px;
	object-fit: cover;
}
.page-blocks-area .child img:first-of-type { display: block !important; }
.page-blocks-area .child:hover img:first-of-type { display: none !important; }
.page-blocks-area .child:hover img:last-of-type { display: block !important; }
.page-blocks-area .child div {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background-color: #e0e2e3;
	color: #333;
	padding: 10px 12px;
	font-size: 0.9em;
	text-align: center;
	transition: background-color .3s ease;
}
.page-blocks-area .child:hover div { background-color: #d1dd7e; }
.page-blocks-area .child div span:last-child { display: none; }
.page-blocks-area .child:hover div span:first-child { display: none; }
.page-blocks-area .child:hover div span:last-child { display: inline; }
.page-blocks-area .child a { display: none !important; }

/* ===== Footer ===== */
.site-footer {
	background: var(--text-dark);
	color: #ccc;
	padding: 18px 24px;
	font-size: 0.9em;
	overflow: auto;
}
.site-footer a { color: var(--green-light); }
.site-footer p { margin: 0; }
.site-footer .left { float: left; color: #fff; }
.site-footer .right { float: right; color: #ccc; font-size: 1.5em; }

/* ===== Galerie Portfolio (dans le contenu) ===== */
.portfolio-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}
.portfolio-header .portfolio-title {
	margin: 0;
	text-align: left;
	flex: 1;
}
.portfolio-header .back-link {
	margin-top: 0;
	flex: 0 0 auto;
	white-space: nowrap;
}
.portfolio-gallery {
	width: 100%;
	height: 420px;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0,0,0,.25);
	background-size: cover;
	background-position: center;
	background-color: #e0e2e3;
	opacity: 0;
	transition: opacity .8s ease, background-image 1s ease;
	margin-bottom: 8px;
}
.portfolio-gallery.is-ready { opacity: 1; }
@media (max-width: 700px) {
	.portfolio-gallery { height: 240px; }
	.portfolio-header { flex-wrap: wrap; }
}

/* Titre de fiche projet deja affiche dans .portfolio-header : masque le doublon embarque
   dans l'introtext (h2 legacy prod) ; compacte le tableau de legendes vide/quasi-vide qui
   suivait (coupe/plan/materiaux/palette vegetale sur certaines fiches, sinon entierement
   vide) pour ne pas laisser un grand blanc avant les boutons prev/next. */
.has-gallery .com-content-article__body > h2:first-child { display: none; }
.has-gallery .com-content-article__body table {
	width: 100% !important;
	height: auto !important;
	margin: 0 0 4px;
}
.has-gallery .com-content-article__body table td {
	height: auto !important;
	width: auto !important;
	vertical-align: top;
	padding: 0 20px 0 0;
}
.has-gallery .com-content-article__body table p {
	margin: 0;
	line-height: 0.6em;
	font-size: 0.85em;
	color: #666;
}

/* Navigation article precedent/suivant : boutons pleins bien visibles, collee au contenu */
.pagenavigation {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid var(--gray-light);
}
.pagenavigation .pagination {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pagenavigation .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--green);
	color: #fff;
	padding: 8px 18px;
	border-radius: 3px;
	font-weight: bold;
	font-size: 0.9em;
	text-decoration: none;
	transition: background-color .2s ease;
}
.pagenavigation .btn:hover { background: var(--accent); }
.pagenavigation .visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
	body { padding: 0; }
	.site-frame { box-shadow: none; border-radius: 0; }
	.nav-toggle { display: flex; }
	.main-nav {
		display: none;
		width: 100%;
	}
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { text-align: left; }
	.main-nav .mod-menu__sub { position: static; border: none; box-shadow: none; display: none; }
	.main-nav li.deeper.open > .mod-menu__sub { display: block; }
}
