/**
 * UFK App CSS - Styles personnalisés du projet cms.swiss-green.ch
 * 
 * Ce fichier surcharge les styles du framework (core.css)
 * Il est chargé APRÈS core.css, permettant de personnaliser le projet
 * 
 * 🔒 Protection : Ce fichier ne sera JAMAIS écrasé lors des mises à jour UFK
 */

/* ============================================================================
   POLICES PERSONNALISÉES - Montserrat (Google Fonts)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&display=swap');

/* ============================================================================
   Variables personnalisées - Thème Swiss Green
   ============================================================================ */
:root {
    /* Couleur principale du projet - Emerald (innovation) */
    /* Note: Logo actuel #58A333 - À harmoniser si validé */
    --primary-color: #2ecc71;
    --primary-hover: #27ae60;
    --primary-light: #E8F5E0; /* Vert chaud - pont entre emerald et logo */
    --primary-dark: #1e8449;
    
    /* Dégradés */
    --primary-gradient: linear-gradient(135deg, #2ecc71, #27ae60);
    
    /* Hero gradient - Emerald avec transparence pour superposition d'images */
    --hero-gradient: linear-gradient(135deg, rgba(46, 204, 113, 0.95) 0%, rgba(39, 174, 96, 0.95) 100%);
    --hero-gradient-solid: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    
    /* Police personnalisée - Montserrat */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================================
   HERO GRADIENT - Classe réutilisable pour tous les hero
   ============================================================================ */

/* Hero avec gradient emerald (remplace les styles inline) */
.hero-emerald {
    background: var(--hero-gradient-solid);
}

.hero-emerald h1 {
    color: white;
}

.hero-emerald .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
}

.hero-emerald .hero-description {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Badge hero (icône + texte) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

/* Boutons hero */
.hero-emerald .btn.btn-hero-primary {
    background: white !important;
    color: #27ae60 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-emerald .btn.btn-hero-primary svg {
    color: #27ae60 !important;
}

.hero-emerald .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

/* Hovers boutons hero */
.hero-emerald .btn-hero-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-emerald .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Actions hero (boutons) */
.hero-emerald .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-emerald .hero-actions .btn {
    padding: 1rem 2rem;
}

/* Hero SMARTES - titre plus grand */
.hero-emerald.hero-smartes h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-emerald.hero-smartes .hero-subtitle {
    font-size: 1.5rem;
}

.hero-emerald.hero-smartes .hero-description {
    margin-top: 1.5rem;
}

/* Mode sombre - Adaptation des couleurs vertes */
[data-theme="dark"] {
    --primary-color: #6bc140;
    --primary-hover: #58A333;
    --primary-light: #2d4a1e;
    --primary-dark: #7fd34e;
}

/* ============================================================================
   LOGO - Switch automatique mode sombre (prefers-color-scheme)
   ============================================================================ */

/* Par défaut : logo light visible, logo dark caché */
.logo-light {
    display: inline-block;
}

.logo-dark {
    display: none;
}

/* Si le navigateur est en mode sombre : inverser */
@media (prefers-color-scheme: dark) {
    .logo-light {
        display: none;
    }
    
    .logo-dark {
        display: inline-block;
    }
}

/* Si thème forcé manuellement via data-theme */
[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: inline-block;
}

[data-theme="light"] .logo-light {
    display: inline-block;
}

[data-theme="light"] .logo-dark {
    display: none;
}

/* ============================================================================
   TYPOGRAPHIE - Montserrat (titres/impact) + Inter (texte/UI)
   ============================================================================
   
   RÈGLE TYPOGRAPHIQUE :
   - Montserrat : Titres, branding, héros, éléments d'impact
   - Inter : Corps de texte, boutons, navigation, UI interactive
   
   Pourquoi ce mix fonctionne :
   - Contraste géométrique (Montserrat) vs humaniste (Inter)
   - Montserrat = caractère et impact visuel
   - Inter = lisibilité optimale pour le contenu
   ============================================================================ */

/* Base : Inter pour tout le corps (lisibilité maximale) */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================================
   MONTSERRAT - Éléments d'impact et branding
   ============================================================================ */

/* Titres principaux - Montserrat pour l'impact */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Titres secondaires - Montserrat semibold */
h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Hero - Maximum d'impact */
.hero h1,
.hero-title,
.hero-search-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle,
.hero-search-subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Branding */
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Footer headings */
.footer-heading {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Stats et chiffres clés */
.stats-grid .stat-value,
.stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ============================================================================
   INTER - UI interactive et lisibilité
   ============================================================================ */

/* Boutons - Inter pour lisibilité (petits textes) */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Navigation - Inter pour clarté */
.nav-link,
.navbar-nav a,
.footer-links-list a {
    font-family: 'Inter', sans-serif;
}

/* Breadcrumb - Inter */
.breadcrumb {
    font-family: 'Inter', sans-serif;
}

/* Tags et badges - Inter */
.tag, .badge,
.article-meta {
    font-family: 'Inter', sans-serif;
}

/* Formulaires - Inter */
input, textarea, select, button {
    font-family: 'Inter', sans-serif;
}

/* ============================================================================
   Classes utilitaires
   ============================================================================ */

/* Forcer Montserrat */
.font-heading {
    font-family: var(--font-heading);
}

/* Forcer Inter */
.font-body {
    font-family: 'Inter', sans-serif;
}

/* Poids Montserrat */
.heading-light { font-family: var(--font-heading); font-weight: 300; }
.heading-regular { font-family: var(--font-heading); font-weight: 400; }
.heading-medium { font-family: var(--font-heading); font-weight: 500; }
.heading-semibold { font-family: var(--font-heading); font-weight: 600; }
.heading-bold { font-family: var(--font-heading); font-weight: 700; }
.heading-black { font-family: var(--font-heading); font-weight: 900; }

/* ============================================================================
   Vos styles personnalisés commencent ici
   ============================================================================ */

/* Espacement entre header et contenu principal */
/* Pas de padding-top car les pages principales ont des hero collés au header */
#main-content {
    padding-top: 0;
}

/* ============================================================================
   ANCRES - Offset pour header fixe
   ============================================================================ */

/* Compense la hauteur du header fixe lors du scroll vers les ancres */
[id] {
    scroll-margin-top: 100px;
}

/* Sections principales avec ancres */
section[id] {
    scroll-margin-top: 120px;
}

/* ============================================================================
   BOUTONS OUTLINE - Navigation ancres
   ============================================================================ */

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

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

.btn-outline:visited {
    color: var(--primary-color);
}

.btn-outline:visited:hover {
    color: white;
}

/* ============================================================================
   LIENS - Reset visited pour tous les boutons
   ============================================================================ */

.btn:visited,
.btn-primary:visited {
    color: inherit;
}

.btn-primary:visited {
    color: white;
}

/* Liens ancres dans les boutons - pas de style visited bleu/violet */
a.btn[href^="#"],
a.btn-outline[href^="#"],
a.btn-primary[href^="#"] {
    color: inherit;
}

a.btn-outline[href^="#"] {
    color: var(--primary-color);
}

a.btn-outline[href^="#"]:hover {
    color: white;
}

a.btn-primary[href^="#"] {
    color: white;
}

/* ============================================================================
   HERO SEARCH - Style avec image de fond
   ============================================================================ */

.hero-search {
    position: relative;
    z-index: 10;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
    background-color: #0d2a1a; /* Harmonisé avec emerald #2ecc71 (famille vert frais) */
}

/* Image de fond avec proportions préservées */
.hero-search-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.4;
}

.hero-search-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

/* Sous-titre vert */
.hero-search-subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary-color, #58A333);
    margin-bottom: 1.5rem;
}

