/* trouve-le-prix.noret.eu — identité de l'app : corail #FF6B6B, fond rose pâle (pink 50),
   cartes blanches arrondies, vert/rouge pour les réponses, et le dégradé irisé de l'icône. */

:root {
  --accent: #ff6b6b;
  --accent-dark: #e94f5a;
  --pink50: #fce4ec;
  --pink-bg: #fff6f8;
  --ink: #1e1b3a;
  --ink-2: #4a4766;
  --muted: #7d7a93;
  --line: #f1d9e1;
  --card: #fff;
  --green: #4caf50;
  --red: #f44336;
  --orange: #ff9800;
  --blue: #2196f3;
  --c-food: #f8bbd0;
  --c-car: #90caf9;
  --c-tech: #a5d6a7;
  --c-clothes: #ffe082;
  --c-random: #c8e6c9;
  --iris: linear-gradient(100deg, #ff6b6b 0%, #c86bfa 45%, #4f8dff 75%, #2ec5d3 100%);
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(110, 40, 80, .22), 0 2px 6px rgba(110, 40, 80, .06);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--pink-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.center + .lead, h2.center + .lead { margin-inline: auto; text-align: center; }
.shine {
  background: var(--iris);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #4f8dff; outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 248, .82);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(241, 217, 225, .7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.12rem; white-space: nowrap; }
.brand img { border-radius: 9px; box-shadow: 0 2px 6px rgba(30, 27, 58, .2); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent-dark); }
.btn-mini {
  background: var(--accent); color: #fff !important; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(255, 107, 107, .7);
}
.btn-mini:hover { background: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  border-radius: 16px; padding: 13px 22px; font-size: 1rem; transition: transform .15s, background .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(255, 107, 107, .8); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-1px); }
.store-badge img { height: 54px; width: auto; }
.store-badge--center { display: inline-block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: #ffc1d6; top: -160px; left: -140px; }
.hero::after { width: 560px; height: 560px; background: #c9d8ff; bottom: -220px; right: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-facts li {
  background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--ink-2);
  box-shadow: 0 2px 8px -3px rgba(110, 40, 80, .18);
}
.hero-facts b { color: var(--accent-dark); }
.hero-visual { display: flex; flex-direction: column; align-items: center; scroll-margin-top: 80px; }
.hero-hint { margin: 18px 0 0; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 107, 107, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 107, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); } }

