/* AutoDealSwiss.ch – feuille de style */
:root {
  --ink: #0E1A2B; --ink-2: #2A3646; --muted: #4A5568; --line: #E2E6EC; --line-2: #CBD2DC;
  --bg: #F5F6F8; --card: #FFFFFF; --red: #D41920; --red-dark: #9E0C24; --red-soft: #FDF3F4;
  --blue: #2F5DA8; --blue-soft: #E8EEF8; --green: #1E7A46; --green-dark: #155C34; --green-soft: #EAF5EE;
  --orange: #A8461A; --orange-soft: #FFF1E6; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); } h2 { font-size: 24px; } h3 { font-size: 18px; }
p { margin: 0; }
a { color: var(--red); } a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
input, select, textarea, button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; } .stack-s { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .row-top { align-items: flex-start; }
.between { justify-content: space-between; } .grow { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.layout > .main { flex: 999 1 600px; min-width: 0; } .layout > .side { flex: 1 1 320px; max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: 14px; } .xs { font-size: 13px; } .bold { font-weight: 600; }
.mt { margin-top: 16px; } .mt-l { margin-top: 32px; } .section { padding: 36px 0; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; flex: 1 1 380px; }
.nav a, .header-link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 0; }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.lang-switch { display: flex; gap: 2px; background: #EEF1F5; padding: 3px; border-radius: 10px; }
.lang-switch a { min-width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-size: 13px; color: #3A4657; text-decoration: none; }
.lang-switch a.on { background: var(--ink); color: #fff; }
.badge-count { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

/* Boutons et formulaires */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; background: var(--ink); color: #fff; }
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn-red { background: var(--red); } .btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); } .btn-light:hover { color: var(--ink); background: #F7F8FA; }
.btn-blue { background: var(--blue-soft); color: #23457E; border-color: var(--blue); } .btn-blue:hover { color: #23457E; }
.btn-s { min-height: 36px; padding: 0 12px; font-size: 13px; } .btn-l { min-height: 54px; font-size: 16px; padding: 0 22px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--red); font-weight: 600; cursor: pointer; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #3A4657; }
.input, select.input, textarea.input { height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; width: 100%; font-size: 15px; font-weight: 400; color: var(--ink); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 32px; font-weight: 400; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; }
.fields { display: flex; flex-wrap: wrap; gap: 12px; } .fields > * { flex: 1 1 180px; } .fields > .w-s { flex-basis: 120px; } .fields > .full { flex-basis: 100%; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-size: 13px; font-weight: 600; color: #3A4657; margin-bottom: 6px; padding: 0; }

/* Cartes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-tight { padding: 16px; } .card-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-dark .muted { color: #C9D3E0; }
.car-card { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.car-card:hover { color: var(--ink); border-color: var(--line-2); box-shadow: 0 4px 16px rgba(14, 26, 43, .06); }
.car-card .ph { position: relative; aspect-ratio: 4 / 3; background: #DDE3EA; }
.car-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.car-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 21px; }
.ph-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tag-top { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; border-radius: 6px; letter-spacing: .04em; }
.v-good { background: var(--green); color: #fff; } .v-fair { background: var(--blue); color: #fff; } .v-high { background: var(--orange); color: #fff; }
.tag-soft { background: #EEF1F5; color: var(--ink-2); } .tag-ok { background: var(--green-soft); color: var(--green-dark); }
.tag-warn { background: var(--orange-soft); color: #8A3A12; } .tag-bad { background: var(--red-soft); color: var(--red-dark); }
.chip { background: #EEF1F5; border-radius: 999px; padding: 7px 12px; font-size: 14px; }

/* Alertes */
.flashes { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.flash { padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.flash-success { background: var(--green-soft); color: var(--green-dark); } .flash-error { background: var(--red-soft); color: var(--red-dark); }
.flash-info { background: var(--blue-soft); color: #23457E; }
.note { background: var(--blue-soft); color: #23457E; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.promo-band { background: var(--red); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* Accueil */
.hero { background: var(--ink); color: #fff; }
.hero .wrap { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); max-width: 860px; }
.hero p.lead { font-size: 18px; color: #C9D3E0; max-width: 720px; }
/* Onglets de catégorie de l'accueil : posés sur le cadre de recherche blanc */
.hero .cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -22px; border-bottom: 0; overflow: visible; }
.hero .cat-tabs a { height: 44px; padding: 0 16px; border-radius: 10px 10px 0 0; font-weight: 600; font-size: 14px; display: flex; align-items: center; text-decoration: none; background: #1F2E44; color: #DCE3EC; border-bottom: 0; }
.hero .cat-tabs a.on { background: #fff; color: var(--ink); }
.search-box { background: #fff; color: var(--ink); border-radius: 0 16px 16px 16px; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.search-box > * { flex: 1 1 160px; }
.nl-box { background: var(--ink); border-radius: 16px; padding: 18px; color: #fff; }
.nl-box .input { border: 0; height: 52px; font-size: 16px; }
.feature { text-decoration: none; color: var(--ink); }
.feature:hover { color: var(--ink); border-color: var(--line-2); }

/* Recherche */
.result { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result.is-top { border: 2px solid var(--red); }
.result .ph { flex: 1 1 240px; position: relative; min-height: 170px; background: #DDE3EA; }
.result .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result .info { flex: 2 1 320px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Fiche annonce */
.gallery-main { aspect-ratio: 4 / 3; max-height: 520px; width: 100%; background: #DDE3EA; border-radius: 16px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.thumbs a { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #DDE3EA; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
dl.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 20px; margin: 0; }
dl.specs dt { font-size: 13px; color: var(--muted); } dl.specs dd { margin: 0; font-weight: 600; }
.meter { display: flex; height: 12px; border-radius: 999px; overflow: hidden; } .meter > div { flex: 1; }
.list-rows > * { padding: 10px 0; border-top: 1px solid #EEF1F5; }
.share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* Messagerie */
.chat { background: #EEF1F5; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--red); color: #fff; align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.bubble.special { background: var(--ink); color: #fff; font-weight: 600; }
.bubble.auto { background: var(--blue-soft); color: #23457E; }
.bubble time { display: block; font-size: 11px; opacity: .75; text-align: right; margin-top: 4px; }
.conv-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #EEF1F5; text-decoration: none; color: var(--ink); background: #fff; }
.conv-item:hover { background: #F7F8FA; color: var(--ink); }
.thumb-s { width: 64px; height: 48px; border-radius: 8px; background: #DDE3EA; object-fit: cover; flex: none; }

/* Tableaux */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 11px 14px; text-align: left; border-top: 1px solid #EEF1F5; vertical-align: top; }
table.t thead th { background: #F5F6F8; border-top: 0; font-weight: 600; white-space: nowrap; }
.kpi .v { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; }
.bar { height: 10px; background: #EEF1F5; border-radius: 999px; overflow: hidden; } .bar > div { height: 100%; background: var(--blue); border-radius: 999px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.kanban .col { background: #F5F6F8; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }

/* Administration */
.admin-header { background: var(--ink); color: #fff; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.admin-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.admin-nav a.on { background: var(--ink); color: #fff; }

/* Pied de page */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; padding: 36px 0; }
.site-footer .cols > div { flex: 1 1 170px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

@media (max-width: 640px) {
  .logo img { height: 38px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .hero .wrap { padding-top: 32px; padding-bottom: 40px; }
  .bubble { max-width: 90%; }
  .card { padding: 16px; }
}

/* Groupes d'équipements repliables */
.eq-group { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 10px 14px; }
.eq-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.eq-group > summary::-webkit-details-marker { display: none; }
.eq-group > summary::before { content: "▸"; transition: transform .15s; }
.eq-group[open] > summary::before { transform: rotate(90deg); }
.eq-group[open] > .row { margin-top: 10px; }
.eq-filters { max-height: 340px; overflow: auto; }

/* Panneau d'estimation */
.val-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.val-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.val-tile strong { font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.val-tile.val-main { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.val-tile .ok { color: var(--green-dark); } .val-tile .warn { color: #8A3A12; }
.val-facts { padding-left: 18px; margin: 0; }
@media (max-width: 560px) { .val-tiles { grid-template-columns: 1fr; } }
.tag-reserved { background: var(--orange-soft); color: #8A3A12; }
.ph .ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; }
.photo-item { position: relative; }
.photo-item .main-badge { display: none; position: absolute; top: 6px; left: 6px; }
.photo-item.is-main .main-badge { display: inline-flex; }
.photo-item.is-main img { outline: 3px solid var(--red); }
.quick-list { margin: 0; padding-left: 18px; }
.quick-box summary { cursor: pointer; }
.offer-hint { min-height: 1.2em; font-weight: 600; }

/* Recherche façon application : onglets, sections, interrupteurs, compteur */
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; margin-bottom: 16px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { padding: 10px 14px; white-space: nowrap; color: var(--muted, #5b6472); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.cat-tabs a:hover { color: var(--ink); }
.cat-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.chip-x { text-decoration: none; color: var(--ink); background: #EEF2F7; }
.fsec { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.fsec > summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fsec > summary::-webkit-details-marker { display: none; }
.fsec > summary::after { content: "›"; transform: rotate(90deg); transition: transform .15s; font-size: 20px; }
.fsec:not([open]) > summary::after { transform: none; }
.fsec[open] > *:not(summary) { margin-top: 10px; }
.flabel { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
.frow { margin-bottom: 6px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: #C9D0DA; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch:checked { background: var(--green, #1E9E5A); }
.switch:checked::after { transform: translateX(18px); }
.filters-foot { position: sticky; bottom: 0; background: inherit; padding: 10px 0 4px; }
.only-mobile { display: none; }
@media (max-width: 860px) {
  .only-mobile { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: flex; position: fixed; inset: 0; z-index: 60; overflow-y: auto; border-radius: 0; margin: 0; max-width: none; padding-bottom: 0; }
  body.no-scroll { overflow: hidden; }
}

/* Fiche véhicule façon application */
.gallery-main { position: relative; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 28px; line-height: 1; cursor: pointer; }
.gal-prev { left: 10px; } .gal-next { right: 10px; }
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.action-row form { display: contents; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; background: none; border: 0; color: var(--blue, #2563EB); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.action-btn span { font-size: 22px; }
.key-data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.kd { display: flex; gap: 10px; align-items: flex-start; }
.kd-i { width: 24px; text-align: center; }
.link-more { cursor: pointer; color: var(--blue, #2563EB); font-weight: 600; list-style: none; }
.link-more::-webkit-details-marker { display: none; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.check-list li::before { content: "✓"; margin-right: 10px; font-weight: 700; }
.map-box { min-height: 120px; border-radius: 12px; background: #EEF2F7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.map-box iframe { width: 100%; height: 260px; border: 0; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }
.only-mobile-block, .only-mobile-flex { display: none; }
.contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.contact-bar .btn { flex: 1; justify-content: center; }
@media (max-width: 860px) {
  .only-mobile-block { display: block; }
  .only-mobile-flex { display: flex; }
  body:has(.contact-bar) main, body:has(.contact-bar) footer { padding-bottom: 80px; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-signup { border: 2px solid var(--red); }
.pw-meter { height: 6px; background: #E5E7EB; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.dropzone { display: flex; align-items: center; justify-content: center; min-height: 140px; border: 2px dashed #9AA6B8; border-radius: 14px; background: #F7F9FC; cursor: pointer; text-align: center; padding: 16px; position: relative; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.drag { border-color: var(--red); background: #FFF3F3; }

/* Essais routiers et horaires */
.hours-box { background: var(--soft, #f4f5f7); border-radius: 8px; padding: 8px 10px; margin: 0; white-space: pre-line; font-family: inherit; }
.trial-card { border-left: 4px solid var(--green, #1a7f37); }
.trial-pick .field { flex: 1 1 140px; }
.hours-grid { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 6px 10px; align-items: center; }
.hours-grid .input { height: 36px; }
.hours-grid .range { display: flex; gap: 4px; align-items: center; }
@media (max-width: 640px) { .hours-grid { grid-template-columns: 1fr 1fr; } .hours-grid .day { grid-column: 1 / -1; font-weight: 600; } }
.agenda-day { font-weight: 700; margin-top: 12px; }
.stars { color: #f5a623; letter-spacing: 1px; }
.google-badge { text-decoration: none; }

/* Statistiques vendeur */
.chart-wrap svg.bars { width: 100%; height: 160px; display: block; }
.bars .vbar { fill: #2a6fdb; }
.bars .bar-hit:hover .vbar { fill: #1d4fa0; }
.bars .axis { stroke: var(--line, #ddd); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stat-line { gap: 14px; }
.tips { margin: 0; padding-left: 18px; }
.tips li { margin: 2px 0; }
.tips .tip-bad::marker { content: "✕  "; color: var(--red); }
.tips .tip-warn::marker { content: "!  "; font-weight: 700; }
.tips .tip-info::marker { content: "→ "; }

/* Application installable */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line, #ddd); border-radius: 14px;
  padding: 10px 12px; box-shadow: 0 10px 30px rgba(14, 26, 43, .18); }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; border: 1px solid var(--line, #eee); }
.install-bar .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (display-mode: standalone) { .site-header { padding-top: env(safe-area-inset-top); } }

/* Mobile : en-tête compact non collant + barre d'onglets façon application */
.tabbar { display: none; }
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .wrap { gap: 4px 12px; }
  .site-header .header-link, .site-header > .wrap > .btn-red { display: none; }
  .lang-switch a { min-width: 34px; height: 30px; }
  .logo img { height: 34px; }
  .nav { gap: 0 16px; }
  .nav a { padding: 8px 0; font-size: 14px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 11px; font-weight: 600;
    color: #5A6576; text-decoration: none; position: relative; }
  .tabbar a .ic { font-size: 20px; line-height: 1; }
  .tabbar a[aria-current="page"] { color: var(--red); }
  .tabbar .badge-count { position: absolute; top: 2px; left: 54%; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .install-bar { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
.bubble .msg-text { white-space: pre-line; }
fieldset { min-width: 0; }
@media (max-width: 640px) {
  .hours-grid { grid-template-columns: 1fr; }
  .hours-grid .range .input { flex: 1 1 0; min-width: 0; }
}
.ev-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #f6fbf7; }
.ev-box[hidden] { display: none; }
.soh-bar { height: 12px; border-radius: 6px; background: #e8ecf1; overflow: hidden; margin-bottom: 6px; }
.soh-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f0a020, #1a7f37 60%); border-radius: 6px; }
.row-ok td:first-child { border-left: 3px solid var(--green, #1a7f37); }

/* Pages par modèle et ville */
.lead { font-size: 17px; line-height: 1.55; max-width: 860px; }
.seo-kpi { gap: 10px; } .seo-kpi .kpi { flex: 1 1 140px; padding: 12px 14px; }
.seo-kpi .v { font-size: 22px; font-weight: 800; }
.link-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.link-cloud a { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; background: #fff; }
.link-cloud a:hover { border-color: var(--red); }

/* Anti-arnaque */
.scam-warn { margin-top: 8px; background: #fff4e5; color: #6b3b00; border: 1px solid #f3c27a; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.scam-warn p { margin: 4px 0; }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; background: #e7f5ec; color: #145c2c; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }

/* Coût mensuel, historique du prix */
.cost-total .v { font-size: 30px; font-weight: 800; }
.cost-lines { display: grid; gap: 6px; margin: 0; }
.cost-lines > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.cost-lines dt { font-weight: 600; } .cost-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.cost-sim input[type=range] { width: 100%; accent-color: var(--red); }
.cost-sim output { font-weight: 700; }
.price-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.price-hist li { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.price-hist li span:first-child { color: var(--muted, #5a6576); font-size: 13px; min-width: 90px; }
.compare-t td.best { background: #e7f5ec; font-weight: 700; }
.chip-s { display: inline-block; background: #f1f3f6; border-radius: 6px; padding: 1px 6px; margin: 2px 2px 0 0; }
.compare-bar { position: sticky; top: 8px; z-index: 5; align-self: flex-end; background: var(--ink, #0e1a2b); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; text-decoration: none; }

/* Ma voiture */
.spark { width: 100%; height: 48px; }
.due { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.due li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; border-left: 3px solid var(--line); padding-left: 8px; }
.due li.soon { border-left-color: var(--red); }
.mini-chart svg.bars { width: 100%; height: 90px; display: block; }
.mini-chart .vbar { fill: #2a6fdb; }
.toprow { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 6px; font-size: 14px; }
.toprow .topbar { position: absolute; left: 0; top: 0; bottom: 0; background: #e8f0fd; border-radius: 6px; z-index: -1; }
.toprow { z-index: 0; }
.nowrap-t td { white-space: nowrap; }
@media (max-width: 640px) {
  .map-t thead { display: none; }
  .map-t, .map-t tbody, .map-t tr, .map-t td { display: block; width: 100%; }
  .map-t tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .map-t td { border: 0; padding: 2px 4px; }
  .map-t select { width: 100%; }
}
.compare-t tbody th, .compare-t thead th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 110px; }
.ref-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #5a6576; background: #f1f3f6; border-radius: 6px; padding: 2px 8px; font-variant-numeric: tabular-nums; }

/* Vendre en quelques minutes */
.steps-bar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; counter-reset: st; }
.steps-bar li { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 4px; border-radius: 8px; background: #f1f3f6; color: #5a6576; counter-increment: st; }
.steps-bar li::before { content: counter(st) ". "; }
.steps-bar li.on { background: var(--ink, #0e1a2b); color: #fff; }
.vin-box { border: 1px dashed var(--line); background: #fbfcfd; }
.est-live { background: #f1f7ff; border: 1px solid #cfe0fb; border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: 14px; }
.est-live[hidden] { display: none; }
.findings { display: grid; gap: 8px; margin: 0; }
.findings dt { font-weight: 700; } .findings dd { margin: 0; }
.checklist { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.garage-sec { border-top: 1px solid var(--line); padding-top: 8px; }
.garage-sec summary { cursor: pointer; padding: 4px 0; }
.doc-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }

/* Tableau de bord personnel */
.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.dash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dash-row:last-child { border-bottom: 0; }
.ellipsis { display: block; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.mini-card { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.mini-card img, .mini-card .ph-empty { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #eef1f4; display: block; }
.red { color: var(--red); }

/* Affichette : choix des équipements */
.sign-eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; }
.sign-eq-grid .check { font-size: 14px; }
.sign-eq-grid input:disabled + * , .sign-eq-grid label:has(input:disabled) { opacity: .5; }
.sign-count { font-weight: 700; color: var(--ink); margin-left: 6px; }
.sign-options .check span .small { font-weight: 400; }

/* Onglet « Bug / idée » */
.feedback-tab { position: fixed; right: 0; top: auto; bottom: 110px; z-index: 40; display: flex; align-items: center; gap: 6px; background: var(--ink, #0F1B2D); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 10px 0 0 10px; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  writing-mode: vertical-rl; transform: rotate(180deg); }
.feedback-tab:hover { background: var(--red, #D7191F); color: #fff; }
.feedback-tab .feedback-tab-text { letter-spacing: .2px; }
@media (max-width: 760px) {
  .feedback-tab { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); right: 10px; writing-mode: horizontal-tb; transform: none; border-radius: 999px; padding: 9px 13px; font-size: 12.5px; }
}
@media print { .feedback-tab { display: none; } }
.feedback-kinds { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.feedback-form textarea { width: 100%; }

/* En-tête : tient sur une ligne dès 1000 px */
.site-header .wrap { gap: 8px 18px; }
.nav { gap: 0 18px; flex: 1 1 320px; }
.site-header .btn-red { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) {
  .nav a, .header-link { font-size: 14px; }
  .site-header .btn-red { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .site-header .wrap { gap: 8px 14px; }
  .nav { gap: 0 14px; }
}

/* Icônes SVG (remplacent les pictogrammes) */
.svg-ic { display: block; flex: none; }
.tabbar a .ic { display: flex; height: 24px; align-items: center; justify-content: center; }
.action-btn span { display: flex; align-items: center; justify-content: center; height: 24px; }
.btn .svg-ic { margin-right: 2px; }
.dot-alert { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; }

/* Menu du compte : onglets sobres en deux niveaux */
.acc-nav { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acc-nav-main, .acc-nav-more { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.acc-nav-main::-webkit-scrollbar, .acc-nav-more::-webkit-scrollbar { display: none; }
.acc-nav a { white-space: nowrap; text-decoration: none; color: var(--muted, #5b6472); font-weight: 600; border-bottom: 3px solid transparent; }
.acc-nav a:hover { color: var(--ink); }
.acc-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.acc-nav-main a { padding: 10px 14px; font-size: 15px; margin-bottom: -1px; }
.acc-nav-more { padding: 2px 0 8px; }
.acc-nav-more a { padding: 6px 10px; font-size: 13.5px; font-weight: 500; border-bottom-width: 2px; }
.acc-nav-more form { margin-left: auto; padding-left: 12px; flex: none; }
.acc-nav-more .link-btn { padding: 6px 0; font-size: 13.5px; white-space: nowrap; }
.acc-nav .badge-count { margin-left: 6px; }

/* Chiffres clés de la fiche : libellé + valeur */
.kd { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; border-left: 3px solid var(--line); padding-left: 12px; }
.kd-k { font-size: 12.5px; color: var(--muted, #5b6472); }
.kd-v { font-weight: 700; font-size: 16px; color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big { font-size: 34px; font-weight: 700; line-height: 1.2; }
.shots { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #FAFBFC; }
.shots summary { cursor: pointer; }
.shots-list { margin: 10px 0 6px 20px; padding: 0; display: grid; gap: 4px; }
.photo-assist { border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px; }
.assist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.assist-item { display: grid; gap: 6px; align-content: start; }
.assist-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.assist-warn { color: #9A3412; font-weight: 600; } .assist-ok { color: #166534; }
.assist-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,42,.72); display: flex; align-items: center; justify-content: center; padding: 12px; }
.assist-dialog { background: #fff; border-radius: 14px; padding: 16px; max-width: 940px; width: 100%; max-height: 96vh; overflow: auto; display: grid; gap: 10px; }
.assist-stage canvas { width: 100%; height: auto; border-radius: 8px; cursor: crosshair; display: block; }
.promo-card { display: grid; gap: 4px; text-decoration: none; color: inherit; } .promo-card:hover { border-color: var(--blue); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- 1.9 : publicité, guides, performances, campagnes locales, transparence, partage --- */
.ad-card { position: relative; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.ad-card .ad-label { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; }
.ad-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ad-link:hover .ad-body strong { text-decoration: underline; }
.ad-img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.ad-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; align-items: flex-start; }
.ad-body strong { font-size: 16px; line-height: 1.3; }
.ad-search, .ad-home, .ad-guides { margin: 4px 0; }
.ad-search .ad-link, .ad-home .ad-link, .ad-guides .ad-link { flex-direction: row; align-items: stretch; }
.ad-search .ad-img, .ad-home .ad-img, .ad-guides .ad-img { width: 220px; max-height: none; flex: 0 0 220px; }
@media (max-width: 640px) { .ad-search .ad-link, .ad-home .ad-link, .ad-guides .ad-link { flex-direction: column; } .ad-search .ad-img, .ad-home .ad-img, .ad-guides .ad-img { width: 100%; flex-basis: auto; max-height: 160px; } }

.sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.sub-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.guide-body { font-size: 17px; line-height: 1.7; }
.guide-body h2 { font-size: 22px; margin: 28px 0 8px; }
.guide-body p { margin: 0 0 14px; } .guide-body ul { margin: 0 0 14px; padding-left: 22px; } .guide-body li { margin-bottom: 6px; }

.perf-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFD; margin: 4px 0; }
.perf-kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.perf-kpis > div { flex: 1 1 70px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.perf-kpis b { font-family: "Space Grotesk", sans-serif; font-size: 22px; line-height: 1.1; }
.perf-kpis span { font-size: 12px; color: var(--muted, #64748B); }
.perf-tip { background: var(--blue-soft); border-radius: 10px; padding: 8px 12px; color: #23457E; }
.perf-tip p { margin: 2px 0 0; }
.campaign { display: flex; flex-direction: column; gap: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.check-grid li.is-ok { color: var(--green-dark); } .check-grid li.is-missing { color: var(--muted, #64748B); }
.share-preview { width: 100%; max-width: 360px; border-radius: 12px; border: 1px solid var(--line); align-self: center; }

/* --- 1.9.1 : sélecteur marque / modèle à toucher --- */
.picker-native { position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; pointer-events: none; }
label.field, .make-row, .exclude-row { position: relative; }
.picker-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; min-height: 46px; color: var(--ink); font-weight: 500; }
.picker-btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #64748B; border-bottom: 2px solid #64748B; transform: rotate(45deg); margin: -4px 4px 0 0; flex: none; }
.picker-btn.empty .picker-val { color: #64748B; font-weight: 400; }
.picker-btn .picker-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn.picker-invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.picker-modal { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 23, 42, .6); display: flex; align-items: flex-end; justify-content: center; }
.picker-modal[hidden] { display: none; }
.picker-sheet { background: #fff; width: 100%; max-width: 520px; height: min(86vh, 720px); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -10px 40px rgba(15, 23, 42, .25); }
@media (min-width: 700px) { .picker-modal { align-items: center; } .picker-sheet { border-radius: 18px; height: min(80vh, 680px); } }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; font-size: 18px; }
.picker-close { border: 0; background: #F1F4F8; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.picker-searchbox { padding: 6px 16px 10px; }
.picker-search { font-size: 16px; }
.picker-body { position: relative; flex: 1; min-height: 0; display: flex; }
.picker-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 12px 24px 16px; overscroll-behavior: contain; }
.picker-opt { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-bottom: 1px solid #EEF1F5; background: none; font-size: 17px; text-align: left; color: var(--ink); cursor: pointer; }
.picker-opt:active, .picker-opt:hover { background: #F5F7FA; }
.picker-opt.on { font-weight: 700; color: var(--red); }
.picker-opt.on::after { content: "✓"; margin-left: auto; }
.picker-any { color: #475569; font-weight: 600; }
.picker-custom { color: var(--blue); font-weight: 600; }
.picker-letter { position: sticky; top: 0; background: #fff; font-weight: 700; color: #64748B; font-size: 13px; padding: 10px 12px 4px; border-bottom: 1px solid var(--line); }
.picker-sec { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748B; padding: 14px 12px 6px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 6px; }
.picker-chip { width: auto; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; }
.picker-chip.on::after { content: ""; margin: 0; }
.picker-chip.on { background: var(--red-soft); border-color: var(--red); }
.picker-empty { padding: 24px 12px; color: #64748B; text-align: center; }
.picker-go { margin: 0 auto; display: block; }
.picker-rail { display: flex; flex-direction: column; justify-content: center; padding: 0 6px 0 0; }
.picker-rl { border: 0; background: none; font-size: 11px; font-weight: 700; color: var(--blue); padding: 1px 6px; line-height: 1.25; cursor: pointer; }
@media (max-height: 640px) { .picker-rail { display: none; } }

/* 1.10 : description automatique, styles */
#autodesc-box .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#autodesc-box .chip { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 38px; }
#autodesc-box .chip input { accent-color: var(--brand, #0B5FFF); }
#autodesc-box .chip:has(input:checked) { background: #DCE8FF; font-weight: 600; }
#f-desc { min-height: 260px; line-height: 1.5; }

/* 1.10 : filtres rapides à toucher */
.quick-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick-pills::-webkit-scrollbar { display: none; }
.quick-pills .pill { flex: 0 0 auto; border: 1px solid #D5DAE1; background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 14px; font-size: 14px; text-decoration: none; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
.quick-pills .pill.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

/* Tuile publicitaire au format d'une annonce (grille de l'accueil) */
.ad-tile { position: relative; }
.ad-tile-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.ad-tile .ph { position: relative; }
.ad-tile .ph video, .ad-tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-tile .ad-label { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.ad-card video.ad-img { background: #000; }

.update-banner { background: #FFF4D6; color: #6B4A00; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid #F0D58A; }

.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; }
@media (max-width: 600px) { .cookie-bar { bottom: 64px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.skip-link:focus { left: 8px; }
main:focus { outline: none; }

.car-card .ph .tag-mfk { position: absolute; left: 8px; bottom: 8px; font-size: 11px; }
.result .ph .tag-mfk { position: absolute; left: 8px; bottom: 8px; font-size: 11px; }

/* Feuille « installer l'application / activer les notifications » après la connexion (mobile) */
.pwa-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 27, 45, .45); display: flex; align-items: flex-end; justify-content: center; }
.pwa-sheet[hidden] { display: none; }
.pwa-card { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.18); max-height: 92vh; overflow: auto; }
body.pwa-open { overflow: hidden; }
.pwa-sheet [hidden] { display: none !important; }
.tag-founder { background: #FFF4D6; color: #7A5200; border: 1px solid #E8C25A; }
.contest-chip { position: fixed; left: 12px; bottom: 12px; z-index: 50; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media print { .contest-chip { display: none; } }
.ad-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.ad-place { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line, #E3E7ED); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; }
.ad-place:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px rgba(200, 16, 46, .12); }
.ad-place input { margin-top: 3px; }
.contest-home { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: linear-gradient(90deg, #FFF4D6, #FFE7EA); border: 1px solid #F2D27A; }
.contest-home-ico { font-size: 30px; }
.contest-home .btn { margin-left: auto; white-space: nowrap; }
