/* =====================================================
   VERDE MER PAYSAGES — Design System v1.0
   Paysagiste premium méditerranéen
   ===================================================== */

:root {
  --vm-sage: #5C8C5A;
  --vm-sage-dark: #3F6B3F;
  --vm-deep: #1F2A22;
  --vm-sand: #E8DCC4;
  --vm-sea: #3A6B8C;
  --vm-cream: #FAF6EE;
  --vm-ivory: #FFFCF5;
  --vm-gold: #C9A24A;
  --vm-charcoal: #2A2F2A;
  --vm-mute: #6B7268;
  --vm-line: #E5DDC9;
  --vm-font-serif: 'Cormorant Garamond', Georgia, serif;
  --vm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --vm-max: 1240px;
  --vm-pad: clamp(20px, 4vw, 60px);
  --vm-radius: 4px;
  --vm-radius-lg: 12px;
  --vm-shadow-card: 0 8px 32px rgba(31, 42, 34, 0.08);
  --vm-shadow-hover: 0 16px 48px rgba(31, 42, 34, 0.16);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--vm-font-sans);
  color: var(--vm-charcoal);
  background: var(--vm-ivory);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, .vm-serif {
  font-family: var(--vm-font-serif);
  font-weight: 500;
  color: var(--vm-deep);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 22px); }
.vm-italic { font-style: italic; font-weight: 400; }
.vm-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vm-sage);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}
.vm-lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--vm-mute);
  max-width: 64ch;
}
.vm-container { max-width: var(--vm-max); margin: 0 auto; padding: 0 var(--vm-pad); }
.vm-section { padding: clamp(60px, 9vw, 120px) 0; }
.vm-section--cream { background: var(--vm-cream); }
.vm-section--deep { background: var(--vm-deep); color: var(--vm-cream); }
.vm-section--deep h1, .vm-section--deep h2, .vm-section--deep h3 { color: var(--vm-ivory); }

.vm-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--vm-line);
}
.vm-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--vm-pad);
  max-width: var(--vm-max); margin: 0 auto;
}
.vm-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--vm-font-serif);
  font-size: 22px; font-weight: 600;
  color: var(--vm-deep);
}
.vm-logo svg { width: 32px; height: 32px; color: var(--vm-sage); }
.vm-nav-links {
  display: flex; gap: 36px; align-items: center; list-style: none;
}
.vm-nav-links a {
  font-size: 15px;
  color: var(--vm-charcoal);
  transition: color 0.2s ease;
  position: relative;
}
.vm-nav-links a:hover { color: var(--vm-sage); }
.vm-nav-links a.is-active { color: var(--vm-sage); font-weight: 600; }
.vm-nav-links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--vm-sage);
}
.vm-burger { display: none; width: 32px; height: 32px; }
@media (max-width: 860px) {
  .vm-nav-links { display: none; }
  .vm-burger { display: block; }
}

.vm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--vm-radius);
  font-weight: 500; font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}
