:root {
  --navy: #16204A;
  --blue: #06A0E3;
  --blue-dark: #0487C0;
  --sky: #E7F5FC;
  --lime: #DDD323;
  --bg: #F5F1E7;
  --card: #FFFFFF;
  --soft: #FBF7EE;
  --text: #16204A;
  --muted: #64697A;
  --line: #E3DCCC;
  --ok: #1F9D6B;
  --ok-bg: #E6F6EF;
  --err: #C8372D;
  --err-bg: #FDECEA;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 50, 30, .07), 0 8px 24px rgba(60, 50, 30, .07);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue-dark); }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden], .hide { display: none !important; }

/* Header / footer */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(247, 243, 235, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
/* Deux versions du logo : le USA est bleu nuit sur fond clair, blanc sur fond foncé. */
.brand .logo-dark { display: none; }
body.dark-app .brand .logo-light, body.auth-dark .brand .logo-light { display: none; }
body.dark-app .brand .logo-dark, body.auth-dark .brand .logo-dark { display: block; }
.brand-tag { font: 800 italic 18px/1 var(--display); color: var(--blue); letter-spacing: .02em; text-transform: uppercase; }
#nav { display: flex; align-items: center; gap: 14px; }
#nav a { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--navy); }
#nav a.btn { color: #fff; }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 16px 110px; }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.foot a { color: var(--muted); }

/* Type */
.display { font: 800 italic clamp(44px, 9vw, 84px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 18px; }
.display em { font-style: inherit; color: var(--blue); }
.title { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 0 0 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 8px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.err { color: var(--err); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.err:empty { display: none; }
.ok { color: var(--ok); font-size: 14px; font-weight: 600; margin: 8px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn.ghost:hover { border-color: var(--blue); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.xl { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--blue-dark); font-weight: 600; cursor: pointer; font-size: 14px; }
.link.danger { color: var(--muted); }
.link.danger:hover { color: var(--err); }
.busy { pointer-events: none; opacity: .6; }
:focus-visible { outline: 3px solid rgba(6, 160, 227, .45); outline-offset: 2px; }

/* Forms */
label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); }
label small { font-weight: 400; color: var(--muted); display: block; margin-top: 4px; }
input, select { display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(6, 160, 227, .15); }
input.big { min-height: 58px; font-size: 20px; padding: 12px 16px; border-radius: 14px; }
input.code { letter-spacing: .5em; text-align: center; font-weight: 700; font-size: 28px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; display: inline-block; margin: 0; }
.stack { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.span2 { grid-column: span 2; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.switch { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; min-height: 44px; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; border: 0; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(18px); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 40px; height: 42px; border: 0; background: #fff; font-size: 20px; font-weight: 600; cursor: pointer; color: var(--navy); }
.stepper button:hover { background: var(--sky); }
.stepper input { width: 64px; min-height: 42px; margin: 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; padding: 0 4px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }

/* Surfaces */
.panel { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.narrow { max-width: 560px; margin: 0 auto; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 700; }
.banner { background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.banner::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; }
.promo-pill { display: inline-block; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin: 0 0 18px; }

/* Home */
.hero { padding: clamp(20px, 7vw, 80px) 0 20px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.trust li { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.trust b { display: block; font-size: 17px; }
.trust span { color: var(--muted); font-size: 14px; }

/* Question flow */
.flow { margin-top: 20px; }
.progress { height: 6px; background: var(--sky); border-radius: 999px; overflow: hidden; margin: 0 0 20px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--lime)); border-radius: 999px; transition: width .35s ease; }
.qform .q { font-size: clamp(22px, 4vw, 28px); font-weight: 700; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.01em; }
.qform .hint { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.pw { position: relative; }
.pw .toggle-pw { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin-top: 3px; }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.config { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.config .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); padding: 4px; border-radius: 14px; margin-bottom: 20px; }
.tabs button { min-height: 44px; border: 0; background: none; border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(22, 32, 74, .12); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
legend { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
legend .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.qty-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
details.acc { border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; }
details.acc summary { cursor: pointer; font-weight: 600; min-height: 46px; display: flex; align-items: center; }
details.acc .qty-row { padding: 8px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 14px; }

.live { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 18px); padding-top: 20px; }
.live-price { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; background: var(--sky); border-radius: 16px; padding: 16px 18px; }
.live-price div { display: grid; }
.live-price span { font-size: 13px; }
.live-price strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; transition: color .2s; }
.live-price strong.big { font-size: 30px; text-align: right; }
.live-price s { font-size: 13px; color: var(--muted); }
.pricing .live-price strong, .pricing .totals .grand dd { color: var(--muted); }
.price-skel { height: 76px; border-radius: 16px; background: linear-gradient(90deg, var(--sky), #f7fbfe, var(--sky)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.nudge { display: block; width: 100%; margin-top: 10px; text-align: left; background: var(--soft); border: 1.5px dashed var(--line); border-left: 3px solid #E0A43A; color: var(--navy); border-radius: 12px; padding: 12px 14px; font-size: 14px; cursor: pointer; }
.nudge:hover { background: #ECF2FA; border-left-color: #C98F20; }
.nudge.sm { padding: 6px 10px; font-size: 13px; margin-top: 6px; width: auto; }
details.breakdown { margin-top: 10px; font-size: 14px; }
details.breakdown summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; }
details.breakdown ul { list-style: none; padding: 0; margin: 8px 0 0; }
details.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.config .actions { margin-top: 14px; }

.t3-tools { display: grid; gap: 12px; margin-bottom: 12px; }
.t3-tools input { margin: 0; }
.t3-list { list-style: none; padding: 0; margin: 0; }
.t3-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.t3-info b { display: block; font-size: 15px; }
.t3-info span { font-size: 14px; color: var(--muted); }
.t3-price { text-align: right; }
.t3-price strong { display: block; font-size: 17px; }
.t3-price s { font-size: 12px; color: var(--muted); }
.t3-add { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.t3-list li.more, .t3-list li.empty { display: block; text-align: center; color: var(--muted); border: 0; }

/* Summary */
.summary { position: sticky; top: 84px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; max-height: calc(100vh - 100px); overflow: auto; }
.sum-head { display: flex; justify-content: space-between; align-items: baseline; }
.lines { list-style: none; padding: 0; margin: 8px 0 16px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line.bad { background: var(--err-bg); margin: 0 -10px; padding: 14px 10px; border-radius: 10px; }
.line-main b { display: block; font-size: 14px; line-height: 1.35; }
.line-main .muted { display: block; font-size: 13px; line-height: 1.4; }
.line-side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.line-actions { display: flex; gap: 10px; align-items: center; }
.line-actions .stepper button { width: 32px; height: 34px; font-size: 17px; }
.line-actions .stepper input { width: 46px; min-height: 34px; font-size: 14px; }
.empty-quote { text-align: center; padding: 24px 8px; background: var(--bg); border-radius: 14px; margin: 12px 0; }
.empty-quote p { margin: 0 0 4px; }
fieldset.lead { margin: 0 0 14px; }
fieldset.lead legend { font-size: 12px; }
.pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: grid; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 4px; }
.pill b { font-size: 14px; }
.pill small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pill input:checked + span { border-color: var(--blue); background: var(--sky); }
.pill input:focus-visible + span { outline: 3px solid rgba(6, 160, 227, .45); }
.promo { display: flex; gap: 8px; margin: 6px 0 0; }
.promo input { margin: 0; min-height: 36px; text-transform: uppercase; }
.totals { margin: 16px 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .save dt, .totals .save dd { color: var(--ok); }
/* "Your price" = list price minus discounts: the same amount as the grid cell and the cart lines */
.totals .net { border-top: 1px solid var(--line, #E6ECF4); padding-top: 6px; }
.totals .net dt { color: var(--navy); font-weight: 700; }
.totals .net dd { font-weight: 800; }
.line-side s.was { color: var(--muted); font-weight: 500; font-size: 13px; }
.totals .grand { border-top: 2px solid var(--navy); padding-top: 12px; margin-top: 6px; align-items: baseline; }
.totals .grand dt { color: var(--navy); font-weight: 700; }
.totals .grand dt small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.totals .grand dd { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.nudge-text { background: var(--soft); border: 1px solid var(--line); border-left: 3px solid #E0A43A; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.upsells { margin: 0 0 16px; display: grid; gap: 8px; }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.upsell b { color: var(--blue-dark); flex: none; }
.upsell:hover { border-color: var(--blue); background: var(--sky); }

.mobilebar { display: none; }

/* Sheet (modal) */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(22, 32, 74, .45); display: flex; align-items: flex-end; justify-content: center; padding: 16px; animation: fade .15s; }
.sheet-card { background: #fff; border-radius: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(22, 32, 74, .3); }
@media (min-width: 700px) { .sheet { align-items: center; } }
@keyframes fade { from { opacity: 0; } }

/* Account */
.account { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.table-wrap { overflow-x: auto; }
table.qt { width: 100%; border-collapse: collapse; font-size: 15px; }
table.qt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
table.qt td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.r { text-align: right; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); }
.status.s-accepted { background: var(--ok-bg); color: var(--ok); }
.status.s-sent { background: var(--sky); color: var(--blue-dark); }
.done { text-align: center; }
.done .check-big { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 36px; margin: 0 auto 16px; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--err); }

@media (max-width: 960px) {
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; max-height: none; }
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(22, 32, 74, .08); }
  .mobilebar div { display: grid; line-height: 1.2; }
  .mobilebar span { font-size: 12px; }
  .mobilebar strong { font-size: 20px; }
  .live { position: static; background: none; }
}
@media (max-width: 560px) {
  .brand img { height: 32px; }
  #nav { gap: 10px; }
  #nav a { font-size: 14px; }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid3 small { display: none; }
  .grid2, .toggles { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .live-price strong.big { font-size: 24px; }
  .pills { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* v2 — styles, inspiration, units, lead time grid */
.pick { margin: 0 0 28px; }
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.style-card { display: grid; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--navy); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.style-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.style-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg); }
.style-name { font: 800 italic 22px/1.1 var(--display); text-transform: uppercase; padding: 12px 14px 2px; }
.style-tag { font-size: 13px; color: var(--muted); padding: 0 14px 14px; }
.inspo { margin: 12px 0 0; }
.inspo h3 { margin: 0; }
.inspo-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 8px; scrollbar-width: thin; }
.inspo figure { margin: 0; scroll-snap-align: start; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.inspo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.inspo figcaption { display: grid; padding: 10px 12px 12px; font-size: 14px; }
.inspo figcaption span { color: var(--muted); font-size: 13px; }
.style-chip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; font-size: 14px; color: var(--muted); }
.style-chip img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.style-chip b { color: var(--navy); }
.style-chip a { margin-left: auto; font-weight: 600; }
.legend-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.unit-toggle { display: inline-flex; background: var(--bg); padding: 3px; border-radius: 10px; text-transform: none; letter-spacing: 0; }
.unit-toggle button { border: 0; background: none; min-height: 32px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.unit-toggle button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(22, 32, 74, .12); }
.glue-hint { font-weight: 500; font-size: 13px; color: var(--muted); }
.glue-hint .link { font-size: 13px; }
fieldset.leadgrid { gap: 10px; }
.config .live { position: static; background: none; padding-top: 0; } /* a sticky price box would cover the lead time grid */
table.grid-price { border-collapse: separate; border-spacing: 6px; font-size: 14px; margin: -6px; width: calc(100% + 12px); }
table.grid-price th { font-weight: 700; color: var(--navy); text-align: center; padding: 4px; vertical-align: bottom; }
table.grid-price thead th small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
table.grid-price thead th.off { opacity: .45; }
table.grid-price tbody th { background: var(--bg); border-radius: 10px; width: 52px; }
table.grid-price td { padding: 0; }
.cell { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 15px; color: var(--navy); cursor: pointer; display: grid; place-content: center; padding: 4px; }
.cell small { font-size: 11px; font-weight: 500; color: var(--muted); }
.cell:hover { border-color: var(--blue); }
.cell.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.cell.on small { color: rgba(255, 255, 255, .85); }
.cell[disabled] { background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 6px, #fff 6px, #fff 12px); color: var(--muted); cursor: not-allowed; border-style: dashed; text-decoration: line-through; }
.fine.left { text-align: left; }
.pills { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.pill.off { cursor: not-allowed; opacity: .45; }
textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; resize: vertical; }
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(6, 160, 227, .15); }
.req-img { width: 160px; height: 120px; border-radius: 16px; object-fit: cover; margin: 0 0 12px; }
@media (max-width: 760px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { table.grid-price { font-size: 13px; } .cell { font-size: 13px; min-height: 44px; } .style-name { font-size: 18px; } }

/* v2.1 — pictures on options, finish picker, color chart, notices */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.with-thumb { display: inline-flex; align-items: center; gap: 10px; }
.thumb { position: relative; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: inline-block; cursor: zoom-in; }
.thumb > img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }
.thumb.empty { cursor: default; background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 5px, #fff 5px, #fff 10px); }
.thumb .zoom { position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 8px); width: 240px; height: 240px; transform: translateX(-50%) scale(.9); opacity: 0; pointer-events: none; background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(22, 32, 74, .28); padding: 6px; transition: opacity .15s, transform .15s; }
.thumb .zoom img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.thumb:hover .zoom, .thumb:focus .zoom, .picker-opt:hover .thumb .zoom, .picker-opt:focus-visible .thumb .zoom { opacity: 1; transform: translateX(-50%) scale(1); }
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--navy); }
.picker { position: relative; }
.picker-btn { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 7px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font-weight: 600; }
.picker-btn:hover, .picker-btn[aria-expanded="true"] { border-color: var(--blue); }
.picker-value { flex: 1; min-width: 0; }
.chev { color: var(--muted); }
.picker-list { position: absolute; z-index: 35; left: 0; right: 0; top: calc(100% + 6px); max-height: 360px; overflow: auto; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(22, 32, 74, .18); padding: 6px; }
.picker-group { margin: 8px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.picker-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.picker-opt:hover, .picker-opt:focus-visible { background: var(--sky); }
.picker-opt.on { background: var(--sky); font-weight: 700; }
.picker-list .thumb .zoom { left: auto; right: -252px; bottom: auto; top: -100px; transform: scale(.9); }
.picker-list .picker-opt:hover .thumb .zoom { transform: scale(1); }
.colorpick { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; margin-top: 10px; }
.colorpick-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg); padding: 3px; border-radius: 10px; flex-wrap: wrap; }
.seg button { border: 0; background: none; min-height: 32px; padding: 0 10px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(22, 32, 74, .12); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px; }
.swatch { aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(22, 32, 74, .15); background: var(--sw); cursor: pointer; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { outline: 3px solid var(--blue); outline-offset: 2px; }
.notice-text, .notice p { margin: 0; font-size: 14px; }
.notice-text { background: var(--sky); border-radius: 10px; padding: 10px 12px; }
.notice { display: flex; gap: 12px; align-items: center; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid #E0A43A; border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.notice img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.style-card.noimg img { display: none; }
.style-card.noimg::before { content: ''; display: block; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 10px, #fff 10px, #fff 20px); }
@media (max-width: 560px) { .picker-list .thumb .zoom { display: none; } .thumb .zoom { width: 180px; height: 180px; } }

/* v2.2 — info bubbles and order deadlines */
.row-media { display: inline-flex; align-items: center; gap: 6px; }
.info { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); font: italic 700 12px/1 Georgia, serif; cursor: help; flex: none; vertical-align: middle; margin-left: 2px; }
.info .bubble { position: absolute; z-index: 45; bottom: calc(100% + 10px); left: 50%; width: 260px; transform: translate(-50%, 4px); opacity: 0; pointer-events: none; background: #fff; color: var(--navy); border-radius: 14px; box-shadow: 0 16px 48px rgba(22, 32, 74, .25); padding: 10px; display: grid; gap: 6px; text-align: left; font: 400 13px/1.45 var(--font); letter-spacing: 0; text-transform: none; transition: opacity .15s, transform .15s; }
.info .bubble img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.info .bubble b { font-size: 14px; font-weight: 700; }
.info:hover .bubble, .info:focus .bubble { opacity: 1; transform: translate(-50%, 0); }
.picker-text { display: grid; min-width: 0; }
.picker-text small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.deadline { display: grid; gap: 6px; }
.deadline:empty { display: none; }
.deadline p { margin: 0; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.deadline-count { background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--ok); color: var(--navy); }
.deadline-count b, .deadline-count .clock { color: #147A52; }
.deadline-missed { background: var(--soft); border: 1px solid var(--line); border-left: 3px solid #E0A43A; color: var(--navy); }
@media (max-width: 560px) { .info .bubble { width: 220px; } }
.deadline .clock { display: inline-block; min-width: 5.2em; text-align: center; font-variant-numeric: tabular-nums; }

/* v2.3 — delivery choice */
fieldset.delivery { margin: 0 0 14px; gap: 8px; }
fieldset.delivery legend { font-size: 12px; }
.radio-card { display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.radio-card input { margin-top: 4px; accent-color: var(--blue); }
.radio-card span { display: grid; }
.radio-card b { font-size: 14px; }
.radio-card small { font-size: 12px; color: var(--muted); }
.radio-card.on { border-color: var(--blue); background: var(--sky); }
.t3-info.with-thumb { display: flex; align-items: center; gap: 10px; }
.t3-text { display: grid; min-width: 0; }
.t3-text b { display: inline-flex; align-items: center; gap: 4px; }

/* v2.4 — cart follows the grid, "Need it sooner?" */
.in-quote { color: var(--ok); font-weight: 600; font-size: 14px; }
.speed-up { margin: 0 0 16px; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--blue); display: grid; gap: 8px; }
.speed-title { margin: 0; font-weight: 800; font-size: 15px; color: var(--navy); }
.speed { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, transform .1s; }
.speed:hover { border-color: var(--blue); transform: translateY(-1px); }
.speed span { display: grid; }
.speed b { font-size: 14px; }
.speed small { font-size: 12px; color: var(--muted); }
.speed strong { font-size: 16px; color: var(--blue-dark); white-space: nowrap; }
.speed-up .fine { margin: 0; }
.totals dt { display: inline-flex; align-items: center; gap: 4px; }
.totals .info .bubble { left: 0; transform: translate(0, 4px); }
.totals .info:hover .bubble, .totals .info:focus .bubble { transform: translate(0, 0); }

/* v3 — packaging and shipping included, sales tax, ship somewhere else */
.totals dd.incl { color: var(--ok); }
.totals .tax-note { display: block; margin: -2px 0 2px; }
.totals .tax-note .link, .totals .tax-note .fine { font-size: 13px; margin: 0; }
.incl-note { margin: 8px 0 0; color: var(--ok); font-weight: 600; }
.ship-else { margin: 2px 0 0; font-size: 14px; }
.ship-else summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; padding: 4px 2px; }
.ship-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin: 8px 0 6px; }
.ship-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.ship-form select, .ship-form input { min-width: 0; }
@media (max-width: 560px) { .ship-form { grid-template-columns: 1fr 1fr; } .ship-form .btn { grid-column: span 2; } }
.tax-status { margin: 10px 0 0; font-size: 14px; }
.bom { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 2px; font-size: 12px; color: var(--navy); }
.bom b { color: var(--muted); font-weight: 600; }
.glue-tip { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid #E0A43A; }
.glue-tip p { margin: 0; font-size: 14px; }
.glue-tip .btn { justify-self: start; }
.booth { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.addon-note { margin: -4px 0 6px; }

/* v3.1 — cart as a sales funnel: items, glue, chosen lead time, faster options, recommendations, shipping, then totals */
.lead-chosen .pill.chosen { display: flex; width: 100%; cursor: default; border-color: var(--blue); background: var(--sky); }
.lead-chosen .pill.chosen span { display: grid; text-align: left; }
.lead-change { margin: 6px 0 0; font-size: 13px; }
.lead-change summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.lead-change .pills { margin-top: 8px; }

/* v3.2 — dark two-step sign-in: event photo, then email, then password */
body.auth-dark { background: #0B0F16; color: #F2F6FB; }
body.auth-dark .top { background: rgba(11,15,22,.84); border-bottom-color: #232B3B; }
body.auth-dark #nav a { color: #F2F6FB; }
body.auth-dark .foot, body.auth-dark .foot a { color: #8F9AAC; }
body.auth-dark main { max-width: none; padding: 0 0 40px; }
body.auth-dark .foot { display: none; } /* the legal links sit in the dark panel instead */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 34%, 520px); min-height: calc(100vh - 62px); align-items: stretch; }
.auth-photo { background: #151B26 center/cover no-repeat; border-radius: 0 42px 42px 0; }
.auth-side { position: relative; display: flex; align-items: center; padding: 40px clamp(20px, 5vw, 64px) 72px; }
.auth-legal { position: absolute; right: clamp(20px, 5vw, 64px); bottom: 24px; margin: 0; font-size: 13px; color: #8F9AAC; }
.auth-legal a { color: #8F9AAC; }
.auth-legal a:hover { color: #fff; }
.auth-legal span { padding: 0 6px; color: #5A657A; }
.auth-card { width: 100%; max-width: 420px; }
.auth-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.auth-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.02em; }
.auth-sub { margin: 0 0 20px; color: #8F9AAC; font-size: 15px; }
.auth-form { display: grid; gap: 18px; margin-top: 22px; }
.auth-form label.float { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8F9AAC; }
.auth-form input { margin-top: 8px; min-height: 54px; background: #151B26; border-color: #262E3D; color: #F2F6FB; font-size: 16px; border-radius: 12px; }
.auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(6,160,227,.22); }
.auth-form input::placeholder { color: #8A94A6; }
.auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth-actions a { color: #8F9AAC; font-weight: 600; font-size: 14px; }
.auth-actions a:hover { color: #fff; }
.btn.pill { border-radius: 999px; padding: 0 28px; }
.auth-foot { margin: 6px 0 0; font-size: 14px; color: #8F9AAC; }
.auth-foot a, .auth-foot .link { color: var(--blue); }
body.auth-dark .err { color: #FF8F84; }
@media (max-width: 1100px) { .auth-split { grid-template-columns: minmax(0, 1fr) clamp(320px, 42%, 460px); } }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; grid-template-rows: 34vh auto; min-height: calc(100vh - 62px); }
  .auth-photo { border-radius: 0 0 28px 28px; }
  .auth-side { padding: 28px 20px 64px; }
  .auth-legal { right: auto; left: 20px; bottom: 20px; }
}
#nav a + a { border-left: 1px solid var(--line); padding-left: 14px; }
body.auth-dark #nav { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
body.auth-dark #nav a { font-size: 13px; }
body.auth-dark #nav a + a { border-left-color: #2A3344; }
body.auth-dark #nav a.nav-cta { background: none; border: 0; color: #fff; padding: 0 0 0 14px; min-height: 0; border-radius: 0; }
body.auth-dark #nav a.nav-cta:hover { color: var(--blue); background: none; }
@media (max-width: 520px) {
  .brand-tag { display: none; }
  body.auth-dark #nav { font-size: 11px; letter-spacing: .04em; gap: 10px; }
  body.auth-dark #nav a { font-size: 11px; }
  #nav a + a { padding-left: 10px; }
}

/* v3.3 — dark portal (Airtable › Settings › PORTAL_THEME, or ?theme=dark to try it) */
body.dark-app {
  --bg: #0B0F16; --card: #151B26; --text: #F2F6FB; --navy: #F2F6FB; --muted: #8F9AAC;
  --line: #262E3D; --soft: #1B2230; --sky: #132636; --ok-bg: #12291F; --err-bg: #2C1714; --err: #FF8F84;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px rgba(0, 0, 0, .38);
}
body.dark-app .top { background: rgba(11, 15, 22, .84); }
body.dark-app input, body.dark-app select, body.dark-app textarea,
body.dark-app .btn.ghost, body.dark-app .chip, body.dark-app .stepper, body.dark-app .stepper button,
body.dark-app .upsell, body.dark-app .sheet-card, body.dark-app .mobilebar, body.dark-app .cell,
body.dark-app .picker-btn, body.dark-app .picker-list, body.dark-app .trust li, body.dark-app .speed { background: #1B2230; color: var(--text); }
body.dark-app .tabs button.on, body.dark-app .unit-toggle button.on, body.dark-app .seg button.on { background: #232B3B; color: #fff; box-shadow: none; }
body.dark-app .tabs, body.dark-app .unit-toggle, body.dark-app .seg { background: #10151E; }
body.dark-app .stepper button:hover, body.dark-app .cell:hover { background: #232B3B; }
body.dark-app .chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
body.dark-app .banner, body.dark-app #toast, body.dark-app .promo-pill { background: #1B2230; color: #fff; }
body.dark-app .live { background: linear-gradient(180deg, rgba(21, 27, 38, 0), var(--card) 18px); }
body.dark-app .info .bubble, body.dark-app .thumb .zoom { background: #1B2230; color: var(--text); box-shadow: 0 16px 48px rgba(0, 0, 0, .6); }
/* Dark mode: no muddy green or brown panels. Neutral slate cards with a coloured edge, text stays readable. */
body.dark-app .nudge, body.dark-app .nudge-text, body.dark-app .notice {
  background: #1B2230; border: 1px solid #2A3344; border-left: 3px solid #E9B44C; color: #E3E8F0; }
body.dark-app .nudge:hover { background: #232B3B; border-left-color: #F0C46B; }
body.dark-app .speed-up { background: #151B26; border: 1px solid #2A3344; border-left: 3px solid var(--blue); }
body.dark-app .glue-tip { background: #151B26; border: 1px solid #2A3344; border-left: 3px solid #E9B44C; }
body.dark-app .speed { background: #1B2230; border: 1px solid #2A3344; color: #E3E8F0; }
body.dark-app .speed:hover { border-color: var(--blue); }
body.dark-app .speed-title, body.dark-app .glue-tip p, body.dark-app .glue-tip b { color: #F2F6FB; }
body.dark-app .speed strong { color: #6FC7F0; }
body.dark-app .deadline-count { background: #151B26; border: 1px solid #2A3344; border-left: 3px solid #35C48B; color: #E3E8F0; }
body.dark-app .deadline-count .clock, body.dark-app .deadline-count b { color: #6FE0AC; }
body.dark-app .deadline-missed { background: #151B26; border: 1px solid #2A3344; border-left: 3px solid #E9B44C; color: #E3E8F0; }
body.dark-app .cell[disabled] { background: repeating-linear-gradient(135deg, #10151E, #10151E 6px, #1B2230 6px, #1B2230 12px); }
body.dark-app .thumb.empty, body.dark-app .style-card.noimg::before { background: repeating-linear-gradient(135deg, #10151E, #10151E 5px, #1B2230 5px, #1B2230 10px); }
body.dark-app .radio-card.on { background: #132636; }
body.dark-app .style-card, body.dark-app .style-name { color: var(--text); }
body.dark-app .was, body.dark-app s { color: var(--muted); }
.theme-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-content: center; margin-left: 4px; }
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
body.auth-dark .theme-toggle, body.dark-app .theme-toggle { border-color: #2A3344; color: #8F9AAC; }
#nav a + .theme-toggle { margin-left: 8px; }

/* v3.4 — code sur le mobile : le client demande, l'équipe l'envoie de son téléphone */
.byphone { margin: 16px 0 0; padding: 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.byphone-title { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.byphone label { font-size: 13px; font-weight: 600; color: var(--muted); }
.byphone input { margin-top: 6px; }
.byphone-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.byphone-btns .btn { flex: 1 1 160px; }
.byphone .fine { text-align: left; margin-top: 10px; }
body.dark-app .byphone, body.auth-dark .byphone { background: #151B26; border: 1px solid #2A3344; border-left: 3px solid var(--blue); }
body.auth-dark .byphone-title { color: #F2F6FB; }
body.auth-dark .byphone label { color: #8F9AAC; }

/* v3.5 — sélecteur de langue dans le bandeau */
.lang-pick { min-height: 34px; margin: 0 0 0 4px; padding: 0 6px; width: auto; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.lang-pick:hover { border-color: var(--blue); color: var(--blue); }
body.auth-dark .lang-pick, body.dark-app .lang-pick { border-color: #2A3344; color: #8F9AAC; background: transparent; }
body.auth-dark .lang-pick option, body.dark-app .lang-pick option { color: #16204A; }

/* v3.6 — numéro américain par défaut, indicatif pays derrière une case à cocher */
.phone-row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
.phone-row.intl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.phone-row select, .phone-row input { margin-top: 0; }
.intl-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.intl-toggle input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); cursor: pointer; }
.intl-hint { text-align: left; margin-top: 6px; }
@media (max-width: 420px) { .phone-row.intl { grid-template-columns: 1fr; } }

/* Le sélecteur de langue prend de la place : on resserre le bandeau plus tôt qu'avant. */
@media (max-width: 760px) {
  .brand-tag { display: none; }
  #nav { gap: 10px; }
  #nav a { font-size: 14px; }
  .lang-pick { font-size: 12px; padding: 0 4px; }
}

/* v3.7 — pourquoi le client se retrouve sur l'écran de connexion */
.auth-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #151B26; border: 1px solid #2A3344; border-left: 3px solid var(--blue); color: #E3E8F0; font-size: 14px; }
body:not(.auth-dark) .auth-note { background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--blue); color: var(--navy); }

/* v3.8 — se déconnecter depuis le bandeau */
.nav-out { font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-out:hover { color: var(--blue); }
#nav a + .nav-out { border-left: 1px solid var(--line); padding-left: 14px; }
body.dark-app #nav a + .nav-out { border-left-color: #2A3344; }
@media (max-width: 760px) { .nav-out { font-size: 14px; } #nav a + .nav-out { padding-left: 10px; } }

/* v4 — même charte que le site (v3/assets/site.css) : noir bleuté, bleu ciel, boutons en pilule */
body.dark-app, body.auth-dark {
  --bg: #0B0F16; --card: #151B26; --soft: #1B2230; --sky: #132636; --line: #262E3D;
  --text: #F2F6FB; --navy: #F2F6FB; --muted: #8F9AAC; --blue: #2AB5F0; --blue-dark: #57C8F7;
}
.btn { border-radius: 999px; font-weight: 600; padding: 0 24px; }
.btn.sm { border-radius: 999px; padding: 0 16px; }
.btn.xl { min-height: 52px; padding: 0 28px; font-size: 15px; }
body.dark-app .btn.primary, body.auth-dark .btn.primary { color: #001018; }
body.dark-app .btn.primary:hover, body.auth-dark .btn.primary:hover { background: #57C8F7; }
body.dark-app .btn.ghost, body.auth-dark .btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
body.dark-app .btn.ghost:hover, body.auth-dark .btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
body.dark-app .top, body.auth-dark .top { backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: rgba(255,255,255,.07); }
body.dark-app #nav a.btn { color: #001018; }
body.dark-app .eyebrow { color: var(--blue); letter-spacing: .18em; }

/* v4.1 — bandeau comme le site : même marge, même typo (capitales espacées, soulignement bleu au survol) */
.top { height: 74px; padding: 0 clamp(20px, 5vw, 72px); }
.brand img { height: clamp(34px, 2.7vw, 42px); }
#nav, body.auth-dark #nav { gap: clamp(14px, 1.6vw, 26px); text-transform: none; letter-spacing: 0; }
#nav > a:not(.btn), body.auth-dark #nav > a:not(.btn) { position: relative; padding: 8px 0; border-left: 0; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
body.dark-app #nav > a:not(.btn), body.auth-dark #nav > a:not(.btn) { color: #D3DBE6; }
#nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: var(--blue); transition: right .24s; }
#nav > a:not(.btn):hover { color: var(--text); } #nav > a:not(.btn):hover::after { right: 0; }
#nav a + a, body.auth-dark #nav a + a { border-left: 0; padding-left: 0; }
#nav .nav-cta, body.auth-dark #nav a.nav-cta { font-size: 13px; letter-spacing: .03em; }
#nav .lang-pick { height: 42px; min-height: 42px; padding: 0 12px; font-size: 13px; letter-spacing: .05em; }
#nav .nav-out { text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
@media (max-width: 760px) { .top { height: 62px; } #nav, body.auth-dark #nav { gap: 12px; } #nav > a:not(.btn), body.auth-dark #nav > a:not(.btn) { font-size: 11px; letter-spacing: .03em; } #nav .lang-pick { height: 36px; min-height: 36px; padding: 0 6px; } }

/* v4.1 — « Our work » : la rubrique Réalisations du site */
.inspo { margin: 40px 0 0; }
.inspo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.inspo-head .eyebrow { color: var(--blue); letter-spacing: .18em; }
.inspo-title { font: 800 italic clamp(34px, 4.4vw, 58px)/.95 var(--display); text-transform: uppercase; margin: 0; }
.car-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.car-num { margin: 0; display: flex; align-items: baseline; gap: 6px; font: 700 italic 15px/1 var(--display); letter-spacing: .06em; color: var(--muted); }
.car-num b { font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.car-nav { display: flex; gap: 10px; }
.car-nav button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.car-nav button:hover { border-color: var(--blue); color: var(--blue); }
.car-nav button[disabled] { opacity: .32; cursor: default; }
.car-nav svg { width: 18px; height: 18px; }
.inspo-track { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 0 0 6px; }
.inspo-track::-webkit-scrollbar { display: none; }
.inspo .work { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); cursor: zoom-in; scroll-snap-align: start; text-align: left; font: inherit; color: #fff; }
.inspo .work img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.inspo .work:hover img { transform: scale(1.07); }
.inspo .work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,9,14,.9) 2%, rgba(6,9,14,.2) 44%, transparent 68%); }
.inspo .work-cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 20px; display: grid; gap: 4px; }
.inspo .work-cap b { font: 700 italic 22px/1.02 var(--display); text-transform: uppercase; }
.inspo .work-cap span { font-size: 13px; color: rgba(255,255,255,.76); }
.fin-diapo { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: radial-gradient(120% 120% at 100% 0%, #57C8F7, #0487C0 60%); color: #fff; scroll-snap-align: start; }
.fin-diapo h3 { font: 800 italic clamp(34px, 3.6vw, 52px)/.98 var(--display); text-transform: uppercase; margin: 0; }
.fin-diapo p { margin: 0; font-size: 15px; opacity: .92; max-width: 30ch; }
.fin-diapo .fin-btn { background: #fff; color: #0B2A40; }
.fin-diapo .fin-btn:hover { background: #0B2A40; color: #fff; }
@media (max-width: 760px) { .inspo-track { grid-auto-columns: 78%; } }
.gal-lb { position: fixed; inset: 0; z-index: 100; background: rgba(6,9,14,.9); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.gal-lb figure { margin: 0; max-width: min(1100px, 100%); }
.gal-lb img { max-height: 78vh; width: auto; max-width: 100%; border-radius: 14px; display: block; margin: 0 auto; }
.gal-lb figcaption { color: #fff; display: grid; gap: 4px; padding: 14px 4px 0; }
.gal-lb figcaption b { font: 700 italic 24px/1 var(--display); text-transform: uppercase; }
.gal-lb figcaption span { color: rgba(255,255,255,.7); font-size: 14px; }
.gal-x { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 26px; cursor: pointer; }

/* v4.2 — « Créer mon compte pro » : le même lien que sur le site (capitales bleues, flèche qui avance) */
.lnk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.lnk .ar { transition: transform .2s; }
.lnk:hover .ar { transform: translateX(4px); }
.auth-foot.compte-pro { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.auth-foot.compte-pro a.lnk { color: var(--blue); }
