 :root {
	--green-primary: #16a34a;
	--green-dark: #15803d;
	--green-darker: #166534;
	--green-light: #bbf7d0;
	--green-lighter: #f0fdf4;
	--amber-primary: #fbbf24;
	--amber-dark: #78350f;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: #fafaf9;
	color: #1c1917;
}

.serif {
	font-family: Georgia, serif;
}

/* Navbar */
.navbar {
	border-bottom: 4px solid var(--green-primary);
	background: white !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-circle {
	position: relative;
	width: 56px;
	height: 56px;
	background: var(--green-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(-12deg);
	font-size: 28px;
}

.logo-badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	width: 24px;
	height: 24px;
	background: var(--amber-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.logo-text h1 {
	font-size: 1.5rem;
	color: var(--green-darker);
	font-weight: bold;
	margin: 0;
}

.logo-text p {
	font-size: 0.875rem;
	color: var(--green-dark);
	margin: 0;
}

.nav-link {
	color: var(--green-darker) !important;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: all 0.3s;
}

.nav-link:hover {
	color: var(--green-primary) !important;
	border-bottom-color: var(--green-primary);
}

.btn-contact {
	background: var(--green-primary);
	color: white;
	border-radius: 50px;
	padding: 0.5rem 1.5rem;
}

.btn-contact:hover {
	background: var(--green-dark);
	color: white;
}

/* Hero */
.hero {
	background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 50%, #dbeafe 100%);
	padding: 5rem 0;
	position: relative;
	overflow: hidden;
}

.hero-pattern {
	position: absolute;
	font-size: 4rem;
	opacity: 0.1;
	user-select: none;
	pointer-events: none;
}

.hero-badge {
	background: var(--green-primary);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 50px;
	font-size: 0.875rem;
	display: inline-block;
	font-weight: 500;
}

.hero h2 {
	font-size: 3.5rem;
	color: #14532d;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero h2 span {
	color: var(--green-dark);
}

.hero-description {
	font-size: 1.25rem;
	color: #57534e;
	max-width: 42rem;
	margin: 0 auto 2.5rem;
}

.search-box {
	position: relative;
	max-width: 42rem;
	margin: 0 auto 2rem;
}

.search-icon {
	position: absolute;
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--green-primary);
	z-index: 10;
}

.search-box input {
	padding-left: 3.5rem;
	border: 3px solid var(--green-light);
	border-radius: 1rem;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	height: 60px;
}

.search-box input:focus {
	border-color: var(--green-primary);
	box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25);
}

.search-tag {
	background: white;
	border: 2px solid var(--green-light);
	color: var(--green-darker);
	padding: 0.25rem 1rem;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s;
}

.search-tag:hover {
	background: var(--green-lighter);
}

/* Intro */
.intro-text {
	font-size: 1.5rem;
	color: #57534e;
	line-height: 1.6;
}

/* Categories */
.category-card {
	border: 3px solid;
	border-radius: 1rem;
	padding: 1.5rem;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	height: 100%;
}

.category-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.category-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.category-card h4 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	font-weight: bold;
}

.category-arrow {
	font-weight: 500;
	margin-top: 1rem;
}

