/* ===========================
   RESET & BASE
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #0e0e11;
  color: #f2f2f6;
}

/* Conteneur principal */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   DESIGN TOKENS – LIGHT THEME
   =========================== */

:root {
  /* Palette JobMe */
  --color-primary: #ff6347;
  --color-primary-soft: #ff8a2e;
  --color-primary-strong: #ff4a29;
  --color-accent: #9585ff;
  --color-accent-soft: #7c66ff;

  /* Fond général light : chaud et doux */
  --color-bg: linear-gradient(
    180deg,
    #fff4e6 0%,
    #f7f3ff 40%,
    #f2f2f6 100%
  );
  --color-bg-alt: #ffffff;
  --color-bg-soft: #fff8ee;

  --color-border-subtle: rgba(26, 26, 30, 0.08);
  --color-border-strong: rgba(26, 26, 30, 0.16);

  --color-text: #1a1a1e;
  --color-text-soft: #40404a;
  --color-text-muted: #8b8b96;

  --shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.22);

  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;

  --container-max: 1120px;

  /* Navbar sombre même en thème clair */
  --header-bg: linear-gradient(135deg, #1a1a1e, #151521);
  --header-border: rgba(0, 0, 0, 0.7);

  /* Surfaces */
  --surface-card: #ffffff;
  --surface-card-soft: #fff9f2;
  --surface-muted: #f4f2ff;

  /* Hero panel (texte) */
  --hero-panel-bg: rgba(255, 255, 255, 0.9);
  --hero-panel-border: rgba(26, 26, 30, 0.06);
}

/* ===========================
   DARK THEME
   =========================== */

body[data-theme="dark"] {
  --color-bg: radial-gradient(
    circle at top left,
    #ff8a2e18 0,
    #050507 40%,
    #000 100%
  );
  --color-bg-alt: #101019;
  --color-bg-soft: #151521;

  --color-border-subtle: rgba(242, 242, 246, 0.09);
  --color-border-strong: rgba(242, 242, 246, 0.18);

  --color-text: #f2f2f6;
  --color-text-soft: #d7d7e2;
  --color-text-muted: #9797aa;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.7);
  --shadow-strong: 0 32px 80px rgba(0, 0, 0, 0.95);

  --header-bg: linear-gradient(135deg, #06060b, #101019);
  --header-border: rgba(242, 242, 246, 0.1);

  --surface-card: #171722;
  --surface-card-soft: #1e1e2b;
  --surface-muted: #161621;

  --hero-panel-bg: #101019;
  --hero-panel-border: rgba(242, 242, 246, 0.16);
}

/* Fond global */
body {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ===========================
   TYPO GÉNÉRALE
   =========================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  color: var(--color-text-soft);
}

section {
  position: relative;
}

/* ===========================
   LAYOUT GÉNÉRAL
   =========================== */

.shell {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 1.4rem 1.5rem 3rem;
}

.shell-main {
  width: 100%;
  max-width: var(--container-max);
}

.container-inner {
  width: 100%;
}

.section {
  padding: 3.2rem 0;
}

/* première section un peu plus proche de la navbar */
.section:first-of-type {
  padding-top: 1.6rem;
}

.section + .section {
  border-top: 1px solid var(--color-border-subtle);
}

/* ===========================
   HEADER / NAVBAR
   =========================== */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
}

.brand-tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.88);
}

/* header droite */

.header-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Burger mobile */

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 12, 0.9);
  padding: 0;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 14px;
  border-radius: 999px;
  background: rgba(242, 242, 246, 0.9);
  margin: 0 auto;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

/* état ouvert = vraie croix */
body.nav-open .nav-burger span:nth-child(1) {
  transform: rotate(45deg);
}
body.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-burger span:nth-child(3) {
  transform: rotate(-45deg);
}

/* NAV – mobile par défaut */

.header-nav {
  display: none;
}

@media (max-width: 767px) {
  .header-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    padding: 0.75rem 1.3rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    background: rgba(5, 5, 12, 0.98);
    border-bottom: 1px solid var(--color-border-subtle);
    z-index: 45;
  }

  body.nav-open .header-nav {
    display: flex;
  }
}

.header-nav-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0.2rem;
}

.header-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-radius: 999px;
  color: rgba(242, 242, 246, 0.9);
}

/* CTA dans la nav */

