/* ============================================================
   EMPLOI.EA v4.3 — Styles complets (MISE À JOUR MOBILE)
   Ajouts v4.3 :
   ✅ Page auth (login/register)
   ✅ Section candidatures (tableau suivi)
   ✅ Modal WhatsApp candidature
   ✅ Badge date offres (vert/jaune/rouge/gris)
   ✅ Badge score entreprises (vert/jaune/rouge)
   ✅ Tableau emails copiables
   ✅ Barres progression compétences
   ✅ Compteur mots/lignes temps réel
   ✅ Filtres date offres + période rapide
   ✅ Indicateur online/offline
   ✅ Badge pays site scraping
   ✅ Canaux contact détail offre
   ✅ Alerte aucun canal disponible
   ✅ Pagination offres
   ✅ CORRECTIONS MODALS MOBILE (header/footer visibles)
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --accent:     #0891b2;
  --accent-d:   #0777a0;
  --accent-g:   rgba(8,145,178,.15);
  --gold:       #D4A830;
  --gold-g:     rgba(212,168,48,.15);
  --navy:       #152245;
  --blue:       #3b82f6;
  --purple:     #8b5cf6;
  --amber:      #f59e0b;
  --red:        #ef4444;
  --green:      #10b981;
  --whatsapp:   #25D366;
  --whatsapp-d: #1da851;

  --bg:       #0f1117;
  --card-bg:  #161b27;
  --sidebar:  #0d1019;
  --input-bg: #1a2033;
  --hover:    #1e2740;
  --border:   rgba(255,255,255,.07);
  --border2:  rgba(255,255,255,.12);
  --text:     #e8eaf0;
  --muted:    #6b7280;
  --sub:      #4b5563;

  --sidebar-w: 220px;
  --topbar-h:  52px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
}

body.light {
  --bg:       #f0f2f9;
  --card-bg:  #ffffff;
  --sidebar:  #ffffff;
  --input-bg: #f4f6fb;
  --hover:    #eef1f8;
  --border:   rgba(0,0,0,.08);
  --border2:  rgba(0,0,0,.14);
  --text:     #1a1a2e;
  --muted:    #6b7280;
  --sub:      #9ca3af;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  /* Neutralise le pull-to-refresh natif (glissé vers le bas) et le scroll-chaining
     vers le navigateur sur mobile → pas de rechargement silencieux par geste.
     Le rechargement passe alors uniquement par F5/Ctrl+R (→ modal) ou un bouton. */
  overscroll-behavior: none;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Splash initial EMPLOI.EA ───────────────────────────────
   Codex 2026-05-22 : affiché pendant l'initialisation SPA/PWA. */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(212,168,48,.18), transparent 34%),
    linear-gradient(180deg, #152245 0%, #0f1117 100%);
  transition: opacity .28s ease, visibility .28s ease;
}

.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash-card {
  width: min(280px, 86vw);
  text-align: center;
  color: #fff;
}

.app-splash-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
  animation: splash-logo-pulse 1.6s ease-in-out infinite;
}

.app-splash-title {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.app-splash-title span {
  color: var(--gold);
}

.app-splash-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.68);
}

.app-splash-bar {
  width: 140px;
  height: 4px;
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.app-splash-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: splash-bar-slide 1.15s ease-in-out infinite;
}

@keyframes splash-logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes splash-bar-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

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

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8,145,178,.12), 0 2px 8px rgba(0,0,0,.15);
  background: rgba(8,145,178,.04);
}

input::placeholder, textarea::placeholder {
  color: rgba(107,114,128,.6);
  font-size: 12px;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  display: block;
  margin-bottom: 5px;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
