/* Cool Tech, maquette Forge (méthode Tekio). Patron : ERA Residence (Site of the Month, août 2026) : bascule jour/nuit du haut de page, ici « sans clim / avec clim ». */
@font-face { font-family: "Police"; src: url("fonts/police.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --deep: #0e1240;          /* bleu nuit du mot TECH, en plus profond */
  --deep-2: #161a58;
  --deep-rgb: 14, 18, 64;
  --brand: #ee5a2a;         /* orange du bouton du logo : seulement les actions */
  --brand-ink: #0c1030;
  --blue: #2aa9e0;          /* bleu du flocon : accents sur fond profond */
  --ice: #eaf6fc;
  --bg: #fff;
  --ink: #0c1030;
  --ink-rgb: 12, 16, 48;
  --grey: #53597a;
  --r-xl: 28px; --r-card: 20px; --r-btn: 12px;   /* grand public : 20 px */
  --font: "Police";
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --band: 32px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--deep); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font), system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 899px) { .only-desk-flex { display: none !important; } }

.forge-band { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--band); display: flex; align-items: center; justify-content: center; background: #000; color: #fff; font-size: 12.5px; font-weight: 500; }
.forge-band .short { display: none; }
@media (max-width: 640px) { .forge-band .long { display: none; } .forge-band .short { display: inline; } }

.glass { background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.4), 0 24px 48px -24px rgba(0,0,0,.5); color: #fff; }
.glass-light { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.06), 0 18px 40px -22px rgba(var(--ink-rgb),.45); }

/* Boutons : orange du logo, eux seuls (Von Restorff) */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 0; font: 600 14.5px/1 var(--font), system-ui, sans-serif; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; background: var(--brand); color: var(--brand-ink); transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(238,90,42,.7); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--xl { height: 68px; padding: 0 36px; font-size: 18px; border-radius: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Menu : logo, 4 liens, 1 bouton */
.nav { position: fixed; z-index: 70; top: calc(var(--band) + 14px); left: 50%; translate: -50% 0; width: min(1000px, calc(100% - 28px)); height: 62px; padding: 0 9px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 18px; transition: width .5s var(--ease), top .5s var(--ease); }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--grey); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav.compact { width: min(860px, calc(100% - 28px)); }
@media (max-width: 899px) { .nav { height: 54px; padding: 0 8px 0 16px; } .nav .btn { display: none; } .nav { width: auto; padding: 0 16px; } .nav__logo img { height: 28px; } }

/* Scène : sans clim → avec clim */
.stage { position: relative; height: 100svh; min-height: 640px; margin: 0; overflow: hidden; background: var(--deep); color: #fff; }
.stage__img { position: absolute; inset: 0; }
.stage__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.stage__img--chaud img { object-position: 50% 60%; filter: saturate(1.15) sepia(.18); }
.stage__img--frais { clip-path: inset(0 100% 0 0); transition: clip-path 1.25s var(--ease); }
.stage[data-state="frais"] .stage__img--frais { clip-path: inset(0 0 0 0); }
.stage__img--frais img { object-position: 50% 45%; }
.stage__veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--deep-rgb), .82) 0%, rgba(var(--deep-rgb), .48) 36%, rgba(var(--deep-rgb), 0) 68%); transition: background 1s; }
.stage[data-state="chaud"] .stage__veil { background: linear-gradient(0deg, rgba(60,22,6,.85) 0%, rgba(60,22,6,.5) 38%, rgba(60,22,6,.12) 72%); }
.stage__copy { position: absolute; inset: auto 0 clamp(40px, 8vh, 84px); }
.title { display: grid; font-weight: 500; font-size: clamp(52px, 9.4vw, 148px); line-height: .95; letter-spacing: -.055em; }
.title__a { grid-area: 1 / 1; opacity: 0; translate: 0 24px; transition: opacity .6s var(--ease), translate .8s var(--ease); }
.stage[data-state="chaud"] [data-t="chaud"], .stage[data-state="frais"] [data-t="frais"] { opacity: 1; translate: 0 0; }
.lead { margin-top: 26px; max-width: 520px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,.88); }
.stage__actions { margin-top: 26px; }

