/* ===================================
   FRONTEND TEST - NOUVEAU DESIGN
   =================================== */

/* Variables CSS */
:root {
    /* Couleurs principales - Charte Aureli123 Rénovation */
    --primary-color: #eca766;
    --primary-light: #f0b577;
    --primary-dark: #d4914a;
    --secondary-color: #4e342e;
    --secondary-light: #6b4a3f;
    --secondary-dark: #3a251d;
    
    /* Couleurs neutres - Inspirées de la charte existante */
    --text-dark: #4e342e;
    --text-light: #6b4a3f;
    --text-muted: #8b6a5b;
    --bg-light: #eae7dc;
    --bg-white: #f8e1c3;
    --bg-cream: #f5f3ec;
    --border-light: #d4c5b3;
    --border-color: #c4b8a8;
    
    /* Couleurs d'état */
    --success-color: #8fb339;
    --error-color: #d4543a;
    --warning-color: #eca766;
    --info-color: #7ba3c7;
    
    /* Typographie - Cohérente avec l'existant */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Poppins', sans-serif;
    --font-family-brand: 'Caveat Brush', cursive;
    
    /* Tailles de police - Variables de base nécessaires */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Espacements - Variables de base nécessaires */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Conteneur */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    
    /* Bordures */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Thème Original (Bleu/Moderne) - Redéfinition complète */
:root.theme-original {
    /* Couleurs principales - Thème Original */
    --primary-color: #2c5aa0 !important;
    --primary-light: #4a7bc8 !important;
    --primary-dark: #1a3a6b !important;
    --secondary-color: #f39c12 !important;
    --secondary-light: #f5b041 !important;
    --secondary-dark: #d68910 !important;
    
    /* Couleurs neutres - Thème Original */
    --text-dark: #2c3e50 !important;
    --text-light: #7f8c8d !important;
    --text-muted: #95a5a6 !important;
    --bg-light: #f8f9fa !important;
    --bg-white: #ffffff !important;
    --bg-cream: #ffffff !important;
    --border-light: #e9ecef !important;
    --border-color: #dee2e6 !important;
    
    /* Couleurs d'état - Thème Original */
    --success-color: #27ae60 !important;
    --error-color: #e74c3c !important;
    --warning-color: #f39c12 !important;
    --info-color: #3498db !important;
    
    /* Typographie - Thème Original */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    --font-family-heading: 'Inter', sans-serif !important;
    --font-family-brand: 'Caveat Brush', cursive !important;
    
    /* Tailles identiques - pas de changement */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Espacements identiques - pas de changement */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Conteneur identique */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    
    /* Bordures identiques */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Ombres identiques */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions identiques */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Reset et styles de base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip link pour l'accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-dark);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Listes */
ul, ol {
    margin: 0 0 var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
}

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

/* ===================================
   TOP CONTACT BAR GLOBALE
   =================================== */

.top-contact-bar {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-phone,
.availability-btn {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.contact-phone:hover,
.availability-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

/* SIRET en position absolue */
.siret-absolute {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.siret-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.header {
    background: var(--bg-cream);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.brand-logo {
    height: 80px;
    margin-right: var(--spacing-sm);
}

.brand-logo-larger {

    margin-right: 0;
    margin-left: auto;
}

.brand-text {
    font-family: var(--font-family-brand);
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: var(--spacing-sm);
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 2px 0;
    transition: var(--transition-base);
}

.navbar-menu {
    display: flex;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin-left: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.nav-link i {
    margin-right: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(236, 167, 102, 0.1);
    text-decoration: none;
}

/* Menu déroulant */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
    font-size: var(--font-size-xs);
    margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-dark);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background-color 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

:root.theme-original .nav-link:hover,
:root.theme-original .nav-link.active {
    background-color: rgba(44, 90, 160, 0.1);
}

/* Styles du thème original pour les nouveaux éléments */
:root.theme-original .top-contact-bar {
    background: var(--primary-color) !important;
}

:root.theme-original .siret-absolute {
    color: var(--text-muted) !important;
}

:root.theme-original .dropdown-link:hover {
    background: var(--bg-light) !important;
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
}

:root.theme-original .alert-success {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border-color: #bee5eb !important;
}

:root.theme-original .alert-warning {
    background: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeaa7 !important;
}

:root.theme-original .alert-danger {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

:root.theme-original .cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

:root.theme-original .saison-printemps {
    background: #27ae60 !important;
}

:root.theme-original .saison-ete {
    background: #f39c12 !important;
}

:root.theme-original .saison-automne {
    background: #e67e22 !important;
}

:root.theme-original .saison-hiver {
    background: #3498db !important;
}

/* Bouton de basculement de thème */
.nav-test-toggle {
    margin-left: var(--spacing-md);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: var(--spacing-xs);
}

.theme-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.theme-toggle-btn i {
    font-size: var(--font-size-sm);
}

.toggle-text {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Animation de transition de thème */
* {
    transition: background-color var(--transition-base), 
                color var(--transition-base), 
                border-color var(--transition-base);
}

/* Corrections drastiques pour le thème original - Reset complet */
:root.theme-original * {
    box-sizing: border-box !important;
}

:root.theme-original body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
    background-color: #f8f9fa !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===================================
   BOUTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px; /* Accessibilité - zone de clic suffisante */
}

.btn i {
    margin-right: var(--spacing-xs);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

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

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

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

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

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
    min-height: 52px;
}

.btn-full {
    width: 100%;
}

.btn-emergency {
    background-color: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.btn-emergency:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: white;
    text-decoration: none;
}

/* ===================================
   SECTIONS COMMUNES
   =================================== */

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

.section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

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

.text-center {
    text-align: center;
}

/* ===================================
   PAGE HEADER
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    text-align: center;
}

.page-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
    color: white;
}

.page-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.breadcrumb {
    margin-top: var(--spacing-lg);
}

.breadcrumb ol {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: " / ";
    margin: 0 var(--spacing-sm);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===================================
   TOP CONTACT BAR
   =================================== */

.top-contact-bar {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid var(--primary-color);
}

.contact-phone,
.availability-btn {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    gap: var(--spacing-xs);
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-phone {
    background: var(--primary-color);
    font-size: var(--font-size-lg);
}

.contact-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

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

.availability-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* ===================================
   HERO SECTION COMPACTE
   =================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    overflow: hidden;
}

.hero.compact-hero {
    min-height: 40vh;
    padding: var(--spacing-2xl) 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.compact-hero .hero-content {
    display: block;
    text-align: center;
    max-width: 800px;
}

.hero-text {
    text-align: left;
}

.compact-hero .hero-text {
    text-align: center;
}

.compact-hero .hero-text h1 {
    color: white;
}

.hero-greeting {
    display: block;
    font-size: var(--font-size-xl);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.hero-brand {
    display: block;
    font-family: var(--font-family-brand);
    font-size: var(--font-size-5xl);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

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

/* ===================================
   SERVICES PREVIEW
   =================================== */

.services-preview {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.service-card {
    background: var(--bg-cream);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

/* Images des services */
.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.service-icon i {
    font-size: var(--font-size-2xl);
    color: white;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Contenu des services */
.service-content {
    padding: var(--spacing-2xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.service-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.feature-tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.service-arrow {
    display: flex;
    justify-content: flex-end;
    color: white;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow);
}

.service-card:hover .service-arrow {
    transform: translateX(5px) scale(1.1);
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-4xl);
}

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

.footer-title {
    color: var(--secondary-color);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

/* Ancien style pour .contact-info (top-contact-bar) */
.top-contact-bar .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.test-version i {
    margin-right: var(--spacing-xs);
    color: var(--secondary-color);
}

/* Correction pour les titres du footer selon le thème */
:root:not(.theme-original) .footer-title {
    color: #f5f3ec !important; /* Couleur crème pour thème rénovation */
}

:root.theme-original .footer-title {
    color: #f39c12 !important; /* Orange pour thème original */
}

/* Correction pour le bouton disponibilité selon le thème */
:root:not(.theme-original) .availability-btn {
    background: #eca766 !important; /* Orange pour thème rénovation */
}

:root:not(.theme-original) .availability-btn:hover {
    background: #d4914a !important; /* Orange foncé pour hover rénovation */
}

/* Styles pour les liens de contact dans le footer */
.contact-links li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.contact-links i {
    margin-right: var(--spacing-sm);
    width: 20px;
    flex-shrink: 0;
}

/* Couleurs des icônes selon le thème */
:root:not(.theme-original) .contact-links i {
    color: #eca766 !important;
}

:root.theme-original .contact-links i {
    color: #f39c12 !important;
}

/* Styles pour l'accroche des projets du moment */
.projet-accroche {
    background: rgba(var(--primary-rgb), 0.1);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.projet-accroche p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
}

.projet-service-link {
    margin-top: var(--spacing-md);
    text-align: center;
}


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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

.test-version {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
}

.test-version i {
    margin-right: var(--spacing-xs);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: var(--spacing-md);
    }
    
    /* Corrections responsive pour thème original */
    :root.theme-original .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    :root.theme-original .hero-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }
    
    /* Contact bar responsive */
    .contact-info {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
    
    .contact-phone,
    .availability-btn {
        justify-content: center;
        width: 100%;
    }
    
    /* Hero compact responsive */
    .compact-hero {
        min-height: 30vh !important;
        padding: var(--spacing-2xl) 0 !important;
    }
    
    /* Navigation mobile */
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-cream);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .nav-item {
        margin: var(--spacing-sm) 0;
    }
    
    .nav-link {
        padding: var(--spacing-md);
        justify-content: center;
    }
    
    /* Bouton de thème en mobile */
    .nav-test-toggle {
        margin-left: 0;
        margin-top: var(--spacing-md);
        display: flex;
        justify-content: center;
    }
    
    .theme-toggle-btn {
        width: auto;
        justify-content: center;
    }
    
    .toggle-text {
        display: inline;
    }
    
    /* Hero responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-brand {
        font-size: var(--font-size-4xl);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .image-decoration {
        width: 220px;
        height: 220px;
    }
    
    /* Services grid responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Images responsive */
    .service-image {
        height: 150px;
    }
    
    /* Typography responsive */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .page-title {
        font-size: var(--font-size-3xl);
    }
    
    /* Buttons responsive */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===================================
   PAGE QUI SUIS-JE
   =================================== */

.about-section {
    padding: var(--spacing-4xl) 0;
}

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

.intro-section {
    margin-bottom: var(--spacing-3xl);
}

.lead-text {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.values-section h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.value-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-cream);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.value-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.value-icon i {
    font-size: var(--font-size-lg);
    color: white;
}

.value-item h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.value-item p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
}

.about-image {
    position: sticky;
    top: var(--spacing-4xl);
}

.image-container {
    position: relative;
    margin-bottom: var(--spacing-2xl);
}

.profile-large {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.certifications {
    background: var(--bg-cream);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.certifications h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-list li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.cert-list i {
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

/* Expertise Section */
.expertise-section {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.expertise-category {
    background: var(--bg-cream);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.category-header i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-right: var(--spacing-md);
}

.category-header h3 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    margin: 0;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-light);
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: var(--spacing-sm);
}

/* Why Choose Section */
.why-choose-section {
    padding: var(--spacing-4xl) 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.advantage-item {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--bg-cream);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.advantage-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.advantage-item h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.advantage-item p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
}

/* Responsive About Page */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-image {
        position: static;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

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

/* ===================================
   PROJETS DU MOMENT
   =================================== */

/* Section projets du moment - Page d'accueil */
.projets-du-moment {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 100%);
}

.projets-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.projet-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
}

.projet-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.projet-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projet-item:hover .projet-image img {
    transform: scale(1.08);
}

.projet-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projet-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    line-height: 1.3;
}

.projet-accroche {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

/* Badge service */
.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.92);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.saison-printemps {
    background: #81c784;
    color: white;
}

.saison-ete {
    background: #ffb74d;
    color: white;
}

.saison-automne {
    background: #d4823e;
    color: white;
}

.saison-hiver {
    background: #64b5f6;
    color: white;
}

.no-projets {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

/* ===================================
   PROJETS DE RÉNOVATION ÉNERGÉTIQUE
   =================================== */

.projets-renovation-energetique {
    padding: calc(var(--spacing-xl) * 1.2) 0;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 50%, #f8fbf8 100%);
    position: relative;
}

.projets-renovation-energetique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 50%, #81c784 100%);
}

.projets-renovation-energetique .section-header {
    margin-bottom: calc(var(--spacing-xl) * 1.5);
}

.projets-renovation-energetique .section-title {
    color: #2e7d32;
}

.projets-renovation-energetique .service-badge.energy {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

/* ===================================
   PROJETS SIGNATURE
   =================================== */

.projets-signature {
    padding: calc(var(--spacing-xl) * 1.2) 0;
    background: linear-gradient(135deg, #fdf4e3 0%, #fef9f1 50%, #fefcf7 100%);
    position: relative;
}

.projets-signature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800 0%, #ffb74d 50%, #ffcc80 100%);
}

.projets-signature .section-header {
    margin-bottom: calc(var(--spacing-xl) * 1.5);
}

.projets-signature .section-title {
    color: #e65100;
}

.projets-signature .service-badge.signature {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Page dédiée aux projets du moment */
.projets-du-moment-page .page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
}

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

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.projet-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.projet-header {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.projet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projet-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: var(--font-size-3xl);
}

.projet-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
}

.projet-content {
    padding: var(--spacing-lg);
    flex: 1;
}

.projet-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.projet-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.projet-details {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.projet-photos-preview h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.photos-thumbnails {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-photos {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-muted);
}

.projet-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-cream);
}

.projet-date {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.no-projets-found {
    text-align: center;
    padding: var(--spacing-xl);
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: var(--font-size-5xl);
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* Animation de fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive pour projets du moment */
@media (max-width: 768px) {
    .projets-gallery {
        grid-template-columns: 1fr;
    }
    
    .projets-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .projet-overlay {
        padding: var(--spacing-md);
    }
    
    .projet-content {
        padding: var(--spacing-md);
    }
    
    .photos-thumbnails {
        gap: var(--spacing-xs);
    }
    
    .photo-thumb,
    .more-photos {
        width: 50px;
        height: 50px;
    }
}

/* ===================================
   MESSAGES D'ALERTE
   =================================== */

.alert {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   CTA SECTION AMÉLIORÉE
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* Titre CTA en blanc pour le thème original */
:root.theme-original .cta-title {
    color: white !important;
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ===================================
   RESPONSIVE POUR HEADER SIRET
   =================================== */

@media (max-width: 1024px) {
    .siret-absolute {
        position: static;
        text-align: center;
        padding: var(--spacing-xs);
        background: var(--bg-light);
        border-bottom: 1px solid var(--border-light);
        order: -1;
    }
}

@media (max-width: 768px) {
    .siret-absolute {
        position: static;
        text-align: center;
        padding: var(--spacing-xs);
        background: var(--bg-light);
        border-bottom: 1px solid var(--border-light);
        order: -1;
    }
    
    .top-contact-bar .contact-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .contact-left,
    .contact-right {
        text-align: center;
    }
    
    .brand-logo {
        height: 80px;
    }
    
    .brand-logo-larger {
        height: 90px;
    }
    
    .navbar-brand {
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin-top: var(--spacing-sm);
    }
    
    .nav-item.dropdown .dropdown-menu {
        display: none;
    }
    
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
    
    .cta-content {
        padding: 0 var(--spacing-sm);
    }
    
    .cta-title {
        font-size: var(--font-size-2xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===================================
   STYLES POUR LES NOUVELLES CARTES DE SOUS-CATÉGORIES
   =================================== */

/* Breadcrumb correction - utiliser ul au lieu de ol pour éviter la numérotation */
.category-breadcrumb .breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    background: transparent;
}

.category-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    padding: 0 0.5rem;
}

/* Carte de sous-catégorie avec encadrement */
.service-category-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.service-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-category-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-light);
}

.service-category-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-heading);
}

.service-category-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Images plus petites pour les pages spécialisées */
.service-page-image-small {
    position: relative;
    height: 120px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.service-page-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

/* Style supprimé - remplacé par le style unifié plus bas */

/* Effet hover pour les cartes de pages spécialisées */
.service-page-card.hover-effect {
    transition: all var(--transition-base);
    cursor: pointer;
}

.service-page-card.hover-effect:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-page-card.hover-effect:hover .service-page-image-small img {
    transform: scale(1.1);
}

.service-page-card.hover-effect:hover .service-page-overlay {
    opacity: 1;
    background: rgba(236, 167, 102, 0.9);
}

/* Animation d'entrée pour les cartes (accélérée) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-page-card {
    animation: fadeInUp 0.3s ease-out;
}

/* Délai d'animation progressif pour chaque carte (réduits) */
.service-page-card:nth-child(1) { animation-delay: 0.05s; }
.service-page-card:nth-child(2) { animation-delay: 0.1s; }
.service-page-card:nth-child(3) { animation-delay: 0.15s; }
.service-page-card:nth-child(4) { animation-delay: 0.2s; }
.service-page-card:nth-child(5) { animation-delay: 0.25s; }
.service-page-card:nth-child(6) { animation-delay: 0.3s; }

/* Responsive pour les nouvelles cartes */
@media (max-width: 768px) {
    .service-category-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }
    
    .service-category-title {
        font-size: var(--font-size-2xl);
    }
    
    .service-page-image-small {
        height: 100px;
    }
    
    .service-page-card.hover-effect:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

/* ===================================
   STYLES POUR LA RECHERCHE AMÉLIORÉE
   =================================== */

.modern-search-form {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-color);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
    overflow: hidden;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(236, 167, 102, 0.2);
    transform: translateY(-2px);
}

.search-icon-left {
    padding: 0 var(--spacing-lg);
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
}

.modern-search-input {
    flex: 1;
    border: none;
    padding: var(--spacing-lg) var(--spacing-sm);
    font-size: var(--font-size-lg);
    background: transparent;
    color: var(--text-dark);
    outline: none;
    font-family: var(--font-family);
}

.modern-search-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.modern-search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: 0;
}

.modern-search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: scale(1.05);
}

.search-clear-btn {
    background: none;
    border: none;
    padding: var(--spacing-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-clear-btn:hover {
    color: var(--error-color);
    transform: scale(1.1);
}

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.suggestion-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

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

.search-tags-container {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.tags-label {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.tag-btn {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-lg);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.tag-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tag-btn:active {
    transform: translateY(0);
}

/* Animation de recherche */
@keyframes searchPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 167, 102, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(236, 167, 102, 0); }
}

.search-input-wrapper.searching {
    animation: searchPulse 1.5s infinite;
}

.modern-search-btn.loading {
    background: var(--text-muted);
    cursor: not-allowed;
}

.modern-search-btn.loading .fas {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive pour la recherche */
@media (max-width: 768px) {
    .modern-search-form {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-md);
    }
    
    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modern-search-btn {
        border-radius: var(--border-radius);
        margin-top: var(--spacing-sm);
        justify-content: center;
    }
    
    .popular-tags {
        gap: var(--spacing-xs);
    }
    
    .tag-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
}

/* ===================================
   AMÉLIORATIONS SÉCURITÉ FORMULAIRE CONTACT
   =================================== */

.character-counter {
    text-align: right;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.character-counter.warning {
    color: var(--warning-color);
}

.character-counter.danger {
    color: var(--error-color);
}

.form-control {
    transition: all var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 167, 102, 0.2);
    outline: none;
}

.form-control.error {
    border-color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-errors {
    color: var(--error-color);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: block;
}

.security-info {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.security-info .security-icon {
    color: var(--success-color);
    margin-right: var(--spacing-sm);
}

/* ===================================
   STYLES POUR LA PAGE "QUI SUIS-JE" MODIFIÉE
   =================================== */

/* Grille des compétences (remplace expertise-grid) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.skill-item {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-2xl);
}

.skill-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-heading);
}

.skill-item p {
    color: var(--text-light);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Grille des témoignages (remplace advantages-grid) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.testimonial-item {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border-left: 4px solid var(--primary-color);
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    margin-bottom: var(--spacing-md);
}

.client-name {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.project-type {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
}

.testimonial-text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    margin: var(--spacing-md) 0;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    gap: var(--spacing-xs);
    color: #ffc107;
    font-size: var(--font-size-sm);
}

/* Ajustement de la grille des valeurs (suppression réactivité) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

/* ===================================
   SOMMAIRE DE PAGE
   =================================== */

.page-summary {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.summary-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-base);
}

.summary-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   SECTION PLATEFORMES
   =================================== */

.platforms-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--border-light);
}

.platforms-section h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    font-family: var(--font-family-heading);
}

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

.platform-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.platform-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
}

.platform-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-heading);
}

.platform-item p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.platform-link:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.platform-link.disabled {
    color: var(--text-muted);
    border-color: var(--border-light);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===================================
   GRILLES ORGANISÉES
   =================================== */

/* Grille compétences organisée */
.skills-grid-organized {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

/* Grille témoignages organisée */
.testimonials-grid-organized {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

/* Responsive pour les nouvelles sections */
@media (max-width: 768px) {
    .skills-grid,
    .testimonials-grid,
    .skills-grid-organized,
    .testimonials-grid-organized,
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .skill-item,
    .testimonial-item,
    .platform-item {
        padding: var(--spacing-lg);
    }
    
    .skill-icon,
    .platform-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }
    
    .summary-links {
        gap: var(--spacing-sm);
    }
    
    .summary-link {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ===================================
   NOUVEAU BOUTON THEME SWITCH (INSPIRÉ UIVERSE)
   =================================== */

.theme-switch {
    --switch-width: 60px;
    --switch-height: 30px;
    --switch-bg: #4a5568;
    --switch-bg-checked: var(--primary-color);
    --circle-size: 26px;
    --circle-pos: 2px;
    --circle-pos-checked: calc(var(--switch-width) - var(--circle-size) - 2px);
    
    position: relative;
    display: inline-block;
    width: var(--switch-width);
    height: var(--switch-height);
    cursor: pointer;
}

.theme-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--switch-bg);
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-circle {
    position: absolute;
    top: var(--circle-pos);
    left: var(--circle-pos);
    width: var(--circle-size);
    height: var(--circle-size);
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.moon-icon,
.sun-icon {
    width: 14px;
    height: 14px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.moon-icon {
    color: #4a5568;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.sun-icon {
    color: #fbbf24;
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

/* État activé (thème original) */
.theme-switch input[type="checkbox"]:checked + .slider {
    background: var(--switch-bg-checked);
    box-shadow: 
        inset 0 2px 4px rgba(236, 167, 102, 0.2),
        0 2px 12px rgba(236, 167, 102, 0.3);
}

.theme-switch input[type="checkbox"]:checked + .slider .slider-circle {
    transform: translateX(var(--circle-pos-checked));
    background: #fff8e1;
    box-shadow: 
        0 2px 12px rgba(251, 191, 36, 0.3),
        0 4px 20px rgba(251, 191, 36, 0.2);
}

.theme-switch input[type="checkbox"]:checked + .slider .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

.theme-switch input[type="checkbox"]:checked + .slider .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Animation d'impulsion au clic */
.theme-switch:active .slider-circle {
    transform: scale(0.95);
}

.theme-switch input[type="checkbox"]:checked:active + .slider .slider-circle {
    transform: translateX(var(--circle-pos-checked)) scale(0.95);
}

/* Responsive pour le switch */
@media (max-width: 768px) {
    .theme-switch {
        --switch-width: 50px;
        --switch-height: 25px;
        --circle-size: 21px;
        --circle-pos-checked: calc(var(--switch-width) - var(--circle-size) - 2px);
    }
    
    .moon-icon,
    .sun-icon {
        width: 12px;
        height: 12px;
    }
}

/* ==============================================
   SHORTCODES PHOTOS - Pages spécialisées
   ============================================== */

/* Styles de base pour les photos intégrées */
.photo-shortcode {
    margin: var(--spacing-lg) 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(78, 52, 46, 0.1);
    transition: all 0.3s ease;
}

.photo-shortcode:hover {
    box-shadow: 0 8px 24px rgba(78, 52, 46, 0.15);
    transform: translateY(-2px);
}

.photo-shortcode img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.photo-shortcode figcaption {
    padding: var(--spacing-md);
    background: var(--bg-cream);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    font-style: italic;
    border-top: 1px solid var(--border-light);
}

/* Positions des photos */
.photo-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.photo-left {
    float: left;
    margin: 0 var(--spacing-lg) var(--spacing-lg) 0;
    clear: left;
}

.photo-right {
    float: right;
    margin: 0 0 var(--spacing-lg) var(--spacing-lg);
    clear: right;
}

.photo-full-width {
    width: 100%;
    margin: var(--spacing-xl) calc(-1 * var(--spacing-lg));
}

/* Tailles des photos */
.photo-small {
    max-width: 250px;
}

.photo-medium {
    max-width: 400px;
}

.photo-large {
    max-width: 600px;
}

.photo-full-width.photo-small,
.photo-full-width.photo-medium,
.photo-full-width.photo-large {
    max-width: none; /* Annule les limites de taille pour pleine largeur */
}

/* Styles d'erreur pour photos non trouvées */
.photo-error {
    padding: var(--spacing-md);
    background: var(--error-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    text-align: center;
    margin: var(--spacing-md) 0;
}

/* Clearfix pour les floats */
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive pour les photos */
@media (max-width: 768px) {
    .photo-left,
    .photo-right {
        float: none;
        margin: var(--spacing-lg) 0;
        max-width: 100%;
    }
    
    .photo-full-width {
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
    }
    
    .photo-large {
        max-width: 100%;
    }
    
    .photo-medium {
        max-width: 100%;
    }
}

/* ==============================================
   BLOCS DE CONTENU - Interface Admin
   ============================================== */

/* Style des blocs dans l'interface d'administration */
.content-block-form {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-white);
    transition: all 0.3s ease;
    position: relative;
}

.content-block-form:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(236, 167, 102, 0.1);
}

.content-block-form.sortable-chosen {
    transform: rotate(2deg);
    box-shadow: 0 8px 24px rgba(78, 52, 46, 0.2);
}

.content-block-form.sortable-ghost {
    opacity: 0.4;
}

/* Différenciation visuelle par type de bloc */
.block-type-text {
    border-left: 4px solid var(--info-color);
}

.block-type-image {
    border-left: 4px solid var(--success-color);
}

.block-type-text::before {
    content: "📝";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
}

.block-type-image::before {
    content: "🖼️";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
}

/* Boutons d'actions rapides */
.content-blocks-quick-actions {
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

.content-blocks-quick-actions .btn {
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
}

/* Masquage conditionnel des champs */
.content-block-form [data-block-field] {
    transition: opacity 0.3s ease;
}

/* Handle de drag pour les blocs */
.content-block-form::after {
    content: "⋮⋮";
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: grab;
    font-size: 16px;
    line-height: 1;
}

.content-block-form:active::after {
    cursor: grabbing;
}

/* ==============================================
   BLOCS DE CONTENU - Affichage Frontend
   ============================================== */

.content-block {
    margin: var(--spacing-lg) 0;
}

.content-block-text {
    line-height: 1.7;
    color: var(--text-dark);
}

.content-block-text p:last-child {
    margin-bottom: 0;
}

.content-block-image {
    text-align: center;
}

.content-block-image.position-gauche {
    float: left;
    margin: 0 var(--spacing-lg) var(--spacing-lg) 0;
    text-align: left;
}

.content-block-image.position-droite {
    float: right;
    margin: 0 0 var(--spacing-lg) var(--spacing-lg);
    text-align: right;
}

.content-block-image.position-pleine_largeur {
    width: 100%;
    margin: var(--spacing-xl) 0;
}

.content-block-image img {
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(78, 52, 46, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.content-block-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 52, 46, 0.15);
}

.content-block-image.size-petite img {
    max-width: 250px;
}

.content-block-image.size-moyenne img {
    max-width: 400px;
}

.content-block-image.size-grande img {
    max-width: 600px;
}

.content-block-image.position-pleine_largeur img {
    max-width: none;
    width: 100%;
}

.content-block-image figcaption {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* Clearfix après les blocs flottants */
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive pour les blocs */
@media (max-width: 768px) {
    .content-block-image.position-gauche,
    .content-block-image.position-droite {
        float: none;
        margin: var(--spacing-lg) 0;
        text-align: center;
    }
    
    .content-block-image.size-grande img,
    .content-block-image.size-moyenne img {
        max-width: 100%;
    }
}

/* ==============================================
   CORRECTIONS ESPACEMENT - Pages spécialisées
   ============================================== */

/* Espacement avant la section page navigation */
.page-navigation {
    margin-top: var(--spacing-4xl, 4rem);
}

/* Espacement entre les colonnes dans page-content-section */
.page-content-section .row {
    gap: var(--spacing-xl, 2rem);
}

.page-content-section .col-lg-8,
.page-content-section .col-lg-4 {
    margin-bottom: var(--spacing-lg, 1.5rem);
}

/* Espacement dans la sidebar entre contact-card et related-pages */
.page-sidebar .sidebar-card + .sidebar-card {
    margin-top: var(--spacing-xl, 2rem);
}

/* Espacement entre search-header et search-result-section */
.search-result-section {
    margin-top: var(--spacing-2xl, 2.5rem);
}

/* Responsive pour les espacements */
@media (max-width: 991px) {
    .page-content-section .row {
        gap: var(--spacing-lg, 1.5rem);
    }
    
    .page-navigation {
        margin-top: var(--spacing-2xl, 2.5rem);
    }
    
    .search-result-section {
        margin-top: var(--spacing-xl, 2rem);
    }
}

/* ==============================================
   PAGES SPÉCIALISÉES MISES EN AVANT
   ============================================== */

/* Styles pour les pages mises en avant dans les catégories */
.service-page-card.featured {
    position: relative;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-cream) 100%);
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(236, 167, 102, 0.25);
    transform: scale(1.02);
    z-index: 2;
    padding: calc(var(--spacing-lg) + var(--spacing-xs));
    padding-left: calc(var(--spacing-xl) + var(--spacing-sm));
}

.service-page-card.featured::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light), var(--primary-color));
    border-radius: var(--border-radius-lg);
    z-index: -1;
    animation: featuredGlow 3s ease-in-out infinite alternate;
}

@keyframes featuredGlow {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.005);
    }
}

.service-page-card.featured .service-page-title {
    font-size: calc(var(--font-size-lg) * 1.1);
    font-weight: 700;
    color: var(--text-dark);
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.service-page-card.featured .service-page-description {
    font-weight: 500;
    color: var(--text-dark);
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
}

/* Badge "Mise en avant" */
.service-page-card.featured .featured-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(236, 167, 102, 0.4);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.service-page-card.featured .featured-badge::before {
    content: "⭐";
}

/* Effet hover renforcé pour les pages mises en avant */
.service-page-card.featured.hover-effect:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 48px rgba(236, 167, 102, 0.35);
    border-color: var(--primary-dark);
}

.service-page-card.featured.hover-effect:hover .service-page-image-small img {
    transform: scale(1.15);
}

.service-page-card.featured.hover-effect:hover .featured-badge {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 4px 16px rgba(236, 167, 102, 0.6);
}

/* Animation d'entrée spéciale pour les pages mises en avant */
.service-page-card.featured {
    animation: featuredFadeInUp 0.8s ease-out;
}

@keyframes featuredFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }
}

/* Priorité d'affichage - les pages mises en avant apparaissent en premier */
.services-pages-grid {
    display: flex;
    flex-direction: column;
}

.service-page-card.featured {
    order: -1;
}

/* ===================================
   GRILLE OPTIMISÉE POUR PAGES SPÉCIALISÉES 
   =================================== */

/* Grille principale des pages spécialisées */
.service-pages-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Mobile first - 1 colonne */
@media (max-width: 576px) {
    .service-pages-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Tablette - 2 colonnes */
@media (min-width: 577px) and (max-width: 768px) {
    .service-pages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Desktop - 3-4 colonnes selon l'espace */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-pages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Large desktop - 4-5 colonnes */
@media (min-width: 1025px) {
    .service-pages-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Extra large - jusqu'à 5 colonnes */
@media (min-width: 1400px) {
    .service-pages-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-xl);
    }
    
    /* Limiter la largeur maximale des sous-catégories */
    .service-category-card {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Les pages mises en avant prennent plus d'espace */
@media (min-width: 769px) {
    .service-page-card.featured {
        grid-column: span 2;
    }
}

@media (min-width: 1025px) {
    .service-page-card.featured {
        grid-column: span 2;
    }
}

/* ===================================
   STYLES AMÉLIORÉS POUR CARTES COMPACTES
   =================================== */

/* Cartes de pages spécialisées optimisées */
.service-page-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    height: 280px; /* Hauteur fixe pour uniformité */
    display: flex;
    flex-direction: column;
}

/* Image de la page spécialisée compacte */
.service-page-image-small {
    position: relative;
    height: 160px; /* Hauteur réduite */
    overflow: hidden;
    background: var(--bg-cream);
}

.service-page-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.placeholder-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.placeholder-image-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><pattern id="smalldots" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23smalldots)"/></svg>');
    pointer-events: none;
}

.placeholder-image-small i {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Overlay avec effet hover */
.service-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.service-page-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: scale(0.8);
    transition: transform var(--transition-base);
}

/* Contenu de la carte */
.service-page-content {
    flex: 1;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.service-page-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Métadonnées de la page (nouvelles) */
.service-page-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.service-page-meta i {
    font-size: 0.8rem;
}

/* Badge de statut */
.service-page-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--success-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Styles pour différents types de badges */
.service-page-badge.new { background: var(--info-color); }
.service-page-badge.popular { background: var(--primary-color); }
.service-page-badge.updated { background: var(--warning-color); }

/* Description dans les métadonnées */
.service-page-description {
    font-style: italic;
    line-height: 1.3;
}

.service-page-date, .photo-count {
    font-weight: 500;
    white-space: nowrap;
}

/* Améliorations des effets hover */
.service-page-card.hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-page-card.hover-effect:hover .service-page-overlay {
    opacity: 1;
    background: rgba(236, 167, 102, 0.9);
}

.service-page-card.hover-effect:hover .service-page-icon {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.service-page-card.hover-effect:hover .service-page-image-small img {
    transform: scale(1.05);
}

/* Support clavier pour l'accessibilité */
.service-page-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Amélioration responsive */
@media (max-width: 576px) {
    .service-page-card {
        height: 320px; /* Hauteur légèrement augmentée sur mobile */
    }
    
    .service-page-image-small {
        height: 180px;
    }
    
    .service-page-content {
        padding: var(--spacing-sm);
        min-height: 140px;
    }
    
    .service-page-title {
        font-size: var(--font-size-sm);
    }
}

/* Style pour le comptage de photos */
.photo-count {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   STYLES POUR PROJETS DU MOMENT AMÉLIORÉS
   =================================== */

/* Lien vers le service complet */
.projet-service-link {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.projet-service-link .btn {
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
}

.projet-service-link .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Badge pour indiquer qu'il s'agit d'un service existant */
.projet-badge.with-service {
    position: relative;
}

.projet-badge.with-service::before {
    content: "Service du catalogue";
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--info-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

/* Amélioration des sous-catégories */
.service-category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.service-category-card:hover {
    box-shadow: var(--shadow-md);
}

.service-category-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-light);
}

.service-category-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.service-category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.service-category-description {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive pour mobile */
@media (max-width: 767px) {
    .service-page-card.featured {
        transform: scale(1.01);
        margin-bottom: var(--spacing-xl);
        padding: var(--spacing-lg);
        padding-left: calc(var(--spacing-lg) + var(--spacing-sm));
    }
    
    .service-page-card.featured::before {
        animation: none; /* Désactive l'animation sur mobile pour les performances */
    }
    
    .service-page-card.featured .service-page-title {
        font-size: var(--font-size-lg);
    }
    
    .service-page-card.featured.hover-effect:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

/* Accessibilité - réduction des animations si demandée */
@media (prefers-reduced-motion: reduce) {
    .service-page-card.featured::before {
        animation: none;
    }
    
    .service-page-card.featured {
        animation: none;
    }
    
    .service-page-card.featured.hover-effect:hover {
        transform: translateY(-4px) scale(1.02);
        transition: all 0.2s ease;
    }
}

/* ==============================================
   HEADER DE CATÉGORIE AMÉLIORÉ
   ============================================== */

.category-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    padding: var(--spacing-4xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.category-header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.category-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-family: var(--font-family-heading);
}

.category-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.category-summary {
    margin: var(--spacing-lg) 0;
}

.category-summary .summary-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.category-summary .summary-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    background: white;
}

.category-summary .summary-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-actions {
    margin-top: var(--spacing-xl);
}

.category-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-cover-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base);
}

.category-cover-image:hover {
    transform: scale(1.02);
}

/* Responsive pour le header de catégorie */
@media (max-width: 768px) {
    .category-header {
        padding: var(--spacing-2xl) 0;
    }
    
    .category-header-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .category-title {
        font-size: var(--font-size-3xl);
    }
    
    .category-summary .summary-links {
        justify-content: center;
    }
    
    .category-cover-image {
        max-width: 300px;
    }
}

/* =============================================================================
   STYLES POUR LA PAGE MES RÉALISATIONS
   ============================================================================= */

.realisations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section héro */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.hero-section .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-section .page-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Section des filtres */
.filters-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.filters-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.clear-filters-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.clear-filters-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Groupes de filtres */
.filter-group {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.filter-group-header {
    background: white;
    color: #2c3e50;
    border: 2px solid #e9ecef;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.filter-group-header:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.filter-group-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.filter-options {
    display: none;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 3px;
}

/* Checkboxes personnalisées */
.filter-checkbox {
    display: block;
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.filter-checkbox:hover {
    background: rgba(0,123,255,0.1);
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0.85rem;
    left: 0.75rem;
    height: 16px;
    width: 16px;
    background-color: white;
    border: 2px solid #007bff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.filter-checkbox:hover .checkmark {
    border-color: #0056b3;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.25rem;
}

.filter-description {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
}

.no-options {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Filtres actifs */
.active-filters {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.active-filters h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-filter {
    background: #007bff;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.active-filter:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.no-filters {
    color: #6c757d;
    font-style: italic;
}

/* Section des résultats */
.results-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.results-count {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Galerie de photos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,123,255,0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.8rem;
}

.photo-info h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.photo-info p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* États de chargement et erreur */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message,
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
}

.no-results {
    background: #d1ecf1;
    color: #0c5460;
    border-radius: 8px;
}

/* Modal photo */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(0,0,0,0.9);
}

.modal-navigation button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-navigation button:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.modal-info {
    padding: 1.5rem;
    background: white;
}

.modal-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.modal-info p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .realisations-container {
        padding: 1rem;
    }
    
    .hero-section .page-title {
        font-size: 2rem;
    }
    
    .hero-section .page-subtitle {
        font-size: 1rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .active-filters-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-navigation button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .filter-checkbox {
        padding: 0.5rem 0.5rem 0.5rem 1.75rem;
    }
    
    .checkmark {
        left: 0.5rem;
    }
}

/* ==============================================
   PLATEFORMES D'AVIS - Vignettes style compétences
   ============================================== */

.external-reviews {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-light);
}

.external-reviews-title {
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-2xl);
    font-family: var(--font-family-heading);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.platform-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: inherit;
}

.platform-item.google:hover {
    border-color: #4285f4;
}

.platform-item.google:hover .platform-icon {
    background: linear-gradient(135deg, #4285f4, #3367d6);
}

.platform-item.trustpilot:hover {
    border-color: #00b67a;
}

.platform-item.trustpilot:hover .platform-icon {
    background: linear-gradient(135deg, #00b67a, #006644);
}

.platform-item.travaux:hover {
    border-color: #ff6b35;
}

.platform-item.travaux:hover .platform-icon {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
}

.platform-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
    transition: all var(--transition-base);
}

.platform-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-heading);
}

.platform-item p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Responsive pour les plateformes */
@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .platform-item {
        padding: var(--spacing-lg);
    }
    
    .platform-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-lg);
    }
}

/* ==============================================
   COMPÉTENCES AVEC PHOTOS - Page Qui suis-je
   ============================================== */

.skill-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.skill-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.skill-item:hover .skill-image {
    transform: scale(1.1);
}

.skill-gallery {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.skill-thumbnail {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.skill-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.skill-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style alternatif : photo remplace totalement l'icône */
.skill-item .skill-photo + h3 {
    margin-top: var(--spacing-md);
}

/* Responsive pour les compétences avec photos */
@media (max-width: 768px) {
    .skill-photo {
        width: 60px;
        height: 60px;
    }
    
    .skill-thumbnail {
        width: 25px;
        height: 25px;
    }
    
    .skill-gallery {
        gap: var(--spacing-xs);
    }
}

/* ===================================
   PAGES SPÉCIALISÉES - IMAGES DE COUVERTURE
   =================================== */

/* Container pour l'image de couverture */
.page-hero-image {
    position: relative;
    width: 100%;
    height: 300px; /* Hauteur fixe pour éviter les images énormes */
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--bg-light), var(--border-light));
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure un bon recadrage */
    object-position: center; /* Centre l'image */
    transition: transform var(--transition-base);
}

.page-hero-image:hover img {
    transform: scale(1.05);
}

/* Image par défaut quand il n'y a pas de photo */
.page-hero-placeholder {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.page-hero-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.page-hero-placeholder .placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-placeholder .placeholder-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-hero-placeholder .placeholder-subtext {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive pour les images de couverture */
@media (max-width: 768px) {
    .page-hero-image,
    .page-hero-placeholder {
        height: 250px;
        margin-bottom: var(--spacing-lg);
    }
    
    .page-hero-placeholder .placeholder-icon {
        font-size: 3rem;
    }
    
    .page-hero-placeholder .placeholder-text {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .page-hero-image,
    .page-hero-placeholder {
        height: 200px;
        border-radius: var(--border-radius-sm);
    }
    
    .page-hero-placeholder .placeholder-icon {
        font-size: 2.5rem;
    }
}

/* Amélioration de la section page-header pour une meilleure intégration */
.specialized-page .page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.specialized-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.specialized-page .page-info {
    position: relative;
    z-index: 1;
}

.specialized-page .page-tags {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.specialized-page .page-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.specialized-page .page-title {
    font-size: var(--font-size-4xl);
    margin-bottom: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Responsive pour le header des pages spécialisées */
@media (max-width: 768px) {
    .specialized-page .page-header {
        padding: var(--spacing-xl) 0;
    }
    
    .specialized-page .page-title {
        font-size: var(--font-size-3xl);
    }
    
    .specialized-page .page-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .specialized-page .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .specialized-page .page-tags .tag {
        font-size: var(--font-size-xs);
    }
}
