/* Maison poteau-poutre (spec 04) : variantes des composants des prestations. */

/* ---- Hero : cadrage de chaque photo du diaporama, points plus haut (sous le chalet) */
.nl-hero .elementor-background-slideshow__slide[data-swiper-slide-index="0"] .elementor-background-slideshow__slide__image { background-position: 94% 49%; }
.nl-hero .elementor-background-slideshow__slide[data-swiper-slide-index="1"] .elementor-background-slideshow__slide__image { background-position: 38% 50%; }
.nl-hero .elementor-background-slideshow__slide[data-swiper-slide-index="2"] .elementor-background-slideshow__slide__image { background-position: 100% 63%; }
.nl-poteau-hero .nl-hero-points { bottom: 100px; }
@media (max-width: 1599px) { .nl-poteau-hero .nl-hero-points { bottom: 75px; } }
@media (max-width: 1024px) { .nl-poteau-hero .nl-hero-points { bottom: 72px; } }
@media (max-width: 767px) { .nl-poteau-hero .nl-hero-points { bottom: 84px; } }

/* ---- Accompagnement : 2 photos en quinconce (largeurs en % de la colonne, proportions de la maquette) */
.nl-poteau-photos .nl-poteau-ph1 { width: 86.2%; }
.nl-poteau-photos .nl-poteau-ph2 { width: 71.8%; }
.nl-poteau-photos .nl-photo img { width: 100%; height: auto; object-fit: cover; }
.nl-poteau-ph1 img { aspect-ratio: 592 / 391; object-position: 55% 7%; }
.nl-poteau-ph2 img { aspect-ratio: 493 / 326; object-position: 82% 58%; }
.nl-poteau-filigrane { pointer-events: none; }
/* Le SVG brut a le soleil en haut : la maquette le retourne. */
.nl-poteau-filigrane img { transform: scaleY(-1); }

/* Desktop : photo 2 plus petite, décalée de 192 px vers la droite (maquette 592×391 puis 494×326). */
@media (min-width: 1025px) {
	.nl-poteau-photos { --nl-u: min(calc(100vw / 1920), 1px); }
	.nl-poteau-photos .nl-poteau-ph1,
	.nl-poteau-photos .nl-poteau-ph2 { align-self: flex-start; flex-grow: 0; max-width: none; }
	.nl-poteau-photos .nl-poteau-ph1 { width: calc(592.2 * var(--nl-u)) !important; }
	.nl-poteau-photos .nl-poteau-ph2 { width: calc(493.5 * var(--nl-u)) !important; margin-left: calc(192 * var(--nl-u)); }
	.nl-poteau-hero .nl-pp-br-m { display: none; }
	.nl-poteau-hero .elementor-widget-heading.elementor-widget__width-initial { max-width: none !important; }
}

