:root {
  /* Palette Urban Cars — nuit, rose néon, bleu néon */
  --night: #0a0618;
  --night-2: #140b2e;
  --night-3: #1e1240;
  --pink: #ff2e97;
  --pink-soft: #ff7ac2;
  --blue: #22d3ee;
  --blue-deep: #3b5bff;
  --violet: #8b3dff;
  --text: #f4f1ff;
  --text-dim: #b8b0d9;

  /* Back office (clair) */
  --ink: #120a2e;
  --ink-soft: #241a4a;
  --muted: #6b6788;
  --line: #e6e3f2;
  --bg: #f6f5fb;
  --card: #ffffff;

  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--pink), var(--violet)); color: #fff; box-shadow: 0 0 24px rgba(255, 46, 151, .45); }
.btn-primary:hover { box-shadow: 0 0 36px rgba(255, 46, 151, .7); }
.btn-ghost { background: rgba(10, 6, 24, .7); backdrop-filter: blur(4px); border-color: rgba(34, 211, 238, .6); color: var(--blue); box-shadow: inset 0 0 12px rgba(34, 211, 238, .15); }
.btn-ghost:hover { box-shadow: 0 0 20px rgba(34, 211, 238, .45), inset 0 0 12px rgba(34, 211, 238, .25); }
.w-full { width: 100%; }

/* =========================================================
   Site vitrine — ambiance néon années 80
   ========================================================= */
.site { background: var(--night); color: var(--text); }

.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: #fff; text-shadow: 0 0 10px var(--pink); }