.header-nav-cta {
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  background: radial-gradient(circle at top left, #ffd564, #ff6347, #ff4a29);
  color: #1a1a1e;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 213, 100, 0.8);
  box-shadow: 0 10px 22px rgba(255, 99, 71, 0.55);
  align-self: flex-start;
}

/* Desktop : nav inline, burger caché */

@media (min-width: 768px) {
  .nav-burger {
    display: none;
  }

  .header-nav {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.4rem;
    margin-left: 2.6rem; /* nav un peu plus à droite */
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 3, 8, 0.7);
    backdrop-filter: blur(12px);
  }

  .header-nav-badge {
    margin-bottom: 0;
    margin-right: 0.2rem;
  }

  .header-nav a {
    padding: 0.28rem 0.85rem;
    color: rgba(242, 242, 246, 0.76);
    transition: color 0.16s ease-out, background 0.16s ease-out;
  }

  .header-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }

  .header-nav .is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 500;
  }

  .header-nav-cta {
    margin-top: 0;
    margin-left: 0.3rem;
    box-shadow: 0 10px 24px rgba(255, 99, 71, 0.65);
  }
}

/* pas de barre orange sous les liens */
.header-nav a::after {
  content: none !important;
}

/* ===========================
   BOUTONS GLOBAUX
   =========================== */

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

/* Bouton nav principal générique (si utilisé ailleurs) */
.btn-nav {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(135deg, #ff9d47, #ff4a29);
  color: #1a1a1e;
  box-shadow: 0 8px 22px rgba(255, 104, 40, 0.4);
  border: 1px solid rgba(255, 213, 100, 0.8);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn-nav:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(255, 104, 40, 0.6);
}

/* Bouton primaire */
.btn-primary {
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  background: radial-gradient(circle at top left, #ffd564, #ff6347, #ff4a29);
  color: #1a1a1e;
  box-shadow: 0 16px 40px rgba(255, 99, 71, 0.55);
  border: 1px solid rgba(255, 213, 100, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    filter var(--transition-med);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.07);
  box-shadow: 0 22px 60px rgba(255, 99, 71, 0.75);
}

/* Bouton ghost */
.btn-ghost {
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 10, 16, 0.04);
  transition: background var(--transition-med), border-color var(--transition-med),
    transform var(--transition-med), color var(--transition-med),
    box-shadow var(--transition-med);
}

body[data-theme="dark"] .btn-ghost {
  background: rgba(10, 10, 16, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at left, rgba(149, 133, 255, 0.26), transparent);
  border-color: rgba(149, 133, 255, 0.85);
  color: #ffffff;
}

/* ===========================
   TOGGLE THÈME (COMPACT)
   =========================== */

.theme-toggle-wrapper {
  display: inline-flex;
  align-items: center;
}

.theme-label {
  display: none !important;
}

.theme-toggle {
  padding: 0;
}

/* Track compact (utilisé avec .theme-toggle-pill--compact dans le HTML) */
.theme-toggle-pill,
.theme-toggle-pill--compact {
  width: 44px;
  height: 22px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  position: relative;
}

/* Version thème clair : bord + fond visibles, légèrement orangés */
body[data-theme="light"] .theme-toggle-pill,
body[data-theme="light"] .theme-toggle-pill--compact {
  border: 1px solid rgba(255, 138, 46, 0.9);
  background: rgba(255, 138, 46, 0.18);
}

/* on masque les labels texte Light/Dark */
.theme-toggle-pill--compact .toggle-option,
.theme-toggle-pill .toggle-option {
  display: none;
}

/* Pastille */
.toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transform: translateX(0);
  transition: transform 0.22s ease-out;
}

/* Position en dark (à droite) */
body[data-theme="dark"] .theme-toggle-pill--compact .toggle-thumb,
body[data-theme="dark"] .theme-toggle-pill .toggle-thumb {
  transform: translateX(20px);
}

/* ===========================
   HERO – PANEL TEXTE + TIMER
   =========================== */

/* Grille hero (index) */
.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

/* Panel texte (1er enfant de la grille) */
.hero-grid > div:first-child {
  background: var(--hero-panel-bg);
  border-radius: 26px;
  border: 1px solid var(--hero-panel-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 1.6rem 1.5rem 1.7rem;
  position: relative;
  overflow: hidden;
}

/* glow léger (atténué en dark pour éviter le gris sale) */
.hero-grid > div:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 138, 46, 0.18), transparent);
  pointer-events: none;
}
body[data-theme="dark"] .hero-grid > div:first-child::before {
  background: radial-gradient(circle at top left, rgba(255, 138, 46, 0.08), transparent);
}

/* Variante avec timer (index) */
.hero-grid--with-timer {
  align-items: flex-start;
}

