/* AFFEP – identité visuelle (mu-plugin affep-identite.php) */

/* Polices locales : Manrope pour les titres et le logo, Inter pour le texte. */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/manrope-banner.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
	--affep-thread: #2D8496;       /* fil et logo */
	--affep-action: #167677;       /* boutons et liens */
	--affep-action-hover: #0F5859;
	--affep-on-action: #FFFFFF;
	--affep-thread-width: 2.5px;
	--affep-fil-vague: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 6 C 12 1.5, 22 1.5, 32 6 S 52 10.5, 62 6 S 82 1.5, 92 6 S 112 10.5, 118 6' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* V1 globale — navigation compacte et lisible sur téléphone (modèle 13589). */
@media (min-width: 1200px) {
	header.elementor-13589 .elementor-element-4bf645b img {
		width: 250px !important;
		max-width: none !important;
	}
}
@media (max-width: 1199px) {
	header.elementor-13589 button.uc-mega_menu-burger,
	header.elementor-13589 button.uc-mega_menu-close-btn,
	header.elementor-13589 button.uc-mega_menu-burger:hover,
	header.elementor-13589 button.uc-mega_menu-close-btn:hover,
	header.elementor-13589 button.uc-mega_menu-burger:focus,
	header.elementor-13589 button.uc-mega_menu-close-btn:focus {
		appearance: none;
		background: transparent;
		border: 0;
		padding: 0;
		font: inherit;
		color: var(--affep-ink);
	}
	header.elementor-13589 .uc-mega_menu-burger {
		display: flex;
		align-items: center;
		justify-content: flex-end !important;
		gap: 8px;
		min-height: 44px;
		color: #0C2A3C;
		cursor: pointer;
	}
	header.elementor-13589 .affep-menu-label {
		font: 600 15px/1 "Inter", sans-serif;
	}
	header.elementor-13589 .uc-mega_menu-burger-icon {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
	}
	header.elementor-13589 .uc-mega_menu-wrapper.uc-mobile-mode {
		background: #FFFFFF;
	}
	header.elementor-13589 .uc-mega_menu-wrapper.uc-mobile-mode .uc-mega_menu_list > li > a {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 14px 22px !important;
		font: 600 16px/1.35 "Inter", sans-serif !important;
		color: #0C2A3C !important;
		border-bottom: 1px solid #DCE7E7;
	}
	header.elementor-13589 .uc-mega_menu-wrapper.uc-mobile-mode .uc-mega_menu_list > li > a:focus-visible,
	header.elementor-13589 .uc-mega_menu-burger:focus-visible,
	header.elementor-13589 .uc-mega_menu-close-btn:focus-visible {
		outline: 2px solid var(--affep-action);
		outline-offset: 2px;
	}
}
@media (max-width: 767px) {
	header.elementor-13589 { position: relative; }
	header.elementor-13589 .elementor-element-4bf645b img { max-width: 260px; }
	header.elementor-13589 .uc-mega_menu-burger {
		position: absolute;
		top: -70px;
		right: 12px;
		z-index: 2;
		width: auto !important;
		min-height: 48px;
		padding-right: 12px;
	}
}
@media (max-width: 359px) {
	header.elementor-13589 .elementor-element-4bf645b img { max-width: 195px; }
	header.elementor-13589 .affep-menu-label { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	header.elementor-13589 .elementor-element-f79c6d9,
	header.elementor-13589 .elementor-element-f1e1b80,
	header.elementor-13589 .elementor-element-dd53dc6 {
		display: none !important;
	}
}

/* Fil ondulé sous un titre : classe « affep-fil » sur le widget Titre */
.affep-fil .elementor-heading-title::after,
h1.affep-fil::after,
h2.affep-fil::after,
h3.affep-fil::after {
	content: "";
	display: block;
	width: 120px;
	max-width: 100%;
	height: 12px;
	margin: 0.45em auto 0 0;
	background-color: var(--affep-thread);
	-webkit-mask: var(--affep-fil-vague) no-repeat center / 100% 100%;
	mask: var(--affep-fil-vague) no-repeat center / 100% 100%;
}

.affep-fil--centre .elementor-heading-title::after,
h1.affep-fil--centre::after,
h2.affep-fil--centre::after,
h3.affep-fil--centre::after {
	margin-left: auto;
	margin-right: auto;
}

/* Séparateur Elementor transformé en fil ondulé : classe « affep-fil-separateur » */
.affep-fil-separateur .elementor-divider-separator {
	border-top: 0 !important;
	width: 120px !important;
	max-width: 100%;
	height: 12px;
	background-color: var(--affep-thread);
	-webkit-mask: var(--affep-fil-vague) no-repeat center / 100% 100%;
	mask: var(--affep-fil-vague) no-repeat center / 100% 100%;
}

/* Fil de la page 404 (« LooseThread ») */
.affep-fil-404 svg {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto;
	overflow: visible;
}

.affep-fil-404__trace {
	fill: none;
	stroke: var(--affep-thread);
	stroke-width: var(--affep-thread-width);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: affep-fil-trace 1.8s ease-in-out forwards;
}

@keyframes affep-fil-trace {
	to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.affep-fil-404__trace {
		animation: none;
		stroke-dashoffset: 0;
	}
}

/* --- Contrôle V1 (30/10/2026) --- */

/* Liens : couleur d'action au lieu du rose par défaut du thème (#CC3366) */
a {
	color: var(--affep-action);
}
a:hover,
a:focus {
	color: var(--affep-action-hover);
}
/* Lien posé sur un fond sombre (classe ajoutée par affep-identite.php) */
a.affep-lien-clair,
a.affep-lien-clair:hover,
a.affep-lien-clair:focus {
	color: #FFFFFF;
	text-decoration: underline;
}

/* Polices collées depuis Word/Google Docs ou imposées par Mailchimp : suivre la charte */
.elementor-widget-text-editor [style*="font-family"],
#mc_embed_signup,
#mc_embed_signup * {
	font-family: inherit !important;
}

