/*
Theme Name: Entraide Maritime
Description: Thème bloc sur mesure pour la plateforme Entraide Maritime (emploi, annuaire, annonces, communauté, carte, météo marine).
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.17.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entraide-maritime
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* ==========================================================================
   SOMMAIRE
   --------------------------------------------------------------------------
   1.  Jetons de conception (:root)
   2.  Base & éléments (body, liens, boutons, .em-eyebrow)
   3.  Intégration WordPress (gap des sections, layouts)
   4.  En-tête
   5.  Pied de page
   6.  Accueil — hero (recherche, bande ville, chiffres clés)
   7.  Accueil — grille de modules
   8.  Accueil — teaser Assistant IA
   9.  Accueil — CTA de section
   10. Cartes de liste (.emc-grid, .emc-card, carrousel de familles)
   11. Badges & étiquettes
   12. Filtres (génériques, offres, annonces / familles)
   13. Fiche structurée (.emc-fiche) + signalement
   14. Carte interactive
   15. Météo marine
   16. Parcours professionnel (CV) + répéteur
   17. Single & archive (hero, photo)
   18. Communauté — annuaire de groupes, fil, tri
   19. Communauté — commentaires / réponses
   20. Communauté — urgences en mer
   21. Messagerie privée
   22. Formulaires de dépôt (+ actions propriétaire, galerie, sélecteur métier)
   23. Gating de compte
   24. Authentification (inscription / connexion)
   25. En-tête — actions de compte
   26. Compte — notifications, identité, badges de niveau
   27. Recrutement (fiche offre)
   28. Boost (fiche annonce / offre)
   29. Avis & notes (fiche pro)
   30. Candidature (.emc-postuler)
   31. Bandeau cookies
   32. Préférence de mouvement réduit

   Convention : chaque composant porte ses propres @media juste après ses
   règles de base. Points de rupture utilisés : 560, 600, 640, 720, 768,
   960, 1024, 1280 px (max-width).
   ========================================================================== */


/* ==========================================================================
   1. JETONS DE CONCEPTION
   ========================================================================== */
:root {
	/* Palette du thème (miroir de theme.json, en plus court) */
	--em-bg: var( --wp--preset--color--base );
	--em-surface: var( --wp--preset--color--surface );
	--em-ink: var( --wp--preset--color--contrast );
	--em-primary: var( --wp--preset--color--primary );
	--em-secondary: var( --wp--preset--color--secondary );
	--em-accent: var( --wp--preset--color--accent );
	--em-rope: var( --wp--preset--color--rope );
	--em-line: var( --wp--preset--color--line );

	/* Encre en composantes RVB, pour les teintes translucides */
	--em-ink-rgb: 14, 31, 43;

	/* Texte secondaire / discret (≥ 4,5:1 sur fond clair) */
	--em-muted: #56707f;

	/* Orange lisible : pour le TEXTE et les liens sur fond clair
	   (l'orange vif --em-accent ne passe que sur fond foncé ou en aplat). */
	--em-accent-ink: #b0421c;

	/* Anneau de focus clavier — visible sur clair ET sur bleu marine (≥ 3:1). */
	--em-focus: #1e90c8;

	/* Couleurs d'état — encarts de succès / avertissement / erreur / info */
	--em-ok-bg: #e4f3ea;
	--em-ok-ink: #14682f;
	--em-ok-line: #1c7c4a;
	--em-warn-bg: #fef3e2;
	--em-warn-ink: #7a4a00;
	--em-warn-line: #e9a23b;
	--em-danger-bg: #fdecea;
	--em-danger-ink: #8a1c13;
	--em-danger-line: #b23b32;
	--em-danger-strong: #c0392b;
	--em-info-bg: #eef4fb;
	--em-info-ink: #0a3d73;

	/* Niveaux de membre : or = fondateur, argent = certifié, bronze = vérifié */
	--em-gold-bg: #fbeecb;
	--em-gold-ink: #7a4e0d;
	--em-gold-line: rgba( 122, 78, 13, 0.4 );
	--em-silver-bg: #edeff2;
	--em-silver-ink: #46515c;
	--em-silver-line: rgba( 70, 81, 92, 0.35 );
	--em-bronze-bg: #f4e4d4;
	--em-bronze-ink: #7a4a24;
	--em-bronze-line: rgba( 122, 74, 36, 0.35 );

	/* Étoiles de notation */
	--em-star: #e8a33d;
	--em-star-off: #cfd8dd;

	/* Ombre portée standard des cartes */
	--em-shadow-card: 0 12px 24px rgba( var( --em-ink-rgb ), 0.1 );
}


/* ==========================================================================
   2. BASE & ÉLÉMENTS
   ========================================================================== */
body {
	background: var( --em-bg );
}

a {
	transition: color 0.15s ease;
}

/* --- Focus clavier visible partout (WCAG 2.4.7 / 1.4.11) --- */
:focus-visible {
	outline: 3px solid var( --em-focus );
	outline-offset: 2px;
	border-radius: 3px;
}
/* Sur les surfaces sombres, un liseré clair détache l'anneau du fond. */
.em-hero :focus-visible,
.em-archive-hero :focus-visible,
.em-footer :focus-visible,
.em-ia-teaser :focus-visible,
.emc-groupe-hero :focus-visible,
.emc-cc :focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 5px var( --em-focus );
}

/* --- Lien d'évitement (premier élément focusable) --- */
.em-skip-link {
	position: absolute;
	left: 0.5rem;
	top: -3rem;
	z-index: 1000;
	padding: 0.6rem 1rem;
	font-weight: 700;
	color: var( --em-surface );
	background: var( --em-primary );
	border-radius: 0 0 8px 8px;
	transition: top 0.15s ease;
}

.em-skip-link:focus {
	top: 0;
}

.wp-element-button {
	padding: 0.85rem 1.75rem;
	letter-spacing: 0.01em;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wp-element-button:hover {
	transform: translateY( -1px );
}

/* Bouton contour (style de bloc « outline ») */
.is-style-outline .wp-element-button {
	background: transparent;
	color: var( --em-primary );
	border: 1.5px solid var( --em-primary );
}

.is-style-outline .wp-element-button:hover {
	background: var( --em-primary );
	color: var( --em-surface );
}

/* Sur-titre décoré d'un tiret (« eyebrow ») */
.em-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var( --wp--preset--font-family--body );
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --em-secondary );
}

.em-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var( --em-accent );
	display: inline-block;
}

/* Utilitaire : masqué visuellement mais lisible par les lecteurs d'écran */
.em-visually-hidden,
.em-hero__finder .wp-block-search__label,
.em-hero-search .wp-block-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}


/* ==========================================================================
   3. INTÉGRATION WORDPRESS
   ========================================================================== */

/* WordPress insère un margin-block-start (= blockGap) entre les sections de
   premier niveau du gabarit (en-tête, main, pied) même sans balisage qui le
   demande. On le remet à zéro : les sections se touchent et gèrent leur
   rythme vertical via padding. N'affecte pas les gaps internes. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}


/* ==========================================================================
   4. EN-TÊTE
   ========================================================================== */
.em-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var( --em-surface );
	border-bottom: 1px solid var( --em-line );
}

.em-header__top {
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 0.4rem;
	column-gap: 1rem;
}

.em-header__bottom {
	padding-top: 0.35rem;
	padding-bottom: 0.5rem;
	border-top: 1px solid var( --em-line );
}

/* -- Logo + baseline -- */
.em-logo-group {
	align-items: center;
	gap: 0.65rem;
	flex: 0 0 auto;
}

.em-logo-icon {
	margin: 0;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.em-logo-icon img {
	height: 36px;
	width: auto;
	border-radius: 6px;
	display: block;
}

.em-logo-text {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.em-logo a {
	font-family: var( --wp--preset--font-family--heading );
	font-weight: 800;
	font-size: 1.25rem;
	line-height: 1.15;
	color: var( --em-ink );
	white-space: nowrap;
}

.em-logo-slogan {
	margin: 0.1rem 0 0;
	font-size: 0.7rem;
	font-style: italic;
	letter-spacing: 0.03em;
	color: var( --em-accent-ink );
	line-height: 1;
	white-space: nowrap;
}

/* -- Cluster de droite : sélecteur de langue + compte -- */
.em-header-actions {
	gap: 1rem;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
}

.em-lang-switch {
	border-right: 1px solid var( --em-line );
	padding-right: 1rem;
	opacity: 0.7;
}

.em-lang-switch:hover,
.em-lang-switch:focus-within {
	opacity: 1;
}

.em-lang-switch .wp-block-navigation__container,
.em-lang-switch ul {
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0.55rem;
	align-items: center;
}

.em-lang-switch a.wp-block-navigation-item__content {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --em-ink );
	padding: 0.2rem 0;
}

.em-lang-switch .current-lang a.wp-block-navigation-item__content {
	color: var( --em-secondary );
}

.em-header-actions .is-style-outline .wp-element-button {
	border-color: var( --em-line );
	color: var( --em-ink );
}

/* -- Navigation principale -- */
.em-nav {
	width: 100%;
	column-gap: 0.15rem;
	font-weight: 600;
	font-size: 0.85rem;
}

.em-nav a.wp-block-navigation-item__content {
	color: var( --em-ink );
	padding: 0.28rem 0.6rem;
	border-radius: 6px;
	white-space: nowrap;
}

.em-nav a.wp-block-navigation-item__content:hover {
	color: var( --em-secondary );
	background: rgba( var( --em-ink-rgb ), 0.05 );
}

.em-nav .current-menu-item a.wp-block-navigation-item__content,
.em-nav .current_page_item a.wp-block-navigation-item__content {
	color: var( --em-secondary );
}

@media ( max-width: 960px ) {
	.emc-compte-actions__hi {
		display: none;
	}
}

@media ( max-width: 720px ) {
	.em-logo-slogan {
		display: none;
	}
	.em-lang-switch {
		border-right: 0;
		padding-right: 0;
	}
}

@media ( max-width: 600px ) {
	/* Le sélecteur de langue disparaît sur téléphone (site FR au lancement). */
	.em-lang-switch {
		display: none;
	}
	.em-header__top {
		row-gap: 0.5rem;
	}
	.em-header-actions {
		width: 100%;
		flex-wrap: wrap;
		justify-content: flex-end;
	}
}


/* ==========================================================================
   5. PIED DE PAGE
   ========================================================================== */
.em-footer {
	padding-top: clamp( 2.5rem, 5vw, 4rem );
	padding-bottom: 2rem;
}

.em-footer-logo {
	margin: 0 0 0.75rem;
}

.em-footer-logo img {
	height: 130px;
	width: auto;
	border-radius: 10px;
	display: block;
}

.em-footer-brand {
	flex: 1 1 260px;
	max-width: 320px;
	gap: 0.5rem;
}

.em-footer-slogan {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	color: var( --em-surface );
	letter-spacing: 0.01em;
}

.em-footer-contact,
.em-footer-social {
	margin: 0.35rem 0 0;
}

.em-footer-addr {
	margin: 0.35rem 0 0;
	opacity: 0.7;
}

.em-footer-contact a,
.em-footer-social a {
	color: var( --em-surface );
	text-decoration: underline;
	text-underline-offset: 2px;
}

.em-footer-contact a:hover,
.em-footer-social a:hover {
	opacity: 0.8;
}

.em-footer-nav {
	gap: 0.6rem;
}

.em-footer-nav.wp-block-navigation {
	flex: 0 0 auto;
}

.em-footer-nav a.wp-block-navigation-item__content {
	color: var( --em-surface );
	opacity: 0.85;
}

.em-footer-nav a.wp-block-navigation-item__content:hover {
	opacity: 1;
	color: var( --em-rope );
}

.em-footer-nav--legal a.wp-block-navigation-item__content {
	font-size: 0.85rem;
	opacity: 0.7;
}

.em-footer-sep {
	opacity: 0.25;
	margin: 2rem 0;
}

.em-footer > .wp-block-group.alignwide {
	flex-wrap: wrap;
	row-gap: 2rem;
	column-gap: 2.5rem;
}

.em-footer > .wp-block-group.alignwide:last-of-type {
	flex-wrap: wrap;
	row-gap: 0.5rem;
}

@media ( max-width: 768px ) {
	.em-footer > .wp-block-group.alignwide {
		flex-direction: column;
		row-gap: 1.5rem;
	}
	.em-footer-nav.wp-block-navigation {
		flex: 1 1 auto;
		width: 100%;
	}
	.em-footer-brand {
		max-width: none;
	}
}


/* ==========================================================================
   6. ACCUEIL — HERO
   ========================================================================== */
.em-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp( 3.5rem, 8vw, 6.5rem );
	padding-bottom: clamp( 3rem, 6vw, 5rem );
	color: var( --em-surface );
	/* Photo de fond (officier à la barre) + voile bleu pour la lisibilité.
	   WebP (24 Ko) avec repli PNG ; absente => simple dégradé bleu. */
	background:
		linear-gradient( 160deg, rgba( 15, 46, 66, 0.92 ) 0%, rgba( 10, 44, 66, 0.86 ) 55%, rgba( 20, 74, 104, 0.82 ) 130% ),
		url( "assets/hero-bg.png" ) right center / cover no-repeat,
		linear-gradient( 160deg, var( --em-primary ) 0%, #0a2c42 60%, var( --em-secondary ) 130% );
	background:
		linear-gradient( 160deg, rgba( 15, 46, 66, 0.92 ) 0%, rgba( 10, 44, 66, 0.86 ) 55%, rgba( 20, 74, 104, 0.82 ) 130% ),
		image-set( url( "assets/hero-bg.webp" ) type( "image/webp" ), url( "assets/hero-bg.png" ) type( "image/png" ) ) right center / cover no-repeat,
		linear-gradient( 160deg, var( --em-primary ) 0%, #0a2c42 60%, var( --em-secondary ) 130% );
}

/* Halo orange décoratif en bas à droite */
.em-hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -40% auto;
	width: 60%;
	padding-top: 60%;
	border-radius: 50%;
	background: radial-gradient( circle, rgba( 255, 106, 61, 0.25 ), transparent 70% );
	pointer-events: none;
}

/* Contenu au-dessus des fonds et du halo */
.em-hero > * {
	position: relative;
	z-index: 1;
}

.em-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 680px;
}

