/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #2c3e50;
    --color-primary-light: #34495e;
    --color-primary-dark: #1a252f;
    --color-secondary: #8b4513;
    --color-secondary-light: #d4b996;
    --color-accent: #d4b996;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-text-muted: #7f8c8d;
    --color-background: #ffffff;
    --color-background-light: #f8f9fa;
    --color-background-dark: #ecf0f1;
    --color-border: #dee2e6;
    --color-border-light: #e9ecef;
    --color-success: #22c55e;
    --color-cta: #ff6b35;
    --color-cta-light: #ffab91;
    --color-cta-dark: #d84315;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Crimson Text', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

h1 { font-size: 2.5rem; font-weight: 600; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.875rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.125rem; font-weight: 500; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

/* Header & Navigation */
.header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-sm);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--color-primary);
}

.nav-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: var(--spacing-xs) 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

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

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

/* Bouton Devis - Style spécial très visible */
.nav-link-devis {
    background: var(--color-cta) !important;
    color: white !important;
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    border: 3px solid var(--color-cta);
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s infinite;
}

.nav-link-devis::before {
    content: '🎯';
    margin-right: var(--spacing-xs);
    font-size: 1rem;
}

.nav-link-devis:hover {
    background: var(--color-cta-dark) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
    color: white !important;
    border-color: var(--color-cta-dark);
}

.nav-link-devis::after {
    display: none; /* Supprime la ligne de soulignement */
}

/* Animation de pulsation subtile */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.6);
    }
}

/* Responsive pour le bouton devis */
@media (max-width: 768px) {
    .nav-link-devis {
        padding: var(--spacing-xs) var(--spacing-md) !important;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .nav-link-devis::before {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-link-devis {
        animation: none; /* Supprime l'animation sur très petits écrans */
    }
}

/* Lien devis dans le footer */
.footer-link-devis {
    color: var(--color-cta);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-cta);
    transition: all 0.3s ease;
}

.footer-link-devis:hover {
    color: var(--color-cta-dark);
    border-bottom-color: var(--color-cta-dark);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 200;
}

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

.dropdown-menu li {
    border-bottom: 1px solid var(--color-border-light);
}

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

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--color-background-light);
    color: var(--color-primary);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

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

/* Hero Section avec éléments visuels CSS */
.hero {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 185, 150, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 62, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(212, 185, 150, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 185, 150, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: float-gentle 20s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(20px, -10px) rotate(-3deg);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Remplacement de l'image hero par un visuel CSS */
.hero-image {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-primary-light) 50%, 
        var(--color-secondary) 100%);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(212, 185, 150, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(44, 62, 80, 0.2) 0%, transparent 50%);
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 60px;
    background: linear-gradient(to right, 
        rgba(255,255,255,0.15) 0%, 
        rgba(255,255,255,0.25) 50%, 
        rgba(255,255,255,0.15) 100%);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Ajout d'icônes CSS pures */
.hero-image .visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Categories Section avec éléments décoratifs */
.categories {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
        transparent 0%, 
        var(--color-accent) 20%, 
        var(--color-secondary) 50%, 
        var(--color-accent) 80%, 
        transparent 100%);
}

.categories::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 5%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, 
        rgba(212, 185, 150, 0.1) 0%, 
        rgba(212, 185, 150, 0.05) 50%, 
        transparent 100%);
    border-radius: 50%;
    animation: float-decoration 15s ease-in-out infinite;
}

@keyframes float-decoration {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.7;
    }
    50% {
        transform: translate(-10px, -20px);
        opacity: 1;
    }
}

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

.section-title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

/* Remplacement des images de cartes par des visuels CSS */
.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, 
        var(--color-secondary-light) 0%, 
        var(--color-accent) 50%, 
        var(--color-secondary) 100%);
    transition: var(--transition);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, 
            transparent 0px, 
            transparent 10px, 
            rgba(255,255,255,0.03) 10px, 
            rgba(255,255,255,0.03) 20px),
        radial-gradient(circle at 70% 30%, rgba(44, 62, 80, 0.1) 0%, transparent 60%);
    opacity: 0.8;
    transition: var(--transition);
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.category-card:hover .card-image {
    transform: translateY(-4px);
}

