/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - CONFORT THERMIQUE 31
   ========================================================================== */

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

:root {
    /* Color Palette */
    --primary: #0f172a;        /* Slate 900 */
    --primary-light: #1e293b;  /* Slate 800 */
    --secondary: #1e3a8a;      /* Deep Blue */
    
    /* Hot & Cold Theme Gradients */
    --cold-color: #0ea5e9;     /* Sky 500 */
    --cold-light: #38bdf8;     /* Sky 400 */
    --hot-color: #ea580c;      /* Orange 600 */
    --hot-light: #f97316;      /* Orange 500 */
    
    --accent: #2563eb;         /* Blue 600 */
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    /* Neutrals */
    --background: #f8fafc;     /* Slate 50 */
    --surface: #ffffff;
    --surface-muted: #f1f5f9;  /* Slate 100 */
    --text: #334155;           /* Slate 700 */
    --text-dark: #0f172a;      /* Slate 900 */
    --text-muted: #64748b;     /* Slate 500 */
    
    /* Status Colors */
    --success: #10b981;        /* Emerald 500 */
    --error: #ef4444;          /* Red 500 */
    --warning: #f59e0b;        /* Amber 500 */
    
    /* Layout & Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow-cold: 0 0 20px rgba(14, 165, 233, 0.25);
    --shadow-glow-hot: 0 0 20px rgba(234, 88, 12, 0.25);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Container Width */
    --container-max: 1280px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header .tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--accent);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    .section-header {
        margin-bottom: 40px;
    }
}

/* Gradients text */
.gradient-text {
    background: linear-gradient(135deg, var(--cold-color) 0%, var(--hot-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cold-color) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, var(--cold-light) 0%, var(--secondary) 100%);
}

.btn-hot {
    background: linear-gradient(135deg, var(--hot-color) 0%, var(--hot-light) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.btn-hot:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
    background: linear-gradient(135deg, #f97316 0%, #ffedd5 200%);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--surface-muted);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: white; /* Blanc par défaut sur le fond sombre du héro */
    transition: var(--transition-normal);
    flex-shrink: 0;
    white-space: nowrap;
}

.header.scrolled .logo {
    color: var(--primary); /* Devient sombre lors du défilement */
}

.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--surface); /* Fond blanc : le logo est conçu pour un fond clair */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}

.logo-text span {
    color: var(--cold-light);
    transition: var(--transition-normal);
}

.header.scrolled .logo-text span {
    color: var(--cold-color);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85); /* Blanc translucide par défaut */
    position: relative;
    padding: 6px 0;
    transition: var(--transition-normal);
}

.header.scrolled .nav-link {
    color: var(--text-dark); /* Sombre lors du défilement */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cold-light) 0%, var(--hot-light) 100%);
    transition: var(--transition-normal);
}

.header.scrolled .nav-link::after {
    background: linear-gradient(90deg, var(--cold-color) 0%, var(--hot-color) 100%);
}

.nav-link:hover {
    color: white;
}

.header.scrolled .nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-cta .btn {
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white; /* Blanc par défaut sur le héros */
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.header.scrolled .menu-toggle span,
.menu-toggle.active span {
    background-color: var(--primary); /* Devient sombre lors du défilement ou de l'ouverture */
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--surface);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 24px;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--text-dark);
    }
    
    .nav-menu .nav-link:hover {
        color: var(--accent);
    }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        gap: 12px;
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    /* Animated burger state */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

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

.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background-color: var(--primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(234, 88, 12, 0.08) 0%, transparent 40%),
        linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content p.lead {
    font-size: 1.25rem;
    color: #94a3b8; /* Slate 400 */
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

/* Badge RGE / Reassurance */
.reassurance-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-item:nth-child(1) .badge-icon { color: var(--cold-light); }
.badge-item:nth-child(2) .badge-icon { color: var(--hot-light); }

.badge-text p:first-child {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge-text p:last-child {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

/* Hero Visual card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-img-wrapper:hover img {
    transform: scale(1.03);
}

/* Floating Card over image */
.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-width: 260px;
    z-index: 10;
}

.floating-rating {
    display: flex;
    color: #fbbf24; /* Amber 400 */
    gap: 4px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.floating-comment {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.floating-author {
    font-size: 0.75rem;
    color: #94a3b8;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-visual {
        margin-top: 20px;
    }
    
    .hero-floating-card {
        bottom: -10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero {
        padding-top: 130px;
        padding-bottom: 80px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-floating-card {
        display: none; /* Hide floating card on small mobile */
    }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats {
    background-color: var(--surface);
    position: relative;
    z-index: 20;
    margin-top: -50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: var(--surface-muted);
}

.stat-item {
    background-color: var(--surface);
    padding: 40px;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-4px);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--cold-color) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item:nth-child(2n) .stat-number {
    background: linear-gradient(135deg, var(--hot-color) 0%, var(--hot-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item {
        padding: 30px;
    }
}

/* ==========================================================================
   SERVICES & PRESENTATION
   ========================================================================== */

.services {
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--surface-muted);
    transition: var(--transition-normal);
}

.service-card:nth-child(1)::before,
.service-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--cold-color), var(--cold-light));
}

.service-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--hot-color), var(--hot-light));
}

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

