/* ═══════════════════════════════════════════
   LOWFOREHEAD — Récupère ton Compte
   Mobile-first, dark mode, neon accents
   ═══════════════════════════════════════════ */

/* ─── RESET & VARIABLES ─── */

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

:root {
  --primary: #00ff88;
  --secondary: #00d4ff;
  --accent: #ff00ff;
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --text: #ffffff;
  --text-dim: #888888;
  --text-muted: #555555;
  --border: #222222;
  --border-hover: #333333;

  --green: #00ff88;
  --yellow: #ffcc00;
  --red: #ff4444;

  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Blinker', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Orbitron', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ─── HEADER ─── */

.header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.header__logo:hover {
  text-shadow: 0 0 12px var(--primary);
  text-decoration: none;
}

.header__tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ─── MAIN APP ─── */

.app {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 40px;
  position: relative;
}

/* ─── PROGRESS BAR ─── */

.progress {
  position: sticky;
  top: 53px;
  z-index: 50;
  height: 3px;
  background: var(--border);
  margin: 0 -20px;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--primary);
}

/* ─── NAV BAR (retour + accueil) ─── */

.nav-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-top: 4px;
}

.back-btn,
.home-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.back-btn:hover,
.home-btn:hover {
  color: var(--primary);
}

.home-btn {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.home-btn:hover {
  color: var(--secondary);
}

/* ─── SCREEN CONTAINER ─── */

.screen-container {
  position: relative;
  min-height: 60vh;
}

.screen {
  animation: fadeSlideIn 0.35s ease both;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen--exit {
  animation: fadeSlideOut 0.2s ease both;
}

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* ─── SCREEN TITLES ─── */

.screen__title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.screen__subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ─── PLATFORM GRID ─── */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
}
.platform-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.platform-btn:active {
  transform: translateY(0);
}

.platform-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: box-shadow var(--transition);
}
.platform-btn:hover .platform-btn__icon {
  box-shadow: 0 0 16px var(--platform-color, var(--text-dim));
}

.platform-btn__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.platform-btn__desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Email button (full width) */
.platform-btn--email {
  flex-direction: row;
  gap: 14px;
  padding: 16px 20px;
  text-align: left;
}
.platform-btn--email .platform-btn__icon {
  flex-shrink: 0;
}
.platform-btn--email .platform-btn__desc {
  display: block;
}

/* ─── PLATFORM SEPARATOR ─── */

.platform-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.platform-separator::before,
.platform-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── OPTIONS LIST (questions) ─── */

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: all var(--transition);
  line-height: 1.4;
}
.option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 0 20px rgba(0, 255, 136, 0.08);
  transform: translateY(-1px);
}
.option-btn:active {
  transform: translateY(0);
}

.option-btn__arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}
.option-btn:hover .option-btn__arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ─── ENDPOINT SCREEN ─── */

.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 4px;
}
.severity-badge--green {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.severity-badge--yellow {
  background: rgba(255, 204, 0, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 0, 0.25);
}
.severity-badge--red {
  background: rgba(255, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 68, 68, 0.25);
}

.endpoint-title {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
}

/* ─── ENDPOINT SECTIONS ─── */

.endpoint-section {
  margin-top: 24px;
}

.endpoint-section__heading {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* Prepare list */
.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prepare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary);
}
.prepare-list li::before {
  content: '•';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Steps list */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step-item:last-child {
  border-bottom: none;
}

.step-item__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.step-item__content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.step-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--secondary);
  word-break: break-all;
  transition: all var(--transition);
}
.step-item__link:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--secondary);
  text-decoration: none;
}

.step-item__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  transition: all var(--transition);
}
.step-item__copy:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--primary);
}
.step-item__copy svg {
  flex-shrink: 0;
}

/* ─── ENDPOINT META ─── */

.endpoint-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.meta-item {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.meta-item__label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-item__value {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ─── ENDPOINT VERDICT ─── */

.endpoint-verdict {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}
.endpoint-verdict--green {
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: #b3ffdb;
}
.endpoint-verdict--yellow {
  background: rgba(255, 204, 0, 0.06);
  border: 1px solid rgba(255, 204, 0, 0.15);
  color: #ffe680;
}
.endpoint-verdict--red {
  background: rgba(255, 68, 68, 0.06);
  border: 1px solid rgba(255, 68, 68, 0.15);
  color: #ffaaaa;
}

/* ─── ENDPOINT REDIRECT ─── */

.endpoint-redirect {
  margin-top: 20px;
}

.redirect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 212, 255, 0.12));
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  transition: all var(--transition);
}
.redirect-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

/* ─── FALLBACK BUTTON ─── */

.fallback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all var(--transition);
}
.fallback-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ─── LAST VERIFIED + REPORT ─── */

.last-verified {
  margin-top: 20px;
  padding: 8px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.report-btn:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  text-decoration: none;
}

/* ─── SECURITY TIPS ─── */

.security-title {
  color: var(--primary) !important;
}

.security-tips {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.security-tip {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.security-tip__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.security-tip__text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── GENERIC BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn--primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg);
}
.btn--primary:hover {
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.3);
  transform: translateY(-1px);
}

/* ─── TOAST ─── */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 10px 24px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 30px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 200;
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── FOOTER ─── */

.footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer a {
  color: var(--primary);
}
.footer__update {
  margin-top: 4px;
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

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

@media (min-width: 768px) {
  .app {
    padding: 0 32px 60px;
  }

  .platform-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .endpoint-meta {
    gap: 16px;
  }

  .header {
    padding: 16px 32px;
  }
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
