@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --ink: #101828;
  --ink-soft: #667085;
  --ink-faint: #98a2b3;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --surface-tint: #f1efff;
  --line: #e4e7ec;
  --brand: #6c4cff;
  --brand-dark: #5336e6;
  --brand-soft: #ece8ff;
  --accent: #b7f34a;
  --accent-dark: #7cad23;
  --navy-950: #131126;
  --navy-900: #1c1836;
  --navy-800: #282248;
  --navy-700: #38305f;
  --cyan-bright: #a99aff;
  --paper: #f7f8fc;
  --white: #ffffff;
  --success: #12b76a;
  --danger: #d92d20;
  --warning: #f79009;

  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Sans", sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .04);
  --shadow-md: 0 18px 50px rgba(40, 34, 72, .10);
  --shadow-lg: 0 30px 90px rgba(16, 12, 45, .24);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--brand-soft); color: var(--navy-950); }
body.generation-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* Actions */
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .91rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid rgba(108, 76, 255, .28); outline-offset: 3px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(108, 76, 255, .25); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 14px 30px rgba(108, 76, 255, .32); }
.btn-ghost { background: rgba(255,255,255,.75); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #fff; border-color: #c7cbd4; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Écran d’attente pendant les générations longues */
.generation-loader[hidden] { display: none; }
.generation-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19,17,38,.76);
  opacity: 0;
  backdrop-filter: blur(16px) saturate(125%);
  transition: opacity .25s ease;
}
.generation-loader.is-visible { opacity: 1; }
.generation-loader-card {
  width: min(100%,560px);
  padding: 45px 42px 38px;
  overflow: hidden;
  position: relative;
  text-align: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 35px 100px rgba(8,5,31,.42);
}
.generation-loader-card::before {
  content: "";
  width: 250px;
  height: 250px;
  position: absolute;
  top: -150px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(183,243,74,.27),rgba(183,243,74,0) 68%);
}
.generation-loader-visual {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto 22px;
}
.generation-loader-visual img {
  width: 58px;
  height: 58px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(108,76,255,.25));
  animation: generation-logo-pulse 2.2s ease-in-out infinite;
}
.generation-loader-orbit {
  position: absolute;
  inset: 3px;
  border: 2px solid transparent;
  border-top-color: var(--brand);
  border-right-color: rgba(108,76,255,.18);
  border-radius: 50%;
  animation: generation-orbit 1.35s linear infinite;
}
.generation-loader-orbit-two {
  inset: 13px;
  border-top-color: var(--accent-dark);
  border-right-color: transparent;
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.generation-loader h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem,4vw,2rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.generation-loader p { min-height: 26px; margin: 0 0 21px; color: var(--ink-soft); }
.generation-loader-progress {
  height: 8px;
  overflow: hidden;
  position: relative;
  border-radius: 99px;
  background: var(--brand-soft);
}
.generation-loader-progress span {
  width: 42%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--brand),#9a7dff,var(--accent));
  box-shadow: 0 0 18px rgba(108,76,255,.34);
  animation: generation-progress 2.1s ease-in-out infinite;
}
.generation-loader-steps { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 18px 0 16px; }
.generation-loader-steps span { color: var(--ink-faint); font-size: .71rem; font-weight: 700; transition: color .3s ease; }
.generation-loader-steps span.is-active { color: var(--brand); }
.generation-loader-steps i { width: 20px; height: 1px; background: var(--line); }
.generation-loader small { display: block; color: var(--ink-faint); font-size: .77rem; }
@keyframes generation-orbit { to { transform: rotate(360deg); } }
@keyframes generation-logo-pulse { 50% { transform: scale(1.08); filter: drop-shadow(0 14px 24px rgba(108,76,255,.34)); } }
@keyframes generation-progress {
  0% { transform: translateX(-115%); }
  55%,100% { transform: translateX(255%); }
}

/* Navigation */
.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(228, 231, 236, .8);
  backdrop-filter: blur(18px) saturate(150%);
}
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--navy-950); font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; display: block; flex: 0 0 34px; object-fit: contain; filter: drop-shadow(0 7px 9px rgba(108,76,255,.22)); }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-links form { margin: 0; }
.lang-switch { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.lang-switch a { padding: 5px 8px; border-radius: 7px; color: var(--ink-soft); font-size: .72rem; font-weight: 700; line-height: 1; text-decoration: none; }
.lang-switch a.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(16,24,40,.12); }

