/* ═══════════════════════════════════════════════════════
   Hagelstein Terrassement — Page vitrine publique
   ═══════════════════════════════════════════════════════ */

:root {
  --vt-dark: #0f172a;
  --vt-surface: #1e293b;
  --vt-card: #243247;
  --vt-text: #f1f5f9;
  --vt-muted: #94a3b8;
  --vt-accent: #f59e0b;
  --vt-accent-dim: #d97706;
  --vt-border: #334155;
  --vt-fb-blue: #1877f2;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--vt-dark);
  color: var(--vt-text);
  line-height: 1.6;
}

/* ───── Nav ───── */
.vt-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.vt-nav.is-scrolled {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: var(--vt-border);
}
.vt-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.vt-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--vt-text);
  font-weight: 700;
  font-size: 1.15rem;
}
.vt-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1e3a5f;
  color: var(--vt-accent);
  font-weight: 800;
  font-size: 1.3rem;
}
.vt-logo-icon-sm {
  width: 30px;
  height: 30px;
  font-size: 1rem;
  border-radius: 8px;
}
.vt-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.vt-nav-links a {
  color: var(--vt-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.vt-nav-links a:hover { color: var(--vt-text); }
.vt-nav-cta {
  background: var(--vt-accent) !important;
  color: #000 !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background 0.2s, transform 0.15s !important;
}
.vt-nav-cta:hover {
  background: var(--vt-accent-dim) !important;
  transform: translateY(-1px);
}

/* Burger */
.vt-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.vt-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--vt-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.vt-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vt-burger.is-open span:nth-child(2) { opacity: 0; }
.vt-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.vt-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1rem;
  gap: 0.2rem;
}
.vt-mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  color: var(--vt-muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--vt-border);
  transition: color 0.2s;
}
.vt-mobile-menu a:last-child { border: none; }
.vt-mobile-menu a:hover { color: var(--vt-text); }
.vt-mobile-menu .vt-nav-cta {
  display: inline-block;
  text-align: center;
  margin-top: 0.5rem;
  border: none !important;
}

@media (max-width: 768px) {
  .vt-nav-links { display: none; }
  .vt-burger { display: flex; }
  .vt-mobile-menu:not([hidden]) { display: flex; }
}

/* ───── Hero with parallax ───── */
.vt-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1a1a2e 100%);
}
.vt-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30, 58, 95, 0.4) 0%, transparent 60%);
  pointer-events: none;
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.05s linear;
}
.vt-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: vt-float 8s ease-in-out infinite;
}
@keyframes vt-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}
.vt-hero-content {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 800px;
}
.vt-hero-title {
  margin-bottom: 1rem;
}
.vt-hero-name {
  display: block;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vt-text);
}
.vt-hero-activity {
  display: block;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--vt-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.vt-hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--vt-muted);
  margin-bottom: 1rem;
}
.vt-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--vt-muted);
  margin-bottom: 2.5rem;
}
.vt-hero-location svg { opacity: 0.6; flex-shrink: 0; }
.vt-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ───── Buttons ───── */
.vt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.vt-btn:hover { transform: translateY(-2px); }
.vt-btn-primary {
  background: var(--vt-accent);
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.vt-btn-primary:hover {
  background: var(--vt-accent-dim);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}
.vt-btn-outline {
  background: transparent;
  color: var(--vt-text);
  border: 2px solid var(--vt-border);
}
.vt-btn-outline:hover {
  border-color: var(--vt-accent);
  color: var(--vt-accent);
}
.vt-btn-fb {
  background: var(--vt-fb-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
}
.vt-btn-fb:hover { background: #1565c0; }

/* ───── Sections ───── */
.vt-section {
  padding: 5rem 1.5rem;
}
.vt-section-alt {
  background: var(--vt-surface);
}
.vt-container {
  max-width: 1200px;
  margin: 0 auto;
}
.vt-section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.vt-section-subtitle {
  text-align: center;
  color: var(--vt-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ───── Services Grid ───── */
.vt-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.vt-service-card {
  background: var(--vt-card);
  border: 1px solid var(--vt-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(.25,.46,.45,.94), box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}
.vt-service-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.1);
  border-color: var(--vt-accent);
}
.vt-service-icon {
  margin-bottom: 1.2rem;
}
.vt-service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--vt-accent);
}
.vt-service-card p {
  color: var(--vt-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ───── Facebook Section ───── */
.vt-fb-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}
.vt-fb-embed {
  background: var(--vt-card);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--vt-border);
  overflow: hidden;
  max-width: 520px;
}
.vt-fb-embed iframe {
  display: block;
  border-radius: 10px;
  max-width: 100%;
}
.vt-fb-side {
  padding-top: 1rem;
}
.vt-fb-side h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.vt-fb-side p {
  color: var(--vt-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.vt-fb-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.vt-fb-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--vt-muted);
}
.vt-fb-stat svg { flex-shrink: 0; }

@media (max-width: 900px) {
  .vt-fb-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .vt-fb-side { padding-top: 0; }
  .vt-fb-highlights { align-items: center; }
}

@media (max-width: 540px) {
  .vt-fb-embed {
    max-width: 100%;
    padding: 0.5rem;
  }
  .vt-fb-embed iframe {
    width: 100% !important;
    height: 500px;
  }
}

/* ───── Contact Grid ───── */
.vt-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.vt-contact-card {
  background: var(--vt-card);
  border: 1px solid var(--vt-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--vt-text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
a.vt-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--vt-accent);
}
.vt-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--vt-accent);
  margin-bottom: 1rem;
}
.vt-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--vt-accent);
}
.vt-contact-card p {
  color: var(--vt-muted);
  font-size: 0.95rem;
}