/* Colonne texte */
.hero-head {
  max-width: 640px;
}

/* Colonne droite : panneau Timer + meta */
.hero-timer-panel {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: stretch;
}

/* Carte Timer – prend toute la largeur de la colonne */
.timer-card {
  position: relative;
  width: 100%;
  padding: 1.2rem 1.3rem 1.4rem;
  border-radius: 22px;
  background: var(--surface-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* Version sombre avec glow */
body[data-theme="dark"] .timer-card {
  background: radial-gradient(circle at top, rgba(255, 138, 46, 0.18), #101019);
  border-color: rgba(242, 242, 246, 0.18);
  box-shadow: var(--shadow-strong);
}

/* Glow discret animé */
.timer-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at top, rgba(255, 157, 71, 0.25), transparent 60%),
    radial-gradient(circle at bottom, rgba(149, 133, 255, 0.15), transparent 70%);
  opacity: 0.9;
  mix-blend-mode: soft-light;
  animation: timerGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes timerGlow {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Contenu au-dessus du glow */
.timer-card > * {
  position: relative;
  z-index: 1;
}

.timer-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.1rem;
}

.timer-title,
.timer-date {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-soft);
  margin-bottom: 0.7rem;
}

/* Valeur principale type "007" */
.timer-display,
.timer-main-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.14em;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border-radius: 14px;
  background: rgba(5, 5, 12, 0.96);
  color: #ffd564;
  border: 1px solid rgba(255, 213, 100, 0.7);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.4rem;
}

body[data-theme="light"] .timer-display,
body[data-theme="light"] .timer-main-value {
  background: #1a1a1e;
  color: #ff8a2e;
  border-color: rgba(255, 157, 71, 0.8);
}

.timer-legend,
.timer-caption {
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

/* Bloc accès anticipé */
.timer-tagline,
.timer-bonus {
  margin-bottom: 0.6rem;
}

.timer-tag,
.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #fff7ea;
  border: 1px solid rgba(255, 157, 71, 0.75);
  color: #c04c06;
  margin-bottom: 0.4rem;
}

body[data-theme="dark"] .timer-tag,
body[data-theme="dark"] .timer-pill {
  background: rgba(7, 7, 14, 0.98);
  border-color: rgba(255, 213, 100, 0.85);
  color: #ffd564;
}

.timer-text,
.timer-bonus p {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* Petite note en bas */
.timer-footer-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Bloc meta sous le timer pour harmoniser la colonne droite */
.hero-meta {
  margin-top: 1.8rem;
}

.hero-meta.hero-meta--stacked {
  width: 100%;
  margin-top: 0;
}

/* ===========================
   HERO – TEXTES & CHIPS
   =========================== */

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-soft);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(149, 133, 255, 0.85);
  background: radial-gradient(circle at left, rgba(149, 133, 255, 0.22), transparent);
}

body[data-theme="light"] .hero-kicker {
  color: #5b4bff;
  background: radial-gradient(circle at left, #e3ddff, #ffffff);
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.04;
  color: var(--color-text);
}
body[data-theme="dark"] .hero-title {
  color: #ffffff;
}

.hero-question {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-soft);
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 0.98rem;
  max-width: 32rem;
  color: var(--color-text-soft);
}

.hero-subtitle span {
  color: #ffd564;
  font-weight: 500;
}

body[data-theme="light"] .hero-subtitle span {
  color: #ff8a2e;
}

/* Chips */

.hero-chips {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: var(--surface-muted);
  color: var(--color-text-soft);
}

body[data-theme="dark"] .hero-chip {
  background: #10101a;
}

.hero-chip-ia {
  font-weight: 500;
}

