/* Feuille différée : ne sert qu'après une action ou après le chargement (étapes 2 à 4 du tunnel, visionneuse,
   menu mobile, décor du chantier). Elle ne bloque pas l'affichage. */
.tt-mnav { max-height:calc(100dvh - 58px); padding:6px 22px 24px; overflow-y:auto; box-shadow:0 24px 30px -22px #0a0e1473; }
.tt-mnav[hidden] { display:none; }
.tt-mnav__lien { border:0; border-bottom:1px solid var(--tt-trait); width:100%; min-height:54px; font-family:var(--tt-titre); text-align:left; cursor:pointer; background:0 0; justify-content:space-between; align-items:center; padding:12px 2px; font-size:15px; text-decoration:none; display:flex; }
.tt-mnav__lien.is-on { color:var(--tt-bleu); }
.tt-mnav__lien svg { width:16px; height:16px; transition:transform .2s var(--tt-e); }
.tt-mnav__lien[aria-expanded=true] svg { transform:rotate(180deg); }
.tt-mnav__sous { border-bottom:1px solid var(--tt-trait); gap:1px; padding:6px 0 10px; display:grid; }
.tt-mnav__sous[hidden] { display:none; }
.tt-mnav__sous a { align-items:center; gap:11px; min-height:46px; padding:10px 8px; font-size:15px; font-weight:700; text-decoration:none; display:flex; }
.tt-mnav__sous a svg { width:20px; height:20px; }
.tt-mnav__cta { gap:10px; margin-top:20px; display:grid; }
.tt-mnav__cta .tt-btn { width:100%; }
@media (width>=1101px) {
.tt-mnav { display:none!important; }
}
.tt-lb { z-index:200; background:#060a12f2; justify-content:center; align-items:center; display:flex; position:fixed; inset:0; }
.tt-lb[hidden] { display:none; }
.tt-lb img { object-fit:contain; border:3px solid #fff; max-width:92vw; max-height:86vh; }
.tt-lb__x, .tt-lb__nav { background:var(--tt-bleu); color:#fff; cursor:pointer; border:0; border-radius:2px; justify-content:center; align-items:center; transition:background .2s; display:flex; position:absolute; }
.tt-lb__x { width:46px; height:46px; top:20px; right:20px; }
.tt-lb__x svg { width:22px; height:22px; }
.tt-lb__nav { width:50px; height:50px; top:50%; transform:translateY(-50%); }
.tt-lb__nav svg { width:26px; height:26px; }
.tt-lb__prev { left:18px; }
.tt-lb__next { right:18px; }
.tt-lb__x:hover, .tt-lb__nav:hover { background:var(--tt-bleu-f); }
.tt-lb__count { color:#cbd5e6; font-size:14px; font-weight:700; position:absolute; bottom:20px; left:50%; transform:translate(-50%); }
.tt-devis__champ { margin-bottom:10px; position:relative; }
.tt-devis__champ input, .tt-devis__champ textarea { width:100%; font:inherit; color:#1b2a4a; background:#f9fafb; border:1.5px solid #e5e7eb; border-radius:4px; padding:22px 15px 9px; font-size:16px; font-weight:600; }
.tt-devis__champ textarea { resize:vertical; min-height:92px; display:block; }
.tt-devis__champ input:focus, .tt-devis__champ textarea:focus { border-color:var(--tt-bleu); box-shadow:0 6px 18px -8px rgba(var(--tt-bleu-rgb), .8); background:#fff; outline:none; }
.tt-devis__champ label { color:#6b7280; pointer-events:none; transform-origin:0 0; transition:transform .3s var(--tt-e), color .2s; font-size:15px; font-weight:500; position:absolute; top:16px; left:16px; }
.tt-devis__champ input:focus+label, .tt-devis__champ input.has+label, .tt-devis__champ textarea:focus+label, .tt-devis__champ textarea.has+label { color:var(--tt-bleu); transform:translateY(-9px)scale(.76); }
.tt-devis__champ.err input, .tt-devis__champ.err textarea { background:#fef2f2; border-color:#dc2626; }
.tt-devis__piege { opacity:0; width:1px; height:1px; position:absolute; left:-9999px; }
.tt-devis__b { color:#fff; cursor:pointer; width:100%; transition:filter .15s, transform .18s var(--tt-e), box-shadow .18s; border:0; border-radius:4px; justify-content:center; align-items:center; gap:10px; margin-top:10px; padding:16px; font-size:16px; font-weight:700; text-decoration:none; display:flex; position:relative; overflow:hidden; }
.tt-devis__b svg { stroke-width:2.2px; width:20px; height:20px; }
.tt-devis__b:hover { filter:brightness(1.06); transform:translateY(-2px); box-shadow:0 16px 30px -12px #0f172a66; }
.tt-devis__b.load { pointer-events:none; opacity:.85; }
.tt-devis__b.echec { background:#dc2626; }
.tt-devis__note { color:#6b7280; text-align:center; margin:14px 0 0; font-size:12.5px; line-height:1.6; }
.tt-devis__erreur { color:#b42318; text-align:center; margin:10px 0 0; font-size:14px; font-weight:700; }
.tt-devis__ok { text-align:center; padding:10px 0 4px; }
.tt-devis__ok>svg { color:#16a34a; stroke-width:3px; width:70px; height:70px; margin:0 auto 14px; display:block; }
.tt-devis__ok>svg circle { stroke-dasharray:207; stroke-dashoffset:207px; animation:tt-trace .6s var(--tt-e) forwards; }
.tt-devis__ok>svg path { stroke-dasharray:40; stroke-dashoffset:40px; animation:tt-trace .32s var(--tt-e) .4s forwards; }
@media (width<=640px) {
.tt-lb__nav { width:42px; height:42px; }
}
.tt-mnav { border-top:1px solid var(--filet); background:#0e1218; }
.tt-mnav__lien { color:#fff; border-color:var(--filet); }
.tt-mnav__lien svg { color:var(--tt-bleu-c); }
.tt-mnav__sous a { color:var(--t2); }
.tt-mnav__sous a svg { color:var(--tt-bleu-c); }
.tt-mnav__cta .tt-btn--sombre { background:#1a2230; }
.tt-mnav__lien { letter-spacing:-.005em; font-weight:500; }
.tt-devis__b--msg { background:linear-gradient(#4a649f,#2e4273); }
.tt-devis__b--tel { color:#2e4273; background:#fff; box-shadow:inset 0 0 0 1.5px #2e4273; }
.tt-devis__rassure { margin: 2px 0 10px; color: #3F4B60; font-size: 14px; line-height: 1.45; text-align: center; }
.tt-devis__rassure a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
[data-univers]{position:relative}
.tt-chantier{position:absolute;left:0;right:0;bottom:0;overflow:visible;pointer-events:none}
.tt-chantier i{position:absolute;display:block;opacity:0;transition:opacity .2s linear,transform .3s var(--tt-e)}
.tt-chantier i.on{opacity:1;transform:none}
.tt-chantier--mur i{background:#1F2838;border:1px solid #36435B;border-radius:2px;transform:translateY(-14px)}
.tt-chantier--mur i:nth-child(5n){background:#273349}
.tt-chantier--toit i{background:#B26A3C;border-radius:0 0 50% 50% / 0 0 80% 80%;box-shadow:inset 0 -3px 0 rgba(0,0,0,.28),0 2px 2px rgba(0,0,0,.35);transform:translateY(-16px) rotate(-5deg)}
.tt-chantier--toit i:nth-child(3n){background:#A25F35}
.tt-chantier--sol{height:42px}
.tt-sol{inset:auto 0 0;height:14px;opacity:1;transform:scaleX(0);transform-origin:0 50%;transition:none}
.tt-sol--1{bottom:28px;background:#4A3A2A}
.tt-sol--2{bottom:14px;background:#362B20}
.tt-sol--3{background:#5C5A52}
.tt-chantier__outil{position:absolute;left:0;bottom:0;width:42px;height:42px;color:var(--tt-bleu-c);opacity:0;transition:opacity .25s linear;will-change:transform}
.tt-chantier__outil svg,.tt-craie-outil svg{display:block;width:100%;height:100%}
.tt-craie-outil{position:absolute;z-index:2;top:16px;right:16px;width:58px;height:58px;color:#fff}
.tt-craie-outil path,.tt-craie-outil rect,.tt-craie path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.3s var(--tt-e) .15s}
.trace path,.trace rect{stroke-dashoffset:0}
.tt-craie{display:inline-flex;align-items:flex-end;gap:4px;color:var(--tt-bleu-c);pointer-events:none;opacity:0;transition:opacity .5s linear}
.tt-craie.trace{opacity:1}
.tt-craie em{font:400 21px/1.1 Craie,cursive;transform:rotate(-2deg)}
html:not(.craie-ok) .tt-craie{display:none}
.tt-craie svg{width:42px;height:24px;flex:none;margin-top:8px}
@media (max-width:640px){.tt-craie em{font-size:19px}
.tt-chantier__outil{width:32px;height:32px}
.tt-craie-outil{width:46px;height:46px}
}

.tt-devis__retour { min-height: 44px; padding: 0 14px 0 0; font-size: 14px; }
.tt-mnav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 58px); overscroll-behavior: contain; color-scheme: dark; }
.tt-mnav__lien.is-on { color: var(--tt-bleu-c); }
@media (min-width: 641px) { .tt-mnav { max-height: calc(100dvh - 75px); } }
@media (max-width: 640px) {
  .tt-lb { background: #06090f; }
  .tt-lb__nav { top: auto; bottom: 14px; transform: none; width: 52px; height: 52px; }
  .tt-lb__count { bottom: 28px; }
}

.tt-craie--avant { display: flex; margin: 0 0 8px; }
.tt-craie--apres { display: flex; margin-top: 10px; }
.tt-craie--sur { position: absolute; top: 12px; left: 16px; color: #fff; }
.tt-craie--sur svg { display: none; }
.tt-craie--coin { position: absolute; right: 26px; top: -8px; }
.tt-chantier--mur i { background: #2A3650; border-color: #46567A; }
.tt-chantier--mur i:nth-child(5n) { background: #33415F; }
@media (max-width: 760px) { .tt-craie--coin { position: static; display: flex; width: 100%; margin-bottom: 6px; } }

.tt-chantier i.tt-sol { opacity: 1; transition: none; }


/* La maison qui se construit */
.tt-maison { --m: calc((100vw - 1170px) / 2); --l: clamp(84px, calc(var(--m) - 14px), 124px); position: fixed; z-index: 90; right: calc((var(--m) - var(--l)) / 2); bottom: 18px; width: var(--l); padding: 8px 8px 6px; background: rgba(10, 13, 18, .84); border: 1px solid var(--filet); border-radius: 12px; text-align: center; pointer-events: none; opacity: 0; transition: opacity .4s linear; }
.tt-maison.on { opacity: 1; }
.tt-maison svg { display: block; width: 100%; height: auto; overflow: visible; }
.tt-maison em { display: block; min-height: 2em; margin-top: 3px; color: var(--tt-bleu-c); font: 400 14px/1 Craie, cursive; }
.m-sol { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.m-b, .m-t { opacity: 0; transform: translateY(-5px); transition: opacity .16s linear, transform .22s var(--tt-e); }
.m-b.on, .m-t.on { opacity: 1; transform: none; }
.m-o { color: #fff; }
.m-o path, .m-o rect { stroke-width: 5; }
@media (max-width: 1359px) { .tt-maison { display: none; } }
@media (min-width: 2200px) { .tt-maison { right: 120px; } }

/* Les jonctions entre sections : hauteur nulle, rien ne bouge dans la page */
.tt-joint { position: relative; z-index: 3; height: 0; pointer-events: none; }
.tt-joint > svg { position: absolute; left: 0; top: 0; display: block; width: 100%; height: var(--h); }
.tt-joint--monte > svg { top: auto; bottom: 0; }
.tt-joint--monte.tt-joint--harpe > svg, .tt-joint--monte.tt-joint--tuiles > svg, .tt-joint--monte.tt-joint--terrain > svg { transform: scaleY(-1); }
.tt-joint__outil { position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: var(--nuit-3); border: 1px solid var(--filet-fort); border-radius: 50%; color: var(--tt-bleu-c); }
.tt-joint__outil svg { display: block; width: 26px; height: 26px; }
.tt-joint__outil path, .tt-joint__outil rect { stroke-width: 3.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--tt-e) .1s; }
.tt-joint__outil.trace path, .tt-joint__outil.trace rect { stroke-dashoffset: 0; }
@media (max-width: 760px) {
  .tt-joint__outil { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .tt-joint__outil svg { width: 20px; height: 20px; }
}

/* Le bouton de l'assistant : le reste est dans assistant.css, chargé au clic */
.tt-as-lance { position: fixed; z-index: 95; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 0; height: 56px; min-width: 56px; padding: 0 16px; background: linear-gradient(135deg, #4663a8, #2e4273); border: 1px solid rgba(255, 255, 255, .2); border-radius: 28px; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .7); color: #fff; font: 600 14px/1 var(--tt-titre), sans-serif; cursor: pointer; visibility: visible !important; transition: transform .2s var(--tt-e), opacity .2s; }
.tt-as-lance:hover { transform: translateY(-2px); }
.tt-as-lance:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tt-as-lance svg { flex: none; width: 24px; height: 24px; }
.tt-as-lance span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--tt-e), margin .35s var(--tt-e); }
.tt-as-lance.parle span { max-width: 130px; margin-left: 9px; }
.tt-as-lance.attend { opacity: .7; cursor: progress; }
body.tt-as-ouvert .tt-as-lance, body.tt-menu-ouvert .tt-as-lance { display: none; }
@media (min-width: 1640px) { .tt-as-lance span { max-width: 130px; margin-left: 9px; } }
@media (max-width: 760px) {
  .tt-as-lance { left: auto; right: 20px; bottom: calc(76px + env(safe-area-inset-bottom)); height: 52px; min-width: 52px; padding: 0 14px; }
  body.tt-form-vu .tt-as-lance { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .tt-as-lance, .tt-as-lance span { transition: none; } }

.tt-gal__tout { display: inline-block; margin-left: 14px; padding: 6px 0; color: #9db4e0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Bandeau de mesure d'audience : Refuser et Accepter ont exactement le même poids (CNIL) */
.tt-mesure { position: fixed; z-index: 96; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(600px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #141a24; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; box-shadow: 0 18px 40px -12px #000; color: #d5dbe4; font-size: 14px; line-height: 1.45; }
.tt-mesure p { flex: 1; margin: 0; }
.tt-mesure a { color: #9db4e0; text-decoration: underline; }
.tt-mesure div { display: flex; flex: none; gap: 8px; }
.tt-mesure button { min-height: 44px; padding: 0 18px; background: #222c3b; border: 1px solid rgba(157, 180, 224, .5); border-radius: 10px; color: #fff; font: 600 14px/1 var(--tt-titre), sans-serif; cursor: pointer; }
.tt-mesure button:hover { background: #2e3b52; }
.tt-mesure button:focus-visible, .tt-ft__cookies:focus-visible { outline: 2px solid #9db4e0; outline-offset: 2px; }
.tt-ft__cookies { padding: 0; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) {
  .tt-mesure { flex-direction: column; align-items: stretch; gap: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tt-mesure div button { flex: 1; }
}