/* ---------- Phone ---------- */
.phone {
  width: 318px; padding: 11px; border-radius: 52px; background: #15132a;
  box-shadow: 0 40px 80px -30px rgba(30, 27, 58, .55), 0 0 0 2px #2c2949 inset;
  position: relative;
}
.phone::after { /* reflet irisé du bord, comme l'icône */
  content: ""; position: absolute; inset: -3px; border-radius: 55px; z-index: -1;
  background: var(--iris); opacity: .55; filter: blur(16px);
}
.phone-screen {
  border-radius: 42px; overflow: hidden; background: var(--pink50);
  height: 650px; display: flex; flex-direction: column; position: relative;
}
.ios-status {
  display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 6px 26px 0 30px;
  font-size: 14px; font-weight: 700; color: #111; flex: none;
}
.ios-status svg { width: 46px; height: 12px; fill: #111; }
.ios-island { width: 92px; height: 26px; border-radius: 20px; background: #000; }

/* ---------- Écran de jeu (démo) ---------- */
.game { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.g-bar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 0 14px; height: 44px; flex: none; }
.g-back svg { width: 22px; height: 22px; fill: var(--accent); }
.g-title { text-align: center; color: var(--accent); font-weight: 800; font-size: 19px; }
.g-count { text-align: right; color: var(--accent); font-weight: 700; font-size: 15px; }
.g-question { flex: 1; display: flex; flex-direction: column; padding: 6px 18px 18px; min-height: 0; }
.g-photo {
  position: relative; width: 178px; height: 178px; margin: 4px auto 0; border-radius: 20px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 10px rgba(158, 158, 158, .25); flex: none;
}
.g-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.g-photo img.is-loading { opacity: 0; }
.g-flash { position: absolute; inset: 0; opacity: 0; transition: opacity .15s; }
.game.is-correct .g-flash { background: rgba(76, 175, 80, .5); opacity: 1; }
.game.is-wrong .g-flash { background: rgba(244, 67, 54, .5); opacity: 1; }
.g-num { text-align: center; font-size: 13px; letter-spacing: .03em; margin: 10px 0 0; color: #000; }
.g-streak { text-align: center; height: 22px; margin: 0; font-size: 13px; font-weight: 700; color: var(--orange); }
.g-desc {
  text-align: center; font-weight: 700; font-size: 19px; line-height: 1.25; margin: 0; color: #000;
  min-height: 48px; display: flex; align-items: center; justify-content: center;
}
.g-prices { margin-top: auto; display: flex; flex-direction: column; gap: 9px; padding-top: 10px; }
.price {
  font: inherit; font-size: 18px; font-weight: 700; color: #000; background: #fff; border: 0; border-radius: 16px;
  padding: 9px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 2px 2px rgba(0, 0, 0, .06);
  cursor: pointer; transition: transform .1s, background .2s, color .2s;
}
.price:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.price:not(:disabled):active { transform: scale(.98); }
.price:disabled { cursor: default; }
.game[data-state="static"] .price:disabled { cursor: pointer; } /* avant chargement du JS */
.price.is-real { background: var(--green); color: #fff; }
.price.is-wrong { background: var(--red); color: #fff; }
.price.is-dim { color: rgba(0, 0, 0, .38); }
.game.shake .g-photo { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Fin de partie de la démo */
.g-score { flex: 1; overflow-y: auto; padding: 4px 18px 18px; text-align: center; scrollbar-width: none; }
.g-score::-webkit-scrollbar { display: none; }
.g-score .r-trophy { margin-top: 2px; }
.g-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(transparent, var(--pink50) 30%); }
.g-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 16px; font-weight: 700;
  border: 0; border-radius: 16px; padding: 12px 6px; cursor: pointer; text-decoration: none;
}
.g-btn svg { width: 20px; height: 20px; fill: currentColor; }
.g-btn--replay { background: var(--accent); color: #fff; }
.g-btn--app { background: #1e1b3a; color: #fff; }
.g-more { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Écran récap (mockup + démo) ---------- */
.recap-screen { padding: 4px 16px 16px; text-align: center; overflow: hidden; }
.r-trophy { width: 64px; height: 64px; fill: var(--accent); margin: 6px auto 8px; }
.r-score { font-size: 26px; font-weight: 800; color: var(--accent); margin: 0; line-height: 1.2; }
.r-msg { font-size: 16px; color: #9e9e9e; margin: 6px 0 0; }
.r-streak { font-size: 14px; color: var(--orange); font-weight: 700; margin: 4px 0 0; }
.r-head { text-align: left; font-weight: 800; font-size: 17px; margin: 16px 0 6px; color: #000; }
.rt {
  display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border-radius: 16px;
  padding: 8px; margin: 6px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.rt img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.rt div { flex: 1; min-width: 0; line-height: 1.25; }
.rt b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt .ok, .rt s { display: block; font-size: 12px; }
.rt span.ok { color: var(--green); font-weight: 700; }
.rt s { color: var(--red); }
.rt-ic { width: 24px; height: 24px; flex: none; }
.rt-ic.ok { fill: var(--green); }
.rt-ic.ko { fill: var(--red); }

/* ---------- Écran menu (mockup) ---------- */
.phone-screen:has(.menu-screen) { background: #fef7ff; }
.menu-screen { padding: 22px 16px 16px; }
.m-title { font-size: 27px; font-weight: 800; color: var(--accent); margin: 0; line-height: 1.2; }
.m-sub { color: #9e9e9e; font-size: 14px; margin: 0 0 14px; }
.lvl {
  display: flex; align-items: center; gap: 8px; border-radius: 18px; padding: 13px 14px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.lvl--random { background: var(--c-random); }
.lvl--food { background: var(--c-food); }
.lvl--car { background: var(--c-car); }
.lvl--tech { background: var(--c-tech); }
.lvl--clothes { background: var(--c-clothes); }
.lvl-txt { flex: 1; line-height: 1.2; }
.lvl-txt small { display: block; color: #8a8a8a; font-size: 12px; }
.lvl-txt b { display: block; font-size: 19px; margin: 2px 0 4px; }
.lvl-txt em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.lvl-play { width: 24px; height: 24px; fill: var(--blue); }
.lvl-ic { width: 40px; height: 40px; fill: var(--orange); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.how { background: #fff; }
.steps { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--pink-bg); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.steps p { color: var(--ink-2); margin: 0; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px;
  background: var(--iris); color: #fff; font-weight: 800; font-size: 1.2rem;
}

.themes-grid, .recap-grid { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.recap-grid { grid-template-columns: 1fr auto; }
.phone--side { width: 300px; }
.phone--side .phone-screen { height: 610px; }
.cat-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.cat {
  display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 18px; padding: 14px 18px;
  box-shadow: 0 2px 10px -4px rgba(110, 40, 80, .18);
}
.cat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cat-ic svg { width: 28px; height: 28px; fill: var(--orange); }
.cat--food .cat-ic { background: var(--c-food); }
.cat--car .cat-ic { background: var(--c-car); }
.cat--tech .cat-ic { background: var(--c-tech); }
.cat--clothes .cat-ic { background: var(--c-clothes); }
.cat--random .cat-ic { background: var(--c-random); }
.cat b { display: block; font-size: 1.05rem; }
.cat small { color: var(--muted); font-size: .92rem; }

.features { background: #fff; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.feat { background: var(--pink-bg); border-radius: var(--radius); padding: 26px; }
.feat p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; font-size: 24px; }
.feat-ic svg { width: 26px; height: 26px; fill: #fff; }
.fi-fire { background: #ffe9cc; }
.fi-trophy { background: var(--accent); }
.fi-check { background: var(--green); }
.fi-vibe { background: #8c6bfa; }
.fi-replay { background: #4f8dff; }
.fi-lock { background: #1e1b3a; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 34px; position: relative; font-weight: 600; color: var(--ink-2); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800;
}

.cta { padding-top: 24px; }
.cta-box {
  text-align: center; border-radius: 32px; padding: 56px 24px; color: #fff; position: relative; overflow: hidden;
  background: #1e1b3a;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; background: var(--iris); opacity: .35; mix-blend-mode: screen;
}
.cta-box > * { position: relative; }
.cta-icon { margin: 0 auto 20px; border-radius: 24px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.cta-box p { color: rgba(255, 255, 255, .8); }

/* ---------- Pages de contenu ---------- */
.doc-hero { padding: 64px 0 18px; max-width: 820px; }
.doc { max-width: 820px; padding-bottom: 80px; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc li { margin-bottom: .35em; }
.updated { color: var(--muted); font-size: .92rem; }
.callout {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 18px 20px; margin: 1.6em 0;
  box-shadow: 0 2px 10px -4px rgba(110, 40, 80, .18); border-left: 5px solid var(--accent);
}
.callout span { font-size: 1.4rem; line-height: 1.3; }
.callout p { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: .95rem; box-shadow: 0 2px 10px -4px rgba(110, 40, 80, .18); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--pink50); }
.data-table tr:last-child td { border-bottom: 0; }
.faq details { background: #fff; border-radius: 16px; margin: 10px 0; box-shadow: 0 2px 10px -5px rgba(110, 40, 80, .2); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }
.notfound { text-align: center; padding-bottom: 100px; margin-inline: auto; }
.notfound .lead { margin-inline: auto; }
.big404 { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; margin: 0 0 .1em; letter-spacing: -.04em; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin: 10px 0 16px; }
.footer-title { font-weight: 800; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer li a { color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent-dark); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-bottom p { margin: 0 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .themes-grid, .recap-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 36px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta, .hero-facts { justify-content: center; }
  .themes-grid .phone, .recap-grid .phone { margin-inline: auto; }
  .themes-grid .phone { order: 2; }
  .steps, .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hide-sm { display: none; }
  .main-nav { gap: 14px; }
  .brand { font-size: 1.02rem; }
  .steps, .feat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .phone--side { display: none; }
}
@media (max-width: 420px) {
  .main-nav a[href="/support/"] { display: none; }
}
@media (max-width: 360px) {
  .phone { width: 296px; }
  .phone-screen { height: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
