/* ========================================
   ISOLATION FRANCE SERVICE - DESIGN SYSTEM PREMIUM
   Version 2.0 - Refonte Complete
   ======================================== */

/* ========================================
   GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
   ======================================== */
:root {
    /* Couleurs Primaires */
    --color-primary: #1E40AF;
    --color-primary-light: #3B82F6;
    --color-primary-pale: #EFF6FF;
    --color-primary-dark: #1E3A8A;

    /* Couleurs Secondaires */
    --color-secondary: #059669;
    --color-secondary-pale: #D1FAE5;

    /* Couleurs Accent */
    --color-accent: #EA580C;
    --color-accent-light: #F97316;
    --color-accent-pale: #FFF7ED;

    /* Couleurs Texte */
    --color-text: #374151;
    --color-text-dark: #111827;
    --color-text-light: #6B7280;
    --color-text-muted: #9CA3AF;

    /* Couleurs Background */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9FAFB;
    --color-bg-tertiary: #F3F4F6;

    /* Couleurs Bordures */
    --color-border: #E5E7EB;
    --color-border-dark: #D1D5DB;

    /* Couleurs Feedback */
    --color-success: #059669;
    --color-warning: #D97706;
    --color-error: #DC2626;
    --color-star: #FBBF24;

    /* Typographie */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Courier New", monospace;

    /* 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: 2rem;
    --text-4xl: 2.625rem;
    --text-5xl: 3.5rem;

    /* 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;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 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);
    --shadow-primary: 0 4px 14px rgba(30, 64, 175, 0.25);
    --shadow-accent: 0 4px 14px rgba(234, 88, 12, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Layout */
    --container-max: 1280px;
    --content-max: 720px;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-3xl);
    margin-top: var(--space-12);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-top: var(--space-8);
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
}

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

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

strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.4);
    border-radius: var(--radius-sm);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.content-wrapper {
    max-width: var(--content-max);
}

/* ========================================
   HEADER
   ======================================== */
header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

header nav {
    padding: var(--space-4) 0;
}

header nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-left .logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.header-left .logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
}

/* Main Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu > li > a:hover {
    background: var(--color-primary-pale);
    color: var(--color-primary);
}

.nav-menu > li > a.active {
    background: var(--color-primary-pale);
    color: var(--color-primary);
}

/* Dropdown arrow */
.nav-menu > li > a .nav-arrow {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.nav-menu > li:hover > a .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    list-style: none;
}

.nav-menu > li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-dropdown li a:hover {
    background: var(--color-primary-pale);
    color: var(--color-primary);
}

.nav-dropdown li a .dropdown-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.nav-dropdown li a .dropdown-text {
    flex: 1;
}

.nav-dropdown li a .dropdown-count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: var(--color-bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    color: var(--color-text-dark);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Phone CTA Button */
.header-right {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: var(--space-1);
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-primary);
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
    color: white;
}

.phone-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.phone-number {
    font-size: var(--text-base);
    white-space: nowrap;
}

.header-subtext {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-align: center;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-pale) 100%);
    padding: var(--space-24) 0;
    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='%231E40AF' fill-opacity='0.03'%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: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--color-text-dark);
    letter-spacing: -0.03em;
}

.hero .lead {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary-pale);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    padding: var(--space-3) var(--space-6);
}

.btn-ghost:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-primary);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
}

/* ========================================
   REASSURANCE BAR
   ======================================== */
.reassurance {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-8) 0;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.reassurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4);
    position: relative;
}

.reassurance-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background: var(--color-border);
}

.reassurance-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-pale);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.reassurance-icon svg {
    width: 24px;
    height: 24px;
}

.reassurance-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--space-1);
}

.reassurance-text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.categories {
    padding: var(--space-20) 0;
    background: var(--color-bg);
}

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

.section-header h2 {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.category-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-xs);
}

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

.category-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-card-image::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    opacity: 0.1;
    border-radius: 50%;
}

.category-card-image svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

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

.category-card h2,
.category-card h3 {
    font-size: var(--text-xl);
    margin-top: 0;
    margin-bottom: var(--space-2);
}

.category-card h2 a,
.category-card h3 a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.category-card h2 a:hover,
.category-card h3 a:hover {
    color: var(--color-primary);
}

.category-meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-3);
    background: var(--color-primary-pale);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.category-description {
    font-size: var(--text-base);
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: gap var(--transition-base);
}

.category-link:hover {
    gap: var(--space-3);
}

