/*
Theme Name: MB Paysage
Theme URI: https://mbpaysage-creation.fr
Author: MB Paysage
Author URI: https://mbpaysage-creation.fr
Description: Thème sur mesure pour MB Paysage, entreprise de création et d'entretien d'espaces verts. Palette et typographie inspirées de l'identité visuelle de l'entreprise (vert sauge, vert forêt, accent terracotta).
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mbpaysage
*/

/* =========================================================================
   0. Variables
   ========================================================================= */
:root {
	--forest: #16210c;
	--forest-2: #223018;
	--sage: #c4d194;
	--sage-soft: #e7ecd4;
	--cream: #f8f6ee;
	--ink: #1b2712;
	--clay: #e9720f;
	--clay-dark: #c65f09;
	--stone: #5c6a48;
	--white: #ffffff;
	--line: rgba(27, 39, 18, 0.14);
	--line-light: rgba(248, 246, 238, 0.22);

	--font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container: 1180px;
	--radius-s: 6px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   1. Reset
   ========================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 0.5em;
	color: var(--ink);
}

p {
	margin: 0 0 1em;
	max-width: 62ch;
}

button {
	font-family: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

:focus-visible {
	outline: 3px solid var(--clay);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================================
   2. Layout helpers
   ========================================================================= */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 28px;
}

.section {
	padding: 96px 0;
}

.section--tight {
	padding: 64px 0;
}

.eyebrow {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--clay-dark);
	margin: 0 0 0.4em;
}

.section-head {
	max-width: 620px;
	margin-bottom: 52px;
}

.section-head h2 {
	font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-head p {
	color: var(--stone);
	font-size: 1.08rem;
}

/* Bordure diagonale réutilisant le ruban du logo, en signature du site */
.angled-top {
	clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}

.angled-bottom {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw));
}

