/* ==========================================================================
   rb-work.css — page « Work with me » (offre freelance / poste + carte).
   S'appuie sur rb-experience.css (.rbx-*) pour la base : conteneur, libellés,
   chiffres clés, listes à coche, fiche Snapshot. Mobile d'abord.
   ========================================================================== */

.rbw .rbx-intro__title { display: block; }
.rbw .rbx-intro .rbx-label { color: var(--rbx-muted); margin-bottom: 18px !important; }
.rbw .rbx-h1 { max-width: 12ch; }
.rbw .rbx-tagline { max-width: 58ch; }

/* ---- Boutons ------------------------------------------------------------- */
.rbw-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.rbw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 2px solid var(--rbx-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--rbx-ink) !important;
	background: #fff;
	transition: background-color .2s, color .2s;
}
.rbw-btn:hover, .rbw-btn:focus-visible { background: var(--rbx-ink); color: #fff !important; }
.rbw-btn--solid { background: var(--rbx-ink); color: #fff !important; }
.rbw-btn--solid:hover, .rbw-btn--solid:focus-visible { background: #333; border-color: #333; }
.rbw-btn--light { background: #fff; border-color: #fff; color: #000 !important; text-transform: none; letter-spacing: 0; font-size: 15px; }
.rbw-btn--light:hover, .rbw-btn--light:focus-visible { background: #e6e6e6; border-color: #e6e6e6; color: #000 !important; }
.rbw-btn--ghost { background: transparent; border-color: #fff; color: #fff !important; }
.rbw-btn--ghost:hover, .rbw-btn--ghost:focus-visible { background: #fff; color: #000 !important; }

.rbw-dot {
	display: inline-block;
	width: 9px; height: 9px;
	margin-right: 8px;
	border-radius: 50%;
	background: #1fa352;
	box-shadow: 0 0 0 3px rgba(31,163,82,.18);
	vertical-align: 1px;
}

/* ---- Deux parcours ---------------------------------------------------------- */
.rbw-tracks {
	display: grid;
	gap: 24px;
	padding-bottom: var(--rbx-space);
}
.rbw-track {
	background: var(--rbx-soft);
	padding: 28px 24px 30px;
	border-top: 3px solid var(--rbx-ink);
}
.rbw-track--alt { background: #fff; border: 1px solid var(--rbx-line); border-top: 3px solid var(--rbx-ink); }
.rbw-track__lead { font-size: 16px; font-weight: 300; line-height: 1.6; color: #333; margin-bottom: 18px !important; }
.rbw-track .rbx-list li { margin-bottom: 8px; }
.rbw-track .rbw-btn { margin-top: 14px; }
@media (min-width: 768px) {
	.rbw-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.rbw-track { padding: 36px 32px 38px; }
}

/* ---- Services ----------------------------------------------------------------- */
.rbw-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}
.rbw-filter__btn {
	appearance: none;
	border: 1.5px solid var(--rbx-line);
	background: #fff;
	color: var(--rbx-ink);
	font: 700 10px/1 "Roboto", sans-serif;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 9px 12px;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.rbw-filter__btn:hover, .rbw-filter__btn:focus { background: #fff; color: var(--rbx-ink); border-color: var(--rbx-ink); outline: none; }
.rbw-filter__btn:focus-visible { outline: 2px solid var(--rbx-ink); outline-offset: 2px; }
.rbw-filter__btn.is-active, .rbw-filter__btn.is-active:hover, .rbw-filter__btn.is-active:focus { background: var(--rbx-ink); border-color: var(--rbx-ink); color: #fff; }
.rbw-service.is-hidden { display: none; }
@media (min-width: 768px) { .rbw-filter__btn { font-size: 11px; padding: 10px 14px; } }
.rbw-services { padding-bottom: var(--rbx-space); }
.rbw-services__grid {
	list-style: none;
	display: grid;
	gap: 0;
	margin-top: 28px !important;
	border-top: 1px solid var(--rbx-line);
}
.rbw-service {
	padding: 24px 0 26px;
	border-bottom: 1px solid var(--rbx-line);
}
.rbw-service__title { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; }
.rbw-service__text { font-size: 15px; font-weight: 300; line-height: 1.65; color: #333; }
.rbw-service__format {
	margin-top: 14px !important;
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--rbx-muted);
}
@media (min-width: 768px) {
	.rbw-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
@media (min-width: 1025px) {
	.rbw-services__grid { column-gap: 64px; }
	.rbw-service { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title format" "text text"; column-gap: 24px; align-items: start; }
	.rbw-service__title { grid-area: title; }
	.rbw-service__text { grid-area: text; max-width: 60ch; }
	.rbw-service__format { grid-area: format; margin-top: 6px !important; text-align: right; max-width: 170px; }
}

/* ---- Preuves ------------------------------------------------------------------ */
.rbw .rbx-kpi { position: relative; }
.rbx-kpi__tags {
	position: absolute;
	top: 12px;
	right: 0;
	display: flex;
	gap: 4px;
}
.rbw-tag {
	display: inline-block;
	padding: 4px 7px;
	background: var(--tag, #000);
	color: #fff !important;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: opacity .2s, transform .2s;
}
.rbw-tag:hover, .rbw-tag:focus-visible { opacity: .85; transform: translateY(-1px); }
@media (max-width: 767px) {
	.rbx-kpi__tags { position: static; margin-bottom: 10px; }
}
@media (min-width: 768px) {
	.rbx-kpi__tags { top: 14px; }
	.rbw-tag { font-size: 10px; padding: 5px 8px; }
	.rbw .rbx-kpi__value { padding-right: 76px; }
}
.rbw .rbx-kpis { padding-top: 0; padding-bottom: var(--rbx-space); }
@media (min-width: 768px) { .rbw .rbx-kpis__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } }
.rbw .rbx-kpi__value--long { font-size: calc(var(--rbx-kpi) * .72); line-height: 1.25; }
.rbw-proof-links { margin-top: 28px !important; font-size: 14px; font-weight: 300; color: var(--rbx-muted); }
.rbw-proof-links a { color: var(--rbx-ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rbx-ink); }

/* ---- Carte ----------------------------------------------------------------------- */
.rbw-map-section { padding-bottom: var(--rbx-space); }
.rbw-map-intro {
	max-width: 62ch;
	margin: 22px auto 0 !important;
	text-align: center;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.65;
	color: #333;
}
.rbw-seg { margin-top: 26px; }
.rbw-map-wrap { position: relative; margin-top: 20px; background: var(--rbx-soft); }
.rbw-map { height: 360px; width: 100%; }
.rbw-map-fallback { padding: 24px; text-align: center; font-size: 14px; color: var(--rbx-muted); }
.rbw-map-wrap.has-map .rbw-map-fallback { display: none; }
.rbw-map-wrap:not(.has-map) .rbw-map { display: none; }
@media (min-width: 768px) { .rbw-map { height: 460px; } }
@media (min-width: 1025px) { .rbw-map { height: 540px; } }

/* Marqueurs */
.rbw-pin { background: transparent; border: 0; }
.rbw-pin::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #000;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.rbw-pin span {
	position: absolute;
	left: 18px;
	top: -3px;
	white-space: nowrap;
	font: 700 12px/1.4 "Roboto", sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000;
	text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.rbw-pin--left span { left: auto; right: 18px; }
.rbw-pin--base::before { background: #000; transform: scale(1.3); }
.rbw-pin__dot {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
	transform: scale(1.3);
}
.rbw-pin--now::before { background: #fff; border-color: #000; transform: scale(1.3); }
.rbw-pin--fise::before { background: #F28C00; }
.rbw-pin--fise span { color: #000; }
.rbw-pin--venue::before { background: #000; opacity: .75; transform: scale(.8); }
.leaflet-container { font-family: "Roboto", sans-serif; }
.leaflet-popup-content { font-size: 14px; line-height: 1.5; margin: 12px 16px; }
.leaflet-popup-content a { color: #000; font-weight: 500; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 0; }
.rbw-popup__tags { font-size: 15px; }

/* Groupes de points (Leaflet.markercluster) */
.leaflet-marker-icon.rbw-cluster {
	background: #000;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0,0,0,.35);
	box-sizing: border-box;
	cursor: pointer;
}
.rbw-cluster span {
	position: absolute;
	inset: 0;
	display: block;
	text-align: center;
	line-height: 32px;
	color: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-shadow: none;
}
.rbw-cluster--big span { font-size: 14px; }
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }

/* Panneaux sous la carte */
.rbw-view { display: none; margin-top: 28px; }
.rbw-view.is-active { display: block; }
.rbw-bases {
	list-style: none;
	display: grid;
	gap: 10px 32px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
}
.rbw-bases strong { font-weight: 700; }
@media (min-width: 768px) { .rbw-bases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rbw-legend {
	font-size: 13px;
	line-height: 2;
	color: #444;
	margin-bottom: 6px !important;
}
.rbw-legend strong { font-weight: 700; color: var(--rbx-ink); margin-right: 6px; }
.rbw-legend__item { display: inline-block; margin-right: 14px; white-space: nowrap; }

.rbw-countries { margin-top: 20px; border-top: 1px solid var(--rbx-line); }
.rbw-country { border-bottom: 1px solid var(--rbx-line); }
.rbw-country > summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 0;
	font-size: 17px;
	font-weight: 700;
}
.rbw-country > summary::-webkit-details-marker { display: none; }
.rbw-country > summary::after {
	content: "+";
	margin-left: auto;
	font-weight: 300;
	font-size: 24px;
	line-height: 1;
	color: var(--rbx-muted);
}
.rbw-country[open] > summary::after { content: "–"; }
.rbw-country__flag { font-size: 20px; }
.rbw-country__count {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 1px;
	color: var(--rbx-muted);
	background: var(--rbx-soft);
	padding: 3px 8px;
}
.rbw-venues {
	list-style: none;
	display: grid;
	gap: 0;
	padding-bottom: 12px !important;
}
.rbw-venue__btn {
	appearance: none;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "name tags" "city tags";
	column-gap: 12px;
	text-align: left;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	padding: 9px 6px 9px 10px;
	cursor: pointer;
	font-family: "Roboto", sans-serif;
	color: var(--rbx-ink);
	transition: border-color .2s, background-color .2s;
}
.rbw-venue__btn:hover, .rbw-venue__btn:focus-visible { border-left-color: var(--rbx-ink); background: #fafafa; }
.rbw-venue__name { grid-area: name; font-size: 15px; font-weight: 500; line-height: 1.3; }
.rbw-venue__city { grid-area: city; font-size: 12px; font-weight: 300; color: var(--rbx-muted); }
.rbw-venue__tags { grid-area: tags; align-self: center; font-size: 16px; letter-spacing: 2px; white-space: nowrap; }
.rbw-venue__badge { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--rbx-line); }
@media (min-width: 768px) {
	.rbw-venues { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1025px) {
	.rbw-venues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Comment je travaille ------------------------------------------------------- */
.rbw-how { padding-bottom: var(--rbx-space); }
.rbx dl.rbw-how__facts { border-top: 2px solid var(--rbx-ink); padding-top: 36px; gap: 28px 24px; }
.rbw-how__facts dt { margin-bottom: 10px; }
.rbw-how__facts > div { grid-column: auto !important; }
.rbw-how__facts dd { font-weight: 300; font-size: 15px; line-height: 1.6; }
@media (min-width: 768px) { .rbw-how__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; } }

/* ---- Contact ---------------------------------------------------------------------- */
.rbw-contact { background: #111; color: #fff; }
.rbw-contact__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 44px;
	padding-bottom: 48px;
}
.rbw-contact__title {
	margin-top: 8px !important;
	font-size: var(--rbx-n2);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.rbw-contact .rbw-cta { margin-top: 0; }
@media (min-width: 1025px) {
	.rbw-contact__inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 60px; }
	.rbw-contact .rbw-cta { justify-content: flex-end; max-width: 46%; }
}

/* Le thème Twenty Nineteen force button:hover / button:focus { background: #111 } :
   on rétablit les couleurs des boutons de la page (sinon texte noir sur fond noir) */
.rbw-venue__btn:focus { background: transparent; outline: none; }
.rbw-venue__btn:hover, .rbw-venue__btn:focus-visible { background: #fafafa; }

/* Drapeau olympique (badge JO) dans la liste, la légende et les popups de la carte */
.rbw-oly { display: inline-block; width: 21px; height: 14px; vertical-align: -2px; }

/* Jauge des venues : discrète à côté de la ville ; fourchette = plusieurs configurations (détail en infobulle et sur la carte) */
.rbw-venue__cap { white-space: nowrap; }
.rbw-venue__cap::before { content: "·"; margin: 0 5px; }
/* Icône siège (capacité) : SVG en masque, prend la couleur du texte */
.rbw-seat { display: inline-block; width: 1em; height: 1em; margin-right: 3px; vertical-align: -0.14em; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='2.5' width='12' height='9.5' rx='3'/%3E%3Crect x='3.5' y='13' width='17' height='4' rx='1.5'/%3E%3Crect x='6' y='17' width='2.5' height='4.5' rx='1'/%3E%3Crect x='15.5' y='17' width='2.5' height='4.5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='2.5' width='12' height='9.5' rx='3'/%3E%3Crect x='3.5' y='13' width='17' height='4' rx='1.5'/%3E%3Crect x='6' y='17' width='2.5' height='4.5' rx='1'/%3E%3Crect x='15.5' y='17' width='2.5' height='4.5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.rbw-venue__cap--multi .rbw-venue__num { border-bottom: 1px dotted currentColor; cursor: help; }
.rbw-popup__cap { display: inline-block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #555; }
