/* Electricité Scorpion concept. Brief in CLAUDE.md: Movento's composition, one logo-green accent, Archivo. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ground: #f4f5f1;
  --surface: #ffffff;
  --ink: #12181b;
  --muted: #4b5550;
  --line: #d8ddd5;
  --soft: #e8ece3;
  --green: #96c251;
  --green-hover: #a6cf66;
  --deep: #3d7a1f;
  --on-ink: #aab4ae;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; hyphens: manual; overflow-wrap: break-word; }
h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.concept-bar { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }

/* Pill tag, sentence case */
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.3; }
.tag-light { background: rgba(255, 255, 255, .14); color: #fff; }
.tag-ink { background: var(--ink); color: #fff; }
.lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }

/* Buttons: pill with a round arrow chip */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:has(.chip) { padding-right: 7px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-sm:has(.chip) { padding-right: 5px; }
.btn svg { width: 20px; height: 20px; }
.chip { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.btn-sm .chip { width: 32px; height: 32px; }
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .chip svg { transform: translate(2px, -2px); }
.btn-accent { background: var(--green); color: var(--ink); }
.btn-accent:hover { background: var(--green-hover); }
.btn-accent .chip { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a3337; }
.btn-ink .chip { background: var(--green); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.link { color: var(--deep); font-weight: 600; text-underline-offset: 4px; }
svg .fill { fill: currentColor; stroke: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 245, 241, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; height: 62px; }
.brand-word { display: grid; font-size: 23px; font-weight: 700; letter-spacing: -.035em; line-height: .95; }
.brand-word small { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Language toggle (playbook pattern) */
.lang { --seg: 40px; --n: 4; position: relative; display: grid; grid-template-columns: repeat(var(--n), var(--seg)); padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang a, .lang-on > span { display: grid; place-items: center; height: 32px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.lang a { position: relative; z-index: 1; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang-pill, .lang-on { position: absolute; top: 3px; left: 3px; height: 32px; pointer-events: none; transition: transform .3s var(--ease), clip-path .3s var(--ease); }
.lang-pill { width: var(--seg); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--i) * 100%)); }
.lang-on { z-index: 2; display: grid; grid-template-columns: repeat(var(--n), var(--seg)); color: #fff; clip-path: inset(0 calc((var(--n) - 1 - var(--i)) * var(--seg)) 0 calc(var(--i) * var(--seg)) round 999px); }

/* Hero: wordmark over the roof video, solid card */
.hero { position: relative; width: min(100% - 24px, 1400px); margin: 12px auto 0; height: clamp(640px, calc(100svh - 120px), 860px); border-radius: 22px; overflow: hidden; background: #5d6b57; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 45%; background: linear-gradient(rgba(18, 24, 27, .38), rgba(18, 24, 27, 0)); pointer-events: none; }
.hero-word { position: absolute; z-index: 2; top: 0; right: clamp(12px, 2vw, 32px); margin: 0; overflow: hidden; color: #fff; font-size: clamp(88px, 17vw, 270px); font-weight: 700; letter-spacing: -.055em; line-height: .86; padding: .06em .04em .04em 0; }
.hero-word span { display: block; animation: rise 1.1s var(--ease) .15s both; }
@keyframes rise { from { transform: translateY(105%); } }
.hero-card { position: absolute; z-index: 2; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); width: min(580px, calc(100% - 32px)); padding: 28px 30px 26px; border-radius: 18px; background: var(--surface); }
.hero-card h1 { margin: 16px 0 12px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.06; letter-spacing: -.03em; }
.hero-card .lede { font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; color: var(--muted); text-decoration: none; }
.rating:hover { color: var(--ink); text-decoration: underline; }
.stars { color: #c98a00; letter-spacing: 1px; }
.hero-round { position: absolute; z-index: 2; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); display: flex; gap: 10px; }
.round { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: transform .15s; }
.round:hover { transform: scale(1.06); }
.round svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.round[hidden] { display: none; }
.hero-toggle .i-play, .hero-toggle[data-paused] .i-pause { display: none; }
.hero-toggle[data-paused] .i-play { display: block; }

/* Facts row */
.facts { padding: 56px 0 8px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid p { display: grid; gap: 8px; align-content: start; padding: 6px 24px 6px 20px; border-left: 1px solid var(--line); }
.facts-grid strong { font-size: clamp(30px, 3.4vw, 46px); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.facts-grid span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Sections */
.section { padding: var(--pad) 0; }
.section-head { display: grid; gap: 18px; align-content: start; }
.section-head > .tag { justify-self: start; }
.split-head { margin-bottom: 56px; }
.split-head > div { max-width: 920px; }
.split-head .lede { margin-top: 18px; max-width: 58ch; }

/* Services mosaic: ink block plus photo tiles, trade names only */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 12px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.tile-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.tile picture { display: block; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile img { transition: transform .5s var(--ease); }
.tile-link:hover img { transform: scale(1.03); }
.cap { position: absolute; inset: auto 0 0; padding: 64px 22px 20px; color: #fff; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; background: linear-gradient(to top, rgba(18, 24, 27, .85), rgba(18, 24, 27, 0)); }
.tile-link .cap::after { content: " →"; color: var(--green); }
.tile-ink { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; padding: 28px; background: var(--ink); color: #fff; }
.tile-ink h3 { font-size: 26px; letter-spacing: -.02em; }
.tile-ink p { color: var(--on-ink); max-width: 32ch; }
.tile-ink .btn { margin-top: 8px; }

/* Solar panel: logo green, photo, a rule with the sun, text */
.solar-section { background: var(--green); color: var(--ink); padding: var(--pad) 0; }
.solar-grid { display: grid; grid-template-columns: minmax(0, 6fr) 56px minmax(0, 5fr); gap: 32px; align-items: stretch; }
.solar-photo { position: relative; border-radius: 18px; overflow: hidden; min-height: 520px; background: #7fa64a; }
.solar-photo picture { position: absolute; inset: 0; display: block; }
.solar-photo img { width: 100%; height: 100%; object-fit: cover; }
.solar-rule { position: relative; justify-self: center; width: 2px; background: rgba(18, 24, 27, .35); }
.solar-rule svg { position: absolute; top: calc(24px + (100% - 48px) * (1 - var(--rise, .5))); left: 50%; transform: rotate(calc(var(--rise, .5) * 180deg)); width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 6px; border-radius: 50%; background: var(--green); fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.solar-copy { align-self: center; display: grid; gap: 22px; justify-items: start; }
.solar-copy .lede { color: var(--ink); }
.solar-copy .cta-row { margin-top: 0; }
.solar-notes { margin: 0; padding: 22px 0 0; list-style: none; display: grid; gap: 10px; border-top: 1px solid rgba(18, 24, 27, .35); font-size: 16px; }
.solar-notes li { position: relative; padding-left: 22px; }
.solar-notes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* Solar points: heading and FAQ left, cards with big cropped numerals right */
.steps-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.faq { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.faq h3 { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { position: relative; overflow: hidden; min-height: 150px; display: flex; align-items: center; padding: 26px 28px 26px 196px; border-radius: var(--radius); background: var(--surface); }
.step-n { position: absolute; left: 20px; bottom: -.28em; color: var(--deep); font-size: 150px; font-weight: 500; letter-spacing: -.07em; line-height: 1; }
.steps h3 { font-size: 22px; letter-spacing: -.02em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }
/* Step cards rise in once as they scroll into view (JS adds .reveal; without JS or with reduced motion they are simply there) */
.steps.reveal li { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--n, 0) * 90ms); }
.steps.reveal li.in { opacity: 1; transform: none; }

/* About: the manager, the three points, the scorpion */
.about-section { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.about-photo { margin: 0; border-radius: 18px; overflow: hidden; background: var(--soft); }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.about-copy > p:not(.tag):not(.lede) { color: var(--muted); }
.points { width: 100%; margin: 6px 0 0; padding: 0; list-style: none; }
.points li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3L17 9' fill='none' stroke='%2312181b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.motto { display: flex; align-items: center; gap: 16px; margin: 10px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.motto img { flex: none; width: auto; height: 58px; }

/* Réalisations: their own work on ink */
.work-section { background: var(--ink); color: #fff; padding: var(--pad) 0; }
.work-section .lede { color: var(--on-ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 12px; }
.gallery picture { border-radius: var(--radius); overflow: hidden; background: #222b2f; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-wide-row { grid-column: span 2; }

/* Labels */
.labels-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.labels { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px; align-items: center; }
.labels h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.025em; }
.labels ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.labels li { display: grid; justify-items: center; gap: 12px; padding: 22px 18px 18px; border-radius: var(--radius); background: var(--surface); text-align: center; font-size: 14px; color: var(--muted); }
.labels img { height: 64px; width: auto; object-fit: contain; }

/* Reviews */
.reviews { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.score { position: sticky; top: 104px; display: grid; gap: 14px; justify-items: start; }
.score h2 { font-size: clamp(30px, 3.4vw, 46px); }
.score-big { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: clamp(80px, 9vw, 128px); font-weight: 650; letter-spacing: -.06em; line-height: .9; }
.score-big .stars { font-size: 22px; letter-spacing: 2px; }
.score > p:not(.tag):not(.score-big) { color: var(--muted); }
.quotes { columns: 2 300px; column-gap: 12px; }
.quote { break-inside: avoid; margin: 0 0 12px; padding: 26px 26px 22px; border-radius: var(--radius); background: var(--surface); }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.quote blockquote::before { content: "★★★★★"; display: block; margin-bottom: 10px; color: #c98a00; letter-spacing: 1px; font-size: 14px; }
.quote figcaption { display: grid; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* Contact panel */
.contact-section { background: var(--ink); color: #fff; padding: var(--pad) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-head { display: grid; gap: 20px; justify-items: start; }
.contact-head .lede { color: var(--on-ink); }
.direct { margin: 12px 0 0; width: 100%; }
.direct div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.direct dt { color: var(--on-ink); font-size: 15px; }
.direct dd { margin: 0; }
.direct a { text-underline-offset: 4px; }
.office { border-radius: 20px; overflow: hidden; background: var(--surface); color: var(--ink); }
.office img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.office-body { display: grid; gap: 12px; justify-items: start; padding: clamp(22px, 3vw, 36px); }
.office-body h3 { font-size: 24px; letter-spacing: -.02em; }
.office-body p { color: var(--muted); }
.office-body .cta-row { margin: 6px 0 4px; }

/* Footer */
.site-footer { padding: 72px 0 40px; }
.footer-word { display: flex; align-items: center; gap: .12em; margin-bottom: 22px; color: var(--ink); font-size: clamp(56px, 8vw, 112px); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.footer-word img { width: auto; max-width: 100%; height: clamp(90px, 14vw, 170px); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; color: var(--muted); font-size: 15px; }
.footer-inner a { color: var(--ink); text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-credit { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Legal page */
.legal { padding: 64px 0 var(--pad); }
.legal-inner { max-width: 720px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.035em; line-height: 1.05; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; letter-spacing: -.015em; }
.legal-updated { margin-top: 10px; color: var(--muted); }
.legal p { color: var(--muted); }
.legal-back { margin-top: 40px; }

.call-bar { display: none; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

@media (max-width: 1080px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .labels { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .steps-grid, .reviews, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-head { margin-bottom: 36px; gap: 14px; }
  .score { position: static; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .mosaic { grid-template-rows: auto; }
  .mosaic .tile-ink { grid-column: 1 / -1; }
  .solar-grid { grid-template-columns: 1fr; gap: 28px; }
  .solar-rule { display: none; }
  .solar-photo { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 700px) {
  body { padding-bottom: 76px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 12px; min-height: 64px; }
  .brand img { height: 48px; }
  .brand-word { font-size: 20px; }
  .header-cta { display: none; }
  .lang { --seg: 36px; }

  .hero { width: 100%; margin: 0; height: auto; border-radius: 0; overflow: visible; background: none; }
  .hero-video { position: relative; height: clamp(380px, 56svh, 500px); object-position: 42% 50%; }
  .hero::before { height: 220px; }
  .hero-word { right: auto; left: 10px; top: 4px; font-size: 19vw; }
  .hero-card { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 12px 0; padding: 24px 20px 22px; box-shadow: 0 1px 0 var(--line); }
  .hero-card h1 { font-size: 29px; }
  .hero-round { top: 12px; bottom: auto; right: 12px; }
  .hero-round .round:not(.hero-toggle) { display: none; }
  .round { width: 44px; height: 44px; }
  .cta-row .btn { flex: 1 1 auto; }

  .facts { padding-top: 40px; }
  .facts-grid p { padding: 4px 12px 4px 14px; }
  .mosaic { grid-auto-rows: 160px; gap: 8px; }
  .mosaic .tile-ink { padding: 22px; }
  .cap { padding: 40px 12px 12px; font-size: 15px; }
  .steps li { min-height: 0; display: block; padding: 22px 20px 76px; }
  .step-n { left: 14px; font-size: 84px; }
  .gallery { grid-auto-rows: 150px; gap: 8px; }
  .labels ul { grid-template-columns: 1fr; }
  .labels li { grid-template-columns: 120px 1fr; justify-items: start; align-items: center; text-align: left; padding: 14px 18px; }
  .labels img { height: 48px; }
  .quote { padding: 22px 20px 18px; }
  .direct div { grid-template-columns: 1fr; gap: 2px; }
  .office-body .cta-row { width: 100%; }

  .call-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .call-bar .btn { min-height: 48px; padding: 0 10px; font-size: 16px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-word span { animation: none; }
  .steps.reveal li { opacity: 1; transform: none; transition: none; }
  .lang-pill, .lang-on, .chip svg, .round, .tile img { transition: none; }
}