.angled-both {
	clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

/* =========================================================================
   3. Boutons
   ========================================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: var(--radius-s);
	font-weight: 600;
	font-size: 0.98rem;
	border: 1.5px solid transparent;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
	cursor: pointer;
}

.btn-primary {
	background: var(--clay);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--clay-dark);
}

.btn-ghost-light {
	border-color: var(--line-light);
	color: var(--cream);
}

.btn-ghost-light:hover {
	background: rgba(248, 246, 238, 0.1);
}

.btn-ghost-dark {
	border-color: var(--line);
	color: var(--ink);
}

.btn-ghost-dark:hover {
	background: rgba(27, 39, 18, 0.06);
}

.btn-block {
	width: 100%;
	justify-content: center;
}

/* =========================================================================
   4. En-tête / navigation
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--forest);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-branding img.custom-logo {
	height: 56px;
	width: auto;
	border-radius: 10px;
}

.site-branding .site-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--cream);
	letter-spacing: 0.02em;
}

.nav-primary {
	display: flex;
	align-items: center;
	gap: 34px;
}

.nav-menu {
	display: flex;
	gap: 30px;
}

.nav-menu a {
	color: var(--sage-soft);
	font-weight: 500;
	font-size: 0.98rem;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-menu a:hover,
.nav-menu li.current-menu-item a {
	color: var(--white);
	border-color: var(--clay);
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--forest);
	background: var(--sage);
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
	transition: background-color 0.2s var(--ease);
}

.header-phone:hover {
	background: var(--white);
}

.nav-toggle {
	display: none;
	background: transparent;
	border: none;
	color: var(--cream);
	padding: 8px;
	cursor: pointer;
}

.nav-toggle svg {
	width: 26px;
	height: 26px;
}

/* =========================================================================
   5. Hero
   ========================================================================= */
.hero {
	position: relative;
	background-color: var(--forest);
	background-image:
		linear-gradient(155deg, rgba(22, 33, 12, 0.88) 15%, rgba(22, 33, 12, 0.55) 48%, rgba(76, 97, 42, 0.35) 100%),
		radial-gradient(circle at 82% 18%, #5c7a2e 0%, #3c5420 32%, #1c2a10 70%),
		repeating-linear-gradient(120deg, #24350f 0 3px, #2c3f13 3px 7px);
	color: var(--cream);
	overflow: hidden;
	padding-top: 100px;
	padding-bottom: 150px;
}

.hero .container {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 620px) 1fr;
	gap: 40px;
	align-items: end;
}

.hero-copy {
	animation: mbp-rise 0.8s var(--ease) both;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--sage);
	font-weight: 600;
	letter-spacing: 0.03em;
	font-size: 0.9rem;
	margin-bottom: 22px;
}

.hero-eyebrow::before {
	content: "";
	width: 30px;
	height: 2px;
	background: var(--clay);
}

.hero h1 {
	font-size: clamp(2.6rem, 5.2vw, 4.2rem);
	color: var(--white);
	max-width: 14ch;
	margin-bottom: 0.35em;
}

.hero-subtitle {
	color: var(--sage-soft);
	font-size: 1.15rem;
	max-width: 46ch;
	margin-bottom: 2.1em;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.hero-badge {
	position: relative;
	justify-self: end;
	align-self: start;
	margin-top: 8px;
	background: var(--sage);
	color: var(--forest);
	width: 168px;
	height: 168px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transform: rotate(9deg);
	box-shadow: 0 0 0 6px rgba(248, 246, 238, 0.12);
	animation: mbp-rise 0.9s 0.15s var(--ease) both;
}

.hero-badge strong {
	font-family: var(--font-display);
	font-size: 2.1rem;
	line-height: 1;
}

.hero-badge span {
	font-size: 0.78rem;
	font-weight: 600;
	max-width: 110px;
	margin-top: 6px;
	line-height: 1.25;
}

@keyframes mbp-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =========================================================================
   6. Bandeau de confiance
   ========================================================================= */
.trust-strip {
	background: var(--cream);
	border-bottom: 1px solid var(--line);
}

.trust-strip .container {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	padding-top: 26px;
	padding-bottom: 26px;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--forest-2);
}

.trust-item svg {
	width: 20px;
	height: 20px;
	color: var(--clay);
	flex-shrink: 0;
}

/* =========================================================================
   7. Services
   ========================================================================= */
.services {
	background: var(--sage);
	margin-top: -60px;
	padding-top: 130px;
	padding-bottom: 110px;
	position: relative;
}

.services .container {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 60px;
}

.services-intro {
	position: relative;
}

.services-intro .eyebrow {
	color: var(--forest-2);
}

.services-intro h2 {
	font-size: clamp(1.8rem, 2.6vw, 2.3rem);
	margin-bottom: 0.5em;
}

.services-intro p {
	color: var(--forest-2);
	font-size: 1rem;
}

.services-vertical {
	display: none;
}

.service-list {
	border-top: 1.5px solid rgba(22, 33, 12, 0.28);
}

.service-row {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 22px;
	padding: 28px 0;
	border-bottom: 1.5px solid rgba(22, 33, 12, 0.28);
}

.service-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--forest);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.service-icon svg {
	width: 26px;
	height: 26px;
	color: var(--sage);
}

.service-row h3 {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
	font-size: 1.5rem;
	margin-bottom: 0.25em;
	color: var(--forest);
}

.service-row p {
	color: var(--forest-2);
	font-size: 0.98rem;
	margin: 0;
}

/* =========================================================================
   8. Section "À propos" (teaser)
   ========================================================================= */
.about-teaser {
	background: var(--cream);
	padding-top: 110px;
}

.about-teaser .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 70px;
	align-items: center;
}

.about-visual {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 4px;
	background:
		linear-gradient(200deg, rgba(22,33,12,0.05), rgba(22,33,12,0.35)),
		repeating-linear-gradient(115deg, #6b8f37 0 10px, #5a7c2c 10px 20px, #7fa246 20px 30px);
	clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
	overflow: hidden;
}

.about-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 55%);
}

.about-badge {
	position: absolute;
	left: 22px;
	bottom: 22px;
	background: var(--forest);
	color: var(--cream);
	padding: 16px 20px;
	max-width: 220px;
	border-radius: 4px;
}

.about-badge strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.6rem;
	color: var(--sage);
}

.about-badge span {
	font-size: 0.85rem;
	color: var(--sage-soft);
}

.about-copy .eyebrow {
	color: var(--clay-dark);
}

.about-copy h2 {
	font-size: clamp(1.9rem, 2.8vw, 2.4rem);
}

.about-copy p {
	color: var(--stone);
	font-size: 1.05rem;
}

