/*!
 * POC — Questions fréquentes
 * Version: 1.0.0
 * Thème cible : Modins (Gavias).
 *
 * Règles tenues : racine confinée, min-width: 0 sur tous les
 * descendants, aucune unité vw, aucune marge négative.
 */

/* =====================================================================
   1. VARIABLES
   ===================================================================== */
.poc-fq {
	--poc-fq-or: #a21a18;
	--poc-fq-or-clair: #f38c8b;
	--poc-fq-encre: #4e4e4c;
	--poc-fq-gris: #76766f;
	--poc-fq-creme: #fbf3f3;
	--poc-fq-filet: #f6e1e1;
	--poc-fq-blanc: #ffffff;
	--poc-fq-sombre: #ffffff;

	--poc-fq-gap: 10px;
	--poc-fq-pad: 20px;
	--poc-fq-radius: 14px;

	--poc-fq-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =====================================================================
   2. GARDES — thème Modins
   ===================================================================== */
.poc-fq,
.poc-fq * {
	box-sizing: border-box;
	min-width: 0;
}

.poc-fq [hidden] {
	display: none !important;
}

.poc-fq :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li) {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
}

.poc-fq button {
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	border-radius: 0;
	position: static;
	z-index: auto;
	box-shadow: none;
	text-transform: none;
	text-align: left;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.poc-fq button:hover,
.poc-fq button:focus {
	opacity: 1;
	/*
	 * Modins colore ses boutons au survol, en `!important`. Sans la même
	 * arme, le libellé passait en blanc sur fond clair et disparaissait.
	 * `inherit` fait reprendre au bouton la couleur de son bloc, donc
	 * l'anthracite en clair et le blanc sur les designs sombres.
	 */
	color: inherit !important;
	box-shadow: none;
	background: none;
}

.poc-fq .poc-fq__q-txt,
.poc-fq .poc-fq__r,
.poc-fq .poc-fq__appel-titre {
	text-transform: none;
}

.poc-fq svg {
	height: auto;
	vertical-align: middle;
}

/* =====================================================================
   3. RACINE
   ===================================================================== */
.poc-fq {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	color: var(--poc-fq-encre);
}

.poc-fq .poc-fq__liste {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--poc-fq-gap);
	align-content: start;
	min-width: 0;
}

/*
 * Deux colonnes : les questions coulent en colonnes, sans jamais couper
 * une carte entre les deux.
 */
.poc-fq--deux .poc-fq__liste {
	display: block;
	column-count: 2;
	column-gap: calc(var(--poc-fq-gap) * 1.6);
}

.poc-fq--deux .poc-fq__item {
	break-inside: avoid;
	margin-bottom: var(--poc-fq-gap);
}

/* =====================================================================
   4. BARRE D'OUTILS
   ===================================================================== */
.poc-fq__barre-outils {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 18px;
	min-width: 0;
}

.poc-fq .poc-fq__champ {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 1 320px;
	min-width: 0;
	max-width: 100%;
	padding: 0 12px;
	border: 1.5px solid var(--poc-fq-filet);
	border-radius: 999px;
	background: var(--poc-fq-blanc);
	transition: border-color 200ms var(--poc-fq-ease), box-shadow 200ms var(--poc-fq-ease);
}

.poc-fq .poc-fq__champ:focus-within {
	border-color: var(--poc-fq-or);
	box-shadow: 0 0 0 3px rgba(162, 26, 24, 0.16);
}

.poc-fq .poc-fq__champ-ico {
	display: inline-flex;
	flex: 0 0 auto;
	margin-right: 9px !important;
	color: var(--poc-fq-gris);
}

.poc-fq .poc-fq__champ-ico svg {
	width: 17px;
	height: 17px;
}

.poc-fq .poc-fq__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	padding: 11px 0;
	border: 0;
	background: none;
	color: var(--poc-fq-encre);
	font-family: inherit;
	/* 16 px évite le zoom automatique d'iOS à la mise au point. */
	font-size: 16px;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
}

.poc-fq .poc-fq__input:focus {
	outline: none;
}

.poc-fq .poc-fq__input::-webkit-search-cancel-button {
	display: none;
}

.poc-fq .poc-fq__vider {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	margin-left: 6px !important;
	border-radius: 50%;
	color: var(--poc-fq-gris);
	transition: background 180ms var(--poc-fq-ease);
}

.poc-fq .poc-fq__vider svg {
	width: 14px;
	height: 14px;
}

.poc-fq .poc-fq__vider:hover,
.poc-fq .poc-fq__vider:focus-visible {
	background: var(--poc-fq-creme);
	color: var(--poc-fq-encre);
}

/* --- Onglets par thème --- */
.poc-fq__onglets {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}