/* Titre principal */
.hero-search-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    line-height: 1.2;
    margin: 0 0 2.5rem 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Conteneur blanc autour de la recherche */
.hero-search-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.875rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto 0.5rem auto;
    max-width: 650px;
    width: 100%;
}

/* Barre de recherche */
.hero-search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.hero-search-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: #f9f9f9;
    color: #333;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-search-input:focus {
    border-color: var(--primary-color, #58A333);
    background: white;
}

.hero-search-input::placeholder {
    color: #999;
}

.hero-search-btn {
    background: var(--primary-color, #58A333);
    color: white;
    border: none;
    border-radius: 0.625rem;
    padding: 1rem 1.75rem;
    font-family: inherit;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: var(--primary-hover, #4a8c2a);
    transform: translateY(-1px);
}

/* CTA en bas */
.hero-search-cta {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.hero-search-cta a {
    color: var(--primary-color, #58A333);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-search-cta a:hover {
    color: var(--primary-hover, #4a8c2a);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .hero-search {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    
    .hero-search-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-search-title {
        font-size: 1.785rem;
    }
    
    .hero-search-wrapper {
        padding: 1.25rem 1rem;
    }
    
    .hero-search-form {
        flex-direction: column;
    }
    
    .hero-search-input {
        width: 100%;
        text-align: left;
    }
    
    .hero-search-btn {
        width: 100%;
    }
    
    .hero-search-cta {
        font-size: 0.75rem;
        margin-bottom: 4rem;
    }
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    border-color: white;
    color: white;
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@media (max-width: 640px) {
    .scroll-indicator {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
    }
    
    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================================
   BANDEAU DES MARQUES
   ============================================================================ */

.brands-banner {
    background: #f5f5f5;
    padding: 2rem 1rem;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.brands-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.brand-logo {
    height: 40px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .brands-container {
        gap: 2rem;
    }
    
    .brand-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .brands-banner {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .brands-container {
        gap: 1.5rem;
    }
    
    .brand-logo {
        height: 24px;
    }
}

/* ============================================================================
   FOOTER - Système accordéon mobile ultra-compact
   ============================================================================ */

/* Footer base */
.footer {
    background: #ECF4EA;
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin-top: 3rem;
    padding: 0;  /* Override core.css padding pour gérer manuellement */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Desktop : Fat Footer 4 colonnes */
.footer-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0 0 0;  /* Pas de padding-bottom, margin-top du copyright gère l'espacement */
}

.footer-column {
    min-width: 0;
    text-align: left;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-align: left;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

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

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--primary-color, #58A333);
}

/* Footer company info */
.footer-company-name {
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.footer-company-address {
    line-height: 1.8;
    margin: 0;
    color: var(--text-secondary);
}

.footer-company-phone {
    margin-top: 1rem;
}

.footer-company-phone a,
.footer-company-phone a:visited,
.footer-company-phone a:link {
    color: var(--primary-color, #58A333);
    text-decoration: none;
    font-weight: 600;
}

.footer-company-hours {
    line-height: 1.8;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-logo {
    width: 180px;
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

/* Mobile footer company overrides */
.footer-section-company .footer-company-name {
    margin-top: 0;
}

.footer-section-company .footer-company-address {
    line-height: 1.6;
    font-size: 0.875rem;
}

.footer-section-company .footer-company-phone a {
    font-size: 0.875rem;
}

.footer-section-company .footer-company-hours {
    line-height: 1.6;
    font-size: 0.8125rem;
}

.footer-section-company .footer-logo {
    margin: 1rem 0.5rem;
}

.footer-section-company .footer-company-info {
    padding: 0 0.5rem 1rem 0.5rem;
}

/* Mobile : Accordéon caché sur desktop */
.footer-accordion {
    display: none;
}

/* Mobile : Accordéon maître et éléments mobiles cachés sur desktop */
.footer-master-accordion,
.footer-mobile-compact,
.footer-mobile-header,
.footer-copyright-inline {
    display: none;
}

/* Copyright bar desktop */
.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin-top: 1.0rem;
}

.footer-copyright p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer social icons - Centrées */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(88, 163, 51, 0.1);
    border-radius: 50%;
    color: var(--primary-color, #58A333);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-color, #58A333);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 163, 51, 0.3);
}

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

/* ============================================================================
   FOOTER MOBILE - Accordéon ultra-compact
   ============================================================================ */

@media (max-width: 768px) {
    /* Cacher fat footer desktop */
    .footer-columns {
        display: none;
    }
    
    /* Cacher copyright desktop */
    .footer-copyright-desktop {
        display: none;
    }
    
    /* Afficher footer mobile compact */
    .footer-mobile-compact {
        display: block;
    }
    
    /* Header mobile : Bouton + Copyright inline */
    .footer-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 0;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }
    
    .footer-master-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 0.9375rem;
        font-weight: 600;
        padding: 0;
        cursor: pointer;
        transition: color 0.2s ease;
        flex-shrink: 0;
    }
    
    .footer-master-toggle:hover {
        color: var(--primary-color, #58A333);
    }
    
    .footer-master-toggle svg {
        width: 18px;
        height: 18px;
        color: var(--text-secondary);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .footer-mobile-compact.active .footer-master-toggle svg {
        transform: rotate(180deg);
    }
    
    /* Copyright inline à droite (visible par défaut) */
    .footer-copyright-inline {
        display: block;
        text-align: right;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .footer-copyright-inline p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* Quand master ouvert : cacher copyright inline */
    .footer-mobile-compact.active .footer-copyright-inline {
        display: none;
    }
    
    /* Copyright desktop mobile : caché par défaut */
    .footer-copyright-desktop {
        display: none;
    }
    
    /* Quand master ouvert : afficher copyright en bas */
    .footer-mobile-compact.active ~ .footer-copyright-desktop {
        display: block;
        padding: 0 0 1.25rem 0;
        margin-top: 1rem;
        border-top: none;
    }
    
    .footer-mobile-compact.active ~ .footer-copyright-desktop p {
        font-size: 0.8125rem;
    }
    
    /* Contenu maître caché par défaut */
    .footer-master-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }
    
    .footer-mobile-compact.active .footer-master-content {
        max-height: 2000px;
        opacity: 1;
    }
    
    /* Afficher accordéon secondaire à l'intérieur */
    .footer-accordion {
        display: block;
        padding: 0;
    }
    
    .footer-section {
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }
    
    /* Section coordonnées toujours visible sur mobile */
    .footer-section-company {
        border-top: 1px solid var(--border-color, #e5e7eb);
        padding: 1rem 0;
        text-align: left;
    }
    
    .footer-section-company .footer-logo {
        display: block;
    }
    
    .footer-section-company p {
        text-align: left;
    }
    
    .footer-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 0.9375rem;
        font-weight: 600;
        padding: 1rem 0.5rem;
        cursor: pointer;
        text-align: left;
        transition: color 0.2s ease;
    }
    
    .footer-toggle:hover {
        color: var(--primary-color, #58A333);
    }
    
    .footer-toggle svg {
        width: 20px;
        height: 20px;
        color: var(--text-secondary);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .footer-section.active .footer-toggle svg {
        transform: rotate(180deg);
    }
    
    /* Liste cachée par défaut */
    .footer-section .footer-links-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        padding-left: 0.5rem;
    }
    
    .footer-section.active .footer-links-list {
        max-height: 500px;
        opacity: 1;
        padding-bottom: 1rem;
    }
    
    .footer-section .footer-links-list li {
        margin-bottom: 0.75rem;
    }
    
    .footer-section .footer-links-list a {
        font-size: 0.875rem;
    }
}

/* ============================================================================
   MODE SOMBRE - Footer
   ============================================================================ */

[data-theme="dark"] .footer {
    background: var(--bg-primary);
}

[data-theme="dark"] .footer-columns,
[data-theme="dark"] .footer-accordion,
[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .footer-master-accordion {
    border-color: var(--gray-700);
}

[data-theme="dark"] .footer-heading {
    color: #f3f4f6;
}

[data-theme="dark"] .footer-links-list a {
    color: #d1d5db;
}

[data-theme="dark"] .footer-links-list a:hover {
    color: var(--primary-color, #6bc140);
}

[data-theme="dark"] .footer-toggle,
[data-theme="dark"] .footer-master-toggle {
    color: #f3f4f6;
}

[data-theme="dark"] .footer-toggle:hover,
[data-theme="dark"] .footer-master-toggle:hover {
    color: var(--primary-color, #6bc140);
}

[data-theme="dark"] .footer-copyright p {
    color: #9ca3af;
}

[data-theme="dark"] .footer-social a {
    background: rgba(107, 193, 64, 0.15);
    color: var(--primary-color, #6bc140);
}

[data-theme="dark"] .footer-social a:hover {
    background: var(--primary-color, #6bc140);
    color: white;
}

/* ============================================================================
   CARTES ODOO - Formulaires contact
   ============================================================================ */

.odoo-card {
    display: block;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.odoo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.odoo-card-content {
    text-align: center;
}

.odoo-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.odoo-card:hover .odoo-card-icon {
    transform: scale(1.1);
}

.odoo-card-title {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.odoo-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Couleurs spécifiques des icônes */
.odoo-card-icon--green { background: var(--primary-color); }
.odoo-card-icon--red { background: #e74c3c; }
.odoo-card-icon--blue { background: #3498db; }
.odoo-card-icon--orange { background: #e67e22; }
.odoo-card-icon--purple { background: #9b59b6; }

/* Mode sombre */
[data-theme="dark"] .odoo-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .odoo-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   GALERIE SMARTES - Réalisations
   ============================================================================ */

.smartes-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image principale (featured) - occupe 2 colonnes et 2 rangées */
.smartes-gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.smartes-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.smartes-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.smartes-gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay avec texte */
.smartes-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smartes-gallery-item:hover .smartes-gallery-overlay {
    opacity: 1;
}

.smartes-gallery-overlay span {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive tablette */
@media (max-width: 900px) {
    .smartes-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 250px repeat(2, 180px);
    }
    
    .smartes-gallery-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Responsive mobile */
@media (max-width: 600px) {
    .smartes-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }
    
    .smartes-gallery-featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .smartes-gallery-overlay {
        opacity: 1;
    }
}

/* ============================================================================
   MINI-GALERIES - Sections Solutions
   ============================================================================ */

.mini-gallery {
    margin-top: 2rem;
}

.mini-gallery-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mini-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.mini-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-gallery-item:hover img {
    transform: scale(1.05);
}

/* Placeholder pour photos à venir */
.mini-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color, #e5e7eb);
    border-radius: 8px;
    color: var(--text-secondary);
}

.mini-gallery-empty span {
    font-size: 0.8125rem;
}

/* Lien "Voir plus" */
.mini-gallery-more {
    text-align: center;
    margin-top: 1rem;
}

.mini-gallery-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.mini-gallery-more a:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .mini-gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mini-gallery-item,
    .mini-gallery-empty {
        aspect-ratio: 16/9;
    }
}

/* ============================================================================
   PAGE RÉALISATIONS - Filtres et Grille
   ============================================================================ */

.realisations-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.realisations-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.realisations-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.realisations-filter.active {
    background: var(--filter-color, var(--primary-color));
    border-color: var(--filter-color, var(--primary-color));
    color: white;
}

/* Grille des réalisations */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.realisation-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.realisation-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.realisation-card:hover img {
    transform: scale(1.05);
}

.realisation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

.realisation-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.realisation-overlay h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: white;
}

.realisation-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.realisation-location {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .realisations-filters {
        gap: 0.5rem;
    }
    
    .realisations-filter {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
    
    .realisations-filter svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .realisations-filter span {
        display: none;
    }
    
    .realisations-grid {
        grid-template-columns: 1fr;
    }
    
    .realisation-overlay {
        opacity: 1;
    }
}

/* ============================================================================
   SECTION PROFESSIONNELS (Home)
   ============================================================================ */

.pro-section-card {
    background: linear-gradient(135deg, #1a3a2e 0%, #0d2818 100%);
    padding: 2rem 3rem;
    border-radius: 16px;
    color: white;
}

.pro-section-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.pro-section-text {
    flex: 1;
}

.pro-section-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.pro-section-actions .btn {
    min-width: 200px;
}

@media (max-width: 768px) {
    .pro-section-card {
        padding: 1.5rem;
    }
    
    .pro-section-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .pro-section-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================================================
   BANDEAU NOS SERVICES (Home)
   ============================================================================ */

.services-banner {
    background: linear-gradient(135deg, #1a3a2e 0%, #0d2818 100%);
    padding: 4rem 0;
    margin: 4rem 0;
}

.services-banner-header {
    margin-bottom: 2.5rem;
}

.services-banner-header h2 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.services-banner-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.services-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.services-banner-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.services-banner-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a2e;
    margin: 0 0 0.75rem 0;
    transition: color 0.3s ease;
}

.services-banner-card p {
    color: #5a6c63;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Carte active (mise en avant permanente) */
.services-banner-card-active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: transparent;
}

.services-banner-card-active h3 {
    color: #fff;
}

.services-banner-card-active p {
    color: rgba(255, 255, 255, 0.9);
}

/* Hover cartes normales */
.services-banner-card:not(.services-banner-card-active):hover {
    border-color: #2ecc71;
    transform: translateY(-4px);
}

/* Hover carte active (subtil) */
.services-banner-card-active:hover {
    transform: translateY(-4px);
}

/* CTA en bas */
.services-banner-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.services-banner-cta-text h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.services-banner-cta-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin: 0;
}

.services-banner-btn {
    background: #2ecc71;
    color: #fff !important;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.services-banner-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .services-banner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .services-banner {
        padding: 3rem 0;
    }
    
    .services-banner-header h2 {
        font-size: 1.5rem;
    }
    
    .services-banner-cta {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .services-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   SECTION "PAS QU'UN SHOP" (Home)
   ============================================================================ */

.not-just-shop {
    background: #f5f7f6;
    padding: 4rem 0;
}

.not-just-shop-header {
    max-width: 700px;
    margin-bottom: 3rem;
}

.not-just-shop-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a3a2e;
    margin: 0 0 1rem 0;
}

.not-just-shop-header p {
    color: #5a6c63;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.not-just-shop-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.not-just-shop-image {
    border-radius: 12px;
    overflow: hidden;
}

.not-just-shop-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.not-just-shop-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.not-just-shop-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.not-just-shop-feature div {
    display: flex;
    flex-direction: column;
}

.not-just-shop-feature strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a3a2e;
    margin-bottom: 0.15rem;
}

.not-just-shop-feature span {
    font-size: 0.85rem;
    color: #5a6c63;
}

@media (max-width: 992px) {
    .not-just-shop-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .not-just-shop {
        padding: 3rem 0;
    }
    
    .not-just-shop-header h2 {
        font-size: 1.5rem;
    }
    
    .not-just-shop-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .not-just-shop-image img {
        height: 220px;
    }
}

/* ============================================================================
   SECTION SÉCURISER + FAQ (Home)
   ============================================================================ */

.secure-faq-banner {
    background: linear-gradient(135deg, #1a3a2e 0%, #0d2818 100%);
    padding: 4rem 0;
}

.secure-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Colonne gauche */
.secure-faq-left h2 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 2rem 0;
}

.secure-faq-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.secure-faq-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.secure-faq-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: 0.1rem;
}

.secure-faq-point strong {
    display: block;
    color: #2ecc71;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.secure-faq-point p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Colonne droite : FAQ */
.secure-faq-accordion {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.secure-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.secure-faq-item:last-child {
    border-bottom: none;
}

.secure-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a3a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.2s ease;
}

.secure-faq-item summary::-webkit-details-marker {
    display: none;
}

.secure-faq-item summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #5a6c63;
    border-bottom: 2px solid #5a6c63;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.secure-faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.secure-faq-item summary:hover {
    background: #f9fafb;
}

.secure-faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.secure-faq-answer p {
    color: #5a6c63;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.secure-faq-answer a {
    color: #2ecc71;
    text-decoration: underline;
}

.secure-faq-answer a:hover {
    color: #27ae60;
}

@media (max-width: 992px) {
    .secure-faq-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .secure-faq-banner {
        padding: 3rem 0;
    }
    
    .secure-faq-left h2 {
        font-size: 1.4rem;
    }
    
    .secure-faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .secure-faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }
}

/* ============================================================================
   COMPOSANTS RÉUTILISABLES SWISS-GREEN
   ============================================================================ */

/* CTA Banner (swissgreen_cta_banner) */
.sg-cta-banner {
    background: linear-gradient(135deg, #1a3a2e 0%, #0d2818 100%);
    padding: 3rem 0;
    margin: 4rem 0;
}

.sg-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.sg-cta-text h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.sg-cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    max-width: 500px;
}

.sg-cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sg-cta-btn {
    background: #2ecc71;
    color: #fff !important;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sg-cta-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.sg-cta-secondary {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .sg-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sg-cta-text p {
        max-width: none;
    }
    
    .sg-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reassurance Banner (swissgreen_reassurance_banner) */
.sg-reassurance-banner {
    background: linear-gradient(135deg, #1a3a2e 0%, #0d2818 100%);
    padding: 3rem 0;
    margin: 4rem 0;
}

.sg-reassurance-banner h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
}

.sg-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.sg-reassurance-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sg-reassurance-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ecc71;
}

.sg-reassurance-item strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sg-reassurance-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.sg-reassurance-cta {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .sg-reassurance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sg-reassurance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================================================
   PAGE OUTILS - CALCULATEURS RESPONSIVE
   ============================================================================ */

/* Lignes appareils - Desktop */
.appareil-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px 80px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Résultats calculateur */
.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.calc-result-card {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Navigation rapide */
.outils-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Bouton outline vert */
.btn-outline-green {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #2ecc71;
    border: 2px solid #2ecc71;
    transition: all 0.2s ease;
}

.btn-outline-green:hover {
    background: #2ecc71;
    color: white;
}

/* Mobile */
@media (max-width: 640px) {
    /* Lignes appareils - empilées verticalement */
    .appareil-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .appareil-row > div:first-child {
        grid-column: 1 / -1;
    }
    
    /* Résultats en colonne */
    .calc-results-grid {
        grid-template-columns: 1fr;
    }
    
    /* Formulaire padding réduit */
    .calc-form-container {
        padding: 1.25rem !important;
    }
    
    /* Navigation en colonne */
    .outils-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .outils-nav .btn {
        justify-content: center;
    }
}

/* ============================================================================
   EXTRACTION STYLES INLINE - Pages CMS
   ============================================================================ */

/* Contact - liens sociaux */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(88, 163, 51, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(88, 163, 51, 0.3);
}

[data-theme="dark"] .social-link {
    background: rgba(107, 193, 64, 0.15);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Home + Entreprise - grilles responsives */
@media (max-width: 768px) {
    .about-grid,
    .mission-grid {
        grid-template-columns: 1fr !important;
    }

    .about-grid > div:last-child,
    .mission-grid > div:last-child {
        order: -1;
    }

    .about-grid img,
    .mission-grid img {
        height: 250px !important;
    }
}

/* Stockage résidentiel - CTA responsive */
@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr !important;
    }

    .cta-grid > div:last-child {
        border-left: none !important;
        padding-left: 0 !important;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Home - autocomplete recherche */
.hero-search-wrapper {
    position: relative;
}

.hero-search-form {
    position: relative;
    z-index: 9999;
}

.hero-search-wrapper.suggestions-open {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.search-suggestions {
    position: fixed;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    max-height: 50vh;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    border-top: 1px solid #eee;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.search-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}

.search-suggestion-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.search-suggestion-ref {
    font-size: 0.75rem;
    color: #888;
}

.search-suggestion-price {
    font-weight: 600;
    color: #2ecc71;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-loading,
.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #888;
}

.search-view-all {
    display: block;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    color: #2ecc71;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
}

.search-view-all:hover {
    background: #2ecc71;
    color: white;
}

/* Partenaires - filtres, grille et carte */
.partners-search-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.partners-search-input {
    flex: 2;
    min-width: 0;
}

.partners-canton-select {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

.partners-canton-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

@media (max-width: 640px) {
    .partners-search-input,
    .partners-canton-select {
        flex: none;
        width: 100%;
    }
}

.partners-no-region-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-primary));
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.partners-no-region-note a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.partners-no-region-note a:hover {
    text-decoration: underline;
}

.partners-search .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.partners-search .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.partners-search .form-input::placeholder {
    color: var(--text-tertiary);
}

.partners-filters {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.partners-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.partner-tag-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.partner-tag-filter:hover {
    border-color: var(--primary-color);
}

.partner-tag-filter.active {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--primary-color);
}

.partner-tag-filter input {
    display: none;
}

.partner-tag-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.partner-tag-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.partner-tag-count {
    background: var(--bg-tertiary);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.partner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.partner-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.partner-badge.victron {
    background: #003366;
    color: white;
}

.partner-card-body p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.partner-card-body p svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-tertiary);
}

.partner-card-body a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.partner-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.partner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.partner-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.partner-card-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.partner-card-actions .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.partner-card-actions .btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.partner-card-actions .btn-primary {
    box-shadow: 0 2px 4px rgba(var(--primary-rgb, 0, 128, 0), 0.2);
}

.partner-card-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--primary-rgb, 0, 128, 0), 0.3);
}

.view-toggle {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.view-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.partners-map {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partners-tags-grid {
        gap: 0.5rem;
    }

    .partner-tag-filter {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}
