/**
 * Template CMS - Styles personnalisés
 */

/* Import Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--cms-primary: #c8102e;
	--cms-text: #3a3a3a;
	--cms-text-light: #6a6a6a;
	--cms-bg: #ffffff;
	--cms-bg-alt: #FAF6F2;
	--cms-border: #D9D9D9;
	--container-width: 1200px;
}

/* ==========================================================================
   Page CMS
   ========================================================================== */
.rollergrill-cms-page {
	font-family: 'Poppins', sans-serif;
	color: var(--cms-text);
	background: var(--cms-bg);
}

.cms-article {
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Hero Section (avec image à la une)
   ========================================================================== */
.cms-hero {
	position: relative;
	min-height: 400px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 3rem;
}

.cms-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.cms-hero__content {
	position: relative;
	z-index: 2;
	padding: 3rem 2rem;
	text-align: center;
}

.cms-hero__title {
	font-size: 48px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 1rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cms-hero__excerpt {
	font-size: 18px;
	color: #ffffff;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ==========================================================================
   Header Simple (sans image)
   ========================================================================== */
.cms-header {
	background: var(--cms-bg-alt);
	padding: 3rem 2rem;
	margin-bottom: 3rem;
}

.cms-title {
	font-size: 42px;
	font-weight: 700;
	color: var(--cms-text);
	margin: 0;
	text-align: center;
}

/* ==========================================================================
   Contenu
   ========================================================================== */
.cms-content {
	padding: 0 2rem 4rem;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	width: 100%;
}

.cms-content__inner {
	line-height: 1.8;
}

/* Style Gutenberg par défaut */
.cms-content__inner h1,
.cms-content__inner h2,
.cms-content__inner h3,
.cms-content__inner h4,
.cms-content__inner h5,
.cms-content__inner h6 {
	font-family: 'Poppins', sans-serif;
	color: var(--cms-text);
	margin: 2rem 0 1rem;
	font-weight: 600;
}

.cms-content__inner h2 {
	font-size: 32px;
	border-bottom: 1px solid var(--cms-border);
	padding-bottom: 0.5rem;
}

.cms-content__inner h3 {
	font-size: 24px;
}

.cms-content__inner p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--cms-text-light);
	margin: 0 0 1.5rem;
}

.cms-content__inner a {
	color: var(--cms-primary);
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.cms-content__inner a:hover {
	opacity: 0.8;
}

.cms-content__inner ul,
.cms-content__inner ol {
	margin: 0 0 1.5rem 1.5rem;
	padding: 0;
}

.cms-content__inner li {
	margin-bottom: 0.5rem;
	color: var(--cms-text-light);
}

.cms-content__inner img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.cms-content__inner figure {
	margin: 1.5rem 0;
}

.cms-content__inner figcaption {
	font-size: 14px;
	color: var(--cms-text-light);
	font-style: italic;
	text-align: center;
	margin-top: 0.5rem;
}

.cms-content__inner blockquote {
	border-left: 4px solid var(--cms-primary);
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	background: var(--cms-bg-alt);
	font-style: italic;
}

.cms-content__inner table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.cms-content__inner th,
.cms-content__inner td {
	padding: 0.75rem;
	border: 1px solid var(--cms-border);
	text-align: left;
}

.cms-content__inner th {
	background: var(--cms-bg-alt);
	font-weight: 600;
}

/* Pagination */
.page-links {
	clear: both;
	margin: 2rem 0;
	text-align: center;
}

.page-links span {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0 0.25rem;
	background: var(--cms-bg-alt);
	border-radius: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.cms-hero {
		min-height: 300px;
	}
	
	.cms-hero__title {
		font-size: 36px;
	}
	
	.cms-title {
		font-size: 32px;
	}
	
	.cms-content {
		padding: 0 1rem 3rem;
	}
}

@media (max-width: 768px) {
	.cms-hero {
		min-height: 250px;
	}
	
	.cms-hero__title {
		font-size: 28px;
	}
	
	.cms-hero__excerpt {
		font-size: 16px;
	}
	
	.cms-title {
		font-size: 28px;
	}
	
	.cms-content__inner h2 {
		font-size: 24px;
	}
	
	.cms-content__inner h3 {
		font-size: 20px;
	}
}
