/**
 * Padel Kompet — Overrides Divi et styles globaux du thème.
 *
 * Respecte les breakpoints Divi : 981px et 768px.
 */

/* === OVERRIDES HEADER DIVI === */

#main-header {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#main-header .container {
	max-width: 1200px;
}

/* Logo dans le header */
#logo {
	max-height: 50px;
}

/* Navigation principale */
#top-menu li a {
	font-weight: 600;
	font-size: 15px;
	color: #1A1A2E;
	letter-spacing: 0.01em;
}

#top-menu li a:hover,
#top-menu li.current-menu-item a {
	color: #7C5CFC;
}

/* CTA button dans le menu */
.et_pb_button,
.menu-item.pk-cta a {
	background-color: #7C5CFC;
	border-radius: 8px;
	padding: 10px 24px;
	font-weight: 600;
	color: #fff;
	border: none;
	transition: background 0.2s ease;
}

.et_pb_button:hover,
.menu-item.pk-cta a:hover {
	background-color: #5A3FD6;
	color: #fff;
}

/* === BODY & TYPOGRAPHY === */

body.et_divi_theme {
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
	color: #1A1A2E;
	background: #F8F9FA;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	color: #1A1A2E;
}

a {
	color: #7C5CFC;
}

a:hover {
	color: #5A3FD6;
}

/* === SECTIONS DIVI === */

.et_pb_section {
	padding: 60px 0;
}

.et_pb_section.pk-hero {
	background: linear-gradient(135deg, #7C5CFC 0%, #9F85FF 100%);
	border-radius: 0 0 24px 24px;
	padding: 80px 0;
}

.pk-hero h1 {
	color: #fff;
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.1;
}

.pk-hero p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.15rem;
}

/* === CARDS STYLE GLOBAL === */

.pk-card {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pk-card:hover {
	box-shadow: 0 4px 16px rgba(124, 92, 252, 0.15);
	transform: translateY(-2px);
}

/* === FOOTER === */

#main-footer {
	background: #1A1A2E;
	color: rgba(255, 255, 255, 0.7);
}

#footer-widgets .footer-widget h4 {
	color: #fff;
	font-weight: 700;
}

#footer-widgets .footer-widget a {
	color: rgba(255, 255, 255, 0.6);
}

#footer-widgets .footer-widget a:hover {
	color: #A8E86C;
}

#footer-bottom {
	background: #12121F;
}

/* === TOAST NOTIFICATIONS === */

.pk-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #fff;
	z-index: 99999;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pk-toast-visible {
	opacity: 1;
	transform: translateY(0);
}

.pk-toast-success {
	background: #22C55E;
}

.pk-toast-error {
	background: #EF4444;
}

/* === BRACKET STYLES === */

.pk-bracket-wrapper {
	display: flex;
	gap: 2rem;
	overflow-x: auto;
	padding: 2rem 0;
}

.pk-bracket-round {
	min-width: 250px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.pk-round-title {
	text-align: center;
	font-size: 0.85rem;
	text-transform: uppercase;
	color: #6B7280;
	margin-bottom: 1rem;
}

.pk-bracket-match {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.pk-bracket-team {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	font-size: 0.9rem;
	border-bottom: 1px solid #F3F4F6;
}

.pk-bracket-team:last-child {
	border-bottom: none;
}

.pk-bracket-team.pk-winner {
	background: rgba(168, 232, 108, 0.12);
	font-weight: 700;
}

.pk-bracket-score {
	font-weight: 700;
	color: #7C5CFC;
	font-size: 0.85rem;
}

/* === RESPONSIVE — Breakpoints Divi === */

@media (max-width: 981px) {
	.pk-hero h1 {
		font-size: 2.2rem;
	}

	.pk-bracket-wrapper {
		flex-direction: column;
	}

	.pk-bracket-round {
		min-width: 100%;
	}
}

@media (max-width: 768px) {
	.pk-hero h1 {
		font-size: 1.8rem;
	}

	.pk-hero {
		padding: 40px 0;
	}

	.et_pb_section {
		padding: 40px 0;
	}
}
