/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.bricolage-grotesque {
	font-family: "Bricolage Grotesque", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wdth" 100;
}

/* ================================
   GLOBAL
================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
	font-family: "Bricolage Grotesque", sans-serif;
	color: #21401D;
	margin: 0;
}

/* ================================
   HEADER
================================ */
#site-header {
	background: #fff;
	padding-top: 20px;
}

.header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.site-header__logo {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.site-header__logo a {
	display: inline-block;
	text-decoration: none;
}

.site-header__logo img,
.site-header__logo .custom-logo {
	height: 120px;
	width: auto;
}

.site-header__name {
	font-size: 22px;
	font-weight: 700;
	color: #21401D;
}

.site-header__nav {
	padding: 14px 0;
}

.site-header__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 48px;
}

.site-header__nav ul li {
	margin: 0;
}

.site-header__nav ul li a {
	text-decoration: none;
	color: #21401D;
	font-size: 18px;
	font-weight: 500;
	transition: color 0.2s;
}

.site-header__nav ul li a:hover,
.site-header__nav ul li.current-menu-item > a {
	color: #86192D;
}

/* Hamburger (mobile) */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #21401D;
	transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
	.header-inner {
		position: relative;
		display: flex;
		flex-direction: column;
	}

	.nav-toggle {
		display: flex;
	}

	.site-header__nav {
		display: none;
		border-top: none;
		padding: 0;
	}

	.site-header__nav.is-open {
		display: block;
		padding: 16px 0;
		border-top: 1px solid rgba(33, 64, 29, 0.12);
	}

	.site-header__nav ul {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		padding: 8px 0;
	}
}

@media (max-width: 420px) {
	.header-inner {
		flex-direction: row;
        align-items: center;
        justify-content: space-between;
	}
	
	.nav-toggle span{
		color: #fff; 
	}
}

/* ================================
   FOOTER – BANDE CTA
================================ */
.footer-cta {
	background: #A9D2A0;
	position: relative;
	overflow: hidden;
	padding: 80px 24px;
	text-align: center;
}

.footer-cta__arrow {
	position: absolute;
	width: 220px;
	height: auto;
	pointer-events: none;
}

/*
 * Arrow_04 naturelle : pointe en bas-gauche, corps en haut-droite.
 * Droite (top:0 right:0) → pointe vers bas-gauche = vers le centre ✓
 * Gauche (bottom:0 left:0 + rotate 180°) → pointe vers haut-droite = vers le centre ✓
 * → Symétrie diagonale parfaite, même SVG, même taille.
 */
.footer-cta__arrow--right {
	top: 0;
	right: 12%;
}

.footer-cta__arrow--left {
	bottom: 0;
	left: 12%;
	transform: rotate(180deg);
}

.footer-cta__content {
	position: relative;
	z-index: 1;
}

.footer-cta__title {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: clamp(28px, 5vw, 44px);
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px;
}

.footer-cta__desc {
	color: #fff;
	font-size: 16px;
	line-height: 1.6;
	margin: 0 auto 32px;
	max-width: 560px;
}

.footer-cta__btn {
	display: inline-block;
	background: #86192D;
	color: #fff;
	text-decoration: none;
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 36px;
	border-radius: 50px;
	transition: opacity 0.2s;
}

.footer-cta__btn:hover {
	opacity: 0.88;
	color: #fff;
}

/* ================================
   FOOTER – PARTIE BASSE
================================ */
.footer-bottom {
	background: #fff;
	padding: 52px 24px 36px;
	text-align: center;
}

.footer-bottom__logo {
	display: block;
	margin: 0 auto 28px;
}

.footer-bottom__logo img,
.footer-bottom__logo .custom-logo {
	height: 90px;
	width: auto;
}

.footer-bottom__nav ul,
.footer-bottom__legal ul {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 40px;
}

.footer-bottom__nav ul li a,
.footer-bottom__legal ul li a {
	text-decoration: none;
	color: #21401D;
	font-size: 14px;
	transition: color 0.2s;
}

