/* ================================
 *          PAGE  A PROPOS
 * ================================ */

.risquecv-page-a-propos h1.about-heading,
.risquecv-page-a-propos h2.about-heading {
	padding: 40px 0 30px;

	/* padding pour debug scroll */
	margin: 0;
	font-weight: 650
}

.risquecv-page-a-propos {
	overflow-x: visible;
}

.sous-texte-petit {
	font-style: normal;
	font-weight: 300;
	font-size: 0.9em;
}

.about-heading-intro {
	font-size: 38px;
}

.about-section-heading {
	font-size: 40px;
}

.about-heading-inline {
	display: inline;
}

.text-left,
.about-table .text-left {
	text-align: left;
}

.medium-font-size {
	font-size: 20px;
}

.brand-mark {
	background-color: transparent;
}

.brand-blue {
	color: var(--bleu-logo-risquecv, #1b2b7f);
}

.brand-red {
	color: var(--rouge-logo-risquecv, #a41835);
}

.nomarginP div p:not(:last-of-type) {
	margin-bottom: 10px;
}

.nomarginP div p:last-of-type {
	margin-bottom: 0;
}

/* Divers */
#photocontact {
	display: flex;
	flex-wrap: nowrap;
	gap: 2em;
	margin-top: 0.75em;
	margin-bottom: 29.75px;
}

#photocontact>div {
	flex: 1 1 0;
	min-width: 0;
}

#photocontact>div>div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-align: center;
}

#photocontact figure {
	margin: 0;
}

#photocontact img {
	width: 230px;
	height: 230px;
	object-fit: cover;
}

#photocontact h3 {
	font-weight: 600;
}

#photocontact h3,
#photocontact p {
	margin: 0;
}

.valeurs,
.valeurs>div>div {
	gap: 20px
}

/* Coches */
.checkmark {
	width: 65px;
	height: 65px;
	stroke: #407f58;
	stroke-width: 1.7;
	fill: transparent;
}

@keyframes drawCheckmark {
	to {
		stroke-dashoffset: 0;
	}
}

.checkmark-path {
	stroke-dasharray: 150;
	stroke-dashoffset: 150;
	animation: drawCheckmark 2s ease 0.1s forwards;
}

/* Tableaux */
.about-table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.tableauScores td:last-child {
	font-size: 25px;
	font-family: 'Montserrat Variable', sans-serif;
	font-size-adjust: from-font;
	padding: 0;
	transition: 1s ease;
}

.tableauScores td:last-child:has(svg:not(.hourglass-svg)) {
	background: #f4fff8
}

.about-table table {
	border-collapse: separate;
	border-spacing: 0;
	border: none;
	width: 100%;
}

.about-table td {
	border: 0;
	padding: 10px;
	background: #fff;
	border-top: 1px solid;
	border-left: 1px solid;
	text-align: center;

	/* Centrage par défaut */
}

.about-table tr td:last-child {
	border-right: 1px solid;
}

.about-table tr:last-child td {
	border-bottom: 1px solid;
}

.about-table thead th:not(th:last-child) {
	border-right: 0
}

.about-table thead th:first-child {
	border-top-left-radius: 10px;
}

.about-table thead th:last-child {
	border-top-right-radius: 10px;
	border-right: 1px solid;
}

.about-table tr:last-child td:first-child {
	border-bottom-left-radius: 10px;
}

.about-table tr:last-child td:last-child {
	border-bottom-right-radius: 10px;
}

.about-table thead th {
	text-align: center;
	background: #f3f7f8;
	font-size: 1.15em;
	font-family: 'Montserrat Variable', sans-serif;
	font-size-adjust: from-font;
	border-top: 1px solid;
	border-left: 1px solid;
	border-bottom: none;
	padding: 0.5em;
}

.about-table code strong,
.about-source-tag {
	font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size-adjust: from-font;
	background: #f7fbfc;
	color: #2c484f;
	padding: 1px 5px;
	font-weight: 400;
	border-radius: 6px;
	font-size: 0.9em;
	outline: 1px solid #d6e4e5;
	display: inline-flex;
}

.about-table code em {
	font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size-adjust: from-font;
	background: #e6eff1;
	color: #1c4854;
	padding: 1px 5px;
	font-weight: 400;
	border-radius: 6px;
	outline: 1px solid #e6eff1;
}

.about-table-benefits table {
	table-layout: fixed;
	min-width: min(100%, 46rem);
}

.about-table-benefits th:first-child,
.about-table-benefits td:first-child {
	width: 27%;
}

.about-table-benefits th:nth-child(2),
.about-table-benefits td:nth-child(2) {
	width: 38%;
}

