/* WattNext Groupe Silicéo — simulateur */
.wng-app {
	--wng-bleu: #094F71; --wng-encre: #0B2433; --wng-jaune: #F9B104; --wng-brume: #EEF3F7; --wng-ligne: #D3DFE8; --wng-gris: #557083;
	--wng-radius: 14px;
	font-family: var(--wp--preset--font-family--body, "Figtree", "Segoe UI", system-ui, sans-serif);
	color: var(--wng-encre);
	background: #fff; border: 1px solid var(--wng-ligne); border-radius: 20px;
	max-width: 980px; margin: 0 auto; position: relative; overflow: hidden;
	box-shadow: 0 10px 40px rgba(11, 36, 51, .06);
}
.wng-app *, .wng-app *::before, .wng-app *::after { box-sizing: border-box; }
.wng-progress { height: 5px; background: var(--wng-brume); }
.wng-progress span { display: block; height: 100%; width: 0; background: var(--wng-jaune); transition: width .35s ease; }
.wng-form { padding: clamp(20px, 4vw, 44px); }
.wng-hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }
.wng-step { display: none; animation: wngIn .25s ease; }
.wng-step.is-active { display: block; }
@keyframes wngIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wng-h, .wng-q { font-family: var(--wp--preset--font-family--display, "Outfit", "Segoe UI", system-ui, sans-serif); color: var(--wng-encre); margin: 0 0 18px; line-height: 1.2; }
.wng-h { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; }
.wng-q { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; outline: none; }
.wng-lead { font-size: 18px; line-height: 1.55; color: #3c4b57; max-width: 680px; }
.wng-perks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.wng-perks li { padding-left: 30px; position: relative; font-size: 16px; }
.wng-perks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--wng-jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.wng-hint { color: var(--wng-gris); font-size: 15px; line-height: 1.5; margin: 0 0 14px; }

/* Choix */
.wng-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.wng-choices-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.wng-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px 20px; border: 2px solid var(--wng-ligne); border-radius: var(--wng-radius); background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wng-choice:hover, .wng-choice:focus-visible { border-color: var(--wng-bleu); box-shadow: 0 6px 18px rgba(9, 79, 113, .12); transform: translateY(-1px); outline: none; }
.wng-choice.is-selected { border-color: var(--wng-jaune); background: #FFFBF0; }
.wng-choice img { width: 100%; max-height: 90px; object-fit: contain; margin-bottom: 4px; }
.wng-choice-label { font-weight: 600; font-size: 16px; }
.wng-choice-sub { font-size: 14px; color: var(--wng-gris); line-height: 1.4; }

/* Boutons */
.wng-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding: 15px 28px; border: 0; border-radius: 999px; background: var(--wng-bleu); color: #fff; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s; }
.wng-btn:hover, .wng-btn:focus-visible { background: var(--wng-encre); color: #fff; }
.wng-btn[disabled] { background: #b7c6d1; cursor: not-allowed; }
.wng-btn-ghost { display: inline-flex; align-items: center; white-space: nowrap; padding: 12px 18px; border: 2px solid var(--wng-ligne); border-radius: 999px; background: #fff; color: var(--wng-bleu); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.wng-btn-ghost:hover { border-color: var(--wng-bleu); }
.wng-link { background: none; border: 0; padding: 0; color: var(--wng-bleu); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.wng-row-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.wng-nav { margin-top: 26px; border-top: 1px solid var(--wng-brume); padding-top: 14px; }
.wng-back { background: none; border: 0; color: var(--wng-gris); font: inherit; cursor: pointer; padding: 6px 0; }
.wng-back:hover { color: var(--wng-encre); }

/* Champs */
.wng-input { width: 100%; padding: 13px 14px; border: 2px solid var(--wng-ligne); border-radius: 10px; font: inherit; font-size: 16px; color: var(--wng-encre); background: #fff; }
.wng-input:focus { border-color: var(--wng-bleu); outline: none; box-shadow: 0 0 0 3px rgba(9, 79, 113, .12); }
.wng-unit-in { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wng-unit-in .wng-input { width: 160px; }
.wng-label { display: block; font-weight: 600; margin-bottom: 6px; }
.wng-address { position: relative; max-width: 720px; }
.wng-address-row { display: flex; gap: 10px; }
.wng-suggest { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--wng-ligne); border-radius: 10px; box-shadow: 0 10px 30px rgba(11, 36, 51, .15); }
.wng-suggest li { padding: 10px 14px; cursor: pointer; }
.wng-suggest li:hover, .wng-suggest li[aria-selected="true"] { background: var(--wng-brume); }
.wng-dims { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; }
.wng-dims label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.wng-ori-out { font-weight: 600; color: var(--wng-bleu); }
.wng-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.wng-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.wng-fields .wng-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .wng-fields { grid-template-columns: 1fr; } .wng-address-row { flex-direction: column; } }
.wng-civ { display: flex; gap: 20px; }
.wng-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #3c4b57; margin-top: 8px; }
.wng-consent input { margin-top: 3px; }
.wng-error { color: #b42318; background: #FEF3F2; border-radius: 8px; padding: 10px 14px; margin-top: 12px; }

/* Cartes */
.wng-map { height: 420px; border-radius: var(--wng-radius); margin: 16px 0 8px; border: 1px solid var(--wng-ligne); z-index: 0; }
@media (max-width: 640px) { .wng-map { height: 340px; } }
.wng-corner { width: 22px !important; height: 22px !important; border-radius: 50%; background: var(--wng-jaune); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .45); cursor: move; }
.wng-draw-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wng-draw-status { font-size: 14px; color: var(--wng-gris); }
.wng-howto { margin: 0 0 6px 18px; padding: 0; color: #3c4b57; }
.wng-schema { max-width: 420px; width: 100%; border-radius: var(--wng-radius); }
.wng-app:not(.is-neuf) .wng-if-neuf, .wng-app.is-neuf .wng-if-existant { display: none !important; }
.wng-app:not(.is-multi) .wng-pan-label { display: none; }

/* Chargement */
.wng-loading { text-align: center; padding: 60px 0; color: var(--wng-gris); }
.wng-spinner { display: inline-block; width: 46px; height: 46px; border: 4px solid var(--wng-brume); border-top-color: var(--wng-jaune); border-radius: 50%; animation: wngSpin .9s linear infinite; }
@keyframes wngSpin { to { transform: rotate(360deg); } }

/* Résultats */
.wng-rblock { border: 1px solid var(--wng-ligne); border-radius: var(--wng-radius); padding: 18px 20px; margin-bottom: 16px; }
.wng-rblock h4 { margin: 0 0 2px; font-size: 18px; color: var(--wng-bleu); }
.wng-reserve { margin: 0 0 12px; font-size: 13px; color: var(--wng-gris); font-style: italic; }
.wng-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.wng-stat { background: var(--wng-brume); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.wng-stat-l { font-size: 13px; color: var(--wng-gris); }
.wng-stat-v { font-family: var(--wp--preset--font-family--display, "Outfit", sans-serif); font-size: 22px; font-weight: 600; color: var(--wng-encre); }
.wng-stat-v small { font-size: 14px; font-weight: 500; color: var(--wng-gris); }
.wng-stat-s { font-size: 12px; color: var(--wng-gris); }
.wng-callout { border-radius: var(--wng-radius); padding: 16px 20px; background: #FFF6E0; border: 1px solid #F6D58A; margin-bottom: 16px; }
.wng-callout.is-ok { background: #EAF7EF; border-color: #A9DDBC; }
.wng-callout h4 { margin: 0 0 6px; }
.wng-callout p { margin: 0 0 6px; line-height: 1.5; }
.wng-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wng-cta .wng-btn { margin-top: 0; }
.wng-merci { font-weight: 600; color: #146C43; margin: 0; }
.wng-entity { color: var(--wng-gris); font-size: 13px; margin-top: 16px; }

/* Reprise d'une simulation commencée */
.wng-resume { background: #FFF6DF; border: 1px solid #F9D27A; border-radius: 14px; padding: 16px 18px; margin: 0 0 26px; }
.wng-resume p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.wng-resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wng-resume-actions .wng-link { margin: 0; }
