/* ===================================
   Nicolas Le Roho - Design System
   Plomberie • Électricité • Chauffage
   =================================== */

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

/* ===================================
   CSS Variables - Design System
   =================================== */
:root {
  /* Colors - Harmonisées avec le logo */
  --color-primary: #2FAB4B;
  --color-primary-dark: #248F3C;
  --color-primary-light: #4CC764;
  --color-accent: #F47B20;
  --color-accent-dark: #D96A15;
  --color-accent-light: #FF9642;
  --color-gold: #F9D423;
  --color-gold-dark: #E5C21A;

  --color-gray-900: #1A1F2C;
  --color-gray-800: #2C3E50;
  --color-gray-600: #546E7A;
  --color-gray-400: #90A4AE;
  --color-gray-200: #E8ECEF;
  --color-gray-100: #F5F7FA;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 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);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Header Height */
  --header-height: 80px;
}

/* ===================================
   CSS Reset
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--color-accent);
}

/* ===================================
   Layout
   =================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

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

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(45, 139, 97, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 139, 97, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(232, 122, 46, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 122, 46, 0.5);
}

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

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

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ===================================
   Header
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

.header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(47, 171, 75, 0.3);
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  box-shadow: 0 4px 12px rgba(47, 171, 75, 0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-gray-900);
}

.logo-text span {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-weight: 500;
  color: var(--color-gray-600);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

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

.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gray-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  background-image: url('../assets/images/IMG_3999.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 171, 75, 0.85) 0%, rgba(36, 143, 60, 0.75) 50%, rgba(26, 31, 44, 0.9) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--color-white) 0%, transparent 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  max-width: 900px;
  padding: var(--space-8);
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  display: block;
}

.hero-title .hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-3);
  text-shadow: none;
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.8;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-8);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.hero-image-bg {
  position: absolute;
  inset: 10%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 8s ease-in-out infinite;
  box-shadow: 0 30px 60px rgba(45, 139, 97, 0.3);
}

@keyframes morphing {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

.hero-floating-card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 3s ease-in-out infinite;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-floating-card:nth-child(2) {
  top: 5%;
  right: 0;
  animation-delay: 0s;
}

.hero-floating-card:nth-child(3) {
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  animation-delay: 1s;
}

.hero-floating-card:nth-child(4) {
  bottom: 5%;
  right: 5%;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-floating-card:nth-child(3) {
  animation: floatLeft 3s ease-in-out infinite 1s;
}

@keyframes floatLeft {

  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-50%) translateX(-8px);
  }
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icon.plumbing {
  background: rgba(45, 139, 97, 0.15);
  color: var(--color-primary);
}

.floating-icon.electric {
  background: rgba(232, 122, 46, 0.15);
  color: var(--color-accent);
}

.floating-icon.heating {
  background: rgba(249, 212, 35, 0.2);
  color: var(--color-gold-dark);
}

.floating-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-800);
}

/* Hero Logo */
.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Hero Services */
.hero-title .hero-services {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--color-white);
  opacity: 0.95;
  margin-top: var(--space-2);
}

/* Hero Stats - On dark background */
.hero-stats {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  padding: var(--space-8) var(--space-10);
  margin-top: var(--space-8);
  margin-bottom: var(--space-16);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 5;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Services Section
   =================================== */
.services {
  background: var(--color-white);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  position: relative;
  padding: var(--space-10);
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color) 0%, var(--card-color-light) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.service-card.plumbing {
  --card-color: var(--color-primary);
  --card-color-light: var(--color-primary-light);
}

.service-card.electric {
  --card-color: var(--color-accent);
  --card-color-light: var(--color-accent-light);
}

.service-card.heating {
  --card-color: var(--color-gold);
  --card-color-light: var(--color-gold);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color-light) 100%);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

.service-card p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.service-list {
  margin-bottom: var(--space-6);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  color: var(--color-gray-700);
  font-size: var(--text-sm);
}

.service-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(45, 139, 97, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: bold;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--card-color);
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: var(--space-3);
}

