/* Variables CSS - Design Artisan */
:root {
    --primary-color: #1e3a5f;
    --primary-medium: #2c5f8d;
    --primary-light: #4a90c2;
    --primary-dark: #0d1f33;
    --accent-color: #c4956a;
    --accent-light: #e8d5c4;
    --text-color: #1a1a1a;
    --text-light: #5a5a5a;
    --bg-color: #fafafa;
    --bg-light: #f0f2f5;
    --bg-warm: #f7f5f2;
    --border-color: #d8dce3;
    --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
    --shadow: 0 4px 12px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.12);
    --shadow-hover: 0 12px 40px rgba(30, 58, 95, 0.18);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --line-pattern: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(30, 58, 95, 0.02) 40px,
        rgba(30, 58, 95, 0.02) 41px
    );
    --grid-pattern: 
        linear-gradient(rgba(30, 58, 95, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.03) 1px, transparent 1px);
}

.dark-theme {
    --primary-color: #7db4e0;
    --primary-medium: #9ac5e8;
    --primary-light: #b5d4ef;
    --text-color: #f0f0f0;
    --text-light: #b8b8b8;
    --bg-color: #0f1419;
    --bg-light: #1a2332;
    --bg-warm: #151d28;
    --border-color: #2a3544;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.4);
    --line-pattern: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(125, 180, 224, 0.03) 40px,
        rgba(125, 180, 224, 0.03) 41px
    );
    --grid-pattern: 
        linear-gradient(rgba(125, 180, 224, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 180, 224, 0.04) 1px, transparent 1px);
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    position: relative;
    letter-spacing: -0.01em;
}

/* Lignes diagonales en fond global */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--line-pattern);
    pointer-events: none;
    z-index: -1;
}

/* Grille subtile en fond */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grid-pattern);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    width: 100%;
    position: relative;
}

/* Header */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    background: rgba(250, 250, 250, 0.92);
}

.dark-theme .header {
    background: rgba(15, 20, 25, 0.92);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
}

/* Icone décorative logo */
.logo::before {
    content: '';
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    display: block;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-left: 12px;
    margin-top: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 1px;
}

.menu-toggle:hover span {
    background: var(--primary-color);
}

.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

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

.theme-icon-dark {
    display: none;
}

.dark-theme .theme-icon-light {
    display: none;
}

.dark-theme .theme-icon-dark {
    display: block;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 6rem 0;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

/* Lignes décoratives hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 60px,
            rgba(30, 58, 95, 0.03) 60px,
            rgba(30, 58, 95, 0.03) 61px
        );
    pointer-events: none;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-content {
    animation: slideInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge décoratif avant le titre */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-cta .btn {
    padding: 1rem 1.8rem;
    font-size: 1rem;
}

.hero-image {
    position: relative;
    animation: slideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cadre décoratif image */
.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    opacity: 0.3;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: var(--radius);
    opacity: 0.15;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-medium) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.35);
}

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

.btn-secondary:hover {
    background: #b5865c;
    border-color: #b5865c;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

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

.btn-ghost {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

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

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    border-color: #20BA5A;
    transform: translateY(-3px);
}

/* Sections */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ligne décorative sous titre section */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.realisations-preview,
.why-us {
    padding: 6rem 0;
    position: relative;
}

.services-preview {
    background: var(--bg-warm);
    padding: 6rem 0;
    position: relative;
}

/* Bordure décorative sections */
.services-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
}

.services-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
}

.services-preview .container {
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Accent décoratif carte */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Réalisations Grid */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.realisation-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.realisation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.realisation-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.realisation-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

/* Overlay au hover */
.realisation-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(30, 58, 95, 0.7) 100%);
    opacity: 0;
    transition: var(--transition);
}

.realisation-card:hover .realisation-image::after {
    opacity: 1;
}

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

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

.realisation-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(30, 58, 95, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
    letter-spacing: 0.02em;
}

.realisation-content {
    padding: 1.5rem;
}

.realisation-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.realisation-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