/* Landing */
.hero { position: relative; overflow: hidden; padding: 96px 0 90px; background: var(--navy-950); color: #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; left: -260px; top: -400px; border-radius: 50%; background: rgba(108,76,255,.38); filter: blur(10px); z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .32; background-image: radial-gradient(rgba(255,255,255,.23) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to right, transparent, #000 65%); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); align-items: center; gap: clamp(48px, 7vw, 88px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 11px; border: 1px solid rgba(183,243,74,.28); border-radius: 999px; background: rgba(183,243,74,.08); color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(183,243,74,.12); }
.hero h1 { max-width: 720px; margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(2.8rem, 5.4vw, 5.15rem); font-weight: 800; letter-spacing: -.065em; line-height: .99; text-wrap: balance; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { max-width: 590px; margin: 0 0 32px; color: rgba(255,255,255,.68); font-size: clamp(1rem,1.4vw,1.15rem); line-height: 1.7; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero .btn-primary { background: var(--accent); color: #1d290b; box-shadow: 0 12px 30px rgba(183,243,74,.16); }
.hero .btn-primary:hover { background: #c6ff5c; box-shadow: 0 16px 36px rgba(183,243,74,.24); }
.price-tag { display: grid; color: rgba(255,255,255,.52); font-size: .78rem; line-height: 1.25; }
.price-tag strong { color: #fff; font-family: var(--font-display); font-size: 1rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: rgba(255,255,255,.6); font-size: .78rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: "✓"; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(183,243,74,.12); color: var(--accent); font-weight: 800; }

.blueprint-frame { position: relative; max-width: 570px; margin-inline: auto; overflow: visible; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); transform: perspective(1100px) rotateY(-4deg) rotateX(1deg); }
.blueprint-frame::before { content: "One-page complète"; position: absolute; top: -17px; right: -16px; z-index: 3; padding: 9px 13px; border-radius: 10px; background: var(--accent); color: #28350d; font-size: .7rem; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.2); transform: rotate(2deg); }
.blueprint-frame .bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid #e8e8ec; border-radius: 20px 20px 0 0; background: #fafafd; }
.blueprint-frame .bar::after { content: "nova-studio.fr"; width: 45%; margin-left: 10px; padding: 4px 11px; border-radius: 6px; background: #ececf2; color: #85818e; font-size: .52rem; text-align: center; }
.blueprint-frame .bar span { width: 7px; height: 7px; border-radius: 50%; background: #d9d7df; }
.site-preview { height: 455px; position: relative; overflow: hidden; border-radius: 0 0 19px 19px; background: #071a23; color: #171717; }
.site-preview-shot { width: 100%; height: auto; max-width: none; display: block; animation: preview-page-scroll 14s ease-in-out 1.5s infinite alternate; will-change: transform; }
.blueprint-frame:hover .site-preview-shot { animation-play-state: paused; }
@keyframes preview-page-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 455px)); } }
.preview-nav { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 27px; border-bottom: 1px solid rgba(23,23,23,.09); background: rgba(247,243,236,.92); }
.preview-logo { font-family: var(--font-display); font-size: .77rem; font-weight: 800; letter-spacing: .04em; }
.preview-logo span { color: #e6532f; }
.preview-links { display: flex; gap: 12px; }
.preview-links i { width: 24px; height: 3px; border-radius: 9px; background: #c6c0b7; }
.preview-nav > b { padding: 5px 9px; border-radius: 99px; background: #171717; color: #fff; font-size: .48rem; }
.preview-hero { min-height: 225px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center; padding: 30px 28px 27px; }
.preview-copy small { display: block; margin-bottom: 11px; color: #e6532f; font-size: .43rem; font-weight: 800; letter-spacing: .14em; }
.preview-copy > strong { display: block; font-family: var(--font-display); font-size: 1.48rem; line-height: .98; letter-spacing: -.06em; }
.preview-copy > strong em { color: #e6532f; font-style: normal; }
.preview-copy p { max-width: 220px; margin: 11px 0 14px; color: #736d65; font-size: .53rem; line-height: 1.5; }
.preview-copy > span { padding-bottom: 3px; border-bottom: 1px solid #171717; font-size: .52rem; font-weight: 700; }
.preview-copy > span b { margin-left: 8px; color: #e6532f; }
.preview-art { height: 170px; position: relative; overflow: hidden; border-radius: 100px 100px 8px 8px; background: #d6a57b url("/assets/images/onepage-creative-director.webp?v=2") 50% 34% / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(23,23,23,.08); }
.preview-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; filter: saturate(.88) contrast(1.03); }
.preview-photo-label { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; border-radius: 99px; background: rgba(255,255,255,.9); color: #171717; font-size: .4rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.12); backdrop-filter: blur(5px); }
.preview-services { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid rgba(23,23,23,.1); background: #fff; }
.preview-services span { min-height: 60px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 20px; border-right: 1px solid rgba(23,23,23,.1); font-family: var(--font-display); font-size: .56rem; font-weight: 800; }
.preview-services span:last-child { border: 0; }
.preview-services b { color: #e6532f; font-size: .4rem; }
.preview-proof { height: 80px; display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 8px; padding: 0 27px; background: #24202d; color: #fff; }
.preview-proof strong { color: #f3d34a; font-family: var(--font-display); font-size: 1.25rem; }
.preview-proof span { max-width: 55px; color: rgba(255,255,255,.55); font-size: .43rem; line-height: 1.25; }

.section { padding: 100px 0; }
.section-kicker { display: block; margin-bottom: 12px; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .seo-copy h2, .cta-band h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem,4vw,3.25rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; text-wrap: balance; }
.section-head p { margin: 16px auto 0; color: var(--ink-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: steps; }
.step-card { min-height: 250px; padding: 28px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.step-card:hover { transform: translateY(-6px); border-color: #d4ccff; box-shadow: var(--shadow-md); }
.step-icon { width: 48px; height: 48px; margin-bottom: 35px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; font-weight: 800; }
.step-card .coord { display: block; margin-bottom: 8px; color: var(--brand); font-size: .69rem; font-weight: 800; letter-spacing: .08em; }
.step-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: .91rem; }
.step-card:nth-child(2) .step-icon { background: #e8f6ff; color: #1683c5; }
.step-card:nth-child(3) .step-icon { background: #fff2df; color: #d16c00; }
.step-card:nth-child(4) .step-icon { background: #e8f8ef; color: #07884b; }

.seo-section { padding: 30px 0 110px; }
.seo-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; padding: clamp(34px,5vw,66px); border: 1px solid #e2ddff; border-radius: var(--radius-lg); background: linear-gradient(135deg,#f0edff,#fff 62%); }
.seo-visual { min-height: 280px; position: relative; display: grid; place-items: center; }
.seo-orbit { width: 220px; height: 220px; position: relative; display: grid; place-items: center; border: 1px dashed #b9afe8; border-radius: 50%; }
.seo-orbit::before, .seo-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.seo-orbit::before { inset: 32px; border: 1px solid #d8d1fb; }
.seo-orbit::after { width: 84px; height: 84px; background: var(--brand); box-shadow: 0 20px 50px rgba(108,76,255,.28); }
.seo-chip { position: absolute; z-index: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); font-size: .76rem; font-weight: 700; }
.seo-chip:nth-child(1) { top: 22px; right: -22px; }
.seo-chip:nth-child(2) { bottom: 24px; left: -35px; }
.seo-chip:nth-child(3) { bottom: -8px; right: 5px; }
.seo-copy p { color: var(--ink-soft); font-size: 1.02rem; }
.feature-list { display: grid; gap: 12px; margin-top: 25px; }
.feature-list span { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.feature-list span::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }

.cta-section { padding: 0 0 90px; }
.cta-band { position: relative; overflow: hidden; padding: clamp(48px,7vw,80px); border-radius: var(--radius-lg); background: var(--navy-950); color: #fff; text-align: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; left: -80px; bottom: -260px; border-radius: 50%; background: var(--brand); filter: blur(4px); z-index: -1; }
.cta-band::after { content: ""; position: absolute; width: 220px; height: 220px; top: -170px; right: -40px; border-radius: 50%; background: var(--accent); opacity: .6; z-index: -1; }
.cta-band h2 { max-width: 780px; margin-inline: auto; }
.cta-band p { max-width: 600px; margin: 18px auto 30px; color: rgba(255,255,255,.62); }
.cta-band .btn-primary { background: var(--accent); color: #1d290b; box-shadow: none; }

/* Footer */
footer.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: .83rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.footer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* Forms and authentication */
.auth-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 70px 20px; position: relative; overflow: hidden; background: var(--navy-950); }
.auth-shell::before, .auth-shell::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-shell::before { width: 420px; height: 420px; left: -180px; top: -180px; background: rgba(108,76,255,.42); }
.auth-shell::after { width: 280px; height: 280px; right: -130px; bottom: -130px; background: rgba(183,243,74,.25); }
.auth-card { width: min(100%,450px); position: relative; z-index: 1; padding: 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-lg); }
.auth-card::before { content: ""; display: block; width: 46px; height: 5px; margin-bottom: 28px; border-radius: 99px; background: var(--brand); }
.auth-card h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.04em; }
.auth-card p.sub { margin: 0 0 28px; color: var(--ink-soft); font-size: .94rem; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; color: #344054; font-size: .84rem; font-weight: 700; }
.field .hint, .hint { margin-top: 7px; color: var(--ink-soft); font-size: .79rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="file"], textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d0d5dd; border-radius: 11px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108,76,255,.12); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 10px; }
.checkbox-item { min-height: 45px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); font-size: .89rem; }
.alert { padding: 13px 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 11px; font-size: .88rem; }
.alert-error { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.alert-success { border-color: #abefc6; background: #ecfdf3; color: #067647; }

/* Incidents affichés aux clients : aucun détail technique */
.client-incident-card { padding: clamp(30px,6vw,52px); }
.client-incident-card h1 { margin: 12px 0 13px; font-family: var(--font-display); font-size: clamp(1.65rem,4vw,2.25rem); line-height: 1.18; letter-spacing: -.04em; }
.client-incident-card > p { max-width: 470px; margin: 0 auto 24px; color: var(--ink-soft); }
.client-incident-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 18px; background: #fff4e8; color: #d86c00; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; box-shadow: inset 0 0 0 1px #fedfbd; }
.client-incident-icon.is-success { background: #ecfdf3; color: var(--success); box-shadow: inset 0 0 0 1px #abefc6; }
.client-incident-code { display: grid; gap: 3px; margin: 0 0 24px; padding: 16px 18px; border: 1px dashed #c9c2ff; border-radius: 13px; background: var(--surface-tint); }
.client-incident-code span { color: var(--ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.client-incident-code strong { color: var(--brand-dark); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; }
.client-incident-back { display: inline-block; margin-top: 9px; color: var(--ink-soft); font-size: .85rem; font-weight: 700; text-decoration: none; }
.client-incident-back:hover { color: var(--brand); }
.client-project-incident { padding: 24px; border: 1px solid #fedf89; border-radius: 15px; background: #fffaeb; color: #7a2e0e; }
.client-project-incident > strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.client-project-incident > p { margin: 5px 0 17px; color: #93370d; font-size: .87rem; }

/* Suivi du paiement et livraison du site */
.delivery-shell { width: min(100% - 40px, 860px); }
.delivery-card { max-width: 760px; overflow: hidden; position: relative; padding: clamp(34px,6vw,58px); text-align: center; box-shadow: 0 24px 70px rgba(40,34,72,.10); }
.delivery-card::before { content: ""; width: 310px; height: 310px; position: absolute; z-index: 0; top: -210px; right: -140px; border-radius: 50%; background: radial-gradient(circle,rgba(183,243,74,.25),rgba(183,243,74,0) 70%); pointer-events: none; }
.delivery-panel { position: relative; z-index: 1; }
.delivery-panel[hidden] { display: none; }
.delivery-panel h1 { margin: 10px auto 12px; font-size: clamp(1.75rem,4vw,2.45rem); line-height: 1.15; letter-spacing: -.05em; }
.delivery-panel > p { max-width: 570px; margin: 0 auto 27px; color: var(--ink-soft); }
.delivery-loader-visual { width: 112px; height: 112px; display: grid; place-items: center; position: relative; margin: 0 auto 23px; }
.delivery-loader-visual::before { content: ""; position: absolute; inset: 20px; border-radius: 21px; background: #fff; box-shadow: 0 15px 32px rgba(108,76,255,.15); transform: rotate(8deg); }
.delivery-loader-visual img { width: 58px; height: 58px; position: relative; z-index: 2; filter: drop-shadow(0 10px 18px rgba(108,76,255,.22)); animation: generation-logo-pulse 2.2s ease-in-out infinite; }
.delivery-loader-ring { position: absolute; inset: 2px; border: 2px solid transparent; border-top-color: var(--brand); border-right-color: rgba(108,76,255,.15); border-radius: 50%; animation: generation-orbit 1.45s linear infinite; }
.delivery-loader-ring-two { inset: 12px; border-top-color: var(--accent-dark); border-right-color: transparent; animation-duration: 2s; animation-direction: reverse; }
.delivery-progress { height: 8px; overflow: hidden; margin: 0 auto 26px; border-radius: 999px; background: var(--brand-soft); }
.delivery-progress span { width: 38%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#9a7dff,var(--accent)); animation: generation-progress 2.25s ease-in-out infinite; }
.delivery-timeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; text-align: left; }
.delivery-timeline li { min-width: 0; position: relative; padding: 16px 13px 14px 47px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--ink-faint); transition: border-color .25s,background .25s,color .25s,box-shadow .25s; }
.delivery-timeline li > span { width: 25px; height: 25px; display: grid; place-items: center; position: absolute; left: 13px; top: 17px; border-radius: 8px; background: #eaecf0; color: #667085; font-size: .68rem; font-weight: 800; }
.delivery-timeline strong, .delivery-timeline small { display: block; }
.delivery-timeline strong { color: inherit; font-family: var(--font-display); font-size: .79rem; line-height: 1.3; }
.delivery-timeline small { overflow: hidden; margin-top: 2px; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.delivery-timeline li.is-active { border-color: #b9adff; background: #f7f5ff; color: var(--brand-dark); box-shadow: 0 8px 20px rgba(108,76,255,.08); }
.delivery-timeline li.is-active > span { background: var(--brand); color: #fff; box-shadow: 0 5px 12px rgba(108,76,255,.25); }
.delivery-timeline li.is-complete { border-color: #abefc6; background: #f2fff7; color: #067647; }
.delivery-timeline li.is-complete > span { overflow: hidden; background: var(--success); color: transparent; }
.delivery-timeline li.is-complete > span::after { content: "✓"; position: absolute; color: #fff; }
.delivery-waiting-note { display: grid; gap: 1px; margin-top: 22px; padding: 14px 18px; border-radius: 12px; background: #f7f8fc; color: var(--ink-soft); font-size: .79rem; }
.delivery-waiting-note strong { color: var(--ink); }
.delivery-noscript { margin: 14px 0 0; padding: 11px 14px; border: 1px solid #fedf89; border-radius: 10px; background: #fffaeb; color: #93370d; font-size: .78rem; }
.delivery-secondary-link { display: inline-block; margin-top: 23px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; text-decoration: none; }
.delivery-secondary-link:hover { color: var(--brand); }
.delivery-project-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; }
.delivery-reference-note { max-width: 650px; display: flex; align-items: flex-start; gap: 12px; margin: 20px auto 0; padding: 14px 16px; border: 1px solid #c9f0d8; border-radius: 13px; background: #f2fcf6; color: #175c38; text-align: left; }
.delivery-reference-note > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #1b8750; color: #fff; font-size: .72rem; font-weight: 900; }
.delivery-reference-note strong, .delivery-reference-note small { display: block; }
.delivery-reference-note strong { font-size: .78rem; }
.delivery-reference-note small { margin-top: 3px; color: #397253; font-size: .7rem; line-height: 1.45; }
.delivery-reference-note code { padding: 1px 4px; border-radius: 4px; background: rgba(23,92,56,.08); color: inherit; font-size: .68rem; }
.delivery-reference-note.is-legacy { border-color: #f2d49b; background: #fff9eb; color: #7a4c08; }
.delivery-reference-note.is-legacy > span { background: #b96c0b; }
.delivery-reference-note.is-legacy small { color: #866126; }
.delivery-success-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 22px; background: #ecfdf3; color: #079455; font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; box-shadow: inset 0 0 0 1px #abefc6,0 12px 30px rgba(18,183,106,.13); }
.delivery-downloads { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin: 4px 0 31px; }
.delivery-downloads .btn { min-width: 230px; }
.delivery-downloads .btn span { opacity: .68; font-size: .75rem; }
.delivery-installation { padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-soft); text-align: left; }
.delivery-installation-head { margin-bottom: 17px; }
.delivery-installation-head h2 { margin: 4px 0 0; font-size: 1.15rem; }
.delivery-installation ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.delivery-installation li { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 12px; padding: 11px 12px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.delivery-installation li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); font-size: .72rem; font-weight: 800; }
.delivery-installation strong, .delivery-installation small { display: block; }
.delivery-installation strong { font-size: .82rem; }
.delivery-installation small { margin-top: 2px; color: var(--ink-soft); font-size: .74rem; line-height: 1.5; }
.delivery-error form { max-width: 470px; margin: 0 auto; }
.delivery-error .delivery-retry-form { margin-top: 10px; }
.delivery-error .client-incident-code { max-width: 470px; margin-inline: auto; }

/* Dashboard, wizard and admin */
.page-shell { min-height: calc(100vh - 150px); padding: 64px 0 100px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 32px; }
.page-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem,3.2vw,2.6rem); letter-spacing: -.045em; }
.order-list { display: grid; gap: 12px; }
.order-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; }
.order-row:hover { border-color: #d5ccff; transform: translateY(-2px); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .69rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-brouillon, .badge-questionnaire { background: #f2f4f7; color: #475467; }
.badge-apercu_genere, .badge-en_revision { background: #fff6e8; color: #b54708; }
.badge-valide { background: #eef4ff; color: #3538cd; }
.badge-paye { background: #fffbe8; color: #8a6d00; }
.badge-livre { background: #ecfdf3; color: #067647; }
.badge-paiement_en_cours, .badge-generation_en_cours { background: #eef4ff; color: #3538cd; }
.badge-generation_echouee { background: #fef3f2; color: #b42318; }
.empty-state { padding: 70px 24px; border: 1px dashed #cfd3dc; border-radius: var(--radius); background: rgba(255,255,255,.65); color: var(--ink-soft); text-align: center; }
.wizard-progress { max-width: 820px; margin: 0 auto 12px; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.wizard-card { max-width: 820px; margin: 0 auto; padding: clamp(28px,5vw,48px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.wizard-card h1, .wizard-card h2, .wizard-card h3 { font-family: var(--font-display); letter-spacing: -.025em; }
.wizard-card > h1:first-child { margin-top: 0 !important; }
.brief-shell { min-height: calc(100vh - 76px); padding: 58px 0 100px; background: linear-gradient(180deg,#f7f8fc 0,#f2f0ff 100%); }
.brief-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.brief-hero > div:first-child { max-width: 720px; }
.brief-hero h1 { margin: 10px 0 12px; font-family: var(--font-display); font-size: clamp(2rem,4.5vw,3.55rem); line-height: 1.05; letter-spacing: -.06em; }
.brief-hero p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 1rem; }
.brief-overall-progress { width: min(100%,290px); flex: 0 0 290px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.8); box-shadow: var(--shadow-sm); }
.brief-overall-progress strong { display: block; margin-bottom: 10px; font-size: .82rem; }
.brief-overall-progress small { display: block; min-height: 18px; margin-top: 8px; color: var(--ink-soft); font-size: .72rem; }
.brief-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e6e2fb; }
.brief-progress-track span { display: block; width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#9b86ff); transition: width .35s ease; }
.brief-error { margin-bottom: 22px; }
.brief-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: start; gap: 24px; }
.brief-section-nav { position: sticky; top: 94px; display: grid; gap: 7px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); backdrop-filter: blur(15px); }
.brief-nav-item { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink-soft); text-align: left; cursor: pointer; transition: background .2s,border-color .2s,color .2s; }
.brief-nav-item:hover { background: var(--surface-soft); color: var(--ink); }
.brief-nav-item > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edeaf9; color: var(--brand); font-size: .7rem; font-weight: 800; }
.brief-nav-item strong, .brief-nav-item small { display: block; }
.brief-nav-item strong { overflow: hidden; font-size: .76rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.brief-nav-item small { margin-top: 3px; color: var(--ink-faint); font-size: .65rem; }
.brief-nav-item.active { border-color: rgba(108,76,255,.2); background: var(--surface-tint); color: var(--brand-dark); }
.brief-nav-item.active > span:first-child { background: var(--brand); color: #fff; box-shadow: 0 7px 16px rgba(108,76,255,.22); }
.brief-nav-item.completed small { color: var(--success); }
.brief-conversation { min-width: 0; }
.dialog-section[hidden], .dialog-exchange[hidden] { display: none !important; }
.dialog-section { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-md); }
.dialog-section-head { display: flex; gap: 18px; padding: clamp(26px,4vw,38px); border-bottom: 1px solid rgba(255,255,255,.1); background: var(--navy-950); color: #fff; }
.dialog-section-head > span { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(183,243,74,.25); border-radius: 14px; background: rgba(183,243,74,.08); color: var(--accent); font-weight: 800; }
.dialog-section-head p { margin: 0 0 5px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dialog-section-head h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(1.35rem,3vw,2rem); letter-spacing: -.04em; }
.dialog-section-head div > div { color: rgba(255,255,255,.62); font-size: .9rem; line-height: 1.55; }
.dialog-note { margin: 26px clamp(22px,4vw,38px) 0; padding: 16px 18px; border: 1px solid #dcd5ff; border-radius: 13px; background: var(--surface-tint); }
.dialog-note strong { color: var(--brand-dark); font-size: .78rem; }
.dialog-note p { margin: 5px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.dialog-thread { display: grid; gap: 4px; padding: clamp(22px,4vw,38px); }
.dialog-exchange { padding: 18px 0 26px; border-bottom: 1px solid #eef0f4; }
.dialog-exchange:last-child { border-bottom: 0; }
.dialog-prompt { max-width: 86%; display: flex; align-items: flex-start; gap: 11px; }
.dialog-prompt img { flex: 0 0 auto; }
.dialog-prompt > div { padding: 12px 15px; border-radius: 4px 15px 15px 15px; background: #f2f0ff; }
.dialog-prompt span { display: block; margin-bottom: 3px; color: var(--brand); font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dialog-prompt p { margin: 0; color: var(--navy-950); font-size: .94rem; font-weight: 700; line-height: 1.5; }
.dialog-prompt small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .72rem; }
.dialog-answer { width: min(92%,680px); margin: 12px 0 0 auto; padding: 12px; border: 1px solid #e0e3ea; border-radius: 15px 4px 15px 15px; background: #fbfbfd; transition: border-color .2s,box-shadow .2s; }
.dialog-answer:focus-within { border-color: #b8aaff; box-shadow: 0 0 0 4px rgba(108,76,255,.08); }
.dialog-answer input[type="text"], .dialog-answer textarea { border: 0; background: transparent; box-shadow: none; }
.dialog-answer input[type="text"] { min-height: 44px; }
.dialog-answer textarea { min-height: 100px; }
.dialog-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-choice { position: relative; cursor: pointer; }
.dialog-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dialog-choice span { min-height: 42px; display: inline-flex; align-items: center; padding: 9px 13px; border: 1px solid #d8dbe4; border-radius: 10px; background: #fff; color: #475467; font-size: .8rem; font-weight: 650; transition: border-color .2s,background .2s,color .2s,box-shadow .2s; }
.dialog-choice span::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border: 2px solid #b3b8c4; border-radius: 50%; }
.dialog-choice input:checked + span { border-color: #a797ff; background: var(--surface-tint); color: var(--brand-dark); box-shadow: 0 4px 12px rgba(108,76,255,.08); }
.dialog-choice input:checked + span::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 2px #fff; }
.dialog-choice input:focus-visible + span { outline: 3px solid rgba(108,76,255,.22); outline-offset: 2px; }
.social-network-grid { display: grid; gap: 9px; }
.social-network-option { display: grid; grid-template-columns: 145px minmax(0,1fr); align-items: center; gap: 10px; }
.social-network-option .dialog-choice span { width: 100%; }
.social-network-url { min-height: 42px !important; padding: 9px 12px !important; font-size: .8rem; }
.social-network-url[hidden] { display: none !important; }
.dialog-validation { display: none; margin: 8px 4px 0; color: var(--danger); font-size: .72rem; font-weight: 650; }
.dialog-answer.invalid { border-color: #fda29b; background: #fff8f7; }
.dialog-answer.invalid .dialog-validation { display: block; }
.brief-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px clamp(22px,4vw,38px); border-top: 1px solid var(--line); background: #fbfbfd; }
.brief-actions .btn { min-width: 180px; }
.brief-actions .brief-next, .brief-actions .brief-submit { margin-left: auto; }
.preview-image-wrap { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-950); }
.revisions-counter { margin-bottom: 20px; padding: 10px 13px; border-radius: 10px; background: var(--surface-tint); color: var(--brand-dark); font-size: .82rem; font-weight: 700; }
.visual-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.visual-project-head > div { max-width: 590px; }
.visual-project-head h1 { margin: 7px 0 9px; font-size: clamp(1.65rem,4vw,2.25rem); line-height: 1.15; }
.visual-project-head p { margin: 0; color: var(--ink-soft); }
.visual-project-head > .btn { flex: 0 0 auto; }
.validated-preview { position: relative; border-color: #b9adff; box-shadow: 0 16px 38px rgba(40,34,72,.12); }
.validated-preview a { display: block; }
.validated-preview-label { position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: rgba(19,17,38,.9); color: #fff; font-size: .72rem; font-weight: 800; backdrop-filter: blur(8px); }
.validated-preview-label span { color: var(--accent); }
.visual-history-section { scroll-margin-top: 100px; margin: 30px 0; padding-top: 30px; border-top: 1px solid var(--line); }
.visual-history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.visual-history-head h2 { margin: 5px 0 0; font-size: 1.35rem; }
.visual-history-head > span { padding: 5px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-size: .7rem; font-weight: 800; }
.visual-history-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.visual-history-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.visual-history-card.is-validated { border-color: #aa9cff; box-shadow: 0 10px 28px rgba(108,76,255,.1); }
.visual-history-image { min-height: 170px; display: grid; place-items: center; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); background: var(--navy-950); }
.visual-history-image img { width: 100%; height: auto; transition: transform .25s ease; }
.visual-history-image:hover img { transform: scale(1.015); }
.visual-history-image > span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 8px; background: rgba(19,17,38,.84); color: #fff; font-size: .65rem; font-weight: 800; opacity: 0; transform: translateY(3px); transition: opacity .2s,transform .2s; }
.visual-history-image:hover > span, .visual-history-image:focus-visible > span { opacity: 1; transform: none; }
.visual-history-content { padding: 15px 16px 17px; }
.visual-history-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.visual-history-title-row strong { font-family: var(--font-display); font-size: .86rem; }
.visual-history-title-row > span { padding: 4px 7px; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.visual-history-content > small { display: block; margin-top: 2px; color: var(--ink-faint); font-size: .66rem; }
.visual-history-content p { margin: 11px 0 0; color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
.visual-history-content p b { color: var(--ink); }
pre { overflow: auto; border: 1px solid var(--line); }
code, pre { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }

/* Back-office */
.admin-body { background: #f5f6fa; }
.admin-mobile-bar { display: none; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0,1fr); }
.admin-sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 28px 20px 20px; background: var(--navy-950); color: #fff; overflow-y: auto; }
.admin-sidebar .logo { color: #fff; }
.admin-sidebar-head { padding: 0 10px 28px; border-bottom: 1px solid rgba(255,255,255,.09); }
.admin-label { display: block; margin: 10px 0 0 45px; color: rgba(255,255,255,.4); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-menu { display: grid; gap: 5px; padding: 24px 0; }
.admin-menu-title { padding: 0 12px 8px; color: rgba(255,255,255,.34); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-settings-title { margin-top: 23px; }
.admin-menu > a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.65); font-size: .87rem; font-weight: 600; text-decoration: none; transition: color .2s,background .2s; }
.admin-menu > a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-menu > a.active { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(108,76,255,.24); }
.admin-menu-icon { width: 24px; text-align: center; font-size: 1rem; }
.admin-notification-badge { min-width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: auto; padding: 0 6px; border-radius: 99px; background: #f04438; color: #fff; font-size: .68rem; font-weight: 800; box-shadow: 0 0 0 3px rgba(240,68,56,.14); }
.admin-submenu { display: grid; gap: 1px; margin-left: 23px; padding-left: 17px; border-left: 1px solid rgba(255,255,255,.12); }
.admin-submenu a { padding: 7px 10px; border-radius: 7px; color: rgba(255,255,255,.45); font-size: .78rem; text-decoration: none; }
.admin-submenu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-sidebar-foot { display: grid; gap: 5px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); }
.admin-sidebar-foot a, .admin-sidebar-foot button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.52); font-size: .8rem; text-decoration: none; cursor: pointer; }
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-main { min-width: 0; padding: 52px clamp(28px,5vw,70px) 90px; }
.admin-main-inner { width: min(100%,1120px); margin: 0 auto; }
.admin-page-head { margin-bottom: 34px; }
.admin-page-head .section-kicker { margin-bottom: 8px; }
.admin-page-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem,3vw,2.7rem); letter-spacing: -.05em; }
.admin-page-head p { margin: 8px 0 0; color: var(--ink-soft); }
.admin-settings-form { display: grid; gap: 18px; }
.settings-section { scroll-margin-top: 25px; padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.settings-section-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.settings-section-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.settings-section h2 { margin: 0; font-family: var(--font-display); font-size: 1.13rem; letter-spacing: -.025em; }
.settings-section-head p { margin: 3px 0 0; color: var(--ink-soft); font-size: .82rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.settings-grid .field-full { grid-column: 1 / -1; }
.stripe-webhook-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; margin-top: 8px; padding: 16px 18px; border: 1px solid #d9d4ff; border-radius: 13px; background: #f8f7ff; }
.stripe-webhook-panel > div > span, .stripe-webhook-panel code, .stripe-webhook-panel small { display: block; }
.stripe-webhook-panel > div > span { margin-bottom: 4px; color: var(--ink-soft); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.stripe-webhook-panel code { color: var(--brand-dark); font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }
.stripe-webhook-panel > div > small { margin-top: 5px; color: var(--ink-soft); font-size: .7rem; }
.stripe-webhook-state { min-width: 175px; padding: 9px 12px; border-radius: 10px; background: #fff; color: var(--ink-soft); font-size: .72rem; font-weight: 800; text-align: center; box-shadow: var(--shadow-sm); }
.stripe-webhook-state small { margin-top: 2px; font-size: .64rem; font-weight: 600; opacity: .76; }
.stripe-webhook-state.is-completed { background: #ecfdf3; color: #067647; }
.stripe-webhook-state.is-failed { background: #fef3f2; color: #b42318; }
.stripe-webhook-state.is-processing { background: #fffaeb; color: #b54708; }
.admin-savebar { position: sticky; bottom: 18px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px 14px 20px; border: 1px solid rgba(108,76,255,.2); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 15px 45px rgba(16,24,40,.16); backdrop-filter: blur(14px); }
.admin-savebar span { color: var(--ink-soft); font-size: .82rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.admin-error-notification { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: -5px 0 24px; padding: 16px 18px; border: 1px solid #fecdca; border-radius: 14px; background: #fff8f7; color: #912018; text-decoration: none; box-shadow: var(--shadow-sm); }
.admin-error-notification > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #fee4e2; color: #d92d20; font-weight: 900; }
.admin-error-notification strong, .admin-error-notification small { display: block; }
.admin-error-notification small { margin-top: 1px; color: #b42318; }
.admin-error-notification b { font-size: 1.25rem; }
.admin-log-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-log-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.admin-log-summary > div { padding: 19px 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-log-summary span, .admin-log-summary strong { display: block; }
.admin-log-summary span { color: var(--ink-soft); font-size: .76rem; font-weight: 700; }
.admin-log-summary strong { margin-top: 4px; font-family: var(--font-display); font-size: 1.65rem; }
.admin-log-filters { display: flex; gap: 5px; margin-bottom: 18px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: max-content; }
.admin-log-filters a { padding: 7px 13px; border-radius: 8px; color: var(--ink-soft); font-size: .8rem; font-weight: 700; text-decoration: none; }
.admin-log-filters a.active { background: var(--brand-soft); color: var(--brand-dark); }
.admin-log-detail { margin-bottom: 20px; padding: clamp(22px,4vw,34px); border: 1px solid #c9c2ff; border-radius: 18px; background: #fff; box-shadow: 0 20px 55px rgba(40,34,72,.11); }
.admin-log-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.admin-log-detail h2 { margin: 5px 0 0; font-family: var(--font-display); font-size: 1.3rem; }
.admin-log-code { color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.admin-log-state { padding: 5px 10px; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.admin-log-state.is-open { background: #fee4e2; color: #b42318; }
.admin-log-state.is-resolved { background: #dcfae6; color: #067647; }
.admin-log-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 0 0 22px; }
.admin-log-meta > div { padding: 12px 14px; border-radius: 10px; background: var(--surface-soft); }
.admin-log-meta dt { color: var(--ink-faint); font-size: .67rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-log-meta dd { margin: 3px 0 0; color: var(--ink); font-size: .79rem; font-weight: 700; overflow-wrap: anywhere; }
.admin-log-meta a { color: var(--brand); }
.admin-log-technical { margin-bottom: 18px; }
.admin-log-technical > span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.admin-log-technical pre { max-height: 300px; overflow: auto; margin: 0; padding: 16px; border-radius: 11px; background: var(--navy-950); color: #e4e0ff; font: .78rem/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-log-actions { display: flex; justify-content: flex-end; }
.admin-log-list { display: grid; gap: 8px; }
.admin-log-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto auto; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s,transform .2s,box-shadow .2s; }
.admin-log-row:hover { transform: translateY(-1px); border-color: #c9c2ff; box-shadow: var(--shadow-sm); }
.admin-log-row.is-selected { border-color: var(--brand); }
.admin-log-row.is-unread { background: #faf9ff; }
.admin-log-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.admin-log-row.is-unread .admin-log-dot { background: #f04438; box-shadow: 0 0 0 4px rgba(240,68,56,.12); }
.admin-log-row-main strong, .admin-log-row-main small { display: block; }
.admin-log-row-main strong { font-size: .86rem; }
.admin-log-row-main small { margin-top: 2px; color: var(--ink-faint); font-size: .7rem; }
.admin-log-project, .admin-log-client { padding: 5px 8px; border-radius: 8px; background: var(--surface-soft); color: var(--ink-soft); font-size: .68rem; font-weight: 700; }
.admin-log-client { background: #fff4e8; color: #b54708; }
.admin-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.admin-delivery-retry { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; margin-bottom: 22px; padding: 17px 19px; border: 1px solid #fedf89; border-radius: 14px; background: #fffaeb; }
.admin-delivery-retry strong, .admin-delivery-retry span { display: block; }
.admin-delivery-retry strong { color: #7a2e0e; font-size: .9rem; }
.admin-delivery-retry span { margin-top: 2px; color: #93370d; font-size: .78rem; }
.admin-delivery-retry form { margin: 0; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 75px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero .lead { margin-inline: auto; }
  .hero-cta-row, .trust-row { justify-content: center; }
  .blueprint-frame { width: min(100%,560px); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .seo-panel { grid-template-columns: 1fr; gap: 25px; }
  .seo-copy { text-align: center; }
  .feature-list { width: fit-content; margin-inline: auto; text-align: left; }
  .admin-layout { grid-template-columns: 220px minmax(0,1fr); }
  .admin-sidebar { padding-inline: 14px; }
  .admin-main { padding-inline: 28px; }
  .brief-layout { grid-template-columns: 1fr; }
  .brief-section-nav { position: static; grid-template-columns: repeat(5,minmax(0,1fr)); max-height: none; overflow: visible; }
  .brief-nav-item { display: flex; justify-content: center; padding: 7px; }
  .brief-nav-item > span:last-child { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px,var(--container)); }
  .nav-inner { min-height: 68px; gap: 10px; }
  .logo { font-size: .9rem; }
  .logo-mark { width: 30px; height: 30px; }
  .nav-links { gap: 7px; }
  .nav-links > .btn, .nav-links > a.btn, .nav-links form .btn { min-height: 38px; padding: 8px 10px !important; font-size: .76rem; }
  .lang-switch { display: none; }
  .hero { padding: 64px 0 70px; }
  .hero h1 { font-size: clamp(2.4rem,12vw,3.5rem); }
  .hero-cta-row { align-items: stretch; flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
  .price-tag { text-align: center; }
  .blueprint-frame { transform: none; }
  .blueprint-frame::before { right: 8px; }
  .blueprint-frame .canvas { min-height: 300px; padding: 25px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 38px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-icon { margin-bottom: 24px; }
  .seo-section { padding-bottom: 72px; }
  .seo-panel { padding: 32px 22px; }
  .seo-visual { min-height: 230px; transform: scale(.85); }
  .cta-section { padding-bottom: 60px; }
  .cta-band { padding: 48px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .auth-card { padding: 32px 24px; }
  .brief-shell { padding: 38px 0 70px; }
  .brief-hero { display: grid; gap: 22px; }
  .brief-overall-progress { width: 100%; flex-basis: auto; }
  .brief-section-nav { grid-template-columns: repeat(5,1fr); gap: 4px; padding: 6px; border-radius: 14px; }
  .brief-nav-item > span:first-child { width: 30px; height: 30px; }
  .dialog-section { border-radius: 17px; }
  .dialog-section-head { padding: 24px 20px; }
  .dialog-section-head > span { width: 40px; height: 40px; }
  .dialog-thread { padding: 18px; }
  .dialog-prompt { max-width: 96%; }
  .dialog-answer { width: 96%; }
  .dialog-choice span { min-height: 40px; padding: 8px 10px; font-size: .76rem; }
  .social-network-option { grid-template-columns: 1fr; gap: 6px; }
  .brief-actions { align-items: stretch; flex-direction: column-reverse; }
  .brief-actions .btn { width: 100%; }
  .page-shell { padding: 42px 0 70px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-head .btn, .page-head form { width: 100%; }
  .order-row { align-items: flex-start; flex-direction: column; }
  .order-row > div:last-child, .order-row > a.btn { width: 100%; }
  .order-row > div:last-child .btn { flex: 1; }
  .wizard-card { padding: 26px 20px; }
  .visual-project-head { align-items: stretch; flex-direction: column; }
  .visual-project-head > .btn { width: 100%; }
  .visual-history-grid { grid-template-columns: 1fr; }
  .visual-history-head { align-items: flex-start; flex-direction: column; }
  .visual-history-image > span { opacity: 1; transform: none; }
  .delivery-shell { width: min(100% - 28px,860px); }
  .delivery-card { padding: 34px 18px; border-radius: 20px; }
  .delivery-loader-visual { width: 98px; height: 98px; margin-bottom: 18px; }
  .delivery-timeline { grid-template-columns: 1fr; gap: 7px; }
  .delivery-timeline li { min-height: 58px; }
  .delivery-timeline small { white-space: normal; }
  .delivery-downloads { align-items: stretch; flex-direction: column; }
  .delivery-downloads .btn { width: 100%; min-width: 0; }
  .delivery-installation { padding: 18px 13px; }
  .generation-loader { padding: 14px; }
  .generation-loader-card { padding: 34px 20px 28px; border-radius: 21px; }
  .generation-loader-visual { width: 92px; height: 92px; margin-bottom: 18px; }
  .generation-loader-steps { gap: 6px; }
  .generation-loader-steps i { width: 10px; }
  .generation-loader-steps span { font-size: .64rem; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .admin-mobile-bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
  .admin-mobile-bar .logo { font-size: .88rem; }
  .admin-mobile-bar a:last-child { color: var(--brand); font-size: .78rem; font-weight: 700; text-decoration: none; }
  .admin-layout { display: block; }
  .admin-sidebar { width: 100%; height: auto; position: relative; display: block; padding: 10px 12px; background: var(--navy-950); overflow-x: auto; }
  .admin-sidebar-head, .admin-sidebar-foot, .admin-menu-title { display: none; }
  .admin-menu { min-width: max-content; display: flex; padding: 0; }
  .admin-menu > a { min-height: 40px; padding: 8px 12px; }
  .admin-submenu { display: flex; gap: 2px; margin: 0 0 0 7px; padding: 0 0 0 8px; border-left-color: rgba(255,255,255,.18); }
  .admin-submenu a { display: flex; align-items: center; white-space: nowrap; }
  .admin-main { padding: 34px 14px 70px; }
  .admin-page-head { margin-bottom: 25px; }
  .settings-grid, .admin-stat-grid { grid-template-columns: 1fr; }
  .stripe-webhook-panel { grid-template-columns: 1fr; }
  .stripe-webhook-state { width: 100%; }
  .admin-log-head { align-items: stretch; flex-direction: column; }
  .admin-log-head form, .admin-log-head .btn { width: 100%; }
  .admin-log-summary { grid-template-columns: 1fr; }
  .admin-log-meta { grid-template-columns: 1fr; }
  .admin-log-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .admin-delivery-retry { grid-template-columns: 1fr; }
  .admin-delivery-retry form, .admin-delivery-retry .btn { width: 100%; }
  .admin-log-project, .admin-log-client { display: none; }
  .settings-section { padding: 23px 18px; }
  .admin-savebar { bottom: 10px; align-items: stretch; flex-direction: column; }
  .admin-savebar span { display: none; }
  .admin-savebar .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .site-preview-shot { animation: none; }
  .generation-loader-visual img,
  .generation-loader-orbit,
  .generation-loader-progress span,
  .delivery-loader-visual img,
  .delivery-loader-ring,
  .delivery-progress span { animation: none; }
}