.footer-bottom__nav ul li a:hover,
.footer-bottom__legal ul li a:hover {
	color: #86192D;
}

.footer-bottom__contact {
	margin: 20px 0;
	font-size: 14px;
	color: #21401D;
}

.footer-bottom__contact a {
	color: #21401D;
	text-decoration: none;
}

.footer-bottom__contact a:hover {
	text-decoration: underline;
}

.footer-bottom__contact .sep {
	margin: 0 16px;
	opacity: 0.3;
}

.address-street {
	color: #86192D;
	font-weight: 600;
}

.footer-bottom__social {
	margin-top: 20px;
}

.footer-bottom__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #21401D;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s;
}

.footer-bottom__social a:hover {
	opacity: 0.8;
}

/* ================================
   ARCHIVE – Actualités
================================ */

/*
 * Image décorative de fond (Vector15.png).
 * Passée via CSS custom property --page-deco depuis le template PHP.
 * Le pseudo-element la pose derrière tout le contenu de la page d'archive.
 * Scopé à .content-archive pour ne pas affecter les autres pages.
 */
main.content-archive {
	position: relative;
	overflow: hidden;
}

main.content-archive::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-image: var(--page-deco);
	background-repeat: no-repeat;
	background-position: right top;
	background-size: auto;
	pointer-events: none;
	z-index: 0;
}

/* Le contenu passe au-dessus du pseudo-element */
main.content-archive > * {
	position: relative;
	z-index: 1;
}

.archive-header {
	text-align: center;
	padding: 60px 24px 40px;
}

/* Badge pill */
.archive-header__badge {
	display: inline-block;
	background: #86192D;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	padding: 6px 20px;
	border-radius: 50px;
	margin-bottom: 18px;
}

.archive-header__title {
	font-size: clamp(28px, 5vw, 44px);
	font-weight: 700;
	color: #21401D;
	margin: 0 0 12px;
	font-family: "Bricolage Grotesque", sans-serif;
}

.archive-header__desc {
	color: #555;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

.archive-empty {
	text-align: center;
	padding: 60px 24px;
	color: #888;
}

.archive-grid {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px 48px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.article-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-card__img-link {
	display: block;
	overflow: hidden;
}

.article-card__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.article-card:hover .article-card__img {
	transform: scale(1.04);
}

.article-card__img-placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #A9D2A0;
}

.article-card__body {
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.article-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.article-card__date {
	font-size: 12px;
	color: #888;
}

.article-card__cat {
	font-size: 11px;
	font-weight: 700;
	color: #21401D;
	background: rgba(169, 210, 160, 0.35);
	padding: 3px 10px;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.article-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #21401D;
	margin: 0 0 10px;
	line-height: 1.3;
	flex: 1;
}

.article-card__title a {
	text-decoration: none;
	color: inherit;
}

.article-card__title a:hover {
	color: #86192D;
}

.article-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin: 8px 0 0;
	flex: 1; /* pousse le lien "Lire la suite" vers le bas */
}

.article-card__link {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #86192D;
	text-decoration: none;
	margin-top: 12px;
}

.article-card__link:hover {
	text-decoration: underline;
}

/* ================================
   Bouton "Voir plus"
================================ */
.archive-load-more {
	display: flex;
	justify-content: center;
	padding: 8px 24px 64px;
}

.rdl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, opacity 0.2s;
}

.rdl-btn--load-more {
	background: #86192D;
	color: #ffffff;
	padding: 14px 36px;
}

.rdl-btn--load-more:hover {
	background: #21401D;
}

.rdl-btn--load-more:disabled {
	opacity: 0.6;
	cursor: default;
}

.archive-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 24px 60px;
}

.archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #21401D;
	text-decoration: none;
	background: rgba(33, 64, 29, 0.07);
	transition: background 0.2s;
}

.archive-pagination .page-numbers.current {
	background: #21401D;
	color: #fff;
}

.archive-pagination .page-numbers:hover:not(.current) {
	background: #A9D2A0;
}

/* ================================
   SINGLE – Article
================================ */
.single-post-wrapper {
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 24px 0;
}

