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

/* ============================================================================
   SMARTES — Fiches techniques v2 (JSON → PHP → HTML sémantique)
   ============================================================================ */

/* ── Hero compact ───────────────────────────────────────────────────────── */
.hero-smartes-compact {
    min-height: 0;
    padding: 2.5rem 1.5rem 2.75rem;
    margin-bottom: 1.25rem;
}

.hero-description-narrow {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── Lien fiche technique depuis hero SMARTES ───────────────────────────── */
.smartes-hero-tech-link-wrap { margin-top: 1.75rem; }

.smartes-hero-tech-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.95);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}

.smartes-hero-tech-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.75); }

/* ── Page layout ────────────────────────────────────────────────────────── */
.ds-page { padding-bottom: 3rem; }

.ds-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.ds-toc { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.ds-toc-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

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

.ds-print-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ds-btn-print {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.ds-btn-print:hover { border-color: var(--primary-color); color: var(--primary-color); }

.ds-section { margin-bottom: 4rem; }
.ds-section-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.35rem; }
.ds-section-desc  { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.ds-back          { margin-top: 2rem; }

/* ── Strip de cards ─────────────────────────────────────────────────────── */
.ds-strip-wrap {
    overflow-x: auto;
    padding: 6px 4px 12px;        /* espace pour le box-shadow actif */
    margin: 0 -4px 1.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.ds-strip {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    min-width: 100%;
}

.ds-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 118px;
    padding: 0.875rem 0.625rem 0.75rem;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.ds-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(46,204,113,.14);
    transform: translateY(-2px);
}

.ds-card--active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 2.5px var(--primary-color);
    transform: translateY(-2px);
}

.ds-card-all {
    border-style: dashed;
    color: var(--text-secondary);
    justify-content: center;
}

.ds-card-all.ds-card--active { border-style: solid; color: var(--primary-dark); }

.ds-card-img {
    width: 86px; height: 68px;
    display: flex; align-items: center; justify-content: center;
}

.ds-card-img img       { max-width: 100%; max-height: 100%; object-fit: contain; }
.ds-card-img svg       { width: 38px; height: 38px; color: var(--primary-color); }

.ds-card-info { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.ds-card-label { font-size: 0.6875rem; font-weight: 700; font-family: var(--font-heading); color: var(--text-primary); line-height: 1.3; }
.ds-card--active .ds-card-label { color: var(--primary-dark); }
.ds-card-sub   { font-size: 0.5625rem; color: var(--text-secondary); }

.ds-card-badge {
    font-size: 0.5625rem; font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary-dark);
    margin-top: 0.1rem;
}

.ds-badge-tri { background: #dbeafe; color: #1d4ed8; }
[data-theme="dark"] .ds-badge-tri { background: #1e3a5f; color: #93c5fd; }

/* ── Tableau ─────────────────────────────────────────────────────────────── */
.ds-block { }

.ds-table-wrap { position: relative; }

.ds-scroll-hint {
    display: flex;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.ds-scroll-hint-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.ds-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-primary);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.ds-table-scroll:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

.ds-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    line-height: 1.35;
}

/* colgroup collapse */
col.ds-col-label { min-width: 15rem; }
col.ds-col-data  { min-width: 5.5rem; }

/* thead : ligne photos */
.ds-thead-gamme th { border-bottom: none; }

.ds-th-gamme-corner {
    position: sticky; left: 0; z-index: 4;
    background: var(--bg-secondary);
    vertical-align: middle;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ds-th-gamme {
    padding: 0.75rem 0.5rem 0.5rem;
    background: var(--bg-primary);
    text-align: center;
    border-left: 2px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.ds-th-gamme-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.ds-th-photo {
    width: 80px; height: 64px;
    object-fit: contain;
    display: block;
}

.ds-th-gamme-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.ds-th-gamme-desc {
    font-size: 0.625rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* thead : ligne types (sticky) */
.ds-thead-types {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bg-secondary);
}

.ds-thead-types th {
    border-top: none;
    border-bottom: 2px solid var(--primary-color);
}

.ds-th-type {
    padding: 0.45rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    white-space: nowrap;
    border-left: 1px solid var(--border-color);
}

/* tbody */
.ds-table td, .ds-table th {
    padding: 0.5rem 0.6rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}

.ds-table tbody tr:last-child td,
.ds-table tbody tr:last-child th { border-bottom: none; }

.ds-row-label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-primary);
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    min-width: 15rem;
    max-width: 20rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-shadow: 4px 0 8px rgba(0,0,0,.05);
}

.ds-cell {
    text-align: center;
    color: var(--text-secondary);
    border-left: 1px solid var(--border-color);
}

/* ── Lignes de section (titres de groupe) ───────────────────────────────── */
/* <th> sticky pour le label + <td> pour le fond pleine largeur */
.ds-section-label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--primary-light);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-dark);
    padding: 0.5rem 0.75rem;
    border-bottom-color: rgba(46,204,113,.2);
    white-space: nowrap;
}

