/* =========================
   THEME & VARIABLES - Couleurs identiques à l'app mobile
========================= */
:root {
  --bg-primary: #2a1a5e;
  --bg-gradient: linear-gradient(135deg, #4a148c 0%, #2a1a5e 50%, #1a0033 100%);

  --glass-bg: rgba(45, 25, 90, 0.4);
  --glass-border: rgba(255, 215, 0, 0.35);

  --accent-yellow: #FFD700;
  --accent-orange: #FF8C00;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);

  --glow-yellow: rgba(255, 215, 0, 0.6);
  --glow-orange: rgba(255, 140, 0, 0.6);

  --radius-lg: 28px;
  --radius-xl: 32px;
}

/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-gradient);
  opacity: 0.6;
  z-index: -2;
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, transparent 30%, rgba(0,0,0,0.5) 100%);
  z-index: -1;
  pointer-events: none;
}

/* =========================
   GLASS CARD
========================= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  will-change: transform;
}

/* Glow helpers */
.glow-yellow { box-shadow: 0 0 40px var(--glow-yellow); }
.glow-orange { box-shadow: 0 0 40px var(--glow-orange); }

/* =========================
   HERO LAYOUT — point focal unique
   (texte + CTA à gauche, téléphone hero à droite,
   la carte "paiement" flotte en incrustation sur le téléphone)
========================= */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5.5rem 1.5rem 3rem;
    text-align: center;
  }
}

/* =========================
   HERO TEXT
========================= */
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

@media (max-width: 1024px) {
  .hero-content { align-items: center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.35);
  background: rgba(255,215,0,0.08);
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  text-align: left;
}

@media (max-width: 1024px) { .hero-title { text-align: center; } }

.hero-title span {
  background: linear-gradient(to right, var(--accent-yellow), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 2.5rem;
  text-align: left;
}

@media (max-width: 1024px) { .hero-subtitle { margin: 0 auto 2.5rem; text-align: center; } }

/* Preuve sociale légère sous le CTA */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  color: var(--text-secondary);
  font-size: .9rem;
  flex-wrap: wrap;
}

.trust-bar strong { color: var(--accent-yellow); font-size: 1.1rem; }

/* =========================
   CTA BUTTONS — hiérarchie claire
   (1 action forte, 1 action discrète)
========================= */
.cta-buttons {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

@media (max-width: 1024px) { .cta-buttons { justify-content: center; } }

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #000;
  padding: 1rem 2.4rem;
  box-shadow: 0 0 28px var(--glow-yellow);
}

.btn-primary:hover { transform: translateY(-3px) scale(1.02); opacity: .98; }

.btn-secondary {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 1rem 2.4rem;
}

.btn-secondary:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); }

/* Focus clavier visible partout */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 3px;
}

/* =========================
   HERO VISUAL — téléphone principal + incrustation
========================= */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .mockup-img {
  max-width: 340px;
  width: 100%;
  aspect-ratio: 606 / 1280; /* dimensions intrinsèques de mockup-home.png */
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.floating-card {
  position: absolute;
  left: -1.5rem;
  bottom: 4rem;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  min-width: 200px;
}

@media (max-width: 640px) {
  .floating-card { left: 50%; transform: translateX(-50%); bottom: -1.5rem; }
}

.floating-card .payment-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-bottom: .35rem;
}

.floating-card .payment-amount {
  font-size: 1.6rem;
  font-weight: 900;
}

.floating-card .payment-caption {
  font-size: .7rem;
  color: var(--text-secondary);
  margin-top: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Bande "autres écrans" — support, pas concurrence visuelle du hero */
.screens-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.screens-strip .screen-thumb {
  width: 150px;
  opacity: .85;
  transition: transform .25s ease, opacity .25s ease;
}

.screens-strip .screen-thumb:hover { transform: translateY(-6px); opacity: 1; }

.screens-strip img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.18);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.screens-strip .screen-label {
  text-align: center;
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .6rem;
}

/* =========================
   FEATURES
========================= */
.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.feature-card {
  transition: transform .25s ease, border-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,215,0,0.6);
}