/* ───── Footer ───── */
.vt-footer {
  background: var(--vt-surface);
  border-top: 1px solid var(--vt-border);
  padding: 2rem 1.5rem;
}
.vt-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.vt-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.vt-footer-links {
  display: flex;
  gap: 1rem;
}
.vt-footer-links a {
  color: var(--vt-muted);
  transition: color 0.2s;
}
.vt-footer-links a:hover { color: var(--vt-accent); }
.vt-footer-copy {
  width: 100%;
  text-align: center;
  color: var(--vt-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.vt-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.25,.46,.45,.94), transform 0.7s cubic-bezier(.25,.46,.45,.94);
}
.vt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   ARTICLES GRID
   ═══════════════════════════════════════════════════════ */
.vt-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.vt-article-card {
  background: var(--vt-card);
  border: 1px solid var(--vt-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--vt-text);
  transition: transform 0.3s cubic-bezier(.25,.46,.45,.94), box-shadow 0.3s, border-color 0.3s;
}
.vt-article-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.08);
  border-color: var(--vt-accent);
}
.vt-article-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.vt-article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
}
.vt-article-card:hover .vt-article-card-img img {
  transform: scale(1.08);
}
.vt-article-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vt-surface);
  color: var(--vt-muted);
}
.vt-article-card-body {
  padding: 1.5rem;
}
.vt-article-card-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vt-accent);
  margin-bottom: 0.5rem;
}
.vt-article-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.vt-article-card-body p {
  color: var(--vt-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.vt-article-card-date {
  font-size: 0.8rem;
  color: var(--vt-muted);
  opacity: 0.7;
}
.vt-no-articles {
  text-align: center;
  color: var(--vt-muted);
  font-size: 1.1rem;
  margin: 2rem 0;
}
.vt-fb-link {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .vt-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   ARTICLE DETAIL PAGE
   ═══════════════════════════════════════════════════════ */
.vt-article {
  padding: 7rem 1.5rem 4rem;
}
.vt-article-back {
  display: inline-block;
  color: var(--vt-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.vt-article-back:hover { color: var(--vt-accent); }
.vt-article-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.vt-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--vt-muted);
  font-size: 0.9rem;
}
.vt-article-cat {
  background: rgba(245, 158, 11, 0.15);
  color: var(--vt-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vt-article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.vt-article-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 400px;
  transition: transform 0.3s;
  cursor: pointer;
}
.vt-article-img:hover {
  transform: scale(1.02);
}
.vt-article-hero-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2rem;
}
.vt-article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--vt-muted);
  max-width: 700px;
  margin-bottom: 3rem;
}
.vt-article-cta {
  background: var(--vt-card);
  border: 1px solid var(--vt-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}
.vt-article-cta p {
  color: var(--vt-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════
   ENHANCED HOVER & GLOW EFFECTS
   ═══════════════════════════════════════════════════════ */
.vt-service-icon {
  margin-bottom: 1.2rem;
  transition: transform 0.3s;
}
.vt-service-card:hover .vt-service-icon {
  transform: scale(1.15) rotate(-3deg);
}
a.vt-contact-card {
  transition: transform 0.3s cubic-bezier(.25,.46,.45,.94), box-shadow 0.3s, border-color 0.3s;
}
a.vt-contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.1);
  border-color: var(--vt-accent);
}
.vt-contact-icon {
  transition: transform 0.3s, background 0.3s;
}
a.vt-contact-card:hover .vt-contact-icon {
  transform: scale(1.1);
  background: rgba(245, 158, 11, 0.2);
}

/* Hero content fade-in on load */
.vt-hero-content {
  animation: vt-hero-fadein 1s ease-out both;
}
@keyframes vt-hero-fadein {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.vt-hero-activity {
  animation: vt-hero-fadein 1s 0.2s ease-out both;
}
.vt-hero-name {
  animation: vt-hero-fadein 1s 0.4s ease-out both;
}
.vt-hero-tagline {
  animation: vt-hero-fadein 1s 0.6s ease-out both;
}
.vt-hero-actions {
  animation: vt-hero-fadein 1s 0.8s ease-out both;
}

/* Button pulse on hero */
.vt-btn-primary {
  position: relative;
  overflow: hidden;
}
.vt-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: none;
}
.vt-btn-primary:hover::after {
  animation: vt-btn-shine 0.6s forwards;
}
@keyframes vt-btn-shine {
  to { transform: translateX(100%); }
}
