/* =================================================================
   TinyLibre — Feuille de style principale
   assets/css/tinylibre.css
   ================================================================= */

/* -----------------------------------------------------------------
   1. RESET GENERATEPRESS sur la homepage
   ----------------------------------------------------------------- */

.tl-fullwidth-home {
	padding: 0 !important;
	max-width: 100% !important;
}

body.home .site-content,
body.home .content-area,
body.home article.page {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}

body.home .entry-content {
	margin: 0 !important;
}

/* Cache les éléments GP inutiles sur la home */
body.home .page-header,
body.home .breadcrumb-trail,
body.home .post-image {
	display: none !important;
}

/* -----------------------------------------------------------------
   2. NAVIGATION CUSTOM
   ----------------------------------------------------------------- */

.tl-nav {
	background: var(--tl-vert-foret);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 48px;
	height: 72px;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

.tl-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.tl-logo-text {
	font-family: var(--tl-font-titre);
	color: var(--tl-ivoire);
	font-size: 20px;
	letter-spacing: 0.01em;
}

.tl-logo-text span {
	color: var(--tl-ambre);
}

.tl-nav-links {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tl-nav-links a {
	color: rgba(245, 240, 232, 0.72);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.tl-nav-links a:hover {
	color: var(--tl-ivoire);
	text-decoration: none;
}

.tl-nav-cta {
	background: var(--tl-terre-cuite);
	color: var(--tl-ivoire) !important;
	padding: 10px 22px;
	border-radius: var(--tl-radius-sm);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background 0.2s;
}

.tl-nav-cta:hover {
	background: #b35524;
}

/* Menu mobile */
.tl-hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.tl-hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--tl-ivoire);
	margin: 5px 0;
	transition: all 0.3s;
}

/* -----------------------------------------------------------------
   3. HERO
   ----------------------------------------------------------------- */

.tl-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 580px;
	background: var(--tl-vert-foret);
	overflow: hidden;
}

.tl-hero-content {
	padding: 72px 48px 72px 64px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tl-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(212, 168, 67, 0.18);
	border: 1px solid rgba(212, 168, 67, 0.4);
	color: var(--tl-ambre);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 2px;
	margin-bottom: 28px;
	width: fit-content;
}

.tl-hero-badge-dot {
	width: 6px;
	height: 6px;
	background: var(--tl-ambre);
	border-radius: 50%;
}

.tl-hero h1 {
	font-family: var(--tl-font-titre);
	color: var(--tl-ivoire);
	font-size: 50px;
	line-height: 1.12;
	font-weight: 700;
	margin-bottom: 20px;
}

.tl-hero h1 em {
	color: var(--tl-ambre);
	font-style: normal;
}

.tl-hero-sub {
	color: rgba(245, 240, 232, 0.68);
	font-size: 17px;
	line-height: 1.65;
	margin-bottom: 36px;
	max-width: 420px;
}

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

.tl-hero-visual {
	background: linear-gradient(145deg, #243e1f 0%, #1D3A1A 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.tl-hero-visual svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -----------------------------------------------------------------
   4. BOUTONS
   ----------------------------------------------------------------- */

.tl-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tl-terre-cuite);
	color: #fff !important;
	padding: 14px 28px;
	border-radius: var(--tl-radius-sm);
	font-family: var(--tl-font-corps);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	transition: background 0.2s, transform 0.15s;
	border: none;
	cursor: pointer;
}

.tl-btn-primary:hover {
	background: #b35524;
	transform: translateY(-1px);
}

.tl-btn-primary::after {
	content: '→';
}

.tl-btn-outline {
	display: inline-flex;
	align-items: center;
	padding: 14px 28px;
	border-radius: var(--tl-radius-sm);
	border: 1.5px solid rgba(245, 240, 232, 0.3);
	color: rgba(245, 240, 232, 0.8) !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none !important;
	transition: border-color 0.2s, color 0.2s;
}

.tl-btn-outline:hover {
	border-color: rgba(245, 240, 232, 0.6);
	color: var(--tl-ivoire) !important;
}