/* Navigation entre articles : libellés #AAA (2,3:1) trop pâles */
.elementor-post-navigation .post-navigation__prev--label,
.elementor-post-navigation .post-navigation__next--label {
	color: #6B6B6B !important;
}

/* Offres d'emploi (WP Job Manager) : orange #F08D3C (2,5:1) -> couleur d'action */
.job-manager .job-type,
.job-types .job-type,
.job_listing .job-type {
	color: var(--affep-action);
}
.single_job_listing .meta .job-type,
.single_job_listing .meta .part-time,
.job_summary_shortcode .job-type {
	background-color: var(--affep-action);
	color: var(--affep-on-action);
}

/* Boutons sans style Elementor (formulaires CF7, WP Job Manager…) : rose du thème Hello -> couleur d'action */
[type="button"],
[type="reset"],
[type="submit"],
button {
	color: var(--affep-action);
	border-color: var(--affep-action);
}
[type="button"]:hover,
[type="button"]:focus,
[type="reset"]:hover,
[type="reset"]:focus,
[type="submit"]:hover,
[type="submit"]:focus,
button:hover,
button:focus {
	background-color: var(--affep-action);
	color: var(--affep-on-action);
}

/* Fenêtre « Demande d'annonce détectée » de la page Contact (jQuery UI) */
.ui-dialog {
	font-family: inherit;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	padding: 0;
	overflow: hidden;
}
.ui-dialog .ui-dialog-titlebar {
	background: var(--affep-action);
	color: var(--affep-on-action);
	border: 0;
	border-radius: 0;
	font-family: "Manrope", sans-serif;
}
.ui-dialog .ui-dialog-buttonpane button:first-child {
	background-color: var(--affep-action);
	color: var(--affep-on-action);
}

/* Couleurs de texte Gutenberg trop pâles sur fond blanc (ex. « CNIPSY is back ») : cyan vif 3,3:1 et ambre 1,7:1 */
.has-vivid-cyan-blue-color {
	color: var(--affep-action) !important;
}
.has-luminous-vivid-amber-color {
	color: #8A5A00 !important; /* ambre foncé, 5,0:1 */
}

/* ==========================================================================
   Unification avec AFFEP Emplois (30/10/2026) — jetons repris de son système visuel
   ========================================================================== */