.em-hero .em-eyebrow {
	color: var( --em-rope );
}

.em-hero .em-eyebrow::before {
	background: var( --em-rope );
}

.em-hero h1 {
	color: var( --em-surface );
	font-size: clamp( 2.4rem, 5vw, 3.75rem );
	margin: 0.75rem 0 1rem;
}

.em-hero p {
	font-size: 1.15rem;
	opacity: 0.9;
	max-width: 560px;
}

/* -- Boîte de recherche du hero -- */
.em-hero-search {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	max-width: 520px;
	padding: 0.6rem;
	background: rgba( 255, 255, 255, 0.08 );
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 10px;
}

.em-hero-search .wp-block-search__inside-wrapper {
	flex: 1 1 220px;
	min-width: 0;
}

.em-hero-search input {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	background: transparent;
	border: none;
	/* Champ posé sur le bandeau blanc du bloc recherche : texte foncé. */
	color: var( --em-ink );
}

.em-hero-search input::placeholder {
	color: rgba( var( --em-ink-rgb ), 0.55 );
}

/* -- Boîte unifiée « recherche + bande ville + météo » -- */
.em-hero__finder {
	margin-top: 1.75rem;
	max-width: 520px;
	padding: 0.5rem;
	background: rgba( 255, 255, 255, 0.08 );
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 10px;
}

.em-hero__finder .em-hero-search {
	margin: 0;
	max-width: none;
	padding: 0.15rem;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.em-hero-ville {
	margin-top: 0.5rem;
	padding: 0.6rem 0.15rem 0.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border-top: 1px solid rgba( 255, 255, 255, 0.18 );
}

.em-hero-ville__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.em-hero-ville__label {
	flex-basis: 100%;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var( --em-rope );
}

.em-hero-ville__select,
.em-hero-ville__input {
	flex: 1 1 170px;
	min-width: 0;
	padding: 0.45rem 0.6rem;
	font-size: 0.95rem;
	color: var( --em-surface );
	background: rgba( 255, 255, 255, 0.12 );
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 8px;
}

.em-hero-ville__select option,
.em-hero-ville__select optgroup {
	color: var( --em-ink );
}

.em-hero-ville__input::placeholder {
	color: rgba( 255, 255, 255, 0.6 );
}

.em-hero-ville__submit {
	flex: 0 0 auto;
	padding: 0.45rem 1rem;
	font-weight: 700;
	color: var( --em-ink );
	background: var( --em-accent );
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.em-hero-ville__submit:hover {
	filter: brightness( 1.08 );
}

.em-hero-ville__meteo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.7rem;
	font-size: 0.95rem;
	min-height: 1.4em;
}

.em-hero-ville__city {
	font-weight: 700;
	color: var( --em-rope );
}

.em-hero-ville__vals {
	opacity: 0.95;
}

.em-hero-ville__hint {
	font-size: 0.85rem;
	opacity: 0.7;
}

/* -- Bande de chiffres clés (bloc entraide/stats) -- */
.em-stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp( 1.5rem, 4vw, 3.5rem );
	margin-top: 2.5rem;
	position: relative;
	z-index: 1;
}

.em-stats__item {
	display: flex;
	flex-direction: column;
}

.em-stats__num {
	font-family: var( --wp--preset--font-family--heading );
	font-size: 2rem;
	font-weight: 800;
	color: var( --em-rope );
}

.em-stats__label {
	font-size: 0.85rem;
	opacity: 0.85;
}

@media ( max-width: 600px ) {
	/* Recherche du hero : libellé, champ et bouton empilés pleine largeur. */
	.em-hero-search .wp-block-search__label {
		flex: 1 1 100%;
	}
	.em-hero-search .wp-block-search__inside-wrapper {
		flex: 1 1 100%;
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	.em-hero-search .wp-block-search__input,
	.em-hero-search .wp-block-search__button {
		flex: 1 1 100%;
		border-radius: 8px;
	}
	.em-hero-search .wp-block-search__button {
		margin: 0;
	}
	/* Chiffres clés : empilés, alignés à gauche, valeur + libellé sur une ligne. */
	.em-stats {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
	}
	.em-stats__item {
		flex-direction: row;
		align-items: baseline;
		gap: 0.5rem;
		width: 100%;
	}
	.em-stats__num {
		font-size: 1.6rem;
	}
}


/* ==========================================================================
   7. ACCUEIL — GRILLE DE MODULES
   ========================================================================== */
.em-modules {
	padding-top: clamp( 3.5rem, 7vw, 5.5rem );
	padding-bottom: clamp( 3.5rem, 7vw, 5.5rem );
}

.em-modules__grid {
	display: grid;
	/* Colonnes fixes : le nombre de colonnes ne dépend pas de la largeur
	   exacte de la fenêtre, et une carte seule sur la dernière ligne garde
	   la même largeur que les autres. */
	grid-template-columns: repeat( 3, 1fr );
	gap: 1.5rem;
	margin-top: 2.5rem;
}

/* WordPress insère un blockGap vertical entre blocs frères : dans la grille,
   ça décalait toutes les cartes sauf la première. Neutralisé. */
.em-modules__grid > * {
	margin-top: 0;
	margin-block-start: 0;
}

.em-module-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.75rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 14px;
	/* Même gabarit pour les 7 cartes : plancher commun + blocs internes à
	   hauteur fixe (titre 1 ligne, description 3 lignes, lien 1 ligne). */
	min-height: 300px;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.em-module-card:hover {
	transform: translateY( -4px );
	border-color: var( --em-secondary );
}

/* Pictogramme (SVG en data-URI, teinté « Marine ») */
.em-module-card::before {
	content: "";
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background-color: var( --em-bg );
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}

.em-module-card--jobs::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D5C' stroke-width='2'%3E%3Cpath d='M3 21h18M6 21V9l6-4 6 4v12M10 21v-6h4v6'/%3E%3C/svg%3E" );
}

.em-module-card--pros::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D5C' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E" );
}

.em-module-card--ads::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D5C' stroke-width='2'%3E%3Cpath d='M3 11l18-7-7 18-2-8-9-3z'/%3E%3C/svg%3E" );
}

.em-module-card--community::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D5C' stroke-width='2'%3E%3Cpath d='M8 12h8M8 8h8M8 16h5M4 4h16v16H4z'/%3E%3C/svg%3E" );
}

.em-module-card--map::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D5C' stroke-width='2'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 10-14 0c0 5.5 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E" );
}

.em-module-card--messaging::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D5C' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z'/%3E%3C/svg%3E" );
}

.em-module-card--meteo::before {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D5C' stroke-width='2'%3E%3Cpath d='M17.5 19a4.5 4.5 0 000-9 6 6 0 00-11.4 1.8A4 4 0 007 19h10.5z'/%3E%3Cpath d='M8 22l1.5-2M12 22l1.5-2M16 22l1.5-2'/%3E%3C/svg%3E" );
}

.em-module-card h3 {
	margin: 0.25rem 0 0;
	font-size: 1.2rem;
	white-space: normal;
	overflow: visible;
}

.em-module-card p {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.75;
}

/* Description : toujours 3 lignes réservées, pour que le bloc de texte ait la
   même hauteur d'une carte à l'autre, à toutes les largeurs. */
.em-module-card > p:first-of-type {
	line-height: 1.5;
	height: 4.5em;
	overflow: hidden;
}

/* Le lien « → » est collé en bas : alignement identique d'une carte à l'autre. */
.em-module-card > p:last-child {
	margin-top: auto;
	padding-top: 0.5rem;
	opacity: 1;
	white-space: nowrap;
}

.em-module-card a.em-module-card__link {
	font-weight: 700;
	font-size: 0.9rem;
	color: var( --em-secondary );
	white-space: nowrap;
}

/* Paliers de colonnes fixes : 3 → 2 → 1 */
@media ( max-width: 1024px ) {
	.em-modules__grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 768px ) {
	.em-modules {
		padding-top: 2.75rem;
		padding-bottom: 2.75rem;
	}
	.em-modules__grid {
		grid-template-columns: 1fr;
		margin-top: 1.75rem;
	}
	/* Cartes : hauteur naturelle sur petit écran. */
	.em-module-card {
		min-height: 0;
		padding: 1.4rem;
	}
	.em-module-card > p:first-of-type {
		height: auto;
	}
	.em-module-card > p:last-child {
		margin-top: 0.75rem;
	}
}


/* ==========================================================================
   8. ACCUEIL — TEASER ASSISTANT IA
   ========================================================================== */
.em-ia-teaser {
	padding-top: clamp( 2rem, 5vw, 3.25rem );
	padding-bottom: clamp( 2rem, 5vw, 3.25rem );
	color: #eaf3f7;
	background: linear-gradient( 135deg, #0d2f45 0%, #114b6e 100% );
}

.em-ia-teaser__inner {
	gap: 1rem 2rem;
	align-items: center;
}

.em-ia-teaser__text {
	max-width: 640px;
}

.em-ia-teaser__badge {
	display: inline-block;
	margin: 0 0 0.6rem;
	padding: 0.25rem 0.7rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba( 255, 255, 255, 0.14 );
	border: 1px solid rgba( 255, 255, 255, 0.3 );
	border-radius: 999px;
}

.em-ia-teaser__text h2 {
	margin: 0 0 0.5rem;
	color: #fff;
}

.em-ia-teaser__text p:not( .em-ia-teaser__badge ) {
	margin: 0;
	opacity: 0.92;
	line-height: 1.55;
}


/* ==========================================================================
   9. ACCUEIL — CTA DE SECTION
   ========================================================================== */
.em-cta-section {
	padding: clamp( 2.5rem, 6vw, 4rem );
	text-align: center;
	color: var( --em-surface );
	background: var( --em-secondary );
	border-radius: 20px;
}

.em-cta-section h2 {
	color: var( --em-surface );
}

.em-cta-section .wp-element-button {
	background: var( --em-accent );
}


/* ==========================================================================
   10. CARTES DE LISTE
   ========================================================================== */
.emc-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 1.5rem;
	margin-top: 1.75rem;
}

.emc-grid__empty {
	grid-column: 1 / -1;
	padding: 3rem 1rem;
	text-align: center;
	color: var( --em-secondary );
	background: var( --em-surface );
	border-radius: 10px;
}

/* -- Groupe de résultats en rangée défilante (annuaire / annonces par famille).
   Téléphone + tablette : défilement latéral natif. Ordinateur : flèches ‹ ›. -- */
.emc-grid--fam {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.25rem;
	padding-bottom: 0.75rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

.emc-grid--fam > .emc-card-wrap {
	flex: 0 0 clamp( 240px, 76vw, 290px );
	scroll-snap-align: start;
}

.emc-grid--fam > .emc-card-wrap .emc-card {
	height: 100%;
}

.emc-grid--fam::-webkit-scrollbar {
	height: 6px;
}

.emc-grid--fam::-webkit-scrollbar-thumb {
	background: var( --em-line );
	border-radius: 999px;
}

.emc-carousel {
	position: relative;
	margin-top: 1.75rem;
}

.emc-carousel .emc-grid--fam {
	margin-top: 0;
}

.emc-carousel__nav {
	position: absolute;
	top: 45%;
	transform: translateY( -50% );
	z-index: 4;
	width: 42px;
	height: 42px;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	color: var( --em-ink );
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba( 0, 0, 0, 0.15 );
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.emc-carousel__nav--prev {
	left: -14px;
}

.emc-carousel__nav--next {
	right: -14px;
}

.emc-carousel__nav:hover {
	color: var( --em-surface );
	background: var( --em-primary );
	border-color: var( --em-primary );
}

/* Flèches uniquement sur pointeur précis (souris) et si le contenu déborde. */
@media ( hover: hover ) and ( pointer: fine ) {
	.emc-carousel.is-scrollable .emc-carousel__nav {
		display: flex;
	}
	.emc-carousel.is-scrollable.is-start .emc-carousel__nav--prev,
	.emc-carousel.is-scrollable.is-end .emc-carousel__nav--next {
		opacity: 0;
		pointer-events: none;
	}
}

/* -- Carte -- */
.emc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: var( --em-ink );
	text-decoration: none;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.emc-card:hover {
	transform: translateY( -3px );
	box-shadow: var( --em-shadow-card );
	color: var( --em-ink );
}

.emc-card__media {
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --em-bg );
}

.emc-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emc-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, var( --em-primary ), var( --em-secondary ) );
}

