:root {
  --primary: #ff4a11;
  --primary-hover: #e03d0c;
  --primary-glow: rgba(255, 74, 17, 0.4);
  --accent: #ffb000;
  --bg-body: #08090c;
  --bg-card: rgba(18, 20, 26, 0.65);
  --bg-card-hover: rgba(25, 28, 36, 0.85);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --success: #10b981;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-body);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 74, 17, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 176, 0, 0.03) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--primary);
  color: #fff;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.justify-center {
  justify-content: center;
}

.section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
}

/* ============================
   1. FLOATING NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1000px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(12, 14, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: #fff;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 40px;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px var(--primary-glow);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

@media (max-width: 850px) {
  .nav-toggle {
    display: flex;
  }

  .navbar {
    border-radius: 16px;
    top: 16px;
  }

  .nav-menu-wrapper {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(12, 14, 18, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all var(--transition);
  }

  .navbar.open .nav-menu-wrapper {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }

  .navbar.open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .navbar.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

/* ============================
   2. BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(255, 74, 17, 0.1);
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.ip-pill:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.ip-pill-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #fff;
}

.ip-pill-hint {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.ip-pill.copied {
  border-color: var(--success);
}

.ip-pill.copied .ip-pill-hint {
  color: var(--success);
}

/* ============================
   3. HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent, var(--bg-body)),
    url('hero.png') center/cover no-repeat;
  opacity: 0.4;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  margin-top: 60px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(255, 176, 0, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 176, 0, 0.2);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title .accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* La fameuse lettre */
.hero-lettre {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 80px);
  bottom: 80px;
  width: 220px;
  padding: 24px 20px 16px;
  background: #fdf5e6;
  color: #2b251d;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  line-height: 1.3;
  rotate: -6deg;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-lettre::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 22px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(200, 190, 170, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lettre-sign {
  margin-top: 12px;
  text-align: right;
  font-weight: bold;
}

@media (max-width: 1200px) {
  .hero-lettre {
    display: none;
  }
}

/* ============================
   4. FEATURES GRID
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-5px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.fc-icon {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.feature-card:hover .fc-icon {
  color: rgba(255, 74, 17, 0.15);
}

.feature-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================
   5. FAQ
   ============================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-item.open {
  border-left-color: var(--primary);
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-answer-inner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================
   6. CTA & FOOTER
   ============================ */
.cta-box {
  background: linear-gradient(145deg, rgba(25, 28, 36, 0.9), rgba(12, 14, 18, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.cta-box .hero-actions {
  position: relative;
  z-index: 2;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.8);
  padding: 60px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 16px 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--text-muted);
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.footer-social a:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================
   7. ANIMATIONS & MISC
   ============================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) {
  transition-delay: 0s;
}

.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 74, 17, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 74, 17, 0.6);
}