:root {
	--affep-navy-dark: #0C2A3C;
	--affep-ink: #18303D;
	--affep-muted: #576A74;
	--affep-line: #DCE5E7;
	--affep-tint: #F4F8F7;
	--affep-teal-soft: #E7F3F1;
	--affep-on-dark-muted: #AEBFC6;   /* 9,0:1 sur --affep-navy-dark */
	--affep-on-dark-accent: #8BD0C9;
	--affep-on-dark-faint: rgba(255, 255, 255, .08);
	--affep-on-dark-soft: rgba(255, 255, 255, .14);
	--affep-radius-sm: 4px;
	--affep-radius: 8px;
	--affep-focus-ring: 0 0 0 3px rgba(22, 118, 119, .14);
	--affep-space-1: 4px;  --affep-space-2: 8px;  --affep-space-3: 12px; --affep-space-4: 16px;
	--affep-space-5: 20px; --affep-space-6: 24px; --affep-space-7: 32px; --affep-space-8: 40px;
	--affep-space-9: 48px; --affep-space-10: 64px;
	--affep-duration: 200ms;
}

/* --- Composants --- */
:focus-visible {
	outline: 2px solid var(--affep-action);
	outline-offset: 2px;
}
::selection {
	color: #FFFFFF;
	background: var(--affep-action);
}
/* Boutons : arrondi 8 px, libellé 600, cible ≥ 44 px (les réglages propres à un widget restent prioritaires) */
.elementor-button {
	border-radius: var(--affep-radius);
	font-weight: 600;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--affep-duration) ease, border-color var(--affep-duration) ease, color var(--affep-duration) ease;
}
/* Titres : approche -0,01 em et lignes équilibrées */
.elementor-heading-title {
	letter-spacing: -0.01em;
	text-wrap: balance;
}
/* Liens dans le texte : 600, soulignés */
.elementor-widget-text-editor a:not(.elementor-button) {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
/* Champs de formulaire : arrondi 4 px, halo de focus */
.elementor-field-group .elementor-field-textual,
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea {
	border-radius: var(--affep-radius-sm);
}
.elementor-field-group .elementor-field-textual:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--affep-action);
	box-shadow: var(--affep-focus-ring);
	outline: 0;
}

/* --- Pied de page (modèle Elementor 51) ---
   L'essentiel se règle dans Elementor (Modèles > Theme Builder > Pied de page « FOOTER AFFEP ») :
   couleurs, tailles et espacements sont dans les onglets Style des widgets ; les liens sont dans
   Apparence > Menus (« Pied de page – … »). Ne reste ici que ce qu'Elementor ne sait pas régler. */

/* Espacement entre widgets : le réglage global du kit (20 px) est trop large ici ;
   l'espace voulu est réglé widget par widget (Avancé > Marge) */
.affep-pied {
	--kit-widget-spacing: 0px;
}
.affep-pied .elementor-widget:not(:last-child) {
	margin-bottom: 0;
}
.affep-pied .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}
/* Barre basse : filet de séparation au-dessus du © et des liens légaux */
.affep-pied-bas > .elementor-container {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-block: var(--affep-space-2);
}
/* Contour de focus visible sur le fond sombre */
.affep-pied :focus-visible {
	outline-color: var(--affep-on-dark-accent);
}
/* Champ e-mail de la newsletter : 44 px de haut, 16 px de texte (pas de zoom automatique sur iPhone) */
.affep-pied .elementor-field-textual {
	min-height: 44px;
	font-size: 1rem;
}
/* Menus du pied : aucune flèche de sous-menu, cibles de 44 px sur téléphone */
.affep-pied__menu .sub-arrow {
	display: none;
}
@media (max-width: 767px) {
	/* Liens légaux à gauche sous le © : l'alignement du widget Menu n'est pas réglable par écran */
	.affep-pied-bas .elementor-nav-menu__align-end .elementor-nav-menu {
		justify-content: flex-start;
		margin-inline-start: 0;
	}
	.affep-pied__menu .elementor-item {
		min-height: 44px;
		display: flex;
		align-items: center;
	}
}
@media (max-width: 479px) {
	/* Les deux colonnes de liens deviennent une seule colonne sur les petits écrans. */
	.affep-pied:not(.affep-pied-bas) > .elementor-container > .elementor-column:nth-child(2),
	.affep-pied:not(.affep-pied-bas) > .elementor-container > .elementor-column:nth-child(3) {
		width: 100%;
	}
}