.emc-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.25rem 1.35rem;
}

.emc-card__title {
	margin: 0;
	font-size: 1.1rem;
}

.emc-card__title-link {
	text-decoration: none;
}

.emc-card__title-link .emc-card__title {
	color: var( --em-ink );
}

.emc-card__meta--strong {
	margin: 0;
	font-weight: 700;
	font-size: 0.95rem;
	color: var( --em-secondary );
}

.emc-card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.85;
}

.emc-card__row {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 0.5rem;
}

.emc-card__tag {
	padding: 0.2rem 0.6rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --em-primary );
	background: var( --em-bg );
	border-radius: 20px;
}

.emc-card__loc {
	font-size: 0.8rem;
	color: var( --em-ink );
	opacity: 0.75;
}

.emc-card__author {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
}

.emc-card__author img {
	border-radius: 999px;
}

.emc-card__contact {
	margin-left: auto;
	padding: 0.25rem 0.65rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var( --em-secondary );
	text-decoration: none;
	border: 1px solid var( --em-secondary );
	border-radius: 999px;
}

.emc-card__contact:hover {
	color: var( --em-surface );
	background: var( --em-secondary );
}

/* -- Carte « publication » (communauté) -- */
.emc-card--post {
	padding: 1.25rem 1.4rem 1.5rem;
	gap: 0.5rem;
}

.emc-card--post .wp-block-post-title a {
	color: var( --em-ink );
}

.emc-card--post .emc-card__loc {
	font-size: 0.8rem;
	opacity: 0.72;
}

/* -- Enrobage carte + actions flottantes (favori / partage) -- */
[data-js-only] {
	display: none;
}

.emc-card-wrap {
	position: relative;
	display: flex;
}

.emc-card-wrap > .emc-card {
	flex: 1;
	min-width: 0;
}

.emc-card__actions {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 2;
	display: flex;
	gap: 0.35rem;
}

.emc-fav,
.emc-share {
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	font-size: 15px;
	line-height: 1;
	color: var( --em-ink );
	background: rgba( 255, 255, 255, 0.94 );
	border: 1px solid var( --em-line );
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.emc-fav:hover,
.emc-share:hover {
	transform: translateY( -1px );
	border-color: var( --em-secondary );
}

.emc-fav {
	color: #b6ae9c;
}

.emc-fav.is-fav {
	color: var( --em-accent-ink );
	border-color: var( --em-accent );
}

.emc-fav--lg,
.emc-share--lg {
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	border-radius: 8px;
}

.emc-fav--lg .emc-fav__heart {
	font-size: 15px;
}

/* Bouton « ← Retour » en tête des fiches (offre / annonce / profil) */
.emc-back {
	margin: 0 0 1rem;
}

.emc-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var( --em-secondary );
	text-decoration: none;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 999px;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.emc-back-link:hover,
.emc-back-link:focus-visible {
	color: var( --em-primary );
	border-color: var( --em-secondary );
}

/* Barre d'actions sur la fiche offre (favori / partage + navigation ← →) */
.emc-offre-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0.5rem 0 1.5rem;
}

