/* Circuit Market — mini app (18/10/2026)
   Identité : brand book Circuit Market (rouge racing, noir asphalte, chrome,
   damier, compteur, speed lines). Racing Sans One / Saira Condensed / Inter. */

:root {
  --red: #D6001C;
  --red2: #FF1E2D;
  --black: #0C0C0C;
  --asphalt: #161618;
  --card: #1B1B1E;
  --card2: #222226;
  --white: #FFFFFF;
  --grey: #9A9FA6;
  --line: #2A2A2E;
  --chrome: #C7CBD1;
  --amber: #FF8A00;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: "Racing Sans One", "Saira Condensed", system-ui, sans-serif;
  --cond: "Saira Condensed", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--black) url("asphalt.webp") center top / 900px auto repeat;
  color: var(--white);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }

/* ---------- Damier ---------- */
.checker {
  height: 14px;
  background:
    repeating-conic-gradient(#fff 0 25%, #0c0c0c 0 50%) 0 0 / 14px 14px;
  opacity: .92;
}
.checker.small { height: 8px; background-size: 8px 8px; }

/* ---------- Démarrage ---------- */
.boot {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 40%, #2a0005 0%, var(--black) 65%);
  transition: opacity .5s ease;
}
.boot.out { opacity: 0; pointer-events: none; }
.boot-gauge { position: relative; width: 240px; }
.boot-logo { width: 150px; margin: -18px auto 0; filter: drop-shadow(0 6px 24px rgba(214,0,28,.45)); }
.boot-text { font-family: var(--cond); font-style: italic; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin: 0; }

.gauge { width: 100%; overflow: visible; }
.gauge-track { fill: none; stroke: #2c2c31; stroke-width: 10; stroke-linecap: round; }
.gauge-red { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2,.9,.2,1); filter: drop-shadow(0 0 6px rgba(255,30,45,.7)); }
.gauge-needle { stroke: var(--white); stroke-width: 3.5; stroke-linecap: round; transform-origin: var(--ox, 100px) var(--oy, 110px); transition: transform .9s cubic-bezier(.2,.9,.25,1.15); }
.gauge-hub { fill: var(--red2); stroke: #fff; stroke-width: 2; }
.gauge-ticks line { stroke: #5a5a62; stroke-width: 2; }
.gauge-ticks line.hot { stroke: var(--red2); }
#bootNeedle { transform: rotate(-90deg); }
.boot.rev #bootNeedle { transform: rotate(62deg); }

/* ---------- Porte d'âge ---------- */
.gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8,8,8,.92); backdrop-filter: blur(6px);
}
.gate-card {
  width: 100%; max-width: 360px; text-align: center;
  background: linear-gradient(180deg, #1d1d21, #111113);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  padding-bottom: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(214,0,28,.25);
}
.gate-logo { width: 180px; margin: 18px auto 4px; }
.gate-title { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0 0 6px; letter-spacing: .01em; }
.gate-text { color: var(--grey); margin: 0 22px 18px; font-size: 14px; }
.gate-card .btn-red, .gate-card .btn-ghost { width: calc(100% - 44px); margin: 0 22px 10px; }
.gate-refused { color: var(--red2); font-weight: 700; margin: 6px 22px; }
.legal { color: #6d7178; font-size: 11px; margin: 10px 22px 0; }

/* ---------- Boutons ---------- */
.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  background: linear-gradient(180deg, var(--red2), var(--red));
  color: #fff; font-family: var(--cond); font-style: italic; font-weight: 900;
  font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(214,0,28,.38), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s ease, filter .2s ease;
}
.btn-red:active { transform: scale(.97); }
.btn-red:disabled { filter: grayscale(.8) brightness(.6); }
.btn-ghost {
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line); color: var(--grey); font-weight: 600;
  background: rgba(255,255,255,.02);
}
.btn-small {
  min-height: 46px; padding: 0 16px; border-radius: 12px; flex-shrink: 0;
  background: var(--card2); border: 1px solid var(--line); font-weight: 700;
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: rgba(12,12,12,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { width: 74px; height: 44px; object-fit: contain; }
.pit { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #121214; }
.pit-led { width: 8px; height: 8px; border-radius: 50%; background: #2bd14d; box-shadow: 0 0 8px #2bd14d; animation: blink 2.4s infinite; }
.pit-label { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--chrome); }
@keyframes blink { 0%, 80%, 100% { opacity: 1 } 90% { opacity: .35 } }
.topcart { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #121214; display: grid; place-items: center; }
.topcart svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red2); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--black);
}
.badge.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35) } }

