/* FlashDeal — getflashdeal.com
   Palette reprise d'AppColors (app Flutter) */
:root {
  --bg: #0D0D0F;
  --surface: #1C1C1F;
  --border: #3A3A40;
  --text: #F4F4F5;
  --text-2: #A0A0A6;
  --accent: #378ADD;
  --red: #E24B4A;
  --orange: #EF9F27;
  --green: #639922;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 58, 64, 0.5);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.15rem; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .bolt-accent { color: var(--red); }
.main-nav { display: none; gap: 1.6rem; align-items: center; }
.main-nav a { color: var(--text-2); font-size: 0.95rem; font-weight: 600; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.btn-nav {
  background: var(--accent); color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 700;
}
.btn-nav:hover { filter: brightness(1.1); text-decoration: none; }

@media (min-width: 760px) {
  .main-nav { display: flex; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Badges pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.pill-red    { background: rgba(226, 75, 74, 0.14);  color: var(--red);    border-color: rgba(226, 75, 74, 0.35); }
.pill-orange { background: rgba(239, 159, 39, 0.14); color: var(--orange); border-color: rgba(239, 159, 39, 0.35); }
.pill-green  { background: rgba(99, 153, 34, 0.16);  color: #8ec24d;       border-color: rgba(99, 153, 34, 0.4); }
.pill-accent { background: rgba(55, 138, 221, 0.14); color: var(--accent); border-color: rgba(55, 138, 221, 0.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(55, 138, 221, 0.13), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(226, 75, 74, 0.10), transparent 50%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid; gap: 3rem; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.12; font-weight: 900; letter-spacing: -0.02em;
  margin: 1rem 0;
}
.hero-copy h1 .grad {
  background: linear-gradient(90deg, var(--accent), #6db3f2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy .lead {
  color: var(--text-2); font-size: 1.1rem; max-width: 32rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-2); }

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Mockup téléphone ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 82vw;
  background: #060607;
  border: 3px solid var(--border);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(55, 138, 221, 0.08);
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  padding: 14px 12px 18px;
}
.phone-notch {
  width: 90px; height: 8px; border-radius: 999px;
  background: #1C1C1F; margin: 0 auto 12px;
}
.phone-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-inline: 4px;
}
.phone-topbar .app-name { font-weight: 800; font-size: 0.95rem; }
.phone-topbar .app-name span { color: var(--red); }
.phone-topbar .loc {
  font-size: 0.68rem; color: var(--text-2);
  display: flex; align-items: center; gap: 0.25rem;
}

.deal-stack { position: relative; height: 350px; }
.deal-card {
  position: absolute; inset: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease;
}
.deal-card:nth-child(1) { transform: translateY(16px) scale(0.92); opacity: 0.45; }
.deal-card:nth-child(2) { transform: translateY(8px) scale(0.96); opacity: 0.75; }
.deal-card:nth-child(3) { transform: none; opacity: 1; z-index: 2; }
.deal-photo {
  height: 55%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.deal-photo.p1 { background: linear-gradient(135deg, #24344a, #16202e); }
.deal-photo.p2 { background: linear-gradient(135deg, #40272e, #251a20); }
.deal-photo.p3 { background: linear-gradient(135deg, #2c3a22, #1b2417); }
.deal-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.deal-title { font-weight: 700; font-size: 0.95rem; }
.deal-meta { display: flex; align-items: center; justify-content: space-between; }
.deal-price { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.deal-price s { color: var(--text-2); font-weight: 500; font-size: 0.8rem; margin-left: 0.35rem; }
.deal-dist { font-size: 0.72rem; color: var(--text-2); }
.deal-timer {
  position: absolute; top: 10px; right: 10px;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem; font-weight: 800;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.timer-red    { background: rgba(226, 75, 74, 0.9); color: #fff; animation: pulse 1s infinite; }
.timer-orange { background: rgba(239, 159, 39, 0.9); color: #151009; }
.timer-green  { background: rgba(99, 153, 34, 0.9); color: #fff; }
@keyframes pulse { 50% { transform: scale(1.06); } }

.swipe-hints {
  display: flex; justify-content: center; gap: 2.2rem; margin-top: 14px;
}
.swipe-hints span {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); font-size: 1.2rem;
}
.swipe-hints .no { color: var(--red); }
.swipe-hints .fav { color: var(--orange); }
.swipe-hints .yes { color: #8ec24d; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 900; letter-spacing: -0.01em; margin: 0.8rem 0 0.6rem;
}
.section-head p { color: var(--text-2); }

/* Fonctionnalités */
.features-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(55, 138, 221, 0.5); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.1rem;
}
.fi-red    { background: rgba(226, 75, 74, 0.14); }
.fi-accent { background: rgba(55, 138, 221, 0.14); }
.fi-orange { background: rgba(239, 159, 39, 0.14); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-2); font-size: 0.95rem; }

/* Comment ça marche */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  position: relative;
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  background: rgba(55, 138, 221, 0.15); color: var(--accent);
  border: 1px solid rgba(55, 138, 221, 0.4);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-2); font-size: 0.92rem; }

/* Téléchargement */
.download-box {
  background: linear-gradient(160deg, var(--surface), #17171a);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.download-box::before {
  content: "⚡";
  position: absolute; right: -1rem; top: -2.5rem;
  font-size: 11rem; opacity: 0.05; transform: rotate(12deg);
}
.download-box h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; margin-bottom: 0.6rem; }
.download-box p { color: var(--text-2); max-width: 32rem; margin: 0 auto 1.8rem; }
.store-badges { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: #060607; border: 1px solid var(--border);
  border-radius: 14px; padding: 0.65rem 1.3rem;
  color: var(--text); text-align: left;
  opacity: 0.75; cursor: default; position: relative;
}
.store-badge:hover { text-decoration: none; }
.store-badge .sb-icon { font-size: 1.6rem; }
.store-badge .sb-small { display: block; font-size: 0.65rem; color: var(--text-2); }
.store-badge .sb-big { display: block; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.store-badge .soon {
  position: absolute; top: -10px; right: -8px;
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  background: var(--orange); color: #151009;
  padding: 0.15rem 0.55rem; border-radius: 999px;
}

/* Contact */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  max-width: 34rem; margin: 0 auto; text-align: center;
}
.contact-card p { color: var(--text-2); margin-bottom: 1.4rem; }

#contact-form { text-align: left; display: grid; gap: 1rem; }
.form-field { display: grid; gap: 0.35rem; }
.form-field label { font-size: 0.88rem; font-weight: 700; color: var(--text-2); }
.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font: inherit;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.2);
}
.form-field textarea { resize: vertical; min-height: 120px; }
/* Honeypot : hors écran, invisible pour les humains */
.form-trap {
  position: absolute; left: -9999px; top: -9999px;
  opacity: 0; pointer-events: none;
}
#contact-form .btn { justify-self: center; min-width: 12rem; }
#contact-form .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.cf-turnstile { justify-self: center; min-height: 65px; }
.form-status { text-align: center; font-size: 0.92rem; min-height: 1.4em; margin: 0; }
.form-status.ok { color: #8ec24d; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--text-2); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--text-2); font-size: 0.82rem; width: 100%; margin-top: 1rem; }

/* ---------- Pages légales ---------- */
.legal { padding: 3.5rem 0; max-width: 46rem; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 900; margin-bottom: 0.4rem; }
.legal .updated { color: var(--text-2); font-size: 0.85rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 0.7rem; }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--text-2); font-size: 0.97rem; }
.legal ul { padding-left: 1.3rem; margin: 0.6rem 0 1rem; }
.legal li { margin-bottom: 0.35rem; }
.legal strong { color: var(--text); }
.legal .notice {
  background: rgba(239, 159, 39, 0.1);
  border: 1px solid rgba(239, 159, 39, 0.35);
  border-radius: 14px; padding: 0.9rem 1.1rem;
  font-size: 0.9rem; color: var(--orange); margin: 1rem 0;
}
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: left; color: var(--text-2); }
.legal th { color: var(--text); background: var(--surface); }
.table-scroll { overflow-x: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .timer-red { animation: none; }
  html { scroll-behavior: auto; }
}