.category-link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.category-card:hover .category-link::after {
    transform: translateX(4px);
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-bg-alt) 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--color-border-dark);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: white;
    margin: 0 auto var(--space-5);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-primary);
}

.process-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--space-2);
}

.process-text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ========================================
   ARTICLES SECTION
   ======================================== */
.articles {
    padding: var(--space-20) 0;
    background: var(--color-bg-alt);
}

.articles h2 {
    margin-top: 0;
}

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

.article-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.article-card-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
    width: fit-content;
}

.article-card h3 {
    font-size: var(--text-lg);
    margin-top: 0;
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.article-card .meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

.article-card .meta::before {
    content: none;
}

.article-card .meta time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.article-card p {
    color: var(--color-text-light);
    font-size: var(--text-base);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: gap var(--transition-base);
    margin-top: auto;
}

.article-card .read-more:hover {
    gap: var(--space-3);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    padding: var(--space-20) 0;
    background: var(--color-bg);
}

.testimonial-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto var(--space-8);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 120px;
    color: var(--color-border);
    position: absolute;
    top: 0;
    left: 30px;
    line-height: 1;
}

.testimonial-text {
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-dark);
}

.testimonial-project {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.testimonial-stars {
    color: var(--color-star);
    font-size: var(--text-lg);
    letter-spacing: 2px;
}

.testimonial-google {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    max-width: 500px;
    margin: 0 auto;
}

.testimonial-google-rating {
    font-size: var(--text-base);
    color: var(--color-text);
}

.testimonial-google-rating strong {
    font-size: var(--text-xl);
    color: var(--color-text-dark);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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");
}

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

.cta-section h2 {
    color: white;
    font-size: var(--text-3xl);
    margin-top: 0;
    margin-bottom: var(--space-4);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.cta-section .btn-accent {
    font-size: var(--text-lg);
    padding: var(--space-5) var(--space-12);
}

.cta-phone {
    margin-top: var(--space-6);
    color: white;
    font-size: var(--text-lg);
}

.cta-phone a {
    color: white;
    font-weight: 700;
    font-size: var(--text-2xl);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.cta-phone a:hover {
    opacity: 0.9;
    color: white;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    background: var(--color-bg-alt);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--space-2);
    font-size: var(--text-sm);
    flex-wrap: wrap;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: var(--space-2);
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.breadcrumb li[aria-current="page"] {
    color: var(--color-text-dark);
    font-weight: 500;
}

/* ========================================
   CONTENT WITH SIDEBAR
   ======================================== */
.category-content,
.article-content {
    padding: var(--space-16) 0;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-12);
    align-items: start;
}

.main-content h2 {
    margin-top: 0;
    margin-bottom: var(--space-8);
}

.category-articles-grid {
    display: grid;
    gap: var(--space-6);
}

/* Category Article Card (List style) */
.category-article-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    gap: var(--space-5);
    transition: all var(--transition-base);
}

.category-article-card:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary-light);
}

.category-article-card-image {
    width: 140px;
    height: 100px;
    background: var(--color-primary-pale);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-article-card-content {
    flex: 1;
    min-width: 0;
}

.category-article-card h3 {
    font-size: var(--text-base);
    margin: 0 0 var(--space-2);
    line-height: 1.4;
}

.category-article-card h3 a {
    color: var(--color-text-dark);
}

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

.category-article-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article-card .meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: flex;
    gap: var(--space-3);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-bg-alt) 100%);
    text-align: center;
}

.sidebar-cta h3 {
    font-size: var(--text-lg);
    margin: 0 0 var(--space-3);
    color: var(--color-text-dark);
}

.sidebar-cta p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

.sidebar-cta .btn {
    width: 100%;
    margin-bottom: var(--space-4);
}

.sidebar-phone {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-primary);
}

.sidebar-section h3 {
    font-size: var(--text-base);
    margin: 0 0 var(--space-4);
    color: var(--color-text-dark);
}

.sidebar-categories {
    list-style: none;
}

.sidebar-categories li {
    margin-bottom: var(--space-2);
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    padding: var(--space-3);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-categories a:hover {
    background: var(--color-bg-alt);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
    padding-left: var(--space-4);
}

/* ========================================
   ARTICLE PAGE
   ======================================== */
.article-header {
    margin-bottom: var(--space-8);
}

.article-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
}

.article-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    line-height: 1.15;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.article-meta .author {
    font-weight: 600;
    color: var(--color-text);
}

