*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Palette KITKIT : orange, fuchsia, vert */
:root {
  --orange: #F37D22;
  --orange-light: #ff9d4d;
  --fuchsia: #E91E63;
  --fuchsia-light: #f06292;
  --green: #4CAF50;
  --green-light: #66bb6a;
  --bg: #fffbf8;
  --surface: #fff5f0;
  --text: #1f1a18;
  --text-muted: #5c524c;
  --border: rgba(243, 125, 34, 0.25);
  --glow-orange: rgba(243, 125, 34, 0.4);
  --glow-fuchsia: rgba(233, 30, 99, 0.35);
  --glow-green: rgba(76, 175, 80, 0.3);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(243, 125, 34, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Fond dégradé discret */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(255, 248, 245, 0.98) 0%, rgba(255, 242, 248, 0.96) 35%, rgba(242, 252, 244, 0.96) 100%),
    radial-gradient(ellipse 120% 70% at 20% -10%, rgba(243, 125, 34, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 50% at 90% 110%, rgba(233, 30, 99, 0.1), transparent 45%),
    radial-gradient(ellipse 60% 40% at 5% 95%, rgba(76, 175, 80, 0.1), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: min(960px, 94vw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  width: 100%;
}

/* ----- Header & Nav ----- */
.header {
  flex-shrink: 0;
  padding: 0.75rem 0 1.5rem;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.logo-link:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 6px;
  border-radius: 8px;
}

.logo-img {
  height: clamp(88px, 16vw, 160px);
  width: auto;
  max-width: min(85vw, 380px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(243, 125, 34, 0.2)) drop-shadow(0 2px 12px rgba(233, 30, 99, 0.15));
}

/* ----- Main & Hero ----- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0.5rem 0 2rem;
}

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.card-hero {
  text-align: center;
}

.card-note {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, var(--fuchsia), var(--fuchsia-light));
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 14px var(--glow-fuchsia);
}

.title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: none;
  line-height: 1.65;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, var(--fuchsia) 48%, var(--green) 100%);
  background-size: 200% 200%;
  padding: 1rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px var(--glow-orange), 0 4px 18px var(--glow-fuchsia), 0 2px 12px var(--glow-green);
}

.btn-download:hover {
  box-shadow: 0 8px 28px var(--glow-orange), 0 6px 24px var(--glow-fuchsia), 0 4px 16px var(--glow-green);
  transform: translateY(-2px);
}

.btn-download:active {
  transform: translateY(0) scale(0.98);
}

.btn-download:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 3px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  flex-shrink: 0;
}

.hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
}

/* ----- Features strip ----- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  box-shadow: 0 4px 16px rgba(243, 125, 34, 0.12);
  border-color: rgba(243, 125, 34, 0.35);
}

.feature-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

.footer-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- Footer ----- */
.footer {
  flex-shrink: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.footer-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fuchsia);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-link:hover {
  color: var(--orange);
  text-decoration: underline;
}

.footer-link:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Pages secondaires (politique, CGU, supprimer-compte) ----- */
.main .card .hero + .policy-content,
.main .card .hero + div.policy-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.policy-content {
  text-align: left;
}

.policy-content .hero + p a,
.policy-content > p:first-of-type a {
  color: var(--fuchsia);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-content > p:first-of-type a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.policy-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.25rem;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1rem;
}

.policy-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
  list-style: none;
}

.policy-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--fuchsia);
  border-radius: 50%;
}

.policy-content a {
  color: var(--fuchsia);
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
  color: var(--orange);
}

.policy-content em {
  color: var(--text-muted);
  font-size: 0.9em;
}