body[data-theme="light"] .hero-chip-ia {
  background: linear-gradient(135deg, #9585ff, #7c66ff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(149, 133, 255, 0.4);
}

body[data-theme="dark"] .hero-chip-ia {
  border-color: rgba(149, 133, 255, 0.8);
  background: radial-gradient(circle at left, rgba(149, 133, 255, 0.35), #10101a);
  color: #f2f2f6;
}

/* Actions */

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions--tight {
  margin-top: 1.3rem;
}

/* Légende IA */

.hero-ai-caption {
  margin-top: 1.7rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.hero-ai-caption strong {
  color: var(--color-text);
}

body[data-theme="dark"] .hero-ai-caption {
  color: #c2c2d5;
}

/* Badges */

.hero-badges {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.hero-badge {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.86rem;
  color: var(--color-text-soft);
  border: 1px solid var(--color-border-subtle);
  background: var(--surface-card-soft);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d47, #ff4a29);
}

body[data-theme="dark"] .hero-badge {
  background: #151521;
  color: #d4d4de;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

/* Ancien bloc compte à rebours (peut servir ailleurs) */

.hero-countdown {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 157, 71, 0.4);
  background: radial-gradient(circle at left, rgba(255, 138, 46, 0.24), transparent),
    linear-gradient(135deg, #0a0a0f, #181825);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .hero-countdown {
  background: radial-gradient(circle at left, #ffe2bf, #fffaf3);
  box-shadow: 0 16px 36px rgba(255, 138, 46, 0.3);
}

/* Timer "007" inline (option) */

.hero-count-inline {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.93);
  border: 1px solid rgba(255, 213, 100, 0.55);
  color: #ffd564;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

body[data-theme="light"] .hero-count-inline {
  background: #fff7ec;
  border-color: rgba(255, 138, 46, 0.7);
  color: #ff8a2e;
}

.hero-count-inline span {
  min-width: 1.9ch;
  text-align: center;
}

.hero-count-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff4de;
}

body[data-theme="light"] .hero-count-label {
  color: #b44812;
}

.hero-count-values {
  display: inline-flex;
  gap: 0.6rem;
}

.count-box {
  min-width: 62px;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(7, 7, 12, 0.93);
  border: 1px solid rgba(255, 213, 100, 0.35);
  text-align: center;
}

body[data-theme="light"] .count-box {
  background: #fff7ec;
  border-color: rgba(255, 138, 46, 0.6);
}

.count-box span {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffd564;
}

body[data-theme="light"] .count-box span {
  color: #ff8a2e;
}

.count-box small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* ===========================
   TITRAGE SECTIONS
   =========================== */

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.section-subtext {
  max-width: 34rem;
  font-size: 0.96rem;
  color: var(--color-text-soft);
}

/* ===========================
   POURQUOI JOBME
   =========================== */

.why-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.why-card {
  padding: 1.3rem 1.3rem 1.4rem 1.6rem;
  border-radius: 18px;
  background: var(--surface-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med), background var(--transition-med);
}

.why-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d47, #ff4a29);
  opacity: 0.7;
}

.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 138, 46, 0.14), transparent);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 157, 71, 0.55);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.why-card:hover::after {
  opacity: 1;
}

body[data-theme="dark"] .why-card {
  background: var(--surface-card-soft);
  border-color: rgba(242, 242, 246, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.why-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.why-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.03rem;
  margin-bottom: 0.55rem;
  color: var(--color-text);
}

.why-title-icon {
  font-size: 1.2rem;
}

.why-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}

/* ===========================
   COMMENT ÇA MARCHE
   =========================== */

.how-wrapper {
  margin-top: 2.2rem;
  display: grid;
  gap: 1.8rem;
}

.how-wrapper > div {
  padding: 1.4rem 1.3rem 1.5rem 1.6rem;
  border-radius: 18px;
  background: var(--surface-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

body[data-theme="dark"] .how-wrapper > div {
  background: var(--surface-card-soft);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.how-wrapper > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d47, #ff4a29);
  opacity: 0.7;
}

.how-block-title {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.how-block-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 0.9rem;
}

.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  counter-reset: step;
}

.how-steps li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  counter-increment: step;
}

.how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9d47, #ff4a29);
  color: #1a1a1e;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 104, 40, 0.55);
}

.how-steps span {
  color: var(--color-text);
  font-weight: 500;
}

/* ===========================
   BÊTA – FORMULAIRE
   =========================== */

.beta-grid {
  margin-top: 2.2rem;
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

.beta-form {
  padding: 1.6rem 1.5rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  color: var(--color-text);
}

body[data-theme="dark"] .beta-form {
  background: linear-gradient(
    135deg,
    #151521,
    rgba(124, 102, 255, 0.24),
    #151521
  );
  border-color: rgba(242, 242, 246, 0.12);
  box-shadow: var(--shadow-strong);
  color: #f2f2f6;
}

.beta-field {
  margin-bottom: 1.1rem;
}

.beta-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

body[data-theme="dark"] .beta-label {
  color: #f2f2f6;
}

.beta-label span {
  color: #ff8a2e;
}

.beta-input,
.beta-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  padding: 0.7rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: #ffffff;
  outline: none;
  transition: border-color var(--transition-med), box-shadow var(--transition-med),
    background var(--transition-med), transform var(--transition-med);
}