.article-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-primary-pale);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-10);
    overflow: hidden;
}

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

.article-body {
    max-width: var(--content-max);
    line-height: 1.8;
}

.article-body p {
    margin-bottom: var(--space-5);
}

.article-body h2 {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.article-body h3 {
    margin-top: var(--space-8);
}

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

.article-body ul {
    list-style-type: disc;
}

.article-body ul li::marker {
    color: var(--color-primary);
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.article-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-8) 0;
    background: var(--color-primary-pale);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--color-text);
}

.article-body blockquote p {
    margin-bottom: 0;
}

.article-body code {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--color-accent);
}

.article-body pre {
    background: var(--color-text-dark);
    color: #E5E7EB;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

.article-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

.article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: var(--space-12) 0;
}

/* Related link style */
a.related-link {
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a.related-link:hover {
    background-color: var(--color-primary-pale);
    border-radius: var(--radius-sm);
    padding: 2px 4px;
}

/* ========================================
   EXPERT BOX
   ======================================== */
.expert-box {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-primary-pale) 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    padding: var(--space-8);
    margin: var(--space-12) 0;
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

.expert-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-2xl);
    font-weight: 700;
    flex-shrink: 0;
    border: 3px solid var(--color-primary);
}

.expert-content {
    flex: 1;
}

.expert-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.expert-quote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.expert-name {
    font-weight: 700;
    color: var(--color-text-dark);
}

.expert-title {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */
.table-of-contents {
    background: transparent;
    border: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    margin: var(--space-8) 0;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-4) 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: color var(--transition-fast);
}

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

.toc-title {
    flex: 1;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-sm);
}

.toc-toggle {
    font-weight: bold;
    font-size: var(--text-sm);
    transition: transform var(--transition-base);
    color: var(--color-text-light);
}

.toc-header[aria-expanded="false"] .toc-toggle {
    transform: rotate(90deg);
}

.toc-content {
    overflow: hidden;
    transition: max-height var(--transition-slow);
    max-height: 2000px;
}

.toc-list {
    list-style: none;
    padding: var(--space-4) 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: var(--space-2);
}

.toc-link {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

/* ========================================
   RELATED ARTICLES
   ======================================== */
.related-articles,
.siblings-section {
    background: var(--color-bg-alt);
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border);
}

.related-articles h2,
.siblings-section h3 {
    margin-top: 0;
    margin-bottom: var(--space-8);
    text-align: center;
}

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

.sibling-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.sibling-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.sibling-card a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
}

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

/* ========================================
   TABLES
   ======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

table thead {
    background: var(--color-primary-pale);
}

table thead th {
    padding: var(--space-4);
    text-align: left;
    font-weight: 600;
    color: var(--color-text-dark);
    border-bottom: 2px solid var(--color-primary);
    font-size: var(--text-sm);
}

table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

table tbody tr:hover {
    background: var(--color-bg-alt);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody td {
    padding: var(--space-4);
    color: var(--color-text);
    font-size: var(--text-base);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--color-text-dark);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    text-decoration: none;
}

.footer-brand .logo-img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand .logo-text {
    color: white;
    font-size: var(--text-lg);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.footer-certifications {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-cert-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-secondary-pale);
}

.footer-nav h4,
.footer-contact h4 {
    color: white;
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

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

.footer-nav li {
    margin-bottom: var(--space-2);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-bottom nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}

.footer-bottom nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-bottom nav a:hover {
    color: white;
}

/* Simplified footer for inner pages */
footer.simple {
    padding: var(--space-8) 0;
}

footer.simple .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

footer.simple p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

footer.simple nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}

footer.simple nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

/* ========================================
   SITEMAP PAGE
   ======================================== */
.sitemap-section {
    margin-bottom: var(--space-12);
}

.sitemap-section h2 {
    margin-top: 0;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
    font-size: var(--text-xl);
}

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

.sitemap-section li {
    margin-bottom: var(--space-2);
}

.sitemap-section a {
    color: var(--color-text);
    font-size: var(--text-base);
}

/* ========================================
   LEGAL CONTENT
   ======================================== */
.legal-content {
    padding: var(--space-16) 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: var(--space-12);
}

