/*
 * RecrutOr Offres — styles
 *
 * Volontairement discret : le plugin s'insère dans le thème du site client
 * (souvent DIVI). On reprend les classes historiques (listeoffresror,
 * offredescription, etc.) et on hérite au maximum des couleurs/typo du thème
 * hôte. Personnalisez librement dans le thème enfant si besoin.
 */

.recrutor-offres,
.recrutor-offre-detail {
	margin: 0 0 1.5em 0;
}

/* --------------------------------------------------------------------------- */
/* Barre de filtres (recherche + métier)                                       */
/* --------------------------------------------------------------------------- */

.recrutor-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: center;
	margin-bottom: 1.25em;
}

.recrutor-recherche {
	display: flex;
	gap: 0.4em;
	flex: 1 1 260px;
}

.recrutor-recherche input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.45em 0.7em;
}

.recrutor-recherche button {
	white-space: nowrap;
	cursor: pointer;
}

.recrutor-filtre-metier,
.recrutor-filtre-liste {
	display: flex;
	gap: 0.4em;
	align-items: center;
}

.recrutor-filtre-liste select,
.recrutor-filtre-metier select,
#formfiltrefonction select {
	padding: 0.45em 0.7em;
	max-width: 100%;
}

/* --------------------------------------------------------------------------- */
/* Icônes SVG intégrées                                                        */
/* --------------------------------------------------------------------------- */

.recrutor-icone {
	display: inline-block;
	vertical-align: -0.15em;
	/* la couleur suit celle du texte environnant (fill="currentColor") */
	opacity: 0.75;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------- */
/* Compteur d'offres                                                           */
/* --------------------------------------------------------------------------- */

.recrutor-compteur {
	margin: 0 0 1em 0;
	font-size: 0.9em;
	opacity: 0.75;
}

/* --------------------------------------------------------------------------- */
/* Lien de retour (page détail)                                                */
/* --------------------------------------------------------------------------- */

.recrutor-retour {
	margin: 0 0 1em 0;
	font-size: 0.95em;
}

.recrutor-lien-retour {
	text-decoration: none;
}

.recrutor-lien-retour:hover {
	text-decoration: underline;
}

/* libellés réservés aux lecteurs d'écran (accessibilité) ;
   la classe existe déjà dans la plupart des thèmes, on la redéfinit par sécurité */
.recrutor-filtres .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.recrutor-titre-filtre {
	margin: 0.5em 0 1em 0;
}

/* --------------------------------------------------------------------------- */
/* Liste des offres                                                            */
/* --------------------------------------------------------------------------- */

ul#listeoffresror {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul#listeoffresror > li {
	position: relative;
	margin: 0 0 1.1em 0;
	padding: 0 0 1.1em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offre-carte-lien {
	position: absolute;
	inset: 0;
}

ul#listeoffresror > li:last-child {
	border-bottom: 0;
}

ul#listeoffresror > li h2 {
	margin: 0 0 0.3em 0;
	font-size: 1.15em;
	line-height: 1.25;
}

a.lienoffre {
	text-decoration: none;
}

a.lienoffre:hover {
	text-decoration: underline;
}

#zoneprecisionsoffre {
	margin: 0.2em 0 0.5em 0;
	font-size: 0.9em;
	opacity: 0.85;
}

#zoneprecisionsoffre .offrelieu,
#zoneprecisionsoffre .offretype,
#zoneprecisionsoffre .offredate {
	display: inline-block;
	margin-right: 1em;
	white-space: nowrap;
}

.offredescription {
	display: block;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------- */
/* Détail d'une offre                                                          */
/* --------------------------------------------------------------------------- */

.recrutor-offre-detail .offre-titre {
	margin: 0 0 0.4em 0;
}

.recrutor-offre-detail .offre-agence {
	margin: 0.3em 0 1em 0;
}

.recrutor-offre-detail .offre-section {
	margin: 1.25em 0;
}

.recrutor-offre-detail .offre-section h2 {
	margin: 0 0 0.4em 0;
	font-size: 1.15em;
}

.recrutor-offre-detail .offre-candidature {
	margin: 1.75em 0 0 0;
}

.recrutor-offre-detail .bouton-postuler {
	display: inline-block;
	padding: 0.7em 1.4em;
	text-decoration: none;
	border-radius: 4px;
	/* hérite des couleurs de bouton du thème si possible ; fallback neutre */
	background: #1f4e79;
	color: #fff;
}

.recrutor-offre-detail .bouton-postuler:hover {
	opacity: 0.9;
}

/* --------------------------------------------------------------------------- */
/* Messages                                                                    */
/* --------------------------------------------------------------------------- */

.recrutor-offres .msg_info,
.recrutor-offre-detail .msg_info,
.msg_info {
	padding: 0.8em 1em;
	background: rgba(0, 0, 0, 0.04);
	border-left: 3px solid rgba(0, 0, 0, 0.2);
	margin: 1em 0;
}

.msg_erreur {
	padding: 0.8em 1em;
	background: #fdecea;
	border-left: 3px solid #c0392b;
	color: #7a2018;
	margin: 1em 0;
}

/* --------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* --------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.recrutor-filtres {
		flex-direction: column;
		align-items: stretch;
	}
	#zoneprecisionsoffre .offrelieu,
	#zoneprecisionsoffre .offretype,
	#zoneprecisionsoffre .offredate {
		display: block;
		margin: 0.15em 0;
	}
}