.service-card:nth-child(1):hover { box-shadow: var(--shadow-xl), var(--shadow-glow-cold); }
.service-card:nth-child(2):hover { box-shadow: var(--shadow-xl), var(--shadow-glow-hot); }
.service-card:nth-child(3):hover { box-shadow: var(--shadow-xl), var(--shadow-glow-cold); }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    background: var(--surface-muted);
    transition: var(--transition-normal);
}

.service-card:nth-child(1) .service-icon,
.service-card:nth-child(3) .service-icon {
    background: rgba(14, 165, 233, 0.08);
    color: var(--cold-color);
}

.service-card:nth-child(2) .service-icon {
    background: rgba(234, 88, 12, 0.08);
    color: var(--hot-color);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.service-features li::before {
    content: '✓';
    font-weight: bold;
    color: var(--success);
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
}

.service-link span {
    transition: var(--transition-fast);
}

.service-card:hover .service-link span {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   ABOUT / VALUES SECTION
   ========================================================================== */

.about {
    background-color: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-wrapper img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--cold-color) 0%, var(--hot-color) 100%);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--surface);
    text-align: center;
}

.about-badge span:first-child {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.about-badge span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
}

.value-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 4px;
}

.value-text h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.value-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-badge {
        width: 100px;
        height: 100px;
        top: -10px;
        right: -10px;
    }
    
    .about-badge span:first-child {
        font-size: 1.4rem;
    }
    
    .about-badge span:last-child {
        font-size: 0.65rem;
    }
}

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

/* ==========================================================================
   PORTFOLIO / SHOWCASE
   ========================================================================== */

.portfolio {
    background-color: var(--background);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--primary);
    aspect-ratio: 4 / 3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0) 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    color: white;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.portfolio-tag.cold {
    background-color: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--cold-light);
}

.portfolio-tag.hot {
    background-color: rgba(234, 88, 12, 0.2);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: var(--hot-light);
}

.portfolio-overlay h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    color: #cbd5e1; /* Slate 300 */
}

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

/* ==========================================================================
   ZONE D'INTERVENTION & CARTE
   ========================================================================== */

.map-section {
    background-color: var(--surface);
}

.map-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-info {
    padding: 20px;
}

.map-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.map-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.city-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 30px;
}

.city-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.city-list li::before {
    content: '📍';
    font-size: 0.85rem;
}

/* Leaflet map wrapper styling */
.map-visual {
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1; /* Keep leaflet under overlay items but visible */
}

#map {
    width: 100%;
    height: 100%;
    background-color: #e5e9f0; /* Fallback mapbg */
}

@media (max-width: 991px) {
    .map-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-visual {
        height: 350px;
    }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials {
    background-color: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-quote::before {
    content: '“';
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(37, 99, 235, 0.08);
    position: absolute;
    top: -24px;
    left: -12px;
    line-height: 1;
}

.testimonial-rating {
    color: #fbbf24;
    gap: 4px;
    display: flex;
    margin-bottom: 16px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--cold-light) 0%, var(--hot-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
}

.testimonial-user-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-user-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */

.contact-section {
    background-color: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Left Card: Info */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0) 70%);
    bottom: -100px;
    right: -100px;
}

.contact-info-card h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info-card p.intro {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 1rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.4rem;
    color: var(--cold-light);
    background: rgba(255, 255, 255, 0.06);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-text h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-text p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.info-text a:hover {
    color: var(--cold-light);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--cold-color);
    border-color: var(--cold-color);
    transform: translateY(-2px);
}

/* Right Card: Form */
.contact-form-wrapper {
    padding: 60px;
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.contact-form-wrapper p.desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Forms components */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--surface-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Modern Validation styles via :user-valid CSS4 rules / standard pseudo */
.form-control:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.02);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    animation: fadeIn var(--transition-normal);
}

.form-feedback.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.form-feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* Spinner for loading state */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

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

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 40px;
    }
    
    .contact-form-wrapper {
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

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

.footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--cold-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: flex;
    gap: 12px;
}

.footer-contact-info span:first-child {
    color: var(--cold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer {
        padding: 60px 0 30px 0;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