/* Climatisation - Bandeau accrocheur */
.service-card-clim {
  position: relative;
  margin-top: var(--space-10);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #0a2540 0%, #1a5276 40%, #2980b9 100%);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(41, 128, 185, 0.3);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.service-card-clim:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(41, 128, 185, 0.45);
}

.clim-badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
  color: white;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
  }
}

.clim-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-12) var(--space-16);
}

.clim-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.25) 0%, rgba(26, 82, 118, 0.4) 100%);
  backdrop-filter: blur(12px);
  color: #a0e0ff;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(135, 206, 235, 0.25);
  border: 1px solid rgba(160, 224, 255, 0.35);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-clim:hover .clim-icon {
  transform: scale(1.08) rotate(15deg);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(135, 206, 235, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

.clim-text {
  flex: 1;
}

.clim-text h3 {
  font-size: var(--text-2xl);
  color: white;
  margin-bottom: var(--space-2);
}

.clim-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 600px;
}

.btn-clim {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: white;
  color: #1a5276;
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-clim:hover {
  background: #87ceeb;
  color: #0a2540;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Flocons décoratifs */
.clim-snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.clim-snowflakes span {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.08;
  animation: float-snowflake 6s ease-in-out infinite;
}

.clim-snowflakes span:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  font-size: 2rem;
}

.clim-snowflakes span:nth-child(2) {
  top: 60%;
  left: 30%;
  animation-delay: 2s;
  font-size: 1.2rem;
}

.clim-snowflakes span:nth-child(3) {
  top: 25%;
  right: 25%;
  animation-delay: 4s;
  font-size: 1.8rem;
}

@keyframes float-snowflake {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.08;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.15;
  }
}

/* Responsive clim */
@media (max-width: 768px) {
  .clim-content {
    flex-direction: column;
    text-align: center;
    padding: var(--space-8) var(--space-6);
    padding-top: var(--space-12);
  }

  .clim-text p {
    max-width: 100%;
  }

  .clim-badge {
    top: var(--space-3);
    right: var(--space-3);
  }
}

/* ===================================
   About Section
   =================================== */
.about {
  background: var(--color-gray-100);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 139, 97, 0.05) 0%, transparent 100%);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-main {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
}

.about-experience-badge .number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge .text {
  font-size: var(--text-sm);
  text-align: center;
  line-height: 1.2;
}

.about-content h2 {
  margin-bottom: var(--space-6);
}

.about-content>p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: rgba(45, 139, 97, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.about-feature p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

/* ===================================
   Zone Section
   =================================== */
.zone {
  background: var(--color-white);
  position: relative;
}

.zone-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.zone-content {
  order: 2;
}

.zone-visual {
  order: 1;
  position: relative;
}

.zone-map-custom {
  position: relative;
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-white) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

.morbihan-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  display: block;
}

.morbihan-shape {
  filter: drop-shadow(0 4px 12px rgba(47, 171, 75, 0.3));
  transition: all var(--transition-base);
}

.morbihan-svg:hover .morbihan-shape {
  filter: drop-shadow(0 6px 20px rgba(47, 171, 75, 0.4));
}

.city-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-gray-800);
}

.city-label-small {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  fill: var(--color-gray-600);
}

.city-label-main {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  fill: var(--color-accent);
}

.dept-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  fill: white;
  text-anchor: middle;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dept-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  fill: rgba(255, 255, 255, 0.9);
  text-anchor: middle;
}

/* Animation pulse pour Muzillac */
.pulse-ring {
  animation: pulse-map 2s infinite;
  transform-origin: center;
}

@keyframes pulse-map {

  0%,
  100% {
    opacity: 0.6;
    r: 12;
  }

  50% {
    opacity: 0.3;
    r: 18;
  }
}

.zone-map-badge-floating {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-800);
}

.zone-map-badge-floating .zone-pin-marker {
  color: var(--color-accent);
}

.zone-map-inner {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.zone-iframe-map {
  width: 100%;
  height: 100%;
  border: none;
}

.zone-map-overlay {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 10;
}

.zone-map-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-primary);
}

.zone-pin-marker {
  color: var(--color-accent);
  animation: bounce-marker 1.5s infinite;
}

