:root {
	--alj-green: rgb(16, 111, 95);
	--alj-green-dark: rgb(10, 80, 68);
	--alj-green-soft: rgba(16, 111, 95, 0.08);
	--alj-leaf: rgb(92, 164, 83);
	--alj-ink: rgb(40, 44, 43);
	--alj-muted: rgb(117, 128, 126);
	--alj-radius: 16px;
	--alj-shadow: 0 16px 40px rgba(10, 40, 34, 0.14);
}

/* ---------------------------------------------------------------
   Finitions du thème
   --------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

.entry-content .wp-block-kubio-image__figure img,
.entry-content figure.wp-block-kubio-image img {
	border-radius: var(--alj-radius);
	box-shadow: var(--alj-shadow);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s ease;
	will-change: transform;
}

.entry-content .wp-block-kubio-image__figure:hover img,
.entry-content figure.wp-block-kubio-image:hover img {
	transform: scale(1.03);
	box-shadow: 0 24px 55px rgba(10, 40, 34, 0.24);
}

.entry-content .alj-zoomable {
	cursor: zoom-in;
}

.entry-content .alj-zoomable:focus-visible {
	outline: 3px solid var(--alj-green);
	outline-offset: 4px;
	border-radius: var(--alj-radius);
}

.entry-content h2 {
	line-height: 1.18;
	letter-spacing: -0.3px;
}

.entry-content p {
	line-height: 1.75;
}

/* Boutons du thème : coins arrondis et léger relief au survol. */
.wp-block-kubio-button__link,
.wp-block-kubio-button-link {
	border-radius: 10px !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.wp-block-kubio-button__link:hover,
.wp-block-kubio-button-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(16, 111, 95, 0.28);
}

/* En-tête : ombre discrète une fois la page défilée. */
.wp-block-kubio-header__container {
	transition: box-shadow 0.3s ease;
}

body.alj-scrolled .wp-block-kubio-header__container {
	box-shadow: 0 6px 24px rgba(10, 40, 34, 0.16);
}

/* ---------------------------------------------------------------
   Apparition au défilement
   --------------------------------------------------------------- */

/* Préfixé par .alj-anim (ajouté par JS) : sans JavaScript, rien n'est masqué. */
.alj-anim .alj-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.alj-anim .alj-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.alj-anim .alj-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------------------------------------------------------------
   Boutons maison
   --------------------------------------------------------------- */

/* Le style global de Kubio cible « .with-kubio-global-style a » : plus
   spécifique que nos classes. D'où le !important sur les seules propriétés
   typographiques et de couleur de nos boutons. */
.alj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	font-family: "Work Sans", Helvetica, Arial, sans-serif !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	letter-spacing: 1px;
	line-height: 1.4 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #fff !important;
	background: var(--alj-green);
	border: 2px solid var(--alj-green);
	border-radius: 10px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.alj-btn:hover {
	color: #fff !important;
	background: var(--alj-green-dark);
	border-color: var(--alj-green-dark);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(16, 111, 95, 0.3);
}

.alj-btn--light {
	color: var(--alj-green) !important;
	background: #fff;
	border-color: #fff;
}

.alj-btn--light:hover {
	color: var(--alj-green-dark) !important;
	background: #f3f7f5;
	border-color: #f3f7f5;
}

.alj-btn--ghost {
	color: #fff !important;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.65);
}

.alj-btn--ghost:hover {
	color: var(--alj-green) !important;
	background: #fff;
	border-color: #fff;
}

.alj-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 10px;
}

/* ---------------------------------------------------------------
   [alj_footer]
   --------------------------------------------------------------- */

.alj-footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 36px;
	width: 100%;
	padding: 10px 0 30px;
	text-align: left;
}

.alj-footer__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	letter-spacing: 0.4px;
	color: var(--alj-green);
}

.alj-footer__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--alj-muted);
}

.alj-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--alj-muted);
}

.alj-footer__list li {
	margin-bottom: 9px;
}

.alj-footer__list a {
	color: var(--alj-muted) !important;
	font-size: inherit !important;
	text-decoration: none !important;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.alj-footer__list a:hover {
	color: var(--alj-green) !important;
	padding-left: 4px;
}

/* Section « Un artisan diplômé » : bandeau vert, texte clair, cartes blanches. */
#atouts {
	background: linear-gradient(135deg, #0a5044 0%, #106f5f 55%, #17806d 100%) !important;
}

#atouts .wp-block-kubio-heading,
#atouts .wp-block-kubio-heading *,
#atouts h2,
#atouts .wp-block-kubio-text,
#atouts .wp-block-kubio-text p {
	color: #fff !important;
}

#atouts .alj-stats__item {
	background: #fff;
}

/* ---------------------------------------------------------------
   [alj_stats]
   --------------------------------------------------------------- */

.alj-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 18px;
	width: 100%;
}

.alj-stats__item {
	padding: 28px 22px;
	text-align: center;
	background: #fff;
	border-radius: var(--alj-radius);
	border-top: 4px solid var(--alj-green);
	box-shadow: 0 10px 28px rgba(10, 40, 34, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alj-stats__item:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 38px rgba(10, 40, 34, 0.16);
}

.alj-stats__value {
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--alj-green);
}

.alj-stats__suffix {
	font-size: 0.6em;
	vertical-align: super;
}

.alj-stats__label {
	margin: 10px 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--alj-muted);
}

/* ---------------------------------------------------------------
   [alj_services]
   --------------------------------------------------------------- */

.alj-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 22px;
	width: 100%;
}

.alj-services__card {
	position: relative;
	overflow: hidden;
	padding: 32px 28px;
	background: #fff;
	border-radius: var(--alj-radius);
	box-shadow: 0 10px 30px rgba(10, 40, 34, 0.1);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.alj-services__card::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: linear-gradient(90deg, var(--alj-green), var(--alj-leaf));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.alj-services__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 50px rgba(10, 40, 34, 0.18);
}

