/*
 * DBFI Simulateur Regimes matrimoniaux
 * Tout le CSS est scope sous l'identifiant unique .dbfi-srm.
 * Mise en page en flexbox uniquement, aucune dependance externe.
 */

.dbfi-srm {
	--srm-lime: #b3bc00;
	--srm-lime-d: #8a9400;
	--srm-noir: #000;
	--srm-gris: #5b5b5b;
	--srm-soft: #f4f4ef;
	--srm-bord: #e2e2da;
	--srm-ok: #6f7a00;
	--srm-att: #a86a00;
	--srm-risq: #a32020;
	color: #000;
	line-height: 1.6;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
}

.dbfi-srm * {
	box-sizing: border-box;
}

.dbfi-srm p {
	margin: 0 0 14px;
}

.dbfi-srm a {
	color: var(--srm-lime-d);
	text-decoration: none;
	font-weight: 700;
}

.dbfi-srm a:hover,
.dbfi-srm a:focus {
	text-decoration: underline;
}

.dbfi-srm .dbfi-srm-titre {
	font-size: 30px;
	line-height: 1.2;
	font-weight: 800;
	margin: 0 0 20px;
	color: #000;
}

.dbfi-srm .dbfi-srm-noscript {
	background: var(--srm-soft);
	border: 1px solid var(--srm-bord);
	border-radius: 12px;
	padding: 18px;
}

/* ------------------------------------------------------------------ Onglets */

.dbfi-srm .srm-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 6px;
	background: var(--srm-soft);
	border-radius: 14px;
}

.dbfi-srm .srm-tab {
	flex: 1 1 150px;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: var(--srm-gris);
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 14px;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	transition: background .15s ease, color .15s ease;
}

.dbfi-srm .srm-tab:hover {
	color: #000;
}

.dbfi-srm .srm-tab[aria-selected="true"] {
	background: #000;
	color: #fff;
}

.dbfi-srm .srm-panel {
	outline: none;
}

/* ------------------------------------------------------------------ Blocs */

.dbfi-srm .srm-bloc {
	border: 1px solid var(--srm-bord);
	border-radius: 16px;
	padding: 24px;
	background: #fff;
	margin: 0 0 20px;
}

.dbfi-srm .srm-bloc-soft {
	background: var(--srm-soft);
	border-color: transparent;
}

.dbfi-srm .srm-bloc-noir {
	background: #000;
	color: #fff;
	border-color: #000;
}

.dbfi-srm .srm-bloc-noir a {
	color: var(--srm-lime);
}

.dbfi-srm .srm-kicker {
	color: var(--srm-lime-d);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 11px;
	margin: 0 0 10px;
}

.dbfi-srm .srm-bloc-noir .srm-kicker {
	color: var(--srm-lime);
}

.dbfi-srm h3.srm-h {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	margin: 0 0 6px;
	color: inherit;
}

.dbfi-srm h4.srm-h4 {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 10px;
	color: inherit;
}

.dbfi-srm .srm-sous {
	font-size: 14px;
	color: var(--srm-gris);
	margin: 0 0 14px;
}

.dbfi-srm .srm-bloc-noir .srm-sous {
	color: #cfcfcf;
}

.dbfi-srm .srm-lead {
	font-size: 18px;
	margin: 0 0 16px;
}

/* ------------------------------------------------------------------ Champs */

.dbfi-srm .srm-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 18px;
}

.dbfi-srm .srm-label {
	font-weight: 800;
	font-size: 15px;
}

.dbfi-srm .srm-select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	max-width: 520px;
	font: inherit;
	font-weight: 700;
	color: #000;
	background: #fff;
	border: 2px solid #000;
	border-radius: 10px;
	padding: 13px 16px;
	cursor: pointer;
}

.dbfi-srm .srm-select:focus {
	outline: 3px solid var(--srm-lime);
	outline-offset: 2px;
}

/* ------------------------------------------------------------- Puces choix */

.dbfi-srm .srm-choix {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
	border: 0;
}