@keyframes bounce-marker {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.zone-map-badge-text {
  display: flex;
  flex-direction: column;
}

.zone-map-badge-text strong {
  font-size: var(--text-base);
  color: var(--color-gray-900);
}

.zone-map-badge-text span {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
}

.zone-map-legend {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
}

.zone-map-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.green {
  background: var(--color-primary);
}

.legend-dot.orange {
  background: var(--color-accent);
}

.zone-map-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.zone-map-content h3 {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.zone-map-content p {
  font-size: var(--text-lg);
  opacity: 0.9;
}

.zone-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

.zone-pin.muzillac {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.zone-pin-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zone-pin-icon span {
  transform: rotate(45deg);
  font-size: var(--text-lg);
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

.zone-content h2 {
  margin-bottom: var(--space-6);
}

.zone-content>p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.zone-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  font-weight: 500;
}

.zone-list li::before {
  content: '📍';
  font-size: var(--text-lg);
}

.zone-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(45, 139, 97, 0.1) 0%, rgba(45, 139, 97, 0.05) 100%);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--color-primary);
}

.zone-highlight-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.zone-highlight-text h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.zone-highlight-text p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 139, 97, 0.15) 0%, transparent 100%);
}

.contact-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.contact-info h2 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.contact-info>p {
  color: var(--color-gray-400);
  margin-bottom: var(--space-10);
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-item-icon {
  width: 55px;
  height: 55px;
  background: rgba(45, 139, 97, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.contact-item-text h4 {
  color: var(--color-white);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.contact-item-text p {
  color: var(--color-gray-400);
}

.contact-item-text a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

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

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-2xl);
}

.contact-form h3 {
  margin-bottom: var(--space-6);
  color: var(--color-gray-900);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(45, 139, 97, 0.1);
}

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

.form-submit {
  margin-top: var(--space-4);
}

.form-submit .btn {
  width: 100%;
  padding: var(--space-5);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-column h4 {
  color: var(--color-white);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.footer-bottom p {
  color: var(--color-gray-600);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

  to {
    transform: rotate(360deg);
  }
}

.btn-spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 1024px) {

  .hero-container,
  .about-container,
  .zone-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .zone-visual {
    order: -1;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-8);
    gap: var(--space-6);
    box-shadow: var(--shadow-xl);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

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

  .nav-cta {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .hero-floating-card {
    display: none;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-experience-badge {
    width: 100px;
    height: 100px;
    bottom: -10px;
    right: -10px;
  }

  .about-experience-badge .number {
    font-size: var(--text-2xl);
  }

  .zone-list {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .hero-badge {
    font-size: var(--text-xs);
  }

  .service-card {
    padding: var(--space-6);
  }

  .contact-form-wrapper {
    padding: var(--space-6);
  }
}

/* ===================================
   Réalisations / Gallery Section
   =================================== */
.realisations {
  background: var(--color-bg-alt, #0f172a);
  position: relative;
}

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

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

.portfolio-card {
  border-radius: var(--border-radius-lg, 16px);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card.hidden {
  display: none !important;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 171, 75, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-img-wrapper img.active {
  opacity: 1;
}

.portfolio-card:hover .portfolio-img-wrapper img.active {
  transform: scale(1.08);
}

.slideshow-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.slideshow-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.4s ease;
}

.slideshow-dots .dot.active {
  width: 18px;
  border-radius: 10px;
  background: var(--color-primary-light, #34d399);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

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

.portfolio-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(47, 171, 75, 0.25);
  color: var(--color-primary-light, #34d399);
  border: 1px solid rgba(47, 171, 75, 0.4);
  margin-bottom: 8px;
}

.portfolio-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.portfolio-card:hover .portfolio-overlay h3 {
  color: var(--color-accent-light, #fbbf24);
}

.portfolio-overlay p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

.portfolio-zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===================================
   Lightbox Modal
   =================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: scale(1.1);
}

.lightbox-image-container {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.lightbox-caption {
  padding: 20px 24px;
}

.lightbox-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(47, 171, 75, 0.2);
  color: #34d399;
  border: 1px solid rgba(47, 171, 75, 0.3);
  margin-bottom: 8px;
}

.lightbox-caption h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.lightbox-caption p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}