.vm-btn-primary { background: var(--vm-sage); color: var(--vm-ivory); }
.vm-btn-primary:hover {
  background: var(--vm-sage-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(92, 140, 90, 0.3);
}
.vm-btn-ghost { border: 1px solid var(--vm-deep); color: var(--vm-deep); }
.vm-btn-ghost:hover { background: var(--vm-deep); color: var(--vm-ivory); }

.vm-hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; overflow: hidden;
}
.vm-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31, 42, 34, 0.55) 0%, rgba(58, 107, 140, 0.4) 100%);
  z-index: 1;
}
.vm-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
  background-color: var(--vm-deep);
  background-image: linear-gradient(135deg, #2D4A2D 0%, #5C8C5A 35%, #3A6B8C 70%, #1F2A22 100%);
}
/* Image fallback — gradient placeholders when img absent */
.vm-realisation-card { background: linear-gradient(135deg, #2D4A2D 0%, #5C8C5A 40%, #3A6B8C 80%, #1F2A22 100%); }
.vm-realisation-card:nth-child(4n+1) { background: linear-gradient(135deg, #5C8C5A 0%, #3F6B3F 60%, #1F2A22 100%); }
.vm-realisation-card:nth-child(4n+2) { background: linear-gradient(135deg, #3A6B8C 0%, #5C8C5A 50%, #1F2A22 100%); }
.vm-realisation-card:nth-child(4n+3) { background: linear-gradient(135deg, #E8DCC4 0%, #C9A24A 40%, #5C8C5A 70%, #1F2A22 100%); }
.vm-realisation-card:nth-child(4n+4) { background: linear-gradient(135deg, #1F2A22 0%, #3A6B8C 50%, #5C8C5A 100%); }
/* Team portrait fallback — sage circles with gold ring */
.a-propos .vm-fx-up [style*="border-radius: 50%"]:not(:has(img)),
[style*="border-radius: 50%"][style*="aspect-ratio: 1/1"] {
  background: linear-gradient(135deg, #5C8C5A 0%, #3F6B3F 70%, #1F2A22 100%) !important;
  box-shadow: inset 0 0 0 2px rgba(201, 162, 74, 0.4);
}
.vm-hero-content { position: relative; z-index: 2; color: var(--vm-ivory); max-width: 760px; }
.vm-hero h1 { color: var(--vm-ivory); }
.vm-hero .vm-lead { color: rgba(250, 246, 238, 0.92); }
.vm-hero .vm-eyebrow { color: var(--vm-sand); }
.vm-hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.vm-hero .vm-btn-ghost { color: var(--vm-ivory); border-color: var(--vm-ivory); }
.vm-hero .vm-btn-ghost:hover { background: var(--vm-ivory); color: var(--vm-deep); }

.vm-usp {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--vm-line); border-bottom: 1px solid var(--vm-line);
}
.vm-usp-item {
  padding: 32px var(--vm-pad);
  border-right: 1px solid var(--vm-line);
  text-align: center;
}
.vm-usp-item:last-child { border-right: none; }
.vm-usp-item svg { width: 36px; height: 36px; color: var(--vm-sage); margin: 0 auto 12px; display: block; }
.vm-usp-item strong {
  display: block; font-family: var(--vm-font-serif);
  font-size: 22px; color: var(--vm-deep); margin-bottom: 4px;
}
.vm-usp-item span { font-size: 14px; color: var(--vm-mute); }
@media (max-width: 720px) {
  .vm-usp { grid-template-columns: 1fr; }
  .vm-usp-item { border-right: none; border-bottom: 1px solid var(--vm-line); }
}

.vm-section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.vm-section-head--left { text-align: left; margin: 0 0 56px; }

.vm-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.vm-service-card {
  background: var(--vm-ivory);
  border: 1px solid var(--vm-line);
  border-radius: var(--vm-radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.vm-service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--vm-sage);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.vm-service-card:hover { transform: translateY(-6px); box-shadow: var(--vm-shadow-card); }
.vm-service-card:hover::before { transform: scaleX(1); }
.vm-service-card svg { width: 44px; height: 44px; color: var(--vm-sage); margin-bottom: 20px; }
.vm-service-card h3 { margin-bottom: 12px; }
.vm-service-card p { color: var(--vm-mute); font-size: 15px; }
.vm-service-card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  color: var(--vm-sage); font-weight: 600; font-size: 14px;
}

.vm-realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.vm-realisation-card {
  position: relative; border-radius: var(--vm-radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--vm-deep);
  transition: transform 0.4s ease;
}
.vm-realisation-card:hover { transform: scale(1.02); }
.vm-realisation-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.vm-realisation-card:hover img { transform: scale(1.05); }
.vm-realisation-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,42,34,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; color: var(--vm-ivory);
}
.vm-realisation-card-overlay h4 { color: var(--vm-ivory); margin-bottom: 4px; }
.vm-realisation-card-overlay span {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vm-sand);
}

.vm-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 60px;
}
.vm-process-step .vm-step-num {
  font-family: var(--vm-font-serif);
  font-size: 56px; font-weight: 400;
  color: var(--vm-sage);
  line-height: 1; margin-bottom: 16px;
  display: block;
}
.vm-process-step h4 { margin-bottom: 10px; }
.vm-process-step p { color: var(--vm-mute); font-size: 15px; }

.vm-testimonial-quote {
  font-family: var(--vm-font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-style: italic; line-height: 1.5;
  color: var(--vm-deep);
  text-align: center;
  max-width: 820px; margin: 0 auto;
}
.vm-testimonial-author { margin-top: 32px; text-align: center; }
.vm-testimonial-author strong { display: block; color: var(--vm-deep); font-size: 16px; }
.vm-testimonial-author span { display: block; color: var(--vm-mute); font-size: 14px; margin-top: 4px; }

.vm-cta-section {
  background: var(--vm-deep); color: var(--vm-ivory);
  text-align: center; position: relative; overflow: hidden;
}
.vm-cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(92,140,90,0.15) 0%, transparent 70%);
}
.vm-cta-section .vm-container { position: relative; z-index: 1; }
.vm-cta-section h2 { color: var(--vm-ivory); margin-bottom: 20px; }
.vm-cta-section p { color: rgba(250,246,238,0.85); margin: 0 auto 36px; max-width: 600px; }
.vm-cta-section .vm-btn-ghost { color: var(--vm-ivory); border-color: var(--vm-ivory); }

.vm-footer {
  background: var(--vm-deep); color: rgba(250,246,238,0.72);
  padding: 80px 0 32px;
}
.vm-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
}
.vm-footer h5 {
  font-family: var(--vm-font-sans);
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--vm-ivory); margin-bottom: 20px; font-weight: 600;
}
.vm-footer ul { list-style: none; }
.vm-footer ul li { margin-bottom: 10px; font-size: 14px; }
.vm-footer a:hover { color: var(--vm-sage); }
.vm-footer-logo {
  font-family: var(--vm-font-serif);
  font-size: 28px; color: var(--vm-ivory); margin-bottom: 16px;
}
.vm-footer-bottom {
  border-top: 1px solid rgba(250,246,238,0.1);
  padding-top: 32px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: 13px;
}
@media (max-width: 760px) { .vm-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 480px) { .vm-footer-grid { grid-template-columns: 1fr; } }

.vm-form { display: grid; gap: 20px; }
.vm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .vm-form-row { grid-template-columns: 1fr; } }
.vm-form label {
  display: block; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vm-mute); margin-bottom: 8px; font-weight: 600;
}
.vm-form input, .vm-form textarea, .vm-form select {
  width: 100%; padding: 14px 16px;
  background: var(--vm-ivory);
  border: 1px solid var(--vm-line);
  border-radius: var(--vm-radius);
  font-family: inherit; font-size: 15px;
  color: var(--vm-charcoal);
  transition: border-color 0.2s ease;
}
.vm-form input:focus, .vm-form textarea:focus, .vm-form select:focus {
  outline: none; border-color: var(--vm-sage);
}
.vm-form textarea { min-height: 140px; resize: vertical; }

.vm-page-hero {
  background: var(--vm-cream);
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--vm-line);
  text-align: center;
}
.vm-page-hero h1 { margin-bottom: 16px; }
.vm-page-hero .vm-lead { margin: 0 auto; }

.vm-fx-up, .vm-fx-left, .vm-fx-right {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.vm-fx-up { transform: translateY(40px); }
.vm-fx-left { transform: translateX(-40px); }
.vm-fx-right { transform: translateX(40px); }
.vm-fx-up.is-visible, .vm-fx-left.is-visible, .vm-fx-right.is-visible {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .vm-fx-up, .vm-fx-left, .vm-fx-right { opacity: 1 !important; transform: none !important; }
}

.vm-mobile-menu {
  position: fixed; inset: 0; background: var(--vm-cream);
  z-index: 100; display: none;
  flex-direction: column; padding: 80px 32px;
}
.vm-mobile-menu.is-open { display: flex; }
.vm-mobile-menu ul { list-style: none; }
.vm-mobile-menu li { margin-bottom: 24px; }
.vm-mobile-menu a {
  font-family: var(--vm-font-serif);
  font-size: 32px; color: var(--vm-deep);
}
.vm-mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