.tl-btn-dl {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tl-terre-cuite);
	color: #fff !important;
	padding: 14px 28px;
	border-radius: var(--tl-radius-sm);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	width: fit-content;
	transition: background 0.2s;
}

.tl-btn-dl:hover {
	background: #b35524;
}

.tl-btn-dl::after {
	content: '↓';
}

/* -----------------------------------------------------------------
   5. BANDE STATISTIQUES
   ----------------------------------------------------------------- */

.tl-stats {
	background: var(--tl-terre-cuite);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.tl-stat {
	padding: 28px 24px;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	text-align: center;
}

.tl-stat:last-child {
	border-right: none;
}

.tl-stat-num {
	font-family: var(--tl-font-titre);
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}

.tl-stat-label {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	margin-top: 6px;
	letter-spacing: 0.03em;
}

/* -----------------------------------------------------------------
   6. SECTIONS GÉNÉRIQUES
   ----------------------------------------------------------------- */

.tl-section {
	padding: var(--tl-section-py) var(--tl-section-px);
}

.tl-section--ivoire {
	background: var(--tl-ivoire);
}

.tl-section--blanc {
	background: #fff;
}

.tl-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 48px;
}

.tl-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tl-vert-clair);
	margin-bottom: 10px;
}

.tl-section-head h2,
.tl-section-title {
	font-family: var(--tl-font-titre);
	font-size: 36px;
	color: var(--tl-vert-foret);
	line-height: 1.2;
	font-weight: 700;
}

.tl-see-all {
	color: var(--tl-terre-cuite) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: gap 0.2s;
}

.tl-see-all::after {
	content: '→';
}

.tl-see-all:hover {
	gap: 10px;
}

/* -----------------------------------------------------------------
   7. CARTES THÉMATIQUES
   ----------------------------------------------------------------- */

.tl-guides {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.tl-guide-card {
	border: 1.5px solid var(--tl-ivoire-fonce);
	border-radius: var(--tl-radius);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
}

.tl-guide-card:hover {
	transform: translateY(-5px);
	border-color: var(--tl-vert-clair);
	box-shadow: 0 12px 32px rgba(29, 58, 26, 0.12);
}

.tl-guide-card-top {
	padding: 32px 28px 24px;
	background: var(--tl-ivoire);
}

.tl-guide-icon {
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
}

.tl-guide-card-top h3 {
	font-family: var(--tl-font-titre);
	font-size: 20px;
	color: var(--tl-vert-foret);
	font-weight: 700;
	margin-bottom: 10px;
	line-height: 1.3;
}

.tl-guide-card-top p {
	font-size: 14px;
	color: var(--tl-texte-doux);
	line-height: 1.6;
	margin: 0;
}

.tl-guide-card-bottom {
	padding: 16px 28px;
	background: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--tl-ivoire-fonce);
}

.tl-guide-articles {
	color: var(--tl-texte-doux);
	font-size: 13px;
}

.tl-guide-link {
	color: var(--tl-terre-cuite) !important;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
}

/* -----------------------------------------------------------------
   8. GRILLE D'ARTICLES
   ----------------------------------------------------------------- */

.tl-section--articles {
	background: var(--tl-ivoire);
}

.tl-articles {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 24px;
}

