﻿/* ─── CSS Variables ─── */
    :root {
      --background: #ffffff;
      --foreground: #0f172a;
      --muted-foreground: #475569;
      --primary: #111827;
      --primary-foreground: #f8fafc;
      --secondary: #e2e8f0;
      --muted: #64748b;
      --accent: #16a34a;
      --accent-soft: rgba(22, 163, 74, 0.12);
      --border: #cbd5e1;
      --input: #f8fafc;
      --font-display: 'Montserrat', sans-serif;
      --font-body: 'Inter', sans-serif;
      --transition: all 0.35s ease;
    }

    /* ─── Reset ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      overflow-x: hidden;
    }
    .container { width: min(1120px, 90vw); margin: 0 auto; }

    /* ─── Preloader ─── */
    .preloader {
      position: fixed; inset: 0; z-index: 9999;
      background: var(--background);
      display: flex; align-items: center; justify-content: center;
      transition: opacity 0.6s ease;
    }
    .spinner {
      width: 60px; height: 60px;
      border: 3px solid rgba(255,255,255,0.1);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.9s linear infinite;
    }

    /* ─── Liquid Glass ─── */
    .liquid-glass {
      background: rgba(255, 255, 255, 0.01);
      background-blend-mode: luminosity;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border: none;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
    }
    .liquid-glass::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1.4px;
      background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    /* ─── Header / Nav ─── */
    .header {
      position: fixed; top: 0; left: 0; right: 0; z-index: 999;
      transition: var(--transition);
    }
    .header.scrolled {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }
    .navbar {
      display: flex; justify-content: space-between; align-items: center;
      padding: 1.5rem 2rem;
      max-width: 1120px; margin: 0 auto;
    }
    .logo {
      font-family: var(--font-display);
      font-size: 1.5rem;
      letter-spacing: -0.02em;
      color: var(--foreground);
      text-decoration: none;
      display: flex; align-items: center; gap: 0.6rem;
    }
    .logo img { height: 36px; filter: brightness(1.1); }
    .logo span { color: var(--accent); }
    .nav-links {
      display: flex; gap: 0.25rem; list-style: none; align-items: center;
    }
    .nav-links li a {
      color: var(--foreground);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      padding: 0.5rem 0.9rem;
      border-radius: 0.5rem;
      transition: color 0.2s ease, background 0.2s ease;
    }
    .nav-links li a:hover,
    .nav-links li a.active { color: var(--accent); background: rgba(22, 163, 74, 0.08); }
    .nav-cta {
      margin-left: 0.75rem;
      padding: 0.55rem 1.3rem;
      border-radius: 999px;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--foreground);
      cursor: pointer;
      transition: transform 0.2s ease;
      text-decoration: none;
    }
    .nav-cta:hover { transform: scale(1.03); }
    .nav-toggler {
      display: none;
      background: transparent; border: 0;
      color: var(--foreground); font-size: 1.3rem; cursor: pointer;
    }

    /* ─── Hero ─── */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      text-align: center;
      padding: 6rem 1.5rem 5rem;
      overflow: hidden;
    }
    .hero-video {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      z-index: 0;
    }
    .hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.75) 100%
      );
      z-index: 1;
    }
    .hero-content {
      position: relative; z-index: 2;
      max-width: 900px;
    }
    .hero-eyebrow {
      display: inline-block;
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--foreground);
      margin-bottom: 1.5rem;
      animation: fade-rise 0.8s ease-out both;
    }
    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2.8rem, 7vw, 5.5rem);
      line-height: 1.0;
      letter-spacing: -0.03em;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 1.5rem;
      animation: fade-rise 0.8s ease-out 0.1s both;
    }
    .hero h1 em {
      font-style: normal;
      color: var(--muted-foreground);
    }
    .hero-sub {
      font-size: clamp(1rem, 2vw, 1.1rem);
      color: var(--muted-foreground);
      max-width: 560px;
      margin: 0 auto 2.5rem;
      line-height: 1.7;
      animation: fade-rise 0.8s ease-out 0.2s both;
    }
    .hero-buttons {
      display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
      animation: fade-rise 0.8s ease-out 0.4s both;
    }
    .btn {
      display: inline-flex; align-items: center; gap: 0.45rem;
      border: none; border-radius: 999px;
      font-family: var(--font-body);
      font-weight: 600; font-size: 0.95rem;
      padding: 0.85rem 2rem;
      cursor: pointer; text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .btn-primary {
      background: var(--accent);
      color: #fff;
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35); }
    .btn-glass {
      color: var(--foreground);
    }
    .btn-glass:hover { transform: scale(1.03); }

    /* ─── Scroll indicator ─── */
    .scroll-indicator {
      position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
      z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
      color: var(--muted-foreground); font-size: 0.75rem; letter-spacing: 0.1em;
      animation: fade-rise 1s ease-out 1s both;
    }
    .scroll-line {
      width: 1px; height: 40px;
      background: linear-gradient(to bottom, var(--muted-foreground), transparent);
      animation: scroll-line 2s ease-in-out infinite;
    }
    @keyframes scroll-line {
      0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
      50% { opacity: 1; transform: scaleY(1); }
    }

    /* ─── Sections ─── */
    .section { padding: 5rem 0; }
    #devis {
      background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.02) 100%);
      border-top: 1px solid rgba(22, 163, 74, 0.14);
      border-bottom: 1px solid rgba(22, 163, 74, 0.14);
    }
    .section-label {
      font-size: 0.75rem; font-weight: 600;
      letter-spacing: 0.15em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 1rem;
    }
    .section-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700; letter-spacing: -0.02em;
      color: var(--foreground); margin-bottom: 0.75rem; line-height: 1.15;
    }
    .section-subtitle {
      color: var(--muted-foreground);
      font-size: 1rem; max-width: 520px; line-height: 1.7;
      margin-bottom: 3rem;
    }

    /* ─── Stats strip ─── */
    .stats-strip {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 1px; background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 16px; overflow: hidden;
      margin-bottom: 5rem;
    }
    .stat-item {
      padding: 2rem; text-align: center;
      background: rgba(255,255,255,0.02);
      backdrop-filter: blur(4px);
    }
    .stat-num {
      font-family: var(--font-display);
      font-size: 2.5rem; color: var(--accent);
      display: block;
    }
    .stat-label { font-size: 0.85rem; color: var(--muted-foreground); margin-top: 0.25rem; }

    /* ─── Services ─── */
    .services-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem;
    }
    .service-card {
      padding: 1.8rem;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.04);
      transition: var(--transition);
      cursor: default;
    }
    .service-card:hover {
      border-color: rgba(34, 197, 94, 0.3);
      background: rgba(34, 197, 94, 0.05);
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    .service-icon {
      width: 52px; height: 52px; margin-bottom: 1.2rem;
      filter: brightness(1.1);
    }
    .service-card h3 {
      font-family: var(--font-display);
      font-size: 1.25rem; font-weight: 700;
      color: var(--foreground); margin-bottom: 0.6rem;
    }
    .service-card p { color: var(--muted-foreground); font-size: 0.9rem; line-height: 1.6; }

    .devis-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }
    .devis-card {
      display: flex; align-items: center; gap: 0.8rem;
      padding: 1.25rem 1.35rem;
      border: 1px solid rgba(15, 23, 42, 0.1);
      border-radius: 14px;
      background: rgba(15, 23, 42, 0.03);
      cursor: pointer;
      transition: var(--transition);
    }
    .devis-card:hover {
      border-color: rgba(15, 23, 42, 0.25);
      background: rgba(15, 23, 42, 0.08);
    }
    .devis-card i {
      color: #000000 !important;
      font-size: 1rem;
      min-width: 20px;
    }
    .devis-card i.fas.fa-clock {
      color: #000000 !important;
    }
    .devis-card input {
      width: 18px; height: 18px;
      accent-color: var(--accent);
      cursor: pointer;
    }
    .devis-card span {
      color: var(--foreground);
      font-weight: 600;
    }

    /* ─── About ─── */
    .about-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    }
    .about-text .section-title { font-size: clamp(1.6rem, 3vw, 2.5rem); }
    .about-text p { color: var(--muted-foreground); margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; }
    .about-text ul {
      list-style: none; display: flex; flex-direction: column; gap: 0.6rem;
    }
    .about-text ul li {
      display: flex; align-items: center; gap: 0.75rem;
      color: var(--foreground); font-size: 0.9rem;
    }
    .about-text ul li::before {
      content: ''; width: 6px; height: 6px;
      background: var(--accent); border-radius: 50%; flex-shrink: 0;
    }
    .about-image-wrap {
      position: relative; border-radius: 20px; overflow: hidden;
      aspect-ratio: 4/3;
      border: 1px solid rgba(255,255,255,0.08);
    }
    .about-image-wrap img {
      width: 100%; height: 100%; object-fit: cover;
    }
    .about-image-placeholder {
      width: 100%; height: 100%;
      background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=900&q=80') center/cover;
    }

    /* ─── Contact ─── */
    .contact-grid {
      display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start;
    }
    .contact-details { display: flex; flex-direction: column; gap: 1rem; }
    .contact-item {
      display: flex; align-items: center; gap: 1rem;
      padding: 1rem 1.2rem;
      background: rgba(15, 23, 42, 0.04);
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 12px;
      color: var(--foreground);
      font-size: 0.9rem;
    }
    .contact-item i { color: var(--accent); font-size: 1.1rem; width: 20px; text-align: center; }
    .contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
    .contact-form input,
    .contact-form textarea {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      color: var(--foreground);
      padding: 0.85rem 1rem;
      font-family: var(--font-body);
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .contact-form .input-label {
      display: block;
      margin: 0.75rem 0 0.35rem;
      color: var(--foreground);
      font-size: 0.95rem;
      font-weight: 600;
    }
    .contact-form input::placeholder,
    .contact-form textarea::placeholder { color: var(--muted-foreground); }
    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    }
    .contact-form input[type="datetime-local"] {
      -webkit-appearance: none;
      appearance: none;
      cursor: pointer;
    }
    .contact-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
      opacity: 1;
      cursor: pointer;
    }
    .contact-form textarea { resize: vertical; min-height: 130px; }
    .contact-status { font-size: 0.85rem; min-height: 1.2rem; }

    /* ─── Footer ─── */
    .footer {
      border-top: 1px solid rgba(15, 23, 42, 0.08);
      padding: 3rem 0 2rem;
      background: #f8fafc;
    }
    .footer-grid {
      display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
      margin-bottom: 2rem;
    }
    .footer h3 {
      font-family: var(--font-display);
      font-size: 1.1rem; font-weight: 700;
      color: var(--foreground); margin-bottom: 0.8rem;
    }
    .footer h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); margin-bottom: 0.75rem; }
    .footer p { color: var(--muted-foreground); font-size: 0.85rem; line-height: 1.7; }
    .footer ul { list-style: none; }
    .footer a { color: var(--muted-foreground); text-decoration: none; font-size: 0.85rem; display: block; margin: 0.3rem 0; transition: color 0.2s ease; }
    .footer a:hover { color: var(--foreground); }
    .social-icons { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
    .social-icons a {
      width: 36px; height: 36px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted-foreground);
      font-size: 0.85rem;
      transition: var(--transition);
    }
    .social-icons a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
    .copyright {
      text-align: center; font-size: 0.8rem;
      color: var(--muted-foreground);
      border-top: 1px solid rgba(255,255,255,0.06);
      padding-top: 1.5rem;
    }

    /* ─── Fixed Buttons ─── */
    .scroll-top {
      position: fixed; bottom: 25px; right: 22px;
      width: 44px; height: 44px;
      border-radius: 50%; border: none;
      background: var(--accent);
      color: #fff;
      display: none; align-items: center; justify-content: center;
      cursor: pointer; z-index: 999;
      transition: var(--transition);
    }
    .scroll-top:hover { background: var(--accent); border-color: var(--accent); }
    .whatsapp-btn {
      position: fixed; bottom: 80px; right: 22px;
      width: 50px; height: 50px; border-radius: 50%;
      background: #25d366; color: #fff;
      display: flex; align-items: center; justify-content: center;
      text-decoration: none; font-size: 1.5rem;
      box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
      z-index: 999; transition: transform 0.3s ease;
    }
    .whatsapp-btn:hover { transform: scale(1.1); }

    /* ─── Animations ─── */
    @keyframes fade-rise {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .animate-fade-rise { animation: fade-rise 0.8s ease-out both; }
    .animate-fade-rise-delay { animation: fade-rise 0.8s ease-out 0.2s both; }
    .animate-fade-rise-delay-2 { animation: fade-rise 0.8s ease-out 0.4s both; }

    /* Intersection observer invisible state */
    .invisible { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .invisible.visible { opacity: 1; transform: translateY(0); }

    /* ─── Responsive ─── */
    @media (max-width: 900px) {
      .about-grid, .contact-grid { grid-template-columns: 1fr; }
      .about-image-wrap { aspect-ratio: 16/9; }
      .stats-strip { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh;
        width: 240px; flex-direction: column;
        align-items: flex-start; gap: 0;
        padding: 5rem 1.5rem 2rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        transition: right 0.32s ease;
      }
      .nav-links.show { right: 0; }
      .nav-links li { width: 100%; }
      .nav-links li a { display: block; width: 100%; padding: 0.75rem 0.5rem; font-size: 1rem; }
      .nav-cta { display: none; }
      .nav-toggler { display: block; }
      .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    }
    @media (max-width: 640px) {
      .hero { padding: 5rem 1rem 4rem; }
      .hero-content { max-width: 100%; }
      .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
      .hero-sub { max-width: 100%; font-size: 0.98rem; margin-bottom: 1.75rem; }
      .hero-buttons { flex-direction: column; gap: 0.85rem; }
      .btn { width: 100%; justify-content: center; }
      .services-grid, .devis-grid { grid-template-columns: 1fr; }
      .service-card, .devis-card { padding: 1.5rem; }
      .devis-card { gap: 1rem; }
      .contact-grid { grid-template-columns: 1fr; }
      .contact-form { gap: 1rem; }
      .contact-form input, .contact-form textarea { width: 100%; }
      .contact-form .input-label { margin-top: 1rem; }
      .footer { padding: 2rem 0 1.5rem; }
    }
    @media (max-width: 480px) {
      .section { padding: 3rem 0; }
      .hero h1 { font-size: 2.2rem; }
      .hero-sub { font-size: 0.95rem; }
      .navbar { padding: 1rem 1rem; }
      .logo { font-size: 1.25rem; }
      .nav-links { width: 100%; }
      .nav-links.show { right: 0; }
      .scroll-indicator { bottom: 1.5rem; }
      .scroll-top { bottom: 18px; right: 16px; }
      .whatsapp-btn { bottom: 72px; right: 16px; }
    }
