/* ConsCcamer - Styles CSS */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --primary: 213 90% 61%; /* #2563eb */
    --primary-dark: 213 93% 49%; /* #1e40af */
    --primary-light: 213 92% 75%; /* #60a5fa */
    --secondary: 142 71% 45%; /* #16a34a */
    --secondary-light: 142 76% 73%; /* #4ade80 */
    
    /* Couleurs neutres */
    --background: 210 11% 98%; /* #f8fafc */
    --surface: 0 0% 100%; /* #ffffff */
    --surface-alt: 210 17% 95%; /* #f1f5f9 */
    --border: 214 13% 91%; /* #e2e8f0 */
    --text: 222 84% 5%; /* #0f172a */
    --text-muted: 215 16% 47%; /* #64748b */
    --text-light: 215 20% 65%; /* #94a3b8 */
    
    /* Couleurs d'état */
    --success: 142 71% 45%; /* #16a34a */
    --warning: 32 95% 44%; /* #d97706 */
    --error: 0 84% 60%; /* #ef4444 */
    
    /* Espacements */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Rayons de bordure */
    --radius-sm: 0.125rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Largeurs maximales */
    --max-width: 1200px;
    --max-width-prose: 65ch;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--text));
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

ul, ol {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilitaires */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.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;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: hsl(var(--text-muted));
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.9);
}

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

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

.btn:focus {
    outline: 2px solid hsl(var(--primary) / 0.5);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header */
.header {
    background-color: hsl(var(--surface));
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: var(--text-xl);
    color: hsl(var(--primary));
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.brand-text {
    color: hsl(var(--text));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-menu a {
    font-weight: 500;
    color: hsl(var(--text-muted));
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: hsl(var(--primary));
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: hsl(var(--text));
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--secondary) / 0.05) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: hsl(var(--text));
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero p {
    font-size: var(--text-lg);
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-8);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Services Section */
.services {
    padding: var(--space-24) 0;
    background-color: hsl(var(--surface));
}

.services h2 {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-16);
    color: hsl(var(--text));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid hsl(var(--border));
}

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

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: hsl(var(--text));
}

.service-card p {
    color: hsl(var(--text-muted));
}

/* About Section */
.about {
    padding: var(--space-24) 0;
    background-color: hsl(var(--surface-alt));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about h2 {
    font-size: var(--text-4xl);
    color: hsl(var(--text));
    margin-bottom: var(--space-6);
}

.about-features {
    margin-top: var(--space-8);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.feature span {
    color: hsl(var(--text-muted));
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-24) 0;
    background-color: hsl(var(--surface));
}

.testimonials h2 {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-16);
    color: hsl(var(--text));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.testimonial-card {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid hsl(var(--border));
}

.testimonial-content {
    margin-bottom: var(--space-6);
}

.testimonial-content p {
    font-style: italic;
    color: hsl(var(--text-muted));
    font-size: var(--text-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.author-info h4 {
    color: hsl(var(--text));
    margin-bottom: var(--space-1);
}

.author-info span {
    color: hsl(var(--text-light));
    font-size: var(--text-sm);
}

/* Newsletter Section */
.newsletter {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.newsletter p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: var(--space-4);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
}

.newsletter-form button {
    background-color: white;
    color: hsl(var(--primary));
    border: none;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: hsl(var(--surface-alt));
}

/* Contact Section */
.contact {
    padding: var(--space-24) 0;
    background-color: hsl(var(--surface-alt));
}

.contact h2 {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-16);
    color: hsl(var(--text));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.contact-item h4 {
    color: hsl(var(--text));
    margin-bottom: var(--space-2);
}

.contact-item p {
    color: hsl(var(--text-muted));
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.contact-form input,
.contact-form textarea {
    padding: var(--space-3) var(--space-4);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: var(--transition);
    background-color: hsl(var(--surface));
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

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

/* Footer */
.footer {
    background-color: hsl(var(--text));
    color: white;
    padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.footer-section h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: white;
}

.footer-section p {
    color: hsl(var(--text-light));
    margin-bottom: var(--space-2);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-section a {
    color: hsl(var(--text-light));
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-links a {
    color: hsl(var(--text-light));
    transition: var(--transition);
}

.social-links a:hover {
    color: hsl(var(--primary-light));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--text-light) / 0.2);
    padding-top: var(--space-8);
    text-align: center;
}

.footer-bottom p {
    color: hsl(var(--text-light));
    margin: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    padding: var(--space-6);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.cookie-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: hsl(var(--text));
}

.cookie-content p {
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-4);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--text) / 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--space-4);
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    color: hsl(var(--text));
}

.cookie-category {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: var(--space-2);
}

.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.cookie-category p {
    color: hsl(var(--text-muted));
    font-size: var(--text-sm);
    margin: 0;
}

.cookie-modal-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-6);
}