/* ---- Atouts : numéros alignés à droite dans une colonne qui contient « 10. », photos jusqu'au bord gauche de l'écran */
.nl-poteau-liste .nl-liste-num li { grid-template-columns: 60px 1fr; column-gap: 20px; font-size: 1.6875rem; }
.nl-poteau-liste .nl-liste-num li::before { font-size: 2.25rem; }
@keyframes nl-poteau-cascade {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}
/* Masqués seulement tant que la liste est sous le pli ; la classe est posée par socle.js. */
.nl-poteau-liste.nl-cascade-attente .nl-liste-num li { opacity: 0; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li {
	animation: nl-poteau-cascade .5s cubic-bezier(.22, .7, .25, 1) both;
}
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(2) { animation-delay: .09s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(3) { animation-delay: .18s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(4) { animation-delay: .27s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(5) { animation-delay: .36s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(6) { animation-delay: .45s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(7) { animation-delay: .54s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(8) { animation-delay: .63s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(9) { animation-delay: .72s; }
.nl-poteau-liste.nl-cascade-on .nl-liste-num li:nth-child(10) { animation-delay: .81s; }
@media (prefers-reduced-motion: reduce) {
	.nl-poteau-liste.nl-cascade-attente .nl-liste-num li,
	.nl-poteau-liste .nl-liste-num li { animation: none; opacity: 1; transform: none; }
}
.nl-poteau-atouts-photos.e-con { margin-top: 81px; width: min(950px, calc(53vw - 64px)); max-width: none; }
@media (min-width: 1600px) {
	.nl-poteau-atouts-photos.e-con { margin-left: calc(-114px - max(20px, (100vw - 1630px) / 2)) !important; }
}
@media (min-width: 1025px) and (max-width: 1599px) {
	.nl-poteau-liste .nl-liste-num li { grid-template-columns: 46px 1fr; column-gap: 14px; font-size: 1.25rem; }
	.nl-poteau-liste .nl-liste-num li::before { font-size: 1.6875rem; }
	.nl-poteau-atouts-photos.e-con { margin-top: 60px; width: min(630px, calc(53vw - 56px)); margin-left: calc(-40px - max(40px, (100vw - 1280px) / 2)) !important; }
}
@media (max-width: 1024px) {
	.nl-poteau-atouts-photos.e-con { margin-top: 48px; width: calc(100% + 40px); margin-left: -40px !important; }
	.nl-poteau-atouts-photos > .e-con { flex: 1 1 50%; }
}
@media (max-width: 767px) {
	.nl-poteau-liste .nl-liste-num li { grid-template-columns: 38px 1fr; column-gap: 10px; font-size: 1.0625rem; }
	.nl-poteau-liste .nl-liste-num li::before { font-size: 1.375rem; }
	.nl-poteau-atouts-photos.e-con { margin-top: 32px; width: calc(100% + 20px); margin-left: -20px !important; }
}

/* ---- Agrandir : titre espacé (maquette 3,87 px), étiquettes Avant / Après, retours de la maquette en desktop seulement */
.nl-poteau-agrandir h2.elementor-heading-title { letter-spacing: .048em; }
.nl-poteau-avap-item.e-con { position: relative; }
.nl-poteau-tag .elementor-heading-title { white-space: nowrap; }
@media (max-width: 1024px) {
	.nl-poteau-agrandir .elementor-widget-text-editor br { display: none; }
}
@media (min-width: 1025px) {
	.nl-poteau-agrandir .elementor-widget-text-editor { width: max-content !important; max-width: 100%; align-self: center; flex-grow: 0; }
	.nl-poteau-bois .e-con:has(> .e-con > .nl-photo) { align-items: center; }
}

/* ---- Étapes : en-tête et textes alignés sur x 209 (les étapes restent sur x 200) */
@media (min-width: 1600px) {
	.nl-poteau-etapes > .e-con-inner > .e-con { padding-left: 64px; }
}
/* Les deux lignes de texte se suivent sans espace (maquette). */
.nl-poteau-etapes > .e-con-inner > .e-con:nth-child(2) { --gap: 0px !important; --row-gap: 0px !important; }

/* Laptop : « du poteau-poutre » sur une ligne (le titre peut dépasser sa colonne, l'écart avec la liste le permet). */
@media (min-width: 1025px) and (max-width: 1599px) {
	.nl-poteau-atouts .nl-entete .elementor-widget-heading.elementor-widget__width-initial { max-width: none !important; min-width: var(--container-widget-width); }
}

/* Tablette : les 2 photos de l'accompagnement côte à côte (quinconce gardé), retours forcés de la liste masqués. */
@media (min-width: 768px) and (max-width: 1024px) {
	.nl-poteau-photos.e-con { flex-direction: row; align-items: flex-start; }
	.nl-poteau-photos .nl-poteau-ph1 { width: 54%; }
	.nl-poteau-photos .nl-poteau-ph2 { width: 40%; margin-top: 96px; }
}
@media (max-width: 1024px) {
	.nl-poteau-liste .nl-liste-num li br { display: none; }
	/* En-tête du carrousel aligné à gauche comme le filet (le bloc interne n'a pas d'alignement tablette). */
	.nl-projets .nl-entete.e-con { align-items: flex-start; }
}

/* CTA : titre de la page plus long que celui de l'accueil, sur 2 lignes comme la maquette (boîte de 820 px). */
@media (min-width: 1600px) {
	.nl-cta .elementor-widget-heading:has(h2) { width: 840px !important; max-width: 100%; --container-widget-width: 840px; }
}
/* Passe 2 : 1re photo du diaporama plus serrée (maquette : zoom 1,23, 94 % 49 %). Le hero est maintenant en vh : la photo (1920 × 761)
   doit toujours couvrir sa hauteur, sinon des bandes de la photo répétée apparaissent en haut et en bas (largeur mini = 200 vh). */
@media (min-width: 1025px) { .nl-hero .elementor-background-slideshow__slide[data-swiper-slide-index="0"] .elementor-background-slideshow__slide__image { background-size: max(123%, 200vh) auto !important; background-repeat: no-repeat !important; background-position: 94% 49% !important; } }
/* Passe 3 : hero mobile, voile maintenu sous le titre (feuillage clair derrière la 3e ligne). */
@media (max-width: 767px) {
	.nl-hero-page.e-con::before { background-image: linear-gradient(180deg, rgba(19,16,13,.55) 15%, rgba(19,16,13,.45) 65%, rgba(19,16,13,.25) 100%) !important; }
	.nl-hero-page h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .45); }
}
