/*
Theme Name: VitrinePro
Theme URI: https://example.com
Author: Votre nom
Author URI: https://example.com
Description: Thème vitrine professionnel avec panneau d'administration complet
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitrinepro
*/

/* Variables CSS */
:root {
    --color-primary: #006837;
    --color-secondary: #4a90e2;
    --color-titles: #333333;
    --color-text: #666666;
    --color-bg: #ffffff;
    --color-border: #e0e0e0;
}

/* Placeholders avec faible opacité */
input::placeholder,
textarea::placeholder {
    opacity: 0.5 !important;
    color: inherit !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    opacity: 0.5 !important;
    color: inherit !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    opacity: 0.5 !important;
    color: inherit !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    opacity: 0.5 !important;
    color: inherit !important;
}

/* Classe pour masquer les éléments (mobile-compatible) */
.hidden {
    display: none !important;
}

/* Prévenir le scroll automatique du clavier mobile */
html, body {
    overscroll-behavior: none;
}

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

/* Prévention des débordements horizontaux */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Images et médias responsives */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Tables responsives */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

@media screen and (min-width: 768px) {
    table {
        display: table;
    }
}

html {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Images responsives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Liens */
a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Header */
.site-header {
    background: #fff;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Types de headers */
/* Normal - Header standard */
.header-type-normal {
    position: relative;
}

/* Sticky - Header fixe qui reste en haut lors du scroll */
.header-type-sticky {
    position: relative;
}

.header-type-sticky.header-sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* Transparent - Header transparent qui devient opaque au scroll */
.header-type-transparent {
    background: transparent !important;
    box-shadow: none !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-type-transparent.header-scrolled {
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

body:has(.header-type-transparent) {
    padding-top: var(--header-height, 80px);
}

/* Shrink - Header qui rétrécit au scroll */
.header-type-shrink {
    position: relative;
    transition: min-height 0.3s ease, padding 0.3s ease;
}

.header-type-shrink.header-shrunk {
    min-height: 60px !important;
}

.header-type-shrink.header-shrunk .site-logo img,
.header-type-shrink.header-shrunk .custom-logo {
    max-height: 40px !important;
    transition: max-height 0.3s ease;
}

.header-type-shrink.header-shrunk .header-content {
    padding: 0.5rem 0 !important;
    transition: padding 0.3s ease;
}

/* Fixed - Header toujours fixe en haut de la page */
.header-type-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

body:has(.header-type-fixed) {
    padding-top: var(--header-height, 80px);
}

.site-header .container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1rem 0;
    padding-right: 180px; /* Espace pour le bouton devis */
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
}

/* Burger Menu Mobile - CACHÉ SUR PC */
.mobile-burger-menu {
    display: none !important;
}

.header-actions-group {
    display: none !important;
}

.main-navigation {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.main-navigation ul {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-titles);
    font-weight: 500;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--color-primary);
    outline: none;
}

.header-contact {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.header-contact a {
    white-space: nowrap;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

/* Menu Mobile Overlay */
.mobile-menu-overlay {
    display: none !important;
    position: fixed;
    z-index: 99999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    overflow-y: auto;
    pointer-events: none !important;
}

.mobile-menu-overlay.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    z-index: 99999;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 3rem 1.5rem 2rem;
    box-sizing: border-box;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border: 2px solid #000;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 100000;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #f0f0f0;
    border-color: #333;
    transform: scale(1.1);
}

.mobile-menu-services {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

.mobile-menu-devis-button {
    display: block;
    width: calc(100% - 60px);
    max-width: calc(100% - 60px);
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #00804d 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 104, 55, 0.3);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mobile-menu-devis-button:hover,
.mobile-menu-devis-button:active {
    background: linear-gradient(135deg, #00804d 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 104, 55, 0.4);
}

.mobile-menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.mobile-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-services-list li {
    margin: 0;
    padding: 0;
}

.mobile-services-list a {
    display: block;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-services-list a:hover,
.mobile-services-list a:focus {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateX(5px);
}

body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

body.menu-open .hero-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}


/* Bouton Devis gratuit */
.header-devis-button {
    position: absolute;
    top: 1rem;
    right: 20px;
    z-index: 10;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.header-devis-button:hover,
.header-devis-button:focus {
    /* Le background sera appliqué dynamiquement via vitrinepro_apply_custom_colors() */
    background: var(--color-primary) !important;
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    -moz-box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    outline: none;
}

.header-devis-button:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* Hero Section */
/* Amélioration de la qualité d'affichage des images */
.hero-section {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Amélioration de la qualité du rendu des images de fond */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Qualité optimale pour les images de fond - lissage haute qualité */
.hero-section[style*="background-image"] {
    /* Pas de pixelisation - lissage optimal pour les photos */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    /* Interpolation bicubique pour meilleure qualité */
    -ms-interpolation-mode: bicubic !important;
    /* Forcer l'utilisation du GPU pour meilleur rendu */
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
    /* Améliorer le lissage */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    /* Forcer le rendu haute qualité */
    will-change: transform !important;
}

/* Qualité optimale pour les images normales */
img,
.body-separator-hero img,
.body-separator-footer img {
    /* Lissage haute qualité */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    -ms-interpolation-mode: bicubic !important;
    /* Forcer le rendu haute qualité */
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
}

.hero-section {
    /* Le dégradé sera appliqué dynamiquement via vitrinepro_apply_custom_colors() si la couleur secondaire est activée */
    background: var(--color-primary);
    color: #fff;
    /* Padding géré par style inline avec !important - pas de padding par défaut */
    text-align: center;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Hero Section pour les pages de services - même taille que hero-section */
.service-hero {
    /* Le background sera défini via les styles inline pour permettre l'image de fond */
    color: #fff;
    /* Padding géré par style inline avec !important - pas de padding par défaut */
    text-align: center;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Si pas d'image, utiliser la couleur primaire par défaut */
.service-hero:not([style*="background-image"]) {
    background: var(--color-primary);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 12px 24px;
    display: inline-block;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

.hero-badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hero-badge-content strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-badge-content span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-section h1.hero-title {
    font-size: 3.5rem;
    margin: 0;
    color: #fff;
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.hero-description-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.hero-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-btn-phone {
    background: #fff;
    color: var(--color-primary);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.hero-feature-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-section .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.4;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
    background: transparent; /* Transparent pour laisser voir le fond du body */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-titles);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
}

.services-section h2 {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--service-card-min-width, 300px), 1fr));
    gap: 2rem;
}

/* Navigation des services sur mobile */
@media screen and (max-width: 768px) {
    .services-wrapper {
        position: relative;
    }
    
    .services-grid {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0;
        padding: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
        grid-template-columns: none !important;
        scroll-snap-type: x mandatory;
    }
    
    .services-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .services-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .services-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }
    
    .services-grid > * {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .services-grid .service-card {
        border-radius: 12px !important;
    }
    
    .services-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: var(--color-primary, #006837);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .services-nav-btn:hover {
        background: var(--color-primary-darker, #005028);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-50%) scale(1.1);
    }
    
    .services-nav-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .services-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .services-nav-prev {
        left: 0;
    }
    
    .services-nav-next {
        right: 0;
    }
    
    .services-nav-btn.hidden {
        display: none !important;
    }
    
    /* Images des services bien contenues dans leurs bordures sur mobile */
    .service-card {
        overflow: hidden;
        border-radius: 8px;
    }
    
    .service-card .service-featured-image,
    .service-card .service-image-link {
        width: 100%;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
        margin: 0;
        padding: 0;
    }
    
    .service-card .service-featured-image img,
    .service-card .service-image-link img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        object-position: center;
        border-radius: 12px 12px 0 0;
        margin: 0;
        padding: 0;
    }
    
    .service-card-full-image {
        overflow: hidden;
        border-radius: 12px !important;
    }
    
    .service-card-full-image .service-image-link {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 12px;
    }
    
    .service-card-full-image .service-image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 12px;
        margin: 0;
        padding: 0;
    }
}

@media screen and (min-width: 769px) {
    .services-nav-btn {
        display: none !important;
    }
    
    .services-wrapper {
        position: relative;
    }
}

/* Forcer le respect du nombre maximum de colonnes */
.services-grid[style*="repeat("] {
    grid-auto-flow: row;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.15) !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    overflow: visible;
    box-sizing: border-box;
}

/* Mode image pleine hauteur */
.service-card-full-image {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: var(--service-card-height, 450px);
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.15) !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    box-sizing: border-box;
}

.service-card-full-image .service-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.service-card-full-image .service-image-link img {
    border-radius: 17px;
}

.service-card-full-image .service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    border-radius: 0 0 12px 12px;
}

.service-card-full-image .service-card-overlay h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.2;
}

.service-card-full-image .service-card-overlay h3 a {
    color: #fff;
    text-decoration: none;
}

.service-card-full-image .service-card-overlay p {
    margin: 0 0 15px 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-card-full-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 3px solid var(--color-primary);
}

/* Les cartes de services gardent leur fond blanc, mais les pages de services doivent être transparentes */
.single-service .service-card {
    background: #fff;
}

.service-card:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    -moz-box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 3px solid var(--color-primary);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.service-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Bouton CTA des services */
.service-cta-button:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.service-cta-button:hover svg {
    transform: translateX(2px);
}

/* Content */
.entry-content {
    padding: 60px 0;
}

.entry-content h1,
.entry-content h2 {
    color: var(--color-titles);
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

.entry-content ul {
    list-style: none;
    margin: 2rem 0;
}

.entry-content ul li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
    border-left: 4px solid var(--color-primary);
}

/* Footer */
.site-footer {
    background-color: #333 !important; /* Valeur par défaut, peut être surchargée par le style inline */
    background: #333 !important;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

.footer-legal {
    margin-bottom: 1rem;
    font-size: 0.9em;
    line-height: 1.8;
}

.footer-legal p {
    margin: 0.5rem 0;
}

.footer-legal strong {
    color: #fff;
}

/* Archive Services */
.archive-services {
    padding: 60px 0;
}

.service-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

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

.service-item h2 a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Single Service */
.single-service {
    padding: 60px 0;
}

.service-featured-image {
    margin-bottom: 2rem;
}

.service-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sous-services */
.service-subservices {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.subservices-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.subservices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.subservice-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-primary);
}

.subservice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.subservice-name {
    color: var(--color-primary);
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.subservice-description {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer Cities - 3 colonnes avec ajustement automatique */
.footer-cities .cities-list {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(3, 1fr);
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
    -webkit-box-align: start;
    -webkit-align-items: start;
    -moz-align-items: start;
    -ms-flex-align: start;
    align-items: start;
}

.footer-cities .cities-list .cities-column {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0; /* Permet au contenu de se rétrécir */
}

.footer-cities .cities-list .city-link {
    font-size: clamp(0.7rem, 1.1vw, 0.9rem);
    line-height: 1.5;
    white-space: nowrap;
    max-width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    tap-highlight-color: rgba(255, 255, 255, 0.1);
}

/* Style pour les communes agrandies lors de la recherche */
.footer-cities .cities-list .city-link.enlarged {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    min-width: max-content !important;
}

.footer-contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-contact > div {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 8px;
    width: 100%;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* Tablettes en mode paysage (1024px et moins) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding-right: 160px;
    }
    
    /* S'assurer que le burger menu est caché sur tablettes paysage */
    .menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .footer-cities .cities-list {
        -ms-grid-columns: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        /* Padding géré par style inline avec !important */
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Tablettes en mode portrait (768px et moins) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header clean sur mobile */
    .site-header {
        padding: 0.75rem 0 !important;
    }
    
    /* Header Mobile - Style amélioré - FIXE EN HAUT */
    .site-header {
        padding: 0.75rem 1rem !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 2px solid rgba(0, 104, 55, 0.1) !important;
        transition: all 0.3s ease !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }
    
    /* Ajouter un padding au body pour compenser le header fixe */
    body {
        padding-top: 100px !important;
    }
    
    body.menu-open {
        padding-top: 100px !important;
    }
    
    /* Réduire le padding quand le header se rétrécit */
    body:has(.site-header.header-scrolled-mobile) {
        padding-top: 85px !important;
    }
    
    /* Header rétréci au scroll sur mobile - TOUS LES ÉLÉMENTS RESTENT VISIBLES */
    .site-header.header-scrolled-mobile {
        padding: 0.5rem 1rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    }
    
    .site-header.header-scrolled-mobile .site-logo {
        padding-right: 60px !important;
    }
    
    .site-header.header-scrolled-mobile .site-logo h1 {
        font-size: 1.15rem !important;
        line-height: 1.2 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .site-header.header-scrolled-mobile .site-logo img {
        max-height: 38px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .site-header.header-scrolled-mobile .mobile-burger-menu {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        top: 0.5rem !important;
        right: 1rem !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .site-header.header-scrolled-mobile .header-devis-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Masquer les images de séparation sur mobile */
    .body-separator-hero,
    .body-separator-header,
    .body-separator-footer {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .body-separator-hero img,
    .body-separator-header img,
    .body-separator-footer img {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Centrer les images du hero sur mobile */
    .hero-section[style*="background-image"] {
        background-position: center center !important;
        background-size: cover !important;
    }
    
    /* Centrer les images affichées sous le hero (type "below") */
    .hero-section + div img,
    .hero-section ~ div img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Centrer les images du hero pour les autres pages (service-hero) */
    .service-hero[style*="background-image"] {
        background-position: center center !important;
        background-size: cover !important;
    }
    
    .header-content {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .site-logo {
        width: 100% !important;
        order: 1 !important;
        margin: 0 !important;
        padding-right: 60px !important;
    }
    
    .site-logo h1 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        font-weight: 700 !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1) !important;
    }
    
    .site-logo p {
        font-size: 0.85rem !important;
        margin-top: 2px !important;
        margin-bottom: 0 !important;
    }
    
    .site-logo img {
        max-height: 45px !important;
    }
    
    .header-contact {
        display: none !important;
    }
    
    /* Burger Menu Mobile - En haut à droite */
    .mobile-burger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background: linear-gradient(135deg, var(--color-primary) 0%, #00804d 100%) !important;
        border: none !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        padding: 0 !important;
        gap: 5px !important;
        z-index: 10001 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 4px 12px rgba(0, 104, 55, 0.3) !important;
        position: absolute !important;
        top: 0.75rem !important;
        right: 1rem !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 104, 55, 0.2) !important;
    }
    
    .mobile-burger-menu:hover,
    .mobile-burger-menu:active {
        background: linear-gradient(135deg, #00804d 0%, var(--color-primary) 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(0, 104, 55, 0.4) !important;
    }
    
    .burger-line {
        width: 24px !important;
        height: 3px !important;
        background: #fff !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        display: block !important;
    }
    
    .mobile-burger-menu[aria-expanded="true"] .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px) !important;
    }
    
    .mobile-burger-menu[aria-expanded="true"] .burger-line:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-burger-menu[aria-expanded="true"] .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
    }
    
    /* Bouton devis gratuit - En dessous du logo */
    .header-content .header-devis-button,
    .header-devis-button {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        margin: 0 auto !important;
        margin-top: 0.5rem !important;
        width: auto !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 1.5rem !important;
        align-self: center !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, var(--color-primary) 0%, #00804d 100%) !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 104, 55, 0.3) !important;
        order: 2 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .header-devis-button:hover,
    .header-devis-button:active {
        background: linear-gradient(135deg, #00804d 0%, var(--color-primary) 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(0, 104, 55, 0.4) !important;
    }
    
    /* Navigation principale cachée sur mobile (on utilise le menu overlay) */
    .main-navigation {
        display: none !important;
    }
    
    /* Menu Mobile Overlay visible sur mobile */
    
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    body.menu-open .hero-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    
    .container[style*="position: relative"] {
        flex-direction: column !important;
    }
    
    .hero-section {
        /* Padding géré par style inline avec !important */
    }
    
    .hero-section h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .services-wrapper {
        position: relative;
    }
    
    .services-grid {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0;
        padding: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
        grid-template-columns: none !important;
        scroll-snap-type: x mandatory;
    }
    
    .services-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .services-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .services-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }
    
    .services-grid > * {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* Images des services bien contenues dans leurs bordures sur mobile */
    .service-card {
        overflow: hidden;
        border-radius: 12px !important;
    }
    
    .services-grid .service-card {
        border-radius: 12px !important;
    }
    
    .service-card .service-featured-image,
    .service-card .service-image-link {
        width: 100%;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
        margin: 0;
        padding: 0;
    }
    
    .service-card .service-featured-image img,
    .service-card .service-image-link img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        object-position: center;
        border-radius: 12px 12px 0 0;
        margin: 0;
        padding: 0;
    }
    
    .service-card-full-image {
        overflow: hidden;
        border-radius: 12px !important;
    }
    
    .service-card-full-image .service-image-link {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 12px;
    }
    
    .service-card-full-image .service-image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 12px;
        margin: 0;
        padding: 0;
    }
    
    .services-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: var(--color-primary, #006837);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .services-nav-btn:hover {
        background: var(--color-primary-darker, #005028);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-50%) scale(1.1);
    }
    
    .services-nav-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .services-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .services-nav-prev {
        left: 0;
    }
    
    .services-nav-next {
        right: 0;
    }
    
    .services-nav-btn.hidden {
        display: none !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .entry-content {
        padding: 40px 0;
    }
    
    .entry-content h1,
    .entry-content h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-cities .cities-list {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .footer-cities .cities-list .city-link {
        font-size: 0.9rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: block !important;
        line-height: 1.6 !important;
    }
    
    .footer-cities .cities-column {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Footer - Correction bouton recherche sur tablette */
    .footer-cities > div > div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    
    .footer-cities h3 {
        flex: 1 1 100% !important;
        margin-bottom: 10px !important;
    }
    
    div[style*="position: absolute"][style*="right: 0"] {
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .footer-contact {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .footer-contact > div {
        padding: 20px;
    }
    
    .site-footer {
        padding: 30px 0 15px;
    }
}

/* Smartphones en mode paysage (480px et moins) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .site-logo {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .site-logo img {
        max-height: 50px;
    }
    
    .header-devis-button {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin-top: 15px;
        width: 100%;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
    
    .footer-cities .cities-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .footer-cities .cities-column {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .city-link {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: block !important;
    }
    
    /* Quand recherche active sur mobile, afficher les communes sur une ligne horizontale */
    .footer-cities .cities-list[style*="overflow-x: auto"] {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
    }
    
    .footer-cities .cities-list[style*="overflow-x: auto"]::-webkit-scrollbar {
        height: 6px;
    }
    
    .footer-cities .cities-list[style*="overflow-x: auto"]::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .footer-cities .cities-list[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
    }
    
    .footer-cities .cities-list[style*="overflow-x: auto"] .city-link[style*="display: inline-block"] {
        white-space: nowrap !important;
        margin-right: 15px !important;
        flex-shrink: 0 !important;
    }
    
    /* Footer - Correction bouton recherche sur mobile */
    .footer-cities > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        position: relative !important;
    }
    
    .footer-cities h3 {
        width: 100% !important;
        margin-bottom: 10px !important;
        text-align: left !important;
    }
    
    .footer-cities-search-toggle,
    .footer-cities-search-toggle-bottom {
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    div[style*="position: absolute"][style*="right: 0"] {
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1.hero-title {
        font-size: 1.75rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 10px 20px;
    }
    
    .hero-badge-content strong {
        font-size: 1rem;
    }
    
    .hero-description-box {
        padding: 20px;
    }
    
    .hero-description-box p {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-btn-primary,
    .hero-btn-phone {
        width: 100%;
        text-align: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-feature-badge {
        width: 100%;
        text-align: center;
    }
    
    .services-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .entry-content {
        padding: 30px 0;
    }
    
    .entry-content h1,
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .site-footer {
        padding: 25px 0 15px;
    }
    
    .footer-contact > div {
        padding: 15px;
    }
    
    .footer-contact h3 {
        font-size: 1.1rem;
    }
}

/* Très petits écrans (320px et moins) */
@media screen and (max-width: 320px) {
    .hero-section h1.hero-title {
        font-size: 1.5rem;
    }
    
    .hero-section .subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .subservices-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .subservice-card {
        padding: 1.25rem;
    }
    
    .subservices-title {
        font-size: 1.5rem;
    }
}

/* Mode paysage pour tablettes et smartphones */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        /* Padding géré par style inline avec !important */
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* Styles responsive supplémentaires pour pages spécifiques */
@media screen and (max-width: 768px) {
    /* Pages de services */
    .service-intro {
        padding: 20px !important;
        margin-bottom: 40px !important;
    }
    
    .why-choose {
        margin-bottom: 40px !important;
    }
    
    .why-choose h2 {
        font-size: 1.75rem !important;
        margin-bottom: 30px !important;
    }
    
    .why-choose > div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Sections avec grilles */
    .professional-content-grid,
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Sections avec padding important */
    .quote-cta-section,
    div[style*="padding: 80px"] {
        padding: 40px 15px !important;
        margin-top: 40px !important;
    }
    
    /* Titres grands */
    h1[style*="font-size: 2.8rem"],
    h2[style*="font-size: 2.8rem"] {
        font-size: 1.75rem !important;
    }
    
    h1[style*="font-size: 2.5rem"],
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }
    
    /* Paragraphes avec grandes tailles */
    p[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
    
    /* Boutons */
    a[style*="padding: 18px 40px"] {
        padding: 14px 30px !important;
        font-size: 1rem !important;
    }
    
    /* Sections communes */
    .city-intervention,
    .city-why {
        padding: 20px !important;
        margin-bottom: 40px !important;
    }
    
    .city-intervention h2,
    .city-why h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Listes avec flex */
    ul[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    /* Grilles de sous-services */
    .subservices-grid,
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Grilles avec auto-fit */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Conteneurs avec max-width */
    div[style*="max-width: 1200px"],
    div[style*="max-width: 900px"],
    div[style*="max-width: 800px"] {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Sections avec display flex en ligne */
    div[style*="display: flex"][style*="flex-direction: row"],
    div[style*="display: flex"]:not([style*="flex-direction: column"]) {
        flex-direction: column !important;
    }
    
    /* Espacements horizontaux */
    div[style*="gap: 30px"],
    div[style*="gap: 40px"] {
        gap: 20px !important;
    }
}

@media screen and (max-width: 480px) {
    /* Réduire encore plus les espacements */
    .service-intro {
        padding: 15px !important;
    }
    
    .why-choose h2 {
        font-size: 1.5rem !important;
    }
    
    .why-choose > div > div {
        padding: 25px 20px !important;
    }
    
    h1[style*="font-size: 2.8rem"],
    h2[style*="font-size: 2.8rem"] {
        font-size: 1.5rem !important;
    }
    
    h1[style*="font-size: 2.5rem"],
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.25rem !important;
    }
    
    .quote-cta-section {
        padding: 30px 10px !important;
    }
    
    .city-intervention,
    .city-why {
        padding: 15px !important;
    }
    
    .city-intervention h2,
    .city-why h2 {
        font-size: 1.25rem !important;
    }
    
    p[style*="font-size: 1.2rem"] {
        font-size: 0.95rem !important;
    }
    
    p[style*="font-size: 1.15rem"] {
        font-size: 0.9rem !important;
    }
    
    a[style*="padding: 18px 40px"] {
        padding: 12px 25px !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }
}

/* Tablettes en mode paysage */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .why-choose > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .professional-content-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Impression */
@media print {
    .site-header,
    .header-devis-button,
    .site-footer,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
}