/* Couleurs des catégories */
.cat-amber { background: #fffbeb; border-color: #fde68a; }
.cat-amber h4, .cat-amber .category-arrow { color: #78350f; }

.cat-green { background: #f0fdf4; border-color: #bbf7d0; }
.cat-green h4, .cat-green .category-arrow { color: #14532d; }

.cat-blue { background: #eff6ff; border-color: #bfdbfe; }
.cat-blue h4, .cat-blue .category-arrow { color: #1e3a8a; }

.cat-purple { background: #faf5ff; border-color: #e9d5ff; }
.cat-purple h4, .cat-purple .category-arrow { color: #581c87; }

.cat-rose { background: #fff1f2; border-color: #fecdd3; }
.cat-rose h4, .cat-rose .category-arrow { color: #881337; }

.cat-slate { background: #f8fafc; border-color: #cbd5e1; }
.cat-slate h4, .cat-slate .category-arrow { color: #0f172a; }

/* Recent Docs */
.recent-docs {
	background: white;
	border-top: 4px solid var(--green-primary);
}

.recent-header {
	position: relative;
	text-align: center;
	margin-bottom: 2rem;
}

.recent-header::before,
.recent-header::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 30%;
	height: 4px;
	background: var(--green-light);
}

.recent-header::before {
	left: 0;
}

.recent-header::after {
	right: 0;
}

.recent-header h3 {
	font-size: 2rem;
	color: #14532d;
	display: inline-block;
	background: white;
	padding: 0 1rem;
}

.recent-item {
	background: #fafaf9;
	border-left: 4px solid var(--amber-primary);
	padding: 1.25rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.3s;
	height: 100%;
}

.recent-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recent-number {
	background: var(--amber-primary);
	color: var(--amber-dark);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	flex-shrink: 0;
}

.recent-item p {
	color: #1c1917;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}

/* Newsletter */
.newsletter {
	background: linear-gradient(to right, var(--green-dark), var(--green-primary));
	color: white;
}

.newsletter-icon {
	font-size: 4rem;
	margin-bottom: 1.5rem;
}

.newsletter h3 {
	font-size: 2.5rem;
	color: white;
}

.newsletter-description {
	color: var(--green-light);
	font-size: 1.125rem;
	line-height: 1.6;
}

.newsletter input {
	border: 3px solid var(--green-primary);
	border-radius: 0.75rem;
	height: 60px;
}

.newsletter input:focus {
	border-color: white;
	box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.btn-newsletter {
	background: var(--amber-primary);
	color: #14532d;
	padding: 1rem 2rem;
	border: none;
	border-radius: 0.75rem;
	font-weight: bold;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	height: 60px;
}

.btn-newsletter:hover {
	background: #fde047;
	color: #14532d;
}

/* Footer */
footer {
	background: #292524;
	color: #d6d3d1;
}

footer h4 {
	color: white;
}

footer a {
	color: #d6d3d1;
	text-decoration: none;
	transition: color 0.3s;
}

footer a:hover {
	color: #4ade80;
}

.btn-footer {
	background: var(--green-primary);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	display: inline-block;
	margin-top: 0.75rem;
	text-decoration: none;
}

.btn-footer:hover {
	background: var(--green-dark);
	color: white;
}

.footer-bottom {
	border-top: 1px solid #44403c;
}

@media (max-width: 768px) {
	.hero h2 {
		font-size: 2rem;
	}
	
	.hero-description {
		font-size: 1rem;
	}
	
	.intro-text {
		font-size: 1.25rem;
	}
	
	.recent-header::before,
	.recent-header::after {
		width: 20%;
	}
}

/* CSS Document */

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: var(--green-primary);
}

.breadcrumb-item a {
    color: var(--green-darker);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--green-primary);
}

/* Resource Header */
.resource-header {
    background: linear-gradient(135deg, var(--green-lighter) 0%, #fef3c7 100%);
    border-left: 6px solid var(--green-primary);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.resource-header h1 {
    font-size: 2.5rem;
    color: var(--green-darker);
    margin-bottom: 1.5rem;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #57534e;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    color: var(--green-primary);
    font-size: 1.25rem;
}

/* Resource Image */
.resource-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
}

.resource-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Download Button */
/* Download Buttons Box */
.download-buttons-box {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 2px solid var(--green-light);
}

.btn-download-primary {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    width: 100%;
}

.btn-download-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
    color: white;
}

.btn-download-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: var(--green-darker);
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--green-light);
    width: 100%;
}

.btn-download-secondary:hover {
    background: var(--green-lighter);
    border-color: var(--green-primary);
    color: var(--green-darker);
    transform: translateY(-2px);
}

 .btn-signal {
	background: white;
	color: var(--green-darker);
	border: 2px solid var(--green-light);
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s;
	width: 100%;
	justify-content: center;
}

.btn-signal:hover {
	background: var(--green-lighter);
	color: var(--green-darker);
	border-color: var(--green-primary);
}

.btn-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.btn-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-signal {
    background: white;
    color: var(--green-darker);
    border: 2px solid var(--green-light);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-signal:hover {
    background: var(--green-lighter);
    color: var(--green-darker);
    border-color: var(--green-primary);
}

/* Content */
.resource-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.resource-content h2 {
    color: var(--green-darker);
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--green-light);
}

.resource-content h2:first-child {
    margin-top: 0;
}

caption {
	caption-side: top;
}

.resource-content table {
    margin: 1.5rem 0;
}

.resource-content table th {
    background: var(--green-lighter);
    color: var(--green-darker);
    font-weight: 600;
}

.resource-content table td,
.resource-content table th {
    padding: 0.75rem;
}

/* Tags */
.tags-section {
    background: var(--green-lighter);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--green-light);
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: white;
    color: var(--green-darker);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin: 0.25rem;
    font-size: 0.875rem;
    text-decoration: none;
    border: 2px solid var(--green-light);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
    transform: translateY(-2px);
}

/* Similar Resources */
.similar-resources {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.similar-item {
    background: var(--green-lighter);
    border-left: 4px solid var(--green-primary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.similar-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.similar-item h3 {
    font-size: 1.125rem;
    color: var(--green-darker);
    margin: 0;
}

/* Stats box */
.stats-box {
    background: linear-gradient(135deg, var(--amber-primary) 0%, #fb923c 100%);
    color: var(--amber-dark);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.stats-box .big-number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-box .label {
    font-size: 1rem;
    font-weight: 600;
}

/* Alert info */
.alert-info-custom {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem;
    border-radius: 0.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.alert-info-custom strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Fin CSS Document */