/* Menu « Solutions » en trois groupes, pages Filtres industriels et Dimensionner une gaine.
   Reprend la charte existante (main.css, depoussierage.css, ventilation.css). */

/* ---------- Menu déroulant Solutions ---------- */
.mega--sol { width: min(940px, 92vw); padding: 1rem 1rem .75rem; }
.mega__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.25rem; }
.mega__col + .mega__col { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.mega__title { margin: .35rem .8rem .5rem; color: var(--green); font-size: .7rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.mega__links + .mega__title { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__links a { display: block; padding: .6rem .8rem; border-radius: var(--radius-s); text-decoration: none; transition: background-color .2s; }
.mega__links a:hover { background: rgba(255, 255, 255, .05); }
.mega__links strong { display: block; color: #fff; font-weight: 600; font-size: .96rem; }
.mega__links em { display: block; margin-top: .1rem; color: var(--muted); font-style: normal; font-size: .82rem; line-height: 1.35; }
@media (max-width: 1100px) {
	.mega--sol { width: auto; padding: .5rem 0 1rem; }
	.mega__cols { display: block; }
	.mega__col + .mega__col { padding-left: 0; border-left: 0; }
	.mega__title { margin: 1rem 0 .3rem; }
	.mega__links + .mega__title { padding-top: 0; border-top: 0; }
	.mega__links a { padding: .5rem 0; }
	.mega__links em { display: none; }
	.mega__links strong { color: inherit; }
}

/* ---------- Page Filtres industriels ---------- */
.filt-page .vent-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.filt-page .vent-tile { justify-content: flex-start; }
.filt-page .vent-tile p { margin: .35rem 0 0; color: #5b675e; font-size: .86rem; line-height: 1.45; }
.filt-page .vent-tile .vent-ico { width: 84px; height: 84px; }
.filt-block--dust { background: #f4f5f0; }
.filt-block--air { background: #fff; }
.filt-block--classes { background: #eef1ea; }
.filt-block--id { background: #fff; }
.filt-steps { counter-reset: filt; }
.filt-steps li { counter-increment: filt; }
.filt-steps li span::before { content: counter(filt, decimal-leading-zero) " · "; }
.filt-faq { max-width: 860px; margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.filt-faq details { border-top: 1px solid #dfe5d8; }
.filt-faq details:last-child { border-bottom: 1px solid #dfe5d8; }
.filt-faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; color: #1c251e; }
.filt-faq details p { margin: 0 0 1.2rem; color: #526055; line-height: 1.65; }
@media (max-width: 1100px) { .filt-page .vent-tiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .filt-page .vent-tiles--5, .filt-page .vent-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Outil : dimensionner une gaine ---------- */
.duct-modes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.duct-modes label { cursor: pointer; }
.duct-modes input { position: absolute; opacity: 0; pointer-events: none; }
.duct-modes span { display: block; padding: .6rem 1.05rem; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; color: var(--muted); font-weight: 550; font-size: .95rem; transition: color .2s, border-color .2s, background-color .2s; }
.duct-modes input:checked + span { color: #10140f; background: var(--green); border-color: var(--green); }
.duct-modes input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.duct-tool [hidden] { display: none !important; }
.duct-std { width: 100%; margin-top: 1.4rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.duct-std th, .duct-std td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: right; font-size: .93rem; }
.duct-std th:first-child, .duct-std td:first-child { text-align: left; }
.duct-std thead th { color: var(--muted); font-weight: 500; font-size: .8rem; }
.duct-std tr.is-pick td { color: var(--text); font-weight: 650; }
.duct-std tr.is-pick td:first-child { color: var(--green); }
.duct-std td { color: var(--muted); }
.duct-flag { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.duct-flag--ok { background: rgba(140, 182, 0, .16); color: var(--green); }
.duct-flag--low { background: rgba(230, 160, 40, .16); color: #e6b04a; }
.duct-flag--high { background: rgba(255, 255, 255, .08); color: var(--muted); }
.duct-note { margin: 1.2rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.duct-ref { overflow-x: auto; }
.duct-ref table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.duct-ref th, .duct-ref td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: right; }
.duct-ref th:first-child, .duct-ref td:first-child { text-align: left; font-weight: 650; color: var(--text); }
.duct-ref thead th { color: var(--muted); font-size: .82rem; font-weight: 500; }
.duct-ref td { color: var(--muted); }

/* ---------- Page Solutions : produits, fournitures et outils ---------- */
.sol-catalog { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.sol-catalog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.sol-catalog__grid a { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.5rem 1.7rem; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-s); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s; }
.sol-catalog__grid a:hover { border-color: var(--green); transform: translateY(-2px); }
.sol-catalog__grid strong { display: block; margin-bottom: .45rem; color: var(--text); font-size: 1.15rem; letter-spacing: -.02em; }
.sol-catalog__grid span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.sol-catalog__grid i { margin-top: auto; padding-top: 1.1rem; color: var(--green); font-style: normal; }
@media (max-width: 1000px) { .sol-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sol-catalog__grid { grid-template-columns: 1fr; } }

/* Ajustements */
.filt-page .vent-split__intro h2 { font-size: clamp(2.1rem, 3.1vw, 3.1rem); overflow-wrap: normal; }
.filt-page .vent-split { align-items: start; }
.es-card-link { color: inherit; text-decoration: none; }
.es-card-link:hover { color: var(--green, #9cc500); }
.es-card-link::after { content: ""; position: absolute; inset: 0; }
.es-card { position: relative; }
@media (max-width: 900px) { .filt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .filt-steps { grid-template-columns: 1fr !important; } }
.duct-stdwrap { overflow-x: auto; }
.duct-std th, .duct-std td { white-space: nowrap; }

/* Tableau des vitesses de transport (INRS ED 695) */
.duct-ref--text th, .duct-ref--text td { text-align: left; vertical-align: top; }
.duct-ref--text td:last-child, .duct-ref--text thead th:last-child { text-align: right; white-space: nowrap; color: var(--text); font-weight: 650; }
.duct-ref--text thead th:last-child { font-weight: 500; color: var(--muted); }
.duct-ref--text th:first-child { min-width: 11rem; }
.duct-ref + .small { margin-top: 1rem; }

/* Liste de gaines et raccords */
.duct-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.duct-list { margin-top: 2rem; }
.duct-rows { display: grid; gap: .9rem; }
.duct-row { display: grid; grid-template-columns: 112px 1.5fr 1fr 1fr 1fr .9fr 44px; gap: .8rem; align-items: end; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.duct-row .field label { margin-bottom: 0; }
.duct-row .field select, .duct-row .field input { margin-top: .45rem; }
.duct-row .is-off { visibility: hidden; }
.duct-sprite { position: absolute; }
.duct-row[data-n="0"] [data-dfield] { display: none; }
.duct-row__note { grid-column: span 3; }
.duct-row__note.is-off { display: none; }
.duct-list .file { width: 100%; }
.duct-list .file + .small { margin: .5rem 0 0; }
.duct-row__pic { width: 112px; height: 84px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--text); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.duct-row__pic text, .duct-sprite text { fill: #9bc400; stroke: none; font-size: 10px; font-weight: 700; }
.duct-row__del { width: 44px; height: 44px; margin-bottom: .3rem; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.duct-row__del:hover, .duct-row__del:focus-visible { color: var(--text); border-color: var(--text); }
.duct-list__bar { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 900px) {
	.duct-row { grid-template-columns: 112px 1fr 1fr; }
	.duct-row__type { grid-column: 2 / -1; }
	.duct-row .field:not(.duct-row__type) { grid-column: span 1; }
	.duct-row .is-off { display: none; }
	.duct-row__del { grid-column: 1 / -1; justify-self: end; margin: 0; }
}
@media (max-width: 520px) {
	.duct-row { grid-template-columns: 96px 1fr 1fr; }
	.duct-row__pic { width: 96px; height: 72px; }
	.duct-row .field:not(.duct-row__type) { grid-column: span 3; }
	.duct-row[data-n="1"] .field:not(.duct-row__type), .duct-row .field:not(.duct-row__type):last-of-type { grid-column: span 3; }
}
/* Bouton contour sur fond clair (pages solutions) */
.dust-btn--dark { color: #10150b; border-color: rgba(16,21,11,.35); background: transparent; }
.dust-btn--dark:hover { border-color: #10150b; background: rgba(16,21,11,.06); }
.vent-split__intro .dust-btn + .dust-btn { margin: .7rem 0 0; }

/* Rappel téléphonique */
.callback__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 860px) { .callback__grid { grid-template-columns: 1fr; } }
/* Barre d'appel fixe, mobile uniquement */
.callbar { display: none; }
@media (max-width: 760px) {
	.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(21, 26, 25, .96); border-top: 1px solid rgba(255, 255, 255, .12); }
	.callbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 .9rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: .95rem; font-weight: 650; text-decoration: none; }
	.callbar__btn--main { border-color: transparent; background: #9bc400; color: #10150b; }
	body.has-callbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	body.has-callbar .ck { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media print { .callbar { display: none !important; } }
.callback input[type="date"] { font: inherit; min-height: 58px; color-scheme: dark; }