.legal-content h2 {
    margin-top: 0;
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .sidebar-section {
        margin-bottom: 0;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-12);
    }

    .process-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
    }

    body {
        font-size: var(--text-base);
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Header */
    header nav .container {
        gap: var(--space-3);
    }

    .logo-text {
        display: none;
    }

    .logo-img {
        height: 36px;
    }

    /* Mobile navigation */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: var(--space-4);
        flex-direction: column;
        align-items: stretch;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu > li > a {
        padding: var(--space-4);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 var(--space-4);
        display: none;
    }

    .nav-menu > li.dropdown-open .nav-dropdown {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .phone-number {
        display: none;
    }

    .phone-btn {
        padding: var(--space-3);
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
    }

    .header-subtext {
        display: none;
    }

    /* Hero */
    .hero {
        padding: var(--space-16) 0;
    }

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .hero .lead {
        font-size: var(--text-base);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Reassurance */
    .reassurance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .reassurance-item:not(:last-child)::after {
        display: none;
    }

    .reassurance-item:nth-child(2)::after {
        display: none;
    }

    /* Categories */
    .categories {
        padding: var(--space-12) 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* Process */
    .process {
        padding: var(--space-12) 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .process-number {
        width: 64px;
        height: 64px;
        font-size: var(--text-xl);
    }

    /* Articles */
    .articles {
        padding: var(--space-12) 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* Sidebar */
    .sidebar {
        grid-template-columns: 1fr;
    }

    /* Category articles list */
    .category-article-card {
        flex-direction: column;
    }

    .category-article-card-image {
        width: 100%;
        height: 160px;
    }

    /* Article */
    .article-header h1 {
        font-size: var(--text-3xl);
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .expert-box {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }

    /* CTA Section */
    .cta-section {
        padding: var(--space-12) 0;
    }

    .cta-section .btn {
        width: 100%;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--space-6);
    }

    .testimonial-card::before {
        font-size: 80px;
        left: 15px;
    }

    .testimonial-text {
        font-size: var(--text-base);
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-certifications {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

    footer.simple .container {
        flex-direction: column;
        text-align: center;
    }

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

    /* Tables */
    table {
        font-size: var(--text-sm);
    }

    table thead th,
    table tbody td {
        padding: var(--space-3);
    }

    /* Related articles */
    .siblings-horizontal {
        grid-template-columns: 1fr;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .reassurance-grid {
        grid-template-columns: 1fr;
    }

    .reassurance-item {
        flex-direction: row;
        text-align: left;
        gap: var(--space-4);
    }

    .reassurance-icon {
        margin-bottom: 0;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flex */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Gap */
.gap-xs { gap: var(--space-2); }
.gap-sm { gap: var(--space-4); }
.gap-md { gap: var(--space-6); }
.gap-lg { gap: var(--space-8); }

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-4); }
.mt-md { margin-top: var(--space-6); }
.mt-lg { margin-top: var(--space-8); }
.mt-xl { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-4); }
.mb-md { margin-bottom: var(--space-6); }
.mb-lg { margin-bottom: var(--space-8); }
.mb-xl { margin-bottom: var(--space-12); }

.p-sm { padding: var(--space-4); }
.p-md { padding: var(--space-6); }
.p-lg { padding: var(--space-8); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
.text-bold { font-weight: 700; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

/* Background */
.bg-primary { background-color: var(--color-primary); color: white; }
.bg-alt { background-color: var(--color-bg-alt); }
.bg-light { background-color: var(--color-bg-tertiary); }

/* Border */
.border { border: 1px solid var(--color-border); }
.border-top { border-top: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.rounded { border-radius: var(--radius-lg); }
.rounded-sm { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Width */
.w-full { width: 100%; }
.w-half { width: 50%; }
.max-w-content { max-width: var(--content-max); }

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    header,
    footer,
    .breadcrumb,
    .related-articles,
    .siblings-section,
    .cta-section,
    .sidebar {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    table {
        page-break-inside: avoid;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Reduced motion */
@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;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000;
        --color-text-light: #000;
    }

    .btn-primary,
    .btn-accent {
        border: 2px solid currentColor;
    }
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   ARTICLE PREMIUM - COMPOSANTS AVANCÉS
   Template réutilisable pour tous les articles
   ======================================== */

/* ----------------------------------------
   1. BARRE DE PROGRESSION DE LECTURE
   ---------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    z-index: calc(var(--z-sticky) + 10);
    transition: width 0.1s ease-out;
}

/* ----------------------------------------
   2. ARTICLE HERO PREMIUM
   ---------------------------------------- */
.article-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-16) 0 var(--space-12);
    position: relative;
    overflow: hidden;
}

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

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

.article-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    backdrop-filter: blur(4px);
}

.article-hero h1 {
    color: white;
    font-size: var(--text-4xl);
    line-height: 1.15;
    margin-bottom: var(--space-4);
    max-width: 800px;
}

.article-hero .article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
}

.article-hero .article-meta .separator {
    color: rgba(255, 255, 255, 0.4);
}

.article-hero .article-meta .author {
    font-weight: 600;
    color: white;
}

.article-hero .article-meta .rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-hero .article-meta .stars {
    color: var(--color-star);
}

/* ----------------------------------------
   3. LAYOUT ARTICLE AVEC SOMMAIRE STICKY
   ---------------------------------------- */
.article-with-toc {
    padding: var(--space-12) 0;
}

.article-with-toc > .container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* Sommaire Sticky */
.sticky-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-nav {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.toc-nav h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

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

.toc-nav .toc-item {
    margin-bottom: var(--space-1);
}

.toc-nav .toc-item a {
    display: block;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text);
    font-size: var(--text-sm);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.toc-nav .toc-item a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-left-color: var(--color-primary-light);
}

.toc-nav .toc-item.active a {
    background: var(--color-primary-pale);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.toc-nav .toc-item.toc-h3 a {
    padding-left: var(--space-6);
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

/* CTA dans sommaire */
.toc-cta {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.toc-cta .btn {
    width: 100%;
    margin-bottom: var(--space-3);
}

.toc-cta .phone-link {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
}

/* Article Body dans layout avec TOC */
.article-with-toc .article-body {
    max-width: none;
}

/* ----------------------------------------
   4. CALLOUT BOXES (10 TYPES)
   ---------------------------------------- */

/* Base */
.callout-box {
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-8) 0;
    border-left: 4px solid;
    position: relative;
}

.callout-box-title {
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.callout-box-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.callout-box p:last-child {
    margin-bottom: 0;
}

/* Variante: Tip (À retenir - jaune) */
.callout-tip {
    background: #FFF9E6;
    border-left-color: #F5A623;
}

.callout-tip .callout-box-title {
    color: #B7791F;
}

.callout-tip .callout-box-title svg {
    color: #F5A623;
}

/* Variante: Warning (Attention - orange) */
.callout-warning {
    background: #FFF4E5;
    border-left-color: #FF9500;
}

.callout-warning .callout-box-title {
    color: #C05621;
}

.callout-warning .callout-box-title svg {
    color: #FF9500;
}

/* Variante: Info (Bon à savoir - bleu) */
.callout-info {
    background: #E8F4FD;
    border-left-color: #2196F3;
}

.callout-info .callout-box-title {
    color: #1565C0;
}

.callout-info .callout-box-title svg {
    color: #2196F3;
}

/* Variante: Expert (Conseil pro - vert) */
.callout-expert {
    background: #E8F5E9;
    border-left-color: #4CAF50;
}

.callout-expert .callout-box-title {
    color: #2E7D32;
}

.callout-expert .callout-box-title svg {
    color: #4CAF50;
}

/* Variante: Stat (Chiffre clé - centré) */
.callout-stat {
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-bg-alt) 100%);
    border-left-color: var(--color-primary);
    text-align: center;
    padding: var(--space-8);
}

.callout-stat .stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.callout-stat .stat-label {
    font-size: var(--text-lg);
    color: var(--color-text);
    font-weight: 600;
}

.callout-stat .stat-source {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

/* Variante: CTA contextuel */
.callout-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-left: none;
    border-radius: var(--radius-xl);
    color: white;
    text-align: center;
    padding: var(--space-8);
}

.callout-cta h4 {
    color: white;
    font-size: var(--text-xl);
    margin: 0 0 var(--space-2);
}

.callout-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-4);
}

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

.callout-cta .btn:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
}

.callout-cta .phone-cta {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
}

.callout-cta .phone-cta a {
    color: white;
    font-weight: 700;
    font-size: var(--text-lg);
}

/* ----------------------------------------
   5. ÉTAPES NUMÉROTÉES
   ---------------------------------------- */
.steps-process {
    margin: var(--space-8) 0;
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
}

.steps-process .step-item {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.steps-process .step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.steps-process .step-number {
    counter-increment: step-counter;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: var(--text-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.steps-process .step-number::before {
    content: counter(step-counter);
}

.steps-process .step-content {
    flex: 1;
}

.steps-process .step-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 var(--space-2);
}

.steps-process .step-description {
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

/* ----------------------------------------
   6. TABLEAU COMPARATIF AMÉLIORÉ
   ---------------------------------------- */
.comparison-table {
    margin: var(--space-8) 0;
    overflow-x: auto;
}

.comparison-table table {
    margin: 0;
}

.comparison-table thead th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table .highlight-row {
    background: var(--color-primary-pale);
}

.comparison-table .badge-recommended {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--color-secondary);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-left: var(--space-2);
}

/* ----------------------------------------
   7. FAQ ACCORDÉON
   ---------------------------------------- */
.faq-accordion {
    margin: var(--space-8) 0;
}

.faq-accordion h2 {
    margin-bottom: var(--space-6);
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-primary-light);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-dark);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

.faq-question .faq-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--color-text);
    line-height: 1.7;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------
   8. BEFORE/AFTER COMPARAISON
   ---------------------------------------- */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.before-after-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.before-after-item.before {
    border-top: 4px solid var(--color-error);
}

.before-after-item.after {
    border-top: 4px solid var(--color-success);
}

.before-after-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
}

.before-after-item.before .before-after-label {
    color: var(--color-error);
}

.before-after-item.after .before-after-label {
    color: var(--color-success);
}

.before-after-content {
    color: var(--color-text);
}

.before-after-content ul {
    margin: 0;
    padding-left: var(--space-5);
}

.before-after-content li {
    margin-bottom: var(--space-2);
}

/* ----------------------------------------
   9. BOUTON FLOTTANT SOMMAIRE (MOBILE)
   ---------------------------------------- */
.toc-float-btn {
    display: none;
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    align-items: center;
    justify-content: center;
}

.toc-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.toc-float-btn svg {
    width: 24px;
    height: 24px;
}

/* Modal sommaire mobile */
.toc-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-4);
}

.toc-modal.active {
    display: flex;
}

.toc-modal-content {
    background: var(--color-bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-6);
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.toc-modal-header h3 {
    margin: 0;
    font-size: var(--text-lg);
}

.toc-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--color-text-muted);
}

/* ----------------------------------------
   10. MICRO-INTERACTIONS & ANIMATIONS
   ---------------------------------------- */

/* Animation d'entrée pour les sections */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover sur les H2 avec lien de copie */
.article-body h2 {
    position: relative;
    cursor: pointer;
}

.article-body h2 .copy-link {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    color: var(--color-text-muted);
    padding: var(--space-1);
}

.article-body h2:hover .copy-link {
    opacity: 1;
}

.article-body h2 .copy-link:hover {
    color: var(--color-primary);
}

.article-body h2 .copy-link svg {
    width: 18px;
    height: 18px;
}

/* Notification de copie */
.copy-notification {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text-dark);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    z-index: var(--z-modal);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Smooth highlight pour sections actives */
.article-body section:target {
    animation: highlightSection 2s ease-out;
}

@keyframes highlightSection {
    0% {
        background: var(--color-primary-pale);
    }
    100% {
        background: transparent;
    }
}

/* ----------------------------------------
   11. RESPONSIVE - ARTICLE PREMIUM
   ---------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .article-with-toc > .container {
        grid-template-columns: 1fr;
    }

    .sticky-toc {
        position: static;
        margin-bottom: var(--space-8);
    }

    .toc-nav {
        background: var(--color-bg-alt);
    }

    .toc-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .toc-nav .toc-item.toc-h3 {
        display: none;
    }

    .toc-cta {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .reading-progress {
        height: 2px;
    }

    .article-hero {
        padding: var(--space-10) 0 var(--space-8);
    }

    .article-hero h1 {
        font-size: var(--text-3xl);
    }

    .article-hero .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .sticky-toc {
        display: none;
    }

    .toc-float-btn {
        display: flex;
    }

    .callout-box {
        padding: var(--space-5);
        margin: var(--space-6) 0;
    }

    .callout-stat {
        padding: var(--space-6);
    }

    .callout-stat .stat-number {
        font-size: var(--text-3xl);
    }

    .steps-process .step-item {
        flex-direction: column;
        gap: var(--space-3);
    }

    .steps-process .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: var(--space-4) var(--space-5);
        font-size: var(--text-sm);
    }

    .faq-answer-content {
        padding: 0 var(--space-5) var(--space-5);
    }

    .article-body h2 .copy-link {
        display: none;
    }
}