.notice {
  margin: 10px 14px 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(255,138,0,.12); border: 1px solid rgba(255,138,0,.5); color: #ffc073;
  font-size: 13px; font-weight: 600; text-align: center;
}

/* ---------- Vues ---------- */
main { padding-bottom: calc(110px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
.view { animation: in .35s ease; }
@keyframes in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.view-head { padding: 22px 16px 8px; }
.kicker {
  margin: 0; color: var(--red2); font-family: var(--cond); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
}
.view-title { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }

/* ---------- Héros ---------- */
.hero { position: relative; height: 290px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 60%; transform: translateX(16%) scale(1.06); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,.15) 0%, rgba(12,12,12,.2) 40%, rgba(12,12,12,.95) 100%), linear-gradient(90deg, rgba(12,12,12,.92) 0%, rgba(12,12,12,.55) 42%, transparent 68%); }
.hero-content { position: absolute; left: 16px; right: 16px; bottom: 18px; }
.hero-title {
  margin: 4px 0 12px; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: .92; max-width: 58%;
  text-shadow: 0 4px 22px rgba(0,0,0,.7);
}
.hero-title span { color: var(--red2); }
.city-sign {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 5px 14px 4px; border-radius: 6px; background: #fff; color: var(--red);
  border: 3px solid var(--red); box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(0,0,0,.5);
}
.city-sign b { font-family: var(--cond); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; }
.city-sign small { font-family: var(--cond); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #111; }
.speedlines { position: absolute; right: -10px; top: 30px; display: flex; flex-direction: column; gap: 9px; transform: skewX(-24deg); }
.speedlines i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--red2)); animation: speed 1.6s ease-in-out infinite; }
.speedlines i:nth-child(1) { width: 90px; }
.speedlines i:nth-child(2) { width: 60px; animation-delay: .2s; }
.speedlines i:nth-child(3) { width: 110px; animation-delay: .4s; }
@keyframes speed { 0%, 100% { opacity: .2; transform: translateX(20px) } 50% { opacity: 1; transform: none } }

/* ---------- Grille de départ (catégories) ---------- */
.grid-start {
  position: sticky; top: 61px; z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 14px; background: rgba(12,12,12,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.grid-start::-webkit-scrollbar { display: none; }
.slot {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .05em; font-size: 14px;
  color: var(--chrome); transition: all .2s ease;
}
.slot em { font-style: normal; font-size: 11px; color: var(--grey); background: #0f0f11; border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.slot.is-on { background: var(--red); border-color: var(--red2); color: #fff; box-shadow: 0 6px 18px rgba(214,0,28,.35); }
.slot.is-on em { background: rgba(0,0,0,.25); border-color: transparent; color: #fff; }

/* ---------- Catalogue ---------- */
.catalog { padding: 6px 14px 10px; }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin: 22px 2px 12px; scroll-margin-top: 140px; }
.cat-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.cat-head span { flex: 1; height: 2px; background: linear-gradient(90deg, var(--red), transparent); transform: skewX(-30deg); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); transition: transform .15s ease, border-color .2s ease;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); z-index: 2; }
.card:active { transform: scale(.97); border-color: var(--red); }
.card-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(214,0,28,.28), transparent 65%), #141416;
}
/* Image en absolu dans le carré : sur Safari iOS, une image en grille avec
   height: 100% prenait sa hauteur naturelle et recouvrait le prix (18/10/2026). */
