/*--------------------------------------------------------------
# Utilitaires & Effets Spéciaux
--------------------------------------------------------------*/

/* UTILITAIRES VISUELS */

/* Texte */
.text-primary {
	color: var(--color-primary);
}

.text-secondary {
	color: var(--color-secondary);
}

.text-light {
	color: var(--color-text-light);
}

.text-white {
	color: #FFFFFF;
}

.text-center {
	text-align: center;
}

.text-bold {
	font-weight: 700;
}

.text-uppercase {
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Fonds */
.bg-primary {
	background: var(--color-primary);
	color: #FFFFFF;
}

.bg-light {
	background: var(--color-bg-light);
}

.bg-gradient {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	color: #FFFFFF;
}

/* Padding & Margin */
.p-sm {
	padding: var(--spacing-sm);
}

.p-md {
	padding: var(--spacing-md);
}

.p-lg {
	padding: var(--spacing-lg);
}

.p-xl {
	padding: var(--spacing-xl);
}

.m-sm {
	margin: var(--spacing-sm);
}

.m-md {
	margin: var(--spacing-md);
}

.m-lg {
	margin: var(--spacing-lg);
}

.m-xl {
	margin: var(--spacing-xl);
}

/* Radius */
.radius-sm {
	border-radius: 4px;
}

.radius-md {
	border-radius: 8px;
}

.radius-lg {
	border-radius: 12px;
}

.radius-round {
	border-radius: 50%;
}

/* Shadows */
.shadow-sm {
	box-shadow: var(--shadow-sm);
}

.shadow-md {
	box-shadow: var(--shadow-md);
}

.shadow-lg {
	box-shadow: var(--shadow-lg);
}

.shadow-xl {
	box-shadow: var(--shadow-xl);
}

.glow {
	box-shadow: var(--glow-md);
}

/* Affichage */
.hidden {
	display: none;
}

.visible {
	display: block;
}

.flex {
	display: flex;
}

.grid {
	display: grid;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.space-around {
	display: flex;
	justify-content: space-around;
}

/* EFFETS SPÉCIAUX */

/* Gradient Overlay */
.gradient-overlay {
	position: relative;
	overflow: hidden;
}

.gradient-overlay::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(255, 0, 0, 0.02) 100%);
	pointer-events: none;
}

/* Blur Background */
.blur-bg {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Glow Pulse Effect */
.glow-pulse {
	animation: glow 2s infinite;
}

.pulse {
	animation: pulse 2s infinite;
}

/* Floating Effect */
.float {
	animation: float 3s ease-in-out infinite;
}

.float-slow {
	animation: float 4s ease-in-out infinite;
}

.float-fast {
	animation: float 2s ease-in-out infinite;
}

/* Shimmer Effect */
.shimmer {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 1000px 100%;
	animation: shimmer 2s infinite;
}

/* Rotate Effect */
.rotate-slowly {
	animation: rotate 20s linear infinite;
}

.rotate-fast {
	animation: rotate 2s linear infinite;
}

/* Slide Animations */
.slide-in-left {
	animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.slide-in-right {
	animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.slide-in-up {
	animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.slide-in-down {
	animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Scale Effect */
.scale-up {
	animation: scaleUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.scale-hover {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-hover:hover {
	transform: scale(1.05);
}

/* BORDERS & DIVIDERS */

.border {
	border: 1px solid var(--color-border);
}

.border-primary {
	border: 2px solid var(--color-primary);
}

.border-top {
	border-top: 1px solid var(--color-border);
}

.border-bottom {
	border-bottom: 1px solid var(--color-border);
}

.border-top-thick {
	border-top: 4px solid var(--color-primary);
}

.divider-primary {
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
	border: none;
	margin: 2rem 0;
}

/* LINE EFFECT */
.line-effect {
	position: relative;
	padding-bottom: 1rem;
}

.line-effect::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50%;
	height: 3px;
	background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
	animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER SCALE */
.scale-on-hover {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-on-hover:hover {
	transform: scale(1.08);
}

/* ICON EFFECTS */
.icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #FFFFFF;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-sm);
}

.icon-circle:hover {
	transform: translateY(-4px) rotate(10deg);
	box-shadow: var(--glow-md);
}

.icon-square {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 8px;
	background: var(--color-primary);
	color: #FFFFFF;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-sm);
}

.icon-square:hover {
	transform: translateY(-4px);
	box-shadow: var(--glow-md);
}

/* RIBBON EFFECT */
.ribbon {
	position: relative;
	display: inline-block;
	background: var(--color-primary);
	color: #FFFFFF;
	padding: 0.5rem 1rem;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transform: rotate(-2deg);
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ribbon:hover {
	transform: rotate(2deg);
	box-shadow: var(--glow-md);
}

.ribbon::before {
	content: '';
	position: absolute;
	top: 0;
	left: -10px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 10px 0.7rem 10px;
	border-color: transparent var(--color-primary-dark) transparent transparent;
}

.ribbon::after {
	content: '';
	position: absolute;
	top: 0;
	right: -10px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.7rem 10px 0 10px;
	border-color: var(--color-primary-dark) transparent transparent transparent;
}

/* HOVER LIFT */
.lift-on-hover {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}

.lift-on-hover:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(255, 0, 0, 0.2);
}

/* BORDER ANIMATION */
.border-animate {
	position: relative;
	background: #FFFFFF;
	transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
}

.border-animate::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.border-animate:hover::before {
	opacity: 1;
}

/* TRANSITION OPACITY */
.fade-in {
	animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.fade-in-delayed {
	animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards 0.3s;
}