/* =========================
   DOWNLOAD
========================= */
.download-section {
  padding: 7rem 2rem 8rem;
  text-align: center;
}

.download-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.download-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.store-badge { height: 70px; transition: transform .2s ease; }
.store-badge:hover { transform: translateY(-4px); }

.qr-code {
  width: 220px;
  height: 220px;
  border: 6px solid var(--accent-yellow);
  border-radius: 22px;
  box-shadow: 0 0 50px var(--glow-yellow);
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   ADMIN FIXES (gestion_contenu / settings / dashboard)
   Objectif:
   - Rendre les champs d'édition lisibles (texte noir sur fond clair OU blanc sur fond sombre)
   - Ne pas casser la landing page
   - Éviter le "opacity:1 sur tout" (ça peut casser des effets/GSAP)
========================================================= */

.admin-page {
  color: var(--text-primary);
}

/* Chip + boutons (si utilisés en admin) */
.admin-page .chip{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.55rem .85rem;border-radius:999px;
  border:1px solid rgba(255,215,0,0.25);
  background: rgba(45,25,90,0.25);
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  font-weight:800;font-size:.95rem;white-space:nowrap;
}

.admin-page .btn{
  border-radius: 999px;
  padding: .75rem 1.1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap:.5rem;
}

.admin-page .btn.btn-gold{
  background: linear-gradient(45deg, #FFD700, #FFC107);
  color:#000;
  box-shadow: 0 0 28px rgba(255,215,0,.18);
}

.admin-page .btn.btn-ghost{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.10);
}

.admin-page .btn.btn-danger{
  background: rgba(255,60,60,.12);
  border: 1px solid rgba(255,60,60,.35);
  color: rgba(255,255,255,.92);
}

/* ✅ Champs formulaire: fond sombre + texte blanc (lisible) */
.admin-page .input,
.admin-page input,
.admin-page textarea,
.admin-page select {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  caret-color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
  border-radius: 18px;
}

/* Focus lisible */
.admin-page .input:focus,
.admin-page input:focus,
.admin-page textarea:focus,
.admin-page select:focus {
  outline: none !important;
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.18) !important;
}

/* Placeholders */
.admin-page .input::placeholder,
.admin-page input::placeholder,
.admin-page textarea::placeholder {
  color: rgba(255,255,255,0.55) !important;
}

/* Important: textarea parfois "blanchit" sur Chrome */
.admin-page textarea {
  -webkit-text-fill-color: #fff !important;
}

/* ✅ Tables: garder la couleur (sans écraser tout le site) */
.admin-page table { width: 100%; }
.admin-page th { color: rgba(255,255,255,0.65) !important; font-weight: 900; }
.admin-page td { color: rgba(255,255,255,0.88) !important; }

/* ✅ Fix autofill Chrome (sinon texte illisible) */
.admin-page input:-webkit-autofill,
.admin-page textarea:-webkit-autofill,
.admin-page select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0px 1000px rgba(0,0,0,0.35) inset !important;
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
}

/* ❌ On ne met PAS opacity:1 sur tout (ça casse les animations/effets) */
/* (supprimé volontairement) */

/* =========================================================
   LOGIN — même design system que la landing (au lieu d'un
   <style> dupliqué dans login.html)
========================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 3rem;
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7e22ce, #4a148c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-yellow);
  border: 3px solid var(--accent-yellow);
  margin: 0 auto 1.5rem;
}

.auth-field { margin-bottom: 1.75rem; }

.auth-field label {
  display: block;
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .6rem;
}

.auth-field input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,215,0,0.35);
  border-radius: 16px;
  padding: .9rem 1.2rem;
  color: #fff;
  font-size: 1rem;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 4px rgba(255,215,0,0.18);
}

.auth-flash {
  padding: .9rem 1.1rem;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.auth-flash.error { background: rgba(153,27,27,0.4); color: #fca5a5; border: 1px solid rgba(239,68,68,0.5); }
.auth-flash.success { background: rgba(20,83,45,0.4); color: #86efac; border: 1px solid rgba(34,197,94,0.5); }

.auth-submit { font-size: 1.15rem; padding: 1rem; }