/* Blog Styles */
.blog-header {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--secondary) / 0.05) 100%);
    text-align: center;
}

.blog-header h1 {
    font-size: var(--text-4xl);
    color: hsl(var(--text));
    margin-bottom: var(--space-4);
}

.blog-header p {
    font-size: var(--text-lg);
    color: hsl(var(--text-muted));
    max-width: 600px;
    margin: 0 auto;
}

.blog-articles {
    padding: var(--space-24) 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.article-card {
    background-color: hsl(var(--surface));
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid hsl(var(--border));
}

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

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: var(--space-6);
}

.article-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.article-date {
    color: hsl(var(--text-light));
    font-size: var(--text-sm);
}

.article-category {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    font-weight: 500;
}

.article-card h2 {
    font-size: var(--text-xl);
    color: hsl(var(--text));
    margin-bottom: var(--space-3);
}

.article-card p {
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-4);
}

.read-more {
    color: hsl(var(--primary));
    font-weight: 500;
    transition: var(--transition);
}

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

.blog-newsletter {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--secondary) / 0.1) 100%);
    padding: var(--space-16);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: var(--space-16);
}

/* Article Page */
.article-page {
    padding: var(--space-12) 0;
}

.article-header {
    margin-bottom: var(--space-12);
}

.back-link {
    color: hsl(var(--primary));
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: hsl(var(--primary-dark));
}

.article-intro {
    font-size: var(--text-lg);
    color: hsl(var(--text-muted));
    font-style: italic;
    margin-bottom: var(--space-8);
}

.article-content {
    max-width: var(--max-width-prose);
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.7;
}

.article-content h2 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    color: hsl(var(--text));
}

.article-content h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: hsl(var(--text));
}

.article-content h4 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: hsl(var(--text));
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.article-content li {
    list-style: disc;
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-2);
}

.article-content ol li {
    list-style: decimal;
}

.article-content a {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.article-content a:hover {
    color: hsl(var(--primary-dark));
}

/* Article Special Boxes */
.recipe-box,
.info-box,
.warning-box,
.tip-box,
.protocol-box,
.planning-box,
.cost-breakdown,
.audit-checklist,
.weekly-schedule,
.time-blocks,
.laundry-routine,
.tools-list,
.family-tasks,
.planning-box {
    background-color: hsl(var(--surface-alt));
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border-left: 4px solid hsl(var(--primary));
    margin: var(--space-6) 0;
}

.warning-box {
    border-left-color: hsl(var(--warning));
    background-color: hsl(var(--warning) / 0.05);
}

.tip-box {
    border-left-color: hsl(var(--secondary));
    background-color: hsl(var(--secondary) / 0.05);
}

.recipe-box h4,
.info-box h4,
.warning-box h4,
.tip-box h4,
.protocol-box h5,
.planning-box h4 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    color: hsl(var(--text));
}

