/* Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

a:hover {
    color: var(--primary-dark);
}

/* Prose - Content styling */
.prose {
    max-width: 65ch;
}

.prose h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.prose h3 {
    margin-top: 2rem;
}

.prose ul, .prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.prose blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.prose code {
    background-color: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.prose pre {
    background-color: var(--text-color);
    color: white;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    padding: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--primary-color);
    color: white;
}

.badge--type {
    background-color: var(--primary-color);
}

.badge--domaine {
    background-color: var(--accent-color);
}

.badge--facile {
    background-color: var(--success-color);
}

.badge--moyen {
    background-color: var(--warning-color);
}

.badge--avance {
    background-color: var(--danger-color);
}

/* Header */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo:hover {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.hero .btn-primary:hover {
    background-color: var(--bg-light);
}

.hero .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.hero .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Features */
.features {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Latest News / Blog */
.latest-news {
    padding: 5rem 0;
}

.latest-news h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--bg-color);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.news-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-card h3 a {
    color: var(--text-color);
    transition: var(--transition);
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.no-content {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    grid-column: 1 / -1;
}

/* Section spacing */
.section {
    padding: 4rem 0;
}

.section--bg {
    background-color: var(--bg-light);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 1.5rem 4.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
}

.page-header h1 {
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-header .lead,
.page-header .page-description {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-date {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Card */
.card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-title a {
    color: var(--text-color);
}

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

.card-date,
.card-region {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.card-summary {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-meta,
.card-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-categories {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-reading-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Content List Section */
.content-list {
    padding: 0 0 4rem;
}

/* Single Page */
.single-page,
.formation,
.ville,
.guide,
.blog-post {
    padding-bottom: 4rem;
}

.page-content {
    padding: 0 0 4rem;
}

/* Two Column Layout */
.formation__layout,
.ville__layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding: 0 0 4rem;
}

.formation__content,
.ville__content {
    min-width: 0;
}

.formation__sidebar,
.ville__sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.formation__meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Info Card */
.info-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.info-card h2,
.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-list__item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-list__item:last-child {
    border-bottom: none;
}

.info-list__item dt {
    color: var(--text-light);
    font-size: 0.875rem;
}

.info-list__item dd {
    font-weight: 600;
}

.info-debouches ul,
.atouts-list {
    list-style: none;
    margin-top: 0.75rem;
}

.info-debouches li,
.atouts-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-debouches li::before,
.atouts-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.tag-list a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Table of Contents */
.toc {
    background-color: var(--bg-light);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-color);
}

.toc h2 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.toc nav ul {
    list-style: none;
}

.toc nav li {
    margin-bottom: 0.625rem;
}

.toc nav a {
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.toc nav a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.toc nav ul ul {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 0.875rem 0;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-size: 0.875rem;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumbs__item a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumbs__item a:hover {
    color: var(--primary-color);
}

.breadcrumbs__item--current {
    color: var(--text-color);
    font-weight: 600;
}

/* Page Footer */
.page-footer {
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-light);
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.share-btn--twitter {
    background-color: #1da1f2;
}

.share-btn--facebook {
    background-color: #1877f2;
}

.share-btn--linkedin {
    background-color: #0a66c2;
}

.share-btn:hover {
    opacity: 0.9;
    color: white;
}

/* Related Posts */
.related-posts {
    margin: 2rem 0;
}

.related-posts h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.related-card {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.related-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Post Tags */
.post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.post__tags span {
    font-weight: 600;
    color: var(--text-light);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-color);
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Post Meta */
.post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post__categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Newsletter */
.newsletter-block {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.newsletter-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.newsletter-block h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.newsletter-block p {
    opacity: 0.95;
    margin-bottom: 2rem;
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Taxonomy */
.taxonomy-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.taxonomy-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.taxonomy-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.taxonomy-link:hover {
    background-color: var(--bg-light);
}

.taxonomy-name {
    font-weight: 600;
}

.taxonomy-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 6rem 1.5rem;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Shortcodes */

/* Alert */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.alert--info {
    background-color: #eff6ff;
    border-color: var(--info-color);
    color: #1e40af;
}

.alert--success {
    background-color: #ecfdf5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert--warning {
    background-color: #fffbeb;
    border-color: var(--warning-color);
    color: #92400e;
}

.alert--danger {
    background-color: #fef2f2;
    border-color: var(--danger-color);
    color: #991b1b;
}

/* Callout */
.callout {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

.callout__title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.callout--note {
    border-left: 4px solid var(--info-color);
}

.callout--tip {
    border-left: 4px solid var(--success-color);
}

.callout--warning {
    border-left: 4px solid var(--warning-color);
}

/* CTA Block */
.cta-block {
    background: linear-gradient(135deg, var(--bg-light), white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    margin: 2rem 0;
    text-align: center;
}

.cta__title {
    margin-bottom: 0.75rem;
}

.cta__content {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Stat Block */
.stat-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Testimonial */
.testimonial {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
}

.testimonial__text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
}

.testimonial__author cite {
    font-weight: 600;
    font-style: normal;
}

.testimonial__formation {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: var(--radius);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 4rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 4px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
}

.pagination .page-link:hover {
    background-color: var(--bg-light);
}

.pagination .active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .formation__layout,
    .ville__layout {
        grid-template-columns: 1fr;
    }

    .formation__sidebar,
    .ville__sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .cards-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .filters {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .error-page h1 {
        font-size: 5rem;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Footer button styling */
.footer-section .btn-outline {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.footer-section .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}