/* Logo : image si fournie, sinon logotype néon */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 52px; width: auto; filter: drop-shadow(0 0 8px rgba(255, 46, 151, .6)); }
.logo-text { font-family: var(--display); font-size: 34px; letter-spacing: .06em; line-height: 1; color: #fff; text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink); }
.logo-text span { color: var(--blue); text-shadow: 0 0 6px var(--blue), 0 0 18px var(--blue); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 200px;
  background: linear-gradient(180deg, #07041a 0%, #1a0b3d 45%, #4a1259 72%, #8f1d6b 100%); }
.hero::before { /* étoiles */ content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #fff, transparent),
    radial-gradient(1px 1px at 90% 30%, #fff, transparent), radial-gradient(1px 1px at 6% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 35%, #fff, transparent), radial-gradient(1px 1px at 68% 5%, #fff, transparent); }
.sun { position: absolute; z-index: 0; left: 50%; bottom: 40px; width: min(460px, 75vw); opacity: .92; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffd36e 0%, #ff8a3d 30%, var(--pink) 62%, var(--violet) 100%);
  box-shadow: 0 0 80px rgba(255, 46, 151, .55), 0 0 160px rgba(255, 46, 151, .3);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 55% no-repeat, linear-gradient(#000, #000) top / 100% 45% no-repeat;
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 55% no-repeat, linear-gradient(#000, #000) top / 100% 45% no-repeat; }
.grid-floor { position: absolute; z-index: 1; left: -50%; right: -50%; bottom: -10px; height: 240px; transform: perspective(320px) rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(34, 211, 238, .85) 2px, transparent 2px), linear-gradient(90deg, rgba(34, 211, 238, .85) 2px, transparent 2px);
  background-size: 60px 40px; box-shadow: 0 -30px 60px rgba(34, 211, 238, .25);
  animation: drive 1.2s linear infinite; }
.grid-floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #8f1d6b 0%, transparent 60%); }
@keyframes drive { to { background-position: 0 40px; } }
@media (prefers-reduced-motion: reduce) { .grid-floor { animation: none; } }

.hero .container { position: relative; z-index: 2; text-align: center; }
.kicker { display: inline-block; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; font-size: 13px; color: var(--blue); text-shadow: 0 0 10px rgba(34, 211, 238, .8); margin-bottom: 18px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 10vw, 128px); line-height: .92; letter-spacing: .02em; margin: 0 0 22px;
  background: linear-gradient(180deg, #fff 0%, #ffd1ec 45%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 46, 151, .55)); }
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--text); text-shadow: 0 2px 14px rgba(7, 4, 26, .95), 0 0 2px rgba(7, 4, 26, .9); max-width: 620px; margin: 0 auto 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); letter-spacing: .03em; line-height: 1; margin: 0 0 12px; }
.section-title .pink { color: var(--pink); text-shadow: 0 0 16px rgba(255, 46, 151, .7); }
.section-title .blue { color: var(--blue); text-shadow: 0 0 16px rgba(34, 211, 238, .7); }
.section-lead { color: var(--text-dim); max-width: 600px; margin: 0 0 48px; font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

.neon-card { position: relative; background: linear-gradient(180deg, var(--night-2), var(--night)); border-radius: var(--radius); padding: 32px 28px; border: 1px solid rgba(255, 46, 151, .35); box-shadow: 0 0 0 1px rgba(255, 46, 151, .08), 0 10px 40px rgba(0, 0, 0, .4); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.neon-card:nth-child(2) { border-color: rgba(34, 211, 238, .35); }
.neon-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 0 28px rgba(255, 46, 151, .35); }
.neon-card:nth-child(2):hover { border-color: var(--blue); box-shadow: 0 0 28px rgba(34, 211, 238, .35); }
.neon-card .num { font-family: var(--display); font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--pink); margin-bottom: 14px; }
.neon-card:nth-child(2) .num { -webkit-text-stroke-color: var(--blue); }
.neon-card h3 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .04em; margin: 0 0 10px; }
.neon-card p { margin: 0; color: var(--text-dim); }

.strip { background: linear-gradient(90deg, var(--pink), var(--violet) 50%, var(--blue-deep)); }
.strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding-top: 34px; padding-bottom: 34px; text-align: center; }
.strip strong { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .04em; line-height: 1.1; }
.strip span { font-size: 14px; opacity: .9; }

.section-alt { background: radial-gradient(ellipse at top, var(--night-3), var(--night) 70%); }

.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.contact .neon-card h3 { margin-bottom: 18px; }
.contact dl { margin: 0; display: grid; gap: 16px; }
.contact dt { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.contact dd { margin: 0; font-size: 17px; }
.contact a { color: #fff; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.cta-card { display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center; border-color: rgba(34, 211, 238, .35); }
.cta-card p { color: var(--text-dim); margin: 0; }

.showroom { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; border-color: rgba(34, 211, 238, .4); padding: 40px; }
.showroom > div { flex: 1 1 360px; }
.showroom p { color: var(--text-dim); margin: 0; font-size: 17px; max-width: 560px; }

.site-footer { background: #05030f; border-top: 1px solid rgba(255, 46, 151, .25); padding: 36px 0; color: var(--text-dim); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
  .contact { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding-bottom: 170px; }
  .sun { bottom: 30px; }
}

/* =========================================================
   Back office
   ========================================================= */
.backoffice { background: var(--bg); color: var(--ink); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, #07041a, #1a0b3d 60%, #4a1259); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { display: flex; justify-content: center; margin-bottom: 26px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type=email], .field input[type=password] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 20px; }
.error { color: #c0124f; font-size: 14px; margin-top: 6px; }
.flash { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }

.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.sidebar .logo-text { font-size: 28px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a, .sidebar nav span { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #c9c3e6; font-size: 15px; }
.sidebar nav a.active, .sidebar nav a:hover { background: var(--ink-soft); color: #fff; box-shadow: inset 3px 0 0 var(--pink); }
.sidebar nav span { opacity: .45; cursor: default; }
.sidebar .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sidebar .bottom a { color: #c9c3e6; font-size: 14px; text-decoration: none; padding: 0 12px; }
.sidebar .bottom button { width: 100%; background: transparent; color: #c9c3e6; border: 1px solid #3a3160; border-radius: 10px; }
.main { padding: 32px; }
.main h1 { margin: 0 0 4px; font-size: 26px; }
.main .sub { color: var(--muted); margin: 0 0 28px; }
.stat .value { font-size: 30px; font-weight: 800; margin-top: 6px; }
.stat .label { color: var(--muted); font-size: 14px; }


/* ---------- Back office : composants CRM ---------- */
.backoffice .field input:not([type=checkbox]):not([type=file]),
.backoffice .field select,
.backoffice .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.backoffice .field textarea { resize: vertical; line-height: 1.5; }
.backoffice .field input:disabled { background: var(--bg); color: var(--muted); }
.backoffice .field input:focus, .backoffice .field select:focus, .backoffice .field textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.backoffice h2 { font-size: 17px; margin: 0 0 18px; }
.backoffice .card { margin-bottom: 20px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head .sub a { color: var(--violet); }
.back { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 6px; }
.btn-light { background: var(--bg); border-color: var(--line); color: var(--ink); }
.btn-danger-link { background: none; border: none; color: #c0124f; padding: 8px 0; font-weight: 600; }
.flash-error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 8px; }
.stats-grid .card { padding: 20px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hint.warn { color: #b45309; }

.tabs { display: flex; gap: 6px; margin: 8px 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--pink); }

.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #faf9fe; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; white-space: nowrap; }
.table .thumb { width: 76px; }
.table .thumb img, .no-photo { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--line); }
.strong { font-weight: 700; text-decoration: none; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pos { color: #047857; font-weight: 700; }
.neg { color: #c0124f; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 40px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-en_stock { background: #e0f2fe; color: #075985; }
.badge-reserve { background: #fef3c7; color: #92400e; }
.badge-vendu { background: #dcfce7; color: #166534; }
.badge-warn { background: #fff7ed; color: #c2410c; }
.badge-violet { background: #f3e8ff; color: #6b21a8; margin-top: 4px; }

.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; margin-top: 16px; }
.form-side { position: sticky; top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: 1 / -1; }
.form-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 16px 0; }
.private { border-color: #f5c2dd; background: #fffafd; }
.lock { font-size: 12px; font-weight: 600; color: #be185d; background: #fce7f3; padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.photo-grid figure { position: relative; margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(18, 10, 46, .75); color: #fff; font-size: 16px; cursor: pointer; line-height: 1; }

.margin-card dl { margin: 0 0 14px; display: grid; gap: 8px; }
.margin-card dl div { display: flex; justify-content: space-between; font-size: 14px; }
.margin-card dt { color: var(--muted); }
.margin-card dd { margin: 0; font-weight: 600; }
.margin-total { border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; }
.margin-total span { font-size: 26px; }
.sell-card { border-color: #bbf7d0; }

@media (max-width: 1000px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-side { position: static; }
}
@media (max-width: 640px) {
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: auto; }
  .page-head .btn { width: 100%; }
}

/* ---------- Back office : mobile / webapp iOS ---------- */
.mobile-top, .tabbar, .vehicle-cards { display: none; }
.list-menu { padding: 0; }
.list-menu a { display: flex; justify-content: space-between; padding: 16px 20px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.list-menu a:last-child { border-bottom: none; }
.list-menu span { color: var(--muted); }
.install-hint { margin-top: 20px; background: #f6f3ff; border-color: #e4dcff; }
.install-hint p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  html { -webkit-text-size-adjust: 100%; }
  .backoffice { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
  .admin { display: block; min-height: 100vh; }
  .sidebar { display: none; }

  .mobile-top { display: flex; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 20;
    background: var(--ink); padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; }
  .mobile-top .logo-text { font-size: 24px; }

  .main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .main h1 { font-size: 24px; }

  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
  .tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--pink); }
  .tabbar .tab-add svg { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; border-radius: 10px; padding: 3px; stroke-width: 2.4; }

  /* iOS zoome sur les champs < 16px : on l'évite */
  .backoffice input, .backoffice select, .backoffice textarea { font-size: 16px !important; }
  .backoffice .btn { min-height: 46px; }

  .page-head { margin-bottom: 4px; }
  .page-head > .btn { display: none; } /* remplacé par l'onglet « Ajouter » */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-grid .card { padding: 14px; margin-bottom: 0; }
  .stat .value { font-size: 22px; }
  .stat .label { font-size: 12px; }

  .tabs { overflow-x: auto; }
  .table-wrap { display: none; }
  .vehicle-cards { display: flex; flex-direction: column; gap: 10px; }
  .vehicle-card { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 10px; text-decoration: none; color: var(--ink); }
  .vehicle-card:active { background: #faf9fe; }
  .vehicle-card img, .vehicle-card .no-photo { width: 92px; height: 70px; object-fit: cover; border-radius: 10px; }
  .vehicle-card .badge { align-self: start; font-size: 11px; }
  .vc-title { font-weight: 700; }
  .vc-prices { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 4px; font-size: 15px; }

  .backoffice .card { padding: 18px; border-radius: 14px; }
  .form-layout { margin-top: 10px; gap: 0; }
  .form-actions { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .form-actions .btn { width: 100%; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  .auth-wrap { padding-top: env(safe-area-inset-top); }
}

/* Lancée depuis l'écran d'accueil (mode application) */
@media (display-mode: standalone) {
  .backoffice { user-select: none; -webkit-user-select: none; }
  .backoffice input, .backoffice textarea, .backoffice .vc-title, .backoffice p { user-select: text; -webkit-user-select: text; }
}

/* ---------- Recherche plaque & acheteur ---------- */
.plate-row { display: flex; gap: 8px; }
.plate-row input { flex: 1; }
.plate-input { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.btn-ghost-dark { background: var(--ink); color: #fff; border-radius: 10px; white-space: nowrap; }
.btn-ghost-dark:disabled { opacity: .6; }
.hint.ok { color: #047857; }
.autofilled { background: #f0fdf4 !important; border-color: #86efac !important; }
.plate-lookup { margin-bottom: 4px; }

.segmented { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; margin: 4px 0 14px; }
.segmented label { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.segmented input { display: none; }
.segmented label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.buyer-fields[data-type="particulier"] .only-company,
.buyer-fields[data-type="societe"] .only-person { display: none; }
.buyer-card summary, .summary-link { cursor: pointer; list-style: none; }
.buyer-card summary::-webkit-details-marker, .summary-link::-webkit-details-marker { display: none; }
.buyer-card summary h2 { margin: 0; }
.buyer-card[open] summary h2 { margin-bottom: 14px; }
.summary-link { color: var(--violet); font-weight: 600; font-size: 14px; padding: 6px 0; }
.form-side .buyer-fields .form-grid { grid-template-columns: 1fr 1fr; }
.form-side .form-grid .span-2 { grid-column: 1 / -1; }
.form-side > form { margin-bottom: 12px; }