.category-card:hover .card-image::before {
    opacity: 1;
}

/* Icônes spécifiques par catégorie */
.card-image .category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.card-description {
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.card-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.card-features li {
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    position: relative;
    padding-left: var(--spacing-md);
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--color-secondary);
}

/* Guide Preview Section */
.guide-preview {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-light);
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.guide-topics {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.guide-topics li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-md);
    color: var(--color-text-light);
}

.guide-topics li::before {
    content: '📖';
    position: absolute;
    left: 0;
}

.guide-articles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.article-preview {
    display: flex;
    background-color: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Remplacement des images d'articles par des visuels CSS */
.article-visual {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, 
            transparent 0px, 
            transparent 5px, 
            rgba(255,255,255,0.05) 5px, 
            rgba(255,255,255,0.05) 10px);
}

.article-icon {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 1;
    position: relative;
}

.article-content {
    padding: var(--spacing-sm);
    flex: 1;
}

.article-content h4 {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.article-content p {
    font-size: 0.8rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-muted);
}

.article-link {
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
}

.article-link:hover {
    text-decoration: underline;
}

/* Info Section */
.info-section {
    padding: var(--spacing-xxl) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.info-item {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--color-background-light);
    border-radius: 12px;
    transition: var(--transition);
}

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

.info-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.info-item h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Sidebar */
.sidebar,
.article-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    height: fit-content;
}

.sidebar-section {
    background-color: var(--color-background-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.sidebar-section h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-section h5,
.footer-section h6 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive Design */
/* Tablettes */
@media (max-width: 1024px) {
    .categories-grid {
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .article-preview {
        flex-direction: column;
    }
    
    .article-visual {
        width: 100%;
        height: 120px;
    }
    
    /* Make sidebars not sticky on mobile for better usability */
    .sidebar,
    .article-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* Section Articles Connexes Améliorée */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.related-article-card {
    background: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border-light);
}

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

.related-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-article-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.related-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
}

.related-card-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
    line-height: 1.4;
    font-weight: 600;
}

.related-card-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    flex-grow: 1;
}

.related-card-cta {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: var(--transition);
}

.related-article-card:hover .related-card-cta {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* Responsive pour les articles connexes */
@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .related-card-image {
        height: 150px;
    }
    
    .related-card-content {
        height: calc(100% - 150px);
    }
}

@media (max-width: 480px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation d'apparition progressive */
.related-article-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Sidebar Articles Connexes - Éléments visuels CSS */
.sidebar-related-visual {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-secondary) 50%, 
        var(--color-accent) 100%);
    transition: var(--transition);
}

.sidebar-related-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(255,255,255,0.05) 8px, 
            rgba(255,255,255,0.05) 16px),
        radial-gradient(circle at 70% 30%, rgba(212, 185, 150, 0.2) 0%, transparent 50%);
    opacity: 0.8;
}

.sidebar-related-visual::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(3px);
}

.sidebar-visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 2;
    transition: var(--transition);
}

/* Effet hover pour la sidebar */
.sidebar .related-article-card:hover .sidebar-related-visual {
    transform: scale(1.02);
}

.sidebar .related-article-card:hover .sidebar-visual-icon {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
}

/* Version compacte pour sidebar */
.sidebar .related-card-image {
    height: 120px;
}

.sidebar .related-card-content {
    height: auto;
    padding: var(--spacing-sm);
}

.sidebar .related-card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