.about-table-compact {
	margin-inline: auto;
	width: fit-content;
}

.about-table-compact table {
	min-width: min(100%, 32rem);
	width: auto;
}

/* Classe générique pour animer les éléments */
.animate-on-scroll {
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
	opacity: 1;
	transform: scale(1);
}

/* Cadenas  */

.cadenas {
	display: inline-block;
	vertical-align: text-bottom;
	margin-left: 10px;
}

.cadenas>div {
	display: flex;
}

/* Cadenas stylisé */
.padlock {
	width: 34px;
	height: 27px;
	border: 3px solid var(--texte);
	border-radius: 4px;
	position: relative;
	box-sizing: border-box;
	cursor: pointer;
	background-color: var(--texte);
}

/* Tige centrale */
.padlock::after {
	content: '';
	position: absolute;
	width: 4px;
	height: 9px;
	background: white;
	left: 50%;
	top: 32%;
	transform: translateX(-50%);
}

/* Anse */
.padlock::before {
	content: '';
	position: absolute;
	width: 23px;
	height: 18px;
	border: 4px solid var(--texte);
	border-bottom: 0;
	border-radius: 50% 50% 0 0;
	bottom: 100%;
	left: 2px;
	transition: all 0.15s ease-in-out;
}

/* Hover : translation verticale subtile */
.padlock:hover::before {
	transform: translateY(-1px);
}

/* Ouverture (flip horizontal) */
#lock:checked+.padlock::before {
	transform: scaleX(-1) translateY(-1px);
	left: 78%;
}

.boitedonnee {
	display: flex;
	flex-flow: column wrap;
	gap: 8.5px;
}

.boitedonnee>* {
	margin: 0;
}

.boitedonnee .about-list {
	margin: 5px 0 5px 30px;
}

.boitedonnee code {
	background: #fff;
	outline: 1px solid #cdcddf;
	border-radius: 8px;
	margin: 0 3px;
	padding: 2px 4px;
}

.boiteintro {
	display: flex;
	flex-flow: column wrap;
	gap: 8.5px;
}

.boiteintro>* {
	margin: 0;
}

.home-card.boitedonnee:hover,
.home-card.boitedonnee:focus-within {
	-webkit-transform: none;
	transform: none;
}

.home-card.boiteintro,
.home-card.boitedonnee,
.home-card.about-info-card {
	margin-top: 0
}

.home-card.boiteintro p,
.home-card.boitedonnee p,
.home-card.about-info-card p {
	margin: 0
}

.home-card.boiteintro li,
.home-card.boitedonnee li,
.home-card.about-info-card li {
	font-size: 19px;
}

/* Bento */

.bentoBox {
	display: grid;
	gap: 10px;
	margin: 20px 0;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.bentoItem {
	display: flex;
	white-space: wrap;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background-color: #333;
	color: white;
	padding: 20px;
	min-width: 150px;
	font-weight: 600;
	font-size: 1.3em;
	transition: transform .2s cubic-bezier(0, 0, 0.5, 1);
	text-decoration: none;
	-webkit-user-drag: none;
	animation: fadeIn 1.8s ease;

}

.bentoItem:hover {
	transform: scale(1.02);
	color: white
}

.bentoItem:focus {
	color: white
}

.scroll-container {
	width: 100vw;
	overflow: hidden;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.scroll-content {
	gap: 10px;
	width: max-content;
	display: flex;
}

.scroll-content--animated {
	animation: scroll 100s linear infinite;
}

@keyframes scroll {
	0% {
		transform: translateX(0)
	}

	100% {
		transform: translateX(-50%)
	}
}

/* Disposition */

.bentoItem:nth-child(3) {
	/* recos recentes */
	grid-column: 3 / 4;
	grid-row: 1 / 2;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/Books.webp');
	background-size: cover;
	background-position: center;
	width: 190px;
	height: 100px;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.7);
	line-height: 1.25;
	font-weight: 650;
}

.bentoItem:nth-child(7) {
	/* adapté MG */
	grid-column: 4 / 5;
	grid-row: 1 / 5;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/MG.webp');
	background-size: cover;
	background-position: center;
	width: 250px;
	height: 200px;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.6);
	line-height: 1.25;
	font-weight: 650;
}

