/* =========================================================
   Detailing Factory by Run Import OI — V3 « ticket à gratter »
   runimportoi.adamkom.com — Propulsé par Adamkom by JJP
   ========================================================= */
:root {
  --paper: #f3f5f8;     /* studio clair, blanc froid */
  --white: #ffffff;
  --ink: #0f1c2e;       /* bleu nuit, texte */
  --muted: #5b6778;
  --line: #dce2ea;
  --red: #e3262b;       /* rouge étrier Porsche */
  --red-dk: #b8161b;
  --green: #17a55a;
  --foil-a: #b9c0ca; --foil-b: #f1f3f6; --foil-c: #9aa3ae;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --r-lg: 26px; --r-md: 16px;
  --gut: clamp(1.1rem, 5vw, 3.5rem);
  --max: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.05rem/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 1rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.h2 { font: 900 clamp(2.6rem, 7vw, 5rem)/.9 var(--display); letter-spacing: -.01em; margin: 0 0 1.5rem; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--spring), background-color .2s, color .2s, box-shadow .3s;
}
.btn:active { transform: scale(.96); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 60px; font-size: 1.08rem; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 12px 30px -10px rgba(15,28,46,.55); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); box-shadow: 0 12px 30px -10px rgba(227,38,43,.6); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.link { background: none; border: 0; padding: .5rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .92rem; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 1.5rem;
  padding: calc(.7rem + env(safe-area-inset-top, 0px)) var(--gut) .7rem;
  transition: background-color .3s, box-shadow .3s, transform .45s var(--ease);
}
.top.solid { background: rgba(243,245,248,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top.hide { transform: translateY(-110%); }
.logo img { width: 128px; }
.menu { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 1rem; padding: 0; }
.menu a { text-decoration: none; font-weight: 600; font-size: .95rem; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.menu a:hover, .menu a.on { background-size: 100% 2px; }
.pill-status { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; text-decoration: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa3ae; flex: none; }
.is-open .dot { background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23,165,90,.55); } 70% { box-shadow: 0 0 0 9px rgba(23,165,90,0); } 100% { box-shadow: 0 0 0 0 rgba(23,165,90,0); } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gut) 4rem;
  min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
}
.kicker { font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.hero-title { font: 900 clamp(3.6rem, 10.5vw, 8.4rem)/.86 var(--display); letter-spacing: -.015em; margin: 0 0 1.4rem; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: var(--d); }
@keyframes rise { to { transform: none; } }
/* mot qui change : neuve / brillante / protégée… */
.swap { font-style: normal; color: var(--red); display: inline-block; position: relative; }
.swap.out { animation: swap-out .35s var(--ease) forwards; }
.swap.in { animation: swap-in .5s var(--spring); }
@keyframes swap-out { to { transform: translateY(-60%); opacity: 0; filter: blur(4px); } }
@keyframes swap-in { from { transform: translateY(60%); opacity: 0; filter: blur(4px); } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 32ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.in-load { opacity: 0; transform: translateY(16px); animation: fade-up .8s var(--ease) forwards; animation-delay: var(--d); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.scratch-teaser { display: inline-flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem .7rem .7rem; border-radius: var(--r-md); background: var(--white); border: 1px dashed #b9c0ca; text-decoration: none; font-size: .92rem; line-height: 1.3; transition: transform .4s var(--spring), box-shadow .3s; }
.scratch-teaser:hover { transform: rotate(-1.5deg) scale(1.03); box-shadow: 0 16px 30px -18px rgba(15,28,46,.5); }
.foil-mini { width: 54px; height: 40px; border-radius: 8px; background: linear-gradient(115deg, var(--foil-a), var(--foil-b) 45%, var(--foil-c) 55%, var(--foil-b)); background-size: 250% 100%; animation: foil 2.8s ease-in-out infinite; }
@keyframes foil { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }

/* pile de cartes photo */
.deck { position: relative; height: min(64vh, 560px); perspective: 1200px; }
.card {
  position: absolute; left: 50%; top: 50%; width: min(64%, 330px); aspect-ratio: 4 / 5; margin: 0;
  border-radius: var(--r-lg); overflow: hidden; background: #dde2e8; border: 6px solid var(--white);
  box-shadow: 0 30px 60px -25px rgba(15,28,46,.45);
  transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--r)); cursor: pointer;
  transition: transform .8s var(--spring), z-index 0s .3s;
  animation: deal .9s var(--spring) both; animation-delay: calc(.4s + var(--i) * .15s);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes deal { from { opacity: 0; transform: translate(-50%, 30%) rotate(calc(var(--r) * -3)) scale(.8); } to { opacity: 1; } }
.deck.spread .card:nth-child(1) { transform: translate(-50%, -50%) translateX(-34%) rotate(-14deg); }
.deck.spread .card:nth-child(2) { transform: translate(-50%, -50%) translateX(32%) rotate(12deg); }
.card.to-back { animation: to-back .8s var(--ease); }
@keyframes to-back { 45% { transform: translate(-50%, -50%) translateX(75%) rotate(18deg); } }
.sticker {
  position: absolute; right: 2%; top: 6%; z-index: 10; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--red); color: #fff; font: 800 1.05rem/1 var(--display); transform: rotate(12deg);
  box-shadow: 0 12px 30px -10px rgba(227,38,43,.6); animation: pop 1s var(--spring) 1.2s both, wobble 5s ease-in-out 2.4s infinite;
}
@keyframes pop { from { transform: rotate(-30deg) scale(0); } }
@keyframes wobble { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(4deg) scale(1.05); } }

/* ---------- Bande ---------- */
.ribbon { background: var(--ink); color: #fff; overflow: hidden; padding: 1rem 0; transform: rotate(-1.5deg); margin: 1rem -2vw; }
.ribbon-track { display: flex; gap: 1.6rem; width: max-content; align-items: center; animation: slide 30s linear infinite; }
.ribbon span { font: 800 clamp(1.4rem, 3vw, 2.2rem)/1 var(--display); white-space: nowrap; }
.ribbon b { color: var(--red); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Offre à gratter ---------- */
.offer { padding-block: 6rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.offer-intro p { color: var(--muted); margin-bottom: 1.6rem; font-size: 1.1rem; }
.countdown { display: flex; gap: .5rem; }
.countdown div { background: var(--ink); color: #fff; border-radius: 12px; padding: .6rem .5rem; min-width: 64px; text-align: center; }
.countdown b { display: block; font: 900 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown b.tick { animation: tick .45s var(--spring); }
@keyframes tick { from { transform: translateY(-50%) scale(.8); opacity: 0; } }
.countdown small { font-size: .72rem; opacity: .7; }
.fine { grid-column: 2; color: var(--muted); font-size: .85rem; margin-top: -1.8rem; }

.ticket {
  position: relative; display: grid; grid-template-columns: 1fr 120px; border-radius: var(--r-lg);
  background: var(--white);
  /* encoches du ticket */
  -webkit-mask: radial-gradient(circle 16px at calc(100% - 120px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 16px at calc(100% - 120px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at calc(100% - 120px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 16px at calc(100% - 120px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform .5s var(--spring);
}
.ticket.win { animation: win .7s var(--spring); }
@keyframes win { 30% { transform: scale(1.04) rotate(-1deg); } 60% { transform: scale(.99) rotate(.5deg); } }
.ticket-main { padding: 1.4rem; display: grid; gap: 1rem; }
.scratch { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 250px; touch-action: none; user-select: none; }
.prize { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .5rem; padding: 1.6rem;
  background: radial-gradient(120% 90% at 100% 0, #ffe1e2, transparent 60%), repeating-linear-gradient(45deg, #fff 0 14px, #fff7f7 14px 28px); }
.prize-badge { background: var(--red); color: #fff; font-weight: 700; font-size: .82rem; padding: .3rem .8rem; border-radius: 999px; }
.prize-title { font: 900 clamp(1.9rem, 4vw, 2.9rem)/.95 var(--display); }
.prize-text { color: var(--muted); max-width: 36ch; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .7s; }
.scratch canvas:active { cursor: grabbing; }
.scratch.done canvas { opacity: 0; pointer-events: none; }
.scratch-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .6rem; pointer-events: none; font: 800 1.4rem var(--display); color: #4c5563; transition: opacity .3s; }
.scratch.touched .scratch-hint { opacity: 0; }
.coin { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe89a, #d9a515 60%, #a8790b); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); animation: scrub 1.4s ease-in-out infinite; }
@keyframes scrub { 0%, 100% { transform: translate(-8px, 4px) rotate(-20deg); } 50% { transform: translate(8px, -4px) rotate(20deg); } }
.ticket-after { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ticket-after .btn-red { opacity: .35; pointer-events: none; transition: opacity .4s; }
.ticket.won .ticket-after .btn-red { opacity: 1; pointer-events: auto; animation: nudge 1.6s var(--spring) .3s 2; }
@keyframes nudge { 30% { transform: scale(1.06); } 60% { transform: scale(.98); } }
.ticket.won [data-reveal-all] { display: none; }
.ticket-stub { border-left: 2px dashed var(--line); display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 1.4rem .6rem; background: var(--ink); color: #fff; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.stub-brand { writing-mode: vertical-rl; transform: rotate(180deg); font: 900 1.7rem/1 var(--display); }
.stub-no { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .75rem; opacity: .6; letter-spacing: .08em; }
.shaving { position: fixed; z-index: 90; width: 5px; height: 5px; border-radius: 2px; background: #aab2bc; pointer-events: none; }
.confetti { position: fixed; z-index: 300; width: 9px; height: 14px; pointer-events: none; border-radius: 2px; }

/* ---------- Services ---------- */
.services { padding-block: 3rem 6rem; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { position: relative; border: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; background: #dde2e8; text-align: left; transition: transform .5s var(--spring); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,28,46,.85)); }
.tile-txt { position: absolute; left: 1.1rem; right: 3.5rem; bottom: 1.1rem; z-index: 2; color: #fff; }
.tile-txt strong { display: block; font: 900 2.2rem/1 var(--display); }
.tile-txt small { font-size: .9rem; opacity: .85; }
.plus { position: absolute; right: 1rem; bottom: 1.1rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: #fff; transition: transform .5s var(--spring), background-color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); }
.plus::after { transform: rotate(90deg); }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); }
.tile:hover img { transform: scale(1.08); }
.tile:hover .plus { transform: rotate(90deg) scale(1.1); background: var(--red); }
.tile:hover .plus::before, .tile:hover .plus::after { background: #fff; }

/* ---------- Galerie en défilement ---------- */
.gallery { padding-bottom: 6rem; overflow: hidden; }
.strip { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 1rem; width: max-content; animation: slide 45s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.shot { border: 0; padding: 0; width: clamp(200px, 22vw, 290px); aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: #dde2e8; transition: transform .5s var(--spring); }
.shot:nth-child(even) { transform: translateY(24px) rotate(1.2deg); }
.shot:nth-child(odd) { transform: rotate(-1.2deg); }
.shot:hover { transform: scale(1.04) rotate(0); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Horaires ---------- */
.hours { padding-block: 5rem; }
.hours-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1.2rem; align-items: stretch; }
.now-card, .week, .where { background: var(--white); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: 0 1px 0 var(--line); }
.now-card { position: relative; display: grid; place-items: center; min-height: 280px; background: var(--ink); color: #fff; }
.ring { width: min(230px, 100%); transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s var(--ease); }
.now-card.closed .ring-fg { stroke: var(--red); }
.now-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 1rem; }
.now-state { font: 900 3rem/1 var(--display); }
.now-detail { font-size: .92rem; opacity: .8; max-width: 16ch; margin-inline: auto; }
.week { list-style: none; margin: 0; display: grid; gap: .15rem; }
.week li { display: flex; justify-content: space-between; padding: .6rem .8rem; border-radius: 10px; font-variant-numeric: tabular-nums; }
.week li.today { background: var(--ink); color: #fff; font-weight: 700; animation: today 1s var(--spring); }
@keyframes today { from { transform: scale(.94); } }
.week li.off { color: #9aa3ae; }
.where { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.where p { font-size: 1.05rem; margin-bottom: .4rem; }
.where .pay { font-size: .85rem; color: var(--muted); margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { padding-block: 4rem 6rem; }
.faq-list { max-width: 820px; display: grid; gap: .6rem; }
.qa { background: var(--white); border-radius: var(--r-md); box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; }
.qa[open] { box-shadow: 0 16px 40px -24px rgba(15,28,46,.45); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 700; font-size: 1.08rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: transform .5s var(--spring), background-color .3s; }
.qa i::before, .qa i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
.qa i::after { transform: rotate(90deg); }
.qa[open] i { transform: rotate(180deg); background: var(--red); }
.qa[open] i::before, .qa[open] i::after { background: #fff; }
.qa[open] i::after { transform: rotate(0); }
.a { overflow: hidden; }
.a p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Devis ---------- */
.quote { background: var(--ink); color: #fff; padding-block: 6rem; border-radius: 40px 40px 0 0; }
.quote-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.quote p { color: #b6c0cc; font-size: 1.1rem; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field span, .chips legend { font-weight: 600; font-size: .92rem; color: #d8dee6; }
.field input { width: 100%; border: 2px solid transparent; border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; padding: .95rem 1.1rem; font: 1rem var(--body); transition: border-color .2s, background-color .2s; }
.field input::placeholder { color: #7f8a98; }
.field input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.12); }
.field.bad input { border-color: #ff6b6b; animation: shake .35s; }
.err { font-style: normal; color: #ff9b9b; font-size: .85rem; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { margin-bottom: .5rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 2px solid rgba(255,255,255,.2); font-weight: 600; font-size: .92rem; transition: all .3s var(--spring); }
.chips input:checked + span { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: #b6c0cc; text-align: center; padding: 3rem var(--gut) calc(2rem + 80px); border-top: 1px solid rgba(255,255,255,.08); }
.foot img { width: 170px; margin: 0 auto 1.4rem; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 1.6rem; margin-bottom: 1rem; }
.foot-links a { color: #fff; }
.copy { font-size: .85rem; margin-bottom: 1.6rem; }
.powered {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: #d8dee6; text-decoration: none; font-size: .9rem; overflow: hidden; isolation: isolate;
  transition: color .3s, border-color .3s, transform .4s var(--spring);
}
.powered strong { color: #fff; font-weight: 700; }
.powered::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--red), #ff6a3d); transform: translateX(-101%); transition: transform .5s var(--ease); }
.powered::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); background-size: 250% 100%; animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
.powered:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.powered:hover::before { transform: none; }

/* ---------- Popups ---------- */
.modal { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--white); color: var(--ink); width: min(460px, calc(100vw - 1.5rem)); max-height: calc(100svh - 1.5rem); overflow: auto; box-shadow: 0 40px 100px -30px rgba(15,28,46,.6); }
.modal::backdrop { background: rgba(15,28,46,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal[open] { animation: m-in .6s var(--spring); }
.modal[open]::backdrop { animation: bd .35s ease; }
.modal.closing { animation: m-out .28s ease-in forwards; }
@keyframes m-in { from { opacity: 0; transform: translateY(40px) scale(.9) rotate(-2deg); } }
@keyframes m-out { to { opacity: 0; transform: translateY(24px) scale(.95); } }
@keyframes bd { from { opacity: 0; } }
.modal h2 { font: 900 2.2rem/.95 var(--display); margin: 0 0 .6rem; }
.x { position: absolute; right: .7rem; top: .7rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; transition: transform .4s var(--spring); }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; margin: -1px 0 0 -7.5px; background: var(--ink); transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.x:hover { transform: rotate(90deg); }
.mp { padding: 2.4rem 2rem 1.8rem; text-align: center; display: grid; justify-items: center; gap: .6rem; background: radial-gradient(90% 60% at 50% 0, #ffe5e6, transparent); }
.mp p { color: var(--muted); }
.mp .btn { margin-top: .6rem; }
.mp-emoji { font-size: 3.4rem; line-height: 1; animation: bounce 1.2s var(--spring) .3s infinite alternate; }
@keyframes bounce { to { transform: translateY(-8px) rotate(8deg); } }
.modal-svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.modal-svc[open] img { animation: zoomout 1.2s var(--ease); }
@keyframes zoomout { from { transform: scale(1.25); } }
.ms { padding: 1.6rem 1.8rem 1.8rem; }
.ms ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.ms li { display: flex; gap: .6rem; align-items: center; opacity: 0; transform: translateX(-12px); }
.modal[open] .ms li { animation: li .5s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .08s); }
@keyframes li { to { opacity: 1; transform: none; } }
.ms li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e8f7ef; color: var(--green); font-weight: 700; font-size: .8rem; }
.modal-lb { background: transparent; box-shadow: none; width: fit-content; max-width: calc(100vw - 1rem); overflow: visible; }
.modal-lb img { max-height: calc(100svh - 4rem); width: auto; border-radius: var(--r-md); transition: opacity .2s, transform .3s var(--ease); }
.modal-lb img.swap { opacity: 0; transform: scale(.95); }
.lb { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; transition: transform .3s var(--spring); }
.lb::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; }
.lb.prev { left: .6rem; } .lb.next { right: .6rem; }
.lb.prev::before { transform: translate(-30%, -50%) rotate(135deg); } .lb.next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.lb:hover { transform: scale(1.1); }
.modal-ok { padding: 2.4rem 2rem 2rem; text-align: center; width: min(380px, calc(100vw - 1.5rem)); }
.modal-ok p { color: var(--muted); margin-bottom: 1.4rem; }
.check { width: 80px; height: 80px; margin: 0 auto 1rem; display: block; }
.check circle { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; }
.check path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal-ok[open] .check circle { animation: draw .6s var(--ease) .15s forwards; }
.modal-ok[open] .check path { animation: draw .4s var(--ease) .65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Notification & barre mobile ---------- */
.toast { position: fixed; right: var(--gut); bottom: 1.2rem; z-index: 60; display: flex; align-items: center; gap: .7rem; padding: .7rem .7rem .7rem 1rem; border-radius: 999px; background: var(--white); box-shadow: 0 16px 40px -16px rgba(15,28,46,.5); font-size: .9rem; font-weight: 600; transform: translateY(160%) scale(.9); opacity: 0; transition: transform .6s var(--spring), opacity .3s; }
.toast.show { transform: none; opacity: 1; }
.x-sm { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; }
.x-sm::before, .x-sm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--ink); transform: rotate(45deg); }
.x-sm::after { transform: rotate(-45deg); }
.dock { display: none; }

/* ---------- Apparitions ---------- */
.up { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--st, 0s); }
.up.seen { opacity: 1; transform: none; }
.tile.up { transform: translateY(50px) rotate(2deg); }
.tile.up.seen { transform: none; }
.ticket-wrap { filter: drop-shadow(0 30px 40px rgba(15,28,46,.22)); }
.ticket-wrap.up { transform: translateY(50px) rotate(-3deg); transition-timing-function: var(--spring); }
.ticket-wrap.up.seen { transform: rotate(-1deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 2rem; }
  .deck { height: 440px; }
  .offer { grid-template-columns: 1fr; gap: 2rem; }
  .fine { grid-column: 1; margin-top: -.8rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .hours-grid { grid-template-columns: 1fr 1fr; }
  .now-card { grid-row: span 2; }
  .quote-box { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 760px) {
  .menu, .top > .btn { display: none; }
  .pill-status { font-size: .8rem; }
  .logo img { width: 110px; }
  .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero-cta .btn { flex: 1; }
  .deck { height: 380px; }
  .card { width: 58%; }
  .sticker { width: 92px; height: 92px; font-size: .9rem; right: 0; }
  .ticket { grid-template-columns: 1fr 64px;
    -webkit-mask: radial-gradient(circle 12px at calc(100% - 64px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 64px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle 12px at calc(100% - 64px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 64px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
  .ticket-main { padding: 1rem; }
  .stub-brand { font-size: 1.2rem; }
  .scratch { min-height: 230px; }
  .countdown div { flex: 1; min-width: 0; }
  .tile-txt { left: .8rem; right: 3rem; bottom: .9rem; }
  .tile-txt strong { font-size: 1.6rem; }
  .tile-txt small { font-size: .8rem; }
  .plus { width: 32px; height: 32px; right: .7rem; bottom: .9rem; }
  .hours-grid { grid-template-columns: 1fr; }
  .now-card { grid-row: auto; min-height: 250px; }
  .toast { left: .8rem; right: .8rem; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
  .toast-txt { flex: 1; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 55;
    padding: 6px; border-radius: 999px; background: rgba(15,28,46,.92); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -12px rgba(15,28,46,.6);
    transform: translateY(150%); transition: transform .6s var(--spring);
  }
  .dock.show { transform: none; }
  .dock a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
  .dock a.main { background: var(--red); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .up, .in-load, .card { opacity: 1 !important; transform: none; }
  .hero-title .ln > span { transform: none; }
  .ms li { opacity: 1; transform: none; }
  .strip-track, .ribbon-track { animation: none; }
  .check circle, .check path { stroke-dashoffset: 0; }
}