.sidebar .related-card-description {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar .related-card-cta {
    font-size: 0.8rem;
}

/* Variantes d'icônes par thème */
.sidebar-icon-guide { }
.sidebar-icon-price { }
.sidebar-icon-material { }
.sidebar-icon-regulation { }
.sidebar-icon-maintenance { }
.sidebar-icon-personalization { }

.related-article-card:nth-child(2) { animation-delay: 0.1s; }
.related-article-card:nth-child(3) { animation-delay: 0.2s; }
.related-article-card:nth-child(4) { animation-delay: 0.3s; }
.related-article-card:nth-child(5) { animation-delay: 0.4s; }
.related-article-card:nth-child(6) { animation-delay: 0.5s; }
.related-article-card:nth-child(7) { animation-delay: 0.6s; }
.related-article-card:nth-child(8) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Éléments visuels pour les sections d'information */
.info-section {
    position: relative;
    background: linear-gradient(to bottom, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(248, 249, 250, 0.8) 100%);
}

.info-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: url("data:image/svg+xml,%3csvg width='100' height='50' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0,50 C30,10 70,10 100,50 L100,0 L0,0 Z' fill='%23f8f9fa'/%3e%3c/svg%3e") repeat-x;
    background-size: 100px 50px;
}

.info-item {
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(212, 185, 150, 0.1) 50%, 
        transparent 60%);
    transform: rotate(20deg);
    transition: var(--transition);
    opacity: 0;
}

.info-item:hover::before {
    opacity: 1;
    transform: rotate(25deg);
}

/* Motifs décoratifs pour le footer */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -20%;
    width: 140%;
    height: 200px;
    background: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='grain' patternUnits='userSpaceOnUse' width='20' height='20'%3e%3ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.05)'/%3e%3ccircle cx='18' cy='18' r='1' fill='rgba(255,255,255,0.05)'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100' height='100' fill='url(%23grain)'/%3e%3c/svg%3e");
    opacity: 0.3;
}

/* Bordures décoratives pour les sections */
.section-divider {
    height: 3px;
    background: linear-gradient(to right, 
        transparent 0%, 
        var(--color-accent) 25%, 
        var(--color-primary) 50%, 
        var(--color-accent) 75%, 
        transparent 100%);
    margin: var(--spacing-xl) auto;
    max-width: 200px;
    border-radius: 3px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Éléments de texture pour les boutons */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent);
    transition: left 0.5s;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn:hover::after {
    left: 100%;
}

/* Animations d'amélioration visuelle supplémentaires */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Effet shimmer pour les éléments visuels */
.card-image::after,
.hero-image::after {
    animation: shimmer 3s ease-in-out infinite;
}

/* Patterns géométriques décoratifs */
.geometric-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, transparent 20%, rgba(255,255,255,0.02) 21%),
        radial-gradient(circle at 75% 75%, transparent 20%, rgba(255,255,255,0.02) 21%),
        linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.01) 50%, transparent 51%);
    opacity: 0.5;
}

/* Effets de profondeur pour les sections */
.depth-shadow {
    position: relative;
}

.depth-shadow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 5%;
    right: 5%;
    height: 10px;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1) 0%, 
        transparent 100%);
    border-radius: 50%;
    filter: blur(5px);
}

/* Bordures animées pour les éléments hover */
.animated-border {
    position: relative;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-accent), 
        transparent);
    transition: left 0.5s ease;
}

.animated-border:hover::before {
    left: 100%;
}

/* Texture subtile pour les arrière-plans */
.textured-background {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Section Articles Connexes Principale */
.related-articles-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border-light);
    background: linear-gradient(135deg, 
        var(--color-background) 0%, 
        var(--color-background-light) 100%);
}

.related-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.related-header h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.related-header p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.related-articles-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.related-main-card {
    background: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.related-main-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-main-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.related-main-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-secondary) 50%, 
        var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.related-visual-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.related-main-category {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.related-main-content {
    padding: var(--spacing-md);
    height: calc(100% - 120px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-main-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.related-main-cta {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-top: auto;
}

.related-main-card:hover .related-main-cta {
    color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .related-articles-main-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .related-main-image {
        height: 100px;
    }
    
    .related-visual-icon {
        font-size: 2rem;
    }
    
    .related-main-title {
        font-size: 1rem;
    }
}