.single-post__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #21401D;
	text-decoration: none;
	margin-bottom: 36px;
}

.single-post__back:hover {
	color: #86192D;
}

.single-post__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.single-post__cat {
	font-size: 12px;
	font-weight: 700;
	color: #21401D;
	background: rgba(169, 210, 160, 0.35);
	padding: 4px 12px;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.single-post__date {
	font-size: 13px;
	color: #888;
}

.single-post__title {
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 700;
	color: #21401D;
	line-height: 1.2;
	margin: 0 0 28px;
}

.single-post__thumbnail {
	width: 100%;
	border-radius: 14px;
	margin-bottom: 36px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	max-height: 520px;
}

.single-post__content {
	max-width: 660px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 72px;
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
	color: #21401D;
	font-family: "Bricolage Grotesque", sans-serif;
	margin-top: 2em;
}

.single-post__content a {
	color: #86192D;
}

.single-post__content img {
	max-width: 100%;
	border-radius: 8px;
	height: auto;
}

/* ── En-tête 2 colonnes : titre gauche / date + catégorie droite ── */
.single-post__header {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 32px;
}

.single-post__header-left {
	flex: 1;
	min-width: 0; /* évite le débordement flex */
}

.single-post__header-left .single-post__title {
	margin: 0;
}

.single-post__header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 8px;
	padding-top: 8px;
	flex-shrink: 0;
	min-width: 160px;
}

/* Séparateur entre l'article et les articles similaires */
.single-post__divider {
	border: none;
	border-top: 1px solid rgba(33, 64, 29, 0.15);
	max-width: 1120px;
	margin: 0 auto 72px;
}

/* ================================
   SINGLE – Section "Articles similaires"
================================ */
.single-related {
	position: relative;
	overflow: hidden;
	padding: 0 24px 88px;
}

/* Image décorative de fond, identique à l'archive */
.single-related::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-image: var(--page-deco);
	background-repeat: no-repeat;
	background-position: right top;
	background-size: auto;
	pointer-events: none;
	z-index: 0;
}

.single-related > * {
	position: relative;
	z-index: 1;
}

.single-related__inner {
	max-width: 1140px;
	margin: 0 auto;
}

.single-related__title {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	color: #21401D;
	font-family: "Bricolage Grotesque", sans-serif;
	margin: 0 0 40px;
	text-align: center;
}

.single-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* ================================
   SHORTCODE – [rdl_derniers_articles]
   Wrapper grid pour les 3 derniers articles.
   Les cartes réutilisent les styles .article-card définis ci-dessus.
================================ */
.rdl-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	width: 100%;
}

/* ================================
   RESPONSIVE – Footer & Single
================================ */
@media (max-width: 768px) {
	/* Footer CTA */
	.footer-cta {
		padding: 56px 24px;
	}

	.footer-cta__arrow {
		width: 120px;
		opacity: 0.5;
	}

	/* Conserver les transforms de positionnement sur mobile */
	.footer-cta__arrow--left {
		transform: rotate(180deg);
	}

	/* Footer bottom */
	.footer-bottom {
		padding: 40px 16px 28px;
	}

	.footer-bottom__contact {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
	}

	.footer-bottom__contact .sep {
		display: none;
	}

}

/* Tablette : 2 colonnes */
@media (min-width: 600px) and (max-width: 1023px) {
	.archive-grid,
	.rdl-posts,
	.single-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Single */
	.single-post-wrapper {
		padding: 32px 16px 0;
	}

	.single-related {
		padding: 0 16px 64px;
	}
}

/* Mobile : en-tête single en colonne */
@media (max-width: 599px) {
	.archive-grid,
	.rdl-posts,
	.single-related__grid {
		grid-template-columns: 1fr;
	}

	.single-post__header {
		flex-direction: column;
		gap: 12px;
	}

	.single-post__header-right {
		align-items: flex-start;
		text-align: left;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
		min-width: 0;
		padding-top: 0;
	}

	.single-related {
		padding: 0 16px 56px;
	}

	.single-post__divider {
		margin-bottom: 48px;
	}
}
