@font-face { font-family: "DM Sans"; src: url("public/fonts/dm-sans-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("public/fonts/dm-sans-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("public/fonts/dm-sans-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("public/fonts/dm-sans-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Italiana"; src: url("public/fonts/italiana-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --ink: #1d211e;
  --ink-soft: #343a39;
  --cream: #f1eee5;
  --paper: #fcfaf6;
  --copper: #9a5535;
  --copper-dark: #57382a;
  --sage: #263f36;
  --gold: #c6893c;
  --line: #d2c0a7;
  --muted: #5f625e;
  --success: #435a49;
  --danger: #a83c31;
  --shadow: 0 26px 70px rgba(23, 24, 21, 0.12);
  --font-display: "Italiana", "Times New Roman", serif;
  --font-ui: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-loader { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; background: var(--cream); opacity: 1; visibility: visible; transition: opacity .35s ease, visibility .35s ease; }
.site-loader-done { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader-mark { width: clamp(210px,24vw,290px); height: clamp(210px,24vw,290px); position: relative; display: grid; place-items: center; filter: drop-shadow(0 20px 35px rgba(26,32,27,.13)); }
.site-loader-mark img { width: 46%; height: 32%; position: relative; z-index: 2; object-fit: contain; animation: loaderLogo 1.8s ease-in-out infinite; }
.site-loader-mark span { position: absolute; inset: 4px; border: 6px solid transparent; border-top-color: var(--copper); border-left-color: color-mix(in srgb,var(--copper) 42%,transparent); border-radius: 50%; animation: loaderOrbit 1.15s linear infinite; }
.site-loader-mark span:nth-child(2) { inset: 24px; border-width: 5px; border-top-color: var(--gold); border-right-color: var(--gold); animation-duration: 1.85s; animation-direction: reverse; }
.site-loader-mark span:nth-child(3) { inset: 48px; border-width: 4px; border-bottom-color: var(--sage); border-left-color: var(--sage); animation-duration: 1.42s; animation-delay: -.55s; }
@keyframes loaderOrbit { to { transform: rotate(360deg); } }
@keyframes loaderLogo { 50% { transform: scale(1.055); } }
@media (prefers-reduced-motion: reduce) { .site-loader-mark span { animation-duration: .01ms; } }
svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.view { min-height: 100vh; }
::selection { background: var(--copper); color: white; }
:focus-visible { outline: 3px solid #7a3f25; outline-offset: 3px; }
.portal-sidebar :focus-visible { outline-color: #f0c66c; }
.hero-nav:focus-visible, .hero-thumb:focus-visible { outline-color: white; box-shadow: 0 0 0 5px var(--ink); }

.announcement { height: 34px; padding: 0 4.5vw; display: flex; justify-content: flex-end; align-items: center; gap: 22px; background: var(--ink); color: rgba(255,255,255,.66); font-size: 11px; letter-spacing: .06em; }
.announcement a { display: flex; align-items: center; gap: 7px; color: white; font-weight: 600; }
.announcement svg { width: 14px; transition: transform .2s ease; }
.announcement a:hover svg { transform: translateX(3px); }
.site-header { height: 88px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; border-bottom: 1px solid rgba(23,24,21,.13); background: rgba(244,240,231,.92); backdrop-filter: blur(18px); }
.site-header.sticky { position: fixed; top: 0; left: 0; right: 0; height: 74px; box-shadow: 0 10px 35px rgba(23,24,21,.08); animation: slideDown .35s ease both; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; position: relative; border: 1px solid var(--ink); transform: rotate(45deg); }
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(23,24,21,.35); }
.brand-mark span { transform: rotate(-45deg); font-family: var(--font-display); font-size: 16px; letter-spacing: -1px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 42px); margin-left: auto; margin-right: clamp(24px, 3.6vw, 62px); }
.main-nav a { position: relative; font-size: 12px; font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--copper); transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button { min-height: 43px; padding: 0 19px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .015em; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button svg { transition: transform .2s ease; }
.button:hover svg { transform: translateX(3px); }
.button:active { transform: translateY(1px); }
.button-dark { background: var(--ink); color: white; border-color: var(--ink); }
.button-dark:hover { background: var(--copper); border-color: var(--copper); }
.button-copper { background: var(--copper); color: white; border-color: var(--copper); }
.button-copper:hover { background: var(--copper-dark); border-color: var(--copper-dark); box-shadow: 0 12px 26px rgba(111,57,31,.18); }
.button-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.button-cream:hover { background: white; }
.button-ghost { color: var(--ink); }
.button-ghost:hover { background: rgba(23,24,21,.06); }
.button-outline { border-color: var(--ink); }
.button-outline:hover { background: var(--ink); color: white; }
.button-outline span { color: var(--muted); font-size: 10px; }
.button-outline:hover span { color: rgba(255,255,255,.62); }
.button-large { min-height: 53px; padding: 0 26px; }
.button-xl { min-height: 62px; padding: 0 32px; font-size: 13px; }
.button-full { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; cursor: pointer; }
.nav-gallery-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
.one-screen-home .main-nav .nav-gallery-button { font-size: 10px; }
@media (min-width: 2200px) and (min-height: 1080px) { .one-screen-home .main-nav .nav-gallery-button { font-size: 16px; } }

.hero { min-height: calc(100vh - 122px); padding: clamp(70px, 8vw, 122px) 4.5vw 66px; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(500px, 1.08fr); gap: clamp(50px, 7vw, 120px); align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ""; width: 34vw; height: 34vw; position: absolute; left: -19vw; top: -4vw; border: 1px solid rgba(149,83,51,.17); border-radius: 50%; box-shadow: 0 0 0 80px rgba(149,83,51,.025), 0 0 0 160px rgba(149,83,51,.018); pointer-events: none; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--copper); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .24em; }
.eyebrow > span { width: 28px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .builder-copy h2, .atelier-copy h2, .contact-intro h2 { margin: 24px 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -.045em; line-height: .93; }
.hero h1 { font-size: clamp(62px, 6.25vw, 105px); }
em { color: var(--copper); font-weight: 400; }
.hero-copy > p { max-width: 565px; margin: 0; color: #5e5b54; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.65; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 12px; font-weight: 600; border-bottom: 1px solid rgba(23,24,21,.4); padding-bottom: 5px; }
.text-link span { font-size: 16px; }
.hero-proof { margin-top: clamp(48px, 6vw, 78px); padding-top: 24px; max-width: 625px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.hero-proof > div { display: flex; align-items: center; gap: 10px; }
.hero-proof > div:first-child strong { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1; }
.hero-proof span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.hero-proof span strong { color: var(--ink); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.proof-separator { width: 1px; height: 38px; background: var(--line); }
.label-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--success) !important; border: 1px solid var(--success); border-radius: 50%; font-size: 12px !important; }
.label-icon.leaf { color: var(--copper) !important; border-color: var(--copper); }
.hero-visual { min-height: 650px; position: relative; perspective: 1100px; }
.hero-image-wrap { width: 88%; height: 610px; position: absolute; top: 0; right: 0; overflow: hidden; background: #d7d2c9; cursor: grab; transform-style: preserve-3d; transition: transform .35s ease; }
.hero-image-wrap:active { cursor: grabbing; }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(14,18,14,.28)); pointer-events: none; }
.hero-image-wrap > img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; transition: opacity .32s ease, transform 1.2s cubic-bezier(.2,.8,.2,1); }
.hero-image-wrap:hover > img { transform: scale(1.035); }
.image-index { position: absolute; z-index: 1; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 10px; color: white; font-size: 9px; letter-spacing: .12em; }
.image-index i { width: 45px; height: 1px; background: rgba(255,255,255,.7); }
.vertical-caption { position: absolute; right: -42px; top: 78px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .18em; transform: rotate(90deg); transform-origin: right top; }
.hero-photo-caption { max-width: 65%; position: absolute; z-index: 2; left: 24px; bottom: 24px; display: flex; flex-direction: column; color: white; pointer-events: none; }
.hero-photo-caption span { margin-bottom: 6px; color: rgba(255,255,255,.7); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; }
.hero-photo-caption strong { font-family: var(--font-display); font-size: clamp(22px,2vw,32px); font-weight: 400; }
.hero-photo-nav { position: absolute; z-index: 3; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero-photo-nav .image-index { position: static; }
.hero-nav { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(29,33,30,.28); color: white; cursor: pointer; backdrop-filter: blur(8px); }
.hero-nav:hover { background: white; color: var(--ink); }
.hero-photo-strip { width: 90px; position: absolute; z-index: 4; left: 0; top: 56px; display: grid; gap: 8px; }
.hero-thumb { height: 67px; padding: 0; overflow: hidden; border: 2px solid var(--paper); background: var(--ink); box-shadow: 0 8px 24px rgba(29,33,30,.15); opacity: .62; cursor: pointer; transition: opacity .2s, transform .2s, border-color .2s; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb:hover, .hero-thumb.active { opacity: 1; transform: translateX(8px); border-color: var(--gold); }
.hero-play-hint { margin: 0; position: absolute; left: 118px; bottom: 4px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.hero-play-hint span { width: 28px; height: 1px; background: var(--copper); }
.hero-scroll { position: absolute; bottom: 22px; left: 4.5vw; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .2em; transform: rotate(-90deg) translateY(100%); transform-origin: left bottom; }
.hero-scroll span { width: 42px; height: 1px; background: var(--muted); }

.marquee { overflow: hidden; padding: 18px 0; background: var(--copper); color: var(--cream); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 28px; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 18px; }
.marquee i { font-style: normal; font-size: 9px; opacity: .7; }
.section-pad { padding: clamp(90px, 10vw, 160px) 7vw; }
.section-heading { margin-bottom: clamp(50px, 6vw, 88px); display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.section-heading h2, .builder-copy h2, .atelier-copy h2, .contact-intro h2 { font-size: clamp(50px, 5vw, 78px); }
.section-heading > p { max-width: 420px; margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.expertise { background: var(--paper); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-card { min-height: 420px; padding: 30px; position: relative; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .35s ease, color .35s ease; }
.expertise-feature { grid-row: span 2; min-height: 840px; padding: 0; color: white; }
.expertise-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,16,14,.78), transparent 60%); }
.expertise-feature .card-photo, .expertise-feature .card-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.expertise-card .card-number { position: relative; z-index: 2; color: var(--copper); font-size: 9px; letter-spacing: .12em; }
.expertise-feature .card-number { margin: 30px; color: white; }
.card-body { position: relative; z-index: 2; }
.expertise-feature .card-body { padding: 40px; }
.card-body > span { color: var(--copper); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; }
.expertise-feature .card-body > span { color: rgba(255,255,255,.7); }
.card-body h3 { margin: 11px 0 12px; font-family: var(--font-display); font-size: clamp(30px, 2.4vw, 42px); font-weight: 400; }
.card-body p { max-width: 280px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.expertise-feature .card-body p { color: rgba(255,255,255,.72); }
.circle-button { width: 48px; height: 48px; display: grid; place-items: center; position: absolute; right: 0; bottom: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.circle-button:hover { background: var(--copper); border-color: var(--copper); color: white; transform: rotate(-10deg); }
.expertise-feature .circle-button { border-color: rgba(255,255,255,.4); }
.line-art { position: absolute; left: 50%; top: 44%; width: 210px; height: 145px; transform: translate(-50%,-50%); opacity: .28; transition: opacity .35s, transform .35s; }
.expertise-card:hover .line-art { opacity: .65; transform: translate(-50%,-52%) scale(1.03); }
.line-art::before, .line-art::after, .line-art span { content: ""; position: absolute; border: 1.5px solid var(--ink); }
.seat-art::before { width: 150px; height: 55px; left: 28px; top: 60px; border-radius: 65% 25% 55% 25%; transform: skewX(-12deg); }
.seat-art::after { width: 125px; height: 25px; left: 45px; top: 92px; border-top: 0; border-radius: 0 0 50% 35%; }
.seat-art span { width: 80px; height: 36px; left: 64px; top: 70px; border-left: 0; border-right: 0; transform: skewX(-10deg); }
.chair-art::before { width: 92px; height: 110px; left: 58px; top: 4px; border-radius: 45% 45% 15% 15%; }
.chair-art::after { width: 125px; height: 52px; left: 42px; top: 89px; border-radius: 25% 25% 8% 8%; }
.chair-art span { width: 142px; height: 40px; left: 34px; top: 70px; border-radius: 22px; }
.boat-art::before { width: 180px; height: 62px; left: 15px; top: 58px; border-radius: 5px 5px 80% 22%; transform: skewX(-10deg); }
.boat-art::after { width: 90px; height: 45px; left: 78px; top: 20px; border-radius: 50% 50% 0 0; }
.boat-art span { width: 175px; height: 1px; left: 22px; top: 88px; border-width: 1px 0 0; transform: rotate(4deg); }

.project-builder-section { min-height: 800px; display: grid; grid-template-columns: .87fr 1.13fr; background: var(--sage); color: white; overflow: hidden; }
.builder-copy { padding: clamp(80px, 8vw, 140px) clamp(55px, 7vw, 115px); }
.kicker-light { color: var(--gold); }
.builder-copy h2 { margin-top: 22px; }
.builder-copy h2 em, .atelier-copy h2 em { color: var(--gold); }
.builder-copy > p { max-width: 525px; color: rgba(255,255,255,.66); line-height: 1.75; font-size: 14px; }
.builder-copy > .button { margin-top: 25px; }
.builder-steps { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 35px; }
.builder-steps > div { display: flex; gap: 14px; align-items: flex-start; }
.builder-steps b { color: var(--gold); font-size: 9px; letter-spacing: .12em; }
.builder-steps span { display: flex; flex-direction: column; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.55; }
.builder-steps strong { margin-bottom: 4px; color: white; font-size: 11px; }
.builder-demo { padding: 90px 7vw 90px 5vw; display: flex; flex-direction: column; justify-content: center; position: relative; background: #2b332d; }
.builder-demo::before { content: ""; width: 450px; height: 450px; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.012); }
.demo-window { max-width: 560px; padding: 36px; position: relative; z-index: 1; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.demo-top { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 14px; }
.mini-brand { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: white; font-family: var(--font-display); font-size: 15px; }
.demo-top div:nth-child(2) { display: flex; flex-direction: column; }
.demo-top span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.demo-top strong { margin-top: 4px; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.demo-percent { font-size: 12px !important; font-weight: 700; }
.demo-progress { height: 2px; margin: 23px 0 28px; background: var(--line); }
.demo-progress i { width: 50%; height: 100%; display: block; background: var(--copper); }
.material-cards { display: grid; gap: 10px; }
.material-card { min-height: 75px; padding: 10px 14px 10px 10px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); }
.material-card.selected { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
.material-swatch { width: 56px; height: 54px; background-color: #9b5737; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 4px 4px; }
.leather-black { background-color: #292a27; }
.synthetic { background-color: #c2b49f; background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,.05) 3px); }
.material-card div { display: flex; flex-direction: column; }
.material-card strong { font-family: var(--font-display); font-size: 17px; font-weight: 400; }
.material-card small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.material-card > i { width: 22px; height: 22px; display: grid; place-items: center; background: var(--copper); color: white; border-radius: 50%; font-size: 10px; font-style: normal; }
.demo-nav { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.demo-nav strong { color: var(--copper); }
.demo-note { min-width: 300px; padding: 15px 18px; position: relative; z-index: 2; align-self: flex-end; margin: -18px -35px 0 0; display: flex; align-items: center; gap: 12px; background: white; color: var(--ink); box-shadow: 0 16px 40px rgba(0,0,0,.17); }
.demo-note > svg { width: 30px; height: 30px; padding: 7px; background: rgba(59,103,77,.1); color: var(--success); border-radius: 50%; }
.demo-note span { display: flex; flex-direction: column; font-size: 9px; color: var(--muted); }
.demo-note strong { margin-bottom: 3px; color: var(--ink); font-size: 10px; }

.portfolio { background: var(--cream); }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 285px; gap: 16px; }
.portfolio-item { margin: 0; position: relative; overflow: hidden; background: #ddd5c8; }
.portfolio-item.tall { grid-row: span 2; }
.portfolio-item.wide { grid-column: span 2; }
.portfolio-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,16,14,.74), transparent 58%); opacity: .8; transition: opacity .35s; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.portfolio-item:hover img { transform: scale(1.035); }
.portfolio-item:hover::after { opacity: 1; }
.portfolio-item figcaption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: white; display: flex; flex-direction: column; }
.portfolio-item figcaption span { color: rgba(255,255,255,.68); font-size: 8px; text-transform: uppercase; letter-spacing: .18em; }
.portfolio-item figcaption strong { margin-top: 7px; font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.center-action { margin-top: 48px; display: flex; justify-content: center; }

.atelier { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 800px; background: var(--ink); color: white; }
.atelier-image { margin: 0; min-height: 800px; position: relative; overflow: hidden; }
.atelier-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, rgba(23,24,21,.4)); }
.atelier-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.04); }
.atelier-image > span { position: absolute; z-index: 2; left: 28px; bottom: 34px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.4); color: white; font-size: 8px; text-transform: uppercase; letter-spacing: .18em; }
.atelier-copy { padding: clamp(80px, 8vw, 135px) clamp(55px, 7vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.atelier-copy .lead { margin-top: 0; color: rgba(255,255,255,.86); font-family: var(--font-display); font-size: 22px; line-height: 1.5; }
.atelier-copy > p:not(.lead) { color: rgba(255,255,255,.53); font-size: 13px; line-height: 1.75; }
.atelier-copy blockquote { margin: 38px 0; padding: 22px 0 22px 30px; border-left: 1px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-size: 18px; line-height: 1.55; }
.signatures { display: flex; gap: 45px; }
.signatures span { display: flex; flex-direction: column; color: rgba(255,255,255,.55); font-size: 9px; }
.signatures strong { margin-bottom: 6px; color: white; font-family: var(--font-display); font-size: 19px; font-weight: 400; }

.contact-section { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 9vw; background: var(--paper); }
.contact-intro > p { max-width: 540px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions > .button { margin-bottom: 16px; }
.contact-tile { padding: 22px 0; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.contact-tile > svg { width: 36px; height: 36px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; color: var(--copper); transition: background .2s, color .2s; }
.contact-tile:hover > svg { background: var(--copper); color: white; border-color: var(--copper); }
.contact-tile span { display: flex; flex-direction: column; }
.contact-tile small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.contact-tile strong { margin-top: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 400; }

.site-footer { padding: 70px 5vw 22px; background: #10110f; color: white; }
.footer-main { padding-bottom: 60px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 5vw; }
.brand-mark-light { border-color: white; }
.brand-mark-light::after { border-color: rgba(255,255,255,.34); }
.footer-brand h3 { margin: 24px 0 14px; font-family: var(--font-display); font-size: 32px; line-height: .95; font-weight: 400; }
.footer-brand p, .footer-col p { color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-col > small { margin-bottom: 8px; color: var(--gold); font-size: 8px; text-transform: uppercase; letter-spacing: .2em; }
.footer-col a, .footer-link { padding: 0; border: 0; background: none; color: rgba(255,255,255,.68); font-size: 10px; cursor: pointer; transition: color .2s; }
.footer-col a:hover, .footer-link:hover { color: white; }
.footer-link { display: flex; gap: 8px; align-items: center; }
.footer-link svg { width: 13px; }
.footer-col > span { color: rgba(255,255,255,.55); font-size: 8px; }
.public-payment-solution strong{font-size:11px;color:white}.public-payment-solution[hidden]{display:none}.public-payment-solution .secure-note{display:flex;align-items:center;gap:6px}.public-payment-solution svg{width:13px;height:13px;fill:none;stroke:currentColor}.payment-disclosure{display:block;margin-top:14px;color:var(--muted);line-height:1.5}
.public-payment-badge{position:fixed;right:18px;bottom:16px;z-index:20;display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:#171b18;color:white;box-shadow:0 10px 30px rgba(0,0,0,.2)}.public-payment-badge[hidden]{display:none}.public-payment-badge svg{width:20px;height:20px;fill:none;stroke:#83c8aa;stroke-width:1.8}.public-payment-badge span{display:grid;gap:2px}.public-payment-badge small{color:#aab6af;font-size:8px;text-transform:uppercase;letter-spacing:.12em}.public-payment-badge strong{font-size:10px}@media(max-width:600px){.public-payment-badge{right:10px;bottom:10px;left:10px;justify-content:center}}
.secure-note { margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.secure-note svg { width: 13px; color: var(--gold); }
.footer-bottom { min-height: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 8px; }
.footer-bottom div { display: flex; gap: 24px; }
.footer-bottom button { border: 0; padding: 0; background: none; color: inherit; font-size: inherit; cursor: pointer; }

/* Login and onboarding */
.modal-shell { --login-shell-gap: clamp(12px,2.5vmin,24px); position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: var(--login-shell-gap); overflow: hidden; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14,15,13,.74); backdrop-filter: blur(8px); animation: fadeIn .25s ease; }
.login-panel { width: min(970px, calc(100vw - 48px), calc(123vh - 59px)); width: min(970px, calc(100vw - 48px), calc(123dvh - 59px)); height: min(810px, calc(100vh - 48px)); height: min(810px, calc(100dvh - 48px)); min-width: 0; min-height: 0; max-height: none; position: relative; z-index: 1; display: grid; grid-template-columns: .93fr 1.07fr; background: var(--paper); box-shadow: 0 35px 100px rgba(0,0,0,.3); overflow: hidden; animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
.login-panel { width: min(440px,calc(100vw - 28px)); height: auto; max-height: calc(100dvh - 28px); display: block; }
.login-panel .login-content { height: auto; padding: 34px 38px; }
.login-panel .login-brand { margin-bottom: 22px; }
.login-panel .login-content h2 { margin: 9px 0; font-size: 40px; }
.modal-close { width: clamp(38px,calc(6dvh - 10px),44px); height: clamp(38px,calc(6dvh - 10px),44px); position: absolute; z-index: 4; right: clamp(10px,1.7dvh,16px); top: clamp(10px,1.7dvh,16px); display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(252,250,246,.92); cursor: pointer; }
.login-visual { min-width: 0; min-height: 0; height: 100%; position: relative; overflow: hidden; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,16,14,.75), transparent 65%); }
.login-visual img { width: 100%; height: 100%; object-fit: cover; }
.login-quote { position: absolute; z-index: 2; left: clamp(22px,calc(5dvh - 10px),35px); right: clamp(22px,calc(5dvh - 10px),35px); bottom: clamp(24px,calc(6dvh - 14px),40px); color: white; }
.login-quote > span { color: var(--gold); font-family: var(--font-display); font-size: clamp(38px,calc(5dvh + 4px),48px); line-height: .5; }
.login-quote p { font-family: var(--font-display); font-size: clamp(18px,calc(2dvh + 4px),22px); line-height: 1.45; }
.login-content { min-width: 0; min-height: 0; height: 100%; padding: clamp(24px,calc(14dvh - 70px),56px) clamp(28px,calc(13dvh - 42px),75px); display: flex; flex-direction: column; justify-content: center; justify-content: safe center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(95,98,94,.45) transparent; }
.login-content::-webkit-scrollbar { width: 6px; }
.login-content::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(95,98,94,.42); }
.login-content > form, .login-brand, .invite-notice { flex: 0 0 auto; }
.login-brand { margin-bottom: clamp(18px,calc(8dvh - 28px),44px); }
.login-brand .brand-logo { width: clamp(82px,calc(15dvh - 23px),112px); height: auto; aspect-ratio: 112 / 63; }
.login-content .kicker { font-size: clamp(8px,calc(.6dvh + 4.5px),10px); }
.login-content h2 { margin: clamp(8px,calc(2dvh - 2px),15px) 0; font-family: var(--font-display); font-size: clamp(42px,calc(5.6dvh + 4px),53px); font-weight: 400; line-height: .95; }
.login-content p { color: var(--muted); font-size: clamp(11px,calc(.5dvh + 7.5px),12px); line-height: 1.65; }
.invite-notice { margin-bottom: clamp(14px,calc(5dvh - 20px),25px); padding: clamp(10px,1.6dvh,14px); display: flex; align-items: center; gap: 12px; background: #f2e8dc; border-left: 2px solid var(--copper); }
.invite-notice svg { color: var(--copper); }
.invite-notice div { display: flex; flex-direction: column; }
.invite-notice strong { font-size: 11px; }
.invite-notice span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.google-button { width: 100%; height: clamp(40px,calc(5dvh + 5px),50px); margin-top: clamp(10px,calc(4dvh - 18px),18px); display: flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 11px; font-weight: 700; transition: border-color .2s, box-shadow .2s; }
.google-button:hover { border-color: #a9a196; box-shadow: 0 7px 20px rgba(23,24,21,.07); }
.login-content .button { min-height: clamp(40px,calc(1.5dvh + 29.5px),43px); }
.google-icon { width: 19px; height: 19px; position: relative; display: block; border-radius: 50%; background: conic-gradient(#4285f4 0 25%, #34a853 25% 43%, #fbbc05 43% 68%, #ea4335 68% 100%); }
.google-icon::after { content: ""; width: 9px; height: 9px; position: absolute; left: 5px; top: 5px; background: white; border-radius: 50%; }
.google-icon::before { content: ""; width: 8px; height: 4px; position: absolute; z-index: 1; right: 0; top: 8px; background: #4285f4; }
.or { margin: clamp(10px,calc(4.5dvh - 21.5px),19px) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; }
.or span { height: 1px; background: var(--line); }
.field { margin-bottom: clamp(8px,calc(3dvh - 13px),14px); display: flex; flex-direction: column; gap: clamp(5px,calc(1dvh - 2px),7px); }
.field > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: clamp(40px,calc(3dvh + 19px),46px); padding: 0 13px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: white; color: var(--ink); font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 100px; padding-top: 13px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(149,83,51,.08); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-note { margin: clamp(10px,calc(3.5dvh - 14.5px),17px) 0 0 !important; display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--muted) !important; font-size: 8px !important; }
.auth-note svg { width: 12px; }
.auth-links { margin: -4px 0 clamp(10px,calc(3dvh - 11px),16px); display: flex; justify-content: space-between; gap: 14px; }
.auth-links button, .auth-secondary, .auth-back { padding: 0; border: 0; background: transparent; color: var(--copper); cursor: pointer; font-size: 9px; text-align: left; }
.auth-links button:hover, .auth-secondary:hover, .auth-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-secondary { width: 100%; margin-top: clamp(8px,calc(3dvh - 13px),14px); text-align: center; }
.auth-back { margin-bottom: clamp(12px,calc(4dvh - 14px),22px); color: var(--muted); }
.bot-field { width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.check-field { margin: 4px 0 clamp(10px,calc(3dvh - 9px),18px); display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.check-field input { margin: 2px 0 0; accent-color: var(--copper); }

/* Configurator */
.configurator-shell { position: fixed; z-index: 90; inset: 0; display: flex; flex-direction: column; background: var(--cream); animation: fadeIn .25s ease; }
.config-header { height: 82px; padding: 0 28px; display: grid; grid-template-columns: 280px 1fr 280px; align-items: center; border-bottom: 1px solid var(--line); background: rgba(252,250,246,.96); }
.config-title { text-align: center; display: flex; flex-direction: column; }
.config-title small { color: var(--copper); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.config-title strong { margin-top: 5px; font-family: var(--font-display); font-size: 18px; font-weight: 400; }
.config-save { display: flex; align-items: center; justify-content: flex-end; gap: 25px; }
.config-save > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.config-save > span i { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.config-save button, .gallery-modal header button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.config-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px minmax(450px, 1fr) 290px; }
.config-sidebar { padding: 30px 20px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--paper); }
.config-step-list { display: grid; }
.config-step { width: 100%; min-height: 44px; padding: 0; display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 9px; position: relative; border: 0; background: transparent; color: #666a65; text-align: left; font-size: 9px; }
.config-step[data-go-step] { cursor: pointer; }
.config-step:disabled { opacity: 1; }
.config-step:not(:last-child)::after { content: ""; width: 1px; height: 17px; position: absolute; left: 13px; top: 27px; background: var(--line); }
.config-step i { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 9px; font-style: normal; }
.config-step span { padding-top: 7px; font-weight: 600; }
.config-step.active { color: var(--ink); }
.config-step.active i { background: var(--copper); border-color: var(--copper); color: white; }
.config-step.done { color: var(--success); }
.config-step.done i { background: var(--success); border-color: var(--success); color: white; }
.config-help { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; background: var(--sage); color: white; border-radius: 50%; font-size: 9px; }
.config-help div { display: flex; flex-direction: column; }
.config-help small { color: var(--muted); font-size: 8px; }
.config-help strong { margin: 3px 0; font-size: 9px; }
.config-help a { color: var(--copper); font-size: 8px; }
.config-main { min-width: 0; overflow-y: auto; padding: 32px clamp(28px, 3.4vw, 58px) 78px; scrollbar-gutter: stable; }
.question-head { max-width: 760px; margin-bottom: 22px; }
.step-overline { color: var(--copper); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; }
.question-head h2 { margin: 8px 0; font-family: var(--font-display); font-size: clamp(34px, 3.3vw, 46px); line-height: 1.02; font-weight: 400; }
.question-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.choice-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 10px 14px; }
.choice-card { min-width: 0; min-height: 92px; padding: 12px 14px; position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 12px; border: 0; border-bottom: 1px solid rgba(154,85,53,.24); background: transparent; text-align: left; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.choice-card:hover { background: rgba(252,250,246,.72); color: var(--copper-dark); }
.choice-card.selected { border-bottom-color: transparent; background: var(--paper); box-shadow: inset 3px 0 var(--copper), 0 7px 18px rgba(23,24,21,.06); }
.choice-card.selected::after { content: "✓"; width: 21px; height: 21px; position: absolute; right: 10px; top: 10px; display: grid; place-items: center; border-radius: 50%; background: var(--copper); color: white; font-size: 10px; }
.choice-card-with-icon { grid-template-columns: 46px minmax(0,1fr); }
.choice-icon { width: 42px; height: 36px; position: static; grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; align-self: center; color: var(--copper); }
.choice-icon svg { width: 32px; height: 32px; stroke-width: 1.4; }
.choice-card-with-icon > strong, .choice-card-with-icon > small { grid-column: 2; }
.choice-card strong { min-width: 0; font-family: var(--font-ui); font-size: 13px; font-weight: 600; line-height: 1.2; }
.choice-card small { min-width: 0; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.choice-card.compact { min-height: 92px; justify-content: center; }
.choice-card.compact strong { font-size: 15px; }
.choice-card.compact .choice-icon { display: none; }
.model-card { min-height: 104px; padding: 9px; grid-template-columns: 88px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 12px; }
.model-card .model-photo, .model-card .model-trait { width: 80px; height: 66px; position: relative; inset: auto; grid-column: 1; grid-row: 1 / 3; align-self: center; overflow: hidden; border-radius: 6px; background: #ddd4c6; }
.model-card .model-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.model-card:hover .model-photo img { transform: scale(1.035); }
.model-card .model-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -18px 22px rgba(29,33,30,.12); pointer-events: none; }
.model-card.has-photo .model-trait { display: none; }
.model-trait { opacity: .62; }
.model-trait::before, .model-trait::after, .model-trait i { content: ""; position: absolute; display: block; border: 1.4px solid var(--copper); }
.model-trait::before { width: 56px; height: 22px; left: 10px; top: 15px; border-radius: 60% 25% 35% 20%; transform: skewX(-9deg); }
.model-trait::after { width: 70px; height: 1px; left: 5px; top: 40px; border-width: 1px 0 0; }
.model-trait i { width: 36px; height: 15px; left: 20px; top: 19px; border-left: 0; border-right: 0; }
.model-trait.trait-1::before { width: 45px; height: 39px; left: 17px; top: 2px; border-radius: 45% 45% 12% 12%; transform: none; }
.model-trait.trait-1::after { width: 68px; height: 18px; left: 6px; top: 29px; border-radius: 40% 40% 8% 8%; }
.model-trait.trait-1 i { width: 1px; height: 28px; left: 39px; top: 8px; border-width: 0 0 0 1px; }
.model-trait.trait-2::before { width: 65px; height: 34px; left: 7px; top: 5px; border-radius: 12px 12px 3px 3px; transform: none; }
.model-trait.trait-2::after { width: 75px; height: 11px; left: 2px; top: 36px; border-radius: 7px; }
.model-trait.trait-2 i { width: 1px; height: 26px; left: 39px; top: 8px; border-width: 0 0 0 1px; }
.model-trait.trait-3::before { width: 43px; height: 43px; left: 18px; top: 2px; border-radius: 50%; transform: none; }
.model-trait.trait-3::after { width: 25px; height: 25px; left: 27px; top: 11px; border-radius: 50%; }
.model-trait.trait-3 i { width: 1px; height: 41px; left: 39px; top: 3px; border-width: 0 0 0 1px; }
.model-card.selected .model-trait { opacity: 1; }
.model-card > strong, .model-card > small { grid-column: 2; }
.subsection-title { margin: 24px 0 11px; display: flex; align-items: center; gap: 12px; font-size: 9px; font-weight: 700; }
.subsection-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.model-fields { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model-fields .field { margin: 0; }
.material-choice { min-height: 88px; padding: 10px; grid-template-columns: 58px minmax(0,1fr); grid-template-rows: repeat(3,auto); column-gap: 11px; }
.material-choice .texture { width: 52px; height: 52px; position: static; inset: auto; grid-column: 1; grid-row: 1 / 4; align-self: center; border-radius: 50%; background-image: url("public/generated/material-swatches-v1.jpg"); background-size: 400% 300%; background-position: var(--swatch-x,0%) var(--swatch-y,0%); background-repeat: no-repeat; }
.material-choice > strong, .material-choice > small { grid-column: 2; }
.material-choice[data-value="conseille"] .texture { background-image: linear-gradient(135deg,#9a5535 0 25%,#263f36 25% 50%,#346a78 50% 75%,#e8ddc9 75%); background-size: auto; }
.compatibility-note { margin: 10px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.color-role-tabs { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.color-role-tabs button { min-height: 34px; padding: 0 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; }
.color-role-tabs button.active { border-color: var(--ink); background: var(--ink); color: white; }
.color-role-tabs i { width: 8px; height: 8px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--role-swatch,var(--copper)); }
.palette-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.color-choice { width: auto; min-width: 0; min-height: 65px; padding: 7px 4px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: center; font-size: 8px; }
.color-choice i { width: 38px; height: 38px; margin: 0 auto 6px; display: block; position: relative; border: 1px solid rgba(23,24,21,.12); border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 3px var(--paper); }
.color-choice.selected i::after { content: "✓"; position: absolute; inset: 4px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: var(--check,white); font-size: 12px; }
.color-choice.selected { color: var(--copper); font-weight: 700; }
.pattern-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pattern-choice { min-height: 86px; padding: 8px; border: 0; border-bottom: 1px solid rgba(154,85,53,.24); background: transparent; cursor: pointer; }
.pattern-choice.selected { border-bottom-color: transparent; background: var(--paper); box-shadow: inset 3px 0 var(--copper); }
.pattern-sample { height: 43px; margin-bottom: 7px; background-color: #333532; }
.pattern-sample.simple { background-image: linear-gradient(90deg, transparent 49%, #bda181 50%, transparent 51%); }
.pattern-sample.double { background-image: linear-gradient(90deg, transparent 43%, #bda181 44%, transparent 45% 54%, #bda181 55%, transparent 56%); }
.pattern-sample.diamond { background-image: repeating-linear-gradient(45deg,transparent 0 14px,#a98a68 15px 16px),repeating-linear-gradient(-45deg,transparent 0 14px,#a98a68 15px 16px); }
.pattern-sample.ribs { background-image: repeating-linear-gradient(90deg,transparent 0 16px,#a98a68 17px 18px); }
.pattern-sample.honey { background-image: radial-gradient(circle at 50% 0,#a98a68 1px,transparent 2px); background-size: 12px 12px; }
.pattern-choice strong { font-size: 9px; }
.toggle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle-card { min-height: 68px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid rgba(154,85,53,.24); background: transparent; cursor: pointer; text-align: left; }
.toggle-card i { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #aaa399; font-style: normal; }
.toggle-card.selected { border-bottom-color: transparent; background: var(--paper); box-shadow: inset 3px 0 var(--copper); }
.toggle-card.selected i { background: var(--copper); border-color: var(--copper); color: white; }
.toggle-card span { display: flex; flex-direction: column; }
.toggle-card strong { font-size: 10px; }
.toggle-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.upload-zone { min-height: 130px; margin-top: 20px; padding: 8px; display: flex; align-items: stretch; border: 1px dashed #777b75; background: rgba(255,255,255,.35); color: var(--muted); }
.upload-trigger { width: 100%; min-height: 112px; padding: 17px; display: flex; align-items: center; justify-content: center; gap: 15px; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.upload-zone svg { width: 25px; height: 25px; color: var(--copper); }
.upload-zone span { display: flex; flex-direction: column; font-size: 9px; }
.upload-zone strong { color: var(--ink); font-size: 11px; }
.summary-card { padding: 25px; background: var(--paper); border: 1px solid var(--line); }
.summary-row { padding: 13px 0; display: grid; grid-template-columns: 125px 1fr auto; gap: 15px; border-bottom: 1px solid var(--line); font-size: 10px; }
.summary-row:last-child { border: 0; }
.summary-row span { color: var(--muted); }
.summary-row strong { font-weight: 600; }
.summary-row button { border: 0; background: transparent; color: var(--copper); font-size: 8px; cursor: pointer; }
.submit-note { margin-top: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; background: #edf2ed; color: var(--success); font-size: 9px; line-height: 1.5; }
.submit-note svg { flex: 0 0 auto; }
.config-preview { padding: 26px 20px 80px; overflow: hidden; border-left: 1px solid var(--line); background: #ede7dc; }
.preview-label { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; }
.preview-canvas { height: 210px; margin: 12px 0 16px; position: relative; display: block; background: #d8d0c4; overflow: hidden; border-radius: 9px; }
.preview-canvas::before { display: none; }
.preview-photo-canvas img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.preview-photo-canvas::after { content: ""; position: absolute; inset: 32% 0 0; background: linear-gradient(to bottom,transparent,rgba(20,24,21,.72)); pointer-events: none; }
.preview-photo-canvas figcaption { max-width: calc(100% - 24px); position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 11px; display: flex; flex-direction: column; color: white; }
.preview-photo-canvas figcaption span { color: rgba(255,255,255,.76); font-size: 7px; line-height: 1.35; }
.preview-photo-canvas figcaption strong { margin-top: 3px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.preview-role-switch { margin: -5px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.preview-role-switch button { min-width: 0; min-height: 30px; padding: 0 7px; display: flex; align-items: center; gap: 6px; border: 0; border-bottom: 1px solid rgba(23,24,21,.14); background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; text-align: left; }
.preview-role-switch button:hover, .preview-role-switch button.active { background: rgba(252,250,246,.72); color: var(--ink); }
.preview-role-switch button.active { box-shadow: inset 2px 0 var(--copper); }
.preview-role-switch i { width: 11px; height: 11px; flex: 0 0 auto; border: 1px solid rgba(23,24,21,.16); border-radius: 50%; background: var(--role-swatch); }
.preview-canvas .preview-shape { transform: scale(.82); }
.preview-zone { padding: 0; color: inherit; cursor: pointer; transition: filter .2s, outline .2s; }
.preview-zone:hover, .preview-zone.zone-active { filter: brightness(1.09); outline: 2px solid var(--gold); outline-offset: -4px; }
.preview-shape .panel { background-color: var(--accent-color,var(--preview-color)); }
.preview-zone-control { position: absolute; z-index: 3; border: 0; background: transparent; }
.saddle-preview .accent-control { width: 150px; height: 58px; left: 42px; top: 32px; border-radius: 45%; transform: skewX(-9deg); }
.chair-preview .back-accent-control { width: 76px; height: 108px; left: 67px; top: 14px; border-radius: 46% 46% 13% 13%; }
.chair-preview .base-accent-control { width: 128px; height: 42px; left: 41px; top: 129px; border-radius: 28% 28% 8% 8%; }
.bench-preview .back-accent-control { width: 178px; height: 72px; left: 33px; top: 25px; border-radius: 16px 16px 4px 4px; }
.bench-preview .base-accent-control { width: 195px; height: 42px; left: 25px; top: 112px; border-radius: 12px 12px 6px 6px; }
.seat-preview .back-accent-control { width: 76px; height: 112px; left: 59px; top: 21px; border-radius: 43% 43% 15% 15%; }
.seat-preview .base-accent-control { width: 106px; height: 60px; left: 44px; top: 137px; border-radius: 30% 30% 13% 13%; }
.preview-shape .panel { border-color: var(--thread-color,rgba(255,255,255,.55)) !important; }
.preview-shape .back, .preview-shape .base, .preview-shape .saddle, .preview-shape .chair-back, .preview-shape .chair-base, .preview-shape .bench-back, .preview-shape .bench-base { box-shadow: inset 0 0 0 3px var(--piping-color,transparent); }
.preview-shape { position: relative; z-index: 1; filter: drop-shadow(0 18px 14px rgba(23,24,21,.13)); }
.seat-preview { width: 195px; height: 220px; }
.seat-preview .back { width: 122px; height: 128px; position: absolute; left: 36px; top: 13px; border: 2px solid var(--ink); border-radius: 43% 43% 15% 15%; background: var(--preview-color,#955333); overflow: hidden; }
.seat-preview .base { width: 166px; height: 78px; position: absolute; left: 14px; top: 128px; border: 2px solid var(--ink); border-radius: 30% 30% 13% 13%; background: var(--preview-color,#955333); overflow: hidden; }
.seat-preview .panel { position: absolute; inset: 8px 23px; border: 1px solid rgba(255,255,255,.55); border-radius: 40% 40% 10% 10%; }
.seat-preview .base .panel { inset: 9px 30px; border-radius: 25%; }
.preview-shape.pattern-diamond .panel { background-image: repeating-linear-gradient(45deg,transparent 0 11px,rgba(255,255,255,.45) 12px 13px),repeating-linear-gradient(-45deg,transparent 0 11px,rgba(255,255,255,.45) 12px 13px); }
.preview-shape.pattern-ribs .panel { background-image: repeating-linear-gradient(90deg,transparent 0 12px,rgba(255,255,255,.45) 13px 14px); }
.preview-shape.pattern-double .panel { background-image: linear-gradient(90deg,transparent 46%,rgba(255,255,255,.6) 47%,transparent 48% 52%,rgba(255,255,255,.6) 53%,transparent 54%); }
.preview-shape.pattern-honey .panel { background-image: radial-gradient(rgba(255,255,255,.5) 1px,transparent 1.5px); background-size: 9px 9px; }
.saddle-preview { width: 240px; height: 150px; }
.saddle-preview .saddle { width: 220px; height: 82px; position: absolute; left: 7px; top: 20px; overflow: hidden; border: 2px solid var(--ink); border-radius: 65% 24% 52% 22%; background: var(--preview-color,#955333); transform: skewX(-9deg); }
.saddle-preview .panel { position: absolute; inset: 12px 35px; border: 1px solid rgba(255,255,255,.55); border-radius: inherit; }
.saddle-rail { width: 130px; height: 45px; position: absolute; left: 47px; top: 85px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 50% 35%; }
.chair-preview { width: 210px; height: 230px; }
.chair-preview .chair-back { width: 116px; height: 128px; position: absolute; left: 47px; top: 4px; overflow: hidden; border: 2px solid var(--ink); border-radius: 46% 46% 13% 13%; background: var(--preview-color,#955333); }
.chair-preview .chair-base { width: 168px; height: 62px; position: absolute; left: 21px; top: 119px; overflow: hidden; border: 2px solid var(--ink); border-radius: 28% 28% 8% 8%; background: var(--preview-color,#955333); }
.chair-preview .panel { position: absolute; inset: 10px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: inherit; }
.chair-preview .leg { width: 3px; height: 48px; position: absolute; top: 177px; background: var(--ink); }
.chair-preview .leg.one { left: 43px; transform: rotate(5deg); }
.chair-preview .leg.two { right: 43px; transform: rotate(-5deg); }
.bench-preview { width: 245px; height: 190px; }
.bench-preview .bench-back { width: 218px; height: 92px; position: absolute; left: 13px; top: 15px; overflow: hidden; border: 2px solid var(--ink); border-radius: 20px 20px 5px 5px; background: var(--preview-color,#955333); }
.bench-preview .bench-base { width: 235px; height: 62px; position: absolute; left: 5px; top: 102px; overflow: hidden; border: 2px solid var(--ink); border-radius: 16px 16px 7px 7px; background: var(--preview-color,#955333); }
.bench-preview .panel { position: absolute; inset: 10px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: inherit; }
.preview-disclaimer { position: absolute; bottom: 7px; color: var(--muted); font-size: 7px; }
.preview-summary h3 { margin: 5px 0 10px; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.preview-list { display: grid; }
.preview-list div { padding: 8px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(23,24,21,.1); font-size: 8px; }
.preview-list span { color: var(--muted); }
.preview-list strong { text-align: right; font-weight: 600; }
.preview-tip { margin-top: 14px; padding: 11px; background: var(--paper); color: var(--muted); font-size: 7px; line-height: 1.5; }
.preview-tip strong { display: block; margin-bottom: 4px; color: var(--ink); }
.config-footer { height: 64px; padding: 0 22px 0 212px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); background: rgba(252,250,246,.96); }
.back-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.save-exit-button { margin-left: auto; padding: 9px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; }
.save-exit-button:hover { border-color: var(--copper); color: var(--copper); }
.inline-error { margin: 10px 0 0; padding: 10px 12px; border-left: 2px solid var(--danger); background: #f5e7e3; color: var(--danger); font-size: 9px; }
.conditional-questions { margin-top: 24px; padding: 16px; border: 1px solid var(--line); background: rgba(252,250,246,.55); }
.conditional-questions h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; font-weight: 400; }
.conditional-questions > p { margin: 0 0 14px; color: var(--muted); font-size: 8px; }
.question-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.question-chip { padding: 6px 9px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 7px; }
.adaptive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.answer-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.answer-field > span { color: var(--muted); font-size: 8px; font-weight: 700; }
.answer-field input, .answer-field select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 9px; }
.answer-field-wide { grid-column: 1 / -1; }
.answer-options { display: flex; flex-wrap: wrap; gap: 5px; }
.answer-options button { min-height: 31px; padding: 0 9px; border: 1px solid var(--line); background: white; color: var(--muted); cursor: pointer; font-size: 7px; }
.answer-options button.selected { border-color: var(--copper); background: #f2e8dc; color: var(--copper); }
#configMobileProgress { display: none; }

@media (min-width: 1440px) {
  .choice-grid { grid-template-columns: repeat(4,minmax(130px,1fr)); }
}

/* Portal dashboard */
.portal-view { min-height: 100vh; background: #f1eee7; }
.portal-layout { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.portal-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px 20px; display: flex; flex-direction: column; background: var(--ink); color: white; }
.portal-sidebar .brand-mark { border-color: white; }
.portal-sidebar .brand-mark::after { border-color: rgba(255,255,255,.3); }
.portal-sidebar .brand-copy small { color: rgba(255,255,255,.55); }
.portal-nav { margin-top: 48px; display: grid; gap: 4px; }
.portal-nav button { min-height: 43px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: rgba(255,255,255,.47); text-align: left; cursor: pointer; font-size: 10px; }
.portal-nav button svg { width: 16px; }
.portal-nav button:hover, .portal-nav button.active { background: rgba(255,255,255,.08); color: white; }
.portal-nav button.active { box-shadow: inset 2px 0 var(--gold); }
.portal-nav .nav-badge { min-width: 19px; height: 19px; margin-left: auto; display: grid; place-items: center; border-radius: 10px; background: var(--copper); color: white; font-size: 8px; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.user-chip { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--copper); font-size: 9px; }
.user-chip div { display: flex; flex-direction: column; }
.user-chip strong { font-size: 9px; }
.user-chip span { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 7px; }
.user-chip button { border: 0; background: none; color: rgba(255,255,255,.5); cursor: pointer; }
.portal-main { min-width: 0; }
.portal-topbar { height: 76px; padding: 0 3vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ded8ce; background: rgba(252,250,246,.9); backdrop-filter: blur(15px); }
.portal-topbar small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .15em; }
.portal-topbar h1 { margin: 3px 0 0; font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 41px; height: 41px; display: grid; place-items: center; position: relative; border: 1px solid var(--line); background: white; cursor: pointer; }
.icon-button .dot { width: 6px; height: 6px; position: absolute; right: 8px; top: 8px; background: var(--copper); border: 1px solid white; border-radius: 50%; }
.portal-content { padding: 32px 3vw 60px; }
.welcome-strip { margin-bottom: 25px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; background: var(--sage); color: white; }
.welcome-strip h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.welcome-strip p { margin: 0; color: rgba(255,255,255,.55); font-size: 9px; }
.welcome-strip.invite-ready { background: var(--copper); }
.welcome-strip.invite-ready .button { flex: 0 0 auto; }
.date-pill { padding: 10px 13px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.68); font-size: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { min-height: 130px; padding: 19px; position: relative; background: var(--paper); border: 1px solid #e0dad0; }
.metric-card > span { color: var(--muted); font-size: 8px; font-weight: 600; }
.metric-card strong { margin-top: 13px; display: block; font-family: var(--font-display); font-size: 35px; font-weight: 400; }
.metric-card small { color: var(--success); font-size: 8px; }
.metric-card .metric-icon { width: 32px; height: 32px; position: absolute; right: 15px; top: 15px; display: grid; place-items: center; background: #f0ebe2; color: var(--copper); }
.dashboard-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,.7fr); gap: 16px; }
.panel { background: var(--paper); border: 1px solid #e0dad0; }
.panel-head { min-height: 62px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4ded4; }
.panel-head h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.panel-head span { color: var(--muted); font-size: 8px; }
.panel-head button { border: 0; background: transparent; color: var(--copper); cursor: pointer; font-size: 8px; }
.project-table { width: 100%; border-collapse: collapse; }
.project-table th { padding: 12px 14px; background: #f5f1e9; color: var(--muted); text-align: left; font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.project-table td { padding: 14px; border-top: 1px solid #eee9e1; font-size: 9px; }
.project-table tbody tr { cursor: pointer; transition: background .2s; }
.project-table tbody tr:hover { background: #f7f3ec; }
.project-name { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; }
.project-name img { width: 42px; height: 42px; object-fit: cover; }
.project-name div { display: flex; flex-direction: column; }
.project-name strong { font-size: 9px; }
.project-name span { margin-top: 4px; color: var(--muted); font-size: 7px; }
.status { width: max-content; padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; background: #edf2ed; color: var(--success); border-radius: 12px; font-size: 7px; font-weight: 700; }
.status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.waiting { background: #f4ede3; color: #70472c; }
.status.quote { background: #e8edf3; color: #45627c; }
.status.alert { background: #f5e7e3; color: var(--danger); }
.progress-cell { min-width: 90px; }
.mini-progress { height: 3px; margin-top: 6px; background: #e2ddd4; }
.mini-progress i { height: 100%; display: block; background: var(--copper); }
.timeline-list { padding: 8px 20px 18px; }
.timeline-event { padding: 14px 0 14px 23px; position: relative; border-bottom: 1px solid #ebe5dc; }
.timeline-event::before { content: ""; width: 8px; height: 8px; position: absolute; left: 0; top: 18px; border: 2px solid var(--paper); border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.timeline-event::after { content: ""; width: 1px; position: absolute; left: 4px; top: 28px; bottom: -15px; background: var(--line); }
.timeline-event:last-child::after { display: none; }
.timeline-event strong { display: block; font-size: 8px; }
.timeline-event p { margin: 4px 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.timeline-event small { color: var(--muted); font-size: 7px; }
.pipeline { margin-top: 16px; padding: 20px; background: var(--paper); border: 1px solid #e0dad0; }
.pipeline-head { display: flex; align-items: center; justify-content: space-between; }
.pipeline-head h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.pipeline-flow { margin-top: 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.phase { min-height: 73px; padding: 11px; position: relative; background: #f1ede6; }
.phase span { color: var(--muted); font-size: 7px; }
.phase strong { margin-top: 7px; display: block; font-family: var(--font-display); font-size: 23px; font-weight: 400; }
.phase i { width: calc(var(--count) * 12%); height: 2px; position: absolute; left: 11px; bottom: 9px; background: var(--copper); }
.client-hero-project { display: grid; grid-template-columns: 1fr 310px; background: var(--paper); border: 1px solid #e0dad0; }
.client-project-info { padding: 28px; }
.project-ref { color: var(--copper); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.client-project-info h2 { margin: 8px 0 8px; font-family: var(--font-display); font-size: 33px; font-weight: 400; }
.client-project-info > p { color: var(--muted); font-size: 10px; }
.big-progress { margin-top: 28px; }
.big-progress-head { display: flex; justify-content: space-between; font-size: 8px; }
.big-progress-head strong { color: var(--copper); }
.big-progress-bar { height: 5px; margin: 10px 0 7px; background: #e4ded4; }
.big-progress-bar i { width: 62%; height: 100%; display: block; background: var(--copper); }
.progress-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 6px; }
.client-project-photo { min-height: 260px; position: relative; }
.client-project-photo img { width: 100%; height: 100%; object-fit: cover; }
.client-project-photo span { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; background: rgba(23,24,21,.78); color: white; font-size: 7px; }
.todo-panel { margin-top: 16px; }
.todo-list { padding: 5px 20px 15px; }
.todo-item { padding: 15px 0; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid #ebe5dc; }
.todo-item:last-child { border: 0; }
.todo-icon { width: 31px; height: 31px; display: grid; place-items: center; background: #f0e8de; color: var(--copper); }
.todo-item div { display: flex; flex-direction: column; }
.todo-item strong { font-size: 9px; }
.todo-item span { margin-top: 4px; color: var(--muted); font-size: 7px; }
.todo-item button { border: 0; background: transparent; color: var(--copper); cursor: pointer; font-size: 8px; }
.project-drawer { position: fixed; z-index: 120; right: 0; top: 0; bottom: 0; width: min(520px, 95vw); padding: 30px; overflow-y: auto; background: var(--paper); box-shadow: -20px 0 60px rgba(23,24,21,.18); animation: drawerIn .3s ease; }
.drawer-close { float: right; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.project-drawer h2 { margin: 30px 0 7px; font-family: var(--font-display); font-size: 35px; font-weight: 400; }
.drawer-meta { color: var(--muted); font-size: 9px; }
.drawer-tabs { margin: 25px 0; display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.drawer-tabs button { padding: 0 0 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; }
.drawer-tabs button.active { color: var(--ink); border-color: var(--copper); }
.detail-box { margin-bottom: 13px; padding: 17px; border: 1px solid var(--line); }
.detail-box > small { color: var(--copper); font-size: 7px; text-transform: uppercase; letter-spacing: .13em; }
.detail-box h4 { margin: 7px 0 12px; font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.detail-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-pairs div { display: flex; flex-direction: column; }
.detail-pairs span { color: var(--muted); font-size: 7px; }
.detail-pairs strong { margin-top: 4px; font-size: 9px; }
.photo-file-list ul { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.photo-file-list li { padding: 8px 10px; border: 1px solid var(--line); background: #f7f3ec; color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.estimate-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 16px; }
.estimate-builder { padding: 20px; }
.estimate-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.estimate-grid .field { margin: 0; }
.estimate-grid .field small { color: var(--muted); font-size: 8px; }
.estimate-lines { width: 100%; margin-top: 18px; border-collapse: collapse; }
.estimate-lines th { padding: 8px; background: #f2eee7; color: var(--muted); text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.estimate-lines td { padding: 9px 8px; border-top: 1px solid var(--line); font-size: 8px; }
.estimate-lines input, .estimate-lines select { width: 100%; min-height: 33px; padding: 0 7px; border: 1px solid var(--line); background: white; font-size: 8px; }
.estimate-total { padding: 20px; background: var(--sage); color: white; }
.estimate-total > small { color: rgba(255,255,255,.68); font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.estimate-total h3 { margin: 7px 0 18px; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.estimate-total dl { margin: 0; }
.estimate-total dl div { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 8px; }
.estimate-total dt { color: rgba(255,255,255,.58); }
.estimate-total dd { margin: 0; }
.estimate-total .grand-total { margin-top: 9px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); font-size: 11px; }
.estimate-total .grand-total dd { font-family: var(--font-display); font-size: 26px; }
.estimate-actions { margin-top: 17px; display: grid; gap: 7px; }
.estimate-actions .button { width: 100%; }
.estimate-disclaimer { margin: 12px 0 0; color: rgba(255,255,255,.68); font-size: 8px; line-height: 1.5; }
.operation-library { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.operation-library summary { color: var(--copper); cursor: pointer; font-size: 9px; font-weight: 700; }
.operation-library > div { margin-top: 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.operation-library button { min-height: 36px; padding: 6px 8px; display: flex; justify-content: space-between; gap: 7px; border: 1px solid var(--line); background: white; color: var(--muted); cursor: pointer; text-align: left; font-size: 8px; }
.operation-library button:hover { border-color: var(--copper); color: var(--copper); }
.operation-library button strong { flex: 0 0 auto; }
.operation-library p { margin: 8px 0 0; color: var(--muted); font-size: 8px; }
.supplier-table { width: 100%; border-collapse: collapse; }
.supplier-table th, .supplier-table td { padding: 11px 14px; border-top: 1px solid #ebe5dc; text-align: left; font-size: 8px; }
.supplier-table th { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.price-mode { padding: 4px 7px; display: inline-flex; border-radius: 12px; background: #edf2ed; color: var(--success); font-size: 8px; }
.price-mode.quote { background: #f4ede3; color: #70472c; }
.revision-banner { margin-bottom: 13px; padding: 13px; border-left: 2px solid var(--gold); background: #f6efe2; color: var(--muted); font-size: 8px; line-height: 1.5; }
.revision-banner strong { display: block; margin-bottom: 3px; color: var(--ink); }
.drawer-estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-estimate label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; }
.drawer-estimate input, .drawer-estimate select { min-height: 37px; padding: 0 8px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 9px; }
.drawer-estimate-result { margin: 13px 0; padding: 12px; display: flex; justify-content: space-between; align-items: center; background: var(--sage); color: white; font-size: 8px; }
.drawer-estimate-result strong { font-family: var(--font-display); font-size: 23px; font-weight: 400; }

/* Alêne de sellier : grand pointeur contrasté, hotspot exact au centre du repère. */
.saddler-cursor { width: 58px; height: 58px; display: none; position: fixed; z-index: 9999; left: 0; top: 0; opacity: 0; pointer-events: none; transform: translate3d(-70px,-70px,0); will-change: transform; }
.saddler-cursor svg { width: 58px; height: 58px; overflow: visible; filter: drop-shadow(0 3px 3px rgba(23,24,21,.42)); }
.saddler-cursor__tool { transform-box: view-box; transform-origin: 4px 4px; transition: transform 100ms ease; }
.saddler-cursor__target { fill: rgba(201,159,88,.38); stroke: #fcfaf6; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: opacity 120ms ease, transform 120ms ease; }
.saddler-cursor__tip { fill: #171815; stroke: #fcfaf6; stroke-width: 1.6; }
.saddler-cursor__needle-outline { fill: none; stroke: #fcfaf6; stroke-width: 6; stroke-linecap: round; }
.saddler-cursor__needle { fill: none; stroke: #262926; stroke-width: 2.5; stroke-linecap: round; }
.saddler-cursor__collar { fill: var(--gold); stroke: #241d19; stroke-width: 1.8; }
.saddler-cursor__handle-outline { fill: none; stroke: #fcfaf6; stroke-width: 6; stroke-linejoin: round; }
.saddler-cursor__handle { fill: #a65432; stroke: #241d19; stroke-width: 2; stroke-linejoin: round; }
.saddler-cursor__highlight { fill: none; stroke: #e3bd79; stroke-width: 2.4; stroke-linecap: round; opacity: .92; }
@media (hover:hover) and (pointer:fine) and (min-width:901px) and (forced-colors:none) {
  .saddler-cursor { display: block; transition: opacity 80ms ease; }
  .saddler-cursor.is-visible { opacity: 1; }
  body.saddler-cursor-active :where(a[href],button:not(:disabled),summary,[role="button"],[role="tab"],[data-kind],[data-color-role],[data-go-step],[data-project],.preview-zone,.hero-photo-stage) { cursor: none !important; }
  .saddler-cursor.is-piercing .saddler-cursor__tool { transform: scale(.9); }
  .saddler-cursor.is-piercing .saddler-cursor__target { opacity: 0; transform: scale(1.8); }
}

/* Gallery, cookie, toast */
.gallery-modal { position: fixed; z-index: 95; inset: 0; padding: 45px 5vw 70px; overflow-y: auto; background: var(--paper); animation: fadeIn .25s ease; }
.gallery-modal header { display: flex; justify-content: space-between; align-items: center; }
.gallery-modal h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: 55px; font-weight: 400; }
.gallery-filters { margin: 35px 0 25px; display: flex; gap: 8px; }
.gallery-filters button { padding: 9px 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); font-size: 9px; }
.gallery-filters button.active { background: var(--ink); border-color: var(--ink); color: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid figure { height: 280px; margin: 0; position: relative; overflow: hidden; background: #eee8de; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { max-width: calc(100% - 18px); position: absolute; left: 9px; bottom: 9px; padding: 7px 9px; display: flex; flex-direction: column; background: rgba(23,24,21,.78); color: white; font-size: 7px; }
.gallery-grid figcaption span { color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.gallery-grid figcaption strong { margin-top: 3px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cookie-banner { max-width: 1040px; min-height: 94px; padding: 19px 22px; position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 35px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cookie-banner strong { font-family: var(--font-display); font-size: 15px; font-weight: 400; }
.cookie-banner p { max-width: 580px; margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.cookie-banner > div:last-child { display: flex; gap: 7px; flex: 0 0 auto; }
.cookie-banner .button { min-height: 38px; font-size: 9px; }
.toast { max-width: 360px; min-height: 52px; padding: 12px 18px; position: fixed; z-index: 200; left: 50%; bottom: -90px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 10px; transition: bottom .35s ease; }
.toast.show { bottom: 22px; }
.toast svg { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes marquee { to { transform: translateX(-42%); } }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .site-header.menu-open .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); padding: 22px; display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.menu-open .main-nav a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .site-header.menu-open .main-nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; margin-right: 12px; }
  .hero { grid-template-columns: .9fr 1.1fr; gap: 40px; }
  .hero-visual { min-height: 590px; }
  .hero-image-wrap { height: 550px; }
  .hero-proof { flex-wrap: wrap; }
  .proof-separator { display: none !important; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-feature { min-height: 680px; }
  .project-builder-section { grid-template-columns: 1fr 1fr; }
  .config-layout { grid-template-columns: 180px minmax(430px,1fr) 260px; }
  .config-header { grid-template-columns: 230px 1fr 230px; }
  .config-footer { padding-left: 200px; }
  .choice-grid { grid-template-columns: repeat(2,1fr); }
  .pattern-grid { grid-template-columns: repeat(3,1fr); }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .footer-main { grid-template-columns: 1.4fr repeat(2,1fr); }
}

@media (max-width: 900px) {
  .announcement { justify-content: center; }
  .announcement > span { display: none; }
  .site-header { height: 74px; padding: 0 22px; }
  .site-header .brand-copy { display: none; }
  .header-actions .login-trigger { display: none; }
  .header-actions .button-dark { min-height: 40px; padding: 0 13px; font-size: 10px; }
  .hero { padding: 65px 24px 80px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 700px; }
  .hero-visual { min-height: 580px; }
  .hero-image-wrap { width: 88%; }
  .hero-proof { max-width: 550px; }
  .hero-scroll { display: none; }
  .section-pad { padding-left: 24px; padding-right: 24px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .project-builder-section { grid-template-columns: 1fr; }
  .builder-demo { min-height: 680px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item.wide { grid-column: auto; }
  .atelier { grid-template-columns: 1fr; }
  .atelier-image { min-height: 560px; }
  .contact-section { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-bottom { gap: 20px; flex-wrap: wrap; }
  .modal-shell { --login-shell-gap: 16px; }
  .login-panel { width: min(560px,calc(100vw - 32px)); height: min(790px,calc(100vh - 32px)); height: min(790px,calc(100dvh - 32px)); grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
  .login-visual { display: none; }
  .login-content { padding-right: clamp(28px,6vw,48px); padding-left: clamp(28px,6vw,48px); }
  .config-header { height: 70px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .config-header .brand-copy, .config-title { display: none; }
  .config-save > span { display: none; }
  .config-layout { grid-template-columns: 1fr; }
  .config-sidebar, .config-preview { display: none; }
  .config-main { padding: 38px 24px 90px; }
  .config-footer { height: 68px; padding: 0 18px; }
  #configMobileProgress { display: inline; color: var(--muted); font-size: 9px; }
  .portal-layout { grid-template-columns: 76px 1fr; }
  .portal-sidebar { padding: 25px 15px; }
  .portal-sidebar .brand-copy, .portal-nav button span:not(.nav-badge), .user-chip > div, .user-chip > button { display: none; }
  .portal-nav button { justify-content: center; }
  .user-chip { display: flex; justify-content: center; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .estimate-layout { grid-template-columns: 1fr; }
  .pipeline-flow { grid-template-columns: repeat(3,1fr); }
  .client-hero-project { grid-template-columns: 1fr; }
  .client-project-photo { min-height: 230px; }
}

@media (max-width: 620px) {
  .announcement { height: 30px; }
  .site-header { height: 68px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-mark span { font-size: 13px; }
  .header-actions .button-dark { font-size: 0; width: 42px; padding: 0; }
  .header-actions .button-dark svg { width: 17px; }
  .hero { min-height: auto; padding-top: 55px; }
  .hero h1 { font-size: clamp(55px, 17vw, 78px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-proof { gap: 18px; }
  .label-proof { width: calc(50% - 10px); }
  .hero-visual { min-height: 480px; }
  .hero-image-wrap { width: 94%; height: 430px; }
  .hero-photo-strip { width: 64px; top: 35px; }
  .hero-thumb { height: 48px; }
  .hero-play-hint { left: 78px; }
  .hero-photo-caption { left: 15px; bottom: 62px; }
  .hero-photo-nav { left: 15px; right: auto; }
  .vertical-caption { display: none; }
  .section-heading h2, .builder-copy h2, .atelier-copy h2, .contact-intro h2 { font-size: 48px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-feature { grid-row: auto; min-height: 560px; }
  .expertise-card { min-height: 350px; }
  .builder-copy, .atelier-copy { padding: 80px 24px; }
  .builder-steps { grid-template-columns: 1fr; }
  .builder-demo { min-height: 620px; padding: 70px 16px; }
  .demo-window { padding: 22px 16px; }
  .demo-top { grid-template-columns: 40px 1fr; }
  .demo-percent { display: none; }
  .demo-note { min-width: 0; margin-right: 0; align-self: center; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 330px; }
  .portfolio-item.tall { grid-row: auto; }
  .atelier-image { min-height: 440px; }
  .contact-section { gap: 45px; }
  .contact-tile strong { font-size: 18px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .modal-shell { --login-shell-gap: 10px; }
  .login-panel { width: min(560px,calc(100vw - 20px)); height: min(754px,calc(100vh - 20px)); height: min(754px,calc(100dvh - 20px)); }
  .modal-close { width: 40px; height: 40px; right: 8px; top: 8px; }
  .login-content { padding: clamp(22px,calc(12dvh - 61px),40px) clamp(18px,6vw,25px); }
  .login-brand { margin-bottom: clamp(14px,3dvh,28px); }
  .login-brand .brand-logo { width: clamp(76px,11dvh,96px); }
  .login-content h2 { font-size: clamp(38px,calc(4dvh + 11px),45px); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice-card { min-height: 115px; padding: 14px; }
  .choice-card strong { font-size: 16px; }
  .model-fields { grid-template-columns: 1fr; }
  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-lines { display: block; overflow-x: auto; }
  .pattern-grid { grid-template-columns: 1fr 1fr; }
  .toggle-list { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: 90px 1fr; }
  .summary-row button { grid-column: 2; justify-self: start; }
  .config-footer .save-exit-button { display: none; }
  .portal-layout { display: block; }
  .portal-sidebar { width: 100%; height: 62px; padding: 0 14px; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: auto; flex-direction: row; align-items: center; }
  .portal-sidebar > .brand, .sidebar-bottom { display: none; }
  .portal-nav { width: 100%; margin: 0; display: flex; justify-content: space-around; }
  .portal-nav button { min-width: 44px; padding: 0 10px; }
  .portal-nav button.active { box-shadow: inset 0 -2px var(--gold); }
  .portal-topbar { padding: 0 16px; }
  .portal-topbar .button { width: 41px; padding: 0; font-size: 0; }
  .portal-content { padding: 18px 14px 90px; }
  .welcome-strip { padding: 20px; }
  .date-pill { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 110px; }
  .project-table thead { display: none; }
  .project-table, .project-table tbody, .project-table tr, .project-table td { display: block; }
  .project-table tr { padding: 12px; border-top: 1px solid var(--line); }
  .project-table td { padding: 5px 0; border: 0; }
  .project-table td:nth-child(3), .project-table td:nth-child(4) { display: inline-block; margin-right: 12px; }
  .pipeline-flow { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure { height: 210px; }
  .cookie-banner { width: calc(100% - 24px); bottom: 12px; align-items: stretch; flex-direction: column; gap: 15px; }
  .cookie-banner > div:last-child { flex-direction: column; }
}

@media (max-width: 430px) {
  .config-main { padding-left: 18px; padding-right: 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .question-head h2 { font-size: 39px; }
  .config-footer .button { min-width: 116px; padding-left: 13px; padding-right: 13px; }
}

@media (max-height: 760px) {
  .login-content form > h2 + p { margin-top: 0; margin-bottom: 0; }
  .login-content .brand-copy strong { font-size: clamp(12px,2dvh,15px); }
  .login-content .brand-copy small { margin-top: 4px; }
}

@media (max-width: 350px) {
  .login-brand .brand-copy { display: none; }
  .auth-links { gap: 8px; }
}

@media (max-width: 350px) and (max-height: 620px) {
  .login-content { padding-top: 10px; padding-bottom: 10px; }
  .login-brand { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .saddler-cursor.is-piercing .saddler-cursor__tool,
  .saddler-cursor.is-piercing .saddler-cursor__target { transform: none !important; }
}

/* Services prioritaires : contenu utile pour les visiteurs et le référencement local. */
.priority-services { background: #f7f3eb; border-bottom: 1px solid var(--line); }
.priority-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.priority-service { min-width: 0; display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr); align-items: stretch; background: var(--paper); border: 1px solid var(--line); }
.priority-service-photo { min-height: 320px; overflow: hidden; background: #ded8cd; }
.priority-service-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s ease; }
.priority-service:hover .priority-service-photo img { transform: scale(1.025); }
.priority-service > div { padding: clamp(24px,3vw,44px); display: flex; flex-direction: column; align-items: flex-start; }
.priority-service > div > span { color: var(--copper); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.priority-service h2 { margin: 14px 0 15px; font-family: Italiana, Georgia, serif; font-size: clamp(27px,2.4vw,40px); font-weight: 400; line-height: 1.04; }
.priority-service p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.priority-service-actions { width: 100%; margin-top: auto; padding-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.priority-service-actions > a { color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.priority-other { margin: 26px auto 0; display: block; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink); cursor: pointer; font: 700 13px/1.8 inherit; }
.simple-brief-demo { min-height: 255px; padding: 24px; display: grid; align-content: center; gap: 16px; }
.simple-brief-photo { min-height: 135px; padding: 22px; display: grid; place-items: center; gap: 7px; border: 1px dashed rgba(154,85,53,.45); background: #fbf8f2; text-align: center; }
.simple-brief-photo svg { width: 28px; height: 28px; fill: none; stroke: var(--copper); }
.simple-brief-photo small, .simple-brief-demo p { color: var(--muted); font-size: 11px; }
.simple-brief-demo p { margin: 0; text-align: center; }

/* Brief client volontairement simple ; le configurateur métier complet reste côté artisan. */
.config-step-list.client-step-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
.client-brief-mode .config-main { overflow: hidden; }
.quick-project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.quick-project-card { min-height: 102px; padding: 0; display: grid; grid-template-columns: 128px minmax(0,1fr) 30px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.62); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.quick-project-card:hover { transform: translateY(-1px); border-color: rgba(154,85,53,.58); background: white; }
.quick-project-card.selected { border: 2px solid var(--copper); background: #fffaf4; }
.quick-project-card img { width: 128px; height: 102px; display: block; object-fit: cover; }
.quick-project-card > span { min-width: 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.quick-project-card strong { font-family: Italiana, Georgia, serif; font-size: 23px; font-weight: 400; }
.quick-project-card small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.quick-project-card > i { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--copper); font-style: normal; font-size: 10px; }
.quick-project-card.selected > i { border-color: var(--copper); background: var(--copper); color: white; }
.simple-config-details { margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.simple-config-details > summary { min-height: 39px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; list-style: none; }
.simple-config-details > summary::-webkit-details-marker { display: none; }
.simple-config-details > summary::after { content: "+"; color: var(--copper); font-size: 17px; font-weight: 400; }
.simple-config-details[open] > summary::after { content: "−"; }
.simple-config-details > .choice-grid, .simple-config-details > .model-fields { padding: 7px 0 12px; }
.simple-config-details .choice-card { min-height: 56px; }
.simple-intent-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.client-piece-recap { min-height: 48px; padding: 0 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-left: 3px solid var(--copper); background: rgba(255,255,255,.58); }
.client-piece-recap span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.client-piece-recap strong { font-family: Italiana,Georgia,serif; font-size: 20px; font-weight: 400; }
.client-piece-recap button, .client-brief-summary button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--copper); cursor: pointer; font-size: 9px; }
.client-brief-grid { margin-top: 11px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(270px,.65fr); gap: 12px; }
.client-brief-description textarea { min-height: 118px; }
.client-brief-description small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.client-photo-upload { margin: 0; }
.client-photo-upload .upload-trigger { height: 100%; min-height: 153px; }
.client-reference-fields { grid-template-columns: repeat(4,minmax(0,1fr)); }
.client-advice-note { margin: 10px 0 0; padding: 10px 13px; display: flex; align-items: center; gap: 10px; background: rgba(53,104,78,.08); color: #315443; font-size: 9px; line-height: 1.45; }
.client-advice-note svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; }
.client-advice-note strong { display: block; }
.client-contact-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(285px,.75fr); gap: 20px; }
.client-contact-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.client-consent { grid-column: 1 / -1; min-height: 48px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.55); font-size: 9px; line-height: 1.45; cursor: pointer; }
.client-consent input { width: 17px; height: 17px; margin: 0; accent-color: var(--copper); }
.client-brief-summary { padding: 18px 20px; border-left: 1px solid var(--line); background: #fbf8f2; }
.client-brief-summary h3 { margin: 7px 0 12px; font-family: Italiana,Georgia,serif; font-size: 27px; font-weight: 400; }
.client-brief-summary dl { margin: 0; }
.client-brief-summary dl > div { padding: 8px 0; display: grid; grid-template-columns: 78px 1fr; gap: 9px; border-top: 1px solid var(--line); font-size: 9px; }
.client-brief-summary dt { color: var(--muted); }
.client-brief-summary dd { margin: 0; font-weight: 700; }
.client-preview-summary .preview-list strong { max-width: 165px; }
.material-live-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.material-live-actions .button { white-space: nowrap; }
.supplier-connection-status { padding: 11px 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; border-bottom: 1px solid var(--line); background: #fbf8f2; }
.supplier-connection-status span { min-width: 0; display: grid; grid-template-columns: 8px auto; align-items: center; column-gap: 7px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.supplier-connection-status span i { width: 7px; height: 7px; grid-row: 1 / 3; border-radius: 50%; background: #b98a54; }
.supplier-connection-status span.available i { background: #35684e; box-shadow: 0 0 0 3px rgba(53,104,78,.12); }
.supplier-connection-status span strong { color: var(--ink); }
.material-live-warning { margin: 0; padding: 8px 18px; color: #6f321f; background: #fff1e8; border-bottom: 1px solid #d8b49e; font-size: 12px; }
.supplier-offer-stack { min-width: 220px; display: grid; gap: 5px; }
.supplier-offer { padding: 7px 9px; display: grid; gap: 4px; border: 1px solid var(--line); background: #fcfaf6; color: var(--ink); text-decoration: none; }
.supplier-offer:hover { border-color: var(--copper); }
.supplier-offer > span { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.supplier-offer strong { font-size: 9px; }
.supplier-offer b { color: var(--copper); font-size: 10px; white-space: nowrap; }
.supplier-offer small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.supplier-offer small i { width: 6px; height: 6px; border-radius: 50%; background: #b98a54; }
.supplier-offer small i.live { background: #2f7a51; box-shadow: 0 0 0 3px rgba(47,122,81,.12); }
.offer-comparison-note { display: block; margin-top: 5px; color: #315443; }
.demo-window:has(.simple-brief-demo) .demo-progress i { width: 66%; }

@media (max-width: 980px) {
  .priority-service-grid { grid-template-columns: 1fr; }
  .priority-service-photo { min-height: 270px; }
  .client-brief-mode .config-main { overflow: visible; }
  .quick-project-grid { grid-template-columns: 1fr; }
  .client-contact-layout, .client-brief-grid { grid-template-columns: 1fr; }
  .client-brief-summary { border-left: 0; border-top: 1px solid var(--line); }
  .supplier-connection-status { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Personnalisation administrateur, avec limites de mise en page. */
.portal-view .admin-design-fields { margin-top: 22px; padding-top: 20px; display: grid; gap: 13px; border-top: 1px solid var(--line); }
.portal-view .admin-design-fields h4 { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.portal-view .admin-design-fields > p { margin: -7px 0 3px; color: var(--muted); font-size: 10px; }
.portal-view .admin-design-fields > label,
.portal-view .admin-color-grid label { display: grid; gap: 6px; }
.portal-view .admin-design-fields label > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.portal-view .admin-design-fields input,
.portal-view .admin-design-fields select { min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.portal-view .admin-design-fields input[type="color"] { width: 100%; padding: 4px; cursor: pointer; }
.portal-view .admin-range > span { display: flex; justify-content: space-between; }
.portal-view .admin-range output { color: var(--copper); }
.portal-view .admin-range input[type="range"] { min-height: 28px; padding: 0; accent-color: var(--copper); }
.portal-view .admin-color-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.portal-view .admin-design-note { padding: 11px 12px; border-radius: 7px; background: #f4eee5; color: var(--muted); line-height: 1.5; }
.portal-view .admin-showcase-editor { display: grid; gap: 10px; }
.portal-view .admin-showcase-editor > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.portal-view .admin-showcase-editor > div:first-child strong { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.portal-view .admin-showcase-editor > div:first-child small { color: var(--muted); }
.portal-view .admin-showcase-editor article { padding: 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.46); }
.portal-view .admin-showcase-editor article header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.portal-view .admin-showcase-editor article header b { color: var(--copper); }
.portal-view .admin-showcase-editor article header button { border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: 9px; }
.portal-view .admin-showcase-editor article header button:disabled { opacity: .35; cursor: not-allowed; }
.portal-view .admin-showcase-editor article label { display: grid; gap: 5px; }
.portal-view .admin-showcase-editor article label:nth-last-child(2) { grid-column: 1 / -1; }
.portal-view .admin-showcase-editor textarea { min-height: 76px; padding: 10px 11px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; background: white; }

@media (hover:hover) and (pointer:fine) {
  html[data-site-cursor="pointer"] :where(a[href],button:not(:disabled),summary,[role="button"],[role="tab"]) { cursor: pointer; }
  html[data-site-cursor="precision"] body,
  html[data-site-cursor="precision"] :where(a[href],button:not(:disabled),summary,[role="button"],[role="tab"]) { cursor: crosshair; }
  html:not([data-site-cursor="saddler"]) .saddler-cursor { display: none !important; }
}

/* Aucun zoom CSS : il créait une hauteur artificielle et une barre verticale. */

@media (min-width: 981px) {
  html[data-header-brand-position="inset"] .view:not(.portal-view) > .site-header > .brand,
  html[data-header-brand-position="center"] .view:not(.portal-view) > .site-header > .brand { position: absolute; z-index: 2; }
  html[data-header-brand-position="inset"] .view:not(.portal-view) > .site-header > .brand { left: clamp(110px, 12vw, 230px); }
  html[data-header-brand-position="center"] .view:not(.portal-view) > .site-header > .brand { left: 50%; transform: translateX(-50%); }
  html[data-header-brand-position="inset"] .view:not(.portal-view) > .site-header,
  html[data-header-brand-position="center"] .view:not(.portal-view) > .site-header { padding-left: 3vw; }
  html[data-header-brand-position="center"] .view:not(.portal-view) > .site-header .main-nav { margin-left: auto; }

  html[data-deck-controls="left"] .service-deck-controls,
  html[data-deck-controls="right"] .service-deck-controls { width: 48px; inset-inline: auto; flex-direction: column; gap: 12px; }
  html[data-deck-controls="left"] .service-deck-controls { left: 18px; right: auto; }
  html[data-deck-controls="right"] .service-deck-controls { left: auto; right: 18px; }
  html[data-deck-controls="left"] .deck-progress,
  html[data-deck-controls="right"] .deck-progress { display: none; }
}

@media (max-width: 640px) {
  .portal-view .admin-color-grid { grid-template-columns: minmax(0,1fr); }
}

/* En-tête public unique et robuste sur téléphone. */
@media (max-width: 640px) {
  .one-screen-home > .site-header,
  .one-screen-home > .site-header.sticky { padding: 0 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .one-screen-home .brand { min-width: 0; gap: 8px; }
  .one-screen-home .brand-copy { min-width: 0; }
  .one-screen-home .brand-copy strong { overflow: hidden; font-size: 11px !important; text-overflow: ellipsis; white-space: nowrap; }
  .one-screen-home .brand-copy small { display: none; }
  .one-screen-home .main-nav,
  .one-screen-home .menu-toggle { display: none !important; }
  .one-screen-home .header-actions { margin: 0; position: static; }
  .one-screen-home .header-actions .login-trigger { width: auto; min-width: 42px; padding: 0 10px; font-size: 0 !important; }
  .one-screen-home .header-actions .login-trigger svg { width: 18px; height: 18px; }

  .one-screen-home .home-showcase { padding: 8px; display: grid; grid-template-columns: 118px minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: 8px; }
  .one-screen-home .work-rail { width: auto; height: 100%; min-height: 0; padding: 14px 0 10px 10px; grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; align-items: stretch; overflow: hidden; background: var(--sage); }
  .one-screen-home .work-rail-heading { padding: 0 8px 10px 0; display: block; }
  .one-screen-home .work-rail-heading span { font-size: 6px; }
  .one-screen-home .work-rail-heading strong { margin-top: 5px; font-size: 21px; }
  .one-screen-home .hero-photo-strip { width: 100%; height: auto; min-height: 0; display: grid; grid-template-rows: repeat(5,minmax(42px,1fr)); overflow: hidden; }
  .one-screen-home .hero-thumb { width: 100%; min-width: 0; height: auto; min-height: 0; padding: 5px 7px 5px 0; display: grid; grid-template-columns: 17px minmax(0,1fr); border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .one-screen-home .hero-thumb:hover,
  .one-screen-home .hero-thumb.active { padding-left: 5px; }
  .one-screen-home .hero-thumb strong { font-size: 13px !important; white-space: normal; }
  .one-screen-home .hero-thumb small { font-size: 5.5px !important; white-space: normal; }
  .one-screen-home .work-rail-gallery { width: 100%; min-height: 36px; padding: 0 8px 0 0; display: flex; border: 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 6px; }
  .one-screen-home .work-rail-gallery span { display: grid; }
  .one-screen-home .hero-copy { display: none; }
  .one-screen-home .hero-visual { min-height: 0; grid-column: 2; grid-row: 1; }
  .one-screen-home .hero-image-wrap { height: 100%; }
}

@media (min-width: 981px) {
  html:has(.one-screen-home:not(.hidden)),
  body:has(.one-screen-home:not(.hidden)),
  html:has(.one-screen-service),
  body:has(.one-screen-service) { width: 100%; height: 100%; overflow: hidden !important; }
  .one-screen-home,
  .one-screen-service { max-height: 100dvh; }
  .one-screen-service > main { height: 100%; }
}

/* Mise à l'échelle lisible du formulaire sur moniteurs QHD/32 pouces,
   sans zoom CSS et sans ajouter de défilement au document. */
@media (min-width: 2200px) and (min-height: 1000px) {
  .configurator-shell { height: 100dvh; }
  .config-header { height: 82px; flex-basis: 82px; padding-inline: 34px; grid-template-columns: 330px 1fr 330px; }
  .config-header .brand-logo { width: 112px; height: 62px; }
  .config-header .brand-copy strong { font-size: 16px; }
  .config-title strong { font-size: 26px; }
  .config-layout { grid-template-columns: minmax(0,1fr) 390px; grid-template-rows: 78px minmax(0,1fr); }
  .config-step-list { gap: 10px; }
  .config-step { min-height: 56px; padding-inline: 14px; font-size: 13px; }
  .config-step i { width: 36px; height: 36px; font-size: 11px; }
  .config-main { padding: 24px 38px 20px; }
  .quick-project-grid { gap: 16px; }
  .quick-project-card { min-height: 145px; grid-template-columns: 180px minmax(0,1fr) 38px; }
  .quick-project-card img { width: 180px; height: 145px; }
  .quick-project-card strong { font-size: 31px; }
  .quick-project-card small { font-size: 13px; }
  .quick-project-card > i { width: 31px; height: 31px; }
  .config-preview { padding: 30px 24px; }
}

@media (max-width: 640px) {
  .priority-service { grid-template-columns: 1fr; }
  .priority-service-photo { min-height: 230px; }
  .priority-service-actions { align-items: stretch; flex-direction: column; }
  .priority-service-actions .button { width: 100%; }
  .quick-project-card { grid-template-columns: 92px minmax(0,1fr) 25px; }
  .quick-project-card img { width: 92px; height: 100%; }
  .client-contact-fields, .client-reference-fields { grid-template-columns: 1fr; }
  .simple-intent-grid { grid-template-columns: 1fr; }
  .supplier-connection-status { grid-template-columns: 1fr; }
  .material-live-actions { align-items: stretch; }
}

/* Refonte 2026 — identité réelle, atelier ouvert et configurateur sans défilement desktop */
.sr-only { width: 1px; height: 1px; padding: 0; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand { gap: 12px; }
.brand-logo { width: 112px; height: 63px; flex: 0 0 auto; display: block; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(23,24,21,.12)); }
.site-header .brand-logo { width: 104px; height: 58px; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { max-width: 210px; font-size: 8px; letter-spacing: .11em; }
.brand-logo-footer { width: 180px; height: 102px; }
.footer-brand > p { margin-top: 18px; }
.icon-sprite symbol, svg use { pointer-events: none; }
.choice-icon svg .icon-stitch { stroke-dasharray: 3 3; }

.stitch-signature { width: min(520px,92%); height: 38px; margin: -10px 0 14px; color: var(--copper); overflow: hidden; }
.stitch-signature svg { width: 100%; height: 100%; overflow: visible; }
.stitch-line { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 3 7; animation: stitchDraw 9s linear infinite; }
.stitch-needle { transform: translate(2px,22px); offset-path: path("M2 22 C78 5 126 35 204 17 S344 4 424 20 S485 29 518 13"); offset-distance: 0%; animation: needleSew 9s cubic-bezier(.45,.02,.55,.98) infinite; }
.stitch-needle path, .stitch-needle ellipse { fill: none; stroke: #777a76; stroke-width: 1.5; stroke-linecap: round; }
@keyframes stitchDraw { to { stroke-dashoffset: -100; } }
@keyframes needleSew { 0%,8% { offset-distance: 0%; opacity: 0; } 13% { opacity: 1; } 88% { opacity: 1; } 94%,100% { offset-distance: 100%; opacity: 0; } }

/* Le configurateur occupe exactement le viewport sur ordinateur. */
.configurator-shell { height: 100dvh; overflow: hidden; }
html:has(.configurator-shell:not(.hidden)) { overflow: hidden; }
.config-header { height: 66px; padding: 0 22px; flex: 0 0 66px; grid-template-columns: 265px 1fr 265px; }
.config-header .brand-logo { width: 80px; height: 46px; }
.config-header .brand-copy strong { font-size: 12px; }
.config-title strong { font-size: 19px; }
.config-layout { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0,1fr) 318px; grid-template-rows: 60px minmax(0,1fr); }
.config-sidebar { min-width: 0; padding: 8px 22px; grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(0,1fr) 215px; align-items: center; gap: 22px; border-right: 0; border-bottom: 1px solid var(--line); background: #f8f4ec; }
.config-step-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
.config-step { min-height: 42px; padding: 0 9px; grid-template-columns: 27px 1fr; align-items: center; gap: 8px; border-radius: 8px; font-size: 10px; }
.config-step:not(:last-child)::after { display: none; }
.config-step i { width: 27px; height: 27px; font-size: 8px; }
.config-step span { padding: 0; white-space: nowrap; }
.config-step:hover:not(:disabled), .config-step.active { background: white; box-shadow: 0 1px 0 rgba(23,24,21,.08); }
.config-step.done { background: rgba(53,104,78,.06); }
.config-help { margin: 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--line); }
.config-help .avatar { width: 31px; height: 31px; }
.config-main { min-height: 0; padding: 15px 24px 14px; grid-column: 1; grid-row: 2; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; scrollbar-gutter: auto; }
.config-main::-webkit-scrollbar, .config-preview::-webkit-scrollbar { width: 0; height: 0; }
.config-preview { min-height: 0; padding: 16px 16px 12px; grid-column: 2; grid-row: 2; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.config-footer { height: 62px; padding: 0 20px; position: static; z-index: 4; flex: 0 0 62px; }
.config-footer .button { min-height: 40px; }
.question-head { min-height: 66px; margin-bottom: 11px; display: grid; grid-template-columns: minmax(285px,.82fr) minmax(260px,1.18fr); grid-template-rows: auto 1fr; align-items: center; column-gap: 30px; }
.question-head .step-overline { grid-column: 1; align-self: end; font-size: 8px; }
.question-head h2 { margin: 1px 0 0; grid-column: 1; font-size: clamp(28px,2.4vw,39px); line-height: .95; }
.question-head p { max-width: 590px; margin: 0; grid-column: 2; grid-row: 1 / 3; font-size: 10px; line-height: 1.5; }
.choice-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px 12px; }
.choice-card { min-height: 68px; padding: 9px 10px; border-radius: 0; }
.choice-card::after { width: 20px; height: 20px; right: 7px; top: 7px; font-size: 8px; }
.choice-card strong { font-size: 15px; line-height: 1.05; }
.choice-card small { margin-top: 4px; font-size: 9px; line-height: 1.3; }
.choice-icon { width: 42px; height: 31px; margin: 0; display: grid; place-items: center; }
.choice-icon svg { width: 42px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.subsection-title { margin: 11px 0 7px; font-size: 9px; }
.model-card { min-height: 76px; display: grid; grid-template-columns: 70px 1fr; grid-template-rows: 1fr 1fr; align-items: center; text-align: left; }
.model-card .model-photo, .model-card .model-trait { width: 62px; height: 52px; margin: 0; grid-row: 1 / 3; }
.model-card strong { align-self: end; }
.model-card small { align-self: start; }
.material-choice { min-height: 74px; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: repeat(3,auto); justify-content: start; text-align: left; }
.material-choice .texture { width: 46px; height: 46px; margin: 0; grid-row: 1 / 4; border-radius: 50%; }
.model-fields { grid-template-columns: repeat(4,1fr); gap: 8px; }
.model-fields .field, .config-main > .field { margin: 0; }
.field > span { margin-bottom: 5px; font-size: 9px; }
.field input, .field select { min-height: 38px; padding: 0 9px; }
.field textarea { min-height: 52px; padding: 9px; }
.conditional-questions { margin-top: 10px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: transparent; }
.conditional-heading { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.conditional-questions h3 { margin: 0; font-size: 16px; }
.conditional-questions .conditional-heading p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.adaptive-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
.answer-field-wide { grid-column: span 2; }
.answer-field input, .answer-field select { min-height: 34px; }
.answer-options button { min-height: 27px; }
.config-pager { display: flex; align-items: center; gap: 8px; }
.config-pager button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--copper); cursor: pointer; font-size: 8px; }
.config-pager button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.config-pager span { color: var(--muted); font-size: 8px; }
.compatibility-note, .submit-note { margin: 7px 0; padding: 8px 10px; font-size: 8px; }
.compact-choice-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.color-role-tabs { margin-bottom: 7px; grid-template-columns: repeat(4,1fr); gap: 6px; }
.color-role-tabs button { min-height: 35px; border-radius: 7px; }
.palette-grid { grid-template-columns: repeat(7,1fr); gap: 5px; }
.color-choice { min-height: 36px; padding: 4px 5px; gap: 5px; border-radius: 6px; font-size: 8px; }
.color-choice > i { width: 20px; height: 20px; }
.pattern-grid { grid-template-columns: repeat(6,1fr); gap: 6px; }
.pattern-choice { min-height: 55px; padding: 7px; border-radius: 7px; }
.pattern-sample { height: 19px; margin-bottom: 5px; }
.toggle-list { grid-template-columns: repeat(4,1fr); gap: 6px; }
.toggle-card { min-height: 48px; padding: 7px 9px; border-radius: 7px; }
.toggle-card span small { margin-top: 2px; font-size: 8px; }
.compact-toggle-list { grid-template-columns: repeat(5,1fr); }
.upload-zone { margin-top: 7px; }
.upload-trigger { min-height: 48px; }
.summary-card { padding: 5px 16px; }
.summary-row { min-height: 44px; }
.preview-canvas { height: 230px; }
.preview-shape { transform: scale(.78); }
.preview-summary h3 { font-size: 19px; }
.preview-list div { padding: 6px 0; }
.preview-tip { margin-top: 9px; padding: 8px; font-size: 8px; }
#configMain[data-step="1"] .question-head { min-height: 57px; margin-bottom: 6px; }
#configMain[data-step="1"] { padding-top: 10px; padding-bottom: 4px; }
#configMain[data-step="1"] .choice-grid { gap: 5px; }
#configMain[data-step="1"] .model-card { min-height: 58px; }
#configMain[data-step="1"] .model-card .model-photo,
#configMain[data-step="1"] .model-card .model-trait { height: 41px; }
#configMain[data-step="1"] .subsection-title { margin: 7px 0 5px; }
#configMain[data-step="1"] .model-fields .field input { min-height: 34px; }
#configMain[data-step="1"] .conditional-questions { margin-top: 4px; padding-top: 4px; padding-bottom: 4px; }
#configMain[data-step="1"] .adaptive-grid { gap: 6px; }
#configMain[data-step="2"] .question-head { min-height: 52px; margin-bottom: 6px; }
#configMain[data-step="2"] { padding-bottom: 11px; }
#configMain[data-step="2"] .subsection-title { margin-top: 8px; margin-bottom: 5px; }
#configMain[data-step="3"] .question-head { min-height: 56px; margin-bottom: 6px; }
#configMain[data-step="3"] .compact-choice-grid .choice-card { min-height: 42px; }
#configMain[data-step="3"] .subsection-title { margin-top: 8px; margin-bottom: 5px; }
#configMain[data-step="4"] .question-head { min-height: 59px; margin-bottom: 7px; }
#configMain[data-step="4"] .toggle-card { min-height: 41px; }
#configMain[data-step="4"] .subsection-title { margin: 8px 0 5px; }
#configMain[data-step="4"] .field textarea { min-height: 44px; }
#configMain[data-step="4"] .upload-trigger { min-height: 42px; }

/* Portails : navigation persistante et surfaces ouvertes, inspirées d’un espace de travail média. */
.portal-view { background: #f8f5ef; }
.portal-layout { grid-template-columns: 250px minmax(0,1fr); }
.portal-sidebar { width: 250px; padding: 19px 16px 16px; position: fixed; z-index: 30; inset: 0 auto 0 0; background: #1b211d; }
.portal-sidebar .brand { min-height: 64px; }
.portal-sidebar .brand-logo { width: 92px; height: 52px; }
.portal-sidebar .brand-copy strong { color: white; font-size: 12px; }
.portal-nav { margin-top: 27px; gap: 3px; }
.portal-nav button { min-height: 42px; padding: 0 12px; border-radius: 9px; color: rgba(255,255,255,.7); font-size: 12px; }
.portal-nav button svg { width: 19px; height: 19px; }
.portal-nav button:hover, .portal-nav button.active { background: rgba(255,255,255,.1); }
.portal-nav button.active { box-shadow: none; color: white; }
.portal-nav .nav-badge { min-width: 20px; height: 20px; background: #d33c32; font-size: 9px; }
.atelier-team { margin-top: auto; padding-top: 16px; display: grid; gap: 5px; border-top: 1px solid rgba(255,255,255,.1); }
.atelier-team > small { margin: 0 7px 5px; color: rgba(255,255,255,.62); font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.artisan-switch { min-height: 48px; padding: 5px 7px; display: grid; grid-template-columns: 32px 1fr 7px; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; color: white; cursor: pointer; text-align: left; }
.artisan-switch:hover, .artisan-switch.active { background: rgba(255,255,255,.08); }
.artisan-switch .user-avatar { width: 31px; height: 31px; }
.artisan-switch > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.artisan-switch strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.artisan-switch small { margin-top: 2px; overflow: hidden; color: rgba(255,255,255,.55); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.artisan-switch i { width: 6px; height: 6px; border-radius: 50%; background: #64ad7a; opacity: .35; }
.artisan-switch.active i { opacity: 1; box-shadow: 0 0 0 3px rgba(100,173,122,.15); }
.sidebar-bottom { margin-top: 12px; padding-top: 12px; }
.portal-main { grid-column: 2; }
.portal-topbar { height: 70px; padding: 0 2.4vw; position: sticky; z-index: 20; top: 0; }
.portal-topbar h1 { font-size: 26px; }
.portal-content { max-width: 1700px; padding: 26px 2.4vw 60px; }
.notification-button { border: 0; border-radius: 50%; background: #ede8df; }
.notification-button svg { width: 20px; height: 20px; }
.notification-count { min-width: 19px; height: 19px; padding: 0 4px; position: absolute; right: -3px; top: -3px; display: grid; place-items: center; border: 2px solid #fcfaf6; border-radius: 10px; background: #d33c32; color: white; font-size: 8px; }
.welcome-strip { margin: 0 0 20px; padding: 13px 0 20px 22px; border-left: 3px solid var(--copper); border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.welcome-strip h2 { font-size: 28px; }
.welcome-strip p { color: var(--muted); font-size: 10px; }
.welcome-strip .date-pill { border-color: var(--line); color: var(--muted); }
.welcome-strip.invite-ready { padding: 18px 22px; border: 0; border-radius: 10px; background: var(--copper); color: white; }
.welcome-strip.invite-ready p { color: rgba(255,255,255,.72); }
.metric-grid { gap: 0; border-bottom: 1px solid var(--line); }
.metric-card { min-height: 110px; padding: 14px 20px; border: 0; border-right: 1px solid var(--line); background: transparent; }
.metric-card:last-child { border-right: 0; }
.metric-card strong { margin-top: 8px; font-size: 31px; }
.metric-card .metric-icon { background: #eee7dc; border-radius: 50%; }
.pipeline { padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.phase { min-height: 68px; border-radius: 8px; }
.panel { border: 0; background: transparent; }
.panel-head { min-height: 58px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 21px; }
.panel-head span { font-size: 9px; }
.project-table th { padding: 11px 12px; background: transparent; border-bottom: 1px solid var(--line); font-size: 8px; }
.project-table td { padding: 12px; border-top: 0; border-bottom: 1px solid #e9e3d9; font-size: 11px; }
.project-table tbody tr { position: relative; }
.project-table tbody tr:hover { background: #f0ebe2; }
.project-table tbody tr.has-unread { background: rgba(211,60,50,.025); }
.project-name { grid-template-columns: 50px 1fr; }
.project-name img { width: 50px; height: 40px; border-radius: 6px; }
.project-name strong { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.project-name span { font-size: 9px; }
.project-unread { min-width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 10px; background: #d33c32; color: white; font-size: 8px; }
.project-pin { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.project-pin:hover, .project-pin.active { background: #eadfd2; color: var(--copper); }
.project-pin.active svg { fill: currentColor; }
.project-pin svg { width: 17px; height: 17px; }
.timeline-list { padding-left: 4px; padding-right: 4px; }
.timeline-event::before { border-color: #f8f5ef; }
.client-hero-project { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.client-project-info { padding-left: 4px; }
.client-project-photo { overflow: hidden; border-radius: 10px; }

.workspace-kicker { color: var(--copper); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.open-section-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.open-section-head h2, .open-section-head h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 400; }
.open-section-head > span { color: var(--muted); font-size: 9px; }
.open-section-head button { border: 0; background: transparent; color: var(--copper); cursor: pointer; }
.invite-prepared { margin-bottom: 18px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 10px; background: var(--sage); color: white; }
.invite-prepared > div { display: flex; align-items: center; gap: 12px; }
.invite-prepared svg { width: 22px; height: 22px; }
.invite-prepared span { display: flex; flex-direction: column; }
.invite-prepared small { margin-top: 3px; color: rgba(255,255,255,.65); }
.clients-workspace { display: grid; grid-template-columns: minmax(360px,.9fr) minmax(420px,1.1fr); gap: clamp(28px,4vw,70px); }
.client-invite-form-section { padding-right: clamp(0px,2vw,30px); }
.client-invite-form-section h2 { margin: 5px 0 8px; font-family: var(--font-display); font-size: 36px; font-weight: 400; }
.client-invite-form-section > p { max-width: 540px; margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.invite-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.invite-submit { display: flex; align-items: center; gap: 16px; }
.invite-submit small { max-width: 330px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.client-rows { display: grid; }
.client-row { min-height: 68px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.client-row > div { min-width: 0; display: flex; flex-direction: column; }
.client-row strong { font-size: 11px; }
.client-row small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.client-state { padding: 5px 8px; border-radius: 12px; background: #e9f0e9; color: var(--success); font-size: 8px; }
.notification-workspace { max-width: 920px; }
.notification-list { display: grid; }
.notification-list > button { min-height: 75px; padding: 10px 4px; display: grid; grid-template-columns: 9px 62px 1fr 20px; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.notification-list > button:hover { background: #f0ebe2; }
.notification-list img { width: 62px; height: 46px; border-radius: 6px; object-fit: cover; }
.notification-list button > span:nth-of-type(2) { display: flex; flex-direction: column; }
.notification-list small { margin-top: 5px; color: var(--muted); }
.notification-pulse { width: 8px; height: 8px; border-radius: 50%; background: #d33c32; box-shadow: 0 0 0 4px rgba(211,60,50,.1); }
.empty-workspace { min-height: 55vh; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-workspace > svg { width: 34px; height: 34px; color: var(--copper); }
.empty-workspace h2 { margin: 12px 0 4px; font-family: var(--font-display); font-size: 34px; font-weight: 400; }
.empty-workspace p { color: var(--muted); }

.project-thread { min-height: 220px; max-height: 430px; padding: 4px 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: thin; }
.thread-message { max-width: 88%; display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-self: flex-start; }
.thread-message.mine { align-self: flex-end; grid-template-columns: 1fr 32px; }
.thread-message.mine .thread-avatar { grid-column: 2; }
.thread-message.mine > div { grid-column: 1; grid-row: 1; background: #e9dfd2; }
.thread-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: white; font-size: 8px; }
.thread-message > div { padding: 9px 11px; border-radius: 3px 12px 12px 12px; background: #f0ece5; }
.thread-message header { display: flex; justify-content: space-between; gap: 16px; }
.thread-message header strong { font-size: 8px; }
.thread-message time { color: var(--muted); font-size: 8px; }
.thread-message p { margin: 5px 0 0; color: #4c504c; font-size: 9px; line-height: 1.5; }
.thread-composer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.thread-composer > label { display: block; margin-bottom: 7px; font-size: 8px; font-weight: 700; }
.thread-composer > div { display: grid; grid-template-columns: 1fr 42px; gap: 7px; }
.thread-composer textarea { min-height: 68px; padding: 10px; resize: vertical; border: 1px solid var(--line); background: white; font: inherit; }
.thread-composer button { border: 0; border-radius: 7px; background: var(--copper); color: white; cursor: pointer; }
.thread-composer button svg { width: 18px; height: 18px; }
.thread-composer small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.client-thread-page { max-width: 980px; }
.client-thread-layout { max-width: 760px; padding-top: 20px; }
.client-thread-page .project-thread { max-height: none; overflow: visible; }

.pricing-account-bar { margin-bottom: 18px; padding: 13px 0 18px; display: grid; grid-template-columns: 1fr minmax(420px,1.4fr) auto; align-items: end; gap: 24px; border-bottom: 1px solid var(--line); }
.pricing-account-bar h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 27px; font-weight: 400; }
.pricing-settings { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pricing-settings label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; }
.pricing-settings input { width: 100%; min-height: 37px; padding: 0 9px; border: 1px solid var(--line); background: white; }
.private-label { display: flex; align-items: center; gap: 6px; color: var(--success); font-size: 8px; }
.private-label svg { width: 15px; height: 15px; }
.zone-matrix-head { margin-top: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.zone-matrix-head h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 21px; font-weight: 400; }
.zone-matrix-head button { margin-bottom: 8px; border: 0; background: transparent; color: var(--copper); cursor: pointer; font-size: 8px; }
.zone-matrix { width: 100%; border-collapse: collapse; }
.zone-matrix th, .zone-matrix td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; }
.zone-matrix th { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.zone-matrix td:first-child { min-width: 130px; }
.zone-matrix td:first-child strong, .zone-matrix td:first-child small { display: block; }
.zone-matrix td:first-child small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.zone-matrix input { width: 82px; min-height: 32px; padding: 0 7px; border: 1px solid var(--line); background: white; }
.zone-matrix tfoot td { color: var(--copper); font-weight: 700; }
.supplier-directory { margin-top: 28px; }
.drawer-zone-lines { margin-top: 10px; display: grid; gap: 5px; }
.drawer-zone-lines label { min-height: 34px; display: grid; grid-template-columns: 1fr 72px 72px 25px; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.drawer-zone-lines input { width: 100%; min-height: 31px; padding: 0 6px; border: 1px solid var(--line); }
.drawer-zone-lines small { font-size: 8px; }

/* Messagerie atelier : surfaces ouvertes, dossiers OVH et lecture sécurisée. */
.mail-connection-note { min-height: 62px; margin-bottom: 16px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-left: 3px solid var(--success); border-bottom: 1px solid var(--line); background: rgba(51,101,72,.045); }
.mail-connection-note > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.mail-connection-note > div > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--success); }
.mail-connection-note span { min-width: 0; display: flex; flex-direction: column; }
.mail-connection-note strong { font-size: 10px; }
.mail-connection-note small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.mail-connection-note .button { min-height: 35px; flex: 0 0 auto; font-size: 8px; }
.mail-workspace { min-height: 620px; height: calc(100dvh - 190px); display: grid; grid-template-columns: 220px minmax(290px,360px) minmax(360px,1fr); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fcfaf6; }
.mail-folders { min-width: 0; padding: 17px 13px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f4f0e8; }
.mail-account { min-width: 0; padding: 0 5px 15px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.mail-account .user-avatar { width: 34px; height: 34px; }
.mail-account > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.mail-account strong, .mail-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-account strong { font-size: 9px; }
.mail-account small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.mail-compose-trigger { width: 100%; min-height: 39px; margin: 14px 0; font-size: 9px; }
.mail-folders nav { display: grid; gap: 2px; }
.mail-folders nav button { min-height: 38px; padding: 0 9px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 9px; }
.mail-folders nav button:hover, .mail-folders nav button.active { background: #e8e0d4; color: var(--ink); }
.mail-folders nav button svg { width: 17px; height: 17px; }
.mail-folders nav button b { min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #ded4c6; color: var(--ink); font-size: 8px; }
.mail-folders nav button:first-child b { background: #d33c32; color: white; }
.mail-quota { margin-top: auto; padding: 14px 5px 2px; }
.mail-quota > span { height: 3px; display: block; overflow: hidden; border-radius: 2px; background: #ddd5ca; }
.mail-quota i { height: 100%; display: block; background: var(--copper); }
.mail-quota small { margin-top: 7px; display: block; color: var(--muted); font-size: 8px; }
.mail-list { min-width: 0; display: grid; grid-template-rows: 58px minmax(0,1fr); border-right: 1px solid var(--line); }
.mail-list > header { padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mail-list > header > div { display: flex; flex-direction: column; }
.mail-list > header strong { margin-top: 3px; font-size: 10px; }
.mail-list > header button, .mail-reading-actions button, .mail-compose header button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.mail-list > header button:hover, .mail-reading-actions button:hover, .mail-compose header button:hover { background: #eee8df; color: var(--copper); }
.mail-list > header svg, .mail-reading-actions svg, .mail-compose header svg { width: 17px; height: 17px; }
.mail-message-list { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.mail-message-row { width: 100%; min-height: 91px; padding: 11px 12px; display: grid; grid-template-columns: 31px minmax(0,1fr); gap: 9px; border: 0; border-bottom: 1px solid #ebe5dc; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.mail-message-row:hover, .mail-message-row.active { background: #f0ebe2; }
.mail-message-row.is-unread { box-shadow: inset 3px 0 #d33c32; background: rgba(211,60,50,.028); }
.mail-message-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e7ded2; color: var(--copper); font-size: 8px; font-weight: 700; }
.mail-message-copy { min-width: 0; display: flex; flex-direction: column; }
.mail-message-copy > span { min-width: 0; display: flex; justify-content: space-between; gap: 8px; }
.mail-message-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mail-message-copy time { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.mail-message-copy > b { margin-top: 5px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mail-message-copy small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mail-message-copy em { width: max-content; margin-top: 6px; padding: 2px 5px; border-radius: 8px; background: #e4ece4; color: var(--success); font-size: 8px; font-style: normal; }
.mail-list-empty, .mail-reading-empty { min-height: 260px; padding: 28px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.mail-list-empty svg, .mail-reading-empty > svg { width: 29px; height: 29px; margin-bottom: 10px; color: var(--copper); }
.mail-list-empty span, .mail-reading-empty p { font-size: 9px; }
.mail-reading { min-width: 0; min-height: 0; overflow-y: auto; }
.mail-reading-pane { min-height: 100%; padding: 24px clamp(20px,3vw,52px) 40px; }
.mail-reading-pane > header { padding-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.mail-reading-pane h2 { max-width: 720px; margin: 6px 0 5px; font-family: var(--font-display); font-size: clamp(25px,2.5vw,39px); font-weight: 400; line-height: 1.08; }
.mail-reading-pane header p { margin: 0; color: var(--muted); font-size: 8px; }
.mail-reading-actions { flex: 0 0 auto; display: flex; gap: 3px; }
.mail-safe-note { margin: 16px 0 22px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; background: #edf1eb; color: #3f694e; font-size: 8px; }
.mail-safe-note svg { width: 15px; height: 15px; flex: 0 0 auto; }
.mail-body { max-width: 750px; color: #3f433f; font-size: 11px; line-height: 1.75; white-space: pre-wrap; }
.mail-body p { margin: 0 0 17px; }
.mail-font-arial { font-family: Arial, Helvetica, sans-serif; }
.mail-font-georgia { font-family: Georgia, "Times New Roman", serif; }
.mail-font-tahoma { font-family: Tahoma, Verdana, sans-serif; }
.mail-font-trebuchet { font-family: "Trebuchet MS", Arial, sans-serif; }
.mail-font-verdana { font-family: Verdana, Geneva, sans-serif; }
.mail-attachments { margin-top: 24px; padding-top: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.mail-attachments > strong { margin-right: 4px; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.mail-attachments button, .mail-project-link { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: white; color: var(--copper); cursor: pointer; font-size: 8px; }
.mail-attachments svg, .mail-project-link svg { width: 15px; height: 15px; }
.mail-attachments button > span { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; text-align: left; }
.mail-attachments button small { color: var(--muted); font-size: 7px; }
.mail-project-link { margin-top: 16px; }
.mail-compose { min-height: 100%; padding: 21px clamp(18px,3vw,42px) 30px; display: flex; flex-direction: column; }
.mail-compose > header { padding-bottom: 15px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mail-compose h3 { margin: 5px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.mail-compose > label { min-height: 48px; display: grid; grid-template-columns: 65px minmax(0,1fr); align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.mail-compose > label > input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.mail-compose-toolbar { min-height: 51px; padding: 7px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.mail-tool-button { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); cursor: pointer; font: inherit; font-size: 8px; }
.mail-tool-button:hover, .mail-tool-button:focus-visible, .mail-tool-button[aria-pressed="true"] { border-color: var(--copper); color: var(--copper); outline: 0; }
.mail-tool-button.is-disabled { opacity: .45; cursor: not-allowed; }
.mail-tool-button svg { width: 15px; height: 15px; }
.mail-bold-button { width: 34px; padding: 0; font-family: Georgia, serif; font-size: 14px; }
.mail-font-choice { min-height: 34px; padding: 0 8px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); font-size: 8px; }
.mail-font-choice select { max-width: 112px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 8px; cursor: pointer; }
.mail-attachment-trigger { position: relative; }
.mail-compose-body { min-height: 280px; padding: 14px 0 9px; display: grid; grid-template-columns: 65px minmax(0,1fr); align-items: stretch; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.mail-compose-body > span { padding-top: 5px; }
.mail-editor-shell { min-width: 0; display: flex; flex-direction: column; }
.mail-rich-editor { min-height: 225px; padding: 4px 7px 12px; outline: 0; color: var(--ink); font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-rich-editor:empty::before { color: #9b968d; content: attr(data-placeholder); pointer-events: none; }
.mail-rich-editor:focus { box-shadow: inset 2px 0 var(--copper); }
.mail-editor-shell > small { margin-top: auto; align-self: flex-end; color: var(--muted); font-size: 7px; }
.mail-editor-shell > small.is-over { color: #b3322d; font-weight: 700; }
.mail-compose-files { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mail-compose-files > strong { display: block; margin-bottom: 8px; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.mail-compose-files > div { display: flex; flex-wrap: wrap; gap: 7px; }
.mail-compose-files > div > span { min-height: 40px; max-width: 260px; padding: 5px 5px 5px 9px; display: grid; grid-template-columns: 15px minmax(0,1fr) 28px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 8px; }
.mail-compose-files > div > span > svg { width: 15px; height: 15px; color: var(--copper); }
.mail-compose-files > div > span > span { min-width: 0; display: flex; flex-direction: column; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-compose-files > div small, .mail-compose-files > small { color: var(--muted); font-size: 7px; }
.mail-compose-files > small { margin-top: 7px; display: block; }
.mail-compose-files button, .mail-compose-signature header button, .mail-signature-image-list figure button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.mail-compose-files button:hover, .mail-compose-signature header button:hover, .mail-signature-image-list figure button:hover { background: #eee8df; color: var(--copper); }
.mail-compose-files button svg, .mail-compose-signature header button svg, .mail-signature-image-list figure button svg { width: 13px; height: 13px; }
.mail-compose-signature { margin: 14px 0 2px; padding: 10px 12px 12px; border-left: 2px solid var(--copper); background: #f5f1e9; }
.mail-compose-signature > header { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.mail-compose-signature > header strong { font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.mail-signature-content { color: #4a4b47; font-size: 9px; line-height: 1.55; }
.mail-signature-content p { margin: 0; }
.mail-signature-images { margin-top: 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.mail-signature-images img { width: auto; max-width: 180px; height: auto; max-height: 72px; display: block; object-fit: contain; }
.mail-sent-signature { max-width: 750px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.mail-signature-panel { margin-top: 14px; border-left: 3px solid var(--copper); border-bottom: 1px solid var(--line); background: #f5f1e9; }
.mail-signature-panel > header { min-height: 56px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ded5c8; }
.mail-signature-panel > header h4 { margin: 3px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.mail-signature-panel > header > span { color: var(--muted); font-size: 8px; }
.mail-signature-chooser { padding: 13px; display: grid; grid-template-columns: minmax(180px,1fr) auto; align-items: end; gap: 9px 14px; }
.mail-signature-chooser > label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 8px; }
.mail-signature-chooser select { width: 100%; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); font: inherit; font-size: 9px; }
.mail-signature-chooser > div { display: flex; gap: 6px; }
.mail-signature-chooser .button { min-height: 36px; font-size: 8px; }
.mail-signature-chooser > p { margin: 0; color: var(--muted); font-size: 9px; }
.mail-signature-new { width: max-content; padding: 0; display: inline-flex; align-items: center; gap: 6px; grid-column: 1 / -1; border: 0; background: transparent; color: var(--copper); cursor: pointer; font: inherit; font-size: 8px; font-weight: 700; }
.mail-signature-new svg { width: 14px; height: 14px; }
.mail-signature-editor { padding: 13px; }
.mail-signature-editor-fields { display: grid; grid-template-columns: minmax(140px,.6fr) minmax(210px,1.4fr); gap: 10px; }
.mail-signature-editor-fields label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 8px; }
.mail-signature-editor input, .mail-signature-editor textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: white; color: var(--ink); font: inherit; font-size: 9px; }
.mail-signature-editor textarea { min-height: 86px; resize: vertical; line-height: 1.5; }
.mail-signature-editor input:focus, .mail-signature-editor textarea:focus { border-color: var(--copper); }
.mail-signature-image-editor { margin-top: 12px; padding-top: 11px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; border-top: 1px solid #ded5c8; }
.mail-signature-image-editor > div:first-child { min-width: 145px; display: flex; flex-direction: column; }
.mail-signature-image-editor strong { font-size: 8px; }
.mail-signature-image-editor small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.mail-signature-image-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-signature-image-list figure { width: 112px; height: 58px; margin: 0; padding: 4px 29px 4px 5px; position: relative; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.mail-signature-image-list figure img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; }
.mail-signature-image-list figcaption { min-width: 0; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.mail-signature-image-list figure button { position: absolute; top: 3px; right: 2px; }
.mail-signature-editor-actions { margin-top: 12px; display: flex; justify-content: flex-end; gap: 7px; }
.mail-signature-editor-actions .button { min-height: 36px; font-size: 8px; }
.mail-compose-actions { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.mail-compose-actions > span { margin-right: auto; display: flex; align-items: center; gap: 6px; color: var(--success); font-size: 8px; }
.mail-compose-actions svg { width: 14px; height: 14px; }

/* Planning atelier : calendrier par ressources, ouvert et compact. */
.planning-toolbar { min-height: 76px; padding-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.planning-toolbar h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 29px; font-weight: 400; text-transform: capitalize; }
.planning-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.planning-view-switch, .planning-period-nav { min-height: 38px; padding: 3px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.46); }
.planning-view-switch button, .planning-period-nav button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 9px; }
.planning-view-switch button:hover, .planning-period-nav button:hover { color: var(--ink); }
.planning-view-switch button.active { background: var(--ink); color: white; }
.planning-period-nav button:first-child, .planning-period-nav button:last-child { width: 32px; padding: 0; font-size: 21px; line-height: 1; }
.planning-workspace { display: grid; grid-template-columns: 242px minmax(0,1fr); }
.planning-side { min-width: 0; padding-right: 24px; border-right: 1px solid var(--line); }
.planning-side > section { padding: 19px 0; border-bottom: 1px solid var(--line); }
.planning-side-head { margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.planning-side-head > strong { font-size: 9px; font-weight: 600; text-transform: capitalize; }
.planning-side-head > small { color: var(--muted); font-size: 8px; }
.planning-team { display: grid; gap: 3px; }
.planning-team-row { min-height: 49px; display: grid; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 9px; position: relative; }
.planning-team-row .user-avatar { width: 31px; height: 31px; font-size: 8px; }
.planning-team-row > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.planning-team-row strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.planning-team-row small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.planning-team-row > b { grid-column: 2; margin-top: -7px; color: var(--success); font-size: 8px; font-weight: 600; }
.planning-team-row > b.is-unavailable { color: #b74b44; }
.planning-opening { display: grid; }
.planning-opening-row { min-height: 31px; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) auto 8px; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid rgba(222,213,201,.62); background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.planning-opening-row span { font-size: 8px; }
.planning-opening-row strong { font-size: 8px; font-weight: 500; }
.planning-opening-row i { width: 7px; height: 7px; border-radius: 50%; background: #bbb4aa; }
.planning-opening-row.is-open { color: var(--ink); }
.planning-opening-row.is-open i { background: #5b9569; box-shadow: 0 0 0 3px rgba(91,149,105,.11); }
.planning-opening-row:hover span { color: var(--copper); }
.planning-create { padding: 18px 0; border-bottom: 1px solid var(--line); }
.planning-create summary { min-height: 38px; display: flex; align-items: center; justify-content: space-between; color: var(--copper); cursor: pointer; font-size: 9px; font-weight: 700; list-style: none; }
.planning-create summary::-webkit-details-marker { display: none; }
.planning-create summary b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #eadfd2; font-size: 16px; font-weight: 400; }
.planning-create[open] summary b { transform: rotate(45deg); }
.planning-create form { padding-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.planning-create label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; }
.planning-create input, .planning-create select { width: 100%; min-width: 0; min-height: 34px; padding: 0 7px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); font: inherit; font-size: 8px; }
.planning-create .planning-form-wide, .planning-create .planning-form-dates, .planning-create .button { grid-column: 1 / -1; }
.planning-form-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.planning-create .button { min-height: 36px; margin-top: 2px; justify-content: center; }
.planning-board { min-width: 0; padding: 18px 0 0 24px; }
.planning-board-meta { min-height: 35px; display: flex; align-items: start; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 8px; }
.planning-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.planning-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.planning-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--copper); }
.planning-legend .legend-leave i { background: #688b88; }
.planning-legend .legend-sick i { background: #b74b44; }
.planning-legend .legend-closure i { background: #77736e; }
.planning-calendar { min-width: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.planning-week-grid, .planning-month-grid, .planning-weekdays { min-width: 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.planning-weekdays { border-right: 1px solid var(--line); }
.planning-weekdays span { min-height: 30px; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.planning-weekdays span:last-child { border-right: 0; }
.planning-weekdays i { display: none; font-style: normal; }
.planning-day { min-width: 0; min-height: 278px; padding: 9px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.22); }
.planning-month .planning-day { min-height: 126px; padding: 7px 6px; }
.planning-day.is-outside { background: rgba(232,227,217,.35); opacity: .48; }
.planning-day.is-today { box-shadow: inset 0 3px 0 var(--copper); background: rgba(163,84,50,.035); }
.planning-day > header { min-height: 36px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 7px; }
.planning-day > header strong { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 600; }
.planning-day.is-today > header strong { background: var(--copper); color: white; }
.planning-day > header small { padding-top: 5px; overflow: hidden; color: #a16a65; font-size: 7px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.planning-day > header small.is-open { color: #5c7663; }
.planning-mobile-weekday { display: none; }
.planning-day-events { min-width: 0; display: grid; align-content: start; gap: 5px; }
.planning-event { min-width: 0; min-height: 31px; padding: 5px 5px; display: grid; grid-template-columns: 19px minmax(0,1fr) auto; align-items: center; gap: 5px; border-left: 2px solid var(--copper); border-radius: 4px; background: #eee1d7; color: #6e3825; }
.planning-event-owner { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.65); font-size: 6px; font-weight: 700; }
.planning-event strong { min-width: 0; overflow: hidden; font-size: 7px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.planning-event button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: currentColor; cursor: pointer; font-size: 13px; line-height: 1; }
.planning-event button:hover { background: rgba(255,255,255,.7); }
.planning-event-leave { border-color: #688b88; background: #e1ebe9; color: #3f6965; }
.planning-event-sick { border-color: #b74b44; background: #f3e1df; color: #913b35; }
.planning-event-closure { border-color: #77736e; background: #e8e5e1; color: #5d5954; }
.planning-empty-slot { color: #aaa299; font-size: 8px; font-style: italic; }
.planning-current { margin-top: 20px; }
.planning-current .open-section-head { min-height: 56px; }
.planning-current .open-section-head h3 { font-size: 23px; }
.planning-project-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.planning-project-row { min-width: 0; min-height: 57px; padding: 8px 2px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.planning-project-row > span { min-width: 0; display: flex; flex-direction: column; }
.planning-project-row strong, .planning-project-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planning-project-row strong { font-size: 9px; }
.planning-project-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.planning-project-row > b { color: var(--copper); font-size: 9px; }
.planning-project-row > i { height: 2px; grid-column: 1 / -1; overflow: hidden; background: #e5dfd6; }
.planning-project-row > i em { height: 100%; display: block; background: var(--copper); }
.planning-project-row:hover strong { color: var(--copper); }

/* Bibliothèque matières artisan : une surface de travail ouverte, sans mur de cartes. */
.material-library { min-width: 0; color: var(--ink); }
.material-library-hero { min-height: 112px; padding: 2px 0 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 28px; border-bottom: 1px solid var(--line); }
.material-library-hero h2 { margin: 5px 0 7px; font-family: var(--display); font-size: clamp(31px,3vw,49px); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.material-library-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.material-library-hero .private-label { margin-top: 4px; padding: 8px 11px; border-radius: 999px; background: #e6eee8; color: #315c45; font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.material-library-stats { min-width: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.material-library-stats > span { min-width: 0; min-height: 72px; padding: 14px 15px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.35; }
.material-library-stats > span:first-child { padding-left: 0; }
.material-library-stats > span:last-child { border-right: 0; }
.material-library-stats strong { color: var(--ink); font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1; }
.material-library-toolbar { padding: 15px 0; display: grid; grid-template-columns: minmax(260px,1fr) minmax(175px,.38fr) minmax(175px,.38fr); gap: 10px; border-bottom: 1px solid var(--line); }
.material-library-toolbar label { min-width: 0; position: relative; }
.material-library-toolbar label svg { width: 17px; height: 17px; position: absolute; left: 13px; top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.material-library-toolbar input,
.material-library-toolbar select { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.42); color: var(--ink); font: inherit; font-size: 11px; }
.material-library-toolbar input { padding-left: 41px; }
.material-library-toolbar input:focus,
.material-library-toolbar select:focus { border-color: var(--copper); outline: 2px solid rgba(122,63,37,.2); outline-offset: 1px; }
.material-library-heading { padding: 17px 0 10px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.material-library-heading h3 { margin: 3px 0 0; font-family: var(--display); font-size: 26px; font-weight: 400; }
.material-library-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: right; }
.material-library-table-wrap { min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.material-library-table { width: 100%; min-width: 890px; border-collapse: collapse; table-layout: fixed; }
.material-library-table th { padding: 10px 10px; border-bottom: 1px solid #cfc3b2; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.material-library-table th:first-child,
.material-library-table td:first-child { width: 31%; padding-left: 0; }
.material-library-table th:nth-child(2) { width: 20%; }
.material-library-table th:nth-child(3) { width: 15%; }
.material-library-table th:nth-child(4) { width: 24%; }
.material-library-table th:last-child { width: 10%; padding-right: 0; text-align: right; }
.material-library-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 10px; line-height: 1.35; }
.material-library-table td:last-child { padding-right: 0; text-align: right; }
.material-library-table td > strong,
.material-library-table td > span { display: block; font-size: 11px; }
.material-library-table td > small { margin-top: 3px; display: block; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.material-library-table a { color: var(--copper); font-size: 9px; font-weight: 700; text-decoration: none; }
.material-library-table a:hover { text-decoration: underline; }
.library-price { font-weight: 700; }
.library-price.observed { color: #315c45; }
.library-price.quote { color: var(--copper); }
.library-lifecycle { width: max-content; margin-top: 6px; padding: 3px 6px; border-radius: 999px; background: #eee0d8; color: #7d432d; font-size: 7px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.material-library-table tr[hidden] { display: none; }

@media (min-width: 1101px) and (max-height: 820px) {
  .config-header { height: 58px; flex-basis: 58px; }
  .config-layout { grid-template-rows: 53px minmax(0,1fr); }
  .config-sidebar { padding-top: 5px; padding-bottom: 5px; }
  .config-footer { height: 56px; flex-basis: 56px; }
  .config-main { padding-top: 10px; }
  .question-head { min-height: 54px; }
  .question-head h2 { font-size: 29px; }
  .choice-card { min-height: 60px; }
  .subsection-title { margin-top: 8px; }
  .preview-canvas { height: 190px; }
}

@media (max-width: 1100px) {
  .configurator-shell { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .config-header { height: 64px; position: sticky; z-index: 8; top: 0; grid-template-columns: 1fr auto; }
  .config-header .config-title { display: none; }
  .config-layout { min-height: auto; display: block; }
  .config-sidebar { padding: 8px 14px; position: sticky; z-index: 7; top: 64px; display: block; border-bottom: 1px solid var(--line); }
  .config-step-list { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .config-step-list::-webkit-scrollbar { display: none; }
  .config-step { min-width: 126px; flex: 0 0 126px; }
  .config-help { display: none; }
  .config-main { min-height: calc(100dvh - 184px); padding: 22px 20px 28px; overflow: visible; }
  .config-preview { display: none; }
  .config-footer { height: 60px; padding: 0 14px; position: sticky; bottom: 0; }
  .question-head { display: block; }
  .question-head h2 { margin: 4px 0 7px; }
  .question-head p { margin: 0; }
  .choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .palette-grid { grid-template-columns: repeat(5,1fr); }
  .adaptive-grid { grid-template-columns: 1fr 1fr; }
  .portal-layout { grid-template-columns: 78px minmax(0,1fr); }
  .portal-sidebar { width: 78px; padding: 16px 10px; }
  .portal-sidebar .brand-logo { width: 56px; height: 34px; }
  .portal-sidebar .brand-copy, .portal-nav button span:not(.nav-badge), .atelier-team > small, .artisan-switch > span:nth-child(2), .sidebar-bottom .user-chip > div, .sidebar-bottom .user-chip > button { display: none; }
  .portal-nav button { justify-content: center; }
  .atelier-team { justify-items: center; }
  .artisan-switch { width: 46px; grid-template-columns: 1fr 5px; gap: 2px; }
  .artisan-switch .user-avatar { width: 30px; }
  .portal-main { grid-column: 2; }
  .clients-workspace { grid-template-columns: 1fr; }
  .pricing-account-bar { grid-template-columns: 1fr; align-items: stretch; }
  .private-label { justify-self: start; }
  .estimate-layout { grid-template-columns: 1fr; }
  .mail-workspace { height: auto; min-height: 0; grid-template-columns: 190px minmax(0,1fr); overflow: visible; }
  .mail-list { min-height: 510px; border-right: 0; }
  .mail-reading { min-height: 430px; grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .planning-workspace { grid-template-columns: 1fr; }
  .planning-side { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-right: 0; }
  .planning-create { grid-column: 1 / -1; }
  .planning-create form { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .planning-create .planning-form-wide { grid-column: span 2; }
  .planning-create .planning-form-dates { grid-column: span 2; }
  .planning-create .button { grid-column: 3 / 5; align-self: end; }
  .planning-board { padding-left: 0; border-top: 1px solid var(--line); }
  .material-library-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .material-library-stats > span:nth-child(3n) { border-right: 0; }
  .material-library-stats > span:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .material-library-toolbar { grid-template-columns: minmax(240px,1fr) 180px 180px; }
}

@media (max-width: 620px) {
  .site-header .brand-logo { width: 66px; height: 40px; }
  .site-header .brand-copy { display: none; }
  .stitch-signature { width: 100%; }
  .config-header .brand-logo { width: 64px; height: 38px; }
  .config-header .brand-copy { display: none; }
  .config-step { min-width: 103px; flex-basis: 103px; padding: 0 6px; }
  .config-step span { font-size: 8px; }
  .config-main { padding: 18px 14px 24px; }
  .choice-grid, .compact-choice-grid { grid-template-columns: 1fr 1fr; }
  .choice-card { min-height: 74px; }
  .choice-card strong { font-size: 13px; }
  .model-card { grid-template-columns: 54px 1fr; }
  .model-card .model-photo, .model-card .model-trait { width: 48px; }
  .model-fields { grid-template-columns: 1fr 1fr; }
  .adaptive-grid { grid-template-columns: 1fr; }
  .answer-field-wide { grid-column: auto; }
  .conditional-heading { align-items: flex-start; flex-direction: column; }
  .palette-grid { grid-template-columns: repeat(2,1fr); }
  .color-role-tabs { grid-template-columns: 1fr 1fr; }
  .pattern-grid { grid-template-columns: repeat(2,1fr); }
  .toggle-list, .compact-toggle-list { grid-template-columns: 1fr 1fr; }
  .portal-layout { display: block; }
  .portal-sidebar { width: 100%; height: 64px; padding: 0 8px; position: fixed; z-index: 30; inset: auto 0 0; flex-direction: row; }
  .portal-sidebar > .brand, .atelier-team, .sidebar-bottom { display: none; }
  .portal-nav { width: 100%; margin: 0; display: flex; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .portal-nav::-webkit-scrollbar { display: none; }
  .portal-nav button { min-width: 44px; padding: 0 9px; flex: 1 0 44px; }
  .portal-main { margin: 0; }
  .portal-topbar { height: 66px; padding: 0 13px; }
  .portal-topbar h1 { max-width: 190px; overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
  .portal-content { padding: 18px 13px 88px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .invite-prepared { align-items: stretch; flex-direction: column; }
  .invite-form-grid { grid-template-columns: 1fr; }
  .invite-submit { align-items: stretch; flex-direction: column; }
  .client-row { grid-template-columns: 36px 1fr; }
  .client-state { grid-column: 2; justify-self: start; }
  .notification-list > button { grid-template-columns: 8px 48px 1fr 16px; }
  .notification-list img { width: 48px; height: 40px; }
  .pricing-settings { grid-template-columns: 1fr 1fr; }
  .pricing-account-bar { gap: 14px; }
  .portal-main, .portal-content, .estimate-layout, .estimate-builder,
  .estimate-grid, .estimate-grid > *, .estimate-total, .supplier-directory { min-width: 0; max-width: 100%; }
  .estimate-grid { grid-template-columns: minmax(0,1fr); }
  .estimate-grid input, .estimate-grid select { width: 100%; min-width: 0; }
  .zone-matrix, .supplier-directory { display: block; overflow-x: auto; overscroll-behavior-inline: contain; }
  .supplier-table { min-width: 680px; }
  .zone-matrix input { width: 72px; }
  .project-drawer { padding: 20px 16px; }
  .drawer-tabs { gap: 13px; overflow-x: auto; scrollbar-width: none; }
  .drawer-tabs button { flex: 0 0 auto; }
  .drawer-zone-lines label { grid-template-columns: 1fr 62px 62px 24px; }
  .project-thread { max-height: none; overflow: visible; }
  .mail-connection-note { align-items: stretch; flex-direction: column; }
  .mail-connection-note .button { width: max-content; }
  .mail-workspace { display: block; }
  .mail-folders { padding: 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mail-account { padding-bottom: 12px; }
  .mail-compose-trigger { margin: 11px 0; }
  .mail-folders nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .mail-folders nav::-webkit-scrollbar { display: none; }
  .mail-folders nav button { min-width: max-content; flex: 0 0 auto; grid-template-columns: 17px auto auto; }
  .mail-quota { display: none; }
  .mail-list { min-height: 430px; max-height: 540px; }
  .mail-reading { min-height: 390px; overflow: visible; }
  .mail-reading-pane { padding: 20px 14px 34px; }
  .mail-reading-pane > header { align-items: stretch; flex-direction: column; }
  .mail-reading-actions { order: -1; justify-content: flex-end; }
  .mail-compose { padding: 18px 14px 28px; }
  .mail-compose > label { grid-template-columns: 54px minmax(0,1fr); }
  .mail-compose-toolbar { align-items: stretch; }
  .mail-font-choice { flex: 1 1 130px; justify-content: space-between; }
  .mail-font-choice select { width: 100%; max-width: none; }
  .mail-tool-button { flex: 1 1 auto; }
  .mail-bold-button { flex: 0 0 34px; }
  .mail-compose-body { min-height: 250px; grid-template-columns: 1fr; gap: 6px; }
  .mail-compose-body > span { padding: 0; }
  .mail-rich-editor { min-height: 205px; padding-left: 5px; }
  .mail-compose-files > div { display: grid; grid-template-columns: 1fr; }
  .mail-compose-files > div > span { max-width: none; }
  .mail-signature-chooser { grid-template-columns: 1fr; align-items: stretch; }
  .mail-signature-chooser > div { display: grid; grid-template-columns: 1fr 1fr; }
  .mail-signature-editor-fields { grid-template-columns: 1fr; }
  .mail-signature-image-editor { display: grid; }
  .mail-signature-editor-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mail-signature-images img { max-width: 140px; max-height: 64px; }
  .mail-compose-actions { align-items: stretch; flex-wrap: wrap; }
  .mail-compose-actions > span { width: 100%; margin: 0 0 5px; }
  .mail-compose-actions .button { flex: 1 1 auto; }
  .planning-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .planning-toolbar-actions { width: 100%; justify-content: space-between; }
  .planning-period-nav button { padding-right: 8px; padding-left: 8px; }
  .planning-side { display: block; }
  .planning-create form { grid-template-columns: 1fr 1fr; }
  .planning-create .planning-form-wide, .planning-create .planning-form-dates, .planning-create .button { grid-column: 1 / -1; }
  .planning-board-meta { padding: 12px 0 9px; align-items: flex-start; flex-direction: column-reverse; gap: 8px; }
  .planning-weekdays { display: none; }
  .planning-week-grid, .planning-month-grid { grid-template-columns: minmax(0,1fr); }
  .planning-month .planning-day.is-outside { display: none; }
  .planning-day, .planning-month .planning-day { min-height: 82px; padding: 9px; display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 9px; }
  .planning-day > header { min-height: 0; display: grid; grid-template-columns: 1fr auto; align-content: start; }
  .planning-mobile-weekday { display: block; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .planning-day > header strong { grid-column: 2; grid-row: 1; }
  .planning-day > header small { grid-column: 1 / -1; padding-top: 4px; text-align: left; }
  .planning-event { min-height: 34px; }
  .planning-event strong { font-size: 8px; }
  .planning-project-list { grid-template-columns: minmax(0,1fr); }
  .planning-current .open-section-head { align-items: flex-start; flex-direction: column; justify-content: center; }
  .material-library-hero { min-height: 0; grid-template-columns: 1fr; gap: 10px; }
  .material-library-hero h2 { font-size: 34px; }
  .material-library-hero .private-label { width: max-content; }
  .material-library-stats { grid-template-columns: 1fr 1fr; }
  .material-library-stats > span,
  .material-library-stats > span:nth-child(3n) { min-height: 62px; padding: 10px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .material-library-stats > span:nth-child(2n) { border-right: 0; }
  .material-library-stats > span:nth-last-child(-n+2) { border-bottom: 0; }
  .material-library-stats > span:first-child { padding-left: 0; }
  .material-library-toolbar { grid-template-columns: minmax(0,1fr); }
  .material-library-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .material-library-heading p { text-align: left; }
  .material-library-table-wrap { margin-right: -13px; padding-right: 13px; }
  .material-library-table { min-width: 820px; }
}

@media (max-width: 430px) {
  .choice-grid, .compact-choice-grid { grid-template-columns: minmax(0,1fr); }
  .model-fields { grid-template-columns: minmax(0,1fr); }
}

/* Accueil 2026 : une seule scène, cinq travaux accessibles par onglets. */
html:has(.one-screen-home:not(.hidden)),
body:has(.one-screen-home:not(.hidden)) { height: 100%; overflow: hidden; }
.one-screen-home { width: 100%; height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-rows: 28px 70px minmax(0,1fr); background: var(--cream); }
.one-screen-home > .announcement { height: 28px; padding-right: 3vw; font-size: 9px; }
.one-screen-home > .site-header { height: 70px; padding: 0 3vw; }
.one-screen-home > .site-header.sticky { height: 70px; position: relative; inset: auto; box-shadow: none; animation: none; }
.one-screen-home .site-header .brand-logo { width: 86px; height: 50px; }
.one-screen-home .site-header .brand-logo { width: 132px; height: 74px; animation: yellowLogoShine 1.65s cubic-bezier(.2,.7,.25,1) .25s 1 both; filter: saturate(1.18) drop-shadow(0 6px 12px rgba(210,160,25,.25)); }
@keyframes yellowLogoShine { 0% { transform: translateX(-9px) scale(.94); filter: saturate(.9) brightness(.88) drop-shadow(-9px 4px 6px rgba(210,160,25,0)); } 55% { filter: saturate(1.5) brightness(1.2) drop-shadow(8px 5px 15px rgba(255,204,45,.5)); } 100% { transform: translateX(0) scale(1); filter: saturate(1.2) brightness(1.02) drop-shadow(0 6px 12px rgba(210,160,25,.25)); } }
.site-scoreboard { min-width: 250px; height: 46px; padding: 5px 12px; position: absolute; left: 50%; top: 50%; z-index: 4; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; border: 1px solid rgba(201,159,88,.52); background: rgba(24,29,26,.94); color: white; transform: translate(-50%,-50%); box-shadow: 0 8px 24px rgba(20,24,21,.16); }
.site-scoreboard span { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px; }
.site-scoreboard b { color: var(--gold); font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.site-scoreboard small { color: rgba(255,255,255,.68); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.admin-scoreboard { padding: 14px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.5); }
@media (max-width: 980px) { .site-scoreboard { display: none; } }
.one-screen-home .brand-copy strong { font-size: 14px; }
.one-screen-home .brand-copy small { margin-top: 4px; font-size: 7px; }
.one-screen-home .main-nav { gap: clamp(17px,2vw,32px); margin-right: clamp(18px,2.5vw,38px); }
.one-screen-home .main-nav a { font-size: 10px; }
.one-screen-home .header-actions .button { min-height: 39px; padding-right: 14px; padding-left: 14px; font-size: 10px; }
.one-screen-home > main { min-width: 0; min-height: 0; overflow: hidden; }
.one-screen-home > main > section:not(.home-showcase),
.one-screen-home > .site-footer { display: none; }

.one-screen-home .home-showcase { width: 100%; max-width: 1920px; height: 100%; min-height: 0; margin: 0 auto; padding: 18px clamp(20px,2.5vw,48px) 18px 0; display: grid; grid-template-columns: clamp(174px,14vw,224px) minmax(330px,.72fr) minmax(450px,1.28fr); align-items: stretch; gap: clamp(20px,2.3vw,42px); overflow: hidden; }
.one-screen-home .home-showcase::before { width: 34vw; height: 34vw; left: 9vw; top: 8%; opacity: .72; }
.one-screen-home .home-showcase .reveal { opacity: 1; transform: none; }

.work-rail { --rail-gold: #d99f55; min-width: 0; min-height: 0; padding: clamp(22px,3vh,34px) 0 20px clamp(18px,2.5vw,42px); position: relative; z-index: 2; display: flex; flex-direction: column; overflow: hidden; background: var(--sage); color: white; }
.work-rail::before { content: ""; width: 130px; height: 130px; position: absolute; left: -72px; top: -62px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 56px rgba(255,255,255,.012); pointer-events: none; }
.work-rail-heading { padding: 0 18px 18px 0; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.16); }
.work-rail-heading span { color: var(--rail-gold); font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .21em; }
.work-rail-heading strong { margin-top: 8px; font-family: var(--font-display); font-size: clamp(23px,2vw,30px); font-weight: 400; }
.one-screen-home .hero-photo-strip { width: auto; min-height: 0; margin: 8px 0 0; position: static; display: grid; grid-template-rows: repeat(5,minmax(54px,1fr)); gap: 0; overflow: hidden; }
.one-screen-home .hero-thumb { width: 100%; height: auto; min-height: 0; padding: 7px 15px 7px 0; display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 8px; overflow: visible; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: transparent; box-shadow: none; color: rgba(255,255,255,.67); opacity: 1; cursor: pointer; text-align: left; transform: none; transition: color .2s ease, background .2s ease, padding .2s ease; }
.one-screen-home .hero-thumb::before { content: ""; width: 2px; position: absolute; inset: 9px auto 9px 0; background: var(--gold); opacity: 0; transform: scaleY(.25); transition: opacity .2s ease, transform .2s ease; }
.one-screen-home .hero-thumb > span:first-child { color: rgba(255,255,255,.6); font-size: 7px; letter-spacing: .1em; }
.one-screen-home .hero-thumb > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.one-screen-home .hero-thumb strong { overflow: hidden; color: inherit; font-family: var(--font-display); font-size: clamp(15px,1.25vw,19px); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.one-screen-home .hero-thumb small { overflow: hidden; color: rgba(255,255,255,.6); font-size: 7px; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.one-screen-home .hero-thumb:hover,
.one-screen-home .hero-thumb.active { padding-left: 9px; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.055); color: white; transform: none; }
.one-screen-home .hero-thumb.active::before { opacity: 1; transform: scaleY(1); }
.one-screen-home .hero-thumb.active > span:first-child { color: var(--rail-gold); }
.one-screen-home .hero-thumb:focus-visible { outline: 2px solid var(--rail-gold); outline-offset: -3px; box-shadow: none; }
.work-rail-gallery { min-height: 40px; padding: 0 15px 0 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); background: transparent; color: white; cursor: pointer; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.work-rail-gallery span { min-width: 25px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; color: var(--rail-gold); font-size: 7px; }
.work-rail-contact { margin-top: auto; padding: 15px 18px 0 0; display: flex; flex-direction: column; gap: 4px; }
.work-rail-contact small { color: rgba(255,255,255,.6); font-size: 7px; text-transform: uppercase; letter-spacing: .12em; }
.work-rail-contact strong { color: white; font-size: 10px; font-weight: 600; letter-spacing: .04em; }

.one-screen-home .hero-copy { min-width: 0; min-height: 0; padding: clamp(18px,3vh,38px) 0; position: relative; z-index: 1; align-self: center; }
.one-screen-home .hero-copy:focus { outline: none; }
.one-screen-home .eyebrow { font-size: clamp(7px,.65vw,9px); letter-spacing: .18em; }
.one-screen-home .hero h1 { max-width: 560px; margin: clamp(12px,2vh,20px) 0; font-size: clamp(44px,4.4vw,70px); line-height: .94; }
.one-screen-home .stitch-signature { width: min(420px,94%); height: clamp(24px,3.4vh,34px); margin: -7px 0 clamp(9px,1.6vh,15px); }
.one-screen-home .hero-copy > p { max-width: 510px; min-height: 4.65em; margin: 0; color: #565a54; font-size: clamp(12px,1vw,15px); line-height: 1.55; }
.hero-work-meta { margin-top: clamp(12px,2vh,20px); display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--copper); font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.hero-work-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-work-meta span:not(:last-child)::after { content: ""; width: 2px; height: 2px; margin-left: 8px; border-radius: 50%; background: var(--gold); }
.one-screen-home .hero-actions { margin-top: clamp(16px,2.6vh,26px); align-items: center; gap: 16px; }
.one-screen-home .hero-actions .button { min-height: 48px; padding: 0 18px; font-size: 10px; }
.one-screen-home .hero-actions .text-link { font-size: 9px; }
.one-screen-home .hero-proof { max-width: 520px; margin-top: clamp(20px,3.2vh,34px); padding-top: clamp(12px,2vh,20px); gap: clamp(10px,1.25vw,18px); }
.one-screen-home .hero-proof > div:first-child strong { font-size: clamp(29px,2.8vw,39px); }
.one-screen-home .hero-proof span,
.one-screen-home .hero-proof span strong { font-size: 7px; }
.one-screen-home .label-icon { width: 25px; height: 25px; font-size: 9px !important; }

.one-screen-home .hero-visual { width: 100%; height: 100%; min-height: 0; position: relative; align-self: stretch; perspective: 1200px; }
.one-screen-home .hero-visual { display: grid; grid-template-rows: minmax(0,1fr) 66px; gap: 8px; }
.one-screen-home .hero-image-wrap { width: 100%; height: auto; min-height: 0; position: relative; inset: auto; border: 1px solid rgba(29,33,30,.12); box-shadow: 0 24px 70px rgba(32,38,33,.13); }
.one-screen-home .hero-image-wrap > img { object-position: center; }
.one-screen-home .hero-image-wrap::after { background: linear-gradient(to bottom, transparent 48%, rgba(12,16,13,.48)); }
.one-screen-home .hero-photo-caption { left: clamp(18px,2vw,30px); bottom: clamp(20px,2.4vh,30px); }
.one-screen-home .hero-photo-caption strong { font-size: clamp(24px,2.35vw,36px); }
.one-screen-home .hero-photo-nav { right: clamp(13px,1.4vw,22px); bottom: clamp(14px,2vh,24px); }
.one-screen-home .hero-play-hint { left: 0; bottom: -14px; display: none; }
.hero-photo-wheel { min-width: 0; height: 66px; position: relative; z-index: 6; display: flex; align-items: center; gap: 7px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-x; }
.hero-photo-wheel.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hero-photo-wheel::-webkit-scrollbar { display: none; }
.hero-photo-wheel button { width: 86px; height: 58px; padding: 0; flex: 0 0 86px; overflow: hidden; scroll-snap-align: center; border: 2px solid transparent; background: #e6dfd3; cursor: pointer; opacity: .64; transition: opacity .2s, border-color .2s, transform .2s; }
.hero-photo-wheel button { position: relative; z-index: 8; pointer-events: auto; }
.hero-photo-wheel button:hover, .hero-photo-wheel button.active { border-color: var(--copper); opacity: 1; transform: translateY(-2px); }
.hero-photo-wheel img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.admin-style-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.admin-style-presets button { min-height: 92px; padding: 10px; display: grid; place-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.admin-style-presets svg { width: 54px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.admin-style-presets small { color: var(--muted); }
.one-screen-home .stitch-signature { position: relative; }
.one-screen-home .stitch-signature::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 12px; height: 3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); animation: stitchSpark 9s linear infinite; }
@keyframes stitchSpark { from { transform: translateX(0); opacity: 0; } 8%,92% { opacity: 1; } to { transform: translateX(min(400px,80vw)); opacity: 0; } }

@media (max-width: 700px) {
  .one-screen-home .hero-visual { grid-template-rows: minmax(190px,1fr) 54px; gap: 5px; }
  .hero-photo-wheel { height: 54px; gap: 5px; }
  .hero-photo-wheel button { width: 70px; height: 48px; flex-basis: 70px; }
}

/* Connexion volontairement courte : aucune option secondaire tant que le serveur réel ne l'active pas. */
.modal-shell .login-panel { width: min(430px,calc(100vw - 24px)); height: auto; max-height: calc(100dvh - 24px); grid-template-columns: 1fr; }
.modal-shell .login-content { height: auto; padding: clamp(24px,5vw,38px); }
.modal-shell .login-brand .brand-logo { width: 82px; }
.modal-shell .login-content form > p { margin: 0 0 16px; }
.modal-shell .login-content .field { margin-top: 12px; }
.one-screen-home .vertical-caption { right: 13px; top: 18px; z-index: 2; color: rgba(255,255,255,.68); transform: none; transform-origin: initial; }

/* Le choix des cookies reste visible au premier passage sans recouvrir tout le travail. */
body:has(.one-screen-home:not(.hidden)) .cookie-banner {
  width: min(720px,calc(100% - 24px));
  min-height: 0;
  padding: 11px 14px;
  bottom: 10px;
  gap: 16px;
}
body:has(.one-screen-home:not(.hidden)) .cookie-banner strong { font-size: 13px; }
body:has(.one-screen-home:not(.hidden)) .cookie-banner p { margin-top: 2px; font-size: 8px; line-height: 1.35; }
body:has(.one-screen-home:not(.hidden)) .cookie-banner .button { min-height: 34px; padding: 0 11px; font-size: 8px; }
body:has(.one-screen-home:not(.hidden)):has(.cookie-banner:not(.hidden)) .one-screen-home .hero-photo-caption,
body:has(.one-screen-home:not(.hidden)):has(.cookie-banner:not(.hidden)) .one-screen-home .hero-photo-nav { bottom: 82px; }

@media (max-width: 1180px) {
  .one-screen-home .site-header.menu-open .main-nav { top: calc(100% + 4px); }
}

@media (max-width: 980px) {
  .one-screen-home { grid-template-rows: 28px 64px minmax(0,1fr); }
  .one-screen-home > .site-header { height: 64px; padding: 0 16px; }
  .one-screen-home > .site-header.sticky { height: 64px; }
  .one-screen-home .site-header .brand-logo { width: 76px; height: 45px; }
  .one-screen-home .header-actions { margin-right: 6px; }
  .one-screen-home .header-actions .button { min-height: 38px; }
  .one-screen-home .header-actions .login-trigger { width: 38px; padding: 0; display: inline-flex; font-size: 0; }
  .one-screen-home .header-actions .login-trigger svg { width: 16px; height: 16px; }
  .one-screen-home .home-showcase { padding: 10px 14px 12px; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); grid-template-rows: 68px minmax(0,1fr); gap: 12px 18px; }
  .work-rail { height: 68px; padding: 0 8px; grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; background: var(--sage); }
  .work-rail-heading, .work-rail-contact { display: none; }
  .one-screen-home .hero-photo-strip { min-width: 0; height: 58px; margin: 0; display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; }
  .one-screen-home .hero-photo-strip::-webkit-scrollbar { display: none; }
  .one-screen-home .hero-thumb { min-width: 130px; height: 58px; padding: 6px 9px; flex: 0 0 130px; grid-template-columns: 21px minmax(0,1fr); scroll-snap-align: start; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
  .one-screen-home .hero-thumb:hover,
  .one-screen-home .hero-thumb.active { padding-left: 12px; }
  .one-screen-home .hero-thumb::before { inset: auto 8px 0; width: auto; height: 2px; transform: scaleX(.25); }
  .one-screen-home .hero-thumb.active::before { transform: scaleX(1); }
  .one-screen-home .hero-thumb strong { font-size: 15px; }
  .work-rail-gallery { width: 76px; min-height: 58px; padding: 0 7px; justify-content: center; border: 0; border-left: 1px solid rgba(255,255,255,.17); font-size: 7px; line-height: 1.35; text-align: center; }
  .work-rail-gallery span { display: none; }
  .one-screen-home .hero-copy { padding: clamp(14px,2vh,24px) 0; grid-column: 1; grid-row: 2; align-self: center; }
  .one-screen-home .hero h1 { font-size: clamp(40px,5.8vw,54px); }
  .one-screen-home .hero-copy > p { min-height: 5.8em; font-size: 12px; }
  .hero-work-meta { gap: 6px 10px; }
  .one-screen-home .hero-actions { align-items: flex-start; flex-direction: column; gap: 11px; }
  .one-screen-home .hero-proof { gap: 12px; }
  .one-screen-home .hero-visual { grid-column: 2; grid-row: 2; }
}

@media (max-width: 640px) {
  .one-screen-home { grid-template-rows: 26px 58px minmax(0,1fr); }
  .one-screen-home > .announcement { height: 26px; padding: 0 10px; font-size: 8px; }
  .one-screen-home > .site-header,
  .one-screen-home > .site-header.sticky { height: 58px; padding: 0 10px; }
  .one-screen-home .site-header .brand-logo { width: 61px; height: 38px; }
  .one-screen-home .header-actions { gap: 4px; margin-right: 2px; }
  .one-screen-home .header-actions .button { min-height: 36px; }
  .one-screen-home .header-actions .button-dark,
  .one-screen-home .header-actions .login-trigger { width: 36px; padding: 0; }
  .one-screen-home .header-actions .button-dark { font-size: 0; }
  .one-screen-home .menu-toggle { width: 36px; height: 36px; }
  .one-screen-home .home-showcase { padding: 7px 9px 9px; grid-template-columns: minmax(0,1fr); grid-template-rows: 59px auto minmax(190px,1fr); gap: 7px; }
  .work-rail { height: 59px; padding: 0 4px; grid-column: 1; grid-row: 1; grid-template-columns: minmax(0,1fr); }
  .one-screen-home .hero-photo-strip { height: 53px; }
  .one-screen-home .hero-thumb { min-width: 116px; height: 53px; padding: 5px 7px; flex-basis: 116px; grid-template-columns: 18px minmax(0,1fr); }
  .one-screen-home .hero-thumb:hover,
  .one-screen-home .hero-thumb.active { padding-left: 9px; }
  .one-screen-home .hero-thumb strong { font-size: 13px; }
  .one-screen-home .hero-thumb small { font-size: 6px; }
  .work-rail-gallery { display: none; }
  .one-screen-home .hero-copy { padding: 5px 4px 4px; grid-column: 1; grid-row: 2; align-self: start; }
  .one-screen-home .eyebrow { font-size: 6.5px; letter-spacing: .13em; }
  .one-screen-home .eyebrow > span { width: 18px; }
  .one-screen-home .hero h1 { max-width: 370px; margin: 6px 0 7px; font-size: clamp(34px,9.6vw,41px); line-height: .91; }
  .one-screen-home .stitch-signature { width: min(330px,94%); height: 20px; margin: -3px 0 5px; }
  .one-screen-home .hero-copy > p { min-height: 0; max-width: none; font-size: 11px; line-height: 1.42; }
  .hero-work-meta, .one-screen-home .hero-proof { display: none; }
  .one-screen-home .hero-actions { margin-top: 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
  .one-screen-home .hero-actions .button { min-height: 39px; padding: 0 12px; font-size: 8.5px; }
  .one-screen-home .hero-actions .text-link { font-size: 8px; white-space: nowrap; }
  .one-screen-home .hero-visual { min-height: 0; grid-column: 1; grid-row: 3; }
  .one-screen-home .hero-image-wrap { width: 100%; height: 100%; }
  .one-screen-home .hero-photo-caption { max-width: 60%; left: 12px; bottom: 12px; }
  .one-screen-home .hero-photo-caption span { margin-bottom: 3px; font-size: 6px; }
  .one-screen-home .hero-photo-caption strong { font-size: 18px; line-height: 1.05; }
  .one-screen-home .hero-photo-nav { left: auto; right: 9px; bottom: 8px; }
  .one-screen-home .hero-nav { width: 30px; height: 30px; }
  .one-screen-home .image-index { gap: 6px; font-size: 7px; }
  .one-screen-home .image-index i { width: 20px; }
  .one-screen-home .vertical-caption { display: none; }
  body:has(.one-screen-home:not(.hidden)) .cookie-banner { width: calc(100% - 16px); padding: 8px 10px; bottom: 8px; gap: 7px; }
  body:has(.one-screen-home:not(.hidden)) .cookie-banner > div:last-child { flex-direction: row; gap: 6px; }
  body:has(.one-screen-home:not(.hidden)) .cookie-banner .button { min-width: 0; min-height: 32px; flex: 1 1 0; padding: 0 6px; font-size: 7.5px; }
  body:has(.one-screen-home:not(.hidden)):has(.cookie-banner:not(.hidden)) .one-screen-home .hero-photo-caption,
  body:has(.one-screen-home:not(.hidden)):has(.cookie-banner:not(.hidden)) .one-screen-home .hero-photo-nav { bottom: 112px; }
}

@media (min-width: 981px) and (max-height: 720px) {
  .one-screen-home { grid-template-rows: 62px minmax(0,1fr); }
  .one-screen-home > .announcement { display: none; }
  .one-screen-home > .site-header,
  .one-screen-home > .site-header.sticky { height: 62px; }
  .one-screen-home .home-showcase { padding-top: 10px; padding-bottom: 10px; }
  .work-rail { padding-top: 18px; padding-bottom: 14px; }
  .one-screen-home .hero-copy { padding-top: 8px; padding-bottom: 8px; }
  .one-screen-home .hero h1 { margin: 9px 0; font-size: clamp(39px,4vw,58px); }
  .one-screen-home .stitch-signature { height: 22px; margin-bottom: 6px; }
  .one-screen-home .hero-copy > p { min-height: 3.1em; }
  .hero-work-meta { margin-top: 8px; }
  .one-screen-home .hero-actions { margin-top: 11px; }
  .one-screen-home .hero-proof { margin-top: 13px; padding-top: 10px; }
}

/*
 * Grand écran (QHD / 32 pouces)
 *
 * Chrome réduit le viewport CSS quand son zoom est augmenté. Ce palier recrée
 * à 100 % les proportions appréciées à 175 %, sans zoomer toute l'interface :
 * la scène utilise toute la largeur, les trois colonnes gardent leur équilibre
 * et la hauteur reste strictement limitée au viewport.
 */
@media (min-width: 2200px) and (min-height: 1080px) {
  .one-screen-home {
    grid-template-rows: 48px 124px minmax(0, 1fr);
  }

  .one-screen-home > .announcement {
    height: 48px;
    padding-right: 64px;
    gap: 34px;
    font-size: 14px;
  }

  .one-screen-home > .announcement svg {
    width: 20px;
    height: 20px;
  }

  .one-screen-home > .site-header,
  .one-screen-home > .site-header.sticky {
    height: 124px;
    padding: 0 76px;
  }

  .one-screen-home .brand {
    gap: 20px;
  }

  .one-screen-home .site-header .brand-logo {
    width: 150px;
    height: 88px;
  }

  .one-screen-home .brand-copy strong {
    font-size: 25px;
  }

  .one-screen-home .brand-copy small {
    margin-top: 7px;
    font-size: 12px;
  }

  .one-screen-home .main-nav {
    gap: clamp(38px, 2.25vw, 58px);
    margin-right: 44px;
  }

  .one-screen-home .main-nav a {
    font-size: 16px;
  }

  .one-screen-home .header-actions {
    gap: 14px;
  }

  .one-screen-home .header-actions .button {
    min-height: 68px;
    padding-right: 24px;
    padding-left: 24px;
    gap: 14px;
    font-size: 15px;
  }

  .one-screen-home .header-actions .button svg {
    width: 20px;
    height: 20px;
  }

  .one-screen-home .home-showcase {
    max-width: none;
    padding: 30px 60px 30px 0;
    grid-template-columns: 358px minmax(650px, .72fr) minmax(760px, 1.28fr);
    gap: 60px;
  }

  .one-screen-home .home-showcase::before {
    width: 900px;
    height: 900px;
    left: 300px;
    top: 7%;
  }

  .work-rail {
    padding: 40px 0 30px 64px;
  }

  .work-rail-heading {
    padding: 0 32px 28px 0;
  }

  .work-rail-heading span {
    font-size: 12px;
  }

  .work-rail-heading strong {
    margin-top: 14px;
    font-size: 49px;
  }

  .one-screen-home .hero-photo-strip {
    margin-top: 14px;
    grid-template-rows: repeat(5, minmax(86px, 1fr));
  }

  .one-screen-home .hero-thumb {
    padding: 11px 30px 11px 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .one-screen-home .hero-thumb::before {
    width: 3px;
    inset: 15px auto 15px 0;
  }

  .one-screen-home .hero-thumb > span:first-child {
    font-size: 12px;
  }

  .one-screen-home .hero-thumb > span:last-child {
    gap: 6px;
  }

  .one-screen-home .hero-thumb strong {
    font-size: 31px;
  }

  .one-screen-home .hero-thumb small {
    font-size: 11px;
  }

  .one-screen-home .hero-thumb:hover,
  .one-screen-home .hero-thumb.active {
    padding-left: 17px;
  }

  .work-rail-gallery {
    min-height: 70px;
    padding-right: 30px;
    font-size: 13px;
  }

  .work-rail-gallery span {
    min-width: 40px;
    height: 32px;
    border-radius: 18px;
    font-size: 11px;
  }

  .work-rail-contact {
    padding: 24px 32px 0 0;
    gap: 7px;
  }

  .work-rail-contact small {
    font-size: 11px;
  }

  .work-rail-contact strong {
    font-size: 16px;
  }

  .one-screen-home .hero-copy {
    padding: clamp(34px, 4vh, 56px) 0;
  }

  .one-screen-home .eyebrow {
    gap: 20px;
    font-size: 14px;
  }

  .one-screen-home .eyebrow > span {
    width: 48px;
  }

  .one-screen-home .hero h1 {
    max-width: 760px;
    margin: 24px 0 26px;
    font-size: clamp(94px, 4vw, 106px);
    line-height: .94;
  }

  .one-screen-home .stitch-signature {
    width: min(690px, 96%);
    height: 42px;
    margin: -10px 0 18px;
  }

  .one-screen-home .hero-copy > p {
    max-width: 760px;
    min-height: 3.2em;
    font-size: 24px;
    line-height: 1.5;
  }

  .hero-work-meta {
    margin-top: 28px;
    gap: 12px 25px;
    font-size: 11px;
  }

  .hero-work-meta span {
    gap: 13px;
  }

  .one-screen-home .hero-actions {
    margin-top: 34px;
    gap: 28px;
  }

  .one-screen-home .hero-actions .button {
    min-height: 78px;
    padding: 0 30px;
    font-size: 15px;
  }

  .one-screen-home .hero-actions .text-link {
    gap: 18px;
    padding-bottom: 8px;
    font-size: 14px;
  }

  .one-screen-home .hero-actions .text-link span {
    font-size: 24px;
  }

  .one-screen-home .hero-proof {
    max-width: 760px;
    margin-top: 40px;
    padding-top: 24px;
    gap: 22px;
  }

  .one-screen-home .hero-proof > div {
    gap: 14px;
  }

  .one-screen-home .hero-proof > div:first-child strong {
    font-size: 52px;
  }

  .one-screen-home .hero-proof span,
  .one-screen-home .hero-proof span strong {
    font-size: 11px;
  }

  .one-screen-home .proof-separator {
    height: 56px;
  }

  .one-screen-home .label-icon {
    width: 42px;
    height: 42px;
    font-size: 14px !important;
  }

  .one-screen-home .hero-photo-caption {
    left: 32px;
    bottom: 34px;
  }

  .one-screen-home .hero-photo-caption span {
    margin-bottom: 9px;
    font-size: 12px;
  }

  .one-screen-home .hero-photo-caption strong {
    font-size: 55px;
  }

  .one-screen-home .hero-photo-nav {
    right: 28px;
    bottom: 28px;
    gap: 16px;
  }

  .one-screen-home .hero-nav {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .one-screen-home .image-index {
    gap: 14px;
    font-size: 12px;
  }

  .one-screen-home .image-index i {
    width: 62px;
  }

  .one-screen-home .vertical-caption {
    right: 24px;
    top: 24px;
    font-size: 11px;
  }

  body:has(.one-screen-home:not(.hidden)) .cookie-banner {
    left: auto;
    right: 30px;
    transform: none;
  }
}

/*
 * Portails client et atelier : un vrai cadre web commun.
 *
 * Le cadre est plafonné sur les écrans très larges, mais il reste fluide en
 * dessous de cette largeur. La barre latérale appartient ainsi toujours au
 * même cadre que le contenu ; aucune dimension ne dépend des pouces ni d'un
 * zoom supposé du navigateur.
 */
.portal-view {
  --portal-frame-width: 1640px;
  --portal-rail-width: 224px;
  --portal-gutter: clamp(24px, 2.2vw, 38px);
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #d9d6cf 0%, #ebe7df 48%, #d5d1c9 100%);
  font-size: 12px;
  line-height: 1.5;
}

.portal-view .portal-layout {
  width: min(100%, var(--portal-frame-width));
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  grid-template-columns: var(--portal-rail-width) minmax(0, 1fr);
  position: relative;
  background: #f8f5ef;
  box-shadow: 0 0 0 1px rgba(29, 33, 30, .08), 0 24px 70px rgba(29, 33, 30, .16);
}

.portal-view .portal-sidebar {
  width: auto;
  height: 100vh;
  height: 100dvh;
  padding: 20px 16px 16px;
  position: sticky;
  inset: auto;
  top: 0;
  align-self: start;
}

.portal-view .portal-main {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  grid-column: 2;
  background: #f8f5ef;
}

.portal-view .portal-topbar {
  height: 72px;
  padding-inline: var(--portal-gutter);
  background: rgba(252, 250, 246, .94);
}

.portal-view .portal-topbar > div:first-child { min-width: 0; }
.portal-view .portal-topbar h1 { font-size: 28px; line-height: 1.08; }
.portal-view .portal-topbar small { font-size: 9.5px; }

.portal-view .portal-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 26px var(--portal-gutter) 52px;
}

/* Une typographie lisible sans agrandir les composants ni la mise en page. */
.portal-view p { font-size: 11.5px; }
.portal-view small,
.portal-view label { font-size: 9.5px; }
.portal-view button,
.portal-view input,
.portal-view select,
.portal-view textarea { font-size: 11px; }
.portal-view th { font-size: 9.5px; }
.portal-view td { font-size: 11px; }
.portal-view .button { min-height: 44px; font-size: 12.5px; }
.portal-view .brand-copy strong { font-size: 13px; }
.portal-view .portal-nav button { min-height: 43px; font-size: 12.5px; }
.portal-view .portal-nav button { position: relative; }
.portal-view .portal-nav .nav-badge,
.portal-view .notification-count,
.portal-view .project-unread { font-size: 9px; }
.portal-view .atelier-team > small { font-size: 9px; }
.portal-view .artisan-switch strong,
.portal-view .user-chip strong { font-size: 10.5px; }
.portal-view .artisan-switch small,
.portal-view .user-chip span { font-size: 9px; }
.portal-view .welcome-strip p { font-size: 11.5px; }
.portal-view .date-pill,
.portal-view .project-ref,
.portal-view .workspace-kicker { font-size: 9.5px; }
.portal-view .metric-card > span,
.portal-view .metric-card small,
.portal-view .panel-head span { font-size: 10px; }
.portal-view .project-table th { font-size: 9.5px; }
.portal-view .project-name strong,
.portal-view .client-row strong { font-size: 11.5px; }
.portal-view .project-name span,
.portal-view .client-row small { font-size: 9.5px; }
.portal-view .status,
.portal-view .client-state { font-size: 9px; }
.portal-view .timeline-event strong { font-size: 10.5px; }
.portal-view .timeline-event p { font-size: 10px; }
.portal-view .timeline-event small { font-size: 9px; }
.portal-view .todo-item strong { font-size: 11px; }
.portal-view .todo-item span,
.portal-view .todo-item button { font-size: 9.5px; }
.portal-view .big-progress-head { font-size: 9.5px; }
.portal-view .progress-labels { font-size: 8px; }
.portal-view .client-project-info > p { font-size: 11.5px; }
.portal-view .open-section-head > span,
.portal-view .client-invite-form-section > p,
.portal-view .invite-submit small { font-size: 10px; }
.portal-view .thread-message header strong,
.portal-view .thread-message time,
.portal-view .thread-composer > label,
.portal-view .thread-composer small { font-size: 9.5px; }
.portal-view .thread-message p { font-size: 10.5px; }
.portal-view .pricing-settings label,
.portal-view .private-label,
.portal-view .zone-matrix th,
.portal-view .zone-matrix td { font-size: 9.5px; }
.portal-view .mail-account strong,
.portal-view .mail-message-copy strong,
.portal-view .mail-message-copy > b,
.portal-view .planning-team-row strong,
.portal-view .planning-project-row strong { font-size: 10px; }
.portal-view .mail-message-copy time,
.portal-view .mail-message-copy small,
.portal-view .planning-team-row small,
.portal-view .planning-project-row small { font-size: 9px; }
.portal-view .planning-event strong { font-size: 8.5px; }
.portal-view .planning-event-owner { font-size: 7.5px; }
.portal-view .material-library-table th { font-size: 9px; }
.portal-view .material-library-table td,
.portal-view .material-library-table td > strong,
.portal-view .material-library-table td > span { font-size: 11px; }

/* Le tableau de bord reste groupé et lisible au lieu de s'étirer dans le vide. */
.portal-view .client-hero-project {
  grid-template-columns: minmax(0, 1fr) clamp(260px, 20vw, 300px);
  overflow: hidden;
  border: 1px solid rgba(210, 192, 167, .72);
  border-radius: 14px;
  background: rgba(252, 250, 246, .72);
}

.portal-view .client-project-info { padding: 25px 28px; }
.portal-view .client-project-info h2 { font-size: 35px; line-height: 1.03; }
.portal-view .client-project-photo { min-height: clamp(245px, 20vw, 300px); border-radius: 0; }
.portal-view .dashboard-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr); gap: 18px; }
.portal-view .dashboard-grid > .panel {
  overflow: hidden;
  border: 1px solid rgba(210, 192, 167, .68);
  border-radius: 12px;
  background: rgba(252, 250, 246, .68);
}
.portal-view .dashboard-grid > .todo-panel { margin-top: 0; }
.portal-view .dashboard-grid > .panel .panel-head { padding-inline: 20px; }
.portal-view .dashboard-grid > .panel .timeline-list { padding-inline: 20px; }

/* Paramètres : hiérarchie plus claire, sans modifier le contenu ni les actions. */
.portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) {
  max-width: 1160px;
  margin-inline: auto;
}

.portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .welcome-strip {
  min-height: 142px;
  margin-bottom: 20px;
  padding: 26px 28px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(120deg, #23382f 0%, #315044 64%, #9a5535 160%);
  color: white;
  box-shadow: 0 18px 38px rgba(35, 56, 47, .14);
}

.portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .welcome-strip p {
  max-width: 720px;
  color: rgba(255, 255, 255, .76);
}

.portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .welcome-strip .date-pill {
  border-color: rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .84);
}

.portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .dashboard-grid > .panel {
  border-color: #ded3c5;
  background: #fcfaf6;
  box-shadow: 0 10px 26px rgba(29, 33, 30, .045);
}

.portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .submit-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid #cad8cd;
  border-radius: 12px;
  background: #edf3ed;
  font-size: 10px;
}

/* Tablette : rail compact et vrai réarrangement du contenu, sans réduction globale. */
@media (min-width: 701px) and (max-width: 1100px) {
  .portal-view {
    --portal-rail-width: 78px;
    --portal-gutter: clamp(20px, 3vw, 28px);
  }

  .portal-view .portal-layout {
    display: grid;
    grid-template-columns: var(--portal-rail-width) minmax(0, 1fr);
  }

  .portal-view .portal-sidebar {
    width: auto;
    padding: 16px 10px;
    position: sticky;
    inset: auto;
    top: 0;
  }

  .portal-view .portal-main { grid-column: 2; }
  .portal-view .portal-nav .nav-badge {
    min-width: 17px;
    height: 17px;
    margin: 0;
    position: absolute;
    right: 1px;
    top: 2px;
    font-size: 8px;
  }
  .portal-view .portal-topbar h1 { font-size: 25px; }
  .portal-view .portal-content { padding-top: 22px; }
  .portal-view .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-view .client-hero-project { grid-template-columns: minmax(0, 1fr) 240px; }
  .portal-view .client-project-photo { min-height: 245px; }
  .portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Les fenêtres basses gardent les mêmes proportions, avec moins d'espaces verticaux. */
@media (min-width: 701px) and (max-height: 760px) {
  .portal-view .portal-topbar { height: 64px; }
  .portal-view .portal-content { padding-top: 16px; padding-bottom: 34px; }
  .portal-view .portal-sidebar { padding-top: 12px; padding-bottom: 10px; }
  .portal-view .portal-sidebar .brand { min-height: 52px; }
  .portal-view .portal-sidebar .brand-logo { width: 78px; height: 44px; }
  .portal-view .portal-nav { margin-top: 12px; gap: 1px; }
  .portal-view .portal-nav button { min-height: 37px; }
  .portal-view .atelier-team { padding-top: 8px; gap: 2px; }
  .portal-view .artisan-switch { min-height: 40px; }
  .portal-view .sidebar-bottom { margin-top: 7px; padding-top: 7px; }
  .portal-view .client-project-info { padding-top: 20px; padding-bottom: 20px; }
  .portal-view .client-project-photo { min-height: 220px; }
  .portal-view .big-progress { margin-top: 18px; }
  .portal-view .dashboard-grid { margin-top: 12px; }
  .portal-view .dashboard-grid > .panel .panel-head { min-height: 52px; }
  .portal-view .todo-item { padding-block: 11px; }
  .portal-view .timeline-event { padding-top: 10px; padding-bottom: 10px; }
}

/* Mobile : navigation inférieure et surfaces empilées, sans débordement horizontal. */
@media (max-width: 700px) {
  .portal-view {
    --portal-gutter: 14px;
    background: #f8f5ef;
  }

  .portal-view .portal-layout {
    width: 100%;
    min-height: 100dvh;
    display: block;
    box-shadow: none;
  }

  .portal-view .portal-main {
    min-height: 100dvh;
    margin: 0;
    grid-column: auto;
  }

  .portal-view .portal-sidebar {
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 4px 8px env(safe-area-inset-bottom);
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    align-items: center;
    flex-direction: row;
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 -10px 28px rgba(29, 33, 30, .16);
  }

  .portal-view .portal-sidebar > .brand,
  .portal-view .atelier-team,
  .portal-view .sidebar-bottom { display: none; }

  .portal-view .portal-nav {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portal-view .portal-nav::-webkit-scrollbar { display: none; }
  .portal-view .portal-nav button {
    min-width: 52px;
    min-height: 52px;
    padding: 0 10px;
    flex: 1 0 52px;
    justify-content: center;
    border-radius: 9px;
  }
  .portal-view .portal-nav button.active { box-shadow: inset 0 -3px var(--gold); }
  .portal-view .portal-nav .nav-badge {
    min-width: 17px;
    height: 17px;
    margin: 0;
    position: absolute;
    right: 3px;
    top: 3px;
    font-size: 8px;
  }

  .portal-view .portal-topbar {
    height: 68px;
    padding-inline: var(--portal-gutter);
  }
  .portal-view .portal-topbar h1 {
    max-width: min(58vw, 230px);
    overflow: hidden;
    font-size: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .portal-view .portal-topbar small { font-size: 9px; }
  .portal-view .topbar-actions { gap: 6px; }
  .portal-view .portal-topbar .button {
    width: 41px;
    min-height: 41px;
    padding: 0;
    font-size: 0;
  }

  .portal-view .portal-content {
    padding: 16px var(--portal-gutter) calc(88px + env(safe-area-inset-bottom));
  }
  .portal-view .welcome-strip { padding: 18px; }
  .portal-view .date-pill { display: none; }
  .portal-view .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-view .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .portal-view .client-hero-project { grid-template-columns: minmax(0, 1fr); }
  .portal-view .client-project-info { padding: 20px 18px 22px; }
  .portal-view .client-project-info h2 { font-size: 31px; }
  .portal-view .client-project-photo { min-height: 230px; }
  .portal-view .progress-labels { gap: 5px; font-size: 7.5px; }
  .portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) { max-width: none; }
  .portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .welcome-strip {
    min-height: 0;
    padding: 22px 20px;
    border-radius: 13px;
  }
  .portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-view .portal-content:has(> .welcome-strip + .dashboard-grid + .submit-note:last-child) > .submit-note { align-items: flex-start; }
}

@media (max-width: 430px) {
  .portal-view .portal-topbar h1 { max-width: 54vw; }
  .portal-view .metric-card { padding-inline: 14px; }
  .portal-view .panel-head h3 { font-size: 20px; }
  .portal-view .client-project-info { padding-inline: 16px; }
}

/* L'image ne dicte jamais la hauteur du résumé client. */
.portal-view .client-project-photo img {
  position: absolute;
  inset: 0;
}

/* Le réglage de confort reste volontairement léger et ne change pas l'échelle du cadre. */
.portal-view.portal-text-comfortable p { font-size: 12px; }
.portal-view.portal-text-comfortable small,
.portal-view.portal-text-comfortable label { font-size: 10px; }
.portal-view.portal-text-comfortable .timeline-event p,
.portal-view.portal-text-comfortable .thread-message p { font-size: 10.75px; }
.portal-view.portal-text-comfortable .timeline-event strong,
.portal-view.portal-text-comfortable .todo-item strong { font-size: 11px; }

/* Photo de fin : outil direct, pensé d'abord pour la caméra d'un téléphone. */
.portal-view .final-photo-workspace {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
  gap: 22px;
  align-items: start;
}

.portal-view .final-photo-tool,
.portal-view .shortcut-panel,
.portal-view .final-photo-history {
  border: 1px solid #ded3c5;
  border-radius: 14px;
  background: #fcfaf6;
  box-shadow: 0 12px 30px rgba(29, 33, 30, .045);
}

.portal-view .final-photo-tool { padding: clamp(22px, 2.4vw, 32px); }
.portal-view .final-photo-heading { max-width: 720px; }
.portal-view .final-photo-heading h2 {
  margin: 7px 0 9px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.02;
}
.portal-view .final-photo-heading p { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.65; }

.portal-view .final-photo-project { margin-top: 22px; }
.portal-view .final-photo-project select { min-height: 46px; background: white; }
.portal-view .final-photo-filename {
  margin-top: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--copper);
  border-radius: 0 9px 9px 0;
  background: #f2ece3;
}
.portal-view .final-photo-filename > span { color: var(--muted); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.portal-view .final-photo-filename strong { overflow-wrap: anywhere; font-size: 12px; }
.portal-view .final-photo-filename small { color: var(--muted); }

.portal-view .final-photo-capture { margin-top: 16px; display: grid; gap: 12px; }
.portal-view .final-photo-preview {
  min-height: 330px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed #bcae9d;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8e1d7, #f4efe7);
}
.portal-view .final-photo-preview > img { width: 100%; height: 100%; object-fit: cover; }
.portal-view .final-photo-preview > div {
  max-width: 320px;
  padding: 30px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.portal-view .final-photo-preview > div svg { width: 38px; height: 38px; margin-bottom: 4px; color: var(--copper); }
.portal-view .final-photo-preview > div strong { color: var(--ink); font-size: 14px; }
.portal-view .final-photo-preview > div span { font-size: 10px; }

.portal-view .final-photo-controls {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.portal-view .final-photo-camera {
  min-height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  background: var(--sage);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.portal-view .final-photo-camera:hover { background: #315044; }
.portal-view .final-photo-camera:disabled { opacity: .48; cursor: not-allowed; }
.portal-view .final-photo-camera svg { width: 23px; height: 23px; }
.portal-view .final-photo-controls > p { margin: 0; color: var(--muted); }
.portal-view .final-photo-actions { display: flex; gap: 8px; }
.portal-view .final-photo-actions .button { white-space: nowrap; }
.portal-view .final-photo-actions .button:disabled { opacity: .45; cursor: not-allowed; }
.portal-view .final-photo-privacy { margin: 16px 0 0; padding: 12px 14px; font-size: 9.5px; }

.portal-view .final-photo-side { min-width: 0; display: grid; gap: 16px; }
.portal-view .shortcut-panel { padding: 24px; background: linear-gradient(145deg, #fcfaf6, #f0e9df); }
.portal-view .shortcut-panel h3 {
  margin: 7px 0 9px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
}
.portal-view .shortcut-panel p { margin: 0 0 17px; color: var(--muted); line-height: 1.6; }
.portal-view .shortcut-panel .button { width: 100%; }
.portal-view .shortcut-panel > small { margin-top: 12px; display: block; color: var(--muted); line-height: 1.5; }
.portal-view .final-photo-history { padding: 0 20px 12px; }
.portal-view .final-photo-history .open-section-head { min-height: 70px; }
.portal-view .final-photo-history .open-section-head h3 { font-size: 22px; }
.portal-view .final-photo-history ul { margin: 0; padding: 0; list-style: none; }
.portal-view .final-photo-history li {
  min-width: 0;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}
.portal-view .final-photo-history li:last-child { border-bottom: 0; }
.portal-view .final-photo-history li > svg { width: 20px; height: 20px; color: var(--copper); }
.portal-view .final-photo-history li > span { min-width: 0; display: flex; flex-direction: column; }
.portal-view .final-photo-history li strong,
.portal-view .final-photo-history li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-view .final-photo-history li strong { font-size: 10px; }
.portal-view .final-photo-history li small { color: var(--muted); }
.portal-view .final-photo-history li em { font-size: 9px; font-style: normal; }
.portal-view .final-photo-history > p { padding: 18px 0; color: var(--muted); }

/* Paramètres : réglages concrets, groupés en trois surfaces faciles à parcourir. */
.portal-view .settings-workspace { max-width: 1160px; margin-inline: auto; }
.portal-view .settings-intro {
  min-height: 150px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, #23382f 0%, #315044 64%, #9a5535 160%);
  color: white;
  box-shadow: 0 18px 38px rgba(35, 56, 47, .14);
}
.portal-view .settings-intro > div { max-width: 760px; }
.portal-view .settings-intro .workspace-kicker { color: #e2b16e; }
.portal-view .settings-intro h2 {
  margin: 7px 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
}
.portal-view .settings-intro p { margin: 0; color: rgba(255, 255, 255, .76); line-height: 1.6; }
.portal-view .settings-intro .date-pill { flex: 0 0 auto; border-color: rgba(255, 255, 255, .27); color: rgba(255, 255, 255, .86); }

.portal-view .settings-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.portal-view .settings-section {
  min-width: 0;
  padding: 22px;
  border: 1px solid #ded3c5;
  border-radius: 14px;
  background: #fcfaf6;
  box-shadow: 0 10px 26px rgba(29, 33, 30, .045);
}
.portal-view .settings-section-head {
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.portal-view .settings-section-head > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: #eee6dc;
  color: var(--copper);
}
.portal-view .settings-section-head h3 { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 400; }
.portal-view .settings-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.portal-view .settings-section-head .status { margin-top: 2px; white-space: nowrap; }
.portal-view .settings-list { margin-top: 17px; border-top: 1px solid var(--line); }

.portal-view .settings-switch {
  min-height: 70px;
  padding: 12px 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e8e1d7;
  cursor: pointer;
}
.portal-view .settings-switch:last-child { border-bottom: 0; }
.portal-view .settings-switch > span { min-width: 0; display: flex; flex-direction: column; }
.portal-view .settings-switch strong { font-size: 11px; }
.portal-view .settings-switch small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.portal-view .settings-switch input {
  width: 46px;
  height: 26px;
  position: absolute;
  right: 0;
  opacity: 0;
  cursor: pointer;
}
.portal-view .settings-switch > i {
  width: 46px;
  height: 26px;
  position: relative;
  border-radius: 999px;
  background: #cfc8bd;
  transition: background .2s ease;
}
.portal-view .settings-switch > i::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(29, 33, 30, .2);
  transition: transform .2s ease;
}
.portal-view .settings-switch input:checked + i { background: var(--copper); }
.portal-view .settings-switch input:checked + i::after { transform: translateX(20px); }
.portal-view .settings-switch input:focus-visible + i { outline: 3px solid #7a3f25; outline-offset: 3px; }

.portal-view .settings-device {
  margin-top: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--success);
  border-radius: 0 9px 9px 0;
  background: #edf2ed;
}
.portal-view .settings-device span { color: var(--success); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.portal-view .settings-device strong { margin-top: 4px; font-size: 11px; }
.portal-view .settings-device small { margin-top: 3px; color: var(--muted); }
.portal-view .settings-security { grid-column: 1 / -1; }
.portal-view .security-steps { margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-view .security-steps .timeline-event {
  min-height: 132px;
  padding: 18px 16px 16px 34px;
  border: 1px solid #e1d7ca;
  border-radius: 10px;
  background: #f7f2eb;
}
.portal-view .security-steps .timeline-event::before { left: 16px; top: 22px; border-color: #f7f2eb; }
.portal-view .security-steps .timeline-event::after { display: none; }
.portal-view .settings-workspace > .submit-note { margin: 18px 0 0; padding: 15px 17px; border: 1px solid #cad8cd; border-radius: 12px; font-size: 10px; }

@media (max-width: 1100px) {
  .portal-view .final-photo-workspace { grid-template-columns: minmax(0, 1fr); }
  .portal-view .final-photo-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-view .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-view .settings-security { grid-column: auto; }
}

@media (max-width: 700px) {
  .portal-view .final-photo-tool { padding: 20px 16px; }
  .portal-view .final-photo-heading h2 { font-size: 31px; }
  .portal-view .final-photo-preview { min-height: 260px; }
  .portal-view .final-photo-controls { grid-template-columns: minmax(0, 1fr); }
  .portal-view .final-photo-camera { width: 100%; min-height: 62px; }
  .portal-view .final-photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-view .final-photo-actions .button { min-width: 0; padding-inline: 10px; }
  .portal-view .final-photo-side { grid-template-columns: minmax(0, 1fr); }
  .portal-view .shortcut-panel { padding: 21px 18px; }
  .portal-view .final-photo-history { padding-inline: 16px; }

  .portal-view .settings-intro { min-height: 0; padding: 23px 20px; align-items: flex-start; }
  .portal-view .settings-intro h2 { font-size: 30px; }
  .portal-view .settings-intro .date-pill { display: none; }
  .portal-view .settings-grid { gap: 14px; }
  .portal-view .settings-section { padding: 19px 16px; }
  .portal-view .settings-section-head { grid-template-columns: 38px minmax(0, 1fr); }
  .portal-view .settings-section-head > svg { width: 38px; height: 38px; padding: 9px; }
  .portal-view .settings-section-head .status { grid-column: 2; justify-self: start; }
  .portal-view .security-steps { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .portal-view .security-steps .timeline-event { min-height: 0; }
  .portal-view .settings-security .button { width: 100%; }
}

@media (max-width: 390px) {
  .portal-view .final-photo-actions { grid-template-columns: minmax(0, 1fr); }
  .portal-view .settings-section-head h3 { font-size: 21px; }
}

/* Administration du site : un poste de pilotage fluide, sans largeur fixe ni secret. */
.portal-view .admin-workspace {
  width: 100%;
  max-width: 1380px;
  min-width: 0;
  margin-inline: auto;
  color: var(--ink);
}
.portal-view .admin-workspace *,
.portal-view .admin-workspace *::before,
.portal-view .admin-workspace *::after { box-sizing: border-box; }
.portal-view .admin-workspace input,
.portal-view .admin-workspace select { width: 100%; min-width: 0; }
.portal-view .admin-workspace svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.portal-view .admin-workspace .workspace-kicker { font-size: 10px; }

.portal-view .admin-hero {
  min-height: 176px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  background: linear-gradient(118deg, #17231e 0%, #28493c 72%, #9f5b39 145%);
  color: white;
  box-shadow: 0 20px 42px rgba(29, 33, 30, .14);
}
.portal-view .admin-hero::after {
  content: "";
  width: 330px;
  aspect-ratio: 1;
  position: absolute;
  right: -125px;
  top: -150px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.portal-view .admin-hero > div { max-width: 780px; position: relative; z-index: 1; }
.portal-view .admin-hero .workspace-kicker { color: #efbe78; }
.portal-view .admin-hero h2 {
  margin: 7px 0 9px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 43px);
  font-weight: 400;
  line-height: 1;
}
.portal-view .admin-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.65; }
.portal-view .admin-owner-badge {
  min-width: 240px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.portal-view .admin-owner-badge > svg { width: 28px; height: 28px; color: #efbe78; }
.portal-view .admin-owner-badge > span { min-width: 0; display: flex; flex-direction: column; }
.portal-view .admin-owner-badge small { color: rgba(255,255,255,.62); font-size: 10px; }
.portal-view .admin-owner-badge strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.portal-view .admin-jump-nav {
  margin: 14px 0 20px;
  padding: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border: 1px solid #dfd5c9;
  border-radius: 12px;
  background: rgba(252,250,246,.9);
}
.portal-view .admin-jump-nav a {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.portal-view .admin-jump-nav a:hover,
.portal-view .admin-jump-nav a:focus-visible { background: #ede5da; color: var(--ink); }

.portal-view .admin-overview,
.portal-view .admin-section { min-width: 0; scroll-margin-top: 92px; }
.portal-view .admin-overview { margin-bottom: 20px; }
.portal-view .admin-overview .open-section-head { min-height: 66px; }
.portal-view .admin-overview .open-section-head h3,
.portal-view .admin-section-heading h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.1;
}
.portal-view .admin-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.portal-view .admin-summary-grid .metric-card { min-width: 0; min-height: 126px; border-radius: 11px; }
.portal-view .admin-summary-grid .metric-card > strong { overflow-wrap: anywhere; font-size: 27px; }

.portal-view .admin-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #ddd2c5;
  border-radius: 14px;
  background: #fcfaf6;
  box-shadow: 0 10px 28px rgba(29, 33, 30, .04);
}
.portal-view .admin-section-heading {
  min-width: 0;
  padding-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.portal-view .admin-section-heading > div { min-width: 0; max-width: 730px; }
.portal-view .admin-section-heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.portal-view .admin-section-heading > svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 50%;
  background: #eee6dc;
  color: var(--copper);
}
.portal-view .admin-section-heading .button svg { width: 17px; height: 17px; }
.portal-view .admin-count {
  min-width: 86px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf2ed;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.portal-view .admin-account-list { margin-top: 2px; }
.portal-view .admin-account-row {
  min-width: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 42px minmax(240px, 1fr) minmax(150px, 190px) minmax(125px, 150px);
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e5ddd2;
}
.portal-view .admin-account-row:last-child { border-bottom: 0; }
.portal-view .admin-account-row > .user-avatar { width: 42px; height: 42px; }
.portal-view .admin-account-identity { min-width: 0; display: grid; grid-template-columns: minmax(150px, .75fr) minmax(210px, 1.25fr); align-items: center; gap: 4px 18px; }
.portal-view .admin-account-identity > strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-view .admin-account-identity > small { grid-column: 1; color: var(--muted); font-size: 10px; }
.portal-view .admin-account-identity label { grid-column: 2; grid-row: 1 / span 2; }
.portal-view .admin-account-identity label,
.portal-view .admin-account-access { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.portal-view .admin-account-identity label > span,
.portal-view .admin-account-access > span,
.portal-view .admin-fields > label > span:first-child,
.portal-view .admin-form-grid label > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.portal-view .admin-account-access > strong { font-size: 11px; font-weight: 700; }
.portal-view .admin-account-row input,
.portal-view .admin-account-row select,
.portal-view .admin-fields input,
.portal-view .admin-fields select,
.portal-view .admin-form-grid input,
.portal-view .admin-form-grid select {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d7cab9;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.portal-view .admin-account-row input:focus,
.portal-view .admin-account-row select:focus,
.portal-view .admin-fields input:focus,
.portal-view .admin-form-grid input:focus,
.portal-view .admin-form-grid select:focus { border-color: var(--copper); outline: 2px solid rgba(168,86,50,.14); }
.portal-view .admin-account-state { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.portal-view .admin-account-state .button { min-width: 0; min-height: 38px; padding-inline: 10px; }
.portal-view .admin-account-state .button:disabled { opacity: .45; cursor: not-allowed; }
.portal-view .admin-account-state > small { color: var(--muted); font-size: 10px; text-align: center; }
.portal-view .admin-state { color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.portal-view .admin-state::before { content: ""; width: 7px; height: 7px; margin-right: 5px; display: inline-block; border-radius: 50%; background: #92918d; }
.portal-view .admin-state.is-active { color: var(--success); }
.portal-view .admin-state.is-active::before { background: var(--success); }
.portal-view .admin-state.is-pending { color: #9b6b20; }
.portal-view .admin-state.is-pending::before { background: #d8a548; }

.portal-view .admin-invite { margin-top: 16px; border-top: 1px solid var(--line); }
.portal-view .admin-invite summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--copper);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}
.portal-view .admin-invite summary::-webkit-details-marker { display: none; }
.portal-view .admin-invite summary svg { width: 18px; height: 18px; }
.portal-view .admin-invite form { padding: 18px; border-radius: 10px; background: #f2ece3; }
.portal-view .admin-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-view .admin-form-grid label { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.portal-view .admin-form-footer { margin-top: 14px; display: flex; align-items: center; gap: 15px; }
.portal-view .admin-form-footer .button { flex: 0 0 auto; }
.portal-view .admin-form-footer small { color: var(--muted); font-size: 10px; line-height: 1.5; }

.portal-view .admin-two-columns { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-view .admin-two-columns > .admin-section { height: fit-content; }
.portal-view .admin-fields { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-view .admin-fields > label { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.portal-view .admin-fields > label > small { color: var(--muted); font-size: 10px; }
.portal-view .admin-unit-input { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.portal-view .admin-unit-input input { border-radius: 7px 0 0 7px; }
.portal-view .admin-unit-input b { min-width: 50px; padding: 0 11px; display: grid; place-items: center; border: 1px solid #d7cab9; border-left: 0; border-radius: 0 7px 7px 0; background: #eee6dc; color: var(--muted); font-size: 10px; }

.portal-view .admin-toggle {
  min-height: 62px;
  padding: 10px 0;
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px !important;
  border-bottom: 1px solid #e5ddd2;
  cursor: pointer;
}
.portal-view .admin-toggle > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.portal-view .admin-toggle > span > strong { font-size: 10.5px; }
.portal-view .admin-toggle > span > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.portal-view .admin-toggle > input { width: 44px; height: 25px; position: absolute; right: 0; opacity: 0; cursor: pointer; }
.portal-view .admin-toggle > i { width: 44px; height: 25px; position: relative; border-radius: 99px; background: #cbc5bc; transition: background .2s; }
.portal-view .admin-toggle > i::after { content: ""; width: 19px; height: 19px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(29,33,30,.2); transition: transform .2s; }
.portal-view .admin-toggle > input:checked + i { background: var(--copper); }
.portal-view .admin-toggle > input:checked + i::after { transform: translateX(19px); }
.portal-view .admin-toggle > input:focus-visible + i { outline: 3px solid rgba(122,63,37,.35); outline-offset: 3px; }

.portal-view .admin-storage-meter { margin-top: 18px; }
.portal-view .admin-storage-meter > span { height: 8px; display: block; overflow: hidden; border-radius: 99px; background: #e4ddd3; }
.portal-view .admin-storage-meter > span::after { content: ""; width: max(8px, var(--admin-used)); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--sage), var(--copper)); }
.portal-view .admin-storage-meter > div { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; }
.portal-view .admin-storage-meter strong { font-size: 10px; }
.portal-view .admin-storage-meter small { color: var(--muted); font-size: 10px; }
.portal-view .admin-honesty { margin: 16px 0 0; padding: 12px 13px; display: flex; align-items: flex-start; gap: 9px; border-left: 3px solid var(--success); border-radius: 0 8px 8px 0; background: #edf2ed; color: var(--muted); font-size: 10.5px !important; }
.portal-view .admin-honesty svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--success); }

.portal-view .admin-mail-route { margin-top: 18px; padding: 16px; border-radius: 10px; background: #f2ece3; }
.portal-view .admin-mail-route > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.portal-view .admin-mail-route > div > svg { width: 28px; height: 28px; flex: 0 0 auto; color: var(--copper); }
.portal-view .admin-mail-route > div > span { min-width: 0; display: flex; flex-direction: column; }
.portal-view .admin-mail-route > div strong { overflow-wrap: anywhere; font-size: 11px; }
.portal-view .admin-mail-route > p { margin: 14px 0 7px; color: var(--muted); font-size: 10px; }
.portal-view .admin-mail-route ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; list-style: none; }
.portal-view .admin-mail-route li { min-width: 0; padding: 8px; display: flex; align-items: center; gap: 8px; border-radius: 8px; background: rgba(255,255,255,.68); }
.portal-view .admin-mail-route li .user-avatar { width: 28px; height: 28px; flex: 0 0 auto; font-size: 7px; }
.portal-view .admin-mail-route li > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.portal-view .admin-mail-route li strong,
.portal-view .admin-mail-route li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-view .admin-mail-route li strong { font-size: 10.5px; }
.portal-view .admin-mail-route li small { color: var(--muted); font-size: 10px; }
.portal-view .admin-mail-route > small { margin-top: 12px; display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }

.portal-view .admin-security-status { margin-top: 18px; padding: 15px; display: flex; gap: 11px; border: 1px solid #cbd9ce; border-radius: 9px; background: #edf2ed; }
.portal-view .admin-security-status > svg { width: 23px; height: 23px; flex: 0 0 auto; color: var(--success); }
.portal-view .admin-security-status > span { display: flex; flex-direction: column; gap: 4px; }
.portal-view .admin-security-status strong { font-size: 10.5px; }
.portal-view .admin-security-status small { color: var(--muted); font-size: 10px; line-height: 1.45; }

.portal-view .admin-audit > ul { margin: 0; padding: 0; list-style: none; }
.portal-view .admin-audit > ul > li { min-width: 0; min-height: 58px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e5ddd2; }
.portal-view .admin-audit > ul > li:last-child { border-bottom: 0; }
.portal-view .admin-audit li > span { min-width: 0; display: flex; flex-direction: column; }
.portal-view .admin-audit li > span:first-child { flex: 1; }
.portal-view .admin-audit li > span:last-child { flex: 0 0 160px; text-align: right; }
.portal-view .admin-audit li strong { font-size: 10.5px; }
.portal-view .admin-audit li small { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.portal-view .admin-audit li b { font-size: 10px; }
.portal-view .admin-audit li time { margin-top: 3px; color: var(--muted); font-size: 10px; }

@media (min-width: 701px) {
  .portal-view .portal-sidebar .portal-nav { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}

@media (max-width: 1180px) {
  .portal-view .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-view .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-view .admin-account-row { grid-template-columns: 42px minmax(0, 1fr) minmax(135px, 170px); }
  .portal-view .admin-account-identity { grid-template-columns: minmax(0, 1fr); }
  .portal-view .admin-account-identity label { grid-column: 1; grid-row: auto; }
  .portal-view .admin-account-state { grid-column: 3; }
  .portal-view .admin-account-access { grid-column: 2; margin-top: 5px; }
}

@media (max-width: 980px) {
  .portal-view .admin-hero { min-height: 0; align-items: flex-start; }
  .portal-view .admin-owner-badge { min-width: 205px; }
  .portal-view .admin-two-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .portal-view .admin-account-row { grid-template-columns: 42px minmax(0, 1fr) minmax(130px, 160px); }
  .portal-view .admin-account-access { grid-column: 2; }
  .portal-view .admin-account-state { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 700px) {
  .portal-view .admin-hero { padding: 23px 20px; display: block; border-radius: 13px; }
  .portal-view .admin-hero h2 { font-size: 32px; }
  .portal-view .admin-hero p { font-size: 11px; }
  .portal-view .admin-owner-badge { width: 100%; min-width: 0; margin-top: 18px; }
  .portal-view .admin-jump-nav { padding: 5px; }
  .portal-view .admin-jump-nav a { min-height: 34px; padding-inline: 10px; flex: 1 1 30%; justify-content: center; font-size: 10px; }
  .portal-view .admin-summary-grid { gap: 8px; }
  .portal-view .admin-summary-grid .metric-card { min-height: 115px; }
  .portal-view .admin-summary-grid .metric-card > strong { font-size: 23px; }
  .portal-view .admin-section { padding: 19px 16px; border-radius: 12px; }
  .portal-view .admin-section-heading { align-items: flex-start; }
  .portal-view .admin-section-heading h3 { font-size: 24px; }
  .portal-view .admin-section-heading > svg { width: 37px; height: 37px; padding: 9px; }
  .portal-view .admin-account-row { padding: 16px 0; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 11px; }
  .portal-view .admin-account-row > .user-avatar { width: 38px; height: 38px; }
  .portal-view .admin-account-identity,
  .portal-view .admin-account-access,
  .portal-view .admin-account-state { grid-column: 2; grid-row: auto; }
  .portal-view .admin-account-state { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .portal-view .admin-account-state > small { grid-column: 1 / -1; text-align: left; }
  .portal-view .admin-form-grid,
  .portal-view .admin-fields { grid-template-columns: minmax(0, 1fr); }
  .portal-view .admin-invite form { padding: 15px; }
  .portal-view .admin-form-footer { align-items: stretch; flex-direction: column; }
  .portal-view .admin-form-footer .button { width: 100%; }
  .portal-view .admin-storage-meter > div { flex-direction: column; gap: 2px; }
  .portal-view .admin-mail-route ul { grid-template-columns: minmax(0, 1fr); }
  .portal-view .admin-audit .admin-section-heading { display: grid; }
  .portal-view .admin-audit .admin-section-heading .button { width: 100%; }
  .portal-view .admin-audit > ul > li { align-items: flex-start; flex-direction: column; gap: 5px; }
  .portal-view .admin-audit li > span:last-child { flex: auto; text-align: left; }
}

@media (max-width: 390px) {
  .portal-view .admin-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-view .admin-jump-nav a { flex-basis: 45%; }
  .portal-view .admin-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .portal-view .admin-section-heading > div { min-width: 0; }
}
/* Pages métier : navigation horizontale plein écran sur ordinateur. */
.auth-provider-status { margin: 7px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.google-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .58; }

@media (min-width: 981px) {
  html:has(.one-screen-service), body:has(.one-screen-service) { height: 100%; overflow: hidden; }
  .one-screen-service { height: 100dvh; min-height: 0; display: grid; grid-template-rows: 28px 70px minmax(0,1fr); overflow: hidden; }
  .one-screen-service > .announcement { height: 28px; font-size: 9px; }
  .one-screen-service > .site-header,
  .one-screen-service > .site-header.sticky { height: 70px; padding: 0 3vw; position: relative; inset: auto; box-shadow: none; animation: none; }
  .one-screen-service .brand-logo { width: 82px; height: 48px; }
  .one-screen-service .brand-copy strong { font-size: 13px; }
  .one-screen-service .brand-copy small { font-size: 7px; }
  .one-screen-service .main-nav { gap: clamp(14px,1.6vw,26px); }
  .one-screen-service .main-nav a,
  .one-screen-service .header-actions .button { font-size: 9px; }
  .one-screen-service .header-actions .button { min-height: 40px; padding: 0 14px; }
  .one-screen-service > main { min-height: 0; position: relative; overflow: hidden; }
  .one-screen-service > main > .marquee { display: none; }
  .one-screen-service > main > section[id] { width: 100%; height: 100%; min-height: 0; margin: 0; position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(3%); transition: opacity .28s ease, transform .28s ease, visibility .28s; }
  .one-screen-service > main > section.service-slide-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .one-screen-service > .site-footer { display: none; }

  .one-screen-service .hero { padding: clamp(24px,4vh,48px) 7vw; grid-template-columns: minmax(360px,.9fr) minmax(420px,1.1fr); gap: clamp(30px,5vw,78px); }
  .one-screen-service .hero h1 { margin: 14px 0; font-size: clamp(48px,5.2vw,78px); }
  .one-screen-service .hero-copy > p { font-size: clamp(12px,1vw,15px); line-height: 1.5; }
  .one-screen-service .hero-actions { margin-top: 20px; }
  .one-screen-service .hero-proof { margin-top: clamp(18px,3vh,34px); padding-top: 14px; }
  .one-screen-service .hero-visual { min-height: 0; height: 100%; }
  .one-screen-service .hero-image-wrap { width: 100%; height: 100%; }

  .one-screen-service .atelier { grid-template-columns: 1.03fr .97fr; }
  .one-screen-service .atelier-image { min-height: 0; }
  .one-screen-service .atelier-copy { padding: clamp(32px,5vw,74px); }
  .one-screen-service .atelier-copy h2,
  .one-screen-service .builder-copy h2,
  .one-screen-service .contact-intro h2 { margin: 14px 0; font-size: clamp(37px,4vw,61px); }
  .one-screen-service .atelier-copy .lead { font-size: clamp(16px,1.5vw,21px); line-height: 1.35; }
  .one-screen-service .atelier-copy > p:not(.lead) { margin: 6px 0; font-size: 11px; line-height: 1.55; }

  .one-screen-service .project-builder-section { grid-template-columns: .9fr 1.1fr; }
  .one-screen-service .builder-copy { padding: clamp(30px,4vw,62px) clamp(36px,5vw,76px); }
  .one-screen-service .builder-copy > p { font-size: 12px; line-height: 1.5; }
  .one-screen-service .builder-copy .button { min-height: 42px; margin-top: 12px; }
  .one-screen-service .builder-steps { margin-top: 16px; gap: 7px; }
  .one-screen-service .builder-steps > div { padding: 8px 0; }
  .one-screen-service .builder-demo { padding: clamp(24px,4vw,58px); }
  .one-screen-service .demo-window { max-height: 100%; padding: clamp(18px,2.4vw,32px); }
  .one-screen-service .material-card { min-height: 64px; padding: 8px; }

  .one-screen-service .portfolio { padding: clamp(24px,3.4vh,42px) 7vw; display: grid; grid-template-rows: auto minmax(0,1fr); gap: 16px; }
  .one-screen-service .section-heading { margin: 0; }
  .one-screen-service .section-heading h2 { margin: 10px 0 0; font-size: clamp(34px,3.5vw,54px); }
  .one-screen-service .section-heading p { font-size: 11px; line-height: 1.5; }
  .one-screen-service .portfolio-grid { min-height: 0; grid-auto-rows: 1fr; gap: 10px; }
  .one-screen-service .portfolio-item.tall { grid-row: auto; }
  .one-screen-service .portfolio-item.wide { grid-column: auto; }

  .one-screen-service .contact-section { padding: clamp(34px,5vw,80px) 10vw; gap: 6vw; }
  .one-screen-service .contact-intro p { font-size: 13px; line-height: 1.55; }
  .one-screen-service .contact-actions { gap: 9px; }
  .one-screen-service .contact-tile { min-height: 76px; }

  .service-deck-controls { position: absolute; z-index: 15; inset: 50% 18px auto; display: flex; align-items: center; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
  .deck-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(23,24,21,.82); color: white; box-shadow: 0 8px 28px rgba(0,0,0,.18); cursor: pointer; pointer-events: auto; font-size: 19px; backdrop-filter: blur(10px); }
  .deck-arrow:hover { background: var(--copper); }
  .deck-progress { position: absolute; left: 50%; top: calc(50vh - 78px); display: flex; align-items: center; gap: 10px; color: var(--ink); pointer-events: none; transform: translateX(-50%); }
  .deck-progress strong { font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
  .deck-progress span { color: var(--muted); font-size: 8px; }
}

@media (max-width: 980px) {
  .service-deck-controls { display: none; }
  .one-screen-service > main > section[id] { opacity: 1; visibility: visible; }
}
.billing-page{display:grid;gap:18px}.billing-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:30px;border-left:4px solid var(--copper)}.billing-hero>div:first-child{max-width:760px}.billing-hero h2{margin:8px 0 10px;font-family:var(--serif);font-size:clamp(30px,3vw,46px);font-weight:500}.billing-hero p,.billing-action p{color:var(--muted);line-height:1.65}.billing-status{min-width:250px;padding:20px;border:1px solid var(--line);background:var(--cream);display:grid;gap:8px}.billing-status .status{justify-self:start}.billing-status strong{font-size:18px}.billing-status small{color:var(--muted)}.billing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.billing-action{padding:24px}.billing-action>svg{width:32px;height:32px;color:var(--copper);fill:none;stroke:currentColor;stroke-width:1.6}.billing-action h3{margin:18px 0 8px}.billing-action ul{margin:12px 0 0;padding-left:20px;color:var(--muted);line-height:1.8}.billing-action .button{margin-top:18px}.billing-table{overflow:hidden}.billing-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:var(--muted)}.billing-empty svg,.billing-separation svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;color:var(--copper)}.billing-empty strong{color:var(--ink)}.subscription-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-separation{display:flex;align-items:center;gap:14px;padding:18px 22px;background:#edf4ef;border:1px solid #cadfd1;color:#264638}.billing-separation p{margin:0}.button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:960px){.billing-hero{align-items:stretch;flex-direction:column}.billing-status{min-width:0}.billing-grid,.subscription-grid{grid-template-columns:1fr}}
.subscription-workflow{display:flex;align-items:center;justify-content:center;gap:16px;padding:15px 20px;border:1px solid var(--line);background:var(--cream)}.subscription-workflow span{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}.subscription-workflow b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--green);color:white}.subscription-workflow i{color:var(--copper);font-style:normal}.subscription-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.subscription-service{display:flex;flex-direction:column;padding:23px;min-height:250px}.subscription-service-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.subscription-service-head svg{width:30px;height:30px;fill:none;stroke:var(--copper);stroke-width:1.6}.subscription-service h3{margin:20px 0 8px}.subscription-service p{margin:0 0 18px;color:var(--muted);line-height:1.6}.subscription-service .button{margin-top:auto}.service-status{padding:6px 9px;border-radius:999px;background:#eee;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.service-active{background:#dff1e2;color:#236b38}.service-requested,.service-approved{background:#fff1cf;color:#835b00}.service-rejected{background:#f9dddd;color:#8d2828}.subscription-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px}.subscription-footer h3,.subscription-footer p{margin:0}.subscription-footer p{margin-top:5px;color:var(--muted)}
@media(max-width:1100px){.subscription-services{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.subscription-services{grid-template-columns:1fr}.subscription-workflow{align-items:stretch;flex-direction:column}.subscription-workflow i{display:none}.subscription-footer{align-items:stretch;flex-direction:column}}
