/**
 * Module TC_FAQIA - Styles CSS
 * Version 1.0.1 - Design moderne et responsive
 * 
 * @author Thierry Taruffi
 */

/* === CONTENEUR PRINCIPAL === */
.TCFAQ_container {
	margin: 20px 0;
	padding: 25px;
	background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.95) 100%);
	border: 1px solid #e0e6ed;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	position: relative;
	overflow: hidden;
}

.TCFAQ_container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #007cba, #00a0dc, #007cba);
	background-size: 200% 100%;
	animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* === TITRE === */
.TCFAQ_title {
	color: #2c3e50;
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 30px 0;
	padding-bottom: 15px;
	border-bottom: 3px solid #007cba;
	position: relative;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.TCFAQ_title::after {
	content: "";
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, #007cba, rgba(0,124,186,0.3));
	border-radius: 2px;
}

/* === ÉLÉMENTS FAQ === */
.TCFAQ_item {
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(0,0,0,0.04);
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 10px rgba(0,0,0,0.03);
	position: relative;
}

.TCFAQ_item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: linear-gradient(135deg, #007cba, #00a0dc);
	transition: width 0.3s ease;
	z-index: 1;
}

.TCFAQ_item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.1);
	border-color: rgba(0,124,186,0.2);
}

.TCFAQ_item:hover::before {
	width: 4px;
}

.TCFAQ_item:last-child {
	margin-bottom: 0;
}

/* === QUESTIONS === */
.TCFAQ_question {
	color: #007cba;
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	padding: 22px 28px;
	cursor: pointer;
	position: relative;
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(0,124,186,0.02) 100%);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-bottom: 1px solid rgba(0,0,0,0.04);
	line-height: 1.4;
	z-index: 2;
}

.TCFAQ_question:hover {
	background: linear-gradient(135deg, rgba(0,124,186,0.06) 0%, rgba(0,124,186,0.02) 100%);
	color: #005a8b;
}

.TCFAQ_question[data-toggle="collapse"] {
	padding-right: 70px;
}