.poc-fq .poc-fq__onglet {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 8px 15px;
	border: 1.5px solid var(--poc-fq-filet);
	border-radius: 999px;
	background: var(--poc-fq-blanc);
	font-size: 13px;
	font-weight: 700;
	overflow-wrap: break-word;
	transition: background 200ms var(--poc-fq-ease), border-color 200ms var(--poc-fq-ease);
}

.poc-fq .poc-fq__onglet:hover,
.poc-fq .poc-fq__onglet:focus-visible {
	border-color: var(--poc-fq-or);
	color: var(--poc-fq-encre);
}

.poc-fq--d-ardoise .poc-fq__onglet:hover {
	color: var(--poc-fq-encre);
}

.poc-fq .poc-fq__onglet.is-active {
	background: linear-gradient(135deg, var(--poc-fq-or-clair), var(--poc-fq-or));
	border-color: transparent;
	color: var(--poc-fq-encre);
}

.poc-fq .poc-fq__onglet:focus-visible,
.poc-fq .poc-fq__q-bouton:focus-visible {
	outline: 2px solid var(--poc-fq-or);
	outline-offset: 3px;
}

/* --- Menu déroulant, sur mobile seulement --- */
.poc-fq .poc-fq__deroulant {
	position: relative;
	display: none;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.poc-fq .poc-fq__deroulant-label {
	position: absolute;
	left: 16px;
	top: 7px;
	z-index: 2;
	color: var(--poc-fq-gris);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
}

.poc-fq .poc-fq__select {
	width: 100%;
	min-width: 0;
	padding: 24px 44px 10px 16px;
	border: 1.5px solid var(--poc-fq-filet);
	border-radius: 14px;
	background: var(--poc-fq-blanc);
	color: var(--poc-fq-encre);
	font-family: inherit;
	/* 16 px évite le zoom automatique d'iOS à l'ouverture. */
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.poc-fq .poc-fq__select:focus-visible {
	outline: 2px solid var(--poc-fq-or);
	outline-offset: 2px;
}

.poc-fq .poc-fq__select-chevron {
	position: absolute;
	right: 15px;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	margin-top: -9px;
	color: var(--poc-fq-or);
	pointer-events: none;
}

.poc-fq .poc-fq__select-chevron svg {
	width: 18px;
	height: 18px;
}

/* =====================================================================
   5. GROUPES
   ===================================================================== */
.poc-fq__groupe + .poc-fq__groupe {
	margin-top: 26px;
}

.poc-fq .poc-fq__groupe-titre {
	margin-bottom: 12px;
	color: var(--poc-fq-or);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

/* =====================================================================
   6. LA QUESTION
   ===================================================================== */
.poc-fq .poc-fq__item {
	min-width: 0;
	max-width: 100%;
	border: 1.5px solid transparent;
	border-radius: var(--poc-fq-radius);
	background: var(--poc-fq-creme);
	transition: background 240ms var(--poc-fq-ease),
		border-color 240ms var(--poc-fq-ease),
		box-shadow 240ms var(--poc-fq-ease);
}

.poc-fq .poc-fq__q {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

.poc-fq .poc-fq__q-bouton {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	padding: var(--poc-fq-pad);
	color: inherit;
}

.poc-fq .poc-fq__q-txt {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: break-word;
}

.poc-fq .poc-fq__q-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	flex: 0 0 auto;
	margin-right: 12px !important;
	border-radius: 50%;
	background: var(--poc-fq-blanc);
	color: var(--poc-fq-or);
	font-size: 13px;
}

.poc-fq .poc-fq__q-ico i,
.poc-fq .poc-fq__q-ico svg {
	line-height: 1 !important;
	display: block;
	font-size: 0.82em;
}

.poc-fq .poc-fq__q-ico svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.poc-fq .poc-fq__num {
	flex: 0 0 auto;
	margin-right: 12px !important;
	color: var(--poc-fq-or);
	font-size: 15px;
	font-weight: 800;
	opacity: 0.7;
}

/* --- La marque d'ouverture --- */
.poc-fq .poc-fq__marque {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	margin-left: 14px !important;
	color: var(--poc-fq-or);
}

.poc-fq .poc-fq__marque svg {
	width: 19px;
	height: 19px;
	transition: transform 300ms var(--poc-fq-ease);
}

.poc-fq .poc-fq__item.is-ouvert .poc-fq__marque svg {
	transform: rotate(180deg);
}

/* Plus qui devient moins : la barre verticale se rétracte. */
.poc-fq .poc-fq__barre {
	position: absolute;
	background: currentColor;
	border-radius: 2px;
	transition: transform 300ms var(--poc-fq-ease), opacity 240ms var(--poc-fq-ease);
}

.poc-fq .poc-fq__barre--h {
	width: 15px;
	height: 2.5px;
}

.poc-fq .poc-fq__barre--v {
	width: 2.5px;
	height: 15px;
}

.poc-fq .poc-fq__item.is-ouvert .poc-fq__barre--v {
	transform: scaleY(0);
	opacity: 0;
}

/* =====================================================================
   7. LA RÉPONSE
   ===================================================================== */
.poc-fq .poc-fq__panneau {
	min-width: 0;
	animation: poc-fq-deplie 280ms var(--poc-fq-ease);
}

@keyframes poc-fq-deplie {
	from {
		opacity: 0;
		transform: translate3d(0, -6px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.poc-fq .poc-fq__r {
	padding: 0 var(--poc-fq-pad) var(--poc-fq-pad);
	color: var(--poc-fq-gris);
	font-size: 14.5px;
	line-height: 1.68;
	overflow-wrap: break-word;
	text-wrap: pretty;
}

.poc-fq .poc-fq__r p + p {
	margin-top: 10px;
}

.poc-fq .poc-fq__r a {
	color: var(--poc-fq-or);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.poc-fq .poc-fq__r ul,
.poc-fq .poc-fq__r ol {
	margin: 10px 0 0 18px;
	list-style: revert;
}

.poc-fq .poc-fq__r li + li {
	margin-top: 4px;
}

.poc-fq .poc-fq__r strong {
	color: var(--poc-fq-encre);
}

/* =====================================================================
   8. LES HUIT DESIGNS
   ===================================================================== */
.poc-fq--d-blanc .poc-fq__item {
	background: var(--poc-fq-blanc);
	border-color: var(--poc-fq-filet);
}

.poc-fq--d-blanc .poc-fq__item:hover,
.poc-fq--d-blanc .poc-fq__item.is-ouvert {
	border-color: var(--poc-fq-or);
}

.poc-fq--d-blanc .poc-fq__q-ico {
	background: var(--poc-fq-creme);
}

/* Ardoise : couleur posée explicitement, Modins colore ses titres. */
.poc-fq--d-ardoise .poc-fq__item {
	background: linear-gradient(160deg, #4b4b47, #30302d);
}

.poc-fq--d-ardoise .poc-fq__q-txt {
	color: var(--poc-fq-sombre);
}

.poc-fq--d-ardoise .poc-fq__r {
	color: rgba(255, 255, 255, 0.76);
}

.poc-fq--d-ardoise .poc-fq__r strong {
	color: #fff;
}

.poc-fq--d-ardoise .poc-fq__r a {
	color: var(--poc-fq-or-clair);
}

.poc-fq--d-ardoise .poc-fq__marque,
.poc-fq--d-ardoise .poc-fq__num {
	color: var(--poc-fq-or-clair);
}

.poc-fq--d-ardoise .poc-fq__q-ico {
	background: rgba(243, 140, 139, 0.14);
	color: var(--poc-fq-or-clair);
}

.poc-fq--d-contour .poc-fq__item {
	background: transparent;
	border-color: var(--poc-fq-filet);
}

.poc-fq--d-contour .poc-fq__item.is-ouvert {
	border-color: var(--poc-fq-or);
	background: var(--poc-fq-creme);
}

/* Liseré rouge à gauche */
.poc-fq--d-lisere .poc-fq__item {
	position: relative;
	background: var(--poc-fq-blanc);
	border-color: var(--poc-fq-filet);
	overflow: hidden;
}

.poc-fq--d-lisere .poc-fq__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--poc-fq-filet);
	transition: background 260ms var(--poc-fq-ease);
}

.poc-fq--d-lisere .poc-fq__item.is-ouvert::before {
	background: linear-gradient(180deg, var(--poc-fq-or-clair), var(--poc-fq-or));
}

/* Filet séparateur : pas de cadre, un trait entre les questions */
.poc-fq--d-separe .poc-fq__item {
	background: none;
	border-color: transparent;
	border-radius: 0;
	border-bottom: 1px solid var(--poc-fq-filet);
}

.poc-fq--d-separe .poc-fq__q-bouton,
.poc-fq--d-separe .poc-fq__r {
	padding-left: 2px;
	padding-right: 2px;
}

.poc-fq--d-separe .poc-fq__q-ico {
	background: var(--poc-fq-creme);
}

.poc-fq--d-numerote .poc-fq__item {
	background: var(--poc-fq-blanc);
	border-color: var(--poc-fq-filet);
}

/* Cartes détachées */
.poc-fq--d-ombre .poc-fq__item {
	background: var(--poc-fq-blanc);
	border-color: transparent;
	box-shadow: 0 14px 34px -22px rgba(78, 78, 76, 0.5);
}

.poc-fq--d-ombre .poc-fq__item.is-ouvert {
	box-shadow: 0 22px 46px -24px rgba(78, 78, 76, 0.55);
}

/* =====================================================================
   9. MESSAGE VIDE ET APPEL
   ===================================================================== */
.poc-fq .poc-fq__vide {
	margin-top: 14px;
	padding: 16px 18px;
	border-radius: var(--poc-fq-radius);
	background: var(--poc-fq-creme);
	color: var(--poc-fq-gris);
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: break-word;
}

.poc-fq .poc-fq__appel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 24px;
	padding: 22px 26px;
	border-radius: calc(var(--poc-fq-radius) + 4px);
	background: linear-gradient(160deg, #4b4b47, #30302d);
	min-width: 0;
}

.poc-fq .poc-fq__appel-corps {
	flex: 1 1 240px;
	min-width: 0;
}

.poc-fq .poc-fq__appel-titre {
	color: var(--poc-fq-sombre);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 5px;
	overflow-wrap: break-word;
}

.poc-fq .poc-fq__appel-txt {
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: break-word;
}

.poc-fq .poc-fq__appel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	max-width: 100%;
	padding: 14px 24px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--poc-fq-or-clair), var(--poc-fq-or));
	color: var(--poc-fq-encre);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	/* `break-word` et non `anywhere` : un libellé de bouton ne doit jamais
	   se couper en plein mot. */
	overflow-wrap: break-word;
	box-shadow: 0 12px 26px -14px rgba(162, 26, 24, 0.9);
	transition: transform 220ms var(--poc-fq-ease);
}

.poc-fq .poc-fq__appel-btn:hover,
.poc-fq .poc-fq__appel-btn:focus-visible {
	transform: translateY(-2px);
}

.poc-fq .poc-fq__appel-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1em;
	height: 1.1em;
	flex: 0 0 auto;
	margin-right: 10px !important;
}

.poc-fq .poc-fq__appel-ico i,
.poc-fq .poc-fq__appel-ico svg {
	line-height: 1 !important;
	display: block;
}

.poc-fq .poc-fq__appel-ico svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* =====================================================================
   10. RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
	/* Deux colonnes de questions ne tiennent plus lisiblement. */
	.poc-fq--deux .poc-fq__liste {
		column-count: 1;
	}
}

@media (max-width: 767px) {
	.poc-fq {
		--poc-fq-pad: 15px;
	}

	.poc-fq .poc-fq__q-txt {
		font-size: 15px;
	}

	.poc-fq__barre-outils {
		flex-direction: column;
		align-items: stretch;
	}

	/*
	 * ONGLETS SUR MOBILE — trois réglages.
	 *
	 * Cinq thèmes tiennent rarement sur une ligne sous 767 px : par
	 * défaut ils s'empilaient sur trois rangées, ce qui repoussait les
	 * questions très bas.
	 */

	/* 1. Une seule ligne qui défile. Le dégradé au bord droit indique
	      qu'il reste des thèmes à découvrir. */
	.poc-fq--om-defile .poc-fq__onglets {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding-bottom: 2px;
		-webkit-mask-image: linear-gradient(
			90deg,
			#000 0,
			#000 calc(100% - 34px),
			transparent 100%
		);
		mask-image: linear-gradient(
			90deg,
			#000 0,
			#000 calc(100% - 34px),
			transparent 100%
		);
	}

	.poc-fq--om-defile .poc-fq__onglets::-webkit-scrollbar {
		display: none;
	}

	.poc-fq--om-defile .poc-fq__onglet {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	/* Le dernier onglet doit pouvoir se dégager du dégradé. */
	.poc-fq--om-defile .poc-fq__onglet:last-child {
		margin-right: 26px !important;
	}

	/* 2. Menu déroulant : il remplace les pastilles. */
	.poc-fq--om-liste .poc-fq__deroulant {
		display: flex;
	}

	.poc-fq--om-liste .poc-fq__onglets {
		display: none;
	}

	/*
	 * En colonne, l'axe principal devient vertical : une base en pixels
	 * se lirait comme une hauteur et étirerait le champ.
	 */
	.poc-fq .poc-fq__champ {
		flex: 0 0 auto;
	}

	.poc-fq .poc-fq__appel {
		padding: 18px;
	}

	.poc-fq .poc-fq__appel-btn {
		width: 100%;
	}
}

/* =====================================================================
   11. ACCESSIBILITÉ
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	.poc-fq *,
	.poc-fq *::before,
	.poc-fq *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.poc-fq .poc-fq__appel-btn {
		transform: none !important;
	}
}
