/* ==========================================================================
   Nua'Kids — pages services (gabarit « Espace accueil »)
   Chargé sur les pages qui contiennent un conteneur de classe sv-hero (+ styles et JS de la home).
   Classes : sv-* (sections), gx-* (gamme), tf-* (tout-en-un). Retirer une classe coupe l'effet lié.
   ========================================================================== */

/* ---------- Fil d'Ariane ---------- */
.sv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--e-global-color-text); }
.sv-crumbs a { color: var(--e-global-color-text); text-decoration: none; }
.sv-crumbs a:hover { color: var(--e-global-color-primary); text-decoration: underline; text-decoration-color: var(--e-global-color-secondary); text-underline-offset: 4px; }
.sv-crumbs [aria-current] { color: var(--e-global-color-primary); font-weight: 600; }

/* ---------- Hero ---------- */
.sv-hero { position: relative; isolation: isolate; }
/* Ligne nuage décorative en fond (remplace le widget HTML « Ligne nuage ») */
.sv-lined::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2400 700' preserveAspectRatio='xMidYMax slice'%3E%3Cpath d='M -40 600 L 520 600 C 640 600 680 540 760 530 C 780 450 900 430 940 500 C 980 440 1080 450 1080 520 C 1140 520 1170 560 1160 600 L 2440 600' fill='none' stroke='%23FCBE41' stroke-width='3' stroke-linecap='round' opacity='0.35'/%3E%3C/svg%3E") center bottom / cover no-repeat; }
.sv-lined > .e-con-inner, .sv-lined > .e-con { position: relative; z-index: 1; }
.sv-hero-line { position: absolute !important; inset: 0; width: auto !important; z-index: 0; pointer-events: none; margin: 0 !important; }
.sv-hero-line svg { z-index: 0 !important; }
.sv-hero > .e-con-inner > .e-con, .sv-hero > .e-con { position: relative; z-index: 1; }
.sv-badge .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #FFFFFF; }
.sv-badge .sv-num { width: 24px; height: 24px; border-radius: 50%; background: var(--e-global-color-accent); display: grid; place-items: center; font-family: 'Fredoka', sans-serif; font-size: 11px; font-weight: 600; }
.sv-media { position: relative; }
.sv-photo, .sv-photo .elementor-widget-container { border-radius: 36px; overflow: hidden; }
.sv-photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 36px; }
.sv-sun { position: absolute !important; top: -34px; left: -34px; width: 104px !important; z-index: 3; margin: 0 !important; pointer-events: none; }
.sv-sun img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(252, 190, 65, .3)); }
.sv-sticker { position: absolute !important; right: 8px; bottom: -22px; width: auto !important; z-index: 3; margin: 0 !important; }
.sv-sticker > div, .sv-sticker .elementor-widget-container > div { position: static !important; }
@media (max-width: 767px) { .sv-sun { width: 76px !important; top: -22px; left: -10px; } .sv-sticker { right: 50%; transform: translateX(50%); } }
.nk-js .sv-hero .sv-h { opacity: 0; }