.emc-nav-offre {
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var( --em-secondary );
	text-decoration: none;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-nav-offre:hover {
	color: var( --em-secondary );
	border-color: var( --em-secondary );
}

.emc-nav-offre--next {
	margin-left: auto;
}

.emc-fav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.emc-fav-toggle__heart {
	color: var( --em-accent-ink );
}

.emc-fav-toggle__n {
	opacity: 0.72;
	font-weight: 400;
}

.emc-toast {
	position: fixed;
	left: 50%;
	bottom: 2rem;
	z-index: 999;
	transform: translate( -50%, 1rem );
	padding: 0.7rem 1.15rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var( --em-surface );
	background: var( --em-ink );
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba( var( --em-ink-rgb ), 0.25 );
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.emc-toast.is-in {
	opacity: 1;
	transform: translate( -50%, 0 );
}

@media ( max-width: 768px ) {
	.emc-grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   11. BADGES & ÉTIQUETTES
   ========================================================================== */
.emc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.emc-badge {
	padding: 0.3rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 20px;
}

.emc-badge--metier {
	color: var( --em-surface );
	background: var( --em-primary );
}

.emc-badge--region {
	color: var( --em-ink );
	background: var( --em-bg );
	border: 1px solid var( --em-line );
}

.emc-badge--type {
	color: var( --em-surface );
	background: var( --em-rope );
}

.emc-badge--urgent {
	color: var( --em-ink );
	background: var( --em-accent );
}

.emc-badge--demande {
	color: var( --em-surface );
	background: var( --em-secondary );
}

/* Rangée d'étiquettes d'une carte offre / annonce */
.emc-card__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.emc-card__flags:empty {
	display: none;
}

.emc-card--offre.is-urgent,
.emc-card--annonce.is-urgent {
	border-color: var( --em-accent );
}

.emc-card__salaire {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var( --em-primary );
}

.emc-card__loc--dist {
	font-weight: 700;
	color: var( --em-secondary );
	opacity: 1;
}


/* ==========================================================================
   12. FILTRES
   ========================================================================== */

/* -- Filtres génériques -- */
.emc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1.25rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-filters__search {
	flex: 1 1 220px;
	padding: 0.65rem 0.9rem;
	font-size: 0.95rem;
	border: 1px solid var( --em-line );
	border-radius: 6px;
}

.emc-filters select {
	padding: 0.65rem 0.9rem;
	font-size: 0.95rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 6px;
}

.emc-filters__submit {
	flex-shrink: 0;
	padding: 0.65rem 1.5rem;
	font-weight: 700;
	white-space: nowrap;
	color: var( --em-surface );
	background: var( --em-primary );
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.emc-filters__submit:hover {
	color: var( --em-ink );
	background: var( --em-accent );
}

/* Toutes les barres de recherche du site : texte foncé sur fond clair. */
.emc-filters__search,
.emc-offres-filters__q,
.emc-offres-filters__ville,
.emc-meteo-select,
.emc-map-search input,
.emc-discussions-filters .emc-offres-filters__q {
	color: var( --em-ink );
	background: var( --em-surface );
}

.emc-filters__search::placeholder,
.emc-offres-filters__q::placeholder,
.emc-offres-filters__ville::placeholder,
.emc-map-search input::placeholder {
	color: rgba( var( --em-ink-rgb ), 0.55 );
}

/* -- Filtres des offres d'emploi -- */
.emc-offres-filters {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: 1.1rem 1.25rem;
	margin-bottom: 1.5rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-offres-filters__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.emc-offres-filters__q {
	flex: 1 1 260px;
	padding: 0.7rem 0.95rem;
	font-size: 0.95rem;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

/* Interrupteur segmenté (offre / demande) */
.emc-seg {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-seg__opt {
	padding: 0.55rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-ink );
	background: var( --em-surface );
	border-left: 1px solid var( --em-line );
	cursor: pointer;
}

.emc-seg__opt:first-child {
	border-left: none;
}

.emc-seg__opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.emc-seg__opt.is-active,
.emc-seg__opt:has( input:checked ) {
	color: var( --em-surface );
	background: var( --em-primary );
}

/* Onglets « Trouve ton professionnel » / « Je suis professionnel » : pleine
   largeur, entre le bandeau bleu et la barre de recherche. */
.emc-seg--annuaire {
	display: flex;
	width: 100%;
	margin-bottom: 1.25rem;
}

.emc-seg--annuaire .emc-seg__opt {
	flex: 1 1 0;
	text-align: center;
	text-decoration: none;
}

@media ( max-width: 480px ) {
	.emc-seg--annuaire .emc-seg__opt {
		padding: 0.5rem 0.4rem;
		font-size: 0.8rem;
	}
}

/* Onglet « Je suis professionnel » : espace privé du membre */
.emc-pro-space {
	max-width: 680px;
	margin-inline: auto;
}

.emc-pro-space__lead {
	margin: 0 0 1.25rem;
	font-size: 0.92rem;
	color: var( --em-muted );
}

/* Choix « type de fiche » au dépôt d'un profil */
.emc-submit-sens {
	margin: 0 0 0.4rem;
	padding: 0.8rem 1rem;
	border: 1px solid var( --em-line );
	border-radius: 10px;
	background: var( --em-base );
}

.emc-submit-sens legend {
	padding: 0 0.4rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var( --em-muted );
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.emc-radio-line {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.4rem;
	font-size: 0.9rem;
}

.emc-radio-line input {
	margin-top: 0.15rem;
}

.emc-offres-filters__facets {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.6rem;
}

/* Le bouton « Filtres » masque ce panneau via l'attribut [hidden] ;
   sans ceci, `display: flex` ci-dessus l'emporterait sur `display: none`. */
.emc-offres-filters__facets[hidden] {
	display: none;
}

/* Filet de sécurité pour tous les éléments repliés par JS. */
[hidden] {
	display: none !important;
}

.emc-facet {
	max-width: 100%;
	font-size: 0.88rem;
	background: var( --em-bg );
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-facet > summary {
	padding: 0.55rem 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	color: var( --em-primary );
	list-style: none;
	cursor: pointer;
}

.emc-facet > summary::-webkit-details-marker {
	display: none;
}

.emc-facet[open] {
	flex-basis: 320px;
	background: var( --em-surface );
}

.emc-facet__n {
	display: inline-block;
	min-width: 1.3em;
	margin-left: 0.25rem;
	padding: 0 0.35rem;
	text-align: center;
	font-size: 0.72rem;
	color: var( --em-ink );
	background: var( --em-accent );
	border-radius: 999px;
}

.emc-facet__body {
	padding: 0.6rem 0.9rem 0.9rem;
}

.emc-facet__hint {
	margin: 0 0 0.6rem;
	font-size: 0.78rem;
	opacity: 0.75;
}

.emc-facet .emc-metier-picker {
	max-height: 300px;
	padding: 0.4rem 0.9rem 0.8rem;
	border: none;
}

.emc-loc-facades {
	max-height: 280px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.emc-loc-facade > summary {
	padding: 0.3rem 0;
	list-style: none;
	cursor: pointer;
}

.emc-loc-facade > summary::-webkit-details-marker {
	display: none;
}

.emc-loc-facade .emc-metier-group__options {
	padding-left: 1.2rem;
}

.emc-loc-around {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.emc-offres-filters__ville {
	flex: 1 1 180px;
	padding: 0.55rem 0.8rem;
	font-size: 0.88rem;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-offres-filters__rayon,
.emc-salaire-range input,
.emc-salaire-inputs input,
.emc-salaire-inputs select {
	padding: 0.5rem 0.7rem;
	font-size: 0.88rem;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-around-btn {
	padding: 0.5rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
	background: var( --em-bg );
	border: 1px solid var( --em-line );
	border-radius: 8px;
	cursor: pointer;
}

.emc-salaire-range {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.6rem;
}

.emc-salaire-range label,
.emc-salaire-inputs label {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.8rem;
	font-weight: 600;
}

.emc-salaire-inputs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.emc-offres-urgent,
.emc-checkbox-line {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.emc-offres-reset {
	align-self: center;
	font-size: 0.82rem;
	font-weight: 600;
	color: var( --em-secondary );
}

.emc-offres-count {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	font-weight: 600;
	opacity: 0.75;
}

.emc-offres-results.is-loading {
	opacity: 0.72;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* -- Filtres des annonces : recherche + familles de métier -- */

/* Le formulaire des annonces n'est pas une carte : la recherche est une carte
   à part (en premier), puis les familles, puis les facettes. */
.emc-annonces-filters.emc-offres-filters {
	gap: 1.1rem;
	padding: 0;
	margin-bottom: 1.5rem;
	background: none;
	border: none;
}

.emc-annonces-filters .emc-offres-filters__main {
	margin: 0;
	padding: 0.85rem 1rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-familles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1.25rem;
}

.emc-annonces-filters .emc-familles {
	margin-bottom: 0;
}

.emc-annonces-filters .emc-familles-breadcrumb {
	margin: 0;
}

.emc-famille-card {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var( --em-ink );
	text-decoration: none;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 999px;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.emc-famille-card:hover {
	transform: translateY( -2px );
	color: var( --em-ink );
	border-color: var( --em-secondary );
}

.emc-famille-card.is-active {
	color: var( --em-surface );
	background: var( --em-primary );
	border-color: var( --em-primary );
}

.emc-famille-card--all {
	font-weight: 700;
}

.emc-famille-card__count {
	display: inline-block;
	min-width: 1.5em;
	padding: 0.05rem 0.4rem;
	text-align: center;
	font-size: 0.75rem;
	color: var( --em-primary );
	background: var( --em-bg );
	border-radius: 999px;
}

.emc-famille-card.is-active .emc-famille-card__count {
	color: var( --em-surface );
	background: rgba( 255, 255, 255, 0.2 );
}

.emc-familles-breadcrumb {
	margin: -0.25rem 0 1.25rem;
	font-size: 0.9rem;
}

.emc-familles-breadcrumb a {
	font-weight: 600;
	color: var( --em-secondary );
}

.emc-annonces-section {
	margin: 2rem 0 0.25rem;
	padding-bottom: 0.4rem;
	font-size: 1.15rem;
	border-bottom: 1px solid var( --em-line );
}

.emc-annonces-section span {
	font-weight: 400;
	font-size: 0.9rem;
	opacity: 0.72;
}

.emc-annonces-section:first-of-type {
	margin-top: 0.5rem;
}

.emc-annonces-section--flagship {
	font-size: 1.35rem;
	border-bottom: 2px solid var( --em-accent );
}

.emc-annonces-section--flagship span {
	color: var( --em-accent-ink );
	opacity: 1;
}

.emc-annonces-section__desc {
	margin: 0.35rem 0 0.9rem;
	max-width: 60ch;
	font-size: 0.92rem;
	opacity: 0.8;
}

.emc-form-hint {
	margin: -0.35rem 0 0.25rem;
	padding: 0.6rem 0.85rem;
	font-size: 0.85rem;
	background: var( --em-bg );
	border-left: 3px solid var( --em-secondary );
	border-radius: 0 6px 6px 0;
}

@media ( max-width: 768px ) {
	.emc-facet[open] {
		flex-basis: 100%;
	}
}


/* ==========================================================================
   13. FICHE STRUCTURÉE + SIGNALEMENT
   ========================================================================== */
.emc-fiche {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 0.9rem 1.5rem;
	margin: 1.5rem 0;
	padding: 1.5rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-fiche__row {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.emc-fiche__label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var( --em-secondary );
}

.emc-fiche__value {
	font-size: 1rem;
	font-weight: 500;
}

.emc-fiche__contact {
	margin-top: -0.5rem;
}

.emc-fiche-certs {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-fiche-certs__title {
	margin: 0 0 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var( --em-secondary );
}

.emc-fiche-certs__list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.emc-fiche-certs__list li {
	font-size: 1rem;
	font-weight: 500;
}

.emc-fiche-certs__check {
	margin-right: 0.4rem;
	color: var( --em-accent-ink );
	font-weight: 700;
}

.emc-fiche-certs__none {
	margin: 0;
	font-size: 0.95rem;
	color: var( --em-secondary );
}

.emc-report-form {
	margin: 1.5rem 0;
}

.emc-report-button {
	padding: 0.55rem 1.1rem;
	font-size: 0.85rem;
	color: var( --em-ink );
	background: none;
	border: 1px solid var( --em-line );
	border-radius: 6px;
	opacity: 0.7;
	cursor: pointer;
}

.emc-report-button:hover {
	opacity: 1;
	color: var( --em-accent-ink );
	border-color: var( --em-accent );
}

@media ( max-width: 768px ) {
	.emc-fiche {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   14. CARTE INTERACTIVE
   ========================================================================== */
.emc-map-wrap {
	overflow: hidden;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-map-toolbar {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	font-size: 0.9rem;
	border-bottom: 1px solid var( --em-line );
}

.emc-map-search {
	display: flex;
	gap: 0.65rem;
}

.emc-map-search input {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.8rem;
	font-size: 0.88rem;
	font-weight: 400;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-map-toolbar__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-weight: 600;
}

.emc-map-toolbar__filters label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
}

.emc-map-search__status {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 400;
	opacity: 0.7;
}

.emc-map {
	height: 560px;
	width: 100%;
}


/* ==========================================================================
   15. MÉTÉO MARINE
   ========================================================================== */
.emc-meteo-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.emc-meteo-search .emc-filters__search {
	flex: 1;
	min-width: 240px;
	padding: 0.65rem 0.9rem;
	font-size: 0.9rem;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-meteo-select {
	min-width: 220px;
	padding: 0.65rem 0.9rem;
	font-size: 0.9rem;
	font-family: inherit;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-meteo-hint {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	opacity: 0.7;
}

.emc-meteo-back {
	margin-top: -0.5rem;
}

.emc-meteo-back a {
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-secondary );
	text-decoration: none;
}

.emc-meteo-apercu__title {
	margin: 2.5rem 0 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.emc-meteo-apercu__title + .emc-meteo-grid {
	margin-top: 1rem;
}

.emc-meteo-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 1rem;
	margin: 2rem 0;
}

.emc-meteo-grid--single {
	grid-template-columns: minmax( 240px, 320px );
}

.emc-meteo-card {
	padding: 1.1rem 1.25rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-meteo-card__port {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
	color: var( --em-primary );
}

.emc-meteo-card__row {
	display: flex;
	justify-content: space-between;
	padding: 0.2rem 0;
	font-size: 0.85rem;
	border-top: 1px solid var( --em-line );
}

.emc-meteo-card__row:first-of-type {
	border-top: none;
}

.emc-meteo-card__label {
	opacity: 0.75;
}

.emc-meteo-card__value {
	font-weight: 700;
	color: var( --em-ink );
}

.emc-meteo-card__updated {
	margin: 0.6rem 0 0;
	font-size: 0.72rem;
	opacity: 0.72;
}

.emc-meteo-card__error {
	font-size: 0.85rem;
	opacity: 0.7;
}


/* ==========================================================================
   16. PARCOURS PROFESSIONNEL (CV)
   ========================================================================== */
.emc-parcours-cv {
	margin: 1.5rem 0;
}

.emc-parcours-cv__title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
}

.emc-cv {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var( --em-line );
}

.emc-cv__item {
	position: relative;
	padding: 0 0 1.25rem 1.4rem;
}

.emc-cv__item::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 0.35rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var( --em-secondary );
	border: 2px solid var( --em-surface );
}

.emc-cv__item:last-child {
	padding-bottom: 0;
}

.emc-cv__period {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var( --em-secondary );
}

.emc-cv__poste {
	margin: 0.15rem 0 0;
	font-size: 1rem;
	font-weight: 700;
}

.emc-cv__where {
	margin: 0.1rem 0 0;
	font-size: 0.9rem;
	opacity: 0.75;
}

.emc-cv__desc {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
}

/* -- Répéteur du formulaire -- */
.emc-parcours-group {
	gap: 0.75rem;
}

.emc-parcours__row {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1rem;
	background: var( --em-bg );
	border: 1px solid var( --em-line );
	border-radius: 10px;
}

.emc-parcours__grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 0.65rem;
}

.emc-parcours__grid label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.emc-parcours__remove {
	align-self: flex-start;
	padding: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var( --em-accent-ink );
	background: none;
	border: none;
	cursor: pointer;
}

.emc-parcours__add {
	align-self: flex-start;
	text-decoration: none;
}

@media ( max-width: 640px ) {
	.emc-parcours__grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   17. SINGLE & ARCHIVE
   ========================================================================== */
.em-single-hero {
	padding: clamp( 2.25rem, 5vw, 3rem ) clamp( 1.25rem, 5vw, 3rem ) 2rem;
	background: var( --em-bg );
	border-bottom: 1px solid var( --em-line );
}

.em-single-hero h1 {
	margin: 0.5rem 0 0;
}

.em-single-photo {
	margin: 0 0 1.5rem;
}

.em-single-photo img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.em-archive-hero {
	position: relative;
	overflow: hidden;
	padding: clamp( 2.5rem, 5vw, 3.5rem ) clamp( 1.25rem, 5vw, 3rem ) 2.5rem;
	color: var( --em-surface );
	background: var( --em-primary );
}

/* Photo de fond + voile bleu par type de contenu. Tant que l'image n'existe
   pas, le repli reste le bleu plein (aucune régression). */
.post-type-archive-offre_emploi .em-archive-hero,
.post-type-archive-profil_pro .em-archive-hero,
.post-type-archive-annonce .em-archive-hero,
.page-communaute .em-archive-hero {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.post-type-archive-offre_emploi .em-archive-hero {
	background:
		linear-gradient( 160deg, rgba( 15, 46, 66, 0.9 ) 0%, rgba( 10, 44, 66, 0.82 ) 55%, rgba( 20, 74, 104, 0.78 ) 130% ),
		image-set( url( "assets/hero-emplois.webp" ) type( "image/webp" ), url( "assets/hero-emplois.png" ) type( "image/png" ) ) center / cover no-repeat,
		var( --em-primary );
}

.post-type-archive-profil_pro .em-archive-hero {
	background:
		linear-gradient( 160deg, rgba( 15, 46, 66, 0.9 ) 0%, rgba( 10, 44, 66, 0.82 ) 55%, rgba( 20, 74, 104, 0.78 ) 130% ),
		image-set( url( "assets/hero-annuaire.webp" ) type( "image/webp" ), url( "assets/hero-annuaire.png" ) type( "image/png" ) ) center / cover no-repeat,
		var( --em-primary );
}

.post-type-archive-annonce .em-archive-hero {
	background:
		linear-gradient( 160deg, rgba( 15, 46, 66, 0.9 ) 0%, rgba( 10, 44, 66, 0.82 ) 55%, rgba( 20, 74, 104, 0.78 ) 130% ),
		image-set( url( "assets/hero-annonces.webp" ) type( "image/webp" ), url( "assets/hero-annonces.png" ) type( "image/png" ) ) center / cover no-repeat,
		var( --em-primary );
}

.page-communaute .em-archive-hero {
	background:
		linear-gradient( 160deg, rgba( 15, 46, 66, 0.9 ) 0%, rgba( 10, 44, 66, 0.82 ) 55%, rgba( 20, 74, 104, 0.78 ) 130% ),
		image-set( url( "assets/hero-communaute.webp" ) type( "image/webp" ), url( "assets/hero-communaute.png" ) type( "image/png" ) ) center / cover no-repeat,
		var( --em-primary );
}

.em-archive-hero .em-eyebrow {
	color: var( --em-rope );
}

.em-archive-hero .em-eyebrow::before {
	background: var( --em-rope );
}

.em-archive-hero h1 {
	margin: 0.5rem 0;
	color: var( --em-surface );
}

.em-archive-hero p {
	margin: 0;
	max-width: 640px;
	opacity: 0.85;
}

.em-archive-hero__cta {
	margin-top: 1.4rem;
}

/* Bouton « Urgences en mer » dans le bandeau Communauté */
.em-archive-hero .em-cta-urgence .wp-element-button {
	color: var( --em-surface );
	border-color: var( --em-surface );
}

.em-archive-hero .em-cta-urgence .wp-element-button:hover {
	color: #fff;
	background: var( --em-danger-strong );
	border-color: var( --em-danger-strong );
}

@media ( max-width: 600px ) {
	.em-single-hero .wp-block-post-title,
	.em-archive-hero h1 {
		font-size: clamp( 1.7rem, 8vw, 2.2rem );
	}
}


/* ==========================================================================
   18. COMMUNAUTÉ — ANNUAIRE DE GROUPES, FIL, TRI
   ========================================================================== */

/* -- Barre de sujets (chips) -- */
.emc-sujets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.emc-sujet-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.95rem;
	font-size: 0.86rem;
	font-weight: 600;
	color: var( --em-ink );
	text-decoration: none;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 999px;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.emc-sujet-chip:hover {
	transform: translateY( -2px );
	color: var( --em-ink );
	border-color: var( --em-secondary );
}

.emc-sujet-chip.is-active {
	color: var( --em-surface );
	background: var( --em-primary );
	border-color: var( --em-primary );
}

.emc-sujet-chip__n {
	padding: 0.05rem 0.4rem;
	font-size: 0.75rem;
	color: var( --em-primary );
	background: var( --em-bg );
	border-radius: 999px;
}

.emc-sujet-chip.is-active .emc-sujet-chip__n {
	color: var( --em-surface );
	background: rgba( 255, 255, 255, 0.2 );
}

.emc-tri {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.emc-tri select {
	padding: 0.4rem 0.6rem;
	font-size: 0.85rem;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

/* -- Grille de discussions -- */
.emc-grid--discussions {
	grid-template-columns: repeat( 2, 1fr );
}

.emc-grid--discussions.is-group-view {
	grid-template-columns: 1fr;
	max-width: 680px;
	margin-inline: auto;
	gap: 1rem;
}

.emc-card-wrap--discussion.is-resolved .emc-card {
	border-color: #b7d9bd;
}

.emc-card-wrap--feed .emc-card--post {
	padding: 1.3rem 1.5rem 1.4rem;
}

.emc-card__photo {
	width: 100%;
	max-height: 340px;
	margin: 0.5rem 0 0.2rem;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.emc-card--post .avatar {
	border-radius: 999px;
}

/* Carte discussion entièrement cliquable (lien étiré sur le titre) */
.emc-card-wrap--discussion .emc-card__title-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.emc-card-wrap--discussion .emc-card--post {
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.emc-card-wrap--discussion:hover .emc-card--post {
	transform: translateY( -2px );
	border-color: var( --em-secondary );
}

.emc-card-wrap--discussion .emc-card__tag,
.emc-card-wrap--discussion .emc-card__contact,
.emc-card-wrap--discussion .emc-card__actions {
	position: relative;
	z-index: 2;
}

/* -- Annuaire de groupes (façon groupes FB) -- */
.emc-groupes-dir__title {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
}

.emc-groupes-dir__hint {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	opacity: 0.7;
}

.emc-groupes-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 250px, 1fr ) );
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.emc-groupe-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.2rem 1.3rem 1.1rem;
	color: var( --em-ink );
	text-decoration: none;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 14px;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.emc-groupe-card:hover {
	transform: translateY( -3px );
	border-color: var( --em-secondary );
	box-shadow: 0 10px 24px -16px rgba( 11, 61, 92, 0.4 );
}

.emc-groupe-card__emoji {
	font-size: 1.9rem;
	line-height: 1;
}

.emc-groupe-card__name {
	font-family: var( --wp--preset--font-family--heading );
	font-weight: 800;
	font-size: 1.1rem;
}

.emc-groupe-card__desc {
	flex: 1;
	font-size: 0.88rem;
	line-height: 1.5;
	opacity: 0.8;
}

.emc-groupe-card__meta {
	margin-top: 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var( --em-secondary );
}

.emc-groupe-card__go {
	font-size: 0.82rem;
	font-weight: 700;
	color: var( --em-primary );
}

/* -- En-tête d'un groupe ouvert -- */
.emc-groupe-head {
	margin-bottom: 1.5rem;
}

.emc-groupe-back {
	margin-bottom: 1rem;
}

.emc-groupe-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem;
	padding: 1.4rem 1.5rem;
	color: var( --em-surface );
	background: linear-gradient( 135deg, var( --em-primary ), #0a2c42 );
	border-radius: 16px;
}

.emc-groupe-hero__emoji {
	font-size: 2.6rem;
	line-height: 1;
}

.emc-groupe-hero__body {
	flex: 1;
	min-width: 200px;
}

.emc-groupe-hero__name {
	margin: 0;
	font-size: 1.5rem;
	color: var( --em-surface );
}

.emc-groupe-hero__desc {
	margin: 0.25rem 0 0;
	font-size: 0.92rem;
	opacity: 0.9;
}

.emc-groupe-hero__meta {
	margin: 0.4rem 0 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var( --em-rope );
}

.emc-groupe-hero__cta {
	flex: 0 0 auto;
	padding: 0.7rem 1.3rem;
	font-weight: 700;
	color: var( --em-ink );
	text-decoration: none;
	background: var( --em-accent );
	border-radius: 999px;
}

.emc-groupe-hero__cta:hover {
	filter: brightness( 1.08 );
}

.emc-recentes__title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
}

/* -- Fil d'un groupe : une colonne, cartes larges -- */
.emc-discussions-filters--group {
	margin-bottom: 1.25rem;
	padding: 0;
	background: none;
	border: 0;
}

.emc-discussions-filters--group .emc-offres-filters__main {
	margin: 0;
	padding: 0.75rem 0.9rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

@media ( max-width: 768px ) {
	.emc-grid--discussions {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   19. COMMUNAUTÉ — COMMENTAIRES / RÉPONSES
   ========================================================================== */
.wp-block-comments {
	margin-top: 2.5rem;
}

.wp-block-comments-title {
	margin: 0 0 1.25rem;
	padding-bottom: 0.4rem;
	font-size: 1.3rem;
	border-bottom: 2px solid var( --em-line );
}

.wp-block-comment-template {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wp-block-comment-template .comment {
	padding: 1rem 1.2rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.wp-block-comment-template ol {
	margin: 1rem 0 0;
	padding-left: 1.25rem;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-left: 2px solid var( --em-line );
}

.wp-block-comment-author-name {
	font-weight: 700;
	color: var( --em-ink );
}

.wp-block-comment-author-name a {
	color: inherit;
	text-decoration: none;
}

.wp-block-comment-date {
	display: block;
	margin: 0.1rem 0 0.6rem;
	font-size: 0.8rem;
	opacity: 0.72;
}

.wp-block-comment-content p {
	margin: 0 0 0.6rem;
	line-height: 1.6;
}

.emc-comment__figure {
	margin: 0.6rem 0 0;
}

.emc-comment__img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.emc-comment-bar {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.emc-comment-like,
.emc-comment-report {
	padding: 0.2rem 0.7rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --em-ink );
	background: none;
	border: 1px solid var( --em-line );
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.emc-comment-like:hover,
.emc-comment-report:hover {
	border-color: var( --em-secondary );
}

.emc-comment-like.is-on {
	color: var( --em-surface );
	background: var( --em-primary );
	border-color: var( --em-primary );
}

.emc-comment-report {
	opacity: 0.7;
}

.emc-comment-report[disabled] {
	opacity: 0.72;
	border-color: var( --em-line );
	cursor: default;
}

.comment-reply-link {
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --em-secondary );
	text-decoration: none;
}

/* -- Formulaire de réponse -- */
.comment-respond {
	margin-top: 1.75rem;
	padding: 1.25rem 1.4rem;
	background: var( --em-bg );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.comment-respond .comment-reply-title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font-size: 0.95rem;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.comment-form-emc-image {
	margin: 0.75rem 0;
	font-size: 0.85rem;
}

.comment-form-emc-image label {
	margin-right: 0.4rem;
	font-weight: 600;
}

.comment-form .submit {
	padding: 0.65rem 1.5rem;
	font-weight: 700;
	color: var( --em-surface );
	background: var( --em-secondary );
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

/* -- Fiche discussion : barre d'actions -- */
.emc-discussion-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0.5rem 0 1.5rem;
}

.emc-discussion-actions form {
	margin: 0;
}

.emc-vote,
.emc-resolu-btn,
.emc-discussion-actions .emc-share,
.emc-discussion-actions__contact,
.emc-discussion-actions .emc-report-button,
.emc-discussion-actions__back {
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1;
	color: var( --em-ink );
	text-decoration: none;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 8px;
	cursor: pointer;
}

.emc-vote:hover,
.emc-resolu-btn:hover,
.emc-discussion-actions .emc-share:hover {
	border-color: var( --em-secondary );
}

.emc-vote.is-voted {
	color: var( --em-surface );
	background: var( --em-primary );
	border-color: var( --em-primary );
}

.emc-discussion-actions__back {
	margin-left: auto;
	color: var( --em-secondary );
	border: none;
}

.emc-discussion-actions__cta {
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-ink );
	text-decoration: none;
	background: var( --em-bg );
	border: 1px solid var( --em-accent );
	border-radius: 8px;
}

.emc-discussion-actions .emc-report-button {
	opacity: 0.7;
}


/* ==========================================================================
   20. COMMUNAUTÉ — URGENCES EN MER
   ========================================================================== */
.emc-urgences {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.emc-urgences__disclaimer {
	margin: 0;
	padding: 0.9rem 1.1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var( --em-warn-ink );
	background: var( --em-warn-bg );
	border: 1px solid var( --em-warn-line );
	border-radius: 10px;
}

.emc-urgences__block > h2 {
	margin: 0 0 1rem;
	padding-bottom: 0.4rem;
	font-size: 1.3rem;
	border-bottom: 2px solid var( --em-line );
}

.emc-urgences__alerte-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 1rem;
}

.emc-urgences__alerte {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.1rem 1.2rem;
	color: var( --em-surface );
	background: var( --em-primary );
	border-radius: 12px;
}

.emc-urgences__alerte-value {
	font-family: var( --wp--preset--font-family--heading );
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.1;
	color: var( --em-rope );
}

.emc-urgences__alerte-label {
	font-size: 0.9rem;
	font-weight: 700;
}

.emc-urgences__alerte p {
	margin: 0.2rem 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.9;
}

.emc-urgences__contacts {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.emc-urgences__contact {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.15rem 1rem;
	align-items: start;
	padding: 0.85rem 1rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 10px;
}

.emc-urgences__contact-name {
	font-weight: 700;
	color: var( --em-ink );
}

.emc-urgences__contact-zone {
	grid-column: 1;
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.75;
}

.emc-urgences__contact-lines {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.3rem;
	white-space: nowrap;
}

.emc-urgences__tel {
	font-weight: 700;
	color: var( --em-secondary );
}

.emc-urgences__vhf {
	padding: 0.1rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var( --em-primary );
	background: var( --em-bg );
	border-radius: 20px;
}

.emc-urgences__appel {
	margin-bottom: 1.1rem;
	padding: 0.2rem 0 0.2rem 1rem;
	border-left: 3px solid var( --em-accent );
}

.emc-urgences__appel h3 {
	margin: 0 0 0.3rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem;
}

.emc-urgences__appel-code {
	font-family: var( --wp--preset--font-family--heading );
	font-weight: 800;
	letter-spacing: 0.04em;
}

.emc-urgences__appel-type {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var( --em-secondary );
}

.emc-urgences__appel-quand {
	margin: 0 0 0.4rem;
	line-height: 1.55;
}

.emc-urgences__appel-exemple {
	margin: 0;
	padding: 0.6rem 0.8rem;
	font-size: 0.9rem;
	line-height: 1.55;
	background: var( --em-bg );
	border-radius: 8px;
}

.emc-urgences__signaux {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: 1rem;
}

.emc-urgences__signal {
	padding: 1rem 1.1rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 10px;
}

.emc-urgences__signal h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.emc-urgences__signal p {
	margin: 0 0 0.4rem;
	font-size: 0.88rem;
	line-height: 1.55;
}

.emc-urgences__signal p:last-child {
	margin-bottom: 0;
}

.emc-urgences__note {
	margin: 0;
	font-size: 0.85rem;
	font-style: italic;
	opacity: 0.75;
}

@media ( max-width: 560px ) {
	.emc-urgences__contact {
		grid-template-columns: 1fr;
	}
	.emc-urgences__contact-lines {
		grid-column: 1;
		grid-row: auto;
		flex-direction: row;
		align-items: flex-start;
		gap: 0.6rem;
	}
}


/* ==========================================================================
   21. MESSAGERIE PRIVÉE
   ========================================================================== */
.emc-messagerie {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 480px;
	overflow: hidden;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-messagerie--locked {
	display: block;
	padding: 2.5rem;
	text-align: center;
}

.emc-messagerie__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.5rem;
	border-right: 1px solid var( --em-line );
}

.emc-messagerie__conv {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.7rem;
	font-weight: 600;
	color: var( --em-ink );
	text-decoration: none;
	border-radius: 8px;
}

.emc-messagerie__conv:hover,
.emc-messagerie__conv.is-active {
	color: var( --em-primary );
	background: var( --em-bg );
}

.emc-messagerie__conv-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emc-messagerie__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

/* Pastille photo de profil (ronde) */
.emc-avatar {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	color: var( --em-primary );
	background: var( --em-bg );
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px var( --em-line );
}

.emc-avatar--lg {
	width: 40px;
	height: 40px;
	font-size: 1.05rem;
}

.emc-messagerie__badge {
	padding: 0.1rem 0.5rem;
	font-size: 0.7rem;
	color: var( --em-ink );
	background: var( --em-accent );
	border-radius: 20px;
}

.emc-messagerie__thread {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}

.emc-messagerie__messages {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.emc-message {
	max-width: 70%;
	padding: 0.6rem 0.9rem;
	background: var( --em-bg );
	border-radius: 10px;
}

.emc-message p {
	margin: 0 0 0.25rem;
}

.emc-message time {
	font-size: 0.75rem;
	opacity: 0.72;
}

.emc-message--mine {
	align-self: flex-end;
	color: var( --em-surface );
	background: var( --em-primary );
}

.emc-messagerie__form {
	display: flex;
	gap: 0.75rem;
}

.emc-messagerie__form textarea {
	flex: 1;
	min-height: 48px;
	padding: 0.6rem;
	resize: vertical;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-messagerie__empty,
.emc-messagerie__hint {
	padding: 1rem;
	font-size: 0.9rem;
	color: var( --em-ink );
	opacity: 0.7;
}

/* -- Garde-fou « infos personnelles » (façon Leboncoin) -- */
.emc-msg-warning {
	margin-bottom: 0.75rem;
	padding: 0.7rem 0.9rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var( --em-warn-ink );
	background: var( --em-warn-bg );
	border: 1px solid var( --em-warn-line );
	border-radius: 8px;
}

.emc-msg-warning.is-blocking {
	border-width: 2px;
	box-shadow: 0 0 0 3px rgba( 233, 162, 59, 0.25 );
}

.emc-msg-notice {
	margin: 0.6rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	opacity: 0.7;
}

@media ( max-width: 768px ) {
	.emc-messagerie {
		grid-template-columns: 1fr;
	}
	.emc-messagerie__list {
		flex-direction: row;
		overflow-x: auto;
		border-right: none;
		border-bottom: 1px solid var( --em-line );
	}
}


/* ==========================================================================
   22. FORMULAIRES DE DÉPÔT
   ========================================================================== */
.emc-submit-form,
.emc-submit-locked {
	max-width: 640px;
	padding: 1.75rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-submit-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.emc-submit-form label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.emc-submit-form input,
.emc-submit-form select,
.emc-submit-form textarea {
	padding: 0.6rem 0.8rem;
	font-size: 0.95rem;
	font-weight: 400;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 6px;
}

.emc-submit-success {
	margin-bottom: 1rem;
	padding: 0.9rem 1.1rem;
	color: var( --em-ok-ink );
	background: var( --em-ok-bg );
	border-radius: 8px;
}

.emc-submit-locked {
	text-align: center;
}

.emc-submit-editing {
	margin-bottom: 1rem;
	padding: 0.8rem 1.1rem;
	color: var( --em-info-ink );
	background: var( --em-info-bg );
	border-radius: 8px;
}

/* Champ anti-spam (honeypot) : jamais visible, jamais focusable.
   Seul !important du thème — un affichage accidentel ouvrirait la porte au spam. */
.emc-hp {
	display: none !important;
}

/* -- Actions du propriétaire sur sa fiche -- */
.emc-owner-actions {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-left: 4px solid var( --em-secondary );
	border-radius: 8px;
}

.emc-owner__hint {
	margin: 0 0 0.6rem;
	font-size: 0.92rem;
}

.emc-owner__state {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
}

.emc-owner__state.is-on {
	color: var( --em-ok-ink );
	background: var( --em-ok-bg );
}

.emc-owner__state.is-wait {
	color: var( --em-warn-ink );
	background: #fff2d8;
}

.emc-owner__state.is-off {
	color: var( --em-danger-ink );
	background: #fde2e1;
}

.emc-owner__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.emc-owner__del {
	color: var( --em-danger-ink );
	background: transparent;
	box-shadow: inset 0 0 0 1px var( --em-danger-ink );
}

/* -- Galerie photos (fiche) -- */
.emc-galerie {
	margin: 1.25rem 0;
}

.emc-galerie__title {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
}

.emc-galerie__grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 130px, 1fr ) );
	gap: 0.6rem;
}

.emc-galerie__grid img,
.emc-galerie__img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

/* -- Photos existantes dans le formulaire d'édition -- */
.emc-photos-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.emc-photo-thumb {
	width: 110px;
	font-size: 0.75rem;
	text-align: center;
}

.emc-photo-thumb img {
	width: 110px;
	height: 90px;
	margin-bottom: 0.25rem;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.emc-field-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.emc-field-group__label {
	font-size: 0.9rem;
	font-weight: 600;
}

/* -- Sélecteur de métiers (accordéons) -- */
.emc-metier-picker {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-height: 340px;
	padding: 0.4rem 0.7rem;
	overflow-y: auto;
	background: var( --em-bg );
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-metier-group {
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var( --em-line );
}

.emc-metier-group:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.emc-metier-group summary {
	padding: 0.5rem 0.2rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var( --em-primary );
	cursor: pointer;
}

.emc-metier-group__options {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 0.35rem 0.8rem;
	padding: 0.2rem 0.2rem 0.6rem;
}

.emc-metier-checkbox {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	font-weight: 400;
	cursor: pointer;
}

.emc-metier-checkbox input {
	width: auto;
	padding: 0;
	margin: 0;
}

.emc-metier-autre {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-secondary );
}

.emc-metier-autre input {
	padding: 0.6rem 0.8rem;
	font-size: 0.95rem;
	font-weight: 400;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 6px;
}

/* -- Cadre d'attente d'un bloc dynamique (éditeur) -- */
.emc-block-placeholder {
	padding: 1.25rem;
	text-align: center;
	background: var( --em-bg );
	border: 1px dashed var( --em-line );
	border-radius: 10px;
}

.emc-block-placeholder__icon {
	display: block;
	width: 24px;
	height: 24px;
	margin: 0 auto 0.4rem;
	font-size: 24px;
	color: var( --em-secondary );
}


/* ==========================================================================
   23. GATING DE COMPTE
   ========================================================================== */
.emc-account-cta {
	max-width: 560px;
	margin: 1.5rem auto;
	padding: clamp( 1.5rem, 4vw, 2.5rem );
	text-align: center;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-top: 3px solid var( --em-accent );
	border-radius: 12px;
}

.emc-account-cta__title {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
}

.emc-account-cta__text {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	opacity: 0.8;
}

.emc-account-cta .wp-element-button {
	text-decoration: none;
}

.emc-account-cta__login {
	display: block;
	margin-top: 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-secondary );
}


/* ==========================================================================
   24. AUTHENTIFICATION (INSCRIPTION / CONNEXION)
   ========================================================================== */
.emc-auth {
	max-width: 460px;
	margin: 2rem auto;
}

.emc-auth__title {
	margin: 0 0 1rem;
	font-size: 1.6rem;
}

/* Page d'accès allégée : on retire la navigation de l'en-tête et du pied. */
.emc-page-auth .em-header__bottom,
.emc-page-auth .emc-compte-actions,
.emc-page-auth .em-footer-nav {
	display: none;
}

.emc-auth__intro {
	margin-bottom: 1.5rem;
}

.emc-auth__intro p {
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
	opacity: 0.85;
}

.emc-auth__intro p:last-child {
	margin-bottom: 0;
}

.emc-auth__context {
	margin-bottom: 1.25rem;
	padding: 0.9rem 1.1rem;
	font-size: 0.9rem;
	background: var( --em-bg );
	border: 1px solid var( --em-line );
	border-radius: 10px;
}

.emc-auth__error {
	margin-bottom: 1rem;
	padding: 0.8rem 1rem;
	font-size: 0.9rem;
	color: var( --em-danger-ink );
	background: var( --em-danger-bg );
	border-radius: 8px;
}

.emc-auth__tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var( --em-line );
}

.emc-auth__tab {
	margin-bottom: -1px;
	padding: 0.6rem 0.9rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var( --em-ink );
	text-decoration: none;
	border-bottom: 2px solid transparent;
	opacity: 0.72;
}

.emc-auth__tab.is-active {
	opacity: 1;
	color: var( --em-primary );
	border-bottom-color: var( --em-accent );
}

.emc-auth__form {
	display: none;
	flex-direction: column;
	gap: 0.9rem;
}

.emc-auth__form.is-active {
	display: flex;
}

.emc-auth__form label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.emc-auth__form input {
	padding: 0.6rem 0.8rem;
	font-size: 0.95rem;
	font-weight: 400;
	font-family: inherit;
	border: 1px solid var( --em-line );
	border-radius: 6px;
}

.emc-auth__row {
	display: flex;
	gap: 0.75rem;
}

.emc-auth__row label {
	flex: 1;
}

.emc-auth__submit {
	margin-top: 0.3rem;
	text-decoration: none;
}

.emc-auth__aside {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	opacity: 0.7;
}

.emc-auth__aside--fine {
	margin-top: 0.6rem;
	font-size: 0.75rem;
	line-height: 1.4;
	opacity: 0.72;
}

.emc-auth__already {
	text-align: center;
}


/* ==========================================================================
   25. EN-TÊTE — ACTIONS DE COMPTE
   ========================================================================== */
.emc-compte-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.9rem;
}

.emc-compte-actions__login,
.emc-compte-actions__hi {
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-ink );
	text-decoration: none;
}

.emc-compte-actions__hi {
	font-weight: 500;
	opacity: 0.7;
}

.emc-compte-actions .wp-element-button {
	padding: 0.55rem 1.15rem;
	font-size: 0.85rem;
	text-decoration: none;
}

.emc-compte-actions__profile {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-ink );
	text-decoration: none;
	border-radius: 999px;
	padding: 0.3rem 0.55rem;
}

.emc-compte-actions__profile:hover,
.emc-compte-actions__profile:focus-visible {
	color: var( --em-primary );
	background: var( --em-base );
}

.emc-compte-actions__icon {
	flex: 0 0 auto;
	color: var( --em-secondary );
}

/* Cloche de notifications */
.emc-notifs {
	position: relative;
	display: inline-flex;
}

.emc-notifs__bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	color: var( --em-ink );
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.emc-notifs__bell:hover,
.emc-notifs__bell:focus-visible {
	color: var( --em-primary );
	background: var( --em-base );
}

.emc-notifs__badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.05rem;
	color: #fff;
	background: var( --em-accent );
	border-radius: 999px;
}

.emc-notifs__panel {
	position: absolute;
	top: calc( 100% + 0.5rem );
	right: 0;
	z-index: 60;
	width: 20rem;
	max-width: calc( 100vw - 1.5rem );
	max-height: 24rem;
	overflow-y: auto;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
	box-shadow: var( --em-shadow-card, 0 10px 30px rgba( 14, 31, 43, 0.15 ) );
}

/* Sur petit écran : le panneau devient une nappe pinnée sous l'en-tête,
   pour ne pas déborder du bord gauche. */
@media ( max-width: 640px ) {
	.emc-notifs__panel {
		position: fixed;
		top: 3.75rem;
		right: 0.6rem;
		left: 0.6rem;
		width: auto;
		max-width: none;
		max-height: 75vh;
	}
}

.emc-notifs__head {
	padding: 0.7rem 0.9rem;
	font-size: 0.9rem;
	border-bottom: 1px solid var( --em-line );
}

.emc-notifs__empty {
	margin: 0;
	padding: 1rem 0.9rem;
	font-size: 0.85rem;
	color: var( --em-muted );
}

.emc-notifs__item {
	display: flex;
	gap: 0.6rem;
	padding: 0.7rem 0.9rem;
	font-size: 0.85rem;
	color: var( --em-ink );
	text-decoration: none;
	border-bottom: 1px solid var( --em-line );
}

.emc-notifs__item:last-of-type {
	border-bottom: 0;
}

.emc-notifs__item:hover,
.emc-notifs__item:focus-visible {
	background: var( --em-base );
}

.emc-notifs__item.is-unread {
	background: color-mix( in srgb, var( --em-accent ) 8%, transparent );
}

.emc-notifs__icon {
	flex: 0 0 auto;
	font-size: 1rem;
}

.emc-notifs__text {
	display: block;
}

.emc-notifs__time {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.75rem;
	color: var( --em-muted );
}

.emc-notifs__all {
	display: block;
	padding: 0.65rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
	text-align: center;
	color: var( --em-secondary );
	text-decoration: none;
	border-top: 1px solid var( --em-line );
}

/* Liste complète sur /mon-compte/ */
.emc-notifs-full .emc-notifs__item {
	border-color: var( --em-line );
	border-radius: 8px;
	margin-bottom: 0.35rem;
	border: 1px solid var( --em-line );
}

/* Section « Mon profil » sur /mon-compte/ */
.emc-profile__intro {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	color: var( --em-muted );
}

.emc-profile__sub {
	margin: 1.6rem 0 0.4rem;
	font-size: 1rem;
}

.emc-profile__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.6rem;
}

.emc-profile__row {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --em-ink );
}

.emc-profile__row input,
.emc-profile__row select,
.emc-profile__row textarea {
	font: inherit;
	font-weight: 400;
	padding: 0.55rem 0.7rem;
	border: 1px solid var( --em-line );
	border-radius: 8px;
	background: var( --em-surface );
}

.emc-profile__form .wp-element-button {
	align-self: flex-start;
	margin-top: 0.3rem;
}

/* Encadré « Mes coordonnées » — réutilisé partout (profil, fiche, offre,
   annonce, messagerie). */
.emc-contact-box {
	margin: 1rem 0;
	padding: 0.9rem 1.1rem;
	border: 1px solid var( --em-line );
	border-radius: 12px;
	background: var( --em-base );
}

.emc-contact-box__title {
	margin: 0 0 0.2rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.emc-contact-box__hint {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	color: var( --em-muted );
}

.emc-contact-box__row {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0;
	font-size: 0.88rem;
	border-top: 1px solid var( --em-line );
}

.emc-contact-box__row:first-of-type {
	border-top: 0;
}

.emc-contact-box__row input {
	flex: 0 0 auto;
}

.emc-contact-box__val {
	color: var( --em-muted );
	text-align: right;
	overflow-wrap: anywhere;
}

.emc-contact-box__save {
	margin-top: 0.5rem;
	padding: 0.4rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var( --em-surface );
	background: var( --em-primary );
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.emc-contact-box__saved {
	margin-left: 0.5rem;
	font-size: 0.82rem;
	color: var( --em-ok-line, var( --em-secondary ) );
}

.emc-contact-box__pub {
	padding: 0.3rem 0;
	font-size: 0.9rem;
}

.emc-contact-box__pub span {
	display: inline-block;
	min-width: 6.5rem;
	font-weight: 600;
	color: var( --em-muted );
}

.emc-contact-box__btn {
	display: inline-block;
	margin-top: 0.6rem;
}

/* « Transmettre mes coordonnées » dans un fil de messagerie */
.emc-share-contact {
	margin: 0.6rem 0;
	padding: 0.6rem 0.9rem;
	border: 1px solid var( --em-line );
	border-radius: 10px;
	background: var( --em-surface );
}

.emc-share-contact summary {
	font-size: 0.88rem;
	font-weight: 600;
	color: var( --em-secondary );
	cursor: pointer;
}

.emc-share-contact form {
	margin-top: 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.emc-account__success {
	margin: 0 0 1rem;
	padding: 0.7rem 0.9rem;
	font-size: 0.88rem;
	color: var( --em-primary );
	background: var( --em-base );
	border: 1px solid var( --em-line );
	border-radius: 8px;
}


/* ==========================================================================
   26. COMPTE — NOTIFICATIONS, IDENTITÉ, BADGES DE NIVEAU
   ========================================================================== */
.emc-account {
	max-width: 680px;
	margin-inline: auto;
}

.emc-account__hello {
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	color: var( --em-ink );
	opacity: 0.75;
}

.emc-account__hint {
	margin: 0.2rem 0 0;
	font-size: 0.82rem;
	color: var( --em-muted );
}

.emc-account__section {
	margin-bottom: 1.25rem;
	padding: 1.4rem 1.5rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-account__section h2 {
	margin: 0 0 0.6rem;
	font-size: 1.15rem;
}

.emc-account__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.emc-account__form label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var( --em-ink );
}

.emc-account__form input[type="text"],
.emc-account__form input[type="date"],
.emc-account__form input[type="file"] {
	padding: 0.5rem 0.6rem;
	font: inherit;
	font-weight: 400;
	color: var( --em-ink );
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

/* Case à cocher : flux inline normal + retrait négatif pour que les lignes
   suivantes s'alignent sous le texte. Gère les libellés avec <em>/<strong>
   (contrairement à un flex qui fragmenterait chaque balise). */
.emc-account__form label.emc-account__check {
	display: block;
	flex-direction: initial;
	padding-left: 1.7rem;
	text-indent: -1.7rem;
	font-weight: 400;
	line-height: 1.45;
}

.emc-account__form label.emc-account__check > input {
	width: auto;
	margin: 0 0.55rem 0 0;
	vertical-align: baseline;
	text-indent: 0;
}

.emc-account__form button {
	align-self: flex-start;
	margin-top: 0.3rem;
}

.emc-account__ok {
	padding: 0.7rem 0.9rem;
	color: var( --em-ok-ink );
	background: var( --em-ok-bg );
	border-left: 3px solid var( --em-ok-line );
	border-radius: 6px;
}

.emc-account__error {
	padding: 0.7rem 0.9rem;
	color: var( --em-danger-ink );
	background: var( --em-danger-bg );
	border-left: 3px solid var( --em-danger-line );
	border-radius: 6px;
}

/* Bandeau « confirmez votre e-mail » en haut de page */
.emc-verify-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #4a2500;
	background: #ffe9c7;
	border-bottom: 1px solid #f0c98a;
}

.emc-verify-bar a {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

.emc-verify #emc_verify_code {
	max-width: 9rem;
	letter-spacing: 0.3em;
	font-size: 1.1rem;
	text-align: center;
}

.emc-verify__resend {
	margin-top: 0.6rem;
}

.emc-linklike {
	padding: 0;
	font: inherit;
	font-size: 0.85rem;
	color: var( --em-secondary );
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

/* -- Badge « profil vérifié » (bronze) / « certifié » (argent) -- */
.emc-verified {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.1rem 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
	vertical-align: middle;
	color: var( --em-bronze-ink );
	background: var( --em-bronze-bg );
	border: 1px solid var( --em-bronze-line );
	border-radius: 999px;
}

.emc-verified--compact {
	padding: 0.05rem 0.4rem;
	font-size: 0.68rem;
}

.emc-verified--cert {
	color: var( --em-silver-ink );
	background: var( --em-silver-bg );
	border-color: var( --em-silver-line );
}

.emc-verified-line {
	margin-bottom: 1rem;
}

/* -- Badge « membre fondateur » (or) -- */
.emc-founder {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.1rem 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
	vertical-align: middle;
	color: var( --em-gold-ink );
	background: var( --em-gold-bg );
	border: 1px solid var( --em-gold-line );
	border-radius: 999px;
}

.emc-founder--compact {
	padding: 0.05rem 0.45rem;
	font-size: 0.68rem;
}

/* -- Pastille de niveau, vue « d'un coup d'œil » (cartes + fiches) -- */
.emc-tier {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.1rem 0.55rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.6;
	text-transform: uppercase;
	white-space: nowrap;
	border-radius: 999px;
}

.emc-tier__dot {
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
}

.emc-tier--gold {
	color: var( --em-gold-ink );
	background: var( --em-gold-bg );
	box-shadow: inset 0 0 0 1px var( --em-gold-line );
}

.emc-tier--gold .emc-tier__dot {
	background: linear-gradient( 135deg, #f5c451, #b8860b );
}

.emc-tier--silver {
	color: var( --em-silver-ink );
	background: var( --em-silver-bg );
	box-shadow: inset 0 0 0 1px var( --em-silver-line );
}

.emc-tier--silver .emc-tier__dot {
	background: linear-gradient( 135deg, #e8ebef, #9aa4ad );
}

.emc-tier--bronze {
	color: var( --em-bronze-ink );
	background: var( --em-bronze-bg );
	box-shadow: inset 0 0 0 1px var( --em-bronze-line );
}

.emc-tier--bronze .emc-tier__dot {
	background: linear-gradient( 135deg, #d8a06a, #9c5a2b );
}

@media ( max-width: 768px ) {
	.emc-account__form input:not([type="checkbox"]):not([type="radio"]),
	.emc-recrut__form input:not([type="checkbox"]):not([type="radio"]),
	.emc-avis__form input:not([type="checkbox"]):not([type="radio"]) {
		width: 100%;
	}
}


/* ==========================================================================
   27. RECRUTEMENT (FICHE OFFRE)
   ========================================================================== */
.emc-recrut {
	margin: 2rem 0 0;
	padding: 1.25rem 1.4rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-recrut h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.emc-recrut__empty {
	margin: 0;
	color: var( --em-muted );
}

.emc-recrut__list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emc-recrut__item {
	padding: 0.85rem 1rem;
	border: 1px solid var( --em-line );
	border-radius: 10px;
}

.emc-recrut__who {
	font-weight: 700;
}

.emc-recrut__badge {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	background: var( --em-line );
	border-radius: 999px;
}

.emc-recrut__badge.is-ok {
	color: var( --em-ok-ink );
	background: var( --em-ok-bg );
}

.emc-recrut__meta {
	margin: 0.4rem 0 0;
	font-size: 0.85rem;
	color: var( --em-muted );
}

.emc-recrut__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.emc-recrut__form label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.emc-recrut__form input {
	width: 12rem;
	max-width: 100%;
	padding: 0.45rem 0.6rem;
	font: inherit;
	font-weight: 400;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

@media ( max-width: 768px ) {
	.emc-recrut__form {
		flex: 1 1 100%;
	}
}


/* ==========================================================================
   28. BOOST (FICHE ANNONCE / OFFRE)
   ========================================================================== */
.emc-urgent-flag {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.25rem 0.8rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --em-ink );
	background: var( --em-accent );
	border-radius: 999px;
}

.emc-boost-panel {
	margin: 2rem 0 0;
	padding: 1.25rem 1.4rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-boost-panel h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.emc-boost-panel__pending {
	color: var( --em-muted );
}

.emc-boost-panel__offers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.emc-boost-offer {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	padding: 0.9rem 1rem;
	border: 1px solid var( --em-line );
	border-radius: 10px;
}

.emc-boost-offer--urgent {
	border-color: color-mix( in srgb, var( --em-accent ) 45%, var( --em-line ) );
}

.emc-boost-offer__label {
	font-size: 0.92rem;
	font-weight: 700;
}

.emc-boost-offer__price {
	font-size: 1.15rem;
	font-weight: 800;
	color: var( --em-primary );
}

.emc-boost-offer .wp-element-button {
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
}

@media ( max-width: 768px ) {
	.emc-boost-panel__offers .emc-boost-offer {
		flex: 1 1 100%;
	}
}


/* ==========================================================================
   29. AVIS & NOTES (FICHE PRO)
   ========================================================================== */
.emc-avis-inline {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1rem;
	font-size: 0.95rem;
}

.emc-avis-inline a {
	color: var( --em-muted );
	text-decoration: none;
}

.emc-avis__stars {
	white-space: nowrap;
	letter-spacing: 0.06em;
	color: var( --em-star );
}

.emc-avis__stars.is-lg {
	font-size: 1.35rem;
}

.emc-avis {
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var( --em-line );
}

.emc-avis__title {
	margin: 0 0 1rem;
	font-size: 1.3rem;
}

.emc-avis__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.emc-avis__avg strong {
	font-size: 1.15rem;
}

.emc-avis__count {
	font-size: 0.9rem;
	color: var( --em-muted );
}

.emc-avis__empty {
	color: var( --em-muted );
}

.emc-avis__form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 1rem 0 1.75rem;
	padding: 1.15rem 1.25rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-avis__form label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.emc-avis__form textarea {
	padding: 0.55rem 0.65rem;
	font: inherit;
	font-weight: 400;
	color: var( --em-ink );
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 8px;
	resize: vertical;
}

.emc-avis__rate {
	margin: 0;
	padding: 0;
	border: 0;
}

.emc-avis__rate legend {
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 600;
}

/* Étoiles cliquables : radios inversés (5→1) pour le survol en cascade. */
.emc-avis__radios {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 0.15rem;
}

.emc-avis__radios label {
	font-size: 1.7rem;
	line-height: 1;
	color: var( --em-star-off );
	cursor: pointer;
	transition: color 0.12s;
}

.emc-avis__radios input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.emc-avis__radios label:hover,
.emc-avis__radios label:hover ~ label,
.emc-avis__radios input:checked ~ label,
.emc-avis__radios label:has( input:checked ),
.emc-avis__radios label:has( input:checked ) ~ label {
	color: var( --em-star );
}

.emc-avis__radios input:focus-visible + span {
	outline: 2px solid var( --em-accent );
	outline-offset: 2px;
}

.emc-avis__list {
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emc-avis__item {
	padding: 0.85rem 1rem;
	border: 1px solid var( --em-line );
	border-radius: 10px;
}

.emc-avis__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.emc-avis__author {
	font-size: 0.92rem;
	font-weight: 700;
}

.emc-avis__head time {
	margin-left: auto;
	font-size: 0.82rem;
	color: var( --em-muted );
}

.emc-avis__text {
	margin: 0.5rem 0 0;
	font-size: 0.93rem;
	line-height: 1.55;
}

@media ( max-width: 600px ) {
	.emc-avis__radios label {
		font-size: 1.5rem;
	}
}


/* ==========================================================================
   30. CANDIDATURE
   ========================================================================== */
.emc-postuler {
	margin: 1.75rem 0;
}

.emc-postuler__title {
	margin: 0 0 0.25rem;
	font-size: 1.2rem;
}

.emc-postuler--own,
.emc-postuler--done {
	padding: 1rem 1.25rem;
	font-size: 0.9rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-left: 3px solid var( --em-secondary );
	border-radius: 8px;
}

.emc-postuler--done {
	border-left-color: #2e7d32;
}


/* ==========================================================================
   31. BANDEAU COOKIES
   ========================================================================== */
.emc-cc {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 900;
	color: #eef4f7;
	background: var( --em-primary );
	border-top: 3px solid var( --em-accent );
	box-shadow: 0 -6px 24px rgba( 0, 0, 0, 0.22 );
	animation: emc-cc-up 0.28s ease both;
}

@keyframes emc-cc-up {
	from { transform: translateY( 100% ); }
	to { transform: translateY( 0 ); }
}

.emc-cc__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem 1.25rem 1.1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.9rem 1.5rem;
}

.emc-cc__text {
	flex: 1 1 340px;
}

.emc-cc__title {
	margin: 0 0 0.2rem;
	font-family: var( --wp--preset--font-family--heading );
	font-size: 1rem;
	font-weight: 700;
}

.emc-cc__desc {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
	opacity: 0.92;
}

.emc-cc__desc a {
	color: #fff;
	text-decoration: underline;
}

.emc-cc__panel {
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-top: 0.3rem;
	padding: 0.9rem 1rem;
	background: rgba( 255, 255, 255, 0.06 );
	border-radius: 10px;
}

.emc-cc__panel[hidden] {
	display: none;
}

.emc-cc__row {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.85rem;
	line-height: 1.45;
}

.emc-cc__row input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 0.15rem;
	accent-color: var( --em-accent );
}

.emc-cc__row--fixed {
	opacity: 0.8;
}

.emc-cc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.emc-cc__btn {
	padding: 0.55rem 1.1rem;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	white-space: nowrap;
	color: var( --em-ink );
	background: var( --em-accent );
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
}

.emc-cc__btn:hover {
	filter: brightness( 1.06 );
}

.emc-cc__btn--ghost {
	color: #eef4f7;
	font-weight: 600;
	background: transparent;
	border-color: rgba( 255, 255, 255, 0.4 );
}

.emc-cc__btn--ghost:hover {
	filter: none;
	background: rgba( 255, 255, 255, 0.1 );
}

@media ( max-width: 600px ) {
	.emc-cc__actions {
		width: 100%;
	}
	.emc-cc__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}


/* ==========================================================================
   32. PRÉFÉRENCE DE MOUVEMENT RÉDUIT
   ========================================================================== */
@media ( prefers-reduced-motion: reduce ) {
	.emc-card,
	.em-module-card,
	.wp-element-button {
		transition: none;
	}
	.emc-cc {
		animation: none;
	}
}

/* ==========================================================================
   33. TABLEAU DE BORD ADMIN (page /tableau-de-bord/)
   ========================================================================== */
.emc-dash-login {
	max-width: 420px;
	margin: 2rem auto;
	padding: 1.6rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 14px;
}

.emc-dash-login h1 {
	margin: 0 0 0.3rem;
	font-size: 1.4rem;
}

.emc-dash-login__err {
	margin: 0.6rem 0;
	padding: 0.6rem 0.8rem;
	font-size: 0.88rem;
	color: var( --em-danger-ink );
	background: var( --em-danger-bg );
	border-radius: 8px;
}

.emc-dash-login form {
	margin-top: 1rem;
}

.emc-dash-login label {
	display: block;
	margin-bottom: 0.6rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.emc-dash-login input[type="text"],
.emc-dash-login input[type="password"] {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-dash-login input[type="submit"] {
	margin-top: 0.4rem;
	padding: 0.6rem 1.2rem;
	color: var( --em-surface );
	background: var( --em-primary );
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.emc-dash {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 1.5rem;
	max-width: 1100px;
	margin: 1rem auto;
}

.emc-dash__nav {
	position: sticky;
	top: 1rem;
	align-self: start;
	padding: 1rem;
	background: var( --em-primary );
	border-radius: 14px;
}

.emc-dash__brand {
	margin: 0 0 0.8rem;
	font-weight: 800;
	color: var( --em-surface );
}

.emc-dash__nav nav {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.emc-dash__navlink {
	padding: 0.5rem 0.7rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: rgba( 255, 255, 255, 0.82 );
	text-decoration: none;
	border-radius: 8px;
}

.emc-dash__navlink:hover,
.emc-dash__navlink.is-active {
	color: #fff;
	background: rgba( 255, 255, 255, 0.14 );
}

.emc-dash__navlink--out {
	margin-top: 0.6rem;
	color: var( --em-rope );
}

.emc-dash__main {
	min-width: 0;
}

.emc-dash__h1 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.emc-dash__main h2 {
	margin: 1.6rem 0 0.6rem;
	font-size: 1.05rem;
}

.emc-dash-flash {
	margin: 0 0 1rem;
	padding: 0.65rem 0.9rem;
	font-size: 0.88rem;
	color: var( --em-primary );
	background: var( --em-base );
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-dash-flash.is-err {
	color: var( --em-danger-ink );
	background: var( --em-danger-bg );
}

.emc-dash-cards {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) );
	gap: 0.8rem;
}

.emc-dash-card {
	display: flex;
	flex-direction: column;
	padding: 0.9rem 1rem;
	background: var( --em-surface );
	border: 1px solid var( --em-line );
	border-radius: 12px;
}

.emc-dash-card__n {
	font-size: 1.5rem;
	font-weight: 800;
	color: var( --em-primary );
}

.emc-dash-card__l {
	font-size: 0.8rem;
	color: var( --em-muted );
}

.emc-dash-card__s {
	margin-top: 0.2rem;
	font-size: 0.72rem;
	color: var( --em-muted );
}

.emc-dash-alerts {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.9rem;
}

.emc-dash-alerts .is-warn {
	color: var( --em-accent-ink );
	font-weight: 600;
}

.emc-dash-table {
	width: 100%;
	margin-top: 0.5rem;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.emc-dash-table th,
.emc-dash-table td {
	padding: 0.5rem 0.6rem;
	text-align: left;
	border-bottom: 1px solid var( --em-line );
	vertical-align: middle;
}

.emc-dash-table th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --em-muted );
}

.emc-dash-table--log td {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.78rem;
}

.emc-dash-btn {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var( --em-primary );
	background: var( --em-base );
	border: 1px solid var( --em-line );
	border-radius: 7px;
	text-decoration: none;
	cursor: pointer;
}

.emc-dash-btn.is-danger {
	color: var( --em-danger-ink );
	border-color: var( --em-danger-line );
}

.emc-dash-tag {
	display: inline-block;
	padding: 0.1rem 0.45rem;
	margin-right: 0.25rem;
	font-size: 0.7rem;
	font-weight: 700;
	border-radius: 999px;
	background: var( --em-base );
	border: 1px solid var( --em-line );
}

.emc-dash-tag--gold {
	color: #7a5a10;
	background: #fdf3d6;
	border-color: #e2c878;
}

.emc-dash-tag--red {
	color: var( --em-danger-ink );
	background: var( --em-danger-bg );
	border-color: var( --em-danger-line );
}

.emc-dash-bar {
	margin: 0.4rem 0;
	font-size: 0.85rem;
}

.emc-dash-bar__track {
	display: block;
	height: 8px;
	margin-top: 0.2rem;
	background: var( --em-line );
	border-radius: 999px;
	overflow: hidden;
}

.emc-dash-bar__fill {
	display: block;
	height: 100%;
	background: var( --em-secondary );
}

.emc-dash-filters a {
	margin-right: 0.5rem;
	font-size: 0.85rem;
	text-decoration: none;
	color: var( --em-secondary );
}

.emc-dash-filters a.is-active {
	font-weight: 700;
	color: var( --em-primary );
}

.emc-dash-form {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	max-width: 420px;
	margin-top: 0.6rem;
}

.emc-dash-form label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.emc-dash-form input,
.emc-dash-form select {
	padding: 0.5rem 0.65rem;
	font: inherit;
	font-weight: 400;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-dash-soon {
	padding: 0.7rem 0.9rem;
	font-size: 0.85rem;
	color: var( --em-muted );
	background: var( --em-base );
	border: 1px dashed var( --em-line );
	border-radius: 8px;
}

.emc-dash-hint {
	font-size: 0.78rem;
	color: var( --em-muted );
}

.emc-dash-usearch {
	display: flex;
	gap: 0.5rem;
	margin: 0.4rem 0 0.6rem;
	flex-wrap: wrap;
}

.emc-dash-usearch input[type="search"] {
	flex: 1 1 220px;
	padding: 0.5rem 0.65rem;
	font: inherit;
	border: 1px solid var( --em-line );
	border-radius: 8px;
}

.emc-dash-list {
	font-size: 0.88rem;
	padding-left: 1.1rem;
}

@media ( max-width: 780px ) {
	.emc-dash {
		grid-template-columns: 1fr;
	}
	.emc-dash__nav {
		position: static;
	}
	.emc-dash__nav nav {
		flex-flow: row wrap;
	}
}

/* Lien discret « Espace admin » dans le pied de page */
.em-footer-admin-link a {
	font-size: 0.8rem;
	opacity: 0.65;
}

/* ============================================================
   34. Diplômes vérifiés + sécurité des vérifications
   ============================================================ */

.emc-secnote {
	margin: 0.5rem 0;
	padding: 0.6rem 0.8rem;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var( --em-ink, #123 );
	background: #eef5fb;
	border: 1px solid #cfe2f2;
	border-radius: 8px;
}

.emc-dip-list {
	list-style: none;
	margin: 0.6rem 0 1.2rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.emc-dip-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.6rem;
	padding: 0.55rem 0.7rem;
	background: var( --em-base, #f7f9fb );
	border: 1px solid var( --em-line, #dce3ea );
	border-radius: 8px;
}

.emc-dip-item__label {
	font-weight: 600;
}

.emc-dip-item__org {
	font-weight: 400;
	color: var( --em-muted, #667 );
}

.emc-dip-item__note {
	flex-basis: 100%;
	font-size: 0.82rem;
	color: #a3341f;
}

.emc-dip-pill {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	white-space: nowrap;
}

.emc-dip-pill--ok {
	color: #0b6b2e;
	background: #d9f2e1;
}

.emc-dip-pill--wait {
	color: #8a5a00;
	background: #ffeccc;
}

.emc-dip-pill--no {
	color: #a3341f;
	background: #f7dcd6;
}

.emc-dip-rm {
	margin: 0;
}

.emc-diplomas-line {
	margin: 0 0 1rem;
	padding: 0.5rem 0.8rem;
	background: #d9f2e1;
	border-radius: 8px;
	font-size: 0.9rem;
}

.emc-postuler__dip {
	margin: 0 0 1rem;
	padding: 0.7rem 0.9rem;
	background: var( --em-base, #f7f9fb );
	border: 1px solid var( --em-line, #dce3ea );
	border-radius: 8px;
	font-size: 0.9rem;
}

.emc-postuler__dip .emc-dip-ok {
	color: #0b6b2e;
	font-weight: 600;
}

.emc-postuler__dip .emc-dip-warn {
	color: #8a5a00;
}

.emc-sec-list {
	margin: 1rem 0;
	padding-left: 1.2rem;
	line-height: 1.6;
}

.emc-sec-list li {
	margin-bottom: 0.5rem;
}

.emc-dash-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.emc-dash-badge {
	display: inline-block;
	min-width: 1.3rem;
	padding: 0 0.35rem;
	margin-left: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3rem;
	text-align: center;
	color: #fff;
	background: #c0392b;
	border-radius: 999px;
	vertical-align: middle;
}

.emc-dash__navlink .emc-dash-badge {
	background: #ff6b57;
}

.emc-dash-muted {
	color: var( --em-muted, #667 );
	font-size: 0.85rem;
}

.emc-dash-verif {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.emc-dash-verif input[type="text"] {
	flex: 1 1 140px;
	min-width: 120px;
	padding: 0.4rem 0.55rem;
	font: inherit;
	border: 1px solid var( --em-line, #dce3ea );
	border-radius: 7px;
}

/* ==========================================================================
   35. Cases à cocher & boutons radio — filet de sécurité (mobile inclus)
   Aucune règle de formulaire ne doit les étirer à 100 % : elles restent
   à leur taille native, collées à leur libellé.
   ========================================================================== */
input[type="checkbox"],
input[type="radio"] {
	width: auto;
	min-width: 0;
	flex: 0 0 auto;
	margin: 0;
	vertical-align: middle;
}

/* Libellés « case + texte » courts : la case DEVANT le texte, sur une seule
   ligne. On force flex-direction:row même à l'intérieur d'un formulaire dont
   les <label> sont en colonne (.emc-submit-form label, .emc-account__form
   label…) — d'où les sélecteurs très spécifiques. */
.emc-checkbox-line,
.emc-metier-checkbox,
.emc-fav-toggle,
.emc-offres-urgent,
.emc-submit-form label.emc-checkbox-line,
.emc-submit-form label.emc-metier-checkbox,
.emc-account__form label.emc-checkbox-line,
.emc-account__form label.emc-metier-checkbox,
.emc-recrut__form label.emc-checkbox-line,
.emc-profils-filters label.emc-checkbox-line,
.emc-offres-filters label.emc-checkbox-line {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.emc-checkbox-line > input,
.emc-metier-checkbox > input,
.emc-fav-toggle > input,
.emc-offres-urgent > input {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
}

/* Liste des métiers : une colonne par ligne sur mobile, deux au-delà. */
.emc-metier-group__options {
	grid-template-columns: 1fr;
}

@media ( min-width: 560px ) {
	.emc-metier-group__options {
		grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
	}
}

/* ==========================================================================
   36. Champs obligatoires (astérisque) + légende de formulaire
   ========================================================================== */
.emc-req {
	color: #c0392b;
	font-weight: 700;
	margin-left: 0.15rem;
}

.emc-form-legend {
	margin: 0 0 0.6rem;
	font-size: 0.82rem;
	color: var( --em-muted, #667 );
}