/* Tables */
.cookie-table {
    margin: var(--space-6) 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: hsl(var(--surface));
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.cookie-table th {
    background-color: hsl(var(--surface-alt));
    font-weight: 600;
    color: hsl(var(--text));
}

.cookie-table td {
    color: hsl(var(--text-muted));
}

/* Article Footer */
.article-footer {
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid hsl(var(--border));
}

.article-tags {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    align-items: center;
    flex-wrap: wrap;
}

.article-tags span {
    font-weight: 500;
    color: hsl(var(--text));
}

.article-tags a {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    transition: var(--transition);
}

.article-tags a:hover {
    background-color: hsl(var(--primary) / 0.2);
}

.article-share {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    align-items: center;
    flex-wrap: wrap;
}

.article-share span {
    font-weight: 500;
    color: hsl(var(--text));
}

.share-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

.article-navigation {
    display: flex;
    gap: var(--space-4);
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Related Articles */
.related-articles {
    padding: var(--space-16) 0;
    background-color: hsl(var(--surface-alt));
}

.related-articles h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    color: hsl(var(--text));
}

.related-articles .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.related-articles .article-card {
    padding: var(--space-6);
}

.related-articles .article-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.related-articles .article-card h3 a {
    color: hsl(var(--text));
    transition: var(--transition);
}

.related-articles .article-card h3 a:hover {
    color: hsl(var(--primary));
}

/* Legal Pages */
.legal-content {
    padding: var(--space-16) 0;
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.legal-header h1 {
    font-size: var(--text-4xl);
    color: hsl(var(--text));
    margin-bottom: var(--space-4);
}

.last-updated {
    color: hsl(var(--text-light));
    font-style: italic;
}

.legal-text {
    max-width: var(--max-width-prose);
    margin: 0 auto;
    font-size: var(--text-base);
    line-height: 1.7;
}

.legal-text h2 {
    color: hsl(var(--text));
    margin-top: var(--space-10);
    margin-bottom: var(--space-6);
}

.legal-text h3 {
    color: hsl(var(--text));
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.mentions-legales {
    background-color: hsl(var(--surface-alt));
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.contact-info {
    background-color: hsl(var(--surface-alt));
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

/* Thank You Page */
.thank-you {
    padding: var(--space-24) 0;
    text-align: center;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: var(--space-8);
}

.thank-you h1 {
    font-size: var(--text-4xl);
    color: hsl(var(--text));
    margin-bottom: var(--space-6);
}

.thank-you p {
    font-size: var(--text-lg);
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-10);
}

.next-steps {
    margin: var(--space-16) 0;
    text-align: left;
}

.next-steps h2 {
    text-align: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-10);
    color: hsl(var(--text));
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.step-card {
    background-color: hsl(var(--surface));
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid hsl(var(--border));
}

.step-card h3 {
    font-size: var(--text-lg);
    color: hsl(var(--text));
    margin: var(--space-4) 0;
}

.step-card p {
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-4);
}

.social-follow {
    margin: var(--space-12) 0;
}

.social-follow h3 {
    font-size: var(--text-2xl);
    color: hsl(var(--text));
    margin-bottom: var(--space-6);
    text-align: center;
}

.social-follow .social-links {
    justify-content: center;
    gap: var(--space-6);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background-color: hsl(var(--surface));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid hsl(var(--border));
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link span {
    font-weight: 500;
    color: hsl(var(--text));
}

.back-home {
    margin-top: var(--space-16);
}

/* Related Services */
.related-services {
    padding: var(--space-16) 0;
    background-color: hsl(var(--surface-alt));
}

.related-services h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    color: hsl(var(--text));
}

.cta-center {
    text-align: center;
    margin-top: var(--space-12);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--surface));
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: var(--space-4);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .article-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .article-tags,
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .article-tags a,
    .share-btn {
        margin-right: var(--space-2);
        margin-bottom: var(--space-2);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .social-follow .social-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .nav {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .hero {
        padding: var(--space-16) 0;
    }
    
    .services,
    .about,
    .testimonials,
    .contact {
        padding: var(--space-16) 0;
    }
    
    .hero h1 {
        font-size: var(--text-2xl);
    }
    
    .services h2,
    .about h2,
    .testimonials h2,
    .contact h2 {
        font-size: var(--text-2xl);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .cookie-modal-content {
        margin: var(--space-4);
        padding: var(--space-6);
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle {
        display: none;
    }
    
    .hero,
    .services,
    .about,
    .testimonials,
    .newsletter,
    .contact {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid hsl(var(--text));
        background: none;
        color: hsl(var(--text));
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: 0 0% 0%;
        --text-muted: 0 0% 20%;
        --text-light: 0 0% 40%;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --background: 222 84% 5%;
        --surface: 217 33% 17%;
        --surface-alt: 215 28% 17%;
        --border: 217 33% 17%;
        --text: 210 11% 98%;
        --text-muted: 215 20% 65%;
        --text-light: 215 16% 47%;
    }
}
