/* Tunnels Google Ads – 2 Temps Bâtiment
   Pages autonomes (sans CSS Elementor). Mobile d'abord. */

body.tb-tunnel {
	--tb-ink: #15191f;
	--tb-text: #2b323b;
	--tb-muted: #5b6573;
	--tb-line: #e2e6eb;
	--tb-soft: #f4f6f8;
	--tb-brand: #346979;
	--tb-brand-dark: #20444f;
	--tb-accent: #f9c206;
	--tb-accent-dark: #e3ae00;
	--tb-danger: #b42318;
	--tb-radius: 12px;
	--tb-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tb-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	margin: 0;
	background: #fff;
	color: var(--tb-text);
	font-family: var(--tb-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.tb-tunnel *,
.tb-tunnel *::before,
.tb-tunnel *::after { box-sizing: border-box; }

/* Règles de base à faible spécificité (:where) pour que les composants les surchargent. */
:where(.tb-tunnel) img { max-width: 100%; height: auto; display: block; }
:where(.tb-tunnel) a { color: var(--tb-brand); }
:where(.tb-tunnel) :is(h1, h2, h3) { font-family: var(--tb-head); color: var(--tb-ink); margin: 0; }
:where(.tb-tunnel) p { margin: 0; }
.tb-tunnel :focus-visible { outline: 3px solid var(--tb-accent); outline-offset: 2px; }

.tb-ico { width: 1.15em; height: 1.15em; flex: none; }

.tb-wrap { max-width: 1180px; margin: 0 auto; }
.tb-wrap--narrow { max-width: 820px; }

/* ---------- Bandeau ---------- */
.tb-top { background: #fff; border-bottom: 1px solid var(--tb-line); position: relative; z-index: 5; }
.tb-top__inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.tb-top__logo { display: flex; align-items: center; margin-right: auto; }
.tb-top__logo img { height: 40px; width: auto; }
.tb-top__badge { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tb-brand-dark); background: #eaf2f4; padding: 6px 12px; border-radius: 99px; }
.tb-top__badge .tb-ico { color: var(--tb-brand); }
.tb-top__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tb-head); font-weight: 600; font-size: 15px; color: #fff !important; background: var(--tb-brand); text-decoration: none; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.tb-top__tel:hover { background: var(--tb-brand-dark); }
.tb-top__tel-num { display: none; }

/* ---------- Héros ---------- */
.tb-hero { position: relative; background: #17262c; color: #fff; overflow: hidden; isolation: isolate; }
.tb-hero__bg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; z-index: -2; }
.tb-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 27, .86) 0%, rgba(14, 22, 27, .78) 55%, rgba(14, 22, 27, .9) 100%); }
.tb-hero__inner { max-width: 1180px; margin: 0 auto; padding: 26px 16px 32px; display: grid; gap: 24px; }
.tb-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--tb-ink); background: var(--tb-accent); padding: 5px 10px; border-radius: 6px; line-height: 1.35; }
.tb-hero__title { color: #fff; font-size: clamp(29px, 4.6vw, 50px); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; margin: 14px 0 12px; }
.tb-hero__lead { font-size: clamp(16px, 1.55vw, 19px); color: rgba(255, 255, 255, .9); max-width: 34em; }
.tb-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.tb-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tb-checks .tb-ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--tb-accent); color: var(--tb-ink); }
.tb-checks--dark li { color: var(--tb-ink); }
.tb-hero__call { display: none; margin-top: 22px; color: rgba(255, 255, 255, .8); }
.tb-hero__sep { margin: 0 4px 0 10px; opacity: .6; }
.tb-hero__call a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--tb-accent); }