.switch { position: absolute; z-index: 5; right: var(--pad); bottom: clamp(40px, 8vh, 84px); display: flex; padding: 5px; border-radius: 999px; }
.switch button { position: relative; z-index: 2; border: 0; background: none; height: 42px; padding: 0 20px; white-space: nowrap; flex: 1 1 0; border-radius: 999px; font: 600 14px/1 var(--font), system-ui, sans-serif; color: rgba(255,255,255,.85); transition: color .3s; }
.switch button[aria-pressed="true"] { color: var(--ink); }
.switch__pill { position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; transition: translate .5s var(--ease); }
.stage[data-state="frais"] .switch__pill { translate: 100% 0; }
@media (max-width: 899px) {
  .switch { right: 50%; translate: 50% 0; bottom: auto; top: calc(var(--band) + 82px); }
  .stage__copy { inset: auto 0 calc(36px + env(safe-area-inset-bottom)); }
  .stage__actions .btn { width: 100%; }
}

/* Une phrase */
.say { padding: clamp(80px, 14vw, 190px) 0 clamp(60px, 9vw, 120px); background: var(--bg); }
.say__text { max-width: 1020px; font-size: clamp(28px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; }
.say__text span { color: var(--grey); }

/* Trois métiers : volets qui s'ouvrent */
.work { background: var(--ice); padding: clamp(70px, 9vw, 120px) 0 clamp(70px, 9vw, 120px); }
.work__head h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; margin-bottom: clamp(30px, 4vw, 54px); }
.work__row { display: flex; gap: 14px; height: clamp(460px, 62vh, 620px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-card); background: var(--deep); color: #fff; transition: flex-grow .7s var(--ease); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--deep-rgb), .9), rgba(var(--deep-rgb), .1) 62%); }
.panel__body { position: absolute; z-index: 2; inset: auto 0 0; padding: 28px; }
.panel h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.panel p { margin-top: 12px; max-width: 340px; color: rgba(255,255,255,.86); font-size: 16px; }
.panel a { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 3px; }
@media (hover: hover) and (min-width: 900px) {
  .work__row:hover .panel { flex-grow: .7; }
  .work__row .panel:hover { flex-grow: 1.9; }
  .panel:hover img { scale: 1.05; }
  .panel p, .panel a { opacity: 0; translate: 0 10px; transition: opacity .4s .05s, translate .5s var(--ease); }
  .panel:hover p, .panel:hover a, .panel:focus-within p, .panel:focus-within a { opacity: 1; translate: 0 0; }
}
@media (max-width: 899px) {
  .work__row { height: auto; flex-direction: column; }
  .panel { height: 380px; flex: none; }
}

/* Où */
.where { padding: clamp(80px, 12vw, 160px) 0; background: var(--bg); }
.where__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.where h2 { font-size: clamp(36px, 6vw, 88px); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.where__side p { color: var(--grey); max-width: 380px; }
.where__links { margin-top: 20px; display: flex; gap: 14px; }
.where__links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), .18); color: var(--ink); transition: box-shadow .25s; }
.where__links a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 899px) { .where__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Fin forte */
.end { position: relative; overflow: hidden; background: var(--deep); color: #fff; padding: clamp(90px, 13vw, 180px) 0 0; }
.end__flake { position: absolute; right: -9vw; top: 50%; width: min(62vw, 760px); translate: 0 -55%; color: var(--blue); opacity: .2; animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.end__inner { position: relative; }
.end h2 { font-size: clamp(54px, 10vw, 152px); line-height: .94; font-weight: 500; letter-spacing: -.058em; }
.ask { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(32px, 4vw, 52px) 0 20px; }
.ask button { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font: 500 15px/1 var(--font), system-ui, sans-serif; color: #fff; transition: background .25s, color .25s; }
.ask button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.foot { position: relative; margin-top: clamp(80px, 10vw, 140px); padding-top: 28px; padding-bottom: calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; }
.foot__logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.foot p { color: rgba(255,255,255,.8); font-size: 14.5px; }
.foot .foot__small { color: rgba(255,255,255,.62); font-size: 13px; }
@media (max-width: 899px) { .btn--xl { width: 100%; padding: 0 16px; white-space: normal; height: 64px; font-size: 16.5px; } .end { padding-bottom: 96px; } }

/* Dock téléphone */
.dock { display: none; }
@media (max-width: 899px) {
  .dock { display: block; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 24px; background: rgba(var(--deep-rgb), .72); translate: 0 140%; transition: translate .6s var(--ease); }
  .dock.on { translate: 0 0; }
  .dock .btn { width: 100%; }
}

/* Ce qui se cache dans une clim : bande de vraies photos */
.dirty { background: var(--deep); color: #fff; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.dirty__head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.dirty h2 { font-size: clamp(38px, 6vw, 92px); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.dirty__head p { color: rgba(255,255,255,.7); max-width: 320px; font-size: 15.5px; }
.dirty__strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--pad) 8px max(var(--pad), calc((100vw - var(--wrap)) / 2)); scroll-snap-type: x mandatory; scroll-padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2)); scrollbar-width: none; }
.dirty__strip::-webkit-scrollbar { display: none; }
.dirty__strip figure { flex: 0 0 clamp(240px, 26vw, 330px); margin: 0; scroll-snap-align: start; }
.dirty__strip img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: var(--r-card); background: var(--deep-2); }
.dirty__strip figcaption { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.82); max-width: 260px; }
.dirty__gains { margin-top: clamp(50px, 7vw, 96px); display: grid; gap: 14px; }
.dirty__gains p { color: var(--blue); font-size: 17px; }
.dirty__gains strong { font-weight: 600; }
.dirty__gains ul { list-style: none; padding: 0; margin: 0 0 18px; }
.dirty__gains li { font-size: clamp(26px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.dirty__gains li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.dirty__gains .btn { justify-self: start; }
@media (max-width: 899px) { .dirty__head { grid-template-columns: 1fr; gap: 18px; } .dirty__gains .btn { justify-self: stretch; } }

/* Sur le terrain */
.field { background: var(--bg); padding: clamp(80px, 11vw, 150px) 0; }
.field__grid { display: grid; grid-template-columns: 1fr minmax(240px, 340px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.field__num span { display: block; font-size: clamp(120px, 20vw, 300px); line-height: .8; font-weight: 500; letter-spacing: -.08em; color: var(--deep); }
.field__num p { margin-top: 18px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: var(--grey); }
.field__photo { margin: 0; }
.field__photo img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: var(--r-card); }
.field__text h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; font-weight: 500; letter-spacing: -.05em; }
.field__text p { margin-top: 18px; color: var(--grey); max-width: 420px; }
.field__text .small { font-size: 13px; opacity: .8; }
@media (max-width: 899px) { .field__grid { grid-template-columns: 1fr; } .field__photo { order: 3; } .field__text { order: 2; } }

/* Du devis au rendez-vous */
.steps { background: var(--ice); padding: clamp(80px, 11vw, 150px) 0; }
.steps h2 { font-size: clamp(38px, 6vw, 92px); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.steps__row { list-style: none; padding: 0; margin: clamp(40px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); position: relative; }
.steps__row::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(var(--ink-rgb), .14); }
.steps__row li { position: relative; padding-top: 38px; }
.steps__row li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px var(--ice); }
.steps__row h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.12; font-weight: 500; letter-spacing: -.035em; }
.steps__row p { margin-top: 10px; color: var(--grey); font-size: 15.5px; max-width: 300px; }
@media (max-width: 899px) { .steps__row { grid-template-columns: 1fr; gap: 34px; padding-left: 34px; } .steps__row::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .steps__row li { padding-top: 0; } .steps__row li::before { left: -34px; top: 4px; } }

/* Apparitions */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .9s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}