body[data-theme="dark"] .beta-input,
body[data-theme="dark"] .beta-textarea {
  color: #f2f2f6;
  background: rgba(7, 7, 14, 0.98);
}

.beta-input::placeholder,
.beta-textarea::placeholder {
  color: var(--color-text-muted);
}

.beta-input:focus,
.beta-textarea:focus {
  border-color: rgba(149, 133, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(149, 133, 255, 0.85),
    0 0 0 8px rgba(149, 133, 255, 0.18);
  transform: translateY(-1px);
}

.beta-textarea {
  min-height: 110px;
  resize: vertical;
}

.beta-small {
  margin-top: 0.25rem;
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.beta-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.beta-radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border-subtle);
  background: #f5f5ff;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: border-color var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

body[data-theme="dark"] .beta-radio-pill {
  background: rgba(10, 10, 18, 0.95);
}

.beta-radio-pill input {
  appearance: none;
  position: absolute;
  inset: 0;
  opacity: 0;
}

.beta-radio-pill:has(input:checked) {
  border-color: rgba(255, 157, 71, 0.9);
  background: linear-gradient(135deg, #ff9d47, #ff6347);
  color: #1a1a1e;
  box-shadow: 0 8px 24px rgba(255, 104, 40, 0.7);
  transform: translateY(-1px);
}

.beta-checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.beta-checkbox-line input {
  margin-top: 0.1rem;
}

.beta-submit {
  margin-top: 1.4rem;
  display: flex;
  justify-content: flex-start;
}

.beta-submit button {
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  background: radial-gradient(circle at top left, #ffd564, #ff6347, #ff4a29);
  color: #1a1a1e;
  border: 1px solid rgba(255, 213, 100, 0.75);
  box-shadow: 0 16px 40px rgba(255, 99, 71, 0.65);
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    filter var(--transition-med);
}

.beta-submit button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.07);
  box-shadow: 0 22px 60px rgba(255, 99, 71, 0.8);
}

/* Colonne texte à droite */

.beta-side {
  padding: 1.6rem 1.5rem;
  border-radius: 20px;
  background: #fffdf8;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-soft);
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .beta-side {
  background: radial-gradient(circle at top left, rgba(255, 138, 46, 0.22), #14141f);
  border-color: rgba(242, 242, 246, 0.1);
  color: #d5d5e2;
}

.beta-side p + p {
  margin-top: 0.7rem;
}

.beta-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: #fff7ea;
  border: 1px solid rgba(255, 157, 71, 0.6);
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
  color: #c04c06;
}

body[data-theme="dark"] .beta-tagline {
  background: rgba(7, 7, 14, 0.98);
  color: #ffd564;
}

.beta-highlight {
  font-weight: 500;
}

.beta-list {
  margin: 0.8rem 0 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  border-top: 1px solid var(--color-border-subtle);
  background: rgba(5, 5, 10, 0.96);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===========================
   EXTRA HERO HELPERS
   =========================== */

.article-nav {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.article-nav a {
  text-decoration: none;
  color: var(--color-text-soft);
  transition: color 0.18s ease-out;
}

.article-nav a:hover {
  color: var(--color-primary-soft);
  text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (min-width: 768px) {
  /* hero : 2 colonnes 50 / 50 */
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
  }

  .beta-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .section {
    padding: 3.6rem 0;
  }
}

@media (max-width: 767px) {
  .shell {
    padding-inline: 1rem;
  }

  .header-inner {
    padding-inline: 1rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-grid > div:first-child {
    padding: 1.4rem 1.2rem 1.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-countdown {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-count-values {
    width: 100%;
    justify-content: space-between;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .beta-form,
  .beta-side {
    padding-inline: 1.1rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero-head {
    max-width: 100%;
  }

  .hero-timer-panel {
    margin-top: 0.4rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.02rem;
  }

  .btn-nav {
    padding-inline: 0.9rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-kicker {
    font-size: 0.78rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ===========================
   AJUSTEMENTS DARK THEME LECTURE
   =========================== */

/* Lisibilité du texte de description en thème sombre */
body[data-theme="dark"] .hero-subtitle {
  color: #4d4d52; /* anthracite : plus sombre que le gris clair */
}

/* Liens "Pourquoi JobMe • Parcours candidat..." en thème sombre */
body[data-theme="dark"] .article-nav,
body[data-theme="dark"] .article-nav a {
  color: #3a3a46;
}

body[data-theme="dark"] .article-nav a:hover {
  color: #ff8a2e;
}