/* Article principal */
.tl-article-main {
	background: var(--tl-vert-foret);
	border-radius: var(--tl-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s;
}

.tl-article-main:hover {
	transform: translateY(-3px);
}

.tl-article-main-img {
	height: 220px;
	position: relative;
	overflow: hidden;
}

.tl-article-main-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tl-article-main-img .tl-no-img {
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #2d5225, #1D3A1A);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tl-article-tag {
	position: absolute;
	top: 16px;
	left: 16px;
	background: var(--tl-terre-cuite);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 2px;
}

.tl-article-main-body {
	padding: 28px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tl-article-main-body h3 {
	font-family: var(--tl-font-titre);
	color: var(--tl-ivoire);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 12px;
}

.tl-article-main-body p {
	color: rgba(245, 240, 232, 0.65);
	font-size: 14px;
	line-height: 1.6;
	flex: 1;
	margin-bottom: 16px;
}

.tl-article-meta {
	font-size: 12px;
	color: rgba(245, 240, 232, 0.4);
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Articles secondaires */
.tl-article-small {
	border: 1.5px solid var(--tl-ivoire-fonce);
	border-radius: var(--tl-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, border-color 0.2s;
}

.tl-article-small:hover {
	transform: translateY(-3px);
	border-color: var(--tl-vert-clair);
}

.tl-article-small-img {
	height: 150px;
	position: relative;
	overflow: hidden;
}

.tl-article-small-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tl-article-small-img .tl-no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tl-article-small-img .tl-no-img--eau {
	background: linear-gradient(135deg, #2a5f8a, #1a3d5c);
}

.tl-article-small-img .tl-no-img--terre {
	background: linear-gradient(135deg, #7a5a2a, #4a3318);
}

.tl-article-small-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tl-article-small-body .tl-tag {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tl-vert-clair);
	margin-bottom: 8px;
}

.tl-article-small-body h3 {
	font-family: var(--tl-font-titre);
	font-size: 17px;
	font-weight: 700;
	color: var(--tl-vert-foret);
	line-height: 1.35;
	margin-bottom: 8px;
}

.tl-article-small-body p {
	font-size: 13px;
	color: var(--tl-texte-doux);
	line-height: 1.55;
	flex: 1;
	margin: 0;
}

/* -----------------------------------------------------------------
   9. BLOC RESSOURCE (Guide PDF)
   ----------------------------------------------------------------- */

.tl-feature {
	background: var(--tl-vert-moyen);
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
}

.tl-feature-text {
	padding: 72px 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tl-feature-text .tl-eyebrow {
	color: rgba(212, 168, 67, 0.85);
}

.tl-feature-text h2 {
	font-family: var(--tl-font-titre);
	color: var(--tl-ivoire);
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
}

.tl-feature-text > p {
	color: rgba(245, 240, 232, 0.7);
	font-size: 16px;
	line-height: 1.65;
	margin-bottom: 28px;
}

.tl-feature-list {
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tl-feature-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(245, 240, 232, 0.85);
	font-size: 14px;
}

.tl-check {
	width: 22px;
	height: 22px;
	min-width: 22px;
	background: rgba(212, 168, 67, 0.22);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: var(--tl-ambre);
}

.tl-feature-visual {
	background: linear-gradient(160deg, #2d5a22, #1a3310);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
}

.tl-feature-visual svg {
	max-width: 300px;
	width: 100%;
}

/* -----------------------------------------------------------------
   10. NEWSLETTER
   ----------------------------------------------------------------- */

.tl-newsletter {
	background: var(--tl-ivoire);
	padding: var(--tl-section-py) var(--tl-section-px);
	text-align: center;
	border-top: 1.5px solid var(--tl-ivoire-fonce);
}

.tl-newsletter .tl-eyebrow {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.tl-newsletter h2 {
	font-family: var(--tl-font-titre);
	font-size: 34px;
	color: var(--tl-vert-foret);
	margin: 0 auto 12px;
	max-width: 500px;
	font-weight: 700;
	line-height: 1.25;
}

.tl-newsletter > p {
	color: var(--tl-texte-doux);
	font-size: 15px;
	margin-bottom: 32px;
}

.tl-email-form {
	display: flex;
	max-width: 460px;
	margin: 0 auto;
	border: 2px solid var(--tl-vert-foret);
	border-radius: var(--tl-radius-sm);
	overflow: hidden;
}

.tl-email-form input[type="email"] {
	flex: 1;
	padding: 14px 20px;
	border: none;
	font-family: var(--tl-font-corps);
	font-size: 15px;
	background: #fff;
	color: var(--tl-texte);
	outline: none;
	min-width: 0;
}

.tl-email-form input[type="email"]::placeholder {
	color: #9D8E84;
}

.tl-email-form button {
	background: var(--tl-vert-foret);
	color: #fff;
	border: none;
	padding: 14px 24px;
	font-family: var(--tl-font-corps);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

.tl-email-form button:hover {
	background: #254d21;
}

/* -----------------------------------------------------------------
   11. FOOTER CUSTOM
   ----------------------------------------------------------------- */

.tl-footer {
	background: var(--tl-brun);
	padding: 56px var(--tl-section-px) 32px;
}

.tl-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 48px;
}

.tl-footer-brand .tl-logo-text {
	color: var(--tl-ivoire);
}

.tl-footer-brand p {
	color: rgba(245, 240, 232, 0.5);
	font-size: 13px;
	margin-top: 12px;
	line-height: 1.65;
	max-width: 200px;
}

.tl-footer-col h4,
.footer-widget-title {
	color: var(--tl-ambre) !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 16px;
	font-family: var(--tl-font-corps) !important;
}

.tl-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tl-footer-col a {
	color: rgba(245, 240, 232, 0.5) !important;
	font-size: 13px;
	text-decoration: none !important;
	transition: color 0.2s;
}

.tl-footer-col a:hover {
	color: rgba(245, 240, 232, 0.9) !important;
}

.tl-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tl-footer-bottom p {
	color: rgba(245, 240, 232, 0.3);
	font-size: 12px;
	margin: 0;
}

.tl-footer-socials {
	display: flex;
	gap: 10px;
}

.tl-social-btn {
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(245, 240, 232, 0.4) !important;
	text-decoration: none !important;
	font-size: 12px;
	transition: border-color 0.2s, color 0.2s;
}

.tl-social-btn:hover {
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--tl-ivoire) !important;
}

/* -----------------------------------------------------------------
   12. RESPONSIVE
   ----------------------------------------------------------------- */

@media (max-width: 1024px) {
	:root {
		--tl-section-px: 40px;
	}

	.tl-guides {
		grid-template-columns: repeat(2, 1fr);
	}

	.tl-articles {
		grid-template-columns: 1fr 1fr;
	}

	.tl-article-main {
		grid-column: 1 / -1;
	}

	.tl-feature {
		grid-template-columns: 1fr;
	}

	.tl-feature-visual {
		display: none;
	}

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

@media (max-width: 768px) {
	:root {
		--tl-section-py: 48px;
		--tl-section-px: 24px;
	}

	.tl-nav {
		padding: 0 24px;
		position: relative;
	}

	.tl-nav-links,
	.tl-nav-cta {
		display: none;
	}

	.tl-hamburger {
		display: block;
	}

	.tl-nav-links.is-open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--tl-vert-foret);
		padding: 16px 24px 24px;
		gap: 16px;
		z-index: 999;
	}

	.tl-hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.tl-hero-visual {
		display: none;
	}

	.tl-hero-content {
		padding: 48px 24px;
	}

	.tl-hero h1 {
		font-size: 36px;
	}

	.tl-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.tl-stat:nth-child(2) {
		border-right: none;
	}

	.tl-stat:nth-child(3) {
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.tl-stat:nth-child(4) {
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		border-right: none;
	}

	.tl-section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.tl-guides {
		grid-template-columns: 1fr;
	}

	.tl-articles {
		grid-template-columns: 1fr;
	}

	.tl-article-main {
		grid-column: 1;
	}

	.tl-feature-text {
		padding: 48px 24px;
	}

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

	.tl-footer-bottom {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.tl-hero-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.tl-section-head h2,
	.tl-section-title {
		font-size: 28px;
	}

	.tl-feature-text h2 {
		font-size: 28px;
	}
}

/* -----------------------------------------------------------------
   13. ANIMATIONS
   ----------------------------------------------------------------- */

@keyframes tl-fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tl-hero-content > * {
	animation: tl-fadeInUp 0.6s ease both;
}

.tl-hero-content .tl-hero-badge { animation-delay: 0.1s; }
.tl-hero-content h1             { animation-delay: 0.2s; }
.tl-hero-content .tl-hero-sub  { animation-delay: 0.3s; }
.tl-hero-content .tl-hero-actions { animation-delay: 0.4s; }

/* Fade-in au scroll pour les sections */
.tl-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.tl-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
