/* ════════════════════════════════════════════════════════════════════
   École 6% — Widget Accessibilité v1.0
   Couleurs : navy #0B1929 · cyan #00C9D4
   Toutes les règles « réglages » excluent le widget lui-même (#e6w-root).
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Réglages appliqués au site ─────────────────────────────────── */

/* Taille du texte : zoom du contenu (fonctionne même avec des tailles en px) */
/* (l'en-tête fixe et la barre d'admin restent à 100 % pour ne pas déborder de l'écran) */
html[data-e6w-size="1"] body > *:not(#e6w-root):not(#wpadminbar):not(#e6m-header):not(.e6m-header) { zoom: 1.1; }
html[data-e6w-size="2"] body > *:not(#e6w-root):not(#wpadminbar):not(#e6m-header):not(.e6m-header) { zoom: 1.25; }
html[data-e6w-size="3"] body > *:not(#e6w-root):not(#wpadminbar):not(#e6m-header):not(.e6m-header) { zoom: 1.4; }
html[data-e6w-size="4"] body > *:not(#e6w-root):not(#wpadminbar):not(#e6m-header):not(.e6m-header) { zoom: 1.6; }
html[data-e6w-size] body { overflow-x: hidden; }

/* Contraste renforcé : texte noir sur fond blanc (ratio 21:1) */
html.e6w-contrast,
html.e6w-contrast body { background: #ffffff !important; }
html.e6w-contrast body *:not(#e6w-root):not(#e6w-root *),
html.e6w-contrast body *:not(#e6w-root):not(#e6w-root *)::before,
html.e6w-contrast body *:not(#e6w-root):not(#e6w-root *)::after {
	background-color: #ffffff !important;
	background-image: none !important;
	color: #000000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	border-color: #000000 !important;
	opacity: 1 !important;
	-webkit-text-fill-color: currentColor !important;
}
html.e6w-contrast body a:not(#e6w-root *),
html.e6w-contrast body a:not(#e6w-root *) * { color: #0000b3 !important; }
html.e6w-contrast body a:not(#e6w-root *):visited { color: #551a8b !important; }
html.e6w-contrast body button:not(#e6w-root *),
html.e6w-contrast body input:not(#e6w-root *),
html.e6w-contrast body select:not(#e6w-root *),
html.e6w-contrast body textarea:not(#e6w-root *),
html.e6w-contrast body .elementor-button:not(#e6w-root *),
html.e6w-contrast body [class*="btn"]:not(#e6w-root):not(#e6w-root *) {
	border: 2px solid #000000 !important;
}
html.e6w-contrast body svg:not(#e6w-root *) [fill]:not([fill="none"]) { fill: currentColor !important; }
html.e6w-contrast body :focus-visible:not(#e6w-root *) {
	outline: 3px solid #000000 !important;
	outline-offset: 2px !important;
}

/* Police adaptée à la dyslexie (icônes exclues) */
html.e6w-dys body *:not(#e6w-root *):not(svg):not(svg *):not(i):not([class*="icon"]):not([class*="fa-"]):not(code):not(pre) {
	font-family: 'OpenDyslexic', 'Comic Sans MS', Verdana, sans-serif !important;
}

/* Interlignage et espacements — valeurs du critère WCAG 1.4.12 */
html.e6w-spacing body *:not(#e6w-root):not(#e6w-root *) {
	line-height: 1.8 !important;
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
}
html.e6w-spacing body p:not(#e6w-root *),
html.e6w-spacing body li:not(#e6w-root *) { margin-bottom: 1.2em !important; }

/* Arrêt des animations */
html.e6w-noanim *:not(#e6w-root *),
html.e6w-noanim *:not(#e6w-root *)::before,
html.e6w-noanim *:not(#e6w-root *)::after {
	animation-duration: 0s !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0s !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}
html.e6w-noanim { scroll-behavior: auto !important; }

/* Soulignement des liens */
html.e6w-links body a:not(#e6w-root *),
html.e6w-links body a:not(#e6w-root *) * {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 0.18em !important;
}

/* ── 2. Le widget ──
   Positionnement verrouillé en !important : d'autres feuilles du site
   (ex. [title] { position: relative !important }) ne doivent pas le casser. */
/* ──────────────────────────────────────────────────── */

#e6w-root, #e6w-root * { box-sizing: border-box; }
/* DA alignée sur sixpourcent.fr : slate navy, bleu ciel, Plus Jakarta Sans, boutons pilule */
#e6w-root {
	--e6w-navy: #0F172A;      /* titres, bouton « Je veux postuler », footer */
	--e6w-blue: #0369A1;      /* CTA « Je veux recruter » */
	--e6w-sky: #0EA5E9;       /* accent / badges */
	--e6w-sky-light: #38BDF8; /* accent sur fond navy */
	--e6w-sky-soft: #E0F2FE;  /* fond des badges */
	--e6w-grad: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
	--e6w-text: #0F172A;
	--e6w-body: #334155;
	--e6w-muted: #64748B;
	--e6w-line: #E5E7EB;
	--e6w-bg: #FFFFFF;
	--e6w-soft: #F8FAFC;
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: normal;
	word-spacing: normal;
	color: var(--e6w-body);
}
#e6w-root .e6w-sr {
	position: absolute !important; width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important; overflow: hidden !important;
	clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}
#e6w-root button {
	font: inherit; color: inherit; margin: 0; text-transform: none;
	letter-spacing: normal; cursor: pointer; -webkit-appearance: none; appearance: none;
}
#e6w-root :focus { outline: none; }
#e6w-root :focus-visible {
	outline: 3px solid var(--e6w-sky) !important;
	outline-offset: 3px !important;
}

/* Bouton flottant : symbole ONU + « Accessibilité » — même pilule que les CTA du site */
#e6w-root .e6w-launcher {
	position: fixed !important; left: 20px !important; bottom: 20px !important; top: auto !important; right: auto !important;
	z-index: 2147483000 !important; margin: 0 !important;
	width: auto; height: 52px; padding: 0 22px 0 8px; border-radius: 50px;
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--e6w-navy); color: #ffffff; border: 0;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .28);
	font-size: 15.2px; font-weight: 700; line-height: 1; white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease;
}
#e6w-root .e6w-launcher svg {
	flex: 0 0 auto; width: 38px; height: 38px; padding: 3px; border-radius: 50%;
	color: var(--e6w-sky-light); background: rgba(14, 165, 233, .14);
}
#e6w-root .e6w-launcher-text { color: inherit; }
#e6w-root .e6w-launcher:hover { transform: translateY(-2px); background: #1E293B; }
#e6w-root .e6w-launcher[aria-expanded="true"] { background: var(--e6w-blue); }
#e6w-root .e6w-launcher[aria-expanded="true"] svg { color: #ffffff; background: rgba(255, 255, 255, .16); }
#e6w-root .e6w-launcher.e6w-on::after {
	content: ""; position: absolute; top: -2px; right: -2px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--e6w-grad); border: 2px solid #ffffff;
}

/* Panneau */
#e6w-root .e6w-panel {
	position: fixed !important; left: 20px; bottom: 86px; top: auto; z-index: 2147483001 !important; margin: 0 !important;
	width: 350px; max-width: calc(100vw - 32px);
	max-height: calc(100vh - 106px); overflow-y: auto;
	background: var(--e6w-bg); border-radius: 20px;
	border: 1px solid var(--e6w-line);
	box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}
#e6w-root .e6w-panel[hidden] { display: none !important; }
#e6w-root .e6w-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 16px 14px 20px; background: var(--e6w-bg);
	border-bottom: 1px solid var(--e6w-line);
	border-radius: 20px 20px 0 0; position: sticky; top: 0; z-index: 1;
}
#e6w-root .e6w-head::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: var(--e6w-grad); border-radius: 20px 20px 0 0;
}
#e6w-root .e6w-title {
	margin: 0; padding: 0; font-size: 19px; font-weight: 800; line-height: 1.2;
	color: var(--e6w-text); font-family: inherit; letter-spacing: -0.01em; border: 0; background: none;
}
#e6w-root .e6w-close {
	width: 38px; height: 38px; padding: 0; border-radius: 50%;
	background: var(--e6w-soft); color: var(--e6w-text); border: 1px solid var(--e6w-line);
	display: flex; align-items: center; justify-content: center;
}
#e6w-root .e6w-close:hover { background: var(--e6w-sky-soft); color: var(--e6w-blue); border-color: var(--e6w-sky-soft); }

#e6w-root .e6w-body { padding: 6px 12px; }
#e6w-root .e6w-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; min-height: 60px; padding: 10px 8px; margin: 0;
	background: transparent; border: 0; border-bottom: 1px solid var(--e6w-line);
	border-radius: 0; text-align: left;
}
#e6w-root .e6w-row:last-child { border-bottom: 0; }
#e6w-root .e6w-toggle:hover { background: var(--e6w-soft); border-radius: 12px; }
#e6w-root .e6w-label { display: block; font-size: 15px; font-weight: 700; color: var(--e6w-text); }
#e6w-root .e6w-hint { display: block; font-size: 13px; font-weight: 400; color: var(--e6w-muted); margin-top: 2px; }

/* Stepper taille — style badges du site */
#e6w-root .e6w-stepper { display: flex; align-items: center; gap: 6px; }
#e6w-root .e6w-step {
	min-width: 44px; height: 38px; padding: 0 10px; border-radius: 50px;
	background: var(--e6w-sky-soft); color: var(--e6w-blue);
	border: 0; font-weight: 800; font-size: 14px;
}
#e6w-root .e6w-step:hover:not(:disabled) { background: var(--e6w-blue); color: #fff; }
#e6w-root .e6w-step:disabled { background: var(--e6w-soft); color: #94A3B8; cursor: not-allowed; }
#e6w-root .e6w-size-value { min-width: 52px; text-align: center; font-weight: 800; font-size: 15px; color: var(--e6w-text); }

/* Interrupteurs */
#e6w-root .e6w-switch {
	flex: 0 0 auto; position: relative; width: 46px; height: 26px; border-radius: 26px;
	background: #E2E8F0; border: 1px solid #94A3B8; transition: background .15s ease;
}
#e6w-root .e6w-switch span {
	position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .15s ease;
}
#e6w-root .e6w-toggle[aria-pressed="true"] .e6w-switch { background: var(--e6w-blue); border-color: var(--e6w-blue); }
#e6w-root .e6w-toggle[aria-pressed="true"] .e6w-switch span { transform: translateX(20px); }

/* Pied */
#e6w-root .e6w-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 14px 20px 18px; flex-wrap: wrap; border-top: 1px solid var(--e6w-line);
}
#e6w-root .e6w-reset {
	padding: 11px 22px; border-radius: 50px; background: var(--e6w-navy); color: #fff;
	border: 0; font-weight: 700; font-size: 14px;
}
#e6w-root .e6w-reset:hover { background: var(--e6w-blue); }
#e6w-root .e6w-decl { font-size: 13px; font-weight: 600; color: var(--e6w-blue); text-decoration: underline; text-underline-offset: 3px; }
#e6w-root .e6w-decl:hover { color: var(--e6w-navy); }

@media (max-width: 480px) {
	#e6w-root .e6w-launcher { left: 12px !important; bottom: 12px !important; height: 48px; padding: 0 18px 0 6px; font-size: 14.5px; gap: 8px; }
	#e6w-root .e6w-launcher svg { width: 36px; height: 36px; }
	#e6w-root .e6w-panel { left: 12px; right: 12px; bottom: 72px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
	#e6w-root * { transition: none !important; }
}
@media print { #e6w-root { display: none !important; } }