/* ---------- Intro (variante) : produit détouré qui flotte sur une forme à la couleur de l'espace ---------- */
/* --sv-c = couleur de l'espace, posée dans le CSS de chaque page (même couleur que le hero) */
.sv-intro p { margin: 0; }
/* 1er paragraphe : chapô éditorial (police des titres), ouvert par un trait pointillé comme l'orbite */
.sv-intro .sv-lead { padding-top: 26px; position: relative; }
.sv-intro .sv-lead::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #78C4CE 0 10px, transparent 10px 18px); }
.sv-intro .sv-lead p { font-family: 'Fredoka', sans-serif !important; font-weight: 400 !important; font-size: 22px !important; line-height: 1.5 !important; letter-spacing: -0.005em; color: var(--e-global-color-primary); }
@media (max-width: 767px) { .sv-intro .sv-lead p { font-size: 19px !important; } }
/* Mots en gras de la rédaction : fin soulignement jaune */
.sv-intro strong { font-weight: 600 !important; background: linear-gradient(transparent 78%, rgba(255, 214, 117, .9) 78%, rgba(255, 214, 117, .9) 94%, transparent 94%); }
.sv-iv { position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin-inline: auto; }
.sv-iv-deco { position: absolute !important; inset: 0; width: auto !important; margin: 0 !important; pointer-events: none; }
.sv-iv-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sv-iv-blob { fill: var(--sv-c, #FFF4D9); transform-origin: 50% 50%; animation: svBlob 12s ease-in-out infinite; }
.sv-iv-orbit { fill: none; stroke: #78C4CE; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .012 .016; opacity: .75; animation: svDash 14s linear infinite; }
.sv-iv-ball { transform-box: fill-box; transform-origin: center; animation: svBob 4s ease-in-out infinite; }
.sv-iv-ball.b1 { fill: #FFD675; } .sv-iv-ball.b2 { fill: #78C4CE; animation-delay: -1s; } .sv-iv-ball.b3 { fill: #C9DDB4; animation-delay: -2s; } .sv-iv-ball.b4 { fill: #F6C3C6; animation-delay: -3s; }
.sv-iv-prod { position: absolute !important; left: 50%; top: 50%; width: 76% !important; margin: 0 !important; transform: translate(-50%, -54%); z-index: 1; }
.sv-iv-prod img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 22px rgba(46, 42, 42, .22)); animation: svFloat 5s ease-in-out infinite; }
.sv-iv:hover .sv-iv-prod img { animation-play-state: paused; }
.sv-iv-prod img[src*="placeholder"] { border-radius: 24px; } /* en attendant le produit détouré */
@keyframes svFloat { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes svBob { 50% { transform: translateY(-12px); } }
@keyframes svDash { to { stroke-dashoffset: -1; } }
@keyframes svBlob { 50% { transform: scale(1.04) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .sv-iv-blob, .sv-iv-orbit, .sv-iv-ball, .sv-iv-prod img { animation: none; } }

/* ---------- Rituel (4 gestes) ---------- */
@media (max-width: 767px) {
	.sv-ritual > svg { display: none; }
	.sv-ritual ol { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 28px !important; }
}

/* ---------- Pastilles / libellés ---------- */
.sv-pill .elementor-heading-title { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #FFFFFF; }

/* ---------- Gamme : vitrine (widget HTML) + liste dépliante (conteneurs natifs) ---------- */
@media (min-width: 1025px) { .gx-stage-w { position: sticky !important; top: calc(var(--nk-top, 110px) + 24px); align-self: flex-start; } }
.gx-stage-w .gx-stage { width: 100%; }
.gx button, .tf-card button { border: 0 !important; box-shadow: none; font-family: inherit; }
.gx .gx-dot { padding: 0 !important; height: 10px; cursor: pointer; }
.gx-it { position: relative; border-radius: 24px; overflow: hidden; background-color: rgba(255, 255, 255, 0); }
.gx-it.is-on { background-color: #FFFFFF; }
.gx-it .elementor-heading-title { margin: 0; }
.gx-btn { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px !important; background: none !important; color: var(--e-global-color-primary) !important; cursor: pointer; text-align: left; font: inherit !important; line-height: 1.2; border-radius: 0 !important; }
.gx-btn:focus-visible { outline: 3px solid #2E7F8B; outline-offset: -3px; }
.gx-n { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gx-c, #FFEFC6); display: grid; place-items: center; font-family: 'Fredoka', sans-serif; font-size: 14px; font-weight: 600; }
.gx-t { flex: 1; }
.gx-plus { flex: none; transition: transform .4s; }
.gx-it.is-on .gx-plus { transform: rotate(45deg); }
.gx-p { overflow: hidden; }
.gx-p p { margin: 0; padding: 0 24px 24px 74px; }
.nk-js .gx:not(.gx-ready) .gx-it:not(.is-on) .gx-p { height: 0; }
.gx-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gx-c, #FFEFC6); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@media (max-width: 767px) { .gx-p p { padding: 0 18px 20px 18px; } }

/* ---------- Tout-en-un : carte à onglets (widget HTML) ---------- */
.tf-card-w .tf-card { width: 100%; }
.tf-card .tf-tab { cursor: pointer; padding: 10px 20px !important; font-weight: 600; }
.tf-card .tf-tab[aria-selected="true"] { background: #2E2A2A !important; color: #FFFFFF !important; }
.tf-card .tf-tab[aria-selected="false"] { background: #FFFFFF !important; color: #2E2A2A !important; }
.tf-card .tf-tab:focus-visible { outline: 3px solid #2E7F8B; outline-offset: 2px; }
.sv-feat { position: relative; isolation: isolate; overflow: hidden; }
.sv-feat-deco { position: absolute !important; inset: 0; width: auto !important; z-index: 0; pointer-events: none; margin: 0 !important; }
.sv-feat > .e-con-inner > .e-con, .sv-feat > .e-con { position: relative; z-index: 1; }

/* ---------- Cartes HPL / personnalisation / accompagnement ---------- */
.sv-pt { height: 100%; }
.sv-pt .elementor-widget-text-editor p { margin: 0; }

/* ---------- Proximité : villes en pastilles ---------- */
.sv-cities .elementor-icon-list-items { gap: 8px; margin: 0 !important; }
.sv-cities .elementor-icon-list-item { margin: 0 !important; padding: 10px 16px !important; border-radius: 999px; background: #FFFFFF; }
.sv-cities .elementor-icon-list-item:first-child { background: var(--e-global-color-accent); }
.sv-cities .elementor-icon-list-item::after, .sv-cities .elementor-icon-list-icon { display: none !important; }
.sv-cities .elementor-icon-list-text { padding: 0 !important; }

/* ---------- CTA final : questions dans des nuages ---------- */
.sv-q { position: relative; isolation: isolate; aspect-ratio: 1.3; max-width: 340px; text-align: center; }
.sv-q::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sv-cloud) center / 100% 100% no-repeat; }
.sv-q p { margin: 0; }
@media (max-width: 767px) { .sv-q { max-width: 300px; } }

/* ===== Version widgets natifs : décors en CSS ===== */
/* Visuel d'intro : forme (couleur --sv-c), orbite pointillée et billes */
.sv-iv { isolation: isolate; }
.sv-iv::before { content: ""; position: absolute; inset: 8% 6% 6% 8%; z-index: -1; border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; background: var(--sv-c, #CFEAEE); animation: svBlob 12s ease-in-out infinite; }
.sv-iv::after { content: ""; position: absolute; left: 3%; right: 3%; top: 54%; height: 26%; z-index: 0; pointer-events: none; border: 3px dashed rgba(120, 196, 206, .75); border-radius: 50%;
	background: radial-gradient(circle at 3% 45%, #FFD675 0 10px, transparent 11px), radial-gradient(circle at 97% 28%, #78C4CE 0 8px, transparent 9px), radial-gradient(circle at 66% 97%, #C9DDB4 0 9px, transparent 10px); animation: svBob 5s ease-in-out infinite; }
/* Vitrine de la gamme */
.gx-stage { position: relative; isolation: isolate; aspect-ratio: 11 / 10; min-height: 420px; }
@media (min-width: 1025px) { .gx-stage { position: sticky !important; top: calc(var(--nk-top, 110px) + 24px); align-self: flex-start; } }
.gx-stage::before { content: ""; position: absolute; left: 14%; right: 14%; top: 24%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .4); z-index: -1; }
/* Chiffre en contour : trait 4 px peint SOUS un remplissage couleur du fond (--gx-fill, posé par le JS)
   → contour visible de 2 px, sans les traits intérieurs de la police variable (chevauchements du « 1 ») */
.gx-num .elementor-heading-title { color: var(--gx-fill, transparent) !important; -webkit-text-stroke: 4px #2E2A2A; paint-order: stroke fill; }
.gx-ill { position: absolute !important; left: 9%; right: 9%; top: 22%; bottom: 17%; width: auto !important; margin: 0 !important; }
.gx-ill .elementor-widget-container, .gx-ill img { width: 100%; height: 100%; }
.gx-ill img { object-fit: cover; border-radius: 28px; }
.gx-stage .gx-ill ~ .gx-ill { opacity: 0; }
.gx-stk { position: absolute !important; inset: 0; width: auto !important; margin: 0 !important; pointer-events: none; z-index: 2; }
.gx-stage .gx-stk ~ .gx-stk { visibility: hidden; }
.gx-stk .elementor-icon-list-items { display: block !important; margin: 0 !important; }
.gx-stk .elementor-icon-list-item { position: absolute !important; margin: 0 !important; padding: 8px 14px !important; border-radius: 999px; background: #FFFFFF; box-shadow: 0 10px 24px -14px rgba(46, 42, 42, .45); }
.gx-stk .elementor-icon-list-item::after, .gx-stk .elementor-icon-list-icon { display: none !important; }
.gx-stk .elementor-icon-list-item:nth-child(1) { top: 14%; right: 5%; transform: rotate(4deg); }
.gx-stk .elementor-icon-list-item:nth-child(2) { top: 45%; left: 3%; transform: rotate(-6deg); }
.gx-stk .elementor-icon-list-item:nth-child(3) { bottom: 13%; right: 7%; transform: rotate(-3deg); }
.gx-dots { position: absolute !important; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); z-index: 3; }
.gx-dots .gx-dot { width: 10px; flex: none; }
.gx-dot { width: 10px; height: 10px; margin: 0 !important; border-radius: 999px; background: rgba(46, 42, 42, .2); cursor: pointer; }
.gx-dots .gx-dot:first-child { width: 28px; background: #2E2A2A; }
.gx-dot .elementor-icon-wrapper { display: none; }
/* Produit phare : visuel unique */
.tf-fig img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
/* Nuages blancs du bloc « produit phare » (remplace le widget HTML) */
.sv-clouds::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201400%20800%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%0A%3Cg%20transform%3D%22translate(470%2040)%20scale(1.1)%22%3E%3Cpath%20d%3D%22M40%2060%20c-22%200%20-30%20-26%20-12%20-34%20c-4%20-28%2034%20-38%2048%20-18%20c12%20-22%2054%20-16%2054%2012%20c22%200%2026%2040%200%2040%20Z%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(1180%20620)%20scale(1.1)%22%3E%3Cpath%20d%3D%22M40%2060%20c-22%200%20-30%20-26%20-12%20-34%20c-4%20-28%2034%20-38%2048%20-18%20c12%20-22%2054%20-16%2054%2012%20c22%200%2026%2040%200%2040%20Z%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%3C%2Fg%3E%0A%3Cg%20transform%3D%22translate(560%20690)%20scale(0.8)%22%3E%3Cpath%20d%3D%22M40%2060%20c-22%200%20-30%20-26%20-12%20-34%20c-4%20-28%2034%20-38%2048%20-18%20c12%20-22%2054%20-16%2054%2012%20c22%200%2026%2040%200%2040%20Z%22%20fill%3D%22%23FFFFFF%22%20opacity%3D%220.7%22%3E%3C%2Fpath%3E%3C%2Fg%3E%0A%3Ccircle%20cx%3D%221330%22%20cy%3D%2270%22%20r%3D%22120%22%20fill%3D%22%23CFEAEE%22%3E%3C%2Fcircle%3E%0A%3C%2Fsvg%3E") center / cover no-repeat; }

/* Étiquette du hero (Liste d'icônes) */
.sv-sticker .elementor-icon-list-items { gap: 8px; margin: 0 !important; }
.sv-sticker .elementor-icon-list-item { margin: 0 !important; padding: 8px 14px !important; border-radius: 999px; background: #FFEFC6; }
.sv-sticker .elementor-icon-list-item:nth-child(2) { background: #CFEAEE; }
.sv-sticker .elementor-icon-list-item:nth-child(3) { background: #FBE3E5; }
.sv-sticker .elementor-icon-list-item::after, .sv-sticker .elementor-icon-list-icon { display: none !important; }
/* Rituel : pointillés derrière les pictos */
.sv-ritual { position: relative; }
.sv-ritual .sv-step:not(:last-child)::after { content: ""; position: absolute; top: 37px; left: calc(50% + 44px); width: calc(100% - 68px); border-top: 3px dashed #78C4CE; z-index: -1; }
.sv-ritual .sv-step { position: relative; z-index: 1; }
@media (max-width: 767px) { .sv-ritual .sv-step::after { display: none; } }
/* Onglets « tout-en-un » (widget Onglets) */
.tf-tabs .e-n-tabs-heading { gap: 6px !important; padding: 6px; border-radius: 999px; background: #E6F4F6; width: fit-content; max-width: 100%; flex-wrap: wrap; margin-bottom: 18px; }
.tf-tabs .e-n-tab-title { border: 0 !important; border-radius: 999px !important; background: #FFFFFF !important; color: #2E2A2A !important; padding: 10px 20px !important; font: 600 15px 'DM Sans', sans-serif !important; }
.tf-tabs .e-n-tab-title[aria-selected="true"] { background: #2E2A2A !important; color: #FFFFFF !important; }
.tf-tabs .e-n-tabs-content > .e-con { padding: 0 !important; border: 0 !important; }
.tf-fig--wide img { aspect-ratio: 9 / 4; }

/* ---------- Tableau des tailles (page Chaises) ---------- */
.sv-table-wrap .elementor-widget-container { overflow-x: auto; }
.sv-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; border-radius: 18px; overflow: hidden; background: #FFFFFF; border: 2px solid #2E2A2A; font-size: 15px; }
.sv-table th, .sv-table td { padding: 12px 16px; text-align: left; border: 0; border-bottom: 1px solid rgba(46, 42, 42, .12); }
.sv-table thead th { background: #FFD675; color: #2E2A2A; border-bottom: 2px solid #2E2A2A; }
.sv-table th strong { font-weight: 600; }
.sv-table tbody tr:last-child td { border-bottom: 0; }
.sv-table tbody > tr:nth-child(odd) > td, .sv-table tbody > tr:hover > td { background: #FFFFFF; }
.sv-table tbody > tr:nth-child(even) > td { background: #FFF8E6; }