.bentoItem:nth-child(4) {
	/* score en direct */
	grid-column: 2 / 3;
	grid-row: 1 / 4;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/03/math.webp');
	background-size: cover;
	background-position: center;
	font-weight: 750;
	text-shadow: #fff 3px 0, #fff 2.8px 1px, #fff 2.4px 1.9px, #fff 1.6px 2.5px, #fff 0.7px 2.9px, #fff -0.3px 3px, #fff -1.2px 2.7px, #fff -2.1px 2.2px, #fff -2.7px 1.4px, #fff -3px 0.4px, #fff -3px -0.6px, #fff -2.6px -1.5px, #fff -2px -2.3px, #fff -1.1px -2.8px, #fff -0.1px -3px, #fff 0.9px -2.9px, #fff 1.7px -2.4px, #fff 2.4px -1.7px, #fff 2.9px -0.8px, 4px 4px 8px rgb(0, 0, 0, 0.49);
	color: #8e0824;
	outline: #e5d7d7 1px solid;
}

.bentoItem:nth-child(2) {
	/* utilisable consult */
	grid-column: 5 / 6;
	grid-row: 1 / 6;
	width: 150px;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/03/Calculez-votre-risque-cardiovasculaire-_3_.webp');
	background-size: cover;
	background-position: center;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.6);
	line-height: 1.25;
	font-weight: 650;
}

.bentoItem:nth-child(1) {
	/* rapide */
	grid-column: 3 / 4;
	grid-row: 2 / 5;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/Rapide.webp');
	background-size: cover;
	background-position: center;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.7);
	line-height: 1.25;
	font-weight: 650;
}

.bentoItem:nth-child(5) {
	/* données de santé */
	grid-column: 2 / 3;
	grid-row: 4 / 7;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/Donnee.webp');
	background-size: cover;
	background-position: center;
	width: 230px;
	height: 100px;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.6);
	line-height: 1.25;
	font-weight: 650;
}

.bentoItem:nth-child(6) {
	/* Cookies */
	grid-column: 4 / 5;
	grid-row: 5 / 8;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/Cookies.webp');
	background-size: cover;
	background-position: center;
	width: 50px;
	height: 80px;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.6);
	line-height: 1.25;
	font-weight: 650;
}

.bentoItem:nth-child(8) {
	/* score le plus adapté */
	grid-column: 1 / 2;
	grid-row: 1 / 9;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/Patient-Cropped.webp');
	background-size: cover;
	background-position: bottom;
	width: 250px;
	height: 160px;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.6);
	line-height: 1.25;
	font-weight: 650;
	justify-content: end;
}

.bentoItem:nth-child(9) {
	/* industrie pharma */
	grid-column: 6 / 7;
	grid-row: 3 / 9;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/Non.webp');
	background-size: cover;
	background-position: center;
	width: 200px;
	height: 130px;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.6);
	line-height: 1.25;
	font-weight: 650;
}

.bentoItem:nth-child(10) {
	/* bénéfices des ttt */
	grid-column: 6 / 7;
	grid-row: 1 / 3;
	background-image: url('https://risquecv.fr/wp-content/uploads/2025/04/Pills.webp');
	background-size: cover;
	background-position: center;
	width: 220px;
	height: 130px;
	text-shadow: -6px 4px 8px rgb(0, 0, 0, 0.85);
	line-height: 1.25;
	font-weight: 650;
}

.pourcentageDynamique {
	font-size: 2.5em;
	font-weight: 850;
}

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

.valeurs figure {
	margin: 0;
}

.valeurs img {
	margin: 0;
	display: block;
	width: 60px;
	height: 60px;
	max-width: none;
	object-fit: cover;
}

.about-organigramme {
	width: 100%;
	height: auto;
	display: block;
	margin: 2rem 0 1rem;
}

/* Couleurs de fond et de texte pour les home-card de la page A Propos */
.val-bleu-ciel {
	--card-bg: #e6f3f4;
	--card-border: #d0e4e6;
	--card-text: #02282b;
	--card-title: #02282b;
}

.val-bleu-gris {
	--card-bg: #e6ecf5;
	--card-border: #d1d9e6;
	--card-text: #1a2c42;
	--card-title: #1a2c42;
}

.val-gris {
	--card-bg: #cbd0e52e;
	--card-border: #ecedf1;
	--card-text: var(--texte);
	--card-title: var(--texte);
}

.val-jaune {
	--card-bg: #fffcea;
	--card-border: #ece8d1;
	--card-text: #3b300a;
	--card-title: #3b300a;
}

.val-beige {
	--card-bg: #fbf6ec;
	--card-border: #ece4d1;
	--card-text: #402f1a;
	--card-title: #402f1a;
}

.val-vert {
	--card-bg: #e9f5e6;
	--card-border: #d1e6ce;
	--card-text: #1c3618;
	--card-title: #1c3618;
}

.val-violet {
	--card-bg: #f0e6f5;
	--card-border: #e6d1e6;
	--card-text: #321c3b;
	--card-title: #321c3b;
}