/* ---------- Formulaire ---------- */
.tb-formcard { background: #fff; color: var(--tb-text); border-radius: 14px; border-top: 5px solid var(--tb-accent); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 20px 16px 18px; scroll-margin-top: 12px; }
.tb-formcard__title { font-size: 22px; line-height: 1.25; }
.tb-formcard__sub { color: var(--tb-muted); font-size: 14.5px; margin-top: 4px; }
.tb-alert { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fef3f2; border: 1px solid #fecdca; color: var(--tb-danger); font-size: 14.5px; font-weight: 600; }
.tb-form { margin-top: 16px; }
.tb-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tb-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tb-field label { font-size: 13.5px; font-weight: 600; color: var(--tb-ink); }
.tb-req { color: var(--tb-danger); }
.tb-opt { font-weight: 400; color: var(--tb-muted); }
.tb-field input,
.tb-field select,
.tb-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--tb-ink); background: #fff; border: 1px solid #c9d1da; border-radius: 8px; padding: 11px 12px; line-height: 1.35; min-height: 46px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; margin: 0; }
.tb-field select { background-image: linear-gradient(45deg, transparent 50%, var(--tb-muted) 50%), linear-gradient(135deg, var(--tb-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.tb-field textarea { resize: vertical; min-height: 84px; }
.tb-field input:focus,
.tb-field select:focus,
.tb-field textarea:focus { outline: none; border-color: var(--tb-brand); box-shadow: 0 0 0 3px rgba(52, 105, 121, .2); }
.tb-field input:user-invalid,
.tb-field select:user-invalid,
.tb-field [aria-invalid="true"] { border-color: var(--tb-danger); }
.tb-field__error { font-size: 13px; color: var(--tb-danger); }
.tb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tb-form__legal { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--tb-muted); }
.tb-form__legal a { color: var(--tb-muted); }

/* ---------- Boutons ---------- */
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--tb-head); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; border: 0; border-radius: 8px; padding: 14px 22px; cursor: pointer; transition: background-color .15s, transform .15s; }
.tb-btn--accent { background: var(--tb-accent); color: var(--tb-ink) !important; }
.tb-btn--accent:hover { background: var(--tb-accent-dark); }
.tb-btn--ghost { background: #fff; color: var(--tb-brand-dark) !important; border: 2px solid var(--tb-brand); }
.tb-btn--block { width: 100%; margin-top: 16px; padding: 16px 20px; font-size: 17px; }
.tb-btn:active { transform: translateY(1px); }
.tb-btn[disabled] { opacity: .75; cursor: progress; }

/* ---------- Sections ---------- */
.tb-section { padding: 52px 16px; }
.tb-section--soft { background: var(--tb-soft); }
.tb-h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin-bottom: 24px; }
.tb-note { margin-top: 14px; font-size: 13px; color: var(--tb-muted); }

.tb-benefits { display: grid; gap: 16px; }
.tb-benefit { background: #fff; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 22px; }
.tb-benefit__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: #fff4cc; color: #7a5b00; margin-bottom: 14px; }
.tb-benefit__icon .tb-ico { width: 24px; height: 24px; }
.tb-benefit h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.tb-benefit p { color: var(--tb-muted); }

.tb-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tb-gallery__item { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--tb-line); }
.tb-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tb-gallery__item figcaption { font-size: 13.5px; font-weight: 600; color: var(--tb-ink); padding: 9px 12px 11px; line-height: 1.35; }

.tb-solutions { display: grid; gap: 14px; }
.tb-solution { border-left: 4px solid var(--tb-accent); background: #fff; padding: 6px 0 6px 18px; }
.tb-solution h3 { font-size: 18px; margin-bottom: 4px; }
.tb-solution p { color: var(--tb-muted); }

.tb-split { display: grid; gap: 26px; align-items: center; }
.tb-split__media img { width: 100%; border-radius: var(--tb-radius); aspect-ratio: 4 / 3; object-fit: cover; }
.tb-split__copy > p { color: var(--tb-muted); margin-bottom: 16px; }
.tb-split__copy .tb-checks { margin: 0 0 24px; }

.tb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: none; }
.tb-step { position: relative; padding-left: 62px; }
.tb-step__num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--tb-brand); color: #fff; font-family: var(--tb-head); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.tb-step h3 { font-size: 18px; margin: 9px 0 4px; }
.tb-step p { color: var(--tb-muted); }

.tb-facts { background: var(--tb-brand-dark); color: #fff; padding: 34px 16px; }
.tb-facts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.tb-fact strong { display: block; font-family: var(--tb-head); font-size: 26px; line-height: 1.15; color: var(--tb-accent); }
.tb-fact span { font-size: 14px; color: rgba(255, 255, 255, .85); }

.tb-faq { border-top: 1px solid var(--tb-line); }
.tb-faq__item { border-bottom: 1px solid var(--tb-line); }
.tb-faq__item summary { list-style: none; cursor: pointer; font-family: var(--tb-head); font-weight: 600; font-size: 17px; color: var(--tb-ink); padding: 18px 40px 18px 0; position: relative; }
.tb-faq__item summary::-webkit-details-marker { display: none; }
.tb-faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--tb-brand); }
.tb-faq__item[open] summary::after { content: "–"; }
.tb-faq__item p { padding: 0 0 18px; color: var(--tb-muted); }

