/* ==========================================================================
   VivreFR Core CSS Isolation & Protection Layer — Balanced Specificity Layer
   File: vivrefr-tool-isolation.css
   Purpose: Global CSS Isolation Sandbox that immunizes all VivreFR
            tools from Elementor, Obelisk theme, and WordPress global styling leakage
            while allowing internal module component flexibility.
   ========================================================================== */

/* 1. Global Tool Container Isolation & Centering Sandbox */
.vivrefr-tool {
  display: block !important;
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  font-family: var(--vf-body, "Plus Jakarta Sans", sans-serif);
  color: var(--vf-ink, #080f1e);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 80px !important;
  text-align: left;
}



/* 1b. Force Container Width & Centering Lock */
.vivrefr-tool .pp-container,
.vivrefr-tool .vf-container {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 16px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vivrefr-tool,
.vivrefr-tool .pp-page-wrapper,
.vivrefr-tool .vf-page-wrapper {
  background-color: var(--vf-bg, #f6f2ec) !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 40px 0;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 1c. Full-Width Module Layout Override (French Administration Explained & Dictionary Tools) */
.vivrefr-tool.vivrefr-french-administration-explained {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background-color: var(--vf-bg, #f6f2ec) !important;
}

/* Page canvas background unification for full-bleed modules */
body:has(.vivrefr-french-administration-explained),
.site-content:has(.vivrefr-french-administration-explained),
.entry-content:has(.vivrefr-french-administration-explained) {
  background-color: var(--vf-bg, #f6f2ec) !important;
}

.vivrefr-tool .pp-card,
.vivrefr-tool .vf-card {
  background: var(--vf-surface, #ffffff);
  border: 1px solid var(--vf-line, rgba(0,0,0,0.08));
  border-radius: var(--vf-r-lg, 26px);
  box-shadow: var(--vf-shadow-card, 0 10px 30px rgba(0,0,0,0.06));
  box-sizing: border-box;
}

/* 2. Inherit Box Sizing & Font Family across all elements inside tools */
.vivrefr-tool *,
.vivrefr-tool *::before,
.vivrefr-tool *::after {
  box-sizing: border-box;
  font-family: inherit;
}

/* 3. Hero Header Alignment Normalization */
.vivrefr-tool .pp-hero,
.vivrefr-tool .vf-hero {
  text-align: center;
  margin-bottom: 40px;
  width: 100% !important;
}

.vivrefr-tool .pp-main-title,
.vivrefr-tool .vf-main-title {
  color: var(--vf-navy, #1c3281);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
  text-align: center;
  line-height: 1.2;
}

.vivrefr-tool .pp-intro,
.vivrefr-tool .vf-intro {
  color: var(--vf-muted, #64748b);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
  text-align: center;
}

.vivrefr-tool .pp-meta,
.vivrefr-tool .vf-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--vf-muted, #64748b);
}

.vivrefr-tool .pp-brand,
.vivrefr-tool .vf-brand {
  font-weight: 700;
  color: var(--vf-navy, #1c3281);
}

/* 4. Neutralize Elementor Leakage on Base Elements */
.vivrefr-tool div,
.vivrefr-tool span,
.vivrefr-tool p,
.vivrefr-tool label,
.vivrefr-tool strong,
.vivrefr-tool ul,
.vivrefr-tool ol,
.vivrefr-tool li {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  line-height: inherit;
}

/* 5. Form Controls Neutralization (Form controls retain !important protection) */
.vivrefr-tool select,
.vivrefr-tool input[type="text"],
.vivrefr-tool input[type="number"],
.vivrefr-tool textarea,
.vivrefr-tool .vf-input,
.vivrefr-tool .vf-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 100% !important;
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 16px !important;
  border: 1px solid var(--vf-line-strong, rgba(0,0,0,0.12)) !important;
  border-radius: var(--vf-r-sm, 10px) !important;
  background: var(--vf-surface, #ffffff) !important;
  font-family: var(--vf-body, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 15px;
  color: var(--vf-ink, #080f1e) !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 6. Select Dropdown Background Fix */
.vivrefr-tool select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 10px auto !important;
  padding-right: 40px !important;
}




/* ==========================================================================
   VivreFR Design System — Hero Title Single Source of Truth (COLC Standard V1.08.248)
   ========================================================================== */

.pp-hero,
.vf-hero,
.vivrefr-tool .pp-hero,
.vivrefr-tool .vf-hero {
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 32px !important;
  width: 100% !important;
}

.pp-main-title,
.vf-main-title,
.vivrefr-tool h1.pp-main-title,
.vivrefr-tool h1.vf-main-title,
.vivrefr-tool .pp-main-title,
.vivrefr-tool .vf-main-title {
  color: var(--vf-navy, #1c3281) !important;
  font-family: var(--vf-display, "Plus Jakarta Sans", -apple-system, sans-serif) !important;
  font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  max-width: 850px !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.pp-meta,
.vf-meta,
.vivrefr-tool .pp-meta,
.vivrefr-tool .vf-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: var(--vf-muted, #64748b) !important;
  font-weight: 500 !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.pp-brand,
.vf-brand,
.vivrefr-tool .pp-brand,
.vivrefr-tool .vf-brand {
  font-weight: 700 !important;
  color: var(--vf-navy, #1c3281) !important;
}

.pp-divider,
.vf-divider,
.vivrefr-tool .pp-divider,
.vivrefr-tool .vf-divider {
  color: var(--vf-muted, #64748b) !important;
  opacity: 0.6 !important;
}