.ds-section-fill {
    background: var(--primary-light);
    border-bottom-color: rgba(46,204,113,.2);
}

/* ── Lignes highlight (specs clés) : gris clair, distinct du vert section ── */
.ds-row-highlight .ds-row-label {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.ds-row-highlight .ds-cell {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.ds-row-ref .ds-cell    { font-family: monospace; font-size: 0.7rem; }
.ds-row-price .ds-cell  { font-weight: 700; color: var(--primary-dark); }
.ds-row-pkwh .ds-cell   { font-size: 0.75rem; color: var(--text-secondary); }

/* Debug : prix venant du JSON (non trouvé sur PrestaShop) */
.ds-price-json { color: #dc2626 !important; }

/* Badge "Tarif PS" sur la ligne prix quand source = PrestaShop */
.ds-ps-badge {
    display: inline-block;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: #dbeafe;
    color: #1d4ed8;
    vertical-align: middle;
    margin-left: 0.35rem;
    white-space: nowrap;
}

/* Mention tarifaire en pied de tableau */
.ds-tarif-mention-row td {
    position: sticky;
    left: 0;
    font-size: 0.6875rem;
    font-style: italic;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ds-tarif-mention-row td svg { color: var(--primary-color); }

/* dark mode */
[data-theme="dark"] .ds-section-label { background: var(--bg-tertiary); color: var(--primary-color); }
[data-theme="dark"] .ds-section-fill  { background: var(--bg-tertiary); }
[data-theme="dark"] .ds-row-highlight .ds-row-label,
[data-theme="dark"] .ds-row-highlight .ds-cell { background: var(--bg-secondary); }

[data-theme="dark"] .ds-row-highlight .ds-row-label,
[data-theme="dark"] .ds-row-highlight .ds-cell {
    background: var(--bg-tertiary);
}
[data-theme="dark"] .ds-row-label        { background: var(--bg-primary); }
[data-theme="dark"] .ds-th-gamme-corner  { background: var(--bg-secondary); }
[data-theme="dark"] .ds-thead-types      { background: var(--bg-secondary); }

/* ── CSS @media print ───────────────────────────────────────────────────── */
@page { size: A4 landscape; margin: 8mm 8mm; }

@media print {
    /* Masquer tout sauf le contenu des tableaux */
    .skip-link,
    .navbar, .header-secondary, .footer, .hero,
    .breadcrumb, .ds-topbar, .ds-strip-wrap,
    .ds-section-desc, .ds-toc, .ds-btn-print,
    .ds-back, .sg-cta-banner, .ds-scroll-hint,
    .no-print { display: none !important; }

    /* Reset layout — supprimer les min-height basées sur vh qui créent une page blanche */
    body, main, .main-content { min-height: 0 !important; padding: 0; margin: 0; }
    .hero { min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
    body, .container, .ds-page { max-width: 100%; padding: 0; margin: 0; }
    .ds-table-scroll { overflow: visible; border: none; box-shadow: none; border-radius: 0; }
    .ds-table-wrap   { margin-bottom: 0; }
    .ds-section           { break-before: page; margin-bottom: 0; }
    /* Classe ajoutée par JS sur la section à imprimer → pas de page blanche initiale */
    .ds-section.ds-print-first { break-before: auto !important; }

    /* Impression sélective : masquer la section non demandée */
    body.ds-printing-ac-coupling #ds-hybride     { display: none !important; }
    body.ds-printing-hybride     #ds-ac-coupling { display: none !important; }

    /* Police et cellules ultra-compactes */
    .ds-table {
        width: 100%;
        font-size: 6pt;
        table-layout: fixed;
    }
    .ds-table td, .ds-table th {
        padding: 2pt 3pt;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Mention tarifaire : pas de truncation */
    .ds-tarif-mention-row td {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 5.5pt;
        position: static;
        display: table-cell;
        /* Couvrir toute la largeur du tableau */
        width: 100%;
    }

    /* Largeurs colonnes fixes */
    col.ds-col-label { width: 95pt; }
    col.ds-col-data  { width: auto; }   /* partagent l'espace restant */

    /* Libellés */
    .ds-row-label {
        position: static;
        box-shadow: none;
        min-width: unset;
        max-width: 95pt;
        font-size: 6pt;
        white-space: normal;
        word-break: break-word;
    }

    /* thead : photos masquées, descriptions masquées */
    .ds-th-photo      { display: none; }
    .ds-th-gamme-desc { display: none; }
    .ds-th-gamme-corner, .ds-thead-types { position: static; }
    .ds-th-gamme { padding: 2pt 3pt; vertical-align: bottom; }
    .ds-th-gamme-label { font-size: 6pt; }
    .ds-th-gamme-badge { display: none; }
    .ds-th-type { font-size: 5.5pt; padding: 2pt; }

    /* Sections */
    .ds-section-label {
        background: #e8f5e0 !important;
        color: #1a6b2a !important;
        position: static;
        font-size: 6pt;
    }
    .ds-section-fill { background: #e8f5e0 !important; }

    /* Prix/refs */
    .ds-row-ref .ds-row-label,
    .ds-row-ref .ds-cell { font-size: 5.5pt; }

    /* Entête d'impression */
    .ds-print-only { display: flex !important; }
    .ds-print-header {
        justify-content: space-between;
        align-items: baseline;
        padding: 0 0 4pt;
        margin-bottom: 5pt;
        border-bottom: 0.5pt solid #ccc;
        font-size: 8pt;
        font-weight: 600;
    }
    .ds-print-date { font-size: 6pt; color: #666; }
    .ds-print-hint {
        display: block;
        font-size: 5.5pt;
        color: #888;
        font-style: italic;
        margin-top: 2pt;
    }
}

/* L'entête d'impression est caché hors print */
.ds-print-only { display: none; }

/* ── Responsive tablette (≤ 768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
    .ds-table { font-size: 0.75rem; }
    .ds-table td, .ds-table th { padding: 0.4rem 0.45rem; }
    .ds-row-label { min-width: 9rem; max-width: 11rem; }
    col.ds-col-label { min-width: 9rem; }
    col.ds-col-data  { min-width: 5rem; }
    .ds-section-title { font-size: 1.25rem; }
    .ds-th-photo { width: 56px; height: 44px; }
    .ds-card { width: 100px; padding: 0.625rem 0.5rem; }
    .ds-card-img { width: 72px; height: 56px; }
    .ds-topbar { gap: 0.625rem; }
}

/* ── Layout stacked mobile (≤ 600px) ────────────────────────────────────── */
/*
 * Chaque ligne de données devient :
 *   [Nom de la spec]        ← th.ds-row-label pleine largeur, muted
 *   [val1]   [val2]  ...    ← td.ds-cell inline-flex, côte à côte
 * Les sections restent des bandeaux verts.
 * On utilise display:block sur <tr> + display:inline-flex sur <td>
 * (plus fiable cross-browser que display:flex sur <tr>).
 */
@media (max-width: 600px) {
    /* Reset scroll — plus nécessaire, layout vertical */
    .ds-table-scroll { overflow-x: hidden; border-radius: 10px; }

    /* Convertir en blocs */
    .ds-table,
    .ds-table tbody { display: block; }
    .ds-table thead { display: none; }

    /* Sections : label sticky → static, fill masqué */
    .ds-section-row   { display: block; }
    .ds-section-label {
        display: block;
        width: 100%;
        position: static;
        white-space: normal;
    }
    .ds-section-fill { display: none !important; }

    /* Lignes de données */
    .ds-row { display: block; border-bottom: 1px solid var(--border-color); }

    /* Libellé de spec : pleine largeur, rôle de sous-titre */
    .ds-row-label {
        display: block;
        width: 100%;
        position: static;
        min-width: unset !important;
        max-width: unset !important;
        box-shadow: none;
        background: transparent;
        font-size: 0.6875rem;
        font-weight: 500;
        color: var(--text-secondary);
        padding: 0.55rem 0.75rem 0.1rem;
        border-bottom: none;
    }

    /* Valeurs : inline-flex côte à côte, contraintes pour wrapping */
    .ds-cell {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        /* Largeur max dynamique selon le nb de types visibles (JS → --ds-visible-cols) */
        max-width: calc((100vw - 2rem) / var(--ds-visible-cols, 3));
        min-width: 0;
        padding: 0.1rem 0.4rem 0.6rem;
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--text-primary);
        border: none;
        text-align: center;
        vertical-align: top;
        /* Autoriser le retour à la ligne sur les valeurs longues */
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
        hyphens: auto;
    }

    /* Code type : micro-label au-dessus de la valeur */
    .ds-cell::before {
        content: attr(data-type);
        display: block;
        font-size: 0.5rem;
        font-weight: 500;
        color: var(--text-secondary);
        letter-spacing: 0.03em;
        margin-bottom: 0.15rem;
        white-space: nowrap;
    }

    /* Highlight : fond sur toute la ligne via <tr> */
    .ds-row-highlight { background: var(--bg-secondary); }
    .ds-row-highlight .ds-row-label,
    .ds-row-highlight .ds-cell { background: transparent; }

    /* Refs / prix */
    .ds-row-ref .ds-cell   { font-size: 0.7rem; font-weight: 400; font-family: monospace; }
    .ds-row-price .ds-cell { font-size: 0.85rem; }
    .ds-row-pkwh .ds-cell  { font-size: 0.75rem; font-weight: 400; }

    /* Cards plus compactes sur mobile */
    .ds-card      { width: 90px;  padding: 0.5rem 0.4rem; }
    .ds-card-img  { width: 64px;  height: 50px; }
    .ds-card-label { font-size: 0.625rem; }

    .ds-section-title { font-size: 1.125rem; }
    .ds-topbar { flex-direction: column; align-items: flex-start; }
}
