/*
 * Component System
 * Lumix ANIM v2
 */

:root {
    /* Component variables (fallback values - will be overridden by themes) */
    --color-primary: #2c3e50;
    --color-primary-rgb: 44, 62, 80;
    --color-secondary: #ff6b9d;
    --color-secondary-rgb: 255, 107, 157;
    --color-accent: #e74c3c;
    --color-accent-rgb: 231, 76, 60;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-background: #f8f5f0;
    --color-surface: #ffffff;
    --color-border: #ecf0f1;
    
    /* Theme variables (fallback - seront redéfinies par les thèmes) */
    --theme-primary-color: #2c3e50;
    --theme-secondary-color: #ff6b9d;
    
    /* Shadows - Style Lumix V1 */
    --shadow-sm: 0 1px 2px 0 rgba(255, 107, 157, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(255, 107, 157, 0.2), 0 2px 4px -1px rgba(255, 107, 157, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(255, 107, 157, 0.2), 0 4px 6px -2px rgba(255, 107, 157, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(255, 107, 157, 0.2), 0 10px 10px -5px rgba(255, 107, 157, 0.1);
    --shadow-primary: 0 4px 20px rgba(255, 107, 157, 0.3);
    
    /* Gradients - Signature Lumix */
    --gradient-primary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-primary) 0%, #34495e 100%);
    
    /* Variables V1 pour compatibilité */
    --card-bg: var(--color-surface);
    --shadow-color: rgba(255, 107, 157, 0.3);
    --overlay-color: rgba(44, 62, 80, 0.9);
    --box-shadow: 0 4px 20px var(--shadow-color);
    --box-shadow-hover: 0 8px 30px var(--shadow-color);
    
    /* Typography - references typography.css variables */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-accent: 'Dancing Script', cursive;
    
    /* Typography Scale */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    
    /* Line heights */
    --lh-tight: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;
    
    /* Font Weights */
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    
    /* Animation & Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    
    /* Spacing System */
    --border-radius: 8px;
    --border-radius-large: 16px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    --spacing-3xl: 80px;
    --spacing-4xl: 120px;
}

/* Compatibility aliases (older variable names used across the theme) */
:root {
    /* Spacing aliases (compatibility) */
    --space-xs: var(--spacing-xs);
    --space-sm: var(--spacing-sm);
    --space-md: var(--spacing-md);
    --space-lg: var(--spacing-lg);
    --space-xl: var(--spacing-xl);

    /* Radius aliases */
    --radius-sm: 4px;
    --radius-md: var(--border-radius);
    --radius-lg: var(--border-radius-large);

    /* Extra spacing used in footer */
    --spacing-2xl: 56px;

    /* Footer specific colors */
    --color-footer-credits: rgba(255, 255, 255, 0.75);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: var(--fs-base);
    line-height: 1;
}

.btn-primary {
    /* Stronger primary CTA styling for better contrast and prominence */
    background: linear-gradient(135deg, #ff4b91 0%, #d94e9a 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 75, 145, 0.18);
    border: 1px solid rgba(0,0,0,0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 75, 145, 0.22);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

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

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

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--fs-lg);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-sm);
}

/* Specific CTA helper used by cards and theme CTA buttons */
.btn-cta,
.button.cta,
.card .btn,
.card .btn-primary {
    background: linear-gradient(135deg, #ff4b91 0%, #d94e9a 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 75, 145, 0.18);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.12s ease;
}

.btn-cta:hover,
.button.cta:hover,
.card .btn:hover,
.card .btn-primary:hover {
    filter: brightness(0.96);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 75, 145, 0.22);
}

/* Accessible focus state for keyboard users */
.btn-cta:focus-visible,
.button.cta:focus-visible,
.card .btn:focus-visible,
.card .btn-primary:focus-visible {
    outline: 3px solid rgba(255,75,145,0.18);
    outline-offset: 3px;
    border-radius: var(--radius-md);
}

/* Ensure footer/contact small buttons also have good contrast */
.footer-contact-link,
.footer-contact a {
    background: transparent;
    color: #ff4b91;
    font-weight: 600;
}
.footer-contact-link:hover,
.footer-contact a:hover {
    color: #ffffff;
    background: #ff4b91;
}

/* Cards */
.card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.card-header {
    margin-bottom: var(--space-md);
}

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

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

.card-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-menu a {
    color: var(--color-text);
    font-weight: var(--fw-medium);
    transition: var(--transition-fast);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a.current {
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* === HEADER === */
/* Skip link pour accessibilité */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

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

.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-bottom: 2px solid rgba(var(--color-secondary-rgb), 0.3);
    padding: var(--spacing-md) 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 50px;
    pointer-events: none;
}

.header-content > * {
    pointer-events: auto;
}

/* === BRANDING === */
.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    max-width: 400px;
    pointer-events: none;
}

.site-branding a,
.site-branding img {
    pointer-events: auto;
}

/* Branding avec logo custom */
.branding-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.branding-container .custom-logo {
    max-height: 50px;
    width: auto;
}

.branding-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Branding - Styles pour Lumix et ANIM */
.lumix-brand-link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lumix-logo-part {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.anim-part {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.lumix-brand-link:hover .lumix-logo-part {
    transform: translateY(-2px);
    text-shadow: 2px 4px 12px rgba(var(--color-secondary-rgb), 0.5);
}

.lumix-brand-link:hover .anim-part {
    color: var(--color-secondary) !important;
}

/* Avec logo custom */
.lumix-anim {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.lumix-anim .lumix-logo-part {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--color-secondary) !important;
}

.lumix-anim .anim-part {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lumix-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 1.5px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* === NAVIGATION === */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.3rem;
    align-items: center;
}

.main-navigation .nav-menu li {
    margin: 0;
}

.site-header .main-navigation .nav-menu a {
    color: var(--color-secondary) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease !important;
    position: relative;
    padding: 0.6rem 0.9rem;
    white-space: nowrap;
    border-radius: 8px;
    background: transparent !important;
    cursor: pointer;
}

/* Effet au survol - très spécifique */
body .site-header .main-navigation .nav-menu a:hover,
.site-header .main-navigation .nav-menu a:focus,
.site-header .main-navigation .nav-menu a:active {
    background: var(--color-secondary) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(var(--color-secondary-rgb), 0.5) !important;
}

.site-header .main-navigation .nav-menu li.current-menu-item > a,
.site-header .main-navigation .nav-menu li.current_page_item > a {
    background: rgba(var(--color-secondary-rgb), 0.25) !important;
    box-shadow: 0 2px 8px rgba(var(--color-secondary-rgb), 0.3) !important;
}

/* Dropdown Menu */
.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.nav-menu ul li {
    width: 100%;
}

.nav-menu ul a {
    padding: var(--spacing-sm);
    border-radius: 0;
}

/* === MOBILE MENU === */
/* Mobile menu styles are handled by mobile-menu.css for consistency */

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .site-header {
        padding: var(--spacing-sm) 0;
    }
    
    .header-content {
        min-height: 60px;
    }
    
    .site-branding {
        flex: 1;
        justify-content: flex-start;
    }
    
    .custom-logo-link img {
        max-height: 50px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .lumix-logo {
        font-size: 1.8rem;
    }
    
    .lumix-anim {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .lumix-tagline {
        font-size: 0.7rem;
    }
    
    /* Main navigation hidden on tablet and mobile - handled by mobile-menu.css */
    .main-navigation {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    /* Hide mobile menu toggle on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: var(--spacing-xl) 0 0 0;
    margin-top: var(--spacing-3xl);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.footer-content {
    display: grid;
    /* Slightly wider left column for branding, narrower right for contact */
    grid-template-columns: 0.5fr 2fr;
}

.footer-info {
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 6px; /* small breathing space under logo */
    /* Nudge branding slightly lower for better visual centering */
    padding-top: 10px;
}

/* Center logo above the brand name in the footer branding block */
.footer-branding {
    align-items: center;
    text-align: center;
}

/* Make each footer column center its content vertically for perfect alignment */
.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: start;
    flex: 1 1 0;
    min-width: 0;
}

/* Branding column centered */
.footer-branding-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make the navigation column center its content both vertically and horizontally */
.footer-nav-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand-name {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.footer-branding .lumix-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-branding .lumix-anim {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-contact-item {
    margin: 0;
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.footer-contact-icon svg,
.footer-contact svg {
    color: var(--color-secondary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}


.footer-contact-link,
.footer-contact a {
    color: rgba(var(--color-secondary-rgb), 0.95);
    text-decoration: none;
    transition: all 0.18s ease;
    /* smaller padding for a tighter layout in the contact column */
    padding: 0.25rem 0.25rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    font-family: var(--font-primary);
    font-style: normal;
    font-size: var(--fs-base);
}

.footer-contact-link:focus,
.footer-contact a:focus {
    outline: none; /* handled by focus-visible rule below */
}

.footer-contact-link:hover,
.footer-contact a:hover {
    color: white;
    background: var(--color-secondary);
    transform: none;
    box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb), 0.4);
}

.footer-info p {
    margin: 0.3rem 0;
}

.footer-info strong {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-tagline {
    color: var(--color-secondary);
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 6px;
}


/* Footer navigation: vertical list with menu title by default */
.footer-navigation {
    display: block;
}

.footer-menu-title {
    color: rgba(var(--color-primary-rgb), 0.95);
    font-size: var(--fs-2xl); /* reduced to 1.5rem for better balance */
    margin: 0 0 calc(var(--spacing-sm) / 1.25) 0;
    font-weight: var(--fw-semibold);
    font-family: var(--font-heading);
}

/* When using a page template without a header, make the "Lumix" word pink for stronger branding.
   Support common body class names that themes/templates might add: .no-header, .template-no-header, .page-template-no-header */
body.no-header .lumix-logo,
body.template-no-header .lumix-logo,
body.page-template-no-header .lumix-logo {
    color: var(--color-secondary) !important;
}

/* Ensure ANIM stays visible (white) on those templates */
body.no-header .lumix-anim,
body.template-no-header .lumix-anim,
body.page-template-no-header .lumix-anim {
    color: white !important;
}

.footer-nav-columns {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    gap: var(--spacing-xl);
}

.footer-nav-menu {
    display: flex;
    flex-direction: column; /* vertical by default */
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    align-items: flex-start; /* align lists left on desktop */
}

.footer-nav-menu a {
    color: rgba(var(--color-secondary-rgb), 0.95);
    font-size: var(--fs-base);
    font-weight: 400;
    font-family: var(--font-primary);
    font-style: normal;
    transition: all 0.28s ease;
    text-decoration: none;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    background: transparent;
    letter-spacing: 0.2px;
}

.footer-nav-menu a:focus {
    outline: none; /* handled by focus-visible below */
}

.footer-nav-menu a:hover {
    color: white;
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb), 0.4);
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    padding-left: 1rem;
}

/* Footer logo sizing & spacing */
.footer-logo {
    display: block;
}

.footer-logo .custom-logo-link,
.footer-logo img {
    display: block;
    max-height: 120px; /* compact logo */
    width: auto;
}


/* Social icons: larger, better contrast and easier to tap */
.footer-social a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.28s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.03);
}

.footer-social a:hover {
    color: white;
    background: var(--color-secondary);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(var(--color-secondary-rgb), 0.35);
}

.footer-social a:focus {
    outline: 2px solid rgba(var(--color-secondary-rgb), 0.9);
    outline-offset: 4px;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Improved focus visibility for keyboard users */
.footer-nav-menu a:focus-visible,
.footer-nav-menu a:focus,
.footer-contact-link:focus-visible,
.footer-contact-link:focus {
    outline: 3px solid rgba(var(--color-secondary-rgb), 0.95);
    outline-offset: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    text-align: center;
    width: 100%;
    margin-top: var(--spacing-lg);
}

.footer-credits {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credits a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
        gap: var(--spacing-md);
    }

    .footer-branding-column,
    .footer-contact-column,
    .footer-nav-column {
        width: 100%;
    }

    /* Show footer navigation on mobile as vertical list */
    .footer-navigation {
        display: block;
        margin: var(--spacing-sm) 0;
    }

    .footer-nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }
    .footer-contact p {
        justify-content: center; /* mobile: center contact items */
    }

    .footer-social {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

/* Desktop: align contact and social to the end (right) but keep them vertically centered */
.footer-contact-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Center social block under contact and tune spacing */
.footer-contact-column .footer-social {
    margin-top: 0.5rem;
}

/* Ensure contact paragraphs align right on desktop but center on smaller screens */
.footer-contact p {
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: var(--spacing-md);
    }
    .footer-branding-column,
    .footer-contact-column,
    .footer-nav-column {
        width: 100%;
    }
    .footer-navigation {
        display: block;
        margin: var(--spacing-sm) 0;
    }
    .footer-nav-menu {
        gap: 0.25rem;
    }
    .footer-contact {
        align-items: center;
    }
    .footer-social {
        justify-content: center;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: white;
    color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(var(--color-secondary-rgb), 0.5);
}

.back-to-top:focus,
.back-to-top:focus-visible {
    outline: 3px solid rgba(var(--color-secondary-rgb), 0.95);
    outline-offset: 4px;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
}

/* === COMPOSANTS SIGNATURE LUMIX V1 === */

/* Styles spéciaux pour les titres */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.subtitle {
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

/* Liens avec style Lumix */
a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Classes utilitaires thématiques */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

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

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

.bg-card {
    background: var(--card-bg);
    border: 1px solid var(--color-border);
}

/* Effets hover signature Lumix */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Zone de contenu Elementor */
.content-zone {
    min-height: 200px;
    padding: var(--spacing-lg);
    background: var(--color-background);
    border: 2px dashed var(--color-border);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
    position: relative;
}

.content-zone::before {
    content: "Zone Elementor - Ajoutez votre contenu ici";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-light);
    font-style: italic;
    pointer-events: none;
}

.content-zone.has-content::before {
    display: none;
}

/* Grilles Lumix */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.grid-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.grid-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-services,
    .grid-testimonials,
    .grid-pricing {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Responsive header layout */
    .main-navigation {
        display: none;
    }
    
    /* Branding responsive */
    .lumix-logo {
        font-size: 1.8rem;
    }
    
    .lumix-anim {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .lumix-tagline {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .lumix-logo {
        font-size: 1.8rem;
    }
    
    .lumix-anim {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .lumix-tagline {
        font-size: 0.6rem;
    }
}

/* ------------------------------------------------------------------ */
/* Footer accents — Option C (moved here so component system controls it) */
/* ------------------------------------------------------------------ */
.site-footer, footer.site-footer, .footer-widgets {
    background: #142731; /* deep slate background */
    color: rgba(255,255,255,0.85);
}

/* ------------------------------------------------------------------
   Enhanced Heading Styles (global, theme-aware)
   - Adds a tasteful gradient + subtle text-shadow to h1/h2 and a
     decorative underline pseudo-element for visual weight.
   - Provides a utility class `.heading-accent` for editors to apply
     the stronger treatment selectively without forcing it everywhere.
   ------------------------------------------------------------------ */

/* Default enhanced headings (Variant A - Bold Gradient + Soft Stroke) */
h1, h2 {
    /* Gradient fill, subtle stroke and stronger shadow for punch */
    /* background: linear-gradient(90deg, var(--color-secondary, #ff6b35) 0%, var(--color-accent, #ffd23f) 60%); */
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* gradient is the fill */
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 26px rgba(0,0,0,0.22);
    -webkit-text-stroke: 0.9px rgba(0,0,0,0.06);
    position: relative;
    transition: background-position 3s ease;
}

/* Subtle animated gradient shift (very slow) */
@keyframes lumix-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2 {
    animation: lumix-gradient-shift 8s ease-in-out infinite alternate;
}

/* Decorative pill underline for Variant A */
h1::after, h2::after {
    content: '';
    display: block;
    height: 8px;
    width: 160px;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--color-secondary-rgb, 255,107,53),1) 0%, rgba(var(--color-accent-rgb, 255,210,63),0.95) 100%);
    box-shadow: 0 12px 30px rgba(var(--color-secondary-rgb, 255,107,53), 0.12);
}

/* Utility class for editors to apply Variant A selectively */
.heading-accent--A,
.heading-accent {
    background: linear-gradient(90deg, var(--color-secondary, #ff6b35) 0%, var(--color-accent, #ffd23f) 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    text-shadow: 0 10px 26px rgba(0,0,0,0.22);
    -webkit-text-stroke: 0.9px rgba(0,0,0,0.06);
    animation: lumix-gradient-shift 8s ease-in-out infinite alternate;
}

/* Slightly smaller underline and reduced stroke on narrow screens */
@media (max-width: 768px) {
    h1::after, h2::after {
        width: 110px;
        height: 6px;
    }
    .heading-accent--A,
    .heading-accent {
        text-shadow: 0 6px 16px rgba(0,0,0,0.16);
        -webkit-text-stroke: 0.6px rgba(0,0,0,0.05);
    }
}

.site-footer .widget-title,
.site-footer h2,
footer .footer-widget-title {
    position: relative;
    color: #f1dff3;
    padding-left: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.site-footer .widget-title:before,
.site-footer h2:before,
footer .footer-widget-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 18px;
    background: linear-gradient(180deg,#b66aa0,#7a3b6a);
    border-radius: 3px;
}

.site-footer .site-info, footer .site-info {
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 16px;
}

@media (max-width: 480px) {
    .site-footer .widget-title,
    .site-footer h2,
    footer .footer-widget-title {
        padding-left: 10px;
    }
}
