/* SHREDZ · La Grande Première — univers repris du dossier « Matériel en test » */
:root {
  --pink: #ec008c;
  --rose: #d22a60;
  --text: #b00069;          /* rose assombri : lisible sur blanc en petit corps */
  --indigo: #2b3990;
  --blue: #1653a6;
  --green: #2fbf55;
  --white: #fff;
  --ink: #2a0b24;
  --r-card: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --script: "Pacifico", "Snell Roundhand", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #c81f8f;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sheet-panel :focus-visible, .card :focus-visible { outline-color: var(--indigo); }

.bg {
  position: fixed; inset: 0; z-index: 0;
  background: #d81b8c url(../img/brand/bg.jpg) center / cover no-repeat;
}

.app {
  position: relative; z-index: 1;
  height: 100vh; height: 100dvh;
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 80px rgba(43, 13, 80, .45); background: rgba(255, 255, 255, .04); }
}

/* ---------- En-tête ---------- */
.top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top)) 14px 2px;
}
.top-logo { height: 50px; width: auto; filter: drop-shadow(0 4px 10px rgba(80, 0, 60, .28)); }
.icon-btn {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s var(--ease), background .15s;
}
.icon-btn:active { transform: scale(.92); background: rgba(255, 255, 255, .34); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg.fill { fill: currentColor; stroke: none; }
.badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #fff; color: var(--pink);
  font-size: 11.5px; font-weight: 900; line-height: 20px; text-align: center;
  box-shadow: 0 2px 6px rgba(80, 0, 60, .3);
}
.badge.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ---------- Pile de cartes ---------- */
.deck-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.deck-chip {
  flex: none; align-self: center;
  max-width: calc(100% - 32px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  margin: 6px 0 8px; padding: 6px 12px 6px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .2); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.deck-chip::after { content: "▾"; margin-left: 6px; opacity: .8; }
.deck { flex: 1; min-height: 0; position: relative; margin: 0 16px 20px; --drag: 0; }

.card {
  --depth: 0;
  position: absolute; inset: 0;
  border-radius: var(--r-card);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(60, 0, 70, .28);
  transform: translateY(calc((var(--depth) - var(--drag)) * 11px)) scale(calc(1 - (var(--depth) - var(--drag)) * .045));
  transform-origin: 50% 100%;
  user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.deck.settling .card:not(.top) { transition: transform .3s var(--ease); }
.card.top { touch-action: none; cursor: grab; transition: transform .35s var(--spring); }
.card.top.dragging { transition: none; cursor: grabbing; }
.card.top.fly { transition: transform .32s ease-in; }
.card.top.from-undo { animation: undo-in .38s var(--spring); }
@keyframes undo-in { from { transform: translate(-110%, 30px) rotate(-18deg); } }
.card.top.hint { animation: hint 1.6s .5s ease-in-out; }
@keyframes hint {
  0%, 100% { transform: none; }
  25% { transform: translateX(34px) rotate(4deg); }
  60% { transform: translateX(-34px) rotate(-4deg); }
}

.card-media { position: absolute; inset: 0; }
.card-media img { width: 100%; height: 100%; pointer-events: none; }
.card-media.is-cover img { object-fit: cover; }
.card-media.is-contain img { object-fit: contain; object-position: 50% 0; }
.card-media.is-cut { padding: 54px 16px 0; }
.card-media.is-cut img { object-position: 50% 0; filter: drop-shadow(0 10px 14px rgba(40, 10, 60, .18)); }

.card-tag {
  position: absolute; left: 12px; top: 12px; max-width: calc(100% - 118px);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border-radius: 16px;
  background: var(--pink); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 1.25; letter-spacing: .01em;
  box-shadow: 0 4px 12px rgba(236, 0, 140, .3);
}
.card-tag .fruit {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; font-size: 17px; line-height: 1;
}
.card-tag.no-fruit { padding-left: 12px; }
.card-more {
  position: absolute; right: 12px; top: 12px;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px 8px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .94); color: var(--pink);
  font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(60, 0, 70, .18);
}
.card-more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.card-info {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 12px 14px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 6px 20px rgba(60, 0, 70, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card-info h2 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; line-height: 1; }
.brand { color: var(--pink); font-size: 27px; font-weight: 900; letter-spacing: -.01em; }
.model { color: var(--rose); font-size: 19px; font-weight: 600; }
.cat { margin-top: 6px; color: var(--pink); font-size: 10.5px; font-weight: 900; letter-spacing: .06em; }
.quote { margin-top: 8px; padding-top: 8px; border-top: 1.5px solid rgba(236, 0, 140, .16); color: var(--text); font-size: 11.5px; font-weight: 700; line-height: 1.35; }

.stamp {
  position: absolute; top: 96px; z-index: 3;
  padding: 4px 14px 5px; border: 4px solid; border-radius: 12px;
  font-size: 34px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255, 255, 255, .88);
  opacity: 0; pointer-events: none;
}
.stamp-like { left: 18px; color: var(--green); transform: rotate(-14deg); opacity: var(--like, 0); }
.stamp-nope { right: 18px; color: var(--pink); transform: rotate(14deg); opacity: var(--nope, 0); }

/* fin de pile */
.deck-end {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; border-radius: var(--r-card);
  background: rgba(255, 255, 255, .16); border: 2px dashed rgba(255, 255, 255, .5);
  color: #fff; text-align: center;
}
.deck-end .big { font-size: 46px; line-height: 1; }
.deck-end h2 { font-size: 26px; font-weight: 900; line-height: 1.05; }
.deck-end p { font-size: 14px; font-weight: 600; line-height: 1.4; max-width: 28ch; }
.deck-end .btn { width: 100%; max-width: 280px; }

/* ---------- Boutons d'action ---------- */
.actions {
  flex: none;
  display: flex; align-items: flex-start; justify-content: center; gap: 14px;
  padding: 4px 10px calc(10px + env(safe-area-inset-bottom));
}
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; }
.act-disc {
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(180deg, #fff 55%, #ffd3ea);
  box-shadow: 0 8px 18px rgba(80, 0, 70, .28);
  transition: transform .18s var(--spring);
}
.act:active .act-disc { transform: scale(.88); }
.act-l .act-disc { width: 68px; height: 68px; }
.act-s .act-disc { width: 46px; height: 46px; }
.act-s { margin-top: 11px; }
.act svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.act svg.fill { fill: currentColor; stroke: none; }
.act-l svg { width: 36px; height: 36px; stroke-width: 3.6; }
.act-s svg { width: 22px; height: 22px; stroke-width: 2.6; }
.act-nope .act-disc { color: var(--pink); }
.act-like .act-disc { color: var(--green); }
.act-undo .act-disc { color: #f59e0b; }
.act-info .act-disc { color: #2e7de9; }
.act-label { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(80, 0, 60, .35); }
.act:disabled { opacity: .4; pointer-events: none; }

/* ---------- Boutons génériques ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 99px;
  font-size: 14px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(236, 0, 140, .35); }
.btn-white { background: #fff; color: var(--pink); box-shadow: 0 8px 20px rgba(60, 0, 70, .25); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.btn-line { background: #fff; color: var(--pink); box-shadow: inset 0 0 0 2px var(--pink); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47, 191, 85, .35); }

/* ---------- Calques (menu, pages, feuilles) ---------- */
.layer { position: absolute; inset: 0; z-index: 20; }
.backdrop { position: absolute; inset: 0; background: rgba(40, 6, 50, .55); opacity: 0; transition: opacity .3s; }
.layer.open .backdrop { opacity: 1; }
.sheet-panel:focus, .drawer-panel:focus, .page-panel:focus, .match-inner:focus { outline: none; }
.layer .close { position: absolute; z-index: 5; top: calc(12px + env(safe-area-inset-top)); right: 12px; }

.drawer { z-index: 25; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86%, 350px);
  display: flex; flex-direction: column;
  padding: calc(64px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, #f0287f 0%, #d4148f 45%, #5b2d9a 100%);
  color: #fff; overflow-y: auto;
  box-shadow: 10px 0 40px rgba(40, 6, 50, .4);
  transform: translateX(-104%); transition: transform .32s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-logo { width: 78%; height: auto; margin: 0 auto 22px; }
.menu-list { display: grid; gap: 8px; }
.menu-list button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .16);
  font-size: 15px; font-weight: 800; text-align: left;
}
.menu-list button:active { background: rgba(255, 255, 255, .3); }
.menu-list .quiet { background: none; font-weight: 700; font-size: 13.5px; opacity: .9; }
.mi { flex: none; width: 26px; text-align: center; font-size: 19px; }
.menu-count { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 99px; background: #fff; color: var(--pink); font-size: 13px; font-weight: 900; text-align: center; }
.drawer-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; }
.drawer-foot .lgp { width: 86px; height: auto; flex: none; }
.drawer-foot p { font-size: 11px; font-weight: 600; line-height: 1.4; opacity: .9; }

.page { z-index: 22; }
.page-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #d81b8c url(../img/brand/bg.jpg) center / cover no-repeat;
  transform: translateX(100%); transition: transform .32s var(--ease);
}
.page.open .page-panel { transform: none; }
.page-top {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #fff;
}
.page-top h1 { flex: 1; font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.page-top h1 span { display: inline-block; margin-left: 4px; padding: 1px 10px; border-radius: 99px; background: #fff; color: var(--pink); font-size: 15px; vertical-align: 3px; }
.page-top h1 span:empty { display: none; }
.page-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 14px calc(24px + env(safe-area-inset-bottom)); }

.m-intro { margin: 0 2px 14px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-card { position: relative; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 8px 22px rgba(60, 0, 70, .22); animation: pop-in .35s var(--spring) backwards; }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } }
.m-open { display: block; width: 100%; text-align: left; }
.m-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.m-pic img { width: 100%; height: 100%; object-fit: contain; }
.m-pic.is-cover img { object-fit: cover; }
.m-pic.is-cut { padding: 10px 10px 0; }
.m-fruit { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 17px; box-shadow: 0 2px 8px rgba(60, 0, 70, .2); }
.m-body { padding: 10px 12px 12px; border-top: 1.5px solid rgba(236, 0, 140, .12); }
.m-body .brand { display: block; font-size: 16px; line-height: 1.05; }
.m-body .model { display: block; margin-top: 2px; font-size: 13px; line-height: 1.15; }
.m-body .cat { margin-top: 5px; font-size: 9px; line-height: 1.3; }
.m-date { display: inline-block; margin-top: 7px; padding: 3px 8px; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--indigo)); color: #fff; font-size: 9.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.m-remove { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--pink); box-shadow: 0 2px 8px rgba(60, 0, 70, .2); }
.m-remove svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.m-share { width: 100%; margin-top: 18px; }
.m-empty { margin-top: 12vh; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 20px; color: #fff; text-align: center; }
.m-empty .big { font-size: 56px; line-height: 1; }
.m-empty h2 { font-size: 24px; font-weight: 900; }
.m-empty p { font-size: 14px; font-weight: 600; line-height: 1.45; max-width: 30ch; }

.sheet { z-index: 30; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(22px + env(safe-area-inset-top));
  display: flex; flex-direction: column;
  border-radius: 28px 28px 0 0; overflow: hidden;
  background: #fff5fa;
  box-shadow: 0 -10px 40px rgba(40, 6, 50, .35);
  transform: translateY(104%); transition: transform .36s var(--ease);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-auto .sheet-panel { top: auto; max-height: calc(100% - 22px - env(safe-area-inset-top)); }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { flex: none; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(60, 0, 70, .1); }
.sheet-foot .btn { flex: 1; white-space: nowrap; }
.sheet-foot .btn-line { flex: 0 1 auto; }
.sheet-foot:empty { display: none; }
.sheet .close { background: rgba(255, 255, 255, .92); color: var(--pink); box-shadow: 0 3px 10px rgba(60, 0, 70, .2); top: 12px; }

/* ---------- Profil ---------- */
.p-hero { position: relative; height: min(52vh, 440px); }
.p-hero img { width: 100%; height: 100%; object-fit: contain; }
.p-hero.is-cover img { object-fit: cover; }
.p-hero.is-cut { padding: 22px 20px 12px; }
.p-hero.is-cut img { filter: drop-shadow(0 10px 14px rgba(40, 10, 60, .18)); }
.p-body { padding: 0 14px 22px; background: linear-gradient(180deg, #f0287f 0, #dd1a8d 380px, #7a2f9c 100%); }
.p-head { position: relative; margin: 0 0 12px; padding: 14px 16px 16px; border-radius: 22px; background: #fff; transform: translateY(-18px); margin-bottom: -6px; box-shadow: 0 8px 22px rgba(60, 0, 70, .18); }
.p-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; line-height: 1; }
.p-head .brand { font-size: 31px; }
.p-head .model { font-size: 21px; }
.p-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px 6px 7px; border-radius: 16px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1.25; }
.p-tag .fruit { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 16px; }
.p-tag.no-fruit { padding-left: 12px; }
.p-card { margin-top: 10px; padding: 14px 16px 15px; border-radius: 20px; background: rgba(255, 255, 255, .96); }
.p-card h3 { display: flex; align-items: center; gap: 8px; color: var(--pink); font-size: 16px; font-weight: 900; letter-spacing: -.005em; text-transform: uppercase; line-height: 1.1; }
.p-card h3 .ico { flex: none; font-size: 17px; }
.p-card p { margin-top: 7px; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .005em; }
.p-card p.soft { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chips li { padding: 6px 11px; border-radius: 99px; background: rgba(236, 0, 140, .1); color: var(--pink); font-size: 11.5px; font-weight: 900; letter-spacing: .03em; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #f0469a, #e8238f); color: #fff; }
.specs dt { font-size: 10.5px; font-weight: 900; letter-spacing: .04em; }
.specs dd { margin-top: 2px; font-size: 11.5px; font-weight: 500; line-height: 1.35; }
.specs .wide { grid-column: 1 / -1; }
.notes { margin-top: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #f0469a, #e8238f); color: #fff; display: grid; gap: 8px; }
.notes li { font-size: 11.5px; font-weight: 800; line-height: 1.4; }
.p-date { background: linear-gradient(135deg, var(--pink) 0%, #b0189a 55%, var(--indigo) 100%); }
.p-date h3, .p-date p { color: #fff; }
.p-date p.lead { font-size: 13px; font-weight: 900; }
.p-date ul { margin-top: 8px; display: grid; gap: 3px; }
.p-date li { color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4; }

/* ---------- Envies / accueil ---------- */
#filters .sheet-scroll { padding: 22px 18px 8px; }
.welcome { text-align: center; margin-bottom: 20px; }
.welcome img { width: 74%; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 6px 14px rgba(236, 0, 140, .25)); }
.welcome-title { color: var(--pink); font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.welcome-text { margin-top: 8px; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.welcome-note { margin-top: 8px; color: var(--text); font-size: 11px; font-weight: 600; line-height: 1.4; opacity: .75; }
.f-title { margin: 14px 2px 9px; color: var(--pink); font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.f-title small { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; opacity: .65; text-transform: none; }
.f-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f-fruits { grid-template-columns: 1fr 1fr; }
.f-opt {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px 10px; border-radius: 18px;
  background: #fff; color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(236, 0, 140, .16);
  font-size: 12.5px; font-weight: 800; line-height: 1.15; text-align: center;
  transition: transform .15s var(--spring), background .15s, color .15s;
}
.f-opt .emo { font-size: 26px; line-height: 1.1; }
.f-opt small { font-size: 10.5px; font-weight: 700; opacity: .7; }
.f-opt[aria-pressed="true"] { background: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(236, 0, 140, .32); transform: scale(1.02); }
.f-fruits .f-opt { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: left; }
.f-fruits .f-opt .emo { font-size: 22px; }
.f-fruits .f-opt span:last-child { display: flex; flex-direction: column; }

/* ---------- À propos ---------- */
.about { padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); }
.about h2 { padding-right: 46px; color: var(--pink); font-size: 27px; font-weight: 900; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.about .fruits-row { margin: 12px 0 2px; font-size: 26px; letter-spacing: 4px; }
.about p { margin-top: 10px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.how { margin-top: 16px; display: grid; gap: 8px; counter-reset: how; }
.how li { counter-increment: how; position: relative; padding: 12px 14px 12px 50px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 13.5px; line-height: 1.4; box-shadow: inset 0 0 0 2px rgba(236, 0, 140, .12); }
.how li::before { content: counter(how); position: absolute; left: 12px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; font-size: 14px; display: grid; place-items: center; }
.how b { color: var(--pink); font-weight: 900; text-transform: uppercase; }
.about-logos { margin-top: 20px; padding: 16px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(135deg, #f0287f, #7a2f9c); }
.about-logos img:first-child { width: 96px; height: auto; }
.about-logos img:last-child { width: 150px; height: auto; }

/* ---------- It's a match ---------- */
.match { z-index: 40; display: grid; place-items: center; overflow: hidden; }
.match-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(165deg, #f0287f 0%, #d81092 45%, #3a2c96 100%);
  opacity: 0; transition: opacity .3s;
}
.match.open .match-bg { opacity: 1; }
.match-inner {
  position: relative; z-index: 2; width: 100%; max-height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom));
  color: #fff; text-align: center;
}
.match-head { display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.match-its {
  font-family: var(--script); font-size: clamp(38px, 12vw, 54px); line-height: 1; transform: rotate(-6deg);
  text-shadow: 0 4px 0 rgba(120, 0, 90, .35);
  opacity: 0;
}
.match-word { display: flex; margin-top: -4px; font-size: clamp(64px, 21vw, 96px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.match-word i {
  display: inline-block; font-style: normal;
  color: #fff; -webkit-text-stroke: 0;
  text-shadow: 0 5px 0 var(--pink), 0 10px 0 rgba(90, 0, 80, .35), 0 16px 26px rgba(60, 0, 70, .35);
  opacity: 0; transform: scale(0) rotate(-20deg);
}
.match.open .match-its { animation: its-in .5s .1s var(--spring) forwards; }
.match.open .match-word i { animation: letter-in .55s var(--spring) forwards, letter-wave 1.6s 1.2s ease-in-out infinite; }
.match.open .match-word i:nth-child(1) { animation-delay: .22s, 1.20s; }
.match.open .match-word i:nth-child(2) { animation-delay: .29s, 1.28s; }
.match.open .match-word i:nth-child(3) { animation-delay: .36s, 1.36s; }
.match.open .match-word i:nth-child(4) { animation-delay: .43s, 1.44s; }
.match.open .match-word i:nth-child(5) { animation-delay: .50s, 1.52s; }
.match.open .match-word i:nth-child(6) { animation-delay: .57s, 1.60s; }
@keyframes its-in { from { opacity: 0; transform: translateY(20px) rotate(-14deg) scale(.6); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes letter-wave { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -9px; } }

.match-duo { flex: none; position: relative; display: flex; justify-content: center; margin: 22px 0 16px; height: clamp(150px, 25vh, 200px); width: 100%; }
.duo-card {
  position: absolute; top: 0; height: 100%; aspect-ratio: 3 / 4;
  border-radius: 22px; border: 5px solid #fff; overflow: hidden;
  box-shadow: 0 14px 30px rgba(50, 0, 70, .4);
  opacity: 0;
}
.duo-you {
  right: 50%; margin-right: -14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(160deg, #ffe3f1, #ffb8dc);
  padding-bottom: 20px;
  color: var(--pink); font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
}
.duo-fruit { font-size: clamp(50px, 16vw, 72px); line-height: 1; }
.duo-prod { left: 50%; margin-left: -14px; background: #fff; }
.duo-prod img { width: 100%; height: 100%; object-fit: contain; }
.duo-prod.is-cover img { object-fit: cover; }
.duo-prod.is-cut { padding: 10px; }
.match.open .duo-you { animation: you-in .6s .45s var(--spring) forwards; }
.match.open .duo-prod { animation: prod-in .6s .45s var(--spring) forwards; }
@keyframes you-in { from { opacity: 0; transform: translateX(-140%) rotate(-30deg); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes prod-in { from { opacity: 0; transform: translateX(140%) rotate(30deg); } to { opacity: 1; transform: rotate(8deg); } }
.duo-heart {
  position: absolute; left: 50%; bottom: -16px; width: 66px; height: 66px; margin-left: -33px;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--green);
  box-shadow: 0 8px 20px rgba(50, 0, 70, .35);
  transform: scale(0);
}
.duo-heart svg { width: 36px; height: 36px; fill: currentColor; }
.match.open .duo-heart { animation: heart-in .5s .95s var(--spring) forwards, heart-beat 1.1s 1.5s ease-in-out infinite; }
@keyframes heart-in { to { transform: scale(1); } }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.22); } 36% { transform: scale(.96); } 54% { transform: scale(1.14); } }

.match-names, .match-quote, .match-where, .match-btns { opacity: 0; }
.match.open .match-names, .match.open .match-quote, .match.open .match-where, .match.open .match-btns { animation: rise .5s 1.1s var(--ease) forwards; }
.match.open .match-quote { animation-delay: 1.2s; }
.match.open .match-where { animation-delay: 1.28s; }
.match.open .match-btns { animation-delay: 1.38s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.match-names { margin-top: 14px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.match-names b { font-weight: 900; }
.match-quote { margin-top: 10px; max-width: 34ch; font-size: 13px; font-weight: 800; line-height: 1.4; }
.match-where { margin-top: 10px; max-width: 36ch; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .18); font-size: 11px; font-weight: 800; line-height: 1.35; }
.match-btns { width: 100%; max-width: 320px; display: grid; gap: 10px; margin-top: 18px; }

.confetti { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.confetti span {
  position: absolute; top: -12%; left: var(--x);
  font-size: var(--s); line-height: 1;
  animation: fall var(--d) var(--w) linear infinite;
  opacity: 0;
}
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate3d(var(--dx), 125vh, 0) rotate(var(--r)); opacity: 0; }
}
.burst { position: absolute; left: 50%; top: 46%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.burst span { position: absolute; font-size: var(--s); opacity: 0; animation: burst 1s .9s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1) rotate(var(--r)); opacity: 0; }
}

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 60; left: 50%; bottom: calc(120px + env(safe-area-inset-bottom));
  max-width: 84%; padding: 10px 18px; border-radius: 99px;
  background: rgba(42, 11, 36, .92); color: #fff; font-size: 13px; font-weight: 700; text-align: center;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.noscript { position: relative; z-index: 5; margin: 40vh 24px 0; padding: 16px; border-radius: 16px; background: #fff; color: var(--pink); font-weight: 800; text-align: center; }

/* petits écrans (iPhone SE…) */
@media (max-height: 640px) {
  .top-logo { height: 42px; }
  .deck-chip { margin: 2px 0 6px; }
  .act-l .act-disc { width: 58px; height: 58px; }
  .act-s .act-disc { width: 40px; height: 40px; }
  .act-l svg { width: 30px; height: 30px; }
  .actions { padding-top: 8px; gap: 12px; }
  .brand { font-size: 23px; } .model { font-size: 16px; }
  .card-info { padding: 10px 12px; }
  .quote { font-size: 11px; }
}
@media (max-height: 700px) {
  .match-quote { display: none; }
  .match-duo { margin: 16px 0 12px; }
  .match-btns { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .confetti, .burst { display: none; }
}