.dbfi-srm .srm-chip {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 1 auto;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #000;
	background: #fff;
	border: 1px solid var(--srm-bord);
	border-radius: 999px;
	padding: 9px 16px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.dbfi-srm .srm-chip:hover {
	border-color: #000;
}

.dbfi-srm .srm-chip[aria-pressed="true"] {
	background: var(--srm-lime);
	border-color: var(--srm-lime);
	color: #000;
}

.dbfi-srm .srm-chip[disabled] {
	opacity: .4;
	cursor: not-allowed;
}

/* --------------------------------------------------------------- Reponses */

.dbfi-srm .srm-reponses {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0 0;
}

.dbfi-srm .srm-reponse {
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-align: left;
	font: inherit;
	background: #fff;
	border: 1px solid var(--srm-bord);
	border-radius: 12px;
	padding: 16px 18px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.dbfi-srm .srm-reponse:hover {
	border-color: #000;
}

.dbfi-srm .srm-reponse[aria-pressed="true"] {
	border: 2px solid var(--srm-lime);
	box-shadow: 0 6px 20px rgba(179, 188, 0, .18);
}

.dbfi-srm .srm-reponse-l {
	font-weight: 800;
	font-size: 15px;
}

.dbfi-srm .srm-reponse-d {
	font-size: 13px;
	color: var(--srm-gris);
}

/* ------------------------------------------------------------------ Points */

.dbfi-srm .srm-points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dbfi-srm .srm-point {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--srm-soft);
	border-left: 4px solid var(--srm-bord);
}

.dbfi-srm .srm-point-ok {
	border-left-color: var(--srm-lime);
}

.dbfi-srm .srm-point-att {
	border-left-color: var(--srm-att);
}

.dbfi-srm .srm-point-risq {
	border-left-color: var(--srm-risq);
}

.dbfi-srm .srm-point-badge {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	white-space: nowrap;
	margin-top: 2px;
}

.dbfi-srm .srm-point-ok .srm-point-badge {
	background: var(--srm-lime);
	color: #000;
}

.dbfi-srm .srm-point-att .srm-point-badge {
	background: var(--srm-att);
	color: #fff;
}

.dbfi-srm .srm-point-risq .srm-point-badge {
	background: var(--srm-risq);
	color: #fff;
}

.dbfi-srm .srm-point-txt {
	flex: 1 1 auto;
	min-width: 0;
}

.dbfi-srm .srm-point-t {
	font-weight: 800;
	font-size: 15px;
	display: block;
	margin-bottom: 2px;
}

.dbfi-srm .srm-point-d {
	font-size: 14px;
	color: #333;
	display: block;
}

/* ------------------------------------------------------------------ Jauges */

.dbfi-srm .srm-jauges {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dbfi-srm .srm-jauge {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.dbfi-srm .srm-jauge-head {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
}

.dbfi-srm .srm-jauge-val {
	font-size: 13px;
	color: var(--srm-gris);
	font-weight: 800;
	white-space: nowrap;
}

.dbfi-srm .srm-bloc-noir .srm-jauge-val {
	color: #cfcfcf;
}

.dbfi-srm .srm-jauge-bar {
	display: flex;
	flex-direction: row;
	gap: 5px;
}

.dbfi-srm .srm-jauge-seg {
	flex: 1 1 0;
	height: 9px;
	border-radius: 999px;
	background: #e6e6de;
}

.dbfi-srm .srm-bloc-noir .srm-jauge-seg {
	background: #2a2a2a;
}

.dbfi-srm .srm-jauge-seg.on {
	background: var(--srm-lime);
}

.dbfi-srm .srm-jauge-seg.up {
	background: var(--srm-lime-d);
}

/* --------------------------------------------------------------- Colonnes */

.dbfi-srm .srm-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: stretch;
}

.dbfi-srm .srm-col {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.dbfi-srm .srm-col-2 {
	flex: 1 1 420px;
	min-width: 0;
}

/* ------------------------------------------------------------- Comparateur */

.dbfi-srm .srm-cmp-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.dbfi-srm .srm-cmp {
	display: flex;
	flex-direction: column;
	min-width: 100%;
	border: 1px solid var(--srm-bord);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

/* Largeur plancher : libelle 132px + 230px par regime compare.
   En dessous, le conteneur .srm-cmp-scroll defile horizontalement. */
.dbfi-srm .srm-cmp-1 {
	min-width: 362px;
}

.dbfi-srm .srm-cmp-2 {
	min-width: 592px;
}

.dbfi-srm .srm-cmp-3 {
	min-width: 822px;
}

.dbfi-srm .srm-cmp-line {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border-top: 1px solid var(--srm-bord);
}

.dbfi-srm .srm-cmp-line:first-child {
	border-top: 0;
}

.dbfi-srm .srm-cmp-lab {
	flex: 0 0 132px;
	min-width: 132px;
	padding: 15px 14px;
	background: var(--srm-soft);
	border-right: 1px solid var(--srm-bord);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--srm-gris);
}

.dbfi-srm .srm-cmp-cell {
	flex: 1 0 230px;
	min-width: 230px;
	padding: 15px 16px;
	border-left: 1px solid var(--srm-bord);
	font-size: 14px;
}

.dbfi-srm .srm-cmp-cell:first-of-type {
	border-left: 0;
}

.dbfi-srm .srm-cmp-line-head .srm-cmp-lab,
.dbfi-srm .srm-cmp-line-head .srm-cmp-cell {
	background: #000;
	color: #fff;
	border-color: #2a2a2a;
}

.dbfi-srm .srm-cmp-nom {
	font-weight: 800;
	font-size: 16px;
	display: block;
}

.dbfi-srm .srm-cmp-fam {
	font-size: 12px;
	color: var(--srm-lime);
	display: block;
	margin-top: 3px;
}

.dbfi-srm .srm-cmp-syn {
	display: block;
	margin-bottom: 9px;
}

.dbfi-srm .srm-cmp-mini {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.dbfi-srm .srm-cmp-mini li {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 8px;
	font-size: 13.5px;
}

.dbfi-srm .srm-dot {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-top: 6px;
	background: var(--srm-bord);
}

.dbfi-srm .srm-dot-ok {
	background: var(--srm-lime);
}

.dbfi-srm .srm-dot-att {
	background: var(--srm-att);
}

.dbfi-srm .srm-dot-risq {
	background: var(--srm-risq);
}

/* -------------------------------------------------------------- Resultats */

.dbfi-srm .srm-reco {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dbfi-srm .srm-reco-rang {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #171717;
	color: #fff;
}

.dbfi-srm .srm-reco-rang.top {
	background: var(--srm-lime);
	color: #000;
}

.dbfi-srm .srm-reco-n {
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 13px;
	color: var(--srm-lime);
	width: 26px;
}

.dbfi-srm .srm-reco-rang.top .srm-reco-n {
	color: #000;
}

.dbfi-srm .srm-reco-nom {
	flex: 1 1 auto;
	font-weight: 800;
	font-size: 15px;
	min-width: 0;
}

.dbfi-srm .srm-reco-score {
	flex: 0 0 90px;
	display: flex;
	flex-direction: row;
	gap: 3px;
}

.dbfi-srm .srm-reco-rang .srm-reco-seg {
	flex: 1 1 0;
	height: 8px;
	border-radius: 999px;
	background: #3a3a3a;
}

.dbfi-srm .srm-reco-rang .srm-reco-seg.on {
	background: var(--srm-lime);
}

.dbfi-srm .srm-reco-rang.top .srm-reco-seg {
	background: rgba(0, 0, 0, .2);
}

.dbfi-srm .srm-reco-rang.top .srm-reco-seg.on {
	background: #000;
}

.dbfi-srm .srm-alertes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dbfi-srm .srm-alerte {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: flex-start;
	font-size: 14.5px;
}

.dbfi-srm .srm-alerte .srm-dot {
	background: var(--srm-att);
	margin-top: 7px;
}

/* ------------------------------------------------------------------ Liens */

.dbfi-srm .srm-liens {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dbfi-srm .srm-lien {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	font-size: 13.5px;
	font-weight: 700;
	color: #000;
	background: #fff;
	border: 1px solid var(--srm-bord);
	border-radius: 999px;
	padding: 8px 15px;
	text-decoration: none;
	transition: border-color .15s ease;
}

.dbfi-srm .srm-lien:hover {
	border-color: var(--srm-lime);
	text-decoration: none;
}

.dbfi-srm .srm-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--srm-lime);
	color: #000;
	font-weight: 800;
	font-size: 16px;
	padding: 14px 28px;
	border-radius: 8px;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}

.dbfi-srm .srm-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(179, 188, 0, .32);
	text-decoration: none;
	color: #000;
}

.dbfi-srm .srm-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #000;
	font-family: inherit;
	font-weight: 800;
	font-size: 14px;
	padding: 11px 20px;
	border-radius: 8px;
	border: 2px solid #000;
	cursor: pointer;
}

.dbfi-srm .srm-btn-ghost:hover {
	background: #000;
	color: #fff;
}

.dbfi-srm .srm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 6px;
}

/* -------------------------------------------------------------- Progression */

.dbfi-srm .srm-progress {
	display: flex;
	flex-direction: row;
	gap: 5px;
	margin: 0 0 18px;
}

.dbfi-srm .srm-progress-seg {
	flex: 1 1 0;
	height: 5px;
	border-radius: 999px;
	background: #e6e6de;
}

.dbfi-srm .srm-progress-seg.on {
	background: var(--srm-lime);
}

.dbfi-srm .srm-etape {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--srm-gris);
	margin: 0 0 8px;
}