.card-media img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.card-media.cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.25; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chrono { font-family: var(--cond); font-style: italic; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.card-price { font-size: 19px; color: #fff; }
.card-price small { font-family: var(--text); font-style: normal; font-weight: 500; font-size: 11px; color: var(--grey); margin-right: 3px; }
.card-add {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: var(--red); color: #fff; font-size: 22px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(214,0,28,.45);
}
.tag18 { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 6px; background: rgba(0,0,0,.65); border: 1px solid var(--line); color: var(--chrome); }
.empty { text-align: center; padding: 40px 20px; color: var(--grey); }
.empty b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; margin-bottom: 6px; }

/* ---------- Fiche produit ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0 } }
.sheet-card {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: #141416; border-radius: 26px 26px 0 0; border-top: 3px solid var(--red);
  animation: up .35s cubic-bezier(.2,.9,.25,1);
  padding-bottom: calc(16px + var(--safe-b));
}
@keyframes up { from { transform: translateY(100%) } }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.6); border: 1px solid var(--line); }
.sheet-media { position: relative; height: 250px; overflow: hidden; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 65%, rgba(214,0,28,.4), transparent 60%), url("asphalt.webp") center / cover; }
.sheet-media img { width: 100%; height: 214px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.7)); }
.sheet-media.cover { padding: 0; }
.sheet-media.cover img { width: 100%; height: 250px; object-fit: cover; filter: none; }
.sheet-body { padding: 16px 18px 4px; }
.sheet-name { margin: 2px 0 6px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; }
.sheet-desc { margin: 0 0 14px; color: var(--grey); font-size: 14px; white-space: pre-line; }
.sheet-desc:empty { display: none; }
.panel-sub { margin: 14px 0 8px; font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--chrome); }
.panel-sub .req { color: var(--grey); font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* Les options = rapports de boîte */
.gears { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gear {
  position: relative; padding: 10px 8px 9px; border-radius: 12px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
}
.gear b { display: block; font-family: var(--cond); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.gear span { display: block; font-size: 13px; color: var(--grey); margin-top: 1px; }
.gear i { position: absolute; top: 5px; left: 7px; font-style: normal; font-size: 9px; font-weight: 800; color: #55585e; }
.gear.is-on { background: linear-gradient(180deg, var(--red2), var(--red)); border-color: var(--red2); box-shadow: 0 6px 18px rgba(214,0,28,.35); }
.gear.is-on span, .gear.is-on i { color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--chrome); }
.chip.is-on { background: #fff; color: var(--black); border-color: #fff; }

.field {
  width: 100%; min-height: 48px; padding: 12px 14px; margin: 0 0 10px;
  border-radius: 12px; border: 1px solid var(--line); background: #0f0f11; color: #fff;
  font: inherit; font-size: 16px; outline: none; transition: border-color .2s ease;
}
.field:focus { border-color: var(--red2); }
.field::placeholder { color: #5f636a; }
textarea.field { resize: vertical; min-height: 90px; }
#sheetNote { margin-top: 14px; }

.sheet-foot { display: flex; gap: 10px; align-items: center; margin: 6px -18px 0; position: sticky; bottom: calc(-16px - var(--safe-b)); padding: 12px 18px calc(14px + var(--safe-b)); background: #141416; border-top: 1px solid var(--line); box-shadow: 0 -12px 24px rgba(0,0,0,.55); }
.qty { display: flex; align-items: center; gap: 2px; background: #0f0f11; border: 1px solid var(--line); border-radius: 14px; padding: 4px; flex-shrink: 0; }
.qty button { width: 40px; height: 42px; border-radius: 10px; font-size: 22px; font-weight: 700; }
.qty button:active { background: var(--card2); }
.qty span { min-width: 26px; text-align: center; font-family: var(--cond); font-weight: 900; font-size: 20px; }
.btn-add { flex: 1; font-size: 16px; padding: 0 12px; }
.btn-add .chrono { font-size: 18px; }

/* ---------- Ton plein ---------- */
.tank { margin: 4px 16px 6px; padding: 16px 16px 14px; border-radius: 20px; background: linear-gradient(180deg, #1b1b1f, #121214); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.tank-gauge { max-width: 240px; --ox: 110px; --oy: 115px; }
#tankNeedle { transform: rotate(-90deg); }
.tank-mark { fill: var(--grey); font-family: var(--cond); font-weight: 800; font-size: 13px; }
.tank-readout { text-align: center; margin-top: 2px; }
.tank-readout .chrono { font-size: 34px; display: block; line-height: 1; }
.tank-readout small { color: var(--grey); font-size: 13px; }

.lines { padding: 6px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.line-img { width: 62px; height: 62px; border-radius: 12px; flex-shrink: 0; background: #121214; padding: 5px; object-fit: contain; }
.line-main { flex: 1; min-width: 0; }
.line-name { margin: 0; font-weight: 700; font-size: 14px; }
.line-opt { margin: 2px 0 6px; color: var(--grey); font-size: 12px; }
.line-qty { display: inline-flex; align-items: center; gap: 2px; background: #0f0f11; border: 1px solid var(--line); border-radius: 10px; }
.line-qty button { width: 32px; height: 30px; font-size: 18px; font-weight: 700; }
.line-qty span { min-width: 20px; text-align: center; font-weight: 800; font-size: 14px; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-price { font-size: 18px; }
.line-del { width: 30px; height: 30px; border-radius: 9px; color: var(--grey); border: 1px solid var(--line); display: grid; place-items: center; }
.line-del svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.checkout { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.panel { margin: 0 16px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.checkout .panel { margin: 0; }
.panel-title { margin: 0 0 10px; font-family: var(--cond); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row-btn { display: flex; gap: 8px; }
.row-btn .field { margin: 0; text-transform: uppercase; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin-bottom: 10px; border-radius: 12px; background: #0f0f11; border: 1px solid var(--line); }
.seg-btn { min-height: 40px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--grey); }
.seg-btn.is-on { background: var(--red); color: #fff; }
.promo-status { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.promo-status.ok { color: #45e070; }
.promo-status.ko { color: var(--red2); }
.totals .tot-row { display: flex; justify-content: space-between; color: var(--grey); padding: 3px 0; font-size: 14px; }
.totals .tot-row.promo { color: #45e070; }
.totals .tot-row.big { color: #fff; font-weight: 700; padding-top: 8px; margin-top: 6px; border-top: 1px dashed var(--line); align-items: baseline; }
.totals .tot-row.big .chrono { font-size: 28px; }
.btn-send { flex-direction: column; gap: 0; min-height: 64px; }
.btn-send small { font-family: var(--text); font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 12px; opacity: .85; }

/* ---------- Infos / avis / contact ---------- */
.infos-text { margin: 0; white-space: pre-line; color: #e8e8ea; }
.legal-panel { margin-top: 12px; color: var(--grey); font-size: 13px; }
.legal-panel p { margin: 0 0 6px; }
.legal-panel .panel-title { color: #fff; }

.podium { margin: 4px 16px 14px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #2a0006, #141416 60%); border: 1px solid rgba(214,0,28,.4); display: flex; align-items: center; gap: 16px; }
.podium-score { font-family: var(--display); font-size: 54px; line-height: 1; }
.podium-stars { color: var(--amber); font-size: 18px; letter-spacing: 2px; }
.podium small { color: var(--grey); }
.stars-in { display: flex; gap: 6px; margin: 0 0 10px; }
.stars-in button { font-size: 30px; color: #3a3a40; transition: transform .12s ease; }
.stars-in button.is-on { color: var(--amber); }
.stars-in button:active { transform: scale(1.2); }
#avisForm .btn-red { width: 100%; }
.avis-list { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.avis { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.avis-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.avis-top b { font-weight: 700; }
.avis-top span { color: var(--amber); letter-spacing: 1px; font-size: 13px; }
.avis p { margin: 6px 0 4px; color: #e2e2e5; white-space: pre-line; }
.avis small { color: #6d7178; font-size: 12px; }

.contact-list { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; text-decoration: none; color: #fff;
  background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.contact::after { content: ""; position: absolute; right: -20px; top: 0; bottom: 0; width: 60px; background: var(--rc, var(--red)); opacity: .14; transform: skewX(-20deg); }
.contact-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--rc, var(--red)); flex-shrink: 0; }
.contact-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact b { display: block; }
.contact small { color: var(--grey); }

.foot { margin: 34px 0 0; text-align: center; color: #6d7178; font-size: 11px; }
.foot p { margin: 8px 16px 0; }

/* ---------- Tableau de bord ---------- */
.dash {
  position: fixed; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); z-index: 40;
  width: calc(100% - 20px); max-width: 520px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 8px 6px 7px; border-radius: 22px;
  background: linear-gradient(180deg, #1f1f23, #0e0e10);
  border: 1px solid #34343a; box-shadow: 0 16px 40px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.07);
}
.dash-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 7px; color: #7d8189; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.dash-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-btn .led { position: absolute; top: 0; width: 18px; height: 3px; border-radius: 2px; background: #2a2a2f; transition: all .25s ease; }
.dash-btn.is-on { color: #fff; }
.dash-btn.is-on .led { background: var(--red2); box-shadow: 0 0 10px var(--red2), 0 0 2px #fff; }
.dash-main { margin-top: -26px; }
.dash-main svg { width: 30px; height: 30px; padding: 13px; box-sizing: content-box; border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 35%, var(--red2), var(--red)); border: 3px solid #0e0e10; box-shadow: 0 8px 22px rgba(214,0,28,.5); }
.dash-main .led { display: none; }
.dash-main .badge { top: 2px; right: calc(50% - 38px); }

/* ---------- Divers ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); z-index: 70;
  max-width: calc(100% - 40px); padding: 11px 16px; border-radius: 12px;
  background: #fff; color: var(--black); font-weight: 700; font-size: 14px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toast .3s ease;
}
.toast.ko { background: var(--red2); color: #fff; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px) } }

.go { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: rgba(12,12,12,.9); animation: fade .2s ease; }
.go-flag { font-family: var(--display); font-size: 46px; text-align: center; }
.go-flag small { display: block; font-family: var(--text); font-size: 14px; color: var(--grey); margin-top: 8px; }
.go .checker { width: 160px; margin: 0 auto 18px; height: 28px; background-size: 14px 14px; animation: wave .6s ease infinite alternate; }
@keyframes wave { to { transform: skewY(-6deg) } }

.cut { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--black); }
.cut img { width: 170px; }
.cut p { margin: 0; max-width: 24rem; color: #fca5a5; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
