/* Page Scierie (spec 08) : chargée sur cette page seule, après style.css. */

/* ---- Hero : cadrage de chaque photo du diaporama (photo 1 retournée à l'import), points plus haut */
.nl-scierie-hero .elementor-background-slideshow__slide[data-swiper-slide-index="0"] .elementor-background-slideshow__slide__image { background-position: 0% 65%; }
.nl-scierie-hero .elementor-background-slideshow__slide[data-swiper-slide-index="1"] .elementor-background-slideshow__slide__image { background-position: 17% 50%; }
.nl-scierie-hero .elementor-background-slideshow__slide[data-swiper-slide-index="2"] .elementor-background-slideshow__slide__image { background-position: 36% 30%; }
.nl-scierie-hero .elementor-background-slideshow__slide[data-swiper-slide-index="3"] .elementor-background-slideshow__slide__image { background-position: 19% 30%; }
.nl-scierie-hero .elementor-background-slideshow__slide[data-swiper-slide-index="4"] .elementor-background-slideshow__slide__image { background-position: 21% 46%; }
.nl-scierie-hero .nl-hero-points { bottom: 100px; }
@media (max-width: 1599px) { .nl-scierie-hero .nl-hero-points { bottom: 75px; } }
@media (max-width: 1024px) { .nl-scierie-hero .nl-hero-points { bottom: 72px; } }
@media (max-width: 767px) { .nl-scierie-hero .nl-hero-points { bottom: 84px; } }

/* ---- Produits : 4 cartes sur une ligne (desktop, laptop), 2 par ligne en tablette et en mobile */
@media (max-width: 1024px) {
	.nl-scierie-produits.e-con > .nl-scierie-produit.e-con { --width: calc(50% - 12px); width: calc(50% - 12px) !important; }
}
@media (max-width: 767px) {
	.nl-scierie-produits.e-con > .nl-scierie-produit.e-con { --width: calc(50% - 8px); width: calc(50% - 8px) !important; }
}

/* ---- Essences : 6 vignettes, coin haut-gauche de la 1re et bas-droit de la dernière */
.nl-scierie-grille-essences .e-loop-item:nth-child(1 of .e-loop-item) .nl-essence-img,
.nl-scierie-grille-essences .e-loop-item:nth-child(1 of .e-loop-item) .nl-essence-img img { border-top-left-radius: 74px; overflow: hidden; }
.nl-scierie-grille-essences .e-loop-item:nth-last-child(1 of .e-loop-item) .nl-essence-img,
.nl-scierie-grille-essences .e-loop-item:nth-last-child(1 of .e-loop-item) .nl-essence-img img { border-bottom-right-radius: 80px; overflow: hidden; }
.nl-scierie-grille-essences .nl-carte-essence--mini .elementor-heading-title { font-size: 1.4375rem !important; font-weight: 700 !important; font-style: normal !important; line-height: 1.26 !important; }
@media (max-width: 1599px) {
	.nl-scierie-grille-essences .e-loop-item:nth-child(1 of .e-loop-item) .nl-essence-img,
	.nl-scierie-grille-essences .e-loop-item:nth-child(1 of .e-loop-item) .nl-essence-img img { border-top-left-radius: 56px; }
	.nl-scierie-grille-essences .e-loop-item:nth-last-child(1 of .e-loop-item) .nl-essence-img,
	.nl-scierie-grille-essences .e-loop-item:nth-last-child(1 of .e-loop-item) .nl-essence-img img { border-bottom-right-radius: 60px; }
	.nl-scierie-grille-essences .nl-carte-essence--mini .elementor-heading-title { font-size: 1.1875rem !important; }
}
@media (max-width: 1024px) {
	.nl-scierie-grille-essences .nl-carte-essence--mini .elementor-heading-title { font-size: 1.125rem !important; }
}
@media (max-width: 767px) {
	.nl-scierie-grille-essences .e-loop-item:nth-child(1 of .e-loop-item) .nl-essence-img,
	.nl-scierie-grille-essences .e-loop-item:nth-child(1 of .e-loop-item) .nl-essence-img img { border-top-left-radius: 40px; }
	.nl-scierie-grille-essences .e-loop-item:nth-last-child(1 of .e-loop-item) .nl-essence-img,
	.nl-scierie-grille-essences .e-loop-item:nth-last-child(1 of .e-loop-item) .nl-essence-img img { border-bottom-right-radius: 40px; }
	.nl-scierie-grille-essences .nl-carte-essence--mini .elementor-heading-title { font-size: 1.0625rem !important; }
}

