/* ==========================================================================
   rb-experience.css — PROPOSITION de gabarit « contenu d'abord »
   pour les pages expérience. Mobile d'abord, paliers 768px et 1025px.

   Ordre de lecture : nom + Snapshot → image/citation → chiffres clés
   → missions | accomplissements → Digital Ecosystem → expérience suivante
   ========================================================================== */

.rbx {
	--rbx-ink: #000;
	--rbx-muted: #6b6b6b;
	--rbx-line: #e6e6e6;
	--rbx-soft: #f5f5f5;
	--rbx-accent: #ED1D24;
	--rbx-gutter: 20px;
	--rbx-n1: 40px;     /* titre de page */
	--rbx-n2: 30px;     /* titres de section, citation */
	--rbx-kpi: 40px;    /* chiffres clés */
	--rbx-space: 48px;  /* espace vertical entre blocs */
	font-family: "Roboto", sans-serif;
	color: var(--rbx-ink);
	background: #fff;
}
@media (min-width: 768px) {
	.rbx { --rbx-gutter: 32px; --rbx-n1: 56px; --rbx-n2: 38px; --rbx-kpi: 48px; --rbx-space: 64px; }
}
@media (min-width: 1025px) {
	.rbx { --rbx-gutter: 40px; --rbx-n1: 72px; --rbx-n2: 44px; --rbx-kpi: 56px; --rbx-space: 88px; }
}

.rbx *, .rbx *:before, .rbx *:after { box-sizing: border-box; }
.rbx h1, .rbx h2, .rbx p, .rbx ul, .rbx dl, .rbx dd { margin: 0; padding: 0; }
.rbx h1:before, .rbx h2:before { content: none !important; display: none !important; }

.rbx-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rbx-gutter);
	padding-right: var(--rbx-gutter);
}
.rbx-nowrap { white-space: nowrap; }

/* ---- Libellés N3 (Snapshot, Key Responsibilities…) ---------------------- */
.rbx-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rbx-ink);
	margin-bottom: 16px !important;
}

/* ---- 1. Intro ------------------------------------------------------------ */
.rbx-intro {
	display: grid;
	gap: 32px;
	padding-top: 36px;
	padding-bottom: var(--rbx-space);
}
.rbx-intro__title:before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: #767676;
	margin-bottom: 22px;
}
.rbx-h1 {
	font-size: var(--rbx-n1);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.02em;
}
.rbx-tagline {
	margin-top: 14px !important;
	font-size: 16px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.45;
	color: var(--rbx-muted);
}
.rbx-next-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-left: 12px;
	vertical-align: middle;
	position: relative;
	top: -0.06em;
	border: 2px solid var(--rbx-ink);
	color: var(--rbx-ink) !important;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.rbx-next-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.rbx-next-btn:hover, .rbx-next-btn:focus-visible { background: var(--rbx-ink); color: #fff !important; }
.rbx-next-btn:hover svg, .rbx-next-btn:focus-visible svg { transform: translateX(3px); }

/* Fiche Snapshot */
.rbx-snapshot {
	border-top: 2px solid var(--rbx-ink);
	padding-top: 18px;
}
.rbx-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}
.rbx-facts > div { min-width: 0; }
.rbx-facts dt {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--rbx-muted);
	margin-bottom: 4px;
}
.rbx-facts dd {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}
.rbx-facts dd a { color: #0073aa; text-decoration: none; font-weight: 500; }
.rbx-facts dd a:hover { text-decoration: underline; }
.rbx-facts__wide, .rbx-facts > div:nth-child(3) { grid-column: 1 / -1; }
.rbx-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px !important;
}
.rbx-chips li {
	padding: 6px 10px;
	background: var(--rbx-soft);
	font-size: 10px;
	letter-spacing: 1px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #555;
}

@media (min-width: 1025px) {
	.rbx-intro {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 64px;
		align-items: end;
		padding-top: 56px;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.rbx-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rbx-facts > div:nth-child(3) { grid-column: auto / span 2; }
	.rbx-facts__wide { grid-column: auto / span 2; }
}
@media (min-width: 768px) {
	.rbx-next-btn { width: 48px; height: 48px; margin-left: 18px; }
	.rbx-next-btn svg { width: 22px; height: 22px; }
	.rbx-tagline { font-size: 18px; }
}

/* ---- 2. Bandeau image ------------------------------------------------------ */
.rbx-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 240px;
	height: 36vw;
	max-height: 460px;
	background: #111 var(--rbx-hero) var(--rbx-hero-pos, center) / cover no-repeat;
	color: #fff;
}
.rbx-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 100%);
}
.rbx-hero .rbx-container { position: relative; padding-bottom: 32px; }
.rbx-hero__quote {
	max-width: 760px;
	font-size: var(--rbx-n2);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
@media (min-width: 1025px) { .rbx-hero .rbx-container { padding-bottom: 48px; } }

/* ---- 3. Chiffres clés ------------------------------------------------------ */
.rbx-kpis { padding-top: var(--rbx-space); }
.rbx-kpis__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 20px;
}
.rbx-kpi {
	border-top: 1px solid var(--rbx-line);
	padding-top: 16px;
}
.rbx-kpi__value {
	display: block;
	font-size: var(--rbx-kpi);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
}
.rbx-kpi__label {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--rbx-muted);
}
@media (min-width: 768px) {
	.rbx-kpis__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
	.rbx-kpi { border-top-width: 2px; border-top-color: var(--rbx-ink); }
}

