/* ============================================
   EMPRISOMÈTRE™ — Landing Page Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-bg: #050505;
  --color-surface: #111111;
  --color-card: #1A1A1A;
  --color-text: #F4F4F4;
  --color-text-secondary: #AAAAAA;
  --color-accent: #C8102E;
  --color-accent-hover: #a30d24;
  --color-vigilance: #22C55E;
  --color-alerte: #EAB308;
  --color-danger: #F97316;
  --color-urgence: #C8102E;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1080px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.tm {
  font-size: 0.5em;
  vertical-align: super;
  font-family: var(--font-body);
  font-weight: 400;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

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

.btn--full {
  width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  background-color: var(--color-accent);
  color: #fff;
  transition: background-color 0.3s;
}

.nav__cta:hover {
  background-color: var(--color-accent-hover);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.hero__content {
  max-width: 720px;
}

.hero__title {
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero__author {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero__author strong {
  color: var(--color-text);
}

.hero .btn {
  margin-bottom: 32px;
}

.hero__safety {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background-color: var(--color-surface);
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__safety svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-secondary);
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.3s;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
}

.section--surface {
  background-color: var(--color-surface);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section__cta {
  text-align: center;
  margin-top: 48px;
  font-size: 17px;
  color: var(--color-text-secondary);
}

.section__cta strong {
  color: var(--color-text);
}

/* ============================================
   Problems / À qui s'adresse le test
   ============================================ */
.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.problems__item {
  background-color: var(--color-card);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s;
}

.problems__item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.problems__icon {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.problems__item p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   Steps / Comment ça marche
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
  padding: 40px 28px;
}

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.step__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.step__text {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ============================================
   Zones de résultat
   ============================================ */
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.zone {
  background-color: var(--color-card);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.zone__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.zone__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.zone--vigilance .zone__dot { background-color: var(--color-vigilance); }
.zone--alerte .zone__dot { background-color: var(--color-alerte); }
.zone--danger .zone__dot { background-color: var(--color-danger); }
.zone--urgence .zone__dot { background-color: var(--color-urgence); }

.zone--vigilance .zone__title { color: var(--color-vigilance); }
.zone--alerte .zone__title { color: var(--color-alerte); }
.zone--danger .zone__title { color: var(--color-danger); }
.zone--urgence .zone__title { color: var(--color-urgence); }

.zone__title {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zone__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.disclaimer {
  text-align: center;
  margin-top: 48px;
  font-size: 13px;
  color: var(--color-text-secondary);
  font-style: italic;
  opacity: 0.7;
}

/* ============================================
   About / Crédibilité
   ============================================ */
.about {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about .section__title {
  margin-bottom: 32px;
}

.about__name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about__role {
  font-size: 16px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.about__detail {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.about__text {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about__divina {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-style: italic;
  opacity: 0.7;
}

/* ============================================
   Pricing / Tarif
   ============================================ */
.pricing {
  max-width: 420px;
  margin: 0 auto;
}

.pricing__card {
  background-color: var(--color-card);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  border: 1px solid rgba(200, 16, 46, 0.2);
}

.pricing__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing__price {
  margin-bottom: 32px;
}

.pricing__amount {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
}

.pricing__period {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.pricing__features {
  text-align: left;
  margin-bottom: 36px;
}

.pricing__features li {
  font-size: 15px;
  color: var(--color-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-left: 28px;
  position: relative;
}

.pricing__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-vigilance);
  font-weight: 700;
}

/* ============================================
   Emergency / Ressources d'urgence
   ============================================ */
.emergency {
  text-align: center;
}

.emergency .section__title {
  margin-bottom: 12px;
}

.emergency .section__subtitle {
  margin-bottom: 48px;
}

.emergency__numbers {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.emergency__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 36px;
  background-color: var(--color-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s;
  min-width: 180px;
}

.emergency__item:hover {
  border-color: var(--color-accent);
}

.emergency__number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
}

.emergency__label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.footer__tagline {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__copy {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #050505;
    padding: 40px 24px;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .nav__menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav__cta {
    text-align: center;
    width: 100%;
    padding: 14px 24px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    position: relative;
  }

  .section {
    padding: 64px 0;
  }

  .problems {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .zones {
    grid-template-columns: 1fr;
  }

  .footer__content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .emergency__numbers {
    flex-direction: column;
    align-items: center;
  }

  .emergency__item {
    width: 100%;
    max-width: 280px;
  }

  .pricing__card {
    padding: 36px 24px;
  }
}

/* Nav toggle animation */
.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