.about-list {
	margin-top: 28px;
	display: grid;
	gap: 14px;
}

.about-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-weight: 500;
	color: var(--ink);
}

.about-list svg {
	width: 20px;
	height: 20px;
	color: var(--clay);
	flex-shrink: 0;
	margin-top: 2px;
}

/* =========================================================================
   9. Bandeau CTA final
   ========================================================================= */
.cta-banner {
	background: var(--forest);
	color: var(--cream);
	margin-top: 90px;
	padding: 90px 0;
}

.cta-banner .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.cta-banner h2 {
	color: var(--white);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	max-width: 14ch;
	margin: 0;
}

.cta-banner .cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

.cta-phone {
	color: var(--sage-soft);
	font-weight: 600;
	font-size: 1.1rem;
}

/* =========================================================================
   10. Pied de page
   ========================================================================= */
.site-footer {
	background: var(--forest);
	color: var(--sage-soft);
	padding-top: 70px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 50px;
	padding-bottom: 50px;
	border-bottom: 1px solid var(--line-light);
}

.footer-brand img.custom-logo {
	height: 46px;
	width: auto;
	border-radius: 8px;
	margin-bottom: 18px;
}

.footer-brand p {
	color: rgba(231, 236, 212, 0.75);
	font-size: 0.95rem;
	max-width: 32ch;
}

.footer-social {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}

.footer-social a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line-light);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-social a:hover {
	background: var(--clay);
	border-color: var(--clay);
}

.footer-social svg {
	width: 18px;
	height: 18px;
}

.footer-col h4 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sage);
	margin-bottom: 18px;
}

.footer-col ul {
	display: grid;
	gap: 12px;
}

.footer-col a {
	color: rgba(231, 236, 212, 0.85);
	font-size: 0.96rem;
	transition: color 0.2s var(--ease);
}

.footer-col a:hover {
	color: var(--white);
}

.footer-col li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.95rem;
	color: rgba(231, 236, 212, 0.85);
}

.footer-col li svg {
	width: 18px;
	height: 18px;
	color: var(--sage);
	flex-shrink: 0;
	margin-top: 2px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 24px 0;
	font-size: 0.85rem;
	color: rgba(231, 236, 212, 0.6);
}

/* =========================================================================
   11. En-tête de page intérieure (Contact / Info / Tarifs)
   ========================================================================= */
.page-hero {
	background: var(--forest);
	color: var(--cream);
	padding: 64px 0 92px;
	margin-bottom: -50px;
}

.page-hero .eyebrow {
	color: var(--sage);
}

.page-hero h1 {
	color: var(--white);
	font-size: clamp(2.1rem, 4vw, 3rem);
	margin-bottom: 0.3em;
}

.page-hero p {
	color: var(--sage-soft);
	font-size: 1.08rem;
	max-width: 56ch;
}

/* =========================================================================
   12. Contenu éditorial (Info / Tarifs) - habillage des blocs Gutenberg
   ========================================================================= */
.entry-wrap {
	background: var(--cream);
	padding: 90px 0 40px;
}

.entry-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 60px;
	align-items: start;
}

.entry-content h2 {
	font-size: 1.7rem;
	margin-top: 1.6em;
}

.entry-content h2:first-child {
	margin-top: 0;
}

.entry-content p {
	color: var(--stone);
	max-width: 70ch;
}

.entry-content .wp-block-table {
	margin: 1.6em 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.98rem;
}

.entry-content table th,
.entry-content table td {
	text-align: left;
	padding: 16px 14px;
	border-bottom: 1px solid var(--line);
}

.entry-content table th {
	font-family: var(--font-body);
	font-weight: 600;
	color: var(--forest);
	background: var(--sage-soft);
}

.entry-content table td:last-child,
.entry-content table th:last-child {
	color: var(--clay-dark);
	font-weight: 600;
}

.entry-content em {
	color: var(--stone);
	font-size: 0.92rem;
}

.side-card {
	background: var(--sage);
	border-radius: 4px;
	padding: 34px 28px;
	position: sticky;
	top: 100px;
}

.side-card h3 {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
	color: var(--forest);
	font-size: 1.4rem;
}

.side-card p {
	color: var(--forest-2);
	font-size: 0.95rem;
}