/* ---- 4. Missions | Accomplissements ---------------------------------------- */
.rbx-details {
	display: grid;
	gap: 40px;
	padding-top: var(--rbx-space);
}
.rbx-list {
	list-style: disc;
	padding-left: 20px !important;
}
.rbx-list li {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7;
	margin-bottom: 10px;
}
.rbx-list li::marker { color: #999; }
.rbx-details__side {
	background: var(--rbx-soft);
	padding: 28px 24px;
	border-left: 3px solid var(--rbx-accent);
}
.rbx-list--check { list-style: none; padding-left: 0 !important; }
.rbx-list--check li {
	position: relative;
	padding-left: 28px;
	font-weight: 400;
}
.rbx-list--check li:before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--rbx-ink);
	border-bottom: 2px solid var(--rbx-ink);
	transform: rotate(-45deg);
}
@media (min-width: 1025px) {
	.rbx-details {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 64px;
		align-items: start;
	}
	.rbx-details__side { padding: 36px 32px; position: sticky; top: 24px; }
}

/* ---- 5. Digital Ecosystem ---------------------------------------------------- */
.rbx-eco { padding-top: var(--rbx-space); padding-bottom: var(--rbx-space); }
.rbx-h2 {
	font-size: var(--rbx-n2);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-align: center;
}
.rbx-h2:after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: #767676;
	margin: 18px auto 0;
}
.rbx-eco .rb-projects-wrap { margin-top: 32px; padding: 0; }

/* ---- 6. Expérience suivante ------------------------------------------------- */
.rbx-nextbar {
	display: block;
	background: #111;
	color: #fff !important;
	text-decoration: none !important;
	border-bottom: 1px solid #222;
	transition: background-color .2s;
}
.rbx-nextbar__inner {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 32px;
	padding-bottom: 32px;
}
.rbx-nextbar__label {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #9a9a9a;
}
.rbx-nextbar__name {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: var(--rbx-n2);
	font-weight: 800;
	line-height: 1.1;
}
.rbx-nextbar__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 2px solid #fff;
	transition: transform .2s, background-color .2s, color .2s;
}
.rbx-nextbar:hover { background: #000; }
.rbx-nextbar:hover .rbx-nextbar__arrow { background: #fff; color: #000; transform: translateX(4px); }
@media (min-width: 768px) {
	.rbx-nextbar__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-top: 40px;
		padding-bottom: 40px;
	}
	.rbx-nextbar__arrow { width: 48px; height: 48px; }
}

/* Tablette : liste Digital Ecosystem sur une colonne, centrée */
@media (min-width: 768px) and (max-width: 1024px) {
	.rbx-eco .rb-projects-wrap { max-width: 640px; }
	.rbx-eco .rb-projects { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LOGO DE L'INSTITUTION + COULEUR D'ACCENT PAR PAGE
   La couleur est définie sur <main class="rbx" style="--rbx-accent:#…">
   PSG #DA291C · OM #2FAEE0 · FISE #F28C00
   ========================================================================== */

/* Logo blanc dans un carré à la couleur de l'institution, à gauche du nom */
.rbx-intro__title {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.rbx-intro__title:before { content: none; display: none; }
.rbx-intro__text { min-width: 0; flex: 1 1 auto; }
.rbx-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-top: 2px;
	background: var(--rbx-accent);
}
.rbx-logo img {
	display: block;
	width: 72%;
	height: 72%;
	object-fit: contain;
}
@media (min-width: 768px) {
	.rbx-intro__title { gap: 24px; }
	.rbx-logo { width: 72px; height: 72px; margin-top: 4px; }
}
@media (min-width: 1025px) {
	.rbx-intro__title { gap: 28px; }
	.rbx-logo { width: 88px; height: 88px; margin-top: 6px; }
}

/* Accents */
.rbx-details__side { border-left-color: var(--rbx-accent); }
.rbx-list--check li:before { border-color: var(--rbx-accent); }
.rbx-list li::marker { color: var(--rbx-accent); }
.rbx-kpi { border-top-color: var(--rbx-accent); }
@media (min-width: 768px) {
	.rbx-kpi { border-top-color: var(--rbx-accent); }
}
.rbx .rb-project:hover { border-left-color: var(--rbx-accent); }
.rbx-snapshot { border-top-color: var(--rbx-accent); }
.rbx-h2:after { background: var(--rbx-accent); }

/* Logo en noir et blanc, AU-DESSUS du nom : son haut s'aligne avec le
   haut de la fiche Snapshot pour équilibrer les deux colonnes */
.rbx-logo {
	background: #000;
	margin-top: 0;
}
.rbx-intro__title {
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}
@media (min-width: 768px) {
	.rbx-intro__title { gap: 28px; }
}
@media (min-width: 1025px) {
	.rbx-intro { align-items: start; }
	.rbx-intro__title { gap: 32px; }
	.rbx-logo { width: 80px; height: 80px; }
}

/* Logo noir sur fond transparent (les fichiers sont blancs : on les inverse) */
.rbx-logo {
	background: transparent;
	justify-content: flex-start;
}
.rbx-logo img {
	width: 100%;
	height: 100%;
	filter: brightness(0);
}

/* Citation du bandeau : sur une ligne dès que la largeur le permet,
   sinon retour à la ligne équilibré */
.rbx-hero__quote {
	max-width: none;
	text-wrap: balance;
}
