/* ═══════════════════════════════════════════════════════════════
   EmploiServices — الهوية الموحّدة لأدوات الاستقطاب
   الألوان الرسمية: navy #00387C · teal #03989E · gold #C9A227
   ═══════════════════════════════════════════════════════════════ */
:root {
  --es-navy: #0f2a5c;
  --es-teal: #03989E;
  --es-gold: #C9A227;
  --es-bg: #F5F7FA;
  --es-text: #1A1A2E;
  --es-muted: #6B7280;
  --es-radius: 14px;
  --es-shadow: 0 2px 14px rgba(0, 56, 124, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--es-bg);
  color: var(--es-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── الترويسة ── */
.es-tool-head { background: var(--es-navy); color: #fff; }
.es-tool-head-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.es-tool-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.es-tool-logo { width: 150px; height: auto; }
.es-tool-brand-text { font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.25; }
.es-tool-brand-text em { font-style: normal; font-size: 11px; color: var(--es-gold); font-weight: 600; }
.es-tool-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.es-tool-nav a { color: rgba(255,255,255,.92); text-decoration: none; font-size: 12.5px; padding: 4px 8px; border-radius: 999px; }
.es-tool-nav a:hover { background: rgba(255,255,255,.14); }
.es-tool-lang { border: 1px solid rgba(255,255,255,.45); font-weight: 700; }

/* ── المحتوى ── */
.es-tool-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 26px 20px 40px; }
.es-tool-main h1 { color: var(--es-navy); font-size: 26px; margin: 0 0 6px; }
.es-tool-main .es-sub { color: var(--es-muted); margin: 0 0 22px; font-size: 14px; }

/* بطاقات عامة */
.es-card {
  background: #fff; border: 1px solid #E5EAF0; border-radius: var(--es-radius);
  box-shadow: var(--es-shadow); padding: 22px; margin-bottom: 18px;
}
.es-btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  padding: 11px 22px; font-size: 14px; font-weight: 700; text-decoration: none;
  background: var(--es-teal); color: #fff; transition: opacity .15s ease;
}
.es-btn:hover { opacity: .88; }
.es-btn-gold { background: var(--es-gold); color: #fff; }
.es-btn-outline { background: #fff; color: var(--es-teal); border: 1.5px solid var(--es-teal); }
.es-field {
  width: 100%; padding: 10px 12px; border: 1.5px solid #CBD5E1; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.es-field:focus { outline: none; border-color: var(--es-teal); }
.es-label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; color: var(--es-navy); }
.es-note { font-size: 12px; color: var(--es-muted); }
.es-warn {
  background: #FDF6E3; border: 1px solid var(--es-gold); color: #6B5310;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-top: 14px;
}

/* ── التذييل ── */
.es-tool-foot { background: var(--es-navy); color: rgba(255,255,255,.9); margin-top: auto; }
.es-tool-foot-inner { max-width: 1080px; margin: 0 auto; padding: 22px 20px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.es-tool-foot-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; justify-content: center; }
.es-tool-foot-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; justify-content: center; }
.es-tool-foot-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.es-tool-foot-links a:hover { text-decoration: underline; }
.es-tool-foot-contact { font-size: 12.5px; color: rgba(255,255,255,.75); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.es-tool-foot-note { font-size: 11.5px; color: rgba(255,255,255,.6); margin: 4px 0 0; }

@media (max-width: 640px) {
  .es-tool-head-inner { flex-direction: column; align-items: flex-start; }
  .es-tool-logo { width: 120px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   2026 DESIGN SYSTEM — harmonisation des outils (2026-08-23, v20260823c)
   Palette: navy #00387C · sovereign #0f2a5c · teal #03989E · gold #C9A227
   Typographie: Cairo (AR/RTL) · Inter (FR/LTR) — via Google Fonts
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Typographie 2026 ── */
body {
  font-family: 'Cairo', 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}
html[lang="fr"] body {
  font-family: 'Inter', 'Cairo', 'Segoe UI', Arial, sans-serif !important;
}

/* ── Cartes modernes (spec .tool-card / .tool-container / .calc-card
      + classes réelles des 6 outils) ── */
.tool-card, .tool-container, .calc-card {
  max-width: 820px;
  margin: 30px auto;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 35px -5px rgba(15, 42, 92, 0.07), 0 0 1px rgba(15, 42, 92, 0.05);
  padding: 35px 40px;
}
.es-tool-main .sc-card,
.es-tool-main .cc-card,
.es-tool-main .cvr-card,
.es-tool-main .ga-card,
.es-tool-main .jd-detail,
.es-tool-main .jd-placeholder {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 35px -5px rgba(15, 42, 92, 0.07), 0 0 1px rgba(15, 42, 92, 0.05);
  padding: 35px 40px;
}
.es-tool-main .jd-list-col {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 35px -5px rgba(15, 42, 92, 0.07), 0 0 1px rgba(15, 42, 92, 0.05);
}
@media (max-width: 640px) {
  .tool-card, .tool-container, .calc-card,
  .es-tool-main .sc-card, .es-tool-main .cc-card, .es-tool-main .cvr-card,
  .es-tool-main .ga-card, .es-tool-main .jd-detail, .es-tool-main .jd-placeholder {
    padding: 24px 18px;
  }
}

/* ── Champs de formulaire 2026 (input / select / textarea) ── */
.es-tool-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.cvr-otp-input),
.es-tool-main select,
.es-tool-main textarea {
  font-family: 'Cairo', 'Inter', sans-serif;
  color: #0f2a5c;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}
.es-tool-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.cvr-otp-input),
.es-tool-main select {
  height: 48px;
  padding: 0 14px;
}
.es-tool-main textarea {
  min-height: 120px;
  padding: 14px 18px;
  resize: vertical;
}
.es-tool-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.cvr-otp-input):focus,
.es-tool-main select:focus,
.es-tool-main textarea:focus {
  background: #ffffff;
  border-color: #03989e;
  outline: none;
  box-shadow: 0 0 0 4px rgba(3, 152, 158, 0.12);
}
.es-tool-main input::placeholder,
.es-tool-main textarea::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
  opacity: 1;
}

/* ── Select: chevron SVG personnalisé, sensible à la direction ── */
.es-tool-main select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
}
html[dir="rtl"] .es-tool-main select {
  background-position: left 14px center;
  padding-left: 40px;
}
html[dir="ltr"] .es-tool-main select {
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── Boutons primaires luxe 2026 ── */
.es-tool-main .btn-tool-primary,
.es-tool-main .sc-btn-primary,
.es-tool-main .cc-btn-primary,
.es-tool-main .jd-btn-primary,
.es-tool-main .cvb-btn-primary,
.es-tool-main .btn-primary,
.es-tool-main .ga-btn-primary {
  background: linear-gradient(135deg, #0f2a5c 0%, #00387C 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(15, 42, 92, 0.18);
}
.es-tool-main .btn-tool-primary:hover:not(:disabled),
.es-tool-main .sc-btn-primary:hover:not(:disabled),
.es-tool-main .cc-btn-primary:hover:not(:disabled),
.es-tool-main .jd-btn-primary:hover:not(:disabled),
.es-tool-main .cvb-btn-primary:hover:not(:disabled),
.es-tool-main .btn-primary:hover:not(:disabled),
.es-tool-main .ga-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 152, 158, 0.3);
  background: #03989e;
}
.es-tool-main .btn-tool-primary:active:not(:disabled),
.es-tool-main .sc-btn-primary:active:not(:disabled),
.es-tool-main .cc-btn-primary:active:not(:disabled),
.es-tool-main .jd-btn-primary:active:not(:disabled),
.es-tool-main .cvb-btn-primary:active:not(:disabled),
.es-tool-main .btn-primary:active:not(:disabled),
.es-tool-main .ga-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* ── Boutons gold (variante secondaire) ── */
.es-tool-main .sc-btn-gold,
.es-tool-main .cc-btn-gold,
.es-tool-main .jd-btn-download,
.es-tool-main .cvb-btn-gold,
.es-tool-main .ga-btn-cta {
  background: linear-gradient(135deg, #C9A227 0%, #B88A1E 100%);
  color: #ffffff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.es-tool-main .sc-btn-gold:hover,
.es-tool-main .cc-btn-gold:hover,
.es-tool-main .jd-btn-download:hover,
.es-tool-main .cvb-btn-gold:hover,
.es-tool-main .ga-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

/* ── Segmented switchers (pills): Net⇄Brut · Visiteur/Entreprise ·
      Text/PDF · Classique/Moderne ── */
.es-tool-main .switch-pill,
.es-tool-main .sc-direction,
.es-tool-main .sc-cta-tabs,
.es-tool-main .ga-tabs,
.es-tool-main .cvb-tpl-switch {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.es-tool-main .tab-btn,
.es-tool-main .sc-dir-btn,
.es-tool-main .sc-cta-tab,
.es-tool-main .ga-tab,
.es-tool-main .cvb-tpl-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  color: #64748b;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.2s ease;
}
.es-tool-main .tab-btn:hover,
.es-tool-main .sc-dir-btn:hover,
.es-tool-main .sc-cta-tab:hover,
.es-tool-main .ga-tab:hover,
.es-tool-main .cvb-tpl-btn:hover {
  color: #0f2a5c;
}
.es-tool-main .tab-btn.is-active,
.es-tool-main .sc-dir-btn.is-active,
.es-tool-main .sc-cta-tab.is-active,
.es-tool-main .ga-tab.is-active,
.es-tool-main .cvb-tpl-btn.is-active {
  background: #0f2a5c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 42, 92, 0.25);
}

/* ── Dropzone d'upload 2026 ── */
.es-tool-main .file-dropzone,
.es-tool-main .cvr-dropzone,
.es-tool-main .ga-dropzone {
  border: 2px dashed #03989e;
  background: #f0fdfa;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.es-tool-main .file-dropzone:hover,
.es-tool-main .cvr-dropzone:hover,
.es-tool-main .cvr-dropzone.over,
.es-tool-main .ga-dropzone:hover,
.es-tool-main .ga-dropzone.is-over {
  border-color: #027a7f;
  background: rgba(3, 152, 158, 0.08);
}
.es-tool-main .cvr-dropzone .dz-icon,
.es-tool-main .ga-dropzone .dz-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

/* ── Harmonisation cv-register: vert → teal (hors marque) ── */
.es-tool-main .cvr-step.active {
  border-color: #03989e;
  color: #027a7f;
  background: rgba(3, 152, 158, 0.10);
}
.es-tool-main .cvr-step.active span {
  background: #03989e;
}
.es-tool-main .cvr-fileinfo {
  background: rgba(3, 152, 158, 0.08);
  border-color: rgba(3, 152, 158, 0.30);
  color: #027a7f;
}
.es-tool-main .btn-ghost {
  background: #ffffff;
  color: #0f2a5c;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
}
.es-tool-main .btn-ghost:hover {
  border-color: #03989e;
  color: #027a7f;
}
.es-tool-main .cvr-privacy a {
  color: #03989e;
}
.es-tool-main .cvr-privacy a:hover {
  text-decoration: underline;
}
.es-tool-main .cvr-consent input,
.es-tool-main .sc-consent input,
.es-tool-main .jd-consent input,
.es-tool-main .ga-consent input,
.es-tool-main .cvr-radio input {
  accent-color: #03989e;
}

/* ── Sous-titres & labels: contraste renforcé ── */
.es-tool-main .es-sub,
.es-tool-main .sc-sub,
.es-tool-main .cc-hero-sub,
.es-tool-main .cvb-hero-sub,
.es-tool-main .ga-hero-sub,
.es-tool-main .jd-hero p {
  color: #5b6b81;
}

/* ── Hauteur d'attente: résultats ── */
.es-tool-main .sc-result,
.es-tool-main .cc-result,
.es-tool-main .ga-results {
  animation: es-rise 0.3s ease;
}
@keyframes es-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
