/* ========================================
	Sections
	======================================== */
.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 60px;
	color: var(--primary-color);
}

.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-subtitle {
	font-size: 1.2rem;
	color: var(--text-light);
	max-width: 600px;
	margin: 0 auto;
}

/* ========================================
	Categories Section
	======================================== */
.categories {
	padding: 100px 0;
	background: var(--white);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.category-card {
	background: var(--background);
	padding: 40px 30px;
	border-radius: var(--border-radius-lg);
	text-align: center;
	transition: var(--transition);
	border: 2px solid transparent;
}

.category-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-lg);
	border-color: var(--secondary-color);
}

.category-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 25px;
	background: var(--gradient-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.category-icon svg {
	width: 40px;
	height: 40px;
	color: var(--white);
}

.category-card h3 {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--primary-color);
}

.category-card p {
	color: var(--text-light);
	font-size: 0.95rem;
}

/* ========================================
	Agenda Section
	======================================== */
.agenda {
	padding: 60px 0;
	background: var(--background);
}

.agenda .section-title,
.agenda .section-header {
	margin-bottom: 10px;
}

.agenda .section-subtitle {
	margin-bottom: 50px;
}

.agenda-slider {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	grid-template-rows: auto auto;
	column-gap: 16px;
}

.agenda-viewport {
	grid-column: 2;
	grid-row: 1;
	overflow: hidden;
}

.agenda-track {
	display: flex;
	transition: transform 0.5s ease;
	will-change: transform;
	align-items: stretch;
}

.agenda-slide {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 10px 0;
	display: flex;
}

.agenda-card {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	width: 100%;
	min-height: 220px;
	display: flex;
}

.agenda-link {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 20px;
	align-items: center;
	padding: 20px;
	color: inherit;
	width: 100%;
	height: 100%;
}


.agenda-media {
	width: 100%;
	height: 140px;
	border-radius: var(--border-radius-md);
	overflow: hidden;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.agenda-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agenda-media--placeholder svg {
	width: 48px;
	height: 48px;
	color: var(--white);
}

.agenda-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.agenda-date {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--secondary-color);
}

.agenda-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--primary-color);
}

.agenda-excerpt {
	color: var(--text-light);
	font-size: 0.95rem;
}


.agenda-nav {
	position: static;
	transform: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--white);
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	cursor: pointer;
	transition: var(--transition);
}

.agenda-nav:hover {
	transform: scale(1.05);
}

.agenda-nav--prev {
	grid-column: 1;
	grid-row: 1;
	justify-self: center;
}

.agenda-nav--next {
	grid-column: 3;
	grid-row: 1;
	justify-self: center;
}

.agenda-nav svg {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
}

.agenda-dots {
	grid-column: 1 / -1;
	grid-row: 2;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.agenda-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: none;
	background: #cbd5f5;
	cursor: pointer;
	transition: var(--transition);
}

.agenda-dot.is-active {
	background: var(--primary-color);
	width: 26px;
}

.agenda-empty {
	text-align: center;
	color: var(--text-light);
}

/* ========================================
	Elections Section
	======================================== */
.elections {
	padding: 0px 0 100px 0;
	background: linear-gradient(180deg, var(--background) 0%, #e2e8f0 100%);
}

.candidates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-bottom: 60px;
}

.candidate-card {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.candidate-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
}

.candidate-photo {
	position: relative;
	height: 200px;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.placeholder-photo {
	width: 120px;
	height: 120px;
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.placeholder-photo svg {
	width: 60px;
	height: 60px;
	color: rgba(255,255,255,0.8);
}

.candidate-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--accent-color);
	color: var(--white);
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

.candidate-info {
	padding: 25px;
}

.candidate-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 5px;
}

.candidate-party {
	font-size: 0.95rem;
	color: var(--secondary-color);
	font-weight: 600;
	margin-bottom: 10px;
}

.candidate-slogan {
	font-style: italic;
	color: var(--text-light);
	margin-bottom: 15px;
	font-size: 0.9rem;
}

.candidate-priorities {
	list-style: none;
	margin-bottom: 20px;
}

.candidate-priorities li {
	padding: 5px 0;
	padding-left: 25px;
	position: relative;
	font-size: 0.9rem;
	color: var(--text-color);
}

.candidate-priorities li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--secondary-color);
	font-weight: bold;
}

.candidate-link {
	display: inline-block;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 0.95rem;
}

.candidate-link:hover {
	color: var(--secondary-color);
}

/* Election Info Cards */
.election-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 25px;
}

.info-card {
	background: var(--white);
	padding: 30px;
	border-radius: var(--border-radius);
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: var(--shadow-sm);
}

.info-icon {
	font-size: 2.5rem;
}

.info-content h4 {
	font-size: 1rem;
	color: var(--text-light);
	font-weight: 500;
	margin-bottom: 5px;
}

.info-content p {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--primary-color);
}

/* Candidate Links */
.candidate-links {
	display: flex;
	gap: 12px;
	margin: 15px 0;
}

.candidate-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--primary-color);
	border-radius: 50%;
	color: var(--white);
	transition: var(--transition);
	text-decoration: none;
	opacity: 0.8;
}

.candidate-links a:hover {
	background: var(--secondary-color);
	transform: scale(1.1);
	opacity: 1;
}