/* --------------------------------------------------------------- Mentions */

.dbfi-srm .srm-mentions {
	font-size: 12.5px;
	color: var(--srm-gris);
	line-height: 1.55;
	margin: 4px 0 0;
}

.dbfi-srm .srm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ Mobile */

@media (max-width: 640px) {

	.dbfi-srm .dbfi-srm-titre {
		font-size: 24px;
	}

	.dbfi-srm h3.srm-h {
		font-size: 19px;
	}

	.dbfi-srm .srm-bloc {
		padding: 18px;
	}

	.dbfi-srm .srm-tab {
		flex: 1 1 45%;
		font-size: 14px;
		padding: 11px 8px;
	}

	.dbfi-srm .srm-point {
		flex-direction: column;
		gap: 6px;
	}

	.dbfi-srm .srm-point-badge {
		margin-top: 0;
	}

	.dbfi-srm .srm-cmp-lab {
		flex: 0 0 96px;
		min-width: 96px;
		padding: 14px 10px;
		font-size: 10px;
	}

	.dbfi-srm .srm-cmp-cell {
		flex: 1 0 210px;
		min-width: 210px;
		padding: 14px 12px;
	}

	.dbfi-srm .srm-cmp-1 {
		min-width: 306px;
	}

	.dbfi-srm .srm-cmp-2 {
		min-width: 516px;
	}

	.dbfi-srm .srm-cmp-3 {
		min-width: 726px;
	}
}