.tb-cta { background: var(--tb-brand); color: #fff; padding: 44px 16px; }
.tb-cta__inner { display: grid; gap: 20px; align-items: center; }
.tb-cta .tb-h2 { color: #fff; margin-bottom: 8px; }
.tb-cta p { color: rgba(255, 255, 255, .88); }
.tb-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.tb-cta__tel, .tb-cta__mail { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-family: var(--tb-head); font-weight: 700; font-size: 18px; text-decoration: none; }

.tb-foot { background: #0f1519; color: rgba(255, 255, 255, .72); font-size: 13.5px; padding: 26px 16px 96px; }
.tb-foot p + p { margin-top: 6px; }
.tb-foot a { color: rgba(255, 255, 255, .9); }

/* Barre d'action mobile */
.tb-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .14); transition: transform .25s ease; }
.tb-stickybar .tb-btn { padding: 13px 10px; font-size: 15.5px; }
.tb-stickybar.is-hidden { transform: translateY(110%); }

/* ---------- Merci ---------- */
.tb-merci { background: var(--tb-soft); padding: 40px 16px 56px; }
.tb-merci__box { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 16px; border-top: 5px solid var(--tb-accent); box-shadow: 0 16px 50px rgba(16, 24, 40, .1); padding: 32px 22px; text-align: center; }
.tb-merci__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #e3f4ea; color: #157a3b; align-items: center; justify-content: center; margin-bottom: 16px; }
.tb-merci__icon .tb-ico { width: 34px; height: 34px; }
.tb-merci__lead { color: var(--tb-muted); font-size: 17px; }
.tb-merci__next { text-align: left; margin: 26px auto 0; padding: 0 0 0 22px; max-width: 470px; display: grid; gap: 8px; }
.tb-merci__call { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--tb-line); }
.tb-merci__call p { margin-bottom: 12px; font-weight: 600; color: var(--tb-ink); }
.tb-merci__mail { margin-top: 14px; font-weight: 500 !important; }
.tb-merci__mail a { display: inline-flex; align-items: center; gap: 6px; color: var(--tb-ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--tb-accent); }
.tb-merci__back { margin-top: 22px; font-size: 14.5px; }
.tb-merci-page .tb-foot { padding-bottom: 26px; }

/* ---------- Tablette ---------- */
@media (min-width: 600px) {
	.tb-top__inner { padding: 12px 24px; }
	.tb-top__logo img { height: 46px; }
	.tb-top__tel-num { display: inline; }
	.tb-top__tel-short { display: none; }
	.tb-fields { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
	.tb-field--full { grid-column: 1 / -1; }
	.tb-formcard { padding: 26px 24px 22px; }
	.tb-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.tb-facts__grid { grid-template-columns: repeat(4, 1fr); }
	.tb-solutions { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
	.tb-section { padding: 64px 24px; }
}

@media (min-width: 760px) {
	.tb-top__badge { display: inline-flex; }
	.tb-benefits { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.tb-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
	.tb-step { padding-left: 0; padding-top: 60px; }
	.tb-cta__inner { grid-template-columns: 1fr auto; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 980px) {
	.tb-hero::after { background: linear-gradient(90deg, rgba(14, 22, 27, .9) 0%, rgba(14, 22, 27, .78) 48%, rgba(14, 22, 27, .45) 100%); }
	.tb-hero__inner { grid-template-columns: minmax(0, 1fr) 470px; gap: 56px; align-items: center; padding: 56px 24px 64px; }
	.tb-hero__call { display: block; }
	.tb-checks { gap: 10px; font-size: 17px; }
	.tb-split { grid-template-columns: 1fr 1fr; gap: 56px; }
	.tb-solutions { grid-template-columns: repeat(var(--tb-sol-cols, 3), 1fr); }
	.tb-variant-pro .tb-solutions { --tb-sol-cols: 4; }
	.tb-stickybar { display: none; }
	.tb-foot { padding-bottom: 26px; }
	.tb-section { padding: 80px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.tb-tunnel * { transition: none !important; }
	html { scroll-behavior: auto; }
}
html:has(body.tb-tunnel) { scroll-behavior: smooth; }