.tableauScores table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.tableauScores th,
.tableauScores td {
	padding: 10px;
}


.valeurs {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	margin-top: 0.75em;
	margin-bottom: 29.75px;
	padding-bottom: 2.5px;
}

.valeurs>div {
	flex: 1 1 0;
	min-width: 0;
}

.valeurs>div>div {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.valeurs .home-card {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8.5px;
	height: 100%;
	justify-content: center;
	padding: 20px;
	text-align: center;
	margin-top: 0;
	margin-bottom: 10px;
}

.valeurs .home-card>* {
	margin: 0;
}

.valeurs .medium-font-size {
	font-size: 1.25em;
}

.valeurs .about-list {
	margin: 5px 0 5px 30px;
	text-align: left;
}

.risquecv-page-a-propos svg {
	max-width: 100%;
	height: auto;
}

.about-benefits-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 2em;
	margin-top: 0.75em;
	margin-bottom: 29.75px;
}

.about-chart-column,
.about-benefit-copy {
	flex: 1 1 0;
	min-width: 0;
}

#boitelifechart.Aprop {
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding-top: 10px;
	padding-bottom: 15px;
	position: relative;
}

#boitelifechart.Aprop #icontraitementsHR.is-open > .btn-simuler-ttt {
	display: none !important;
}

.Aprop #LifeChartContainer {
	aspect-ratio: 1 / 1;
	height: auto;
	margin: 0 0 0 10px;
	max-width: 100%;
	min-height: 0;
}

.Aprop #LifeChart {
	display: block;
	height: 100% !important;
	width: 100% !important;
}

.about-benefit-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.about-info-card {
	box-sizing: border-box;
	min-height: 329.3px;
}

.about-info-card-content {
	align-items: center;
	display: flex;
	gap: 2em;
}

.about-info-text {
	flex: 1 1 90%;
}

.about-chart-spacer {
	height: 40px;
}

.about-lock-heading {
	margin: 60px 0 30px;
	text-align: center;
}

.notice-orange {
	--card-bg: #fed;
	--card-border: #eae1d7;
	--card-text: #775127;
	--card-title: #ab620e;
}

.risquecv-page-a-propos .biblio-conteneur {
	margin-top: 10px;
	margin-bottom: 50px;
	width: auto;
}

.organigramme-link-conteneur {
	display: flex;
	justify-content: center;
	margin: 2em 0 1em;
}

@media (max-width: 781px) {

	#photocontact,
	.valeurs,
	.about-benefits-grid,
	.about-info-card-content {
		flex-direction: column;
	}

	#photocontact,
	.valeurs,
	.about-benefits-grid {
		gap: 2em;
	}

	.valeurs {
		gap: 29.75px;
		padding-bottom: 0;
	}

	.about-info-card {
		min-height: 483.3px;
	}

	.about-table table {
		min-width: min(52rem, 170vw);
	}

	.about-table-benefits table {
		min-width: min(46rem, 170vw);
	}

	.tableauScores table {
		min-width: min(56rem, 145vw);
	}

	#Recos+.about-table table {
		min-width: min(48rem, 175vw);
		table-layout: auto;
	}

	.about-table-compact table {
		min-width: min(34rem, 145vw);
	}
}

/* Sablier animé pour les scores "Bientôt" */
.cell-bientot {
	white-space: nowrap;
	color: #c36c27;
	font-weight: 600;
	background: #fffaf4 !important;
}

.bientot-hourglass {
	display: inline-block;
	vertical-align: middle;
	width: 22px;
	height: auto;
	margin-left: 6px;
	position: relative;
	top: -1px;
}

.bientot-hourglass svg {
	width: 100%;
	height: auto;
	animation: hourglass-rotation 8s infinite;
}

@keyframes top-clip {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(21px);
	}

	100% {
		transform: translateY(21px);
	}
}

@keyframes bottom-sand-path {
	0% {
		transform: translateY(21px);
	}

	50% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(0);
	}
}

@keyframes bottom-sand-g {
	0% {
		transform: translateY(0);
	}

	85% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-9px);
	}
}

@keyframes hourglass-rotation {
	0% {
		transform: rotateZ(0);
	}

	85% {
		transform: rotateZ(0);
	}

	100% {
		transform: rotateZ(180deg);
	}
}

.bientot-hourglass #top-sand #top-clip-path rect {
	animation: top-clip 8s infinite;
}

.bientot-hourglass #bottom-sand path {
	transform: translateY(21px);
	animation: bottom-sand-path 8s infinite;
}

.bientot-hourglass #bottom-sand g {
	animation: bottom-sand-g 8s infinite;
}