/* === ICÔNES === */
.TCFAQ_icon {
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	background: linear-gradient(135deg, #007cba, #00a0dc);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 16px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 3px 10px rgba(0,124,186,0.3);
	z-index: 3;
}

.TCFAQ_question:hover .TCFAQ_icon {
	background: linear-gradient(135deg, #005a8b, #007cba);
	transform: translateY(-50%) scale(1.15) rotate(90deg);
	box-shadow: 0 5px 15px rgba(0,124,186,0.4);
}

/* === RÉPONSES === */
.TCFAQ_answer {
	color: #4a5568;
	font-size: 16px;
	line-height: 1.7;
	padding: 20px;
	margin: 0;
	background: rgba(255,255,255,0.7);
	position: relative;
	z-index: 2;
}

.TCFAQ_answer p {
	margin: 0;
	padding: 0;
}

.TCFAQ_answer.tc-collapse {
	display: none;
}

.TCFAQ_answer.tc-collapse.tc-show {
	display: block;
	animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
	from { 
		opacity: 0; 
		transform: translateY(-15px);
		max-height: 0;
		padding-bottom: 0;
	}
	to { 
		opacity: 1; 
		transform: translateY(0);
		max-height: 300px;
		padding-bottom: 28px;
	}
}

/* === MODE STATIQUE (sans accordéon) === */
.TCFAQ_container:not(.accordion-mode) .TCFAQ_question {
	cursor: default;
	padding-right: 28px;
	border-bottom: none;
}

.TCFAQ_container:not(.accordion-mode) .TCFAQ_icon {
	display: none;
}

.TCFAQ_container:not(.accordion-mode) .TCFAQ_answer {
	display: block !important;
	padding-top: 0;
}

.TCFAQ_container:not(.accordion-mode) .TCFAQ_item:hover::before {
	width: 0;
}

/* === VARIANTES DE COULEURS (pour configuration future) === */
.TCFAQ_container.theme-blue {
	--primary-color: #007cba;
	--primary-hover: #005a8b;
	--primary-light: rgba(0,124,186,0.1);
}

.TCFAQ_container.theme-green {
	--primary-color: #28a745;
	--primary-hover: #1e7e34;
	--primary-light: rgba(40,167,69,0.1);
}

.TCFAQ_container.theme-purple {
	--primary-color: #6f42c1;
	--primary-hover: #5a359a;
	--primary-light: rgba(111,66,193,0.1);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
	.TCFAQ_container { 
		padding: 20px; 
		margin: 15px 0;
	}
	
	.TCFAQ_title { 
		font-size: 24px;
		margin-bottom: 25px;
	}
}

@media (max-width: 768px) {
	.TCFAQ_container { 
		padding: 18px; 
		margin: 12px 0;
		border-radius: 10px;
	}
	
	.TCFAQ_title { 
		font-size: 22px;
		margin-bottom: 20px;
	}
	
	.TCFAQ_question { 
		font-size: 16px;
		padding: 18px 22px;
		line-height: 1.3;
	}
	
	.TCFAQ_question[data-toggle="collapse"] {
		padding-right: 60px;
	}
	
	.TCFAQ_answer { 
		font-size: 15px;
		padding: 0 22px 22px 22px;
		line-height: 1.6;
	}
	
	.TCFAQ_icon {
		right: 22px;
		width: 24px;
		height: 24px;
		font-size: 14px;
	}
	
	.TCFAQ_item {
		margin-bottom: 15px;
		border-radius: 10px;
	}
}

@media (max-width: 480px) {
	.TCFAQ_container { 
		padding: 15px; 
		border-radius: 8px;
		margin: 10px 0;
	}
	
	.TCFAQ_title { 
		font-size: 20px;
		margin-bottom: 18px;
	}
	
	.TCFAQ_question { 
		padding: 16px 18px;
		font-size: 15px;
	}
	
	.TCFAQ_question[data-toggle="collapse"] {
		padding-right: 50px;
	}
	
	.TCFAQ_answer { 
		padding: 0 18px 18px 18px;
		font-size: 14px;
	}
	
	.TCFAQ_icon {
		right: 18px;
		width: 22px;
		height: 22px;
		font-size: 12px;
	}
	
	.TCFAQ_item {
		margin-bottom: 12px;
		border-radius: 8px;
	}
}

/* === ANIMATIONS AVANCÉES === */
@media (prefers-reduced-motion: no-preference) {
	.TCFAQ_item {
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}
	
	.TCFAQ_question {
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}
	
	.TCFAQ_icon {
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.TCFAQ_container::before,
	.TCFAQ_item,
	.TCFAQ_question,
	.TCFAQ_icon,
	.TCFAQ_answer.collapse.show {
		animation: none;
		transition: none;
	}
}

/* === DARK MODE (préparation) === */
@media (prefers-color-scheme: dark) {
	.TCFAQ_container {
		background: linear-gradient(135deg, #2d3748 0%, rgba(45,55,72,0.95) 100%);
		border-color: #4a5568;
		color: #e2e8f0;
	}
	
	.TCFAQ_title {
		color: #e2e8f0;
	}
	
	.TCFAQ_item {
		background: rgba(45,55,72,0.8);
		border-color: rgba(255,255,255,0.1);
	}
	
	.TCFAQ_question {
		color: #63b3ed;
		background: linear-gradient(135deg, rgba(45,55,72,0.9) 0%, rgba(99,179,237,0.05) 100%);
		border-color: rgba(255,255,255,0.05);
	}
	
	.TCFAQ_answer {
		color: #cbd5e0;
		background: rgba(45,55,72,0.6);
	}
}

/* === PRINT STYLES === */
@media print {
	.TCFAQ_container {
		box-shadow: none;
		border: 1px solid #000;
		background: white !important;
	}
	
	.TCFAQ_container::before {
		display: none;
	}
	
	.TCFAQ_item {
		box-shadow: none;
		border: 1px solid #ccc;
		break-inside: avoid;
		page-break-inside: avoid;
	}
	
	.TCFAQ_question {
		cursor: default;
		background: #f8f9fa !important;
	}
	
	.TCFAQ_icon {
		display: none;
	}
	
	.TCFAQ_answer.tc-collapse {
		display: block !important;
	}
}

/* === ACCESSIBILITÉ === */
.TCFAQ_question:focus {
	outline: 2px solid #007cba;
	outline-offset: 2px;
}

.TCFAQ_question:focus-visible {
	outline: 2px solid #007cba;
	outline-offset: 2px;
}

/* Amélioration de la lisibilité */
.TCFAQ_answer {
	word-wrap: break-word;
	hyphens: auto;
}

/* Support des anciennes versions de navigateurs */
.TCFAQ_item {
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.TCFAQ_icon {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}