.side-card .btn {
	margin-top: 10px;
}

.side-list {
	display: grid;
	gap: 14px;
	margin: 18px 0;
}

.side-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--forest-2);
	font-size: 0.95rem;
	font-weight: 500;
}

.side-list svg {
	width: 18px;
	height: 18px;
	color: var(--clay-dark);
	flex-shrink: 0;
	margin-top: 2px;
}

/* =========================================================================
   13. Page Contact
   ========================================================================= */
.contact-wrap {
	background: var(--cream);
	padding: 90px 0 110px;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
}

.contact-form-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 42px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.form-field {
	margin-bottom: 20px;
}

.form-field label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 8px;
	color: var(--forest-2);
}

.form-field input,
.form-field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-s);
	font-family: var(--font-body);
	font-size: 0.98rem;
	background: var(--cream);
	color: var(--ink);
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--clay);
	background: var(--white);
	outline: none;
}

.form-field textarea {
	resize: vertical;
	min-height: 140px;
}

.form-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.form-note {
	font-size: 0.85rem;
	color: var(--stone);
	margin-top: 14px;
}

.form-alert {
	padding: 16px 18px;
	border-radius: var(--radius-s);
	margin-bottom: 26px;
	font-weight: 500;
	font-size: 0.95rem;
}

.form-alert--ok {
	background: #e5f0d8;
	color: var(--forest-2);
	border: 1px solid rgba(22, 33, 12, 0.15);
}

.form-alert--error {
	background: #fbe6da;
	color: #8a3a0a;
	border: 1px solid rgba(233, 114, 15, 0.3);
}

.contact-info-card {
	background: var(--forest);
	color: var(--sage-soft);
	border-radius: 4px;
	padding: 42px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	position: relative;
	overflow: hidden;
}

.contact-info-card::before {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 160px;
	height: 160px;
	background: var(--sage);
	opacity: 0.12;
	border-radius: 50%;
}

.contact-info-card h3 {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
	color: var(--white);
	font-size: 1.5rem;
}

.contact-info-list {
	display: grid;
	gap: 22px;
	margin: 26px 0 30px;
}

.contact-info-list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.contact-info-list svg {
	width: 22px;
	height: 22px;
	color: var(--sage);
	flex-shrink: 0;
	margin-top: 2px;
}

.contact-info-list a {
	font-weight: 600;
	color: var(--white);
}

.contact-info-list span {
	display: block;
	font-size: 0.85rem;
	color: rgba(231, 236, 212, 0.65);
	margin-bottom: 2px;
}

/* =========================================================================
   14. Divers
   ========================================================================= */
.wp-block-buttons,
.wp-block-button {
	margin: 1.4em 0;
}

.wp-block-button__link {
	display: inline-flex;
	background: var(--clay);
	color: var(--white);
	padding: 13px 24px;
	border-radius: var(--radius-s);
	font-weight: 600;
}

.entry-content .wp-block-columns {
	gap: 30px;
}

/* =========================================================================
   15. Responsive
   ========================================================================= */
@media (max-width: 980px) {
	.hero .container {
		grid-template-columns: 1fr;
	}

	.hero-badge {
		justify-self: start;
	}

	.services .container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.about-teaser .container,
	.contact-grid,
	.entry-grid {
		grid-template-columns: 1fr;
	}

	.side-card {
		position: static;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.section {
		padding: 64px 0;
	}

	.nav-primary {
		position: fixed;
		inset: 70px 0 0 0;
		background: var(--forest);
		flex-direction: column;
		align-items: flex-start;
		padding: 30px 28px;
		gap: 26px;
		transform: translateX(100%);
		transition: transform 0.3s var(--ease);
		overflow-y: auto;
	}

	.nav-primary.is-open {
		transform: translateX(0);
	}

	.nav-menu {
		flex-direction: column;
		gap: 20px;
		font-size: 1.15rem;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.hero {
		padding-top: 60px;
		padding-bottom: 110px;
	}

	.hero-badge {
		width: 130px;
		height: 130px;
	}

	.hero-badge strong {
		font-size: 1.6rem;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.contact-form-card,
	.contact-info-card,
	.side-card {
		padding: 28px;
	}

	.cta-banner .container {
		flex-direction: column;
		align-items: flex-start;
	}
}