.candidate-links a svg {
	width: 18px;
	height: 18px;
}

/* Election Links */
.election-link {
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.8rem;
	transition: var(--transition);
}

.election-link:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

/* Election Notice */
.election-notice {
	margin-top: 40px;
}

.notice-content {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 800px;
	margin: 0 auto;
	padding: 30px;
	background: var(--white);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid rgba(0,0,0,0.05);
}

.notice-icon {
	font-size: 2.5rem;
	flex-shrink: 0;
}

.notice-text h3 {
	font-size: 1.25rem;
	color: var(--primary-color);
	margin-bottom: 10px;
	font-weight: 600;
}

.notice-text p {
	color: var(--text-light);
	line-height: 1.6;
	margin: 0;
}

/* ========================================
	CTA Section
	======================================== */
.cta-section {
	padding: 80px 0;
	background: var(--gradient-primary);
	text-align: center;
}

.cta-section h2 {
	font-size: 2.5rem;
	color: var(--white);
	margin-bottom: 15px;
}

.cta-section p {
	font-size: 1.1rem;
	color: rgba(255,255,255,0.8);
	margin-bottom: 30px;
}

.newsletter-form {
	display: flex;
	justify-content: center;
	gap: 15px;
	max-width: 500px;
	margin: 0 auto;
}

.newsletter-form input {
	flex: 1;
	padding: 15px 25px;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	outline: none;
}

.newsletter-form button {
	padding: 15px 35px;
	background: var(--accent-color);
	color: var(--white);
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.newsletter-form button:hover {
	background: #dd6b20;
	transform: scale(1.05);
}

/* Messages de newsletter */
.newsletter-message {
	margin-top: 20px;
	padding: 15px 20px;
	border-radius: var(--border-radius);
	text-align: center;
	font-weight: 500;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.newsletter-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.newsletter-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ========================================
	Featured Articles Section
	======================================== */
.featured-articles {
	padding: 40px 0;
	background: var(--background);
}

.featured-articles .section-title {
	text-align: center;
	margin-bottom: 10px;
}

.featured-articles .section-subtitle {
	text-align: center;
	color: var(--text-light);
	font-size: 1.1rem;
	margin-bottom: 50px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

@media (min-width: 1024px) {
	.featured-articles .articles-grid {
		grid-template-columns: repeat(2, minmax(280px, 1fr));
	}
}

.article-card {
	background: var(--white);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.article-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
}

.article-image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.article-card:hover .article-image img {
	transform: scale(1.05);
}

.placeholder-image {
	width: 100%;
	height: 100%;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.placeholder-image svg {
	width: 60px;
	height: 60px;
	color: rgba(255,255,255,0.5);
}

.article-card-content {
	padding: 25px;
}


.featured-articles .article-title {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 15px;
	line-height: 1.4;
}

.article-title a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

.article-title a:hover {
	color: var(--secondary-color);
}

.article-excerpt {
	color: var(--text-light);
	line-height: 1.6;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.article-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: var(--transition);
}

.article-link:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

.no-articles {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 40px;
	background: var(--white);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
}

.no-articles p {
	color: var(--text-light);
	font-size: 1.1rem;
}

/* ========================================
	Analyses Section
	======================================== */
.analyses-section {
	padding: 4rem 0;
	background-color: var(--background);
}

.analyses-section .section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 2rem;
	text-align: center;
}

.analyses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.analyse-card {
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	transition: var(--transition);
	border: 1px solid rgba(0,0,0,0.05);
}

.analyse-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.analyse-image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.analyse-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.analyse-card:hover .analyse-image img {
	transform: scale(1.05);
}

.placeholder-image {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
}

.placeholder-image svg {
	width: 48px;
	height: 48px;
}

.analyse-content {
	padding: 1.5rem;
}

.analyse-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.analyse-category {
	background: var(--gradient-accent);
	color: var(--white);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.analyse-date {
	color: var(--text-light);
}

.analyse-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}

.analyse-title a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

.analyse-title a:hover {
	color: var(--primary-light);
}

.analyse-excerpt {
	color: var(--text-light);
	margin-bottom: 1rem;
	line-height: 1.5;
}

.analyse-link {
	display: inline-flex;
	align-items: center;
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	transition: var(--transition);
}

.analyse-link:hover {
	color: var(--primary-color);
	transform: translateX(5px);
}

/* ========================================
	Contact Form
	======================================== */
.contact-form {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px;
	background: var(--white);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(0,0,0,0.05);
}

.contact-form-status {
	max-width: 720px;
	margin: 0 auto 20px;
	padding: 16px 20px;
	background: rgba(56, 178, 172, 0.12);
	color: var(--primary-color);
	border-radius: var(--border-radius);
	border: 1px solid rgba(56, 178, 172, 0.25);
	font-weight: 600;
	text-align: center;
}

.contact-form .form-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.contact-form label {
	font-weight: 600;
	color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: var(--border-radius);
	font-size: 1rem;
	transition: var(--transition);
	background: var(--background);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.2);
	background: var(--white);
}

.contact-form textarea {
	resize: vertical;
	min-height: 160px;
}

.contact-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 30px;
	background: var(--gradient-accent);
	color: var(--white);
	border: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: var(--transition);
}

.contact-form button:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.contact-form button:active {
	transform: translateY(0);
}