/* Why Us */
.why-us {
    background: var(--bg-color);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

.why-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.why-item:hover {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

/* Numéro décoratif */
.why-item::before {
    content: attr(data-num);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: var(--radius);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.why-item:hover .why-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.why-icon svg {
    width: 32px;
    height: 32px;
}

.why-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.why-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-medium) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Lignes décoratives page header */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(255, 255, 255, 0.03) 60px,
        rgba(255, 255, 255, 0.03) 61px
    );
    pointer-events: none;
}

/* Cercle décoratif */
.page-header::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.page-header .container {
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb style */
.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

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

/* Realisations Page */
.realisations-page {
    padding: 4rem 0;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

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

/* Realisation Detail */
.realisation-detail {
    padding: 4rem 0;
}

.realisation-header {
    margin-bottom: 2.5rem;
}

.realisation-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.realisation-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.realisation-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-medium) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.realisation-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Carousel */
.realisation-carousel {
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin-bottom: 1rem;
}

.carousel-slides {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: var(--primary-color);
}

.realisation-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.realisation-details {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.realisation-details h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item strong {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-item span,
.detail-item p {
    color: var(--text-color);
    font-weight: 500;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.back-link {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-3px);
}

/* Contact */
.contact-page {
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.contact-item-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

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

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.contact-map {
    margin-top: 3rem;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Contact page - Dark mode */
.dark-theme .contact-info h2 {
    color: #ffffff;
}

.dark-theme .contact-item-content strong {
    color: #ffffff;
}

.dark-theme .contact-item-content span,
.dark-theme .contact-item-content a {
    color: #ffffff;
}

.dark-theme .contact-item-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Services Page */
.services-page {
    padding: 4rem 0;
}

.service-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-section.reverse {
    direction: rtl;
}

.service-section.reverse > * {
    direction: ltr;
}

.service-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.service-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: calc(0.9rem + 5px);
    width: 6px;
    height: 3px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.service-image {
    position: relative;
}

.service-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: -1;
}

.service-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.services-cta {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-medium) 100%);
    border-radius: var(--radius-lg);
    margin-top: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.03) 40px,
        rgba(255, 255, 255, 0.03) 41px
    );
    pointer-events: none;
}

.services-cta h2 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.services-cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

.services-cta .btn {
    background: white;
    color: var(--primary-color);
    border-color: white;
    position: relative;
}

.services-cta .btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* About Page */
.about-page {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-text h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-item:hover {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.value-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.value-icon svg {
    width: 26px;
    height: 26px;
}

.value-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.value-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.about-image {
    position: sticky;
    top: 100px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Main - Flexbox pour footer fixe */
main {
    flex: 1;
    width: 100%;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 5rem 0 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

/* Lignes décoratives footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 80px,
        rgba(255, 255, 255, 0.015) 80px,
        rgba(255, 255, 255, 0.015) 81px
    );
    pointer-events: none;
}

.footer .container {
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    position: relative;
}

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

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: white;
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.scroll-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Legal Pages */
.legal-page {
    padding: 3rem 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Error Page */
.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation d'apparition au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.text-center {
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Animation elements */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-element.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header scrolled */
.header-scrolled {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    box-shadow: var(--shadow);
}

.header-scrolled .navbar {
    padding: 0.75rem 0;
}

.header-scrolled .logo::before {
    width: 28px;
    height: 28px;
}

/* Form states */
.form-group.focused label {
    color: var(--primary-color);
}

.form-group.focused input,
.form-group.focused textarea {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 clamp(1rem, 4vw, 2rem);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1.5rem clamp(1rem, 4vw, 2rem);
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 0 4rem;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image::before,
    .hero-image::after {
        display: none;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .services-preview,
    .realisations-preview,
    .why-us {
        padding: 4rem 0;
    }
    
    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .service-card {
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 1rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .why-item {
        padding: 1.5rem 1rem;
    }
    
    .contact-wrapper,
    .realisation-info,
    .about-content,
    .service-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-section.reverse {
        direction: ltr;
    }
    
    .service-image::before {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-image {
        position: static;
        order: -1;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .services-cta {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