/* ---- Pourquoi : 8 garanties en 3 colonnes (numéro blanc au-dessus du libellé) */
.nl-scierie-garanties.nl-etapes {
	padding-left: 0;
	grid-template-columns: 343px 303px 1fr;
	column-gap: 0;
	row-gap: 61px;
}
.nl-scierie-garanties.nl-etapes li::before { color: #fff; }
@media (max-width: 1599px) {
	.nl-scierie-garanties.nl-etapes { grid-template-columns: 38% 34% 1fr; row-gap: 44px; }
}
@media (max-width: 1024px) {
	.nl-scierie-garanties.nl-etapes { grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 40px; }
}
@media (max-width: 767px) {
	.nl-scierie-garanties.nl-etapes { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

/* ---- Carte satellite : image sous la colonne or (lien vers l'itinéraire sur la partie visible) */
.nl-scierie-carte.e-con { position: relative; }
.nl-scierie-carte .nl-scierie-carte-img { inset: 0; height: 100%; }
.nl-scierie-carte .nl-scierie-carte-img a { display: block; height: 100%; }
.nl-scierie-carte .nl-scierie-carte-img img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.nl-scierie-carte-texte.e-con { position: relative; }
.nl-scierie-carte .nl-scierie-carte-mobile a { display: block; }
.nl-scierie-carte .nl-scierie-carte-mobile img { object-position: 70% 45%; }
@media (max-width: 767px) {
	.nl-scierie-carte .nl-scierie-carte-mobile img { object-position: 74% 45%; }
}

/* ---- Bloc CTA de la page : pas d'accroche « Intervention en France… » dans la maquette */
.nl-cta .nl-accroche { display: none; }
/* Passe 1 : « Pourquoi travailler… » en tablette et mobile : voile brun derrière le texte (photo claire). */
@media (max-width: 1024px) {
	.nl-scierie-pourquoi.e-con::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(53,45,17,.4) 0%, rgba(53,45,17,.15) 30%, rgba(53,45,17,0) 45%); pointer-events: none; z-index: 0; }
	.nl-scierie-pourquoi.e-con > .e-con-inner { position: relative; z-index: 1; }
	.nl-scierie-pourquoi .elementor-widget-text-editor:not(.nl-etapes-widget) { text-shadow: 0 1px 4px rgba(0,0,0,.35); }
}
/* Passe 2 : paragraphe blanc lisible sur la photo en laptop aussi. */
@media (min-width: 1025px) and (max-width: 1599px) { .nl-scierie-pourquoi .elementor-widget-text-editor:not(.nl-etapes-widget) { text-shadow: 0 1px 5px rgba(53,45,17,.55); } }
/* Passe 3 : hero mobile, voile derrière le titre et ombre portée. */
@media (max-width: 767px) {
	.nl-scierie-hero.e-con::before { background-image: linear-gradient(180deg, rgba(19,16,13,.55) 10%, rgba(19,16,13,.45) 65%, rgba(19,16,13,.25) 100%) !important; opacity: 1 !important; }
	.nl-scierie-hero h1, .nl-scierie-hero .nl-surtitre .elementor-heading-title { text-shadow: 0 1px 6px rgba(19,16,13,.75), 0 2px 14px rgba(0,0,0,.4); }
}
/* CTA blanc sans accroche : bouton à ≈ 65 px sous le paragraphe, poche de ≈ 870 px. */
@media (min-width: 1600px) { body .nl-cta-contenu > .e-con:has(.nl-cta-bouton) { --padding-top: 65px !important; } .nl-cta.e-con { --padding-bottom: 137px !important; } }
@media (min-width: 1025px) and (max-width: 1599px) { body .nl-cta-contenu > .e-con:has(.nl-cta-bouton) { --padding-top: 48px !important; } .nl-cta.e-con { --padding-bottom: 103px !important; } }
/* Avis : filet du bloc Google à ≈ 60 px des cartes. */
@media (min-width: 1600px) { .nl-google.e-con { margin-top: 26px !important; } }
/* Contre-visite : hero mobile, voile local dense derrière le bloc de texte (grumes claires). */
@media (max-width: 767px) {
	.nl-scierie-hero .nl-hero-contenu.e-con { position: relative; }
	.nl-scierie-hero .nl-hero-contenu.e-con::before { content: ""; position: absolute; inset: -40px -20px; background: radial-gradient(closest-side at 50% 50%, rgba(19,16,13,.72) 0%, rgba(19,16,13,.6) 55%, rgba(19,16,13,0) 100%); z-index: -1; pointer-events: none; }
	.nl-scierie-hero h1, .nl-scierie-hero .nl-surtitre .elementor-heading-title { text-shadow: 0 1px 3px rgba(19,16,13,.9), 0 2px 12px rgba(19,16,13,.7); }
}

/* ---- Produits : rangée plus large (photos ≈ 307 px en 1920 au lieu de 261), colonnes égales */
@media (min-width: 1025px) {
	.nl-scierie-produits.e-con {
		--nl-u: min(calc(100vw / 1920), 1px);
		--nl-pg: calc(50 * var(--nl-u));
		width: min(100%, calc(1380 * var(--nl-u))) !important;
		max-width: 100%;
		gap: calc(40 * var(--nl-u)) var(--nl-pg) !important;
		justify-content: center;
	}
	.nl-scierie-produits.e-con > .nl-scierie-produit.e-con {
		--width: calc((100% - 3 * var(--nl-pg)) / 4);
		width: calc((100% - 3 * var(--nl-pg)) / 4) !important;
	}
	.nl-scierie-produit .nl-photo, .nl-scierie-produit .nl-photo img { width: 100% !important; max-width: 100%; }
	.nl-scierie-produit .nl-photo img { height: auto !important; aspect-ratio: 260.8 / 271.8; object-fit: cover; }
}

/* ---- Sciage à façon : 2 colonnes égales comme la maquette.
   ≥ 1600 px : typos exactes de la maquette (titre 80, surtitre 39, paragraphes 21) malgré le gel global du Kit,
   proportionnelles entre 1600 et 1920 px sans descendre sous l'échelle laptop ; texte calé en haut, au niveau de la photo.
   En dessous : photo centrée sur le bloc de texte, retours à la ligne naturels. */
@media (min-width: 1600px) {
	.nl-scierie-sciage.e-con {
		--nl-u: min(calc(100vw / 1920), 1px);
		--e-global-typography-primary-font-size: max(3.875rem, calc(80 * var(--nl-u)));
		--e-global-typography-secondary-font-size: max(1.9375rem, calc(39 * var(--nl-u)));
		--e-global-typography-text-font-size: max(1.125rem, calc(21 * var(--nl-u)));
	}
	.nl-scierie-sciage-rangee.e-con { align-items: flex-start; --align-items: flex-start; }
	.nl-scierie-sciage-texte p { white-space: nowrap; }
	.nl-scierie-sciage .nl-scierie-sciage-tagline { font-size: max(1.0625rem, calc(19 * var(--nl-u))) !important; }
}
@media (min-width: 1025px) and (max-width: 1599px) {
	.nl-scierie-sciage-rangee.e-con { align-items: center; --align-items: center; }
}
@media (min-width: 1025px) {
	.nl-scierie-sciage-rangee.e-con { --nl-gouttiere: 56px; }
	.nl-scierie-sciage-rangee.e-con > .e-con { flex: 0 0 auto; width: calc(50% - var(--nl-gouttiere) / 2) !important; min-width: 0; }
}
@media (min-width: 1600px) { .nl-scierie-sciage-rangee.e-con { --nl-gouttiere: 84px; } }
@media (min-width: 1025px) and (max-width: 1279px) {
	.nl-scierie-sciage.e-con { --e-global-typography-primary-font-size: min(3.875rem, 4.75vw); }
}
@media (max-width: 1599px) { .nl-scierie-sciage-texte br { display: none; } }

/* ---- Carte : retours à la ligne de la maquette (paragraphes d'accueil) */
@media (min-width: 1366px) { .nl-scierie-carte-p p { white-space: nowrap; } }
@media (max-width: 1365px) { .nl-scierie-carte-p br { display: none; } }

/* ---- CTA : « disponibilité et le tarif. » à la ligne (desktop), flux naturel en tablette/mobile */
@media (max-width: 1024px) { .nl-cta br { display: none; } }