.alj-services__card:hover::after {
	transform: scaleX(1);
}

.alj-services__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	background: var(--alj-green-soft);
	border-radius: 14px;
}

.alj-services__icon svg {
	width: 30px;
	height: 30px;
	fill: var(--alj-green);
}

.alj-services__title {
	margin: 0 0 10px;
	font-size: 1.2rem;
	color: var(--alj-ink);
}

.alj-services__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--alj-muted);
}

.alj-services__more {
	margin-top: 28px;
	text-align: center;
}

/* ---------------------------------------------------------------
   [alj_galerie] + visionneuse
   --------------------------------------------------------------- */

.alj-gallery {
	display: grid;
	gap: 14px;
	width: 100%;
}

.alj-gallery--cols-2 {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.alj-gallery--cols-3 {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.alj-gallery--cols-4 {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.alj-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 0;
	aspect-ratio: 4 / 3;
	background: #e8eeec;
	border: 0;
	border-radius: 14px;
	cursor: zoom-in;
}

.alj-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.alj-gallery__item:hover .alj-gallery__img {
	transform: scale(1.08);
}

.alj-gallery__zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 111, 95, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.alj-gallery__zoom svg {
	width: 34px;
	height: 34px;
	fill: #fff;
}

.alj-gallery__item:hover .alj-gallery__zoom,
.alj-gallery__item:focus-visible .alj-gallery__zoom {
	opacity: 1;
}

.alj-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: rgba(8, 20, 17, 0.94);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.alj-lightbox.is-open {
	opacity: 1;
}

.alj-lightbox__figure {
	margin: 0;
	max-width: min(1100px, 92vw);
	text-align: center;
}

.alj-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	margin: 0 auto;
	border-radius: 12px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.alj-lightbox__caption {
	margin-top: 14px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.78);
}

.alj-lightbox__close,
.alj-lightbox__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.alj-lightbox__close:hover,
.alj-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.26);
	transform: scale(1.08);
}

.alj-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 1.8rem;
}

@media (max-width: 640px) {
	.alj-lightbox__nav {
		position: absolute;
		bottom: 24px;
	}

	.alj-lightbox__nav--prev {
		left: 24px;
	}

	.alj-lightbox__nav--next {
		right: 24px;
	}
}

/* ---------------------------------------------------------------
   [alj_cta]
   --------------------------------------------------------------- */

.alj-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	width: 100%;
	padding: 40px 44px;
	color: #fff;
	background: linear-gradient(120deg, var(--alj-green-dark), var(--alj-green) 55%, var(--alj-leaf));
	border-radius: var(--alj-radius);
	box-shadow: var(--alj-shadow);
}

.alj-cta__title {
	margin: 0 0 8px;
	font-size: 1.9rem;
	line-height: 1.2;
	color: #fff;
}

.alj-cta__text {
	margin: 0;
	max-width: 56ch;
	color: rgba(255, 255, 255, 0.88);
}

.alj-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 782px) {
	.alj-cta {
		padding: 30px 26px;
	}

	.alj-cta__title {
		font-size: 1.55rem;
	}
}

/* ---------------------------------------------------------------
   [alj_zone]
   --------------------------------------------------------------- */

.alj-zone {
	width: 100%;
	padding: 32px 34px;
	background: #fff;
	border-radius: var(--alj-radius);
	box-shadow: 0 10px 30px rgba(10, 40, 34, 0.1);
}

.alj-zone__title {
	margin: 0 0 8px;
	color: var(--alj-green);
}

.alj-zone__intro p {
	margin: 0 0 18px;
	color: var(--alj-muted);
}

.alj-zone__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.alj-zone__list li {
	padding: 7px 15px;
	font-size: 0.85rem;
	color: var(--alj-green-dark);
	background: var(--alj-green-soft);
	border-radius: 999px;
}

/* ---------------------------------------------------------------
   Barre d'actions flottante
   --------------------------------------------------------------- */

.alj-dock {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.alj-dock__btn {
	display: inline-flex;
	align-items: center;
	gap: 0;
	max-width: 54px;
	height: 54px;
	padding: 0 15px;
	overflow: hidden;
	color: #fff !important;
	font-family: "Work Sans", Helvetica, Arial, sans-serif !important;
	text-decoration: none !important;
	background: var(--alj-green);
	border: 0;
	border-radius: 27px;
	box-shadow: 0 10px 26px rgba(10, 40, 34, 0.3);
	cursor: pointer;
	white-space: nowrap;
	transition: max-width 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), background 0.25s ease, gap 0.4s ease;
}

.alj-dock__btn svg {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	fill: #fff;
}

.alj-dock__label {
	font-size: 0.85rem !important;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.25s ease 0.1s;
}

.alj-dock__btn:hover,
.alj-dock__btn:focus-visible {
	max-width: 280px;
	gap: 10px;
	background: var(--alj-green-dark);
}

.alj-dock__btn:hover .alj-dock__label,
.alj-dock__btn:focus-visible .alj-dock__label {
	opacity: 1;
}

.alj-dock__btn--mail {
	background: var(--alj-leaf);
}

.alj-dock__btn--top {
	justify-content: center;
	width: 44px;
	max-width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(40, 44, 43, 0.82);
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
}

body.alj-scrolled .alj-dock__btn--top {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

@media (max-width: 600px) {
	.alj-dock {
		right: 12px;
		bottom: 12px;
	}

	.alj-dock__btn:hover {
		max-width: 54px;
		gap: 0;
	}

	.alj-dock__btn:hover .alj-dock__label {
		opacity: 0;
	}
}
