:root {
    --brand-primary: #ff4b1f;
    --brand-secondary: #071a33;
    --brand-accent: #f5a000;
    --ink: #071a33;
    --text: #3d4b5d;
    --muted: #6f7b8b;
    --line: #e4e8ed;
    --surface: #ffffff;
    --surface-soft: #f5f7f9;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 8px 24px rgba(7, 26, 51, .08);
    --shadow: 0 22px 60px rgba(7, 26, 51, .14);
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin-top: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin-top: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding: 110px 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-160%); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-sm); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; }

/* Header */
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255, 255, 255, .94); border-bottom: 1px solid rgba(7, 26, 51, .08); backdrop-filter: blur(18px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 35px rgba(7, 26, 51, .08); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 220px; height: auto; }
.site-nav { display: flex; align-items: stretch; gap: 3px; align-self: stretch; }
.nav-link { position: relative; display: inline-flex; align-items: center; padding: 0 15px; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 720; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-primary); transform: scaleX(0); transition: transform .2s ease; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--surface-soft); align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.mobile-menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Utilities */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--brand-primary); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow-light { color: #fff; opacity: .92; }
.lead { max-width: 780px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #556274; }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading p { font-size: 1.08rem; color: var(--muted); }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; text-transform: uppercase; letter-spacing: .035em; font-size: .82rem; font-weight: 820; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--brand-primary), #ff6b22); color: #fff; box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-primary) 28%, transparent); }
.button-primary:hover { box-shadow: 0 16px 28px color-mix(in srgb, var(--brand-primary) 36%, transparent); }
.button-secondary { background: var(--brand-secondary); color: #fff; }
.button-outline-light { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .04); }
.button-outline-light:hover { background: #fff; color: var(--ink); }
.button-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-primary); text-decoration: none; font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.accent-statement { color: var(--brand-primary); font-weight: 800; }

/* Home */
.home-hero { position: relative; overflow: hidden; color: #fff; background: var(--brand-secondary); }
.home-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 15%, rgba(35, 91, 150, .34), transparent 40%), linear-gradient(120deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, 42px 42px; }
.hero-grid { position: relative; z-index: 1; min-height: 680px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 20px; }
.hero-grid-copy-only { grid-template-columns: minmax(0, 760px); justify-content: center; }
.hero-copy { padding: 90px 0; }
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy h1 { max-width: 700px; margin-bottom: 25px; color: #fff; font-size: clamp(3rem, 6vw, 5.8rem); }
.hero-lead { max-width: 590px; margin-bottom: 32px; color: rgba(255, 255, 255, .8); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-visual { align-self: stretch; min-height: 560px; display: flex; align-items: center; padding: 48px 0; }
.hero-visual img { width: 100%; max-width: none; height: 82%; object-fit: cover; object-position: center; border-radius: 24px; box-shadow: 0 28px 65px rgba(0, 0, 0, .3); }
.choice-section { background: var(--surface-soft); }
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.solution-card { overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 390px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .28s ease, box-shadow .28s ease; }
.solution-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.solution-image { overflow: hidden; min-height: 100%; }
.solution-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.solution-card:hover .solution-image img { transform: scale(1.05); }
.solution-content { position: relative; padding: 42px 36px; display: flex; flex-direction: column; justify-content: center; }
.solution-number { position: absolute; top: 25px; right: 30px; color: #e8ebef; font-size: 3rem; font-weight: 900; }
.solution-content h3 { margin: 0 0 16px; font-size: 1.75rem; }
.solution-content p { color: var(--muted); }
.solution-content .text-link { margin-top: auto; }

/* Page intros */
.page-hero { padding: 105px 0 70px; background: var(--surface-soft); }
.page-hero-light { background: #fff; }
.split-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.split-intro h1 { max-width: 680px; margin-bottom: 26px; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.feature-list { display: grid; gap: 8px; }
.feature-row { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--brand-primary) 9%, #fff); color: var(--brand-primary); font-size: 1.35rem; }
.feature-row h2 { margin: 2px 0 5px; font-size: 1.08rem; letter-spacing: -.01em; }
.feature-row p { margin: 0; color: var(--muted); font-size: .96rem; }
.gallery-section { background: var(--surface-soft); }
.realisation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.realisation-card { overflow: hidden; padding: 0; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(7, 26, 51, .08); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.realisation-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.realisation-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.realisation-card span { display: block; padding: 16px 17px; color: var(--ink); font-weight: 800; }
.lightbox { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; padding: 30px; background: rgba(3, 13, 27, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lightbox-close { position: absolute; top: 20px; right: 25px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: transparent; font-size: 2rem; }

/* Renovation */
.renovation-hero { background: linear-gradient(135deg, #fff 0%, #f7f8f9 68%, color-mix(in srgb, var(--brand-primary) 8%, #fff) 100%); }
.renovation-hero h1 { margin-bottom: 25px; font-size: clamp(2.7rem, 5vw, 4.7rem); }
.renovation-hero .accent-statement { margin-top: 28px; font-size: 1.08rem; }
.renovation-section { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.service-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-sm); }
.service-image { overflow: hidden; aspect-ratio: 4/3; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-card:hover .service-image img { transform: scale(1.04); }
.service-body { position: relative; flex: 1; padding: 25px 21px; }
.service-icon { position: absolute; top: -25px; left: 20px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--brand-secondary); box-shadow: 0 10px 20px rgba(7,26,51,.18); }
.service-body h3 { margin-top: 15px; margin-bottom: 11px; font-size: 1.15rem; }
.service-card-no-image .service-body { padding-top: 34px; }
.service-card-no-image .service-icon { position: static; margin-bottom: 18px; }
.service-card-no-image .service-body h3 { margin-top: 0; }
.service-body p { color: var(--muted); font-size: .92rem; }
.service-body .text-link { font-size: .85rem; }

/* History */
.history-page { padding: 80px 0 100px; }
.history-grid { overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; min-height: 650px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.history-grid-copy-only { grid-template-columns: 1fr; min-height: 0; }
.history-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px 60px; background: #fff; }
.history-copy h1 { margin-bottom: 25px; font-size: clamp(2.8rem, 5vw, 4.7rem); }
.history-copy .accent-statement { margin-top: 20px; }
.history-image img { width: 100%; height: 100%; object-fit: cover; }
.rich-text { color: var(--text); }
.rich-text h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.7rem; }
.rich-text h3 { margin-top: 25px; }
.rich-text p, .rich-text li { color: var(--text); }
.rich-text a { color: var(--brand-primary); }

/* Contact */
.contact-hero { padding-bottom: 50px; background: linear-gradient(180deg, var(--surface-soft), #fff); }
.contact-hero h1 { margin-bottom: 20px; }
.contact-section { padding-top: 35px; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.25fr 1fr; gap: 26px; align-items: start; }
.contact-details, .contact-form-card, .map-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-details { padding: 34px; }
.contact-details h2, .contact-form-card h2, .map-card h2 { margin-bottom: 26px; font-size: 1.45rem; }
.contact-line { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.contact-line:last-child { border-bottom: 0; }
.contact-line > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--brand-primary); }
.contact-line strong { padding-top: 7px; font-size: .93rem; font-weight: 700; }
.contact-form-card { padding: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .86rem; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #d7dde4; border-radius: 9px; background: #fff; color: var(--ink); padding: 12px 13px; outline: none; transition: border .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.field-error { color: #bd2f22; font-size: .78rem; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .8rem; }
.checkbox input { margin-top: 4px; accent-color: var(--brand-primary); }
.honeypot { position: absolute; left: -9999px; }
.map-card { overflow: hidden; padding: 34px; }
.map-card iframe { width: 100%; height: 330px; border: 0; border-radius: 12px; background: var(--surface-soft); }
.map-card .text-link { margin-top: 16px; }
.stack-form { display: grid; gap: 18px; }
.password-field .input-with-action, .input-with-action { position: relative; display: flex; }
.input-with-action input { padding-right: 48px !important; }
.input-with-action button { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.login-links { display: flex; justify-content: flex-end; font-size: .82rem; }
.login-links a { color: var(--brand-primary); font-weight: 750; }

/* Client login */
.client-login-page { position: relative; min-height: calc(100vh - 82px); display: grid; place-items: center; overflow: hidden; background: var(--brand-secondary); }
.client-login-page::before { content: ""; position: absolute; inset: 0; background-image: var(--login-bg); background-size: cover; background-position: center; opacity: .22; filter: saturate(.75); }
.client-login-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(4,18,37,.96), rgba(11,39,72,.82)); }
.client-login-wrap { position: relative; z-index: 1; display: grid; place-items: center; padding: 70px 0; }
.login-card { width: min(470px, 100%); padding: 42px; border-radius: 18px; background: #fff; box-shadow: 0 35px 85px rgba(0,0,0,.3); text-align: center; }
.login-logo { width: 220px; margin: 0 auto 28px; }
.login-card h1 { margin-bottom: 12px; font-size: 2rem; }
.login-card > p { margin-bottom: 28px; color: var(--muted); }
.login-card .stack-form { text-align: left; }
.login-help { display: block; margin-top: 20px; color: var(--muted); }
.auth-public-section { min-height: 70vh; display: grid; place-items: center; padding: 70px 20px; background: var(--surface-soft); }
.auth-public-card { width: min(510px, 100%); padding: 40px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.auth-public-card h1 { margin-bottom: 15px; font-size: 2.2rem; }
.auth-public-card > p { margin-bottom: 28px; color: var(--muted); }
.back-link { display: inline-block; margin-top: 22px; color: var(--brand-primary); font-weight: 700; }

/* Legal & errors */
.legal-hero { padding-bottom: 55px; }
.legal-layout { display: grid; grid-template-columns: 320px 1fr; gap: 70px; align-items: start; }
.legal-summary { position: sticky; top: 110px; padding: 30px; border-radius: 17px; background: var(--surface-soft); }
.legal-summary h2 { font-size: 1.4rem; }
.legal-summary dl { margin: 25px 0 0; }
.legal-summary dt { margin-top: 14px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.legal-summary dd { margin: 2px 0 0; color: var(--ink); }
.legal-content { max-width: 820px; }
.error-page { min-height: 70vh; display: grid; place-items: center; padding: 70px 0; background: var(--surface-soft); text-align: center; }
.error-box { max-width: 660px; }
.error-code { display: block; color: var(--brand-primary); font-size: clamp(6rem, 15vw, 10rem); line-height: 1; font-weight: 900; opacity: .16; }
.error-box h1 { margin-top: -20px; font-size: 2.7rem; }
.error-box p { margin-bottom: 28px; color: var(--muted); font-size: 1.1rem; }

/* Footer */
.site-footer { padding-top: 70px; color: rgba(255,255,255,.74); background: var(--brand-secondary); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr 1fr; gap: 80px; padding-bottom: 55px; }
.footer-brand img { width: 250px; margin-bottom: 22px; padding: 8px; border-radius: 8px; background: #fff; }
.footer-brand p { max-width: 440px; }
.footer-brand strong { color: #fff; }
.footer-grid h2 { margin-bottom: 17px; color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a { margin-bottom: 9px; color: rgba(255,255,255,.76); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin-bottom: 10px; }
.footer-bottom { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.footer-bottom span:last-child { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: inherit; }

/* Client area */
.client-area-body { min-height: 100vh; background: var(--surface-soft); }
.client-topbar { border-bottom: 1px solid var(--line); background: #fff; }
.client-topbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.client-topbar img { width: 210px; }
.client-topbar nav { display: flex; align-items: center; gap: 8px; }
.client-topbar nav > a, .client-topbar nav button { padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-decoration: none; font-weight: 700; }
.client-topbar nav a.is-active { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, #fff); }
.client-topbar nav button { color: #b52b1d; }
.client-area-main { padding: 55px 0 90px; }
.client-dashboard { display: grid; gap: 30px; }
.client-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 42px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--brand-secondary), #163b66); box-shadow: var(--shadow-sm); }
.client-welcome h1 { margin-bottom: 10px; color: #fff; font-size: 2.5rem; }
.client-welcome p { margin: 0; color: rgba(255,255,255,.72); }
.client-company { display: grid; min-width: 220px; padding: 18px; border-radius: 12px; background: rgba(255,255,255,.09); }
.client-company span { color: rgba(255,255,255,.7); font-size: .86rem; }
.client-documents, .client-profile-card { padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.document-list { display: grid; gap: 12px; }
.document-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; padding: 19px; border: 1px solid var(--line); border-radius: 13px; }
.document-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--brand-primary); font-size: 1.3rem; }
.document-card h3 { margin-bottom: 4px; font-size: 1rem; }
.document-card p { margin-bottom: 2px; color: var(--muted); }
.document-card small { color: #87919f; }
.empty-state { padding: 55px 20px; border: 1px dashed #cfd6de; border-radius: 14px; text-align: center; }
.empty-state > .icon { width: 45px; height: 45px; color: #a4adb8; }
.empty-state h3 { margin: 12px 0 5px; }
.client-profile-card { max-width: 900px; }
.field small { color: var(--muted); }

/* Toasts & reveal */
.toast-stack { position: fixed; z-index: 4000; top: 98px; right: 20px; width: min(420px, calc(100% - 40px)); display: grid; gap: 10px; }
.toast { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 15px 16px; border-left: 4px solid var(--brand-primary); border-radius: 10px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.toast-success { border-left-color: #2a9d63; }
.toast-error { border-left-color: #c83c2e; }
.toast-warning { border-left-color: #dc9217; }
.toast button { border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
    .site-nav { gap: 0; }
    .nav-link { padding-inline: 10px; font-size: .8rem; }
    .nav-link::after { left: 10px; right: 10px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: .85fr 1.15fr; }
    .map-card { grid-column: 1 / -1; }
    .map-card iframe { height: 390px; }
}

@media (max-width: 900px) {
    .section { padding: 80px 0; }
    .mobile-menu-toggle { display: flex; }
    .site-nav { position: fixed; z-index: 999; inset: 82px 0 auto; display: grid; gap: 0; padding: 18px 20px 26px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 35px rgba(7,26,51,.12); transform: translateY(-140%); opacity: 0; visibility: hidden; transition: .25s ease; }
    .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { min-height: 48px; padding: 0 8px; border-bottom: 1px solid var(--line); }
    .nav-link::after { left: 0; right: auto; bottom: 8px; width: 3px; height: 32px; transform: scaleY(0); }
    .nav-link:hover::after, .nav-link.is-active::after { transform: scaleY(1); }
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-copy { padding: 80px 0 25px; }
    .hero-visual { min-height: 420px; padding: 20px 0 48px; }
    .hero-visual img { width: 100%; height: 460px; object-fit: cover; }
    .solution-card { grid-template-columns: 1fr; }
    .solution-image { height: 270px; }
    .split-intro { grid-template-columns: 1fr; gap: 45px; }
    .realisation-grid { grid-template-columns: repeat(2, 1fr); }
    .history-grid { grid-template-columns: 1fr; }
    .history-image { order: -1; height: auto; aspect-ratio: 3 / 2; }
    .legal-layout { grid-template-columns: 1fr; gap: 40px; }
    .legal-summary { position: static; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 35px; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 72px; }
    .brand img { width: 180px; }
    .site-nav { top: 72px; }
    .home-hero h1 { font-size: clamp(2.35rem, 10.5vw, 2.65rem); overflow-wrap: anywhere; }
    .hero-copy { padding-top: 62px; }
    .hero-actions { display: grid; }
    .hero-actions .button { width: 100%; }
    .hero-visual { min-height: 300px; }
    .hero-visual img { height: 340px; }
    .solution-grid { grid-template-columns: 1fr; }
    .solution-card { min-height: 0; }
    .solution-content { padding: 34px 28px; }
    .page-hero { padding: 70px 0 45px; }
    .feature-row { grid-template-columns: 44px 1fr; }
    .feature-icon { width: 42px; height: 42px; }
    .realisation-grid { gap: 12px; }
    .realisation-card span { padding: 12px; font-size: .86rem; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { display: grid; grid-template-columns: 125px 1fr; }
    .service-image { height: 100%; aspect-ratio: auto; }
    .service-body { padding: 22px 18px; }
    .service-icon { display: none; }
    .service-body h3 { margin-top: 0; }
    .history-page { padding: 30px 0 70px; }
    .history-image { height: auto; }
    .history-copy { padding: 38px 27px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-card, .contact-details, .map-card { padding: 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding: 20px 0; }
    .login-card, .auth-public-card { padding: 30px 24px; }
    .client-topbar-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
    .client-topbar nav { width: 100%; overflow-x: auto; }
    .client-welcome { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
    .client-company { width: 100%; }
    .client-documents, .client-profile-card { padding: 24px; }
    .document-card { grid-template-columns: 45px 1fr; }
    .document-card .button { grid-column: 1 / -1; width: 100%; }
}

/* Validation et micro-interactions */
.was-validated input:invalid,
.was-validated textarea:invalid,
.was-validated select:invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid { border-color: #c83c2e; box-shadow: 0 0 0 3px rgba(200,60,46,.1); }
.toast.is-leaving { opacity: 0; transform: translateX(18px); transition: opacity .2s ease, transform .2s ease; }
.mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open, body.lightbox-open { overflow: hidden